[03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]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:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31: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:13]ConnectInit Can't connect to host [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:10]accept exits with 7 [04:56:10]New connection [04:56:10]New thread 3066707300 created [04:56:10]Thread 3066563940 joined [04:56:10]Waiting for new connection... [04:56:10] Sock 7.Parse request [04:56:10]Sock 7.Check first char [04:56:10]Sock 7.First char is OK [04:56:10]request: POST /json_proto HTTP/1.0 [04:56:10]Method: POST [04:56:10]URL: /json_proto [04:56:10]Method is POST - this is cgi request [04:56:10]url: /json_proto [04:56:10]query_string will be loaded in cgi processing [04:56:10]execute_cgi json_proto POST (null) [04:56:10]execute_cgi path=json_proto method=POST [04:56:10]POST find Content-Length [04:56:10]Host: 172.17.63.131:8080 [04:56:10]Content-Length: 676 [04:56:10]Content-Type: application/json [04:56:10] [04:56:10]POST finish read [04:56:10]Found Content-Length = 676 [04:56:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:56:10]execute_script... [04:56: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)31773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:56:10]POST & json_proto [04:56:10]process_json_proto [04:56:10]json parsed OK: [04:56:10]protocol is kg_v1.0 [04:56:10]action value=close_receipt [04:56:10]process_action close_receipt [04:56:10]cmd_close_receipt [04:56:10]MH_GetDate [04:56:10]Write to MH i2c: F0 00 00 09 1E 16 [04:56:10]Write i2c OK [04:56:10]MH_I2C_Read... [04:56:10]Read from MH i2c: F0 [04:56:10]MH_I2C_Read... [04:56:10]Read from MH i2c: F0 09 00 [04:56:10]MH_I2C_Read... [04:56:10]Read from MH i2c: F0 09 00 09 1E 00 6D 19 1F 67 22 05 6E 64 24 [04:56:10]GetLastDocTimeStamp 1730084292 [04:56:10]current date 1730091373 [04:56:10]FM_GetShiftState [04:56:10]SAM_PROTO_GetShiftState [04:56:10]wFMCommunicate request_size=4 [04:56:10]MH_SAM_APDU [04:56:10]CAPDU: 80 13 01 00 [04:56:10]Write to MH i2c: E2 08 00 0A 1E 80 13 01 00 00 00 00 00 A5 [04:56:10]Write i2c OK [04:56:10]MH_I2C_Read... [04:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:56:10]Read from MH i2c: E2 [04:56:10]MH_I2C_Read... [04:56:10]Read from MH i2c: E2 0E 00 [04:56:10]MH_I2C_Read... [04:56:10]Read from MH i2c: E2 0E 00 0A 1E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F5 [04:56:10]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [04:56:10]wFMCommunicate OK [04:56:10]SAM_PROTO_GetShiftState done [04:56:10]FM_GetShiftState done [04:56:10]opened in 1730075620 [04:56:10]opened+sec_in_day 1730162020 [04:56:10]quantity*price = 50041 [04:56:10]sum+1 = 50042 [04:56:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 6 28.10.2024 04:56 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192458 ФПД: 58350051724003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T045613&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192458&fm=58350051724003&tin=02508201610067®Number=0000000000091776&sum=50000 [04:56:11]StoreToDocumentArchive [04:56:11]shift 543 fd 192458 [04:56:11]save to /storage/0543/doc_00192458 [04:56:11]save last doc name /storage/0543/doc_00192458 to /storage/kkm_last_doc_name [04:56:11]save OK [04:56:11]Clear old archive folders... [04:56:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:56:11]tlvbuf is 01991600 [04:56:11]SAM_PROTO_ClearQueue [04:56:11]wFMCommunicate request_size=4 [04:56:11]MH_SAM_APDU [04:56:11]CAPDU: 80 09 00 00 [04:56:11]Write to MH i2c: E2 08 00 17 1E 80 09 00 00 00 00 00 00 A7 [04:56:11]Write i2c OK [04:56:11]MH_I2C_Read... [04:56:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:56:11]Read from MH i2c: E2 [04:56:11]MH_I2C_Read... [04:56:11]Read from MH i2c: E2 03 00 [04:56:11]MH_I2C_Read... [04:56:11]Read from MH i2c: E2 03 00 17 1E 00 90 00 A9 [04:56:11]RAPDU: 90 00 [04:56:11]wFMCommunicate OK [04:56:11]SAM_PROTO_ClearQueue done [04:56:11]KKMCreateOFDPacket [04:56:11]OFDProtocolAddRootSTLVToBuf [04:56:11]FM_MakeSignedData [04:56:11]FM_MakeSignedData [04:56:11]SAM_PROTO_SignData [04:56:11]wFMCommunicate request_size=4 [04:56:11]MH_SAM_APDU [04:56:11]CAPDU: 80 0D 01 02 [04:56:11]Write to MH i2c: E2 08 00 18 1E 80 0D 01 02 00 00 00 00 AF [04:56:11]Write i2c OK [04:56:11]MH_I2C_Read... [04:56:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:56:11]Read from MH i2c: E2 [04:56:11]MH_I2C_Read... [04:56:11]Read from MH i2c: E2 03 00 [04:56:11]MH_I2C_Read... [04:56:11]Read from MH i2c: E2 03 00 18 1E 00 90 00 AA [04:56:11]RAPDU: 90 00 [04:56:11]wFMCommunicate OK [04:56:11]wFMCommunicate request_size=255 [04:56:11]MH_SAM_APDU [04:56: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 6D 19 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EF 02 00 35 04 06 00 35 [04:56:11]Write to MH i2c: E2 02 01 19 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 6D 19 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EF 02 00 35 04 06 00 35 00 00 66 [04:56:11]Write i2c OK [04:56:11]MH_I2C_Read... [04:56:11]Read from MH i2c: E2 [04:56:11]MH_I2C_Read... [04:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:56:11]Read from MH i2c: E2 03 00 [04:56:11]MH_I2C_Read... [04:56:11]Read from MH i2c: E2 03 00 19 1E 00 90 00 AB [04:56:11]RAPDU: 90 00 [04:56:11]wFMCommunicate OK [04:56:11]wFMCommunicate request_size=10 [04:56:11]MH_SAM_APDU [04:56:11]CAPDU: 80 0D 02 02 05 11 AE 1B 0A E3 [04:56:11]Write to MH i2c: E2 0D 00 1A 1E 80 0D 02 02 05 00 11 AE 1B 0A E3 00 00 83 [04:56:11]Write i2c OK [04:56:11]MH_I2C_Read... [04:56:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:56:12]Read from MH i2c: E2 [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: E2 03 00 [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: E2 03 00 1A 1E 00 90 00 AC [04:56:12]RAPDU: 90 00 [04:56:12]wFMCommunicate OK [04:56:12]wFMCommunicate request_size=4 [04:56:12]MH_SAM_APDU [04:56:12]CAPDU: 80 0D 03 02 [04:56:12]Write to MH i2c: E2 08 00 1B 1E 80 0D 03 02 00 00 00 00 B4 [04:56:12]Write i2c OK [04:56:12]MH_I2C_Read... [04:56:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:56:12]Read from MH i2c: E2 [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: E2 0B 00 [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: E2 0B 00 1B 1E 00 1C 6A BB 23 B1 1E 19 BC 90 00 BD [04:56:12]RAPDU: 1C 6A BB 23 B1 1E 19 BC 90 00 [04:56:12]wFMCommunicate OK [04:56:12]SAM_PROTO_SignData done [04:56:12]FM_MakeSignedData done [04:56:12]CreateOFDProtocolMessage [04:56:12]wFMCommunicate request_size=4 [04:56:12]MH_SAM_APDU [04:56:12]CAPDU: 80 11 00 00 [04:56:12]Write to MH i2c: E2 08 00 1C 1E 80 11 00 00 00 00 00 00 B4 [04:56:12]Write i2c OK [04:56:12]MH_I2C_Read... [04:56:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:56:12]Read from MH i2c: E2 [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: E2 17 00 [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: E2 17 00 1C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 07 [04:56:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [04:56:12]wFMCommunicate OK [04:56:12]CreateOFDProtocolMessage done [04:56:12]OFDSenderStorePacket 192458 [04:56:12]StoreOFDPacket docnum=192458 [04:56:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A0 5E 07 01 B1 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 6D 19 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EF 02 00 35 04 06 00 35 11 AE 1B 0A E3 1C 6A BB 23 B1 1E 19 BC [04:56:12]CheckFolder [04:56:12]dirname=/storage/ofd_packets [04:56:12]CheckFolder done [04:56:12]ProducePacketName [04:56:12]name=ofd_packets/00192458 [04:56:12]NVStorageSaveData ofd_packets/00192458 [04:56:12]File name is /storage/ofd_packets/00192458 [04:56:12]Write 301 bytes [04:56:12]NVStorageSaveData done [04:56:12]OFDSenderStorePacket done [04:56:12]KKMCreateOFDPacket done [04:56:12]NVStorageSaveData kkm_last_timestamp [04:56:12]File name is /storage/kkm_last_timestamp [04:56:12]Write 4 bytes [04:56:12]NVStorageSaveData done [04:56:12]ExternCall_PrintAddStr [04:56:12]wPrintStart [04:56:12]Write to MH i2c: 01 00 00 1D 1E 3B [04:56:12]Write i2c OK [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: 01 [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: 01 07 00 [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: 01 07 00 1D 1E 00 00 00 00 00 FF 0F 50 [04:56:12]RasterBufferAndPrint [04:56:12]line Счет N : (1)31773 [04:56:12]line ИНН: 02508201610067 [04:56:12]line Контрольно-Кассовый Чек [04:56:12]line ПРОДАЖА [04:56:12]line ТРК (МРК, ГНК) : 12 [04:56:12]line Товар: 2710124130 [04:56:12]line Аи-92-К-5 [04:56:12]line 7.480 * 66.90 [04:56:12]line = 500.41 [04:56:12]line НДС 12% НСП 1% [04:56:12]line > о реализуемом товаре [04:56:12]line ОКРУГЛЕНИЕ: -0.41 [04:56:12]line ИТОГО: 500.00 [04:56:12]line Внесено: 500.00 [04:56:12]line СДАЧА: 0.00 [04:56:12]line НСП 1% : 4.43 [04:56:12]line НДС 12% : 53.14 [04:56:12]line Наличными: 500.00 [04:56:12]line Безнал.: 0.00 [04:56:12]line Место: АЗС № 170 "Партнер Нефть" [04:56:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [04:56:12]line СНО: Общий режим [04:56:12]line Чек 6 28.10.2024 04:56 [04:56:12]line Смена: 543 ФФД: 1.0 [04:56:12]line ЗНМ: 0300000110 [04:56:12]line РНМ: 0000000000091776 [04:56:12]line Версия ККМ: 001 [04:56:12]line ФМ: 0000000000871754 [04:56:12]line ФД: 192458 [04:56:12]line ФПД: 58350051724003 [04:56:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T045613&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192458&fm=58350051724003&tin=02508201610067®Number=0000000000091776&sum=50000 [04:56:12]OFD Sender: Processing packet 192458 [packets to send 75, broken 74] [04:56:12]ProducePacketName [04:56:12]name=ofd_packets/00192458 [04:56:12]OFD Sender: To server: pG, [04:56:12]CommunicateWithHost lk.salyk.kg:30040 [04:56:12]ConnectInit lk.salyk.kg [04:56:12]written 0, free lines is 4095 [04:56:12]Connected sock=10 [04:56:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A0 5E 07 01 B1 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 6D 19 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EF 02 00 35 04 06 00 35 11 AE 1B 0A E3 1C 6A BB 23 B1 1E 19 BC [04:56:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1C 5C 47 00 AF 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EF 02 00 F4 03 04 00 33 BE 1E 67 B6 04 01 00 00 CB B3 FC 03 82 8E 4F 8D [04:56:12]CommunicateWithHost err = 0 [04:56:12]CheckOFDResponse [04:56:12]1017 (14) - 77093643461234 [04:56:12]1041 (16) - 0000000000871754 [04:56:12]1040 (4) - 192458 [04:56:12]1012 (4) - 27.10.2024 22:26 [04:56:12]1206 (1) - 0 [04:56:12]OFD Sender: Remove packet 192458 [04:56:12]ProducePacketName [04:56:12]name=ofd_packets/00192458 [04:56:12]NVStorageDeleteData [04:56:12]Write to MH i2c: 01 00 00 48 1E 66 [04:56:12]Write i2c OK [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: 01 [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: 01 07 00 [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: 01 07 00 48 1E 00 00 00 00 00 97 0C 10 [04:56:12]RasterBufferAndPrint [04:56:12]line [04:56:12]line [04:56:12]line [04:56:12]line [04:56:12]line [04:56:12]written 0, free lines is 3229 [04:56:12]MH_Cut [04:56:12]Write to MH i2c: D1 01 00 4F 1E 01 3F [04:56:12]Write i2c OK [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: D1 [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: D1 01 00 [04:56:12]MH_I2C_Read... [04:56:12]Read from MH i2c: D1 01 00 4F 1E 00 3E [04:56:12]Write to MH i2c: 01 00 00 50 1E 6E [04:56:12]Write i2c OK [04:56:12]MH_I2C_Read... [04:56:13]OFD Sender: No OFD packet to send [04:56:13]*** Cut start [04:56:13]*** Partial cut [04:56:13]*** CUTSNS_PIN = 1 [04:56:13]*** CUTSNS_PIN = 0 [04:56:14]*** Brake cut motor [04:56:14]Read from MH i2c: 01 [04:56:14]MH_I2C_Read... [04:56:14]*** Stop cut motor [04:56:14]*** Cut end [04:56:14]Read from MH i2c: 01 07 00 [04:56:14]MH_I2C_Read... [04:56:14]Read from MH i2c: 01 07 00 50 1E 00 00 00 00 00 FF 0F 83 [04:56:14]process_action close_receipt done [04:56:14]requested_data is exist [04:56:14]produce_requested_data [04:56:14]requested_item fm.sn is exist - process it [04:56:14]wFMCommunicate request_size=4 [04:56:14]MH_SAM_APDU [04:56:14]CAPDU: 80 11 00 00 [04:56:14]Write to MH i2c: E2 08 00 51 1E 80 11 00 00 00 00 00 00 E9 [04:56:14]Write i2c OK [04:56:14]MH_I2C_Read... [04:56:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:56:14]Read from MH i2c: E2 [04:56:14]MH_I2C_Read... [04:56:14]Read from MH i2c: E2 17 00 [04:56:14]MH_I2C_Read... [04:56:14]Read from MH i2c: E2 17 00 51 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3C [04:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [04:56:14]wFMCommunicate OK [04:56:14]requested_item fd.num is exist - process it [04:56:14]SAM_PROTO_GetFieldsCounters [04:56:14]wFMCommunicate request_size=4 [04:56:14]MH_SAM_APDU [04:56:14]CAPDU: 80 13 00 00 [04:56:14]Write to MH i2c: E2 08 00 52 1E 80 13 00 00 00 00 00 00 EC [04:56:14]Write i2c OK [04:56:14]MH_I2C_Read... [04:56:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:56:14]Read from MH i2c: E2 [04:56:14]MH_I2C_Read... [04:56:14]Read from MH i2c: E2 62 00 [04:56:14]MH_I2C_Read... [04:56:14]Read from MH i2c: E2 62 00 52 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CA EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [04:56:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CA EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:56:14]wFMCommunicate OK [04:56:14]SAM_PROTO_GetFieldsCounters done [04:56:14]requested_item shift.num is exist - process it [04:56:14]requested_item shift.opened is exist - process it [04:56:14]req_shift_opened [04:56:14]FM_GetShiftState [04:56:14]SAM_PROTO_GetShiftState [04:56:14]wFMCommunicate request_size=4 [04:56:14]MH_SAM_APDU [04:56:14]CAPDU: 80 13 01 00 [04:56:14]Write to MH i2c: E2 08 00 53 1E 80 13 01 00 00 00 00 00 EE [04:56:14]Write i2c OK [04:56:14]MH_I2C_Read... [04:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:56:14]Read from MH i2c: E2 [04:56:14]MH_I2C_Read... [04:56:14]Read from MH i2c: E2 0E 00 [04:56:14]MH_I2C_Read... [04:56:14]Read from MH i2c: E2 0E 00 53 1E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3E [04:56:14]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [04:56:14]wFMCommunicate OK [04:56:14]SAM_PROTO_GetShiftState done [04:56:14]FM_GetShiftState done [04:56:14]req_shift_opened done [04:56:14]requested_item shift.open_date is exist - process it [04:56:14]req_shift_open_date [04:56:14]req_shift_open_date done [04:56:14]produce_requested_data done [04:56:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192458,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [04:56:14]process_action_free close_receipt [04:56:14]json_value_free [04:56:14]json_value_free done [04:56:14]process_json_proto returns [04:56:14]Send response to host [04:56:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192458,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [04:56:14]free response buf [04:56:14]execute_script done [04:56:14]execute_script returns [04:56:14]free content buf [04:56:14]Sock 7.Close socket [04:56:14]Sock 7.Thread stoped [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57: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:27]OFD Sender: No OFD packet to send [06:01:32]accept exits with 9 [06:01:32]New connection [06:01:32]New thread 3066563940 created [06:01:32]Thread 3066707300 joined [06:01:32]Waiting for new connection... [06:01:32] Sock 9.Parse request [06:01:32]Sock 9.Check first char [06:01:32]Sock 9.First char is OK [06:01:32]request: POST /json_proto HTTP/1.0 [06:01:32]Method: POST [06:01:32]URL: /json_proto [06:01:32]Method is POST - this is cgi request [06:01:32]url: /json_proto [06:01:32]query_string will be loaded in cgi processing [06:01:32]execute_cgi json_proto POST (null) [06:01:32]execute_cgi path=json_proto method=POST [06:01:32]POST find Content-Length [06:01:32]Host: 172.17.63.131:8080 [06:01:32]Content-Length: 215 [06:01:32]Content-Type: application/json [06:01:32] [06:01:32]POST finish read [06:01:32]Found Content-Length = 215 [06:01:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:32]execute_script... [06:01:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:32]POST & json_proto [06:01:32]process_json_proto [06:01:32]json parsed OK: [06:01:32]protocol is kg_v1.0 [06:01:32]action value=get_value [06:01:32]process_action get_value [06:01:32]cmd_get_value [06:01:32]process_action get_value done [06:01:32]requested_data is exist [06:01:32]produce_requested_data [06:01:32]requested_item kkm.sn is exist - process it [06:01:32]requested_item kkm.ver is exist - process it [06:01:32]requested_item fm.sn is exist - process it [06:01:32]wFMCommunicate request_size=4 [06:01:32]MH_SAM_APDU [06:01:32]CAPDU: 80 11 00 00 [06:01:32]Write to MH i2c: E2 08 00 54 1E 80 11 00 00 00 00 00 00 EC [06:01:32]Write i2c OK [06:01:32]MH_I2C_Read... [06:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:32]Read from MH i2c: E2 [06:01:32]MH_I2C_Read... [06:01:32]Read from MH i2c: E2 17 00 [06:01:32]MH_I2C_Read... [06:01:32]Read from MH i2c: E2 17 00 54 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3F [06:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:01:32]wFMCommunicate OK [06:01:32]requested_item fd.num is exist - process it [06:01:32]SAM_PROTO_GetFieldsCounters [06:01:32]wFMCommunicate request_size=4 [06:01:32]MH_SAM_APDU [06:01:32]CAPDU: 80 13 00 00 [06:01:32]Write to MH i2c: E2 08 00 55 1E 80 13 00 00 00 00 00 00 EF [06:01:32]Write i2c OK [06:01:32]MH_I2C_Read... [06:01:32]OFD Sender: No OFD packet to send [06:01:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:01:32]Read from MH i2c: E2 [06:01:32]MH_I2C_Read... [06:01:32]Read from MH i2c: E2 62 00 [06:01:32]MH_I2C_Read... [06:01:32]Read from MH i2c: E2 62 00 55 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CA EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [06:01:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CA EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:01:32]wFMCommunicate OK [06:01:32]SAM_PROTO_GetFieldsCounters done [06:01:32]requested_item shift.num is exist - process it [06:01:32]requested_item shift.opened is exist - process it [06:01:32]req_shift_opened [06:01:32]FM_GetShiftState [06:01:32]SAM_PROTO_GetShiftState [06:01:32]wFMCommunicate request_size=4 [06:01:32]MH_SAM_APDU [06:01:32]CAPDU: 80 13 01 00 [06:01:32]Write to MH i2c: E2 08 00 56 1E 80 13 01 00 00 00 00 00 F1 [06:01:32]Write i2c OK [06:01:32]MH_I2C_Read... [06:01:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:32]Read from MH i2c: E2 [06:01:32]MH_I2C_Read... [06:01:32]Read from MH i2c: E2 0E 00 [06:01:32]MH_I2C_Read... [06:01:32]Read from MH i2c: E2 0E 00 56 1E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 41 [06:01:32]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [06:01:32]wFMCommunicate OK [06:01:32]SAM_PROTO_GetShiftState done [06:01:32]FM_GetShiftState done [06:01:32]req_shift_opened done [06:01:32]requested_item shift.open_date is exist - process it [06:01:32]req_shift_open_date [06:01:32]req_shift_open_date done [06:01:32]produce_requested_data done [06:01:32]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192458,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [06:01:32]process_action_free get_value [06:01:32]json_value_free [06:01:32]json_value_free done [06:01:32]process_json_proto returns [06:01:32]Send response to host [06:01:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192458,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [06:01:32]free response buf [06:01:32]execute_script done [06:01:32]execute_script returns [06:01:32]free content buf [06:01:32]Sock 9.Close socket [06:01:32]Sock 9.Thread stoped [06:01:32]accept exits with 7 [06:01:32]New connection [06:01:32]New thread 3066707300 created [06:01:32]Thread 3066563940 joined [06:01:32]Waiting for new connection... [06:01:32] Sock 7.Parse request [06:01:32]Sock 7.Check first char [06:01:32]Sock 7.First char is OK [06:01:32]request: POST /json_proto HTTP/1.0 [06:01:32]Method: POST [06:01:32]URL: /json_proto [06:01:32]Method is POST - this is cgi request [06:01:32]url: /json_proto [06:01:32]query_string will be loaded in cgi processing [06:01:32]execute_cgi json_proto POST (null) [06:01:32]execute_cgi path=json_proto method=POST [06:01:32]POST find Content-Length [06:01:32]Host: 172.17.63.131:8080 [06:01:32]Content-Length: 331 [06:01:32]Content-Type: application/json [06:01:32] [06:01:32]POST finish read [06:01:32]Found Content-Length = 331 [06:01:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [06:01:32]execute_script... [06:01:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [06:01:32]POST & json_proto [06:01:32]process_json_proto [06:01:32]json parsed OK: [06:01:32]protocol is kg_v1.0 [06:01:32]action value=get_value [06:01:32]process_action get_value [06:01:32]cmd_get_value [06:01:32]process_action get_value done [06:01:32]requested_data is exist [06:01:32]produce_requested_data [06:01:32]requested_item fm.sale.total is exist - process it [06:01:32]SAM_PROTO_GetFMData [06:01:32]wFMCommunicate request_size=4 [06:01:32]MH_SAM_APDU [06:01:32]CAPDU: 80 13 03 00 [06:01:32]Write to MH i2c: E2 08 00 57 1E 80 13 03 00 00 00 00 00 F4 [06:01:32]Write i2c OK [06:01:32]MH_I2C_Read... [06:01:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [06:01:33]Read from MH i2c: E2 [06:01:33]MH_I2C_Read... [06:01:33]Read from MH i2c: E2 FD 00 [06:01:33]MH_I2C_Read... [06:01:33]Read from MH i2c: E2 FD 00 57 1E 00 C1 04 85 04 BD 04 6E 04 04 00 8C EB 02 00 69 04 A3 00 6F 04 04 00 82 EB 02 00 B1 04 05 00 C4 1C 2E B7 03 70 04 05 00 2C 23 E7 89 03 72 04 04 00 98 F9 46 2D 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 9E 76 0C 65 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 04 88 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 CF [06:01:33]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 8C EB 02 00 69 04 A3 00 6F 04 04 00 82 EB 02 00 B1 04 05 00 C4 1C 2E B7 03 70 04 05 00 2C 23 E7 89 03 72 04 04 00 98 F9 46 2D 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 9E 76 0C 65 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 04 88 6B 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [06:01:33]wFMCommunicate OK [06:01:33]wFMCommunicate request_size=4 [06:01:33]MH_SAM_APDU [06:01:33]CAPDU: 80 17 00 00 [06:01:33]Write to MH i2c: E2 08 00 58 1E 80 17 00 00 00 00 00 00 F6 [06:01:33]Write i2c OK [06:01:33]MH_I2C_Read... [06:01:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:01:33]Read from MH i2c: E2 [06:01:33]MH_I2C_Read... [06:01:33]Read from MH i2c: E2 FD 00 [06:01:33]MH_I2C_Read... [06:01:33]Read from MH i2c: E2 FD 00 58 1E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 07 [06:01:33]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:01:33]wFMCommunicate OK [06:01:33]wFMCommunicate request_size=4 [06:01:33]MH_SAM_APDU [06:01:33]CAPDU: 80 17 00 00 [06:01:33]Write to MH i2c: E2 08 00 59 1E 80 17 00 00 00 00 00 00 F7 [06:01:33]Write i2c OK [06:01:33]MH_I2C_Read... [06:01:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:01:33]Read from MH i2c: E2 [06:01:33]MH_I2C_Read... [06:01:33]Read from MH i2c: E2 FD 00 [06:01:33]MH_I2C_Read... [06:01:33]Read from MH i2c: E2 FD 00 59 1E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 97 [06:01:33]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:01:33]wFMCommunicate OK [06:01:33]wFMCommunicate request_size=4 [06:01:33]MH_SAM_APDU [06:01:33]CAPDU: 80 17 00 00 [06:01:33]Write to MH i2c: E2 08 00 5A 1E 80 17 00 00 00 00 00 00 F8 [06:01:33]Write i2c OK [06:01:33]MH_I2C_Read... [06:01:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:01:33]Read from MH i2c: E2 [06:01:33]MH_I2C_Read... [06:01:33]Read from MH i2c: E2 FD 00 [06:01:33]MH_I2C_Read... [06:01:33]Read from MH i2c: E2 FD 00 5A 1E 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 7D [06:01:33]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [06:01:33]wFMCommunicate OK [06:01:33]wFMCommunicate request_size=4 [06:01:33]MH_SAM_APDU [06:01:33]CAPDU: 80 17 00 00 [06:01:33]Write to MH i2c: E2 08 00 5B 1E 80 17 00 00 00 00 00 00 F9 [06:01:33]Write i2c OK [06:01:33]MH_I2C_Read... [06:01:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [06:01:34]Read from MH i2c: E2 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 DE 00 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 DE 00 5B 1E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D8 [06:01:34]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:34]wFMCommunicate OK [06:01:34]SAM_PROTO_GetFMData done [06:01:34]requested_item fm.sale_refund.total is exist - process it [06:01:34]requested_item fm.buy.total is exist - process it [06:01:34]requested_item shift.sale.total is exist - process it [06:01:34]SAM_PROTO_GetShiftData [06:01:34]wFMCommunicate request_size=4 [06:01:34]MH_SAM_APDU [06:01:34]CAPDU: 80 13 02 00 [06:01:34]Write to MH i2c: E2 08 00 5C 1E 80 13 02 00 00 00 00 00 F8 [06:01:34]Write i2c OK [06:01:34]MH_I2C_Read... [06:01:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [06:01:34]Read from MH i2c: E2 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 FD 00 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 FD 00 5C 1E 00 AA 04 AA 04 A6 04 6E 04 04 00 06 00 00 00 69 04 97 00 6F 04 04 00 06 00 00 00 B1 04 03 00 80 A3 04 70 04 03 00 80 A3 04 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 2F 7E 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 83 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 2D [06:01:34]RAPDU: AA 04 AA 04 A6 04 6E 04 04 00 06 00 00 00 69 04 97 00 6F 04 04 00 06 00 00 00 B1 04 03 00 80 A3 04 70 04 03 00 80 A3 04 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 2F 7E 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 83 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [06:01:34]wFMCommunicate OK [06:01:34]wFMCommunicate request_size=4 [06:01:34]MH_SAM_APDU [06:01:34]CAPDU: 80 17 00 00 [06:01:34]Write to MH i2c: E2 08 00 5D 1E 80 17 00 00 00 00 00 00 FB [06:01:34]Write i2c OK [06:01:34]MH_I2C_Read... [06:01:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:01:34]Read from MH i2c: E2 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 FD 00 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 FD 00 5D 1E 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 21 [06:01:34]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:01:34]wFMCommunicate OK [06:01:34]wFMCommunicate request_size=4 [06:01:34]MH_SAM_APDU [06:01:34]CAPDU: 80 17 00 00 [06:01:34]Write to MH i2c: E2 08 00 5E 1E 80 17 00 00 00 00 00 00 FC [06:01:34]Write i2c OK [06:01:34]MH_I2C_Read... [06:01:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:01:35]Read from MH i2c: E2 [06:01:35]MH_I2C_Read... [06:01:35]Read from MH i2c: E2 FD 00 [06:01:35]MH_I2C_Read... [06:01:35]Read from MH i2c: E2 FD 00 5E 1E 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AF [06:01:35]RAPDU: EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:01:35]wFMCommunicate OK [06:01:35]wFMCommunicate request_size=4 [06:01:35]MH_SAM_APDU [06:01:35]CAPDU: 80 17 00 00 [06:01:35]Write to MH i2c: E2 08 00 5F 1E 80 17 00 00 00 00 00 00 FD [06:01:35]Write i2c OK [06:01:35]MH_I2C_Read... [06:01:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:01:35]Read from MH i2c: E2 [06:01:35]MH_I2C_Read... [06:01:35]Read from MH i2c: E2 FD 00 [06:01:35]MH_I2C_Read... [06:01:35]Read from MH i2c: E2 FD 00 5F 1E 00 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 90 00 6F [06:01:35]RAPDU: 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 90 00 [06:01:35]wFMCommunicate OK [06:01:35]wFMCommunicate request_size=4 [06:01:35]MH_SAM_APDU [06:01:35]CAPDU: 80 17 00 00 [06:01:35]Write to MH i2c: E2 08 00 60 1E 80 17 00 00 00 00 00 00 FE [06:01:35]Write i2c OK [06:01:35]MH_I2C_Read... [06:01:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 196! [06:01:35]Read from MH i2c: E2 [06:01:35]MH_I2C_Read... [06:01:35]Read from MH i2c: E2 C7 00 [06:01:35]MH_I2C_Read... [06:01:35]Read from MH i2c: E2 C7 00 60 1E 00 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F1 [06:01:35]RAPDU: 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:35]wFMCommunicate OK [06:01:35]SAM_PROTO_GetShiftData done [06:01:35]requested_item shift.sale.total_cash is exist - process it [06:01:35]requested_item shift.sale_refund.total is exist - process it [06:01:35]requested_item shift.sale_refund.total_cash is exist - process it [06:01:35]requested_item shift.buy.total is exist - process it [06:01:35]requested_item shift.buy.total_cash is exist - process it [06:01:35]produce_requested_data done [06:01:35]produce_requested_data return {"fm.sale.total":159581544.36,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":3040.00,"shift.sale.total_cash":3040.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [06:01:35]process_action_free get_value [06:01:35]json_value_free [06:01:35]json_value_free done [06:01:35]process_json_proto returns [06:01:35]Send response to host [06:01:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159581544.36,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":3040.00,"shift.sale.total_cash":3040.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [06:01:35]free response buf [06:01:35]execute_script done [06:01:35]execute_script returns [06:01:35]free content buf [06:01:35]Sock 7.Close socket [06:01:35]Sock 7.Thread stoped [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:38]accept exits with 9 [06:08:38]New connection [06:08:38]New thread 3066563940 created [06:08:38]Thread 3066707300 joined [06:08:38]Waiting for new connection... [06:08:38] Sock 9.Parse request [06:08:38]Sock 9.Check first char [06:08:38]Sock 9.First char is OK [06:08:38]request: POST /json_proto HTTP/1.0 [06:08:38]Method: POST [06:08:38]URL: /json_proto [06:08:38]Method is POST - this is cgi request [06:08:38]url: /json_proto [06:08:38]query_string will be loaded in cgi processing [06:08:38]execute_cgi json_proto POST (null) [06:08:38]execute_cgi path=json_proto method=POST [06:08:38]POST find Content-Length [06:08:38]Host: 172.17.63.131:8080 [06:08:38]Content-Length: 681 [06:08:38]Content-Type: application/json [06:08:38] [06:08:38]POST finish read [06:08:38]Found Content-Length = 681 [06:08:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:08:38]execute_script... [06:08:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:08:38]POST & json_proto [06:08:38]process_json_proto [06:08:38]json parsed OK: [06:08:38]protocol is kg_v1.0 [06:08:38]action value=close_receipt [06:08:38]process_action close_receipt [06:08:38]cmd_close_receipt [06:08:38]MH_GetDate [06:08:38]Write to MH i2c: F0 00 00 61 1E 6E [06:08:38]Write i2c OK [06:08:38]MH_I2C_Read... [06:08:38]Read from MH i2c: F0 [06:08:38]MH_I2C_Read... [06:08:38]Read from MH i2c: F0 09 00 [06:08:38]MH_I2C_Read... [06:08:38]Read from MH i2c: F0 09 00 61 1E 00 6A 2A 1F 67 22 05 6E 64 8A [06:08:38]GetLastDocTimeStamp 1730091373 [06:08:38]current date 1730095722 [06:08:38]FM_GetShiftState [06:08:38]SAM_PROTO_GetShiftState [06:08:38]wFMCommunicate request_size=4 [06:08:38]MH_SAM_APDU [06:08:38]CAPDU: 80 13 01 00 [06:08:38]Write to MH i2c: E2 08 00 62 1E 80 13 01 00 00 00 00 00 FD [06:08:38]Write i2c OK [06:08:38]MH_I2C_Read... [06:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:38]Read from MH i2c: E2 [06:08:38]MH_I2C_Read... [06:08:38]Read from MH i2c: E2 0E 00 [06:08:38]MH_I2C_Read... [06:08:38]Read from MH i2c: E2 0E 00 62 1E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 4D [06:08:38]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [06:08:38]wFMCommunicate OK [06:08:38]SAM_PROTO_GetShiftState done [06:08:38]FM_GetShiftState done [06:08:38]opened in 1730075620 [06:08:38]opened+sec_in_day 1730162020 [06:08:38]quantity*price = 100015 [06:08:38]sum+1 = 100017 [06:08:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 7 28.10.2024 06:08 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192459 ФПД: 182035518377802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T060842&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192459&fm=182035518377802&tin=02508201610067®Number=0000000000091776&sum=100000 [06:08:39]StoreToDocumentArchive [06:08:39]shift 543 fd 192459 [06:08:39]save to /storage/0543/doc_00192459 [06:08:39]save last doc name /storage/0543/doc_00192459 to /storage/kkm_last_doc_name [06:08:39]save OK [06:08:39]Clear old archive folders... [06:08:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:08:39]tlvbuf is 019F42D0 [06:08:39]SAM_PROTO_ClearQueue [06:08:39]wFMCommunicate request_size=4 [06:08:39]MH_SAM_APDU [06:08:39]CAPDU: 80 09 00 00 [06:08:39]Write to MH i2c: E2 08 00 6F 1E 80 09 00 00 00 00 00 00 FF [06:08:39]Write i2c OK [06:08:39]MH_I2C_Read... [06:08:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:08:39]Read from MH i2c: E2 [06:08:39]MH_I2C_Read... [06:08:39]Read from MH i2c: E2 03 00 [06:08:39]MH_I2C_Read... [06:08:39]Read from MH i2c: E2 03 00 6F 1E 00 90 00 01 [06:08:39]RAPDU: 90 00 [06:08:39]wFMCommunicate OK [06:08:39]SAM_PROTO_ClearQueue done [06:08:39]KKMCreateOFDPacket [06:08:39]OFDProtocolAddRootSTLVToBuf [06:08:39]FM_MakeSignedData [06:08:39]FM_MakeSignedData [06:08:39]SAM_PROTO_SignData [06:08:39]wFMCommunicate request_size=4 [06:08:39]MH_SAM_APDU [06:08:39]CAPDU: 80 0D 01 02 [06:08:39]Write to MH i2c: E2 08 00 70 1E 80 0D 01 02 00 00 00 00 07 [06:08:39]Write i2c OK [06:08:39]MH_I2C_Read... [06:08:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:08:39]Read from MH i2c: E2 [06:08:39]MH_I2C_Read... [06:08:39]Read from MH i2c: E2 03 00 [06:08:39]MH_I2C_Read... [06:08:39]Read from MH i2c: E2 03 00 70 1E 00 90 00 02 [06:08:39]RAPDU: 90 00 [06:08:39]wFMCommunicate OK [06:08:39]wFMCommunicate request_size=255 [06:08:39]MH_SAM_APDU [06:08:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6A 2A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EF 02 00 35 04 06 00 A5 [06:08:39]Write to MH i2c: E2 02 01 71 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6A 2A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EF 02 00 35 04 06 00 A5 00 00 38 [06:08:39]Write i2c OK [06:08:39]MH_I2C_Read... [06:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:39]Read from MH i2c: E2 [06:08:39]MH_I2C_Read... [06:08:39]Read from MH i2c: E2 03 00 [06:08:39]MH_I2C_Read... [06:08:39]Read from MH i2c: E2 03 00 71 1E 00 90 00 03 [06:08:39]RAPDU: 90 00 [06:08:39]wFMCommunicate OK [06:08:39]wFMCommunicate request_size=10 [06:08:39]MH_SAM_APDU [06:08:39]CAPDU: 80 0D 02 02 05 8F 72 68 CF 4A [06:08:39]Write to MH i2c: E2 0D 00 72 1E 80 0D 02 02 05 00 8F 72 68 CF 4A 00 00 96 [06:08:39]Write i2c OK [06:08:39]MH_I2C_Read... [06:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:39]Read from MH i2c: E2 [06:08:39]MH_I2C_Read... [06:08:39]Read from MH i2c: E2 03 00 [06:08:39]MH_I2C_Read... [06:08:39]Read from MH i2c: E2 03 00 72 1E 00 90 00 04 [06:08:39]RAPDU: 90 00 [06:08:39]wFMCommunicate OK [06:08:39]wFMCommunicate request_size=4 [06:08:39]MH_SAM_APDU [06:08:39]CAPDU: 80 0D 03 02 [06:08:39]Write to MH i2c: E2 08 00 73 1E 80 0D 03 02 00 00 00 00 0C [06:08:39]Write i2c OK [06:08:39]MH_I2C_Read... [06:08:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:08:40]Read from MH i2c: E2 [06:08:40]MH_I2C_Read... [06:08:40]Read from MH i2c: E2 0B 00 [06:08:40]MH_I2C_Read... [06:08:40]Read from MH i2c: E2 0B 00 73 1E 00 F1 DF E9 98 43 7F 95 C6 90 00 7B [06:08:40]RAPDU: F1 DF E9 98 43 7F 95 C6 90 00 [06:08:40]wFMCommunicate OK [06:08:40]SAM_PROTO_SignData done [06:08:40]FM_MakeSignedData done [06:08:40]CreateOFDProtocolMessage [06:08:40]wFMCommunicate request_size=4 [06:08:40]MH_SAM_APDU [06:08:40]CAPDU: 80 11 00 00 [06:08:40]Write to MH i2c: E2 08 00 74 1E 80 11 00 00 00 00 00 00 0C [06:08:40]Write i2c OK [06:08:40]MH_I2C_Read... [06:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:40]Read from MH i2c: E2 [06:08:40]MH_I2C_Read... [06:08:40]Read from MH i2c: E2 17 00 [06:08:40]MH_I2C_Read... [06:08:40]Read from MH i2c: E2 17 00 74 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5F [06:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:08:40]wFMCommunicate OK [06:08:40]CreateOFDProtocolMessage done [06:08:40]OFDSenderStorePacket 192459 [06:08:40]StoreOFDPacket docnum=192459 [06:08:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 23 B4 07 01 B4 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6A 2A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EF 02 00 35 04 06 00 A5 8F 72 68 CF 4A F1 DF E9 98 43 7F 95 C6 [06:08:40]CheckFolder [06:08:40]dirname=/storage/ofd_packets [06:08:40]CheckFolder done [06:08:40]ProducePacketName [06:08:40]name=ofd_packets/00192459 [06:08:40]NVStorageSaveData ofd_packets/00192459 [06:08:40]File name is /storage/ofd_packets/00192459 [06:08:40]Write 301 bytes [06:08:40]NVStorageSaveData done [06:08:40]OFDSenderStorePacket done [06:08:40]KKMCreateOFDPacket done [06:08:40]NVStorageSaveData kkm_last_timestamp [06:08:40]File name is /storage/kkm_last_timestamp [06:08:40]Write 4 bytes [06:08:40]NVStorageSaveData done [06:08:40]ExternCall_PrintAddStr [06:08:40]wPrintStart [06:08:40]Write to MH i2c: 01 00 00 75 1E 93 [06:08:40]Write i2c OK [06:08:40]MH_I2C_Read... [06:08:40]Read from MH i2c: 01 [06:08:40]MH_I2C_Read... [06:08:40]Read from MH i2c: 01 07 00 [06:08:40]MH_I2C_Read... [06:08:40]Read from MH i2c: 01 07 00 75 1E 00 00 00 00 00 FF 0F A8 [06:08:40]RasterBufferAndPrint [06:08:40]line Счет N : (1)31774 [06:08:40]line ИНН: 02508201610067 [06:08:40]line Контрольно-Кассовый Чек [06:08:40]line ПРОДАЖА [06:08:40]line ТРК (МРК, ГНК) : 21 [06:08:40]line Товар: 2710124130 [06:08:40]line Аи-92-К-5 [06:08:40]line 14.950 * 66.90 [06:08:40]line = 1000.16 [06:08:40]line НДС 12% НСП 1% [06:08:40]line > о реализуемом товаре [06:08:40]line ОКРУГЛЕНИЕ: -0.16 [06:08:40]line ИТОГО: 1000.00 [06:08:40]line Внесено: 1000.00 [06:08:40]line СДАЧА: 0.00 [06:08:40]line НСП 1% : 8.85 [06:08:40]line НДС 12% : 106.21 [06:08:40]line Наличными: 1000.00 [06:08:40]line Безнал.: 0.00 [06:08:40]line Место: АЗС № 170 "Партнер Нефть" [06:08:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [06:08:40]line СНО: Общий режим [06:08:40]line Чек 7 28.10.2024 06:08 [06:08:40]line Смена: 543 ФФД: 1.0 [06:08:40]line ЗНМ: 0300000110 [06:08:40]line РНМ: 0000000000091776 [06:08:40]line Версия ККМ: 001 [06:08:40]line ФМ: 0000000000871754 [06:08:40]line ФД: 192459 [06:08:40]line ФПД: 182035518377802 [06:08:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T060842&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192459&fm=182035518377802&tin=02508201610067®Number=0000000000091776&sum=100000 [06:08:40]OFD Sender: Processing packet 192459 [packets to send 75, broken 74] [06:08:40]ProducePacketName [06:08:40]name=ofd_packets/00192459 [06:08:40]OFD Sender: To server: pG, [06:08:40]CommunicateWithHost lk.salyk.kg:30040 [06:08:40]ConnectInit lk.salyk.kg [06:08:40]written 0, free lines is 4095 [06:08:40]Connected sock=10 [06:08:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 23 B4 07 01 B4 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6A 2A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EF 02 00 35 04 06 00 A5 8F 72 68 CF 4A F1 DF E9 98 43 7F 95 C6 [06:08:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 22 BC 47 00 7C 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EF 02 00 F4 03 04 00 2F CF 1E 67 B6 04 01 00 00 4A 92 FD 7C 5E D8 41 ED [06:08:40]CommunicateWithHost err = 0 [06:08:40]CheckOFDResponse [06:08:40]1017 (14) - 77093643461234 [06:08:40]1041 (16) - 0000000000871754 [06:08:40]1040 (4) - 192459 [06:08:40]1012 (4) - 27.10.2024 23:39 [06:08:40]1206 (1) - 0 [06:08:40]OFD Sender: Remove packet 192459 [06:08:40]ProducePacketName [06:08:40]name=ofd_packets/00192459 [06:08:40]NVStorageDeleteData [06:08:40]Write to MH i2c: 01 00 00 A0 1E BE [06:08:40]Write i2c OK [06:08:40]MH_I2C_Read... [06:08:40]Read from MH i2c: 01 [06:08:40]MH_I2C_Read... [06:08:40]Read from MH i2c: 01 07 00 [06:08:40]MH_I2C_Read... [06:08:40]Read from MH i2c: 01 07 00 A0 1E 00 00 00 00 00 9D 0C 6E [06:08:40]RasterBufferAndPrint [06:08:40]line [06:08:40]line [06:08:40]line [06:08:40]line [06:08:40]line [06:08:40]written 0, free lines is 3236 [06:08:40]MH_Cut [06:08:40]Write to MH i2c: D1 01 00 A7 1E 01 97 [06:08:40]Write i2c OK [06:08:40]MH_I2C_Read... [06:08:40]Read from MH i2c: D1 [06:08:40]MH_I2C_Read... [06:08:40]Read from MH i2c: D1 01 00 [06:08:40]MH_I2C_Read... [06:08:40]Read from MH i2c: D1 01 00 A7 1E 00 96 [06:08:40]Write to MH i2c: 01 00 00 A8 1E C6 [06:08:40]Write i2c OK [06:08:40]MH_I2C_Read... [06:08:41]OFD Sender: No OFD packet to send [06:08:41]*** Cut start [06:08:41]*** Partial cut [06:08:41]*** CUTSNS_PIN = 1 [06:08:41]*** CUTSNS_PIN = 0 [06:08:42]*** Brake cut motor [06:08:42]Read from MH i2c: 01 [06:08:42]MH_I2C_Read... [06:08:42]*** Stop cut motor [06:08:42]*** Cut end [06:08:42]Read from MH i2c: 01 07 00 [06:08:42]MH_I2C_Read... [06:08:42]Read from MH i2c: 01 07 00 A8 1E 00 00 00 00 00 FF 0F DB [06:08:42]process_action close_receipt done [06:08:42]requested_data is exist [06:08:42]produce_requested_data [06:08:42]requested_item fm.sn is exist - process it [06:08:42]wFMCommunicate request_size=4 [06:08:42]MH_SAM_APDU [06:08:42]CAPDU: 80 11 00 00 [06:08:42]Write to MH i2c: E2 08 00 A9 1E 80 11 00 00 00 00 00 00 41 [06:08:42]Write i2c OK [06:08:42]MH_I2C_Read... [06:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:42]Read from MH i2c: E2 [06:08:42]MH_I2C_Read... [06:08:42]Read from MH i2c: E2 17 00 [06:08:42]MH_I2C_Read... [06:08:42]Read from MH i2c: E2 17 00 A9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 94 [06:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:08:42]wFMCommunicate OK [06:08:42]requested_item fd.num is exist - process it [06:08:42]SAM_PROTO_GetFieldsCounters [06:08:42]wFMCommunicate request_size=4 [06:08:42]MH_SAM_APDU [06:08:42]CAPDU: 80 13 00 00 [06:08:42]Write to MH i2c: E2 08 00 AA 1E 80 13 00 00 00 00 00 00 44 [06:08:42]Write i2c OK [06:08:42]MH_I2C_Read... [06:08:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:08:42]Read from MH i2c: E2 [06:08:42]MH_I2C_Read... [06:08:42]Read from MH i2c: E2 62 00 [06:08:42]MH_I2C_Read... [06:08:42]Read from MH i2c: E2 62 00 AA 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CB EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [06:08:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CB EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:08:42]wFMCommunicate OK [06:08:42]SAM_PROTO_GetFieldsCounters done [06:08:42]requested_item shift.num is exist - process it [06:08:42]requested_item shift.opened is exist - process it [06:08:42]req_shift_opened [06:08:42]FM_GetShiftState [06:08:42]SAM_PROTO_GetShiftState [06:08:42]wFMCommunicate request_size=4 [06:08:42]MH_SAM_APDU [06:08:42]CAPDU: 80 13 01 00 [06:08:42]Write to MH i2c: E2 08 00 AB 1E 80 13 01 00 00 00 00 00 46 [06:08:42]Write i2c OK [06:08:42]MH_I2C_Read... [06:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:42]Read from MH i2c: E2 [06:08:42]MH_I2C_Read... [06:08:42]Read from MH i2c: E2 0E 00 [06:08:42]MH_I2C_Read... [06:08:42]Read from MH i2c: E2 0E 00 AB 1E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 96 [06:08:42]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [06:08:42]wFMCommunicate OK [06:08:42]SAM_PROTO_GetShiftState done [06:08:42]FM_GetShiftState done [06:08:42]req_shift_opened done [06:08:42]requested_item shift.open_date is exist - process it [06:08:42]req_shift_open_date [06:08:42]req_shift_open_date done [06:08:42]produce_requested_data done [06:08:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192459,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [06:08:42]process_action_free close_receipt [06:08:42]json_value_free [06:08:42]json_value_free done [06:08:42]process_json_proto returns [06:08:42]Send response to host [06:08:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192459,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [06:08:42]free response buf [06:08:42]execute_script done [06:08:42]execute_script returns [06:08:42]free content buf [06:08:42]Sock 9.Close socket [06:08:42]Sock 9.Thread stoped [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:34]accept exits with 7 [06:41:34]New connection [06:41:34]New thread 3066707300 created [06:41:34]Thread 3066563940 joined [06:41:34]Waiting for new connection... [06:41:34] Sock 7.Parse request [06:41:34]Sock 7.Check first char [06:41:34]Sock 7.First char is OK [06:41:34]request: POST /json_proto HTTP/1.0 [06:41:34]Method: POST [06:41:34]URL: /json_proto [06:41:34]Method is POST - this is cgi request [06:41:34]url: /json_proto [06:41:34]query_string will be loaded in cgi processing [06:41:34]execute_cgi json_proto POST (null) [06:41:34]execute_cgi path=json_proto method=POST [06:41:34]POST find Content-Length [06:41:34]Host: 172.17.63.131:8080 [06:41:34]Content-Length: 677 [06:41:34]Content-Type: application/json [06:41:34] [06:41:34]POST finish read [06:41:34]Found Content-Length = 677 [06:41:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:41:34]execute_script... [06:41:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31775", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:41:34]POST & json_proto [06:41:34]process_json_proto [06:41:34]json parsed OK: [06:41:34]protocol is kg_v1.0 [06:41:34]action value=close_receipt [06:41:34]process_action close_receipt [06:41:34]cmd_close_receipt [06:41:34]MH_GetDate [06:41:34]Write to MH i2c: F0 00 00 AC 1E B9 [06:41:34]Write i2c OK [06:41:34]MH_I2C_Read... [06:41:34]Read from MH i2c: F0 [06:41:34]MH_I2C_Read... [06:41:34]Read from MH i2c: F0 09 00 [06:41:34]MH_I2C_Read... [06:41:34]Read from MH i2c: F0 09 00 AC 1E 00 22 32 1F 67 22 05 6E 64 95 [06:41:34]GetLastDocTimeStamp 1730095722 [06:41:34]current date 1730097698 [06:41:34]FM_GetShiftState [06:41:34]SAM_PROTO_GetShiftState [06:41:34]wFMCommunicate request_size=4 [06:41:34]MH_SAM_APDU [06:41:34]CAPDU: 80 13 01 00 [06:41:34]Write to MH i2c: E2 08 00 AD 1E 80 13 01 00 00 00 00 00 48 [06:41:34]Write i2c OK [06:41:34]MH_I2C_Read... [06:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:34]Read from MH i2c: E2 [06:41:34]MH_I2C_Read... [06:41:34]Read from MH i2c: E2 0E 00 [06:41:34]MH_I2C_Read... [06:41:34]Read from MH i2c: E2 0E 00 AD 1E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 98 [06:41:34]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [06:41:34]wFMCommunicate OK [06:41:34]SAM_PROTO_GetShiftState done [06:41:34]FM_GetShiftState done [06:41:34]opened in 1730075620 [06:41:34]opened+sec_in_day 1730162020 [06:41:34]quantity*price = 80012 [06:41:34]sum+1 = 80013 [06:41:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 8 28.10.2024 06:41 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192460 ФПД: 4867715427510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T064138&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192460&fm=4867715427510&tin=02508201610067®Number=0000000000091776&sum=80000 [06:41:35]StoreToDocumentArchive [06:41:35]shift 543 fd 192460 [06:41:35]save to /storage/0543/doc_00192460 [06:41:35]save last doc name /storage/0543/doc_00192460 to /storage/kkm_last_doc_name [06:41:35]save OK [06:41:35]Clear old archive folders... [06:41:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:41:35]tlvbuf is 019AF1C0 [06:41:35]SAM_PROTO_ClearQueue [06:41:35]wFMCommunicate request_size=4 [06:41:35]MH_SAM_APDU [06:41:35]CAPDU: 80 09 00 00 [06:41:35]Write to MH i2c: E2 08 00 BA 1E 80 09 00 00 00 00 00 00 4A [06:41:35]Write i2c OK [06:41:35]MH_I2C_Read... [06:41:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:41:35]Read from MH i2c: E2 [06:41:35]MH_I2C_Read... [06:41:35]Read from MH i2c: E2 03 00 [06:41:35]MH_I2C_Read... [06:41:35]Read from MH i2c: E2 03 00 BA 1E 00 90 00 4C [06:41:35]RAPDU: 90 00 [06:41:35]wFMCommunicate OK [06:41:35]SAM_PROTO_ClearQueue done [06:41:35]KKMCreateOFDPacket [06:41:35]OFDProtocolAddRootSTLVToBuf [06:41:35]FM_MakeSignedData [06:41:35]FM_MakeSignedData [06:41:35]SAM_PROTO_SignData [06:41:35]wFMCommunicate request_size=4 [06:41:35]MH_SAM_APDU [06:41:35]CAPDU: 80 0D 01 02 [06:41:35]Write to MH i2c: E2 08 00 BB 1E 80 0D 01 02 00 00 00 00 52 [06:41:35]Write i2c OK [06:41:35]MH_I2C_Read... [06:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:41:35]Read from MH i2c: E2 [06:41:35]MH_I2C_Read... [06:41:35]Read from MH i2c: E2 03 00 [06:41:35]MH_I2C_Read... [06:41:35]Read from MH i2c: E2 03 00 BB 1E 00 90 00 4D [06:41:35]RAPDU: 90 00 [06:41:35]wFMCommunicate OK [06:41:35]wFMCommunicate request_size=255 [06:41:35]MH_SAM_APDU [06:41: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 22 32 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EF 02 00 35 04 06 00 04 [06:41:35]Write to MH i2c: E2 02 01 BC 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 22 32 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EF 02 00 35 04 06 00 04 00 00 96 [06:41:35]Write i2c OK [06:41:35]MH_I2C_Read... [06:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:35]Read from MH i2c: E2 [06:41:35]MH_I2C_Read... [06:41:35]Read from MH i2c: E2 03 00 [06:41:35]MH_I2C_Read... [06:41:35]Read from MH i2c: E2 03 00 BC 1E 00 90 00 4E [06:41:35]RAPDU: 90 00 [06:41:35]wFMCommunicate OK [06:41:35]wFMCommunicate request_size=10 [06:41:35]MH_SAM_APDU [06:41:35]CAPDU: 80 0D 02 02 05 6D 5A 72 EC B6 [06:41:35]Write to MH i2c: E2 0D 00 BD 1E 80 0D 02 02 05 00 6D 5A 72 EC B6 00 00 3A [06:41:35]Write i2c OK [06:41:35]MH_I2C_Read... [06:41:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:35]Read from MH i2c: E2 [06:41:35]MH_I2C_Read... [06:41:35]Read from MH i2c: E2 03 00 [06:41:35]MH_I2C_Read... [06:41:35]Read from MH i2c: E2 03 00 BD 1E 00 90 00 4F [06:41:35]RAPDU: 90 00 [06:41:35]wFMCommunicate OK [06:41:35]wFMCommunicate request_size=4 [06:41:35]MH_SAM_APDU [06:41:35]CAPDU: 80 0D 03 02 [06:41:35]Write to MH i2c: E2 08 00 BE 1E 80 0D 03 02 00 00 00 00 57 [06:41:35]Write i2c OK [06:41:35]MH_I2C_Read... [06:41:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:41:36]Read from MH i2c: E2 [06:41:36]MH_I2C_Read... [06:41:36]Read from MH i2c: E2 0B 00 [06:41:36]MH_I2C_Read... [06:41:36]Read from MH i2c: E2 0B 00 BE 1E 00 3D 31 1F C0 53 EE 07 34 90 00 21 [06:41:36]RAPDU: 3D 31 1F C0 53 EE 07 34 90 00 [06:41:36]wFMCommunicate OK [06:41:36]SAM_PROTO_SignData done [06:41:36]FM_MakeSignedData done [06:41:36]CreateOFDProtocolMessage [06:41:36]wFMCommunicate request_size=4 [06:41:36]MH_SAM_APDU [06:41:36]CAPDU: 80 11 00 00 [06:41:36]Write to MH i2c: E2 08 00 BF 1E 80 11 00 00 00 00 00 00 57 [06:41:36]Write i2c OK [06:41:36]MH_I2C_Read... [06:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:36]Read from MH i2c: E2 [06:41:36]MH_I2C_Read... [06:41:36]Read from MH i2c: E2 17 00 [06:41:36]MH_I2C_Read... [06:41:36]Read from MH i2c: E2 17 00 BF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AA [06:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:41:36]wFMCommunicate OK [06:41:36]CreateOFDProtocolMessage done [06:41:36]OFDSenderStorePacket 192460 [06:41:36]StoreOFDPacket docnum=192460 [06:41:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D1 FB 07 01 CF 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 22 32 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EF 02 00 35 04 06 00 04 6D 5A 72 EC B6 3D 31 1F C0 53 EE 07 34 [06:41:36]CheckFolder [06:41:36]dirname=/storage/ofd_packets [06:41:36]CheckFolder done [06:41:36]ProducePacketName [06:41:36]name=ofd_packets/00192460 [06:41:36]NVStorageSaveData ofd_packets/00192460 [06:41:36]File name is /storage/ofd_packets/00192460 [06:41:36]Write 301 bytes [06:41:36]NVStorageSaveData done [06:41:36]OFDSenderStorePacket done [06:41:36]KKMCreateOFDPacket done [06:41:36]NVStorageSaveData kkm_last_timestamp [06:41:36]File name is /storage/kkm_last_timestamp [06:41:36]Write 4 bytes [06:41:36]NVStorageSaveData done [06:41:36]ExternCall_PrintAddStr [06:41:36]wPrintStart [06:41:36]Write to MH i2c: 01 00 00 C0 1E DE [06:41:36]Write i2c OK [06:41:36]MH_I2C_Read... [06:41:36]Read from MH i2c: 01 [06:41:36]MH_I2C_Read... [06:41:36]Read from MH i2c: 01 07 00 [06:41:36]MH_I2C_Read... [06:41:36]Read from MH i2c: 01 07 00 C0 1E 00 00 00 00 00 FF 0F F3 [06:41:36]RasterBufferAndPrint [06:41:36]line Счет N : (1)31775 [06:41:36]line ИНН: 02508201610067 [06:41:36]line Контрольно-Кассовый Чек [06:41:36]line ПРОДАЖА [06:41:36]line ТРК (МРК, ГНК) : 21 [06:41:36]line Товар: 2710124130 [06:41:36]line Аи-92-К-5 [06:41:36]line 11.960 * 66.90 [06:41:36]line = 800.12 [06:41:36]line НДС 12% НСП 1% [06:41:36]line > о реализуемом товаре [06:41:36]line ОКРУГЛЕНИЕ: -0.12 [06:41:36]line ИТОГО: 800.00 [06:41:36]line Внесено: 800.00 [06:41:36]line СДАЧА: 0.00 [06:41:36]line НСП 1% : 7.08 [06:41:36]line НДС 12% : 84.97 [06:41:36]line Наличными: 800.00 [06:41:36]line Безнал.: 0.00 [06:41:36]line Место: АЗС № 170 "Партнер Нефть" [06:41:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [06:41:36]line СНО: Общий режим [06:41:36]line Чек 8 28.10.2024 06:41 [06:41:36]line Смена: 543 ФФД: 1.0 [06:41:36]line ЗНМ: 0300000110 [06:41:36]line РНМ: 0000000000091776 [06:41:36]line Версия ККМ: 001 [06:41:36]line ФМ: 0000000000871754 [06:41:36]line ФД: 192460 [06:41:36]line ФПД: 4867715427510 [06:41:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T064138&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192460&fm=4867715427510&tin=02508201610067®Number=0000000000091776&sum=80000 [06:41:36]written 0, free lines is 4095 [06:41:36]OFD Sender: Processing packet 192460 [packets to send 75, broken 74] [06:41:36]ProducePacketName [06:41:36]name=ofd_packets/00192460 [06:41:36]OFD Sender: To server: pG, [06:41:36]CommunicateWithHost lk.salyk.kg:30040 [06:41:36]ConnectInit lk.salyk.kg [06:41:36]Connected sock=10 [06:41:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D1 FB 07 01 CF 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 22 32 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EF 02 00 35 04 06 00 04 6D 5A 72 EC B6 3D 31 1F C0 53 EE 07 34 [06:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 12 EA 47 00 5D 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EF 02 00 F4 03 04 00 E7 D6 1E 67 B6 04 01 00 00 B6 EE 94 01 DD B7 56 D9 [06:41:36]CommunicateWithHost err = 0 [06:41:36]CheckOFDResponse [06:41:36]1017 (14) - 77093643461234 [06:41:36]1041 (16) - 0000000000871754 [06:41:36]1040 (4) - 192460 [06:41:36]1012 (4) - 28.10.2024 00:12 [06:41:36]1206 (1) - 0 [06:41:36]OFD Sender: Remove packet 192460 [06:41:36]ProducePacketName [06:41:36]name=ofd_packets/00192460 [06:41:36]NVStorageDeleteData [06:41:36]Write to MH i2c: 01 00 00 EB 1E 09 [06:41:36]Write i2c OK [06:41:36]MH_I2C_Read... [06:41:36]Read from MH i2c: 01 [06:41:36]MH_I2C_Read... [06:41:36]Read from MH i2c: 01 07 00 [06:41:36]MH_I2C_Read... [06:41:36]Read from MH i2c: 01 07 00 EB 1E 00 00 00 00 00 A7 0C C3 [06:41:36]RasterBufferAndPrint [06:41:36]line [06:41:36]line [06:41:36]line [06:41:36]line [06:41:36]line [06:41:36]written 0, free lines is 3245 [06:41:36]MH_Cut [06:41:36]Write to MH i2c: D1 01 00 F2 1E 01 E2 [06:41:36]Write i2c OK [06:41:36]MH_I2C_Read... [06:41:36]Read from MH i2c: D1 [06:41:36]MH_I2C_Read... [06:41:36]Read from MH i2c: D1 01 00 [06:41:36]MH_I2C_Read... [06:41:36]Read from MH i2c: D1 01 00 F2 1E 00 E1 [06:41:36]Write to MH i2c: 01 00 00 F3 1E 11 [06:41:36]Write i2c OK [06:41:36]MH_I2C_Read... [06:41:37]OFD Sender: No OFD packet to send [06:41:37]*** Cut start [06:41:37]*** Partial cut [06:41:37]*** CUTSNS_PIN = 1 [06:41:37]*** CUTSNS_PIN = 0 [06:41:37]*** Brake cut motor [06:41:38]Read from MH i2c: 01 [06:41:38]MH_I2C_Read... [06:41:38]*** Stop cut motor [06:41:38]*** Cut end [06:41:38]Read from MH i2c: 01 07 00 [06:41:38]MH_I2C_Read... [06:41:38]Read from MH i2c: 01 07 00 F3 1E 00 00 00 00 00 FF 0F 26 [06:41:38]process_action close_receipt done [06:41:38]requested_data is exist [06:41:38]produce_requested_data [06:41:38]requested_item fm.sn is exist - process it [06:41:38]wFMCommunicate request_size=4 [06:41:38]MH_SAM_APDU [06:41:38]CAPDU: 80 11 00 00 [06:41:38]Write to MH i2c: E2 08 00 F4 1E 80 11 00 00 00 00 00 00 8C [06:41:38]Write i2c OK [06:41:38]MH_I2C_Read... [06:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:38]Read from MH i2c: E2 [06:41:38]MH_I2C_Read... [06:41:38]Read from MH i2c: E2 17 00 [06:41:38]MH_I2C_Read... [06:41:38]Read from MH i2c: E2 17 00 F4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [06:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:41:38]wFMCommunicate OK [06:41:38]requested_item fd.num is exist - process it [06:41:38]SAM_PROTO_GetFieldsCounters [06:41:38]wFMCommunicate request_size=4 [06:41:38]MH_SAM_APDU [06:41:38]CAPDU: 80 13 00 00 [06:41:38]Write to MH i2c: E2 08 00 F5 1E 80 13 00 00 00 00 00 00 8F [06:41:38]Write i2c OK [06:41:38]MH_I2C_Read... [06:41:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:41:38]Read from MH i2c: E2 [06:41:38]MH_I2C_Read... [06:41:38]Read from MH i2c: E2 62 00 [06:41:38]MH_I2C_Read... [06:41:38]Read from MH i2c: E2 62 00 F5 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CC EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [06:41:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CC EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:41:38]wFMCommunicate OK [06:41:38]SAM_PROTO_GetFieldsCounters done [06:41:38]requested_item shift.num is exist - process it [06:41:38]requested_item shift.opened is exist - process it [06:41:38]req_shift_opened [06:41:38]FM_GetShiftState [06:41:38]SAM_PROTO_GetShiftState [06:41:38]wFMCommunicate request_size=4 [06:41:38]MH_SAM_APDU [06:41:38]CAPDU: 80 13 01 00 [06:41:38]Write to MH i2c: E2 08 00 F6 1E 80 13 01 00 00 00 00 00 91 [06:41:38]Write i2c OK [06:41:38]MH_I2C_Read... [06:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:38]Read from MH i2c: E2 [06:41:38]MH_I2C_Read... [06:41:38]Read from MH i2c: E2 0E 00 [06:41:38]MH_I2C_Read... [06:41:38]Read from MH i2c: E2 0E 00 F6 1E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E1 [06:41:38]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [06:41:38]wFMCommunicate OK [06:41:38]SAM_PROTO_GetShiftState done [06:41:38]FM_GetShiftState done [06:41:38]req_shift_opened done [06:41:38]requested_item shift.open_date is exist - process it [06:41:38]req_shift_open_date [06:41:38]req_shift_open_date done [06:41:38]produce_requested_data done [06:41:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192460,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [06:41:38]process_action_free close_receipt [06:41:38]json_value_free [06:41:38]json_value_free done [06:41:38]process_json_proto returns [06:41:38]Send response to host [06:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192460,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [06:41:38]free response buf [06:41:38]execute_script done [06:41:38]execute_script returns [06:41:38]free content buf [06:41:38]Sock 7.Close socket [06:41:38]Sock 7.Thread stoped [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:30]accept exits with 9 [06:53:30]New connection [06:53:30]New thread 3066563940 created [06:53:30]Thread 3066707300 joined [06:53:30]Waiting for new connection... [06:53:30] Sock 9.Parse request [06:53:30]Sock 9.Check first char [06:53:30]Sock 9.First char is OK [06:53:30]request: POST /json_proto HTTP/1.0 [06:53:30]Method: POST [06:53:30]URL: /json_proto [06:53:30]Method is POST - this is cgi request [06:53:30]url: /json_proto [06:53:30]query_string will be loaded in cgi processing [06:53:30]execute_cgi json_proto POST (null) [06:53:30]execute_cgi path=json_proto method=POST [06:53:30]POST find Content-Length [06:53:30]Host: 172.17.63.131:8080 [06:53:30]Content-Length: 676 [06:53:30]Content-Type: application/json [06:53:30] [06:53:30]POST finish read [06:53:30]Found Content-Length = 676 [06:53:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:30]execute_script... [06:53: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)31776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:30]POST & json_proto [06:53:30]process_json_proto [06:53:30]json parsed OK: [06:53:30]protocol is kg_v1.0 [06:53:30]action value=close_receipt [06:53:30]process_action close_receipt [06:53:30]cmd_close_receipt [06:53:30]MH_GetDate [06:53:30]Write to MH i2c: F0 00 00 F7 1E 04 [06:53:30]Write i2c OK [06:53:30]MH_I2C_Read... [06:53:30]Read from MH i2c: F0 [06:53:30]MH_I2C_Read... [06:53:30]Read from MH i2c: F0 09 00 [06:53:30]MH_I2C_Read... [06:53:30]Read from MH i2c: F0 09 00 F7 1E 00 EE 34 1F 67 22 05 6E 64 AE [06:53:30]GetLastDocTimeStamp 1730097698 [06:53:30]current date 1730098414 [06:53:30]FM_GetShiftState [06:53:30]SAM_PROTO_GetShiftState [06:53:30]wFMCommunicate request_size=4 [06:53:30]MH_SAM_APDU [06:53:30]CAPDU: 80 13 01 00 [06:53:30]Write to MH i2c: E2 08 00 F8 1E 80 13 01 00 00 00 00 00 93 [06:53:30]Write i2c OK [06:53:30]MH_I2C_Read... [06:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:30]Read from MH i2c: E2 [06:53:30]MH_I2C_Read... [06:53:30]Read from MH i2c: E2 0E 00 [06:53:30]MH_I2C_Read... [06:53:30]Read from MH i2c: E2 0E 00 F8 1E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E3 [06:53:30]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [06:53:30]wFMCommunicate OK [06:53:30]SAM_PROTO_GetShiftState done [06:53:30]FM_GetShiftState done [06:53:30]opened in 1730075620 [06:53:30]opened+sec_in_day 1730162020 [06:53:30]quantity*price = 60009 [06:53:30]sum+1 = 60010 [06:53:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 9 28.10.2024 06:53 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192461 ФПД: 40507512176575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T065334&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192461&fm=40507512176575&tin=02508201610067®Number=0000000000091776&sum=60000 [06:53:31]StoreToDocumentArchive [06:53:31]shift 543 fd 192461 [06:53:31]save to /storage/0543/doc_00192461 [06:53:31]save last doc name /storage/0543/doc_00192461 to /storage/kkm_last_doc_name [06:53:31]save OK [06:53:31]Clear old archive folders... [06:53:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:53:31]tlvbuf is 01991040 [06:53:31]SAM_PROTO_ClearQueue [06:53:31]wFMCommunicate request_size=4 [06:53:31]MH_SAM_APDU [06:53:31]CAPDU: 80 09 00 00 [06:53:31]Write to MH i2c: E2 08 00 05 1F 80 09 00 00 00 00 00 00 96 [06:53:31]Write i2c OK [06:53:31]MH_I2C_Read... [06:53:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:53:31]Read from MH i2c: E2 [06:53:31]MH_I2C_Read... [06:53:31]Read from MH i2c: E2 03 00 [06:53:31]MH_I2C_Read... [06:53:31]Read from MH i2c: E2 03 00 05 1F 00 90 00 98 [06:53:31]RAPDU: 90 00 [06:53:31]wFMCommunicate OK [06:53:31]SAM_PROTO_ClearQueue done [06:53:31]KKMCreateOFDPacket [06:53:31]OFDProtocolAddRootSTLVToBuf [06:53:31]FM_MakeSignedData [06:53:31]FM_MakeSignedData [06:53:31]SAM_PROTO_SignData [06:53:31]wFMCommunicate request_size=4 [06:53:31]MH_SAM_APDU [06:53:31]CAPDU: 80 0D 01 02 [06:53:31]Write to MH i2c: E2 08 00 06 1F 80 0D 01 02 00 00 00 00 9E [06:53:31]Write i2c OK [06:53:31]MH_I2C_Read... [06:53:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:53:31]Read from MH i2c: E2 [06:53:31]MH_I2C_Read... [06:53:31]Read from MH i2c: E2 03 00 [06:53:31]MH_I2C_Read... [06:53:31]Read from MH i2c: E2 03 00 06 1F 00 90 00 99 [06:53:31]RAPDU: 90 00 [06:53:31]wFMCommunicate OK [06:53:31]wFMCommunicate request_size=255 [06:53:31]MH_SAM_APDU [06:53: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 EE 34 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EF 02 00 35 04 06 00 24 [06:53:31]Write to MH i2c: E2 02 01 07 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 EE 34 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EF 02 00 35 04 06 00 24 00 00 C3 [06:53:31]Write i2c OK [06:53:31]MH_I2C_Read... [06:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:31]Read from MH i2c: E2 [06:53:31]MH_I2C_Read... [06:53:31]Read from MH i2c: E2 03 00 [06:53:31]MH_I2C_Read... [06:53:31]Read from MH i2c: E2 03 00 07 1F 00 90 00 9A [06:53:31]RAPDU: 90 00 [06:53:31]wFMCommunicate OK [06:53:31]wFMCommunicate request_size=10 [06:53:31]MH_SAM_APDU [06:53:31]CAPDU: 80 0D 02 02 05 D7 63 DF BF BF [06:53:31]Write to MH i2c: E2 0D 00 08 1F 80 0D 02 02 05 00 D7 63 DF BF BF 00 00 42 [06:53:31]Write i2c OK [06:53:31]MH_I2C_Read... [06:53:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:32]Read from MH i2c: E2 [06:53:32]MH_I2C_Read... [06:53:32]Read from MH i2c: E2 03 00 [06:53:32]MH_I2C_Read... [06:53:32]Read from MH i2c: E2 03 00 08 1F 00 90 00 9B [06:53:32]RAPDU: 90 00 [06:53:32]wFMCommunicate OK [06:53:32]wFMCommunicate request_size=4 [06:53:32]MH_SAM_APDU [06:53:32]CAPDU: 80 0D 03 02 [06:53:32]Write to MH i2c: E2 08 00 09 1F 80 0D 03 02 00 00 00 00 A3 [06:53:32]Write i2c OK [06:53:32]MH_I2C_Read... [06:53:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:53:32]Read from MH i2c: E2 [06:53:32]MH_I2C_Read... [06:53:32]Read from MH i2c: E2 0B 00 [06:53:32]MH_I2C_Read... [06:53:32]Read from MH i2c: E2 0B 00 09 1F 00 51 41 13 A1 D2 B5 81 D4 90 00 C6 [06:53:32]RAPDU: 51 41 13 A1 D2 B5 81 D4 90 00 [06:53:32]wFMCommunicate OK [06:53:32]SAM_PROTO_SignData done [06:53:32]FM_MakeSignedData done [06:53:32]CreateOFDProtocolMessage [06:53:32]wFMCommunicate request_size=4 [06:53:32]MH_SAM_APDU [06:53:32]CAPDU: 80 11 00 00 [06:53:32]Write to MH i2c: E2 08 00 0A 1F 80 11 00 00 00 00 00 00 A3 [06:53:32]Write i2c OK [06:53:32]MH_I2C_Read... [06:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:32]Read from MH i2c: E2 [06:53:32]MH_I2C_Read... [06:53:32]Read from MH i2c: E2 17 00 [06:53:32]MH_I2C_Read... [06:53:32]Read from MH i2c: E2 17 00 0A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F6 [06:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:53:32]wFMCommunicate OK [06:53:32]CreateOFDProtocolMessage done [06:53:32]OFDSenderStorePacket 192461 [06:53:32]StoreOFDPacket docnum=192461 [06:53:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 89 81 07 01 99 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 EE 34 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EF 02 00 35 04 06 00 24 D7 63 DF BF BF 51 41 13 A1 D2 B5 81 D4 [06:53:32]CheckFolder [06:53:32]dirname=/storage/ofd_packets [06:53:32]CheckFolder done [06:53:32]ProducePacketName [06:53:32]name=ofd_packets/00192461 [06:53:32]NVStorageSaveData ofd_packets/00192461 [06:53:32]File name is /storage/ofd_packets/00192461 [06:53:32]Write 301 bytes [06:53:32]NVStorageSaveData done [06:53:32]OFDSenderStorePacket done [06:53:32]KKMCreateOFDPacket done [06:53:32]NVStorageSaveData kkm_last_timestamp [06:53:32]File name is /storage/kkm_last_timestamp [06:53:32]Write 4 bytes [06:53:32]NVStorageSaveData done [06:53:32]ExternCall_PrintAddStr [06:53:32]wPrintStart [06:53:32]Write to MH i2c: 01 00 00 0B 1F 2A [06:53:32]Write i2c OK [06:53:32]MH_I2C_Read... [06:53:32]Read from MH i2c: 01 [06:53:32]MH_I2C_Read... [06:53:32]Read from MH i2c: 01 07 00 [06:53:32]MH_I2C_Read... [06:53:32]Read from MH i2c: 01 07 00 0B 1F 00 00 00 00 00 FF 0F 3F [06:53:32]RasterBufferAndPrint [06:53:32]line Счет N : (1)31776 [06:53:32]line ИНН: 02508201610067 [06:53:32]line Контрольно-Кассовый Чек [06:53:32]line ПРОДАЖА [06:53:32]line ТРК (МРК, ГНК) : 21 [06:53:32]line Товар: 2710124130 [06:53:32]line Аи-92-К-5 [06:53:32]line 8.970 * 66.90 [06:53:32]line = 600.09 [06:53:32]line НДС 12% НСП 1% [06:53:32]line > о реализуемом товаре [06:53:32]line ОКРУГЛЕНИЕ: -0.09 [06:53:32]line ИТОГО: 600.00 [06:53:32]line Внесено: 600.00 [06:53:32]line СДАЧА: 0.00 [06:53:32]line НСП 1% : 5.31 [06:53:32]line НДС 12% : 63.73 [06:53:32]line Наличными: 600.00 [06:53:32]line Безнал.: 0.00 [06:53:32]line Место: АЗС № 170 "Партнер Нефть" [06:53:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [06:53:32]line СНО: Общий режим [06:53:32]line Чек 9 28.10.2024 06:53 [06:53:32]line Смена: 543 ФФД: 1.0 [06:53:32]line ЗНМ: 0300000110 [06:53:32]line РНМ: 0000000000091776 [06:53:32]line Версия ККМ: 001 [06:53:32]line ФМ: 0000000000871754 [06:53:32]line ФД: 192461 [06:53:32]line ФПД: 40507512176575 [06:53:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T065334&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192461&fm=40507512176575&tin=02508201610067®Number=0000000000091776&sum=60000 [06:53:32]OFD Sender: Processing packet 192461 [packets to send 75, broken 74] [06:53:32]ProducePacketName [06:53:32]name=ofd_packets/00192461 [06:53:32]OFD Sender: To server: pG, [06:53:32]CommunicateWithHost lk.salyk.kg:30040 [06:53:32]ConnectInit lk.salyk.kg [06:53:32]written 0, free lines is 4095 [06:53:32]Connected sock=10 [06:53:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 89 81 07 01 99 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 EE 34 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EF 02 00 35 04 06 00 24 D7 63 DF BF BF 51 41 13 A1 D2 B5 81 D4 [06:53:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 34 F3 47 00 FA 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EF 02 00 F4 03 04 00 B3 D9 1E 67 B6 04 01 00 00 74 1C 1D F8 F7 3E 8C BD [06:53:32]CommunicateWithHost err = 0 [06:53:32]CheckOFDResponse [06:53:32]1017 (14) - 77093643461234 [06:53:32]1041 (16) - 0000000000871754 [06:53:32]1040 (4) - 192461 [06:53:32]1012 (4) - 28.10.2024 00:24 [06:53:32]1206 (1) - 0 [06:53:32]OFD Sender: Remove packet 192461 [06:53:32]ProducePacketName [06:53:32]name=ofd_packets/00192461 [06:53:32]NVStorageDeleteData [06:53:32]Write to MH i2c: 01 00 00 36 1F 55 [06:53:32]Write i2c OK [06:53:32]MH_I2C_Read... [06:53:32]Read from MH i2c: 01 [06:53:32]MH_I2C_Read... [06:53:32]Read from MH i2c: 01 07 00 [06:53:32]MH_I2C_Read... [06:53:32]Read from MH i2c: 01 07 00 36 1F 00 00 00 00 00 96 0C FE [06:53:32]RasterBufferAndPrint [06:53:32]line [06:53:32]line [06:53:32]line [06:53:32]line [06:53:32]line [06:53:32]written 0, free lines is 3228 [06:53:32]MH_Cut [06:53:32]Write to MH i2c: D1 01 00 3D 1F 01 2E [06:53:32]Write i2c OK [06:53:32]MH_I2C_Read... [06:53:32]Read from MH i2c: D1 [06:53:32]MH_I2C_Read... [06:53:32]Read from MH i2c: D1 01 00 [06:53:32]MH_I2C_Read... [06:53:32]Read from MH i2c: D1 01 00 3D 1F 00 2D [06:53:32]Write to MH i2c: 01 00 00 3E 1F 5D [06:53:32]Write i2c OK [06:53:32]MH_I2C_Read... [06:53:33]OFD Sender: No OFD packet to send [06:53:33]*** Cut start [06:53:33]*** Partial cut [06:53:33]*** CUTSNS_PIN = 1 [06:53:33]*** CUTSNS_PIN = 0 [06:53:34]*** Brake cut motor [06:53:34]Read from MH i2c: 01 [06:53:34]MH_I2C_Read... [06:53:34]*** Stop cut motor [06:53:34]*** Cut end [06:53:34]Read from MH i2c: 01 07 00 [06:53:34]MH_I2C_Read... [06:53:34]Read from MH i2c: 01 07 00 3E 1F 00 00 00 00 00 FF 0F 72 [06:53:34]process_action close_receipt done [06:53:34]requested_data is exist [06:53:34]produce_requested_data [06:53:34]requested_item fm.sn is exist - process it [06:53:34]wFMCommunicate request_size=4 [06:53:34]MH_SAM_APDU [06:53:34]CAPDU: 80 11 00 00 [06:53:34]Write to MH i2c: E2 08 00 3F 1F 80 11 00 00 00 00 00 00 D8 [06:53:34]Write i2c OK [06:53:34]MH_I2C_Read... [06:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:34]Read from MH i2c: E2 [06:53:34]MH_I2C_Read... [06:53:34]Read from MH i2c: E2 17 00 [06:53:34]MH_I2C_Read... [06:53:34]Read from MH i2c: E2 17 00 3F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2B [06:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:53:34]wFMCommunicate OK [06:53:34]requested_item fd.num is exist - process it [06:53:34]SAM_PROTO_GetFieldsCounters [06:53:34]wFMCommunicate request_size=4 [06:53:34]MH_SAM_APDU [06:53:34]CAPDU: 80 13 00 00 [06:53:34]Write to MH i2c: E2 08 00 40 1F 80 13 00 00 00 00 00 00 DB [06:53:34]Write i2c OK [06:53:34]MH_I2C_Read... [06:53:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:53:34]Read from MH i2c: E2 [06:53:34]MH_I2C_Read... [06:53:34]Read from MH i2c: E2 62 00 [06:53:34]MH_I2C_Read... [06:53:34]Read from MH i2c: E2 62 00 40 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CD EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [06:53:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CD EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:53:34]wFMCommunicate OK [06:53:34]SAM_PROTO_GetFieldsCounters done [06:53:34]requested_item shift.num is exist - process it [06:53:34]requested_item shift.opened is exist - process it [06:53:34]req_shift_opened [06:53:34]FM_GetShiftState [06:53:34]SAM_PROTO_GetShiftState [06:53:34]wFMCommunicate request_size=4 [06:53:34]MH_SAM_APDU [06:53:34]CAPDU: 80 13 01 00 [06:53:34]Write to MH i2c: E2 08 00 41 1F 80 13 01 00 00 00 00 00 DD [06:53:34]Write i2c OK [06:53:34]MH_I2C_Read... [06:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:34]Read from MH i2c: E2 [06:53:34]MH_I2C_Read... [06:53:34]Read from MH i2c: E2 0E 00 [06:53:34]MH_I2C_Read... [06:53:34]Read from MH i2c: E2 0E 00 41 1F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2D [06:53:34]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [06:53:34]wFMCommunicate OK [06:53:34]SAM_PROTO_GetShiftState done [06:53:34]FM_GetShiftState done [06:53:34]req_shift_opened done [06:53:34]requested_item shift.open_date is exist - process it [06:53:34]req_shift_open_date [06:53:34]req_shift_open_date done [06:53:34]produce_requested_data done [06:53:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192461,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [06:53:34]process_action_free close_receipt [06:53:34]json_value_free [06:53:34]json_value_free done [06:53:34]process_json_proto returns [06:53:34]Send response to host [06:53:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192461,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [06:53:34]free response buf [06:53:34]execute_script done [06:53:34]execute_script returns [06:53:34]free content buf [06:53:34]Sock 9.Close socket [06:53:34]Sock 9.Thread stoped [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:57]accept exits with 7 [06:55:57]New connection [06:55:57]New thread 3066707300 created [06:55:57]Thread 3066563940 joined [06:55:57]Waiting for new connection... [06:55:57] Sock 7.Parse request [06:55:57]Sock 7.Check first char [06:55:57]Sock 7.First char is OK [06:55:57]request: POST /json_proto HTTP/1.0 [06:55:57]Method: POST [06:55:57]URL: /json_proto [06:55:57]Method is POST - this is cgi request [06:55:57]url: /json_proto [06:55:57]query_string will be loaded in cgi processing [06:55:57]execute_cgi json_proto POST (null) [06:55:57]execute_cgi path=json_proto method=POST [06:55:57]POST find Content-Length [06:55:57]Host: 172.17.63.131:8080 [06:55:57]Content-Length: 862 [06:55:57]Content-Type: application/json [06:55:57] [06:55:57]POST finish read [06:55:57]Found Content-Length = 862 [06:55:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:55:57]execute_script... [06:55:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:55:57]POST & json_proto [06:55:57]process_json_proto [06:55:57]json parsed OK: [06:55:57]protocol is kg_v1.0 [06:55:57]action value=close_receipt [06:55:57]process_action close_receipt [06:55:57]cmd_close_receipt [06:55:57]MH_GetDate [06:55:57]Write to MH i2c: F0 00 00 42 1F 50 [06:55:57]Write i2c OK [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: F0 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: F0 09 00 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: F0 09 00 42 1F 00 81 35 1F 67 22 05 6E 64 8E [06:55:57]GetLastDocTimeStamp 1730098414 [06:55:57]current date 1730098561 [06:55:57]FM_GetShiftState [06:55:57]SAM_PROTO_GetShiftState [06:55:57]wFMCommunicate request_size=4 [06:55:57]MH_SAM_APDU [06:55:57]CAPDU: 80 13 01 00 [06:55:57]Write to MH i2c: E2 08 00 43 1F 80 13 01 00 00 00 00 00 DF [06:55:57]Write i2c OK [06:55:57]MH_I2C_Read... [06:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:55:57]Read from MH i2c: E2 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: E2 0E 00 [06:55:57]MH_I2C_Read... [06:55:57]Read from MH i2c: E2 0E 00 43 1F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2F [06:55:57]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [06:55:57]wFMCommunicate OK [06:55:57]SAM_PROTO_GetShiftState done [06:55:57]FM_GetShiftState done [06:55:57]opened in 1730075620 [06:55:57]opened+sec_in_day 1730162020 [06:55:57]quantity*price = 40006 [06:55:57]sum+1 = 40007 [06:55:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 10 28.10.2024 06:56 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192462 ФПД: 214323063355778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T065601&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192462&fm=214323063355778&tin=02508201610067®Number=0000000000091776&sum=40006 [06:55:58]StoreToDocumentArchive [06:55:58]shift 543 fd 192462 [06:55:58]save to /storage/0543/doc_00192462 [06:55:58]save last doc name /storage/0543/doc_00192462 to /storage/kkm_last_doc_name [06:55:58]save OK [06:55:58]Clear old archive folders... [06:55:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:55:58]tlvbuf is 019EE450 [06:55:58]SAM_PROTO_ClearQueue [06:55:58]wFMCommunicate request_size=4 [06:55:58]MH_SAM_APDU [06:55:58]CAPDU: 80 09 00 00 [06:55:58]Write to MH i2c: E2 08 00 50 1F 80 09 00 00 00 00 00 00 E1 [06:55:58]Write i2c OK [06:55:58]MH_I2C_Read... [06:55:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:55:58]Read from MH i2c: E2 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: E2 03 00 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: E2 03 00 50 1F 00 90 00 E3 [06:55:58]RAPDU: 90 00 [06:55:58]wFMCommunicate OK [06:55:58]SAM_PROTO_ClearQueue done [06:55:58]KKMCreateOFDPacket [06:55:58]OFDProtocolAddRootSTLVToBuf [06:55:58]FM_MakeSignedData [06:55:58]FM_MakeSignedData [06:55:58]SAM_PROTO_SignData [06:55:58]wFMCommunicate request_size=4 [06:55:58]MH_SAM_APDU [06:55:58]CAPDU: 80 0D 01 02 [06:55:58]Write to MH i2c: E2 08 00 51 1F 80 0D 01 02 00 00 00 00 E9 [06:55:58]Write i2c OK [06:55:58]MH_I2C_Read... [06:55:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:55:58]Read from MH i2c: E2 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: E2 03 00 [06:55:58]MH_I2C_Read... [06:55:58]Read from MH i2c: E2 03 00 51 1F 00 90 00 E4 [06:55:58]RAPDU: 90 00 [06:55:58]wFMCommunicate OK [06:55:58]wFMCommunicate request_size=255 [06:55:58]MH_SAM_APDU [06:55:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 81 35 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EF 02 00 35 04 06 00 C2 [06:55:58]Write to MH i2c: E2 02 01 52 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 81 35 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EF 02 00 35 04 06 00 C2 00 00 40 [06:55:58]Write i2c OK [06:55:58]MH_I2C_Read... [06:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:59]Read from MH i2c: E2 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: E2 03 00 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: E2 03 00 52 1F 00 90 00 E5 [06:55:59]RAPDU: 90 00 [06:55:59]wFMCommunicate OK [06:55:59]wFMCommunicate request_size=10 [06:55:59]MH_SAM_APDU [06:55:59]CAPDU: 80 0D 02 02 05 EC FA 0E F9 82 [06:55:59]Write to MH i2c: E2 0D 00 53 1F 80 0D 02 02 05 00 EC FA 0E F9 82 00 00 65 [06:55:59]Write i2c OK [06:55:59]MH_I2C_Read... [06:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:55:59]Read from MH i2c: E2 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: E2 03 00 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: E2 03 00 53 1F 00 90 00 E6 [06:55:59]RAPDU: 90 00 [06:55:59]wFMCommunicate OK [06:55:59]wFMCommunicate request_size=4 [06:55:59]MH_SAM_APDU [06:55:59]CAPDU: 80 0D 03 02 [06:55:59]Write to MH i2c: E2 08 00 54 1F 80 0D 03 02 00 00 00 00 EE [06:55:59]Write i2c OK [06:55:59]MH_I2C_Read... [06:55:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:55:59]Read from MH i2c: E2 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: E2 0B 00 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: E2 0B 00 54 1F 00 66 65 E2 63 7D 0B 4D 7A 90 00 4E [06:55:59]RAPDU: 66 65 E2 63 7D 0B 4D 7A 90 00 [06:55:59]wFMCommunicate OK [06:55:59]SAM_PROTO_SignData done [06:55:59]FM_MakeSignedData done [06:55:59]CreateOFDProtocolMessage [06:55:59]wFMCommunicate request_size=4 [06:55:59]MH_SAM_APDU [06:55:59]CAPDU: 80 11 00 00 [06:55:59]Write to MH i2c: E2 08 00 55 1F 80 11 00 00 00 00 00 00 EE [06:55:59]Write i2c OK [06:55:59]MH_I2C_Read... [06:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:55:59]Read from MH i2c: E2 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: E2 17 00 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: E2 17 00 55 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 41 [06:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:55:59]wFMCommunicate OK [06:55:59]CreateOFDProtocolMessage done [06:55:59]OFDSenderStorePacket 192462 [06:55:59]StoreOFDPacket docnum=192462 [06:55:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 06 07 01 A3 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 81 35 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EF 02 00 35 04 06 00 C2 EC FA 0E F9 82 66 65 E2 63 7D 0B 4D 7A [06:55:59]CheckFolder [06:55:59]dirname=/storage/ofd_packets [06:55:59]CheckFolder done [06:55:59]ProducePacketName [06:55:59]name=ofd_packets/00192462 [06:55:59]NVStorageSaveData ofd_packets/00192462 [06:55:59]File name is /storage/ofd_packets/00192462 [06:55:59]Write 301 bytes [06:55:59]NVStorageSaveData done [06:55:59]OFDSenderStorePacket done [06:55:59]KKMCreateOFDPacket done [06:55:59]NVStorageSaveData kkm_last_timestamp [06:55:59]File name is /storage/kkm_last_timestamp [06:55:59]Write 4 bytes [06:55:59]NVStorageSaveData done [06:55:59]ExternCall_PrintAddStr [06:55:59]wPrintStart [06:55:59]Write to MH i2c: 01 00 00 56 1F 75 [06:55:59]Write i2c OK [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: 01 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: 01 07 00 [06:55:59]MH_I2C_Read... [06:55:59]Read from MH i2c: 01 07 00 56 1F 00 00 00 00 00 FF 0F 8A [06:55:59]RasterBufferAndPrint [06:55:59]line Счет N : (1)31777 [06:55:59]line ИНН: 02508201610067 [06:55:59]line Контрольно-Кассовый Чек [06:55:59]line ПРОДАЖА [06:55:59]line ТРК (МРК, ГНК) : 12 [06:55:59]line Товар: 2710124130 [06:55:59]line Аи-92-К-5 [06:55:59]line 5.980 * 66.90 [06:55:59]line = 400.06 [06:55:59]line НДС 12% НСП 1% [06:55:59]line > о реализуемом товаре [06:55:59]line ИТОГО: 400.06 [06:55:59]line НСП 1% : 3.54 [06:55:59]line НДС 12% : 42.48 [06:55:59]line Наличными: 0.00 [06:55:59]line Безнал.: 400.06 [06:55:59]line Место: АЗС № 170 "Партнер Нефть" [06:55:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [06:55:59]line СНО: Общий режим [06:55:59]line Чек 10 28.10.2024 06:56 [06:55:59]line Смена: 543 ФФД: 1.0 [06:55:59]line ЗНМ: 0300000110 [06:55:59]line РНМ: 0000000000091776 [06:55:59]line Версия ККМ: 001 [06:55:59]line Платежная система: Кыргызкоммерцбанк [06:55:59]line ФМ: 0000000000871754 [06:55:59]line ФД: 192462 [06:55:59]line ФПД: 214323063355778 [06:55:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T065601&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192462&fm=214323063355778&tin=02508201610067®Number=0000000000091776&sum=40006 [06:55:59]written 0, free lines is 4095 [06:55:59]OFD Sender: Processing packet 192462 [packets to send 75, broken 74] [06:55:59]ProducePacketName [06:55:59]name=ofd_packets/00192462 [06:55:59]OFD Sender: To server: pG, [06:55:59]CommunicateWithHost lk.salyk.kg:30040 [06:55:59]ConnectInit lk.salyk.kg [06:55:59]Connected sock=10 [06:55:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 06 07 01 A3 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 81 35 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EF 02 00 35 04 06 00 C2 EC FA 0E F9 82 66 65 E2 63 7D 0B 4D 7A [06:56:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4F F5 47 00 C1 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 31 37 35 34 10 04 04 00 CE EF 02 00 F4 03 04 00 46 DA 1E 67 B6 04 01 00 00 8F AC 72 62 AE 8A 24 FB [06:56:00]CommunicateWithHost err = 0 [06:56:00]CheckOFDResponse [06:56:00]1017 (14) - 77093643461234 [06:56:00]1041 (16) - 0000000000871754 [06:56:00]1040 (4) - 192462 [06:56:00]1012 (4) - 28.10.2024 00:26 [06:56:00]1206 (1) - 0 [06:56:00]OFD Sender: Remove packet 192462 [06:56:00]ProducePacketName [06:56:00]name=ofd_packets/00192462 [06:56:00]NVStorageDeleteData [06:56:00]Write to MH i2c: 01 00 00 80 1F 9F [06:56:00]Write i2c OK [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: 01 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: 01 07 00 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: 01 07 00 80 1F 00 00 00 00 00 B6 0C 68 [06:56:00]RasterBufferAndPrint [06:56:00]line [06:56:00]line [06:56:00]line [06:56:00]line [06:56:00]line [06:56:00]written 0, free lines is 3262 [06:56:00]MH_Cut [06:56:00]Write to MH i2c: D1 01 00 87 1F 01 78 [06:56:00]Write i2c OK [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: D1 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: D1 01 00 [06:56:00]MH_I2C_Read... [06:56:00]Read from MH i2c: D1 01 00 87 1F 00 77 [06:56:00]Write to MH i2c: 01 00 00 88 1F A7 [06:56:00]Write i2c OK [06:56:00]MH_I2C_Read... [06:56:00]OFD Sender: No OFD packet to send [06:56:01]*** Cut start [06:56:01]*** Partial cut [06:56:01]*** CUTSNS_PIN = 1 [06:56:01]*** CUTSNS_PIN = 0 [06:56:01]*** Brake cut motor [06:56:01]Read from MH i2c: 01 [06:56:01]MH_I2C_Read... [06:56:01]*** Stop cut motor [06:56:01]*** Cut end [06:56:01]Read from MH i2c: 01 07 00 [06:56:01]MH_I2C_Read... [06:56:01]Read from MH i2c: 01 07 00 88 1F 00 00 00 00 00 FF 0F BC [06:56:01]process_action close_receipt done [06:56:01]requested_data is exist [06:56:01]produce_requested_data [06:56:01]requested_item fm.sn is exist - process it [06:56:01]wFMCommunicate request_size=4 [06:56:01]MH_SAM_APDU [06:56:01]CAPDU: 80 11 00 00 [06:56:01]Write to MH i2c: E2 08 00 89 1F 80 11 00 00 00 00 00 00 22 [06:56:01]Write i2c OK [06:56:01]MH_I2C_Read... [06:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:01]Read from MH i2c: E2 [06:56:01]MH_I2C_Read... [06:56:01]Read from MH i2c: E2 17 00 [06:56:01]MH_I2C_Read... [06:56:01]Read from MH i2c: E2 17 00 89 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 75 [06:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:56:01]wFMCommunicate OK [06:56:01]requested_item fd.num is exist - process it [06:56:01]SAM_PROTO_GetFieldsCounters [06:56:01]wFMCommunicate request_size=4 [06:56:01]MH_SAM_APDU [06:56:01]CAPDU: 80 13 00 00 [06:56:01]Write to MH i2c: E2 08 00 8A 1F 80 13 00 00 00 00 00 00 25 [06:56:01]Write i2c OK [06:56:01]MH_I2C_Read... [06:56:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:56:01]Read from MH i2c: E2 [06:56:01]MH_I2C_Read... [06:56:01]Read from MH i2c: E2 62 00 [06:56:01]MH_I2C_Read... [06:56:01]Read from MH i2c: E2 62 00 8A 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CE EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [06:56:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CE EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:56:01]wFMCommunicate OK [06:56:01]SAM_PROTO_GetFieldsCounters done [06:56:01]requested_item shift.num is exist - process it [06:56:01]requested_item shift.opened is exist - process it [06:56:01]req_shift_opened [06:56:01]FM_GetShiftState [06:56:01]SAM_PROTO_GetShiftState [06:56:01]wFMCommunicate request_size=4 [06:56:01]MH_SAM_APDU [06:56:01]CAPDU: 80 13 01 00 [06:56:01]Write to MH i2c: E2 08 00 8B 1F 80 13 01 00 00 00 00 00 27 [06:56:01]Write i2c OK [06:56:01]MH_I2C_Read... [06:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:01]Read from MH i2c: E2 [06:56:01]MH_I2C_Read... [06:56:01]Read from MH i2c: E2 0E 00 [06:56:01]MH_I2C_Read... [06:56:01]Read from MH i2c: E2 0E 00 8B 1F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 77 [06:56:01]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [06:56:01]wFMCommunicate OK [06:56:01]SAM_PROTO_GetShiftState done [06:56:01]FM_GetShiftState done [06:56:01]req_shift_opened done [06:56:01]requested_item shift.open_date is exist - process it [06:56:01]req_shift_open_date [06:56:01]req_shift_open_date done [06:56:01]produce_requested_data done [06:56:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192462,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [06:56:01]process_action_free close_receipt [06:56:01]json_value_free [06:56:01]json_value_free done [06:56:01]process_json_proto returns [06:56:01]Send response to host [06:56:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192462,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [06:56:01]free response buf [06:56:01]execute_script done [06:56:01]execute_script returns [06:56:01]free content buf [06:56:01]Sock 7.Close socket [06:56:01]Sock 7.Thread stoped [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]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:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]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:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20: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:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:32]accept exits with 9 [07:37:32]New connection [07:37:32]New thread 3066563940 created [07:37:32]Thread 3066707300 joined [07:37:32]Waiting for new connection... [07:37:32] Sock 9.Parse request [07:37:32]Sock 9.Check first char [07:37:32]Sock 9.First char is OK [07:37:32]request: POST /json_proto HTTP/1.0 [07:37:32]Method: POST [07:37:32]URL: /json_proto [07:37:32]Method is POST - this is cgi request [07:37:32]url: /json_proto [07:37:32]query_string will be loaded in cgi processing [07:37:32]execute_cgi json_proto POST (null) [07:37:32]execute_cgi path=json_proto method=POST [07:37:32]POST find Content-Length [07:37:32]Host: 172.17.63.131:8080 [07:37:32]Content-Length: 676 [07:37:32]Content-Type: application/json [07:37:32] [07:37:32]POST finish read [07:37:32]Found Content-Length = 676 [07:37:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:37:32]execute_script... [07:37:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:37:32]POST & json_proto [07:37:32]process_json_proto [07:37:32]json parsed OK: [07:37:32]protocol is kg_v1.0 [07:37:32]action value=close_receipt [07:37:32]process_action close_receipt [07:37:32]cmd_close_receipt [07:37:32]MH_GetDate [07:37:32]Write to MH i2c: F0 00 00 8C 1F 9A [07:37:32]Write i2c OK [07:37:32]MH_I2C_Read... [07:37:32]Read from MH i2c: F0 [07:37:32]MH_I2C_Read... [07:37:32]Read from MH i2c: F0 09 00 [07:37:32]MH_I2C_Read... [07:37:32]Read from MH i2c: F0 09 00 8C 1F 00 40 3F 1F 67 22 05 6E 64 A1 [07:37:32]GetLastDocTimeStamp 1730098561 [07:37:32]current date 1730101056 [07:37:32]FM_GetShiftState [07:37:32]SAM_PROTO_GetShiftState [07:37:32]wFMCommunicate request_size=4 [07:37:32]MH_SAM_APDU [07:37:32]CAPDU: 80 13 01 00 [07:37:32]Write to MH i2c: E2 08 00 8D 1F 80 13 01 00 00 00 00 00 29 [07:37:32]Write i2c OK [07:37:32]MH_I2C_Read... [07:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:32]Read from MH i2c: E2 [07:37:32]MH_I2C_Read... [07:37:32]Read from MH i2c: E2 0E 00 [07:37:32]MH_I2C_Read... [07:37:32]Read from MH i2c: E2 0E 00 8D 1F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 79 [07:37:32]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [07:37:32]wFMCommunicate OK [07:37:32]SAM_PROTO_GetShiftState done [07:37:32]FM_GetShiftState done [07:37:32]opened in 1730075620 [07:37:32]opened+sec_in_day 1730162020 [07:37:32]quantity*price = 50041 [07:37:32]sum+1 = 50042 [07:37:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 11 28.10.2024 07:37 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192463 ФПД: 210155489977322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T073736&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192463&fm=210155489977322&tin=02508201610067®Number=0000000000091776&sum=50000 [07:37:33]StoreToDocumentArchive [07:37:33]shift 543 fd 192463 [07:37:33]save to /storage/0543/doc_00192463 [07:37:33]save last doc name /storage/0543/doc_00192463 to /storage/kkm_last_doc_name [07:37:33]save OK [07:37:33]Clear old archive folders... [07:37:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:37:33]tlvbuf is 019EE620 [07:37:33]SAM_PROTO_ClearQueue [07:37:33]wFMCommunicate request_size=4 [07:37:33]MH_SAM_APDU [07:37:33]CAPDU: 80 09 00 00 [07:37:33]Write to MH i2c: E2 08 00 9A 1F 80 09 00 00 00 00 00 00 2B [07:37:33]Write i2c OK [07:37:33]MH_I2C_Read... [07:37:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:37:33]Read from MH i2c: E2 [07:37:33]MH_I2C_Read... [07:37:33]Read from MH i2c: E2 03 00 [07:37:33]MH_I2C_Read... [07:37:33]Read from MH i2c: E2 03 00 9A 1F 00 90 00 2D [07:37:33]RAPDU: 90 00 [07:37:33]wFMCommunicate OK [07:37:33]SAM_PROTO_ClearQueue done [07:37:33]KKMCreateOFDPacket [07:37:33]OFDProtocolAddRootSTLVToBuf [07:37:33]FM_MakeSignedData [07:37:33]FM_MakeSignedData [07:37:33]SAM_PROTO_SignData [07:37:33]wFMCommunicate request_size=4 [07:37:33]MH_SAM_APDU [07:37:33]CAPDU: 80 0D 01 02 [07:37:33]Write to MH i2c: E2 08 00 9B 1F 80 0D 01 02 00 00 00 00 33 [07:37:33]Write i2c OK [07:37:33]MH_I2C_Read... [07:37:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:37:33]Read from MH i2c: E2 [07:37:33]MH_I2C_Read... [07:37:33]Read from MH i2c: E2 03 00 [07:37:33]MH_I2C_Read... [07:37:33]Read from MH i2c: E2 03 00 9B 1F 00 90 00 2E [07:37:33]RAPDU: 90 00 [07:37:33]wFMCommunicate OK [07:37:33]wFMCommunicate request_size=255 [07:37:33]MH_SAM_APDU [07:37:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 40 3F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EF 02 00 35 04 06 00 BF [07:37:33]Write to MH i2c: E2 02 01 9C 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 40 3F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EF 02 00 35 04 06 00 BF 00 00 77 [07:37:33]Write i2c OK [07:37:33]MH_I2C_Read... [07:37:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:33]Read from MH i2c: E2 [07:37:33]MH_I2C_Read... [07:37:33]Read from MH i2c: E2 03 00 [07:37:33]MH_I2C_Read... [07:37:33]Read from MH i2c: E2 03 00 9C 1F 00 90 00 2F [07:37:33]RAPDU: 90 00 [07:37:33]wFMCommunicate OK [07:37:33]wFMCommunicate request_size=10 [07:37:33]MH_SAM_APDU [07:37:33]CAPDU: 80 0D 02 02 05 22 A3 53 E3 EA [07:37:33]Write to MH i2c: E2 0D 00 9D 1F 80 0D 02 02 05 00 22 A3 53 E3 EA 00 00 25 [07:37:33]Write i2c OK [07:37:33]MH_I2C_Read... [07:37:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:33]Read from MH i2c: E2 [07:37:33]MH_I2C_Read... [07:37:33]Read from MH i2c: E2 03 00 [07:37:33]MH_I2C_Read... [07:37:33]Read from MH i2c: E2 03 00 9D 1F 00 90 00 30 [07:37:33]RAPDU: 90 00 [07:37:33]wFMCommunicate OK [07:37:33]wFMCommunicate request_size=4 [07:37:33]MH_SAM_APDU [07:37:33]CAPDU: 80 0D 03 02 [07:37:33]Write to MH i2c: E2 08 00 9E 1F 80 0D 03 02 00 00 00 00 38 [07:37:33]Write i2c OK [07:37:33]MH_I2C_Read... [07:37:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:37:33]Read from MH i2c: E2 [07:37:33]MH_I2C_Read... [07:37:33]Read from MH i2c: E2 0B 00 [07:37:33]MH_I2C_Read... [07:37:33]Read from MH i2c: E2 0B 00 9E 1F 00 21 A0 1F B4 7C 9A B9 B9 90 00 55 [07:37:33]RAPDU: 21 A0 1F B4 7C 9A B9 B9 90 00 [07:37:33]wFMCommunicate OK [07:37:33]SAM_PROTO_SignData done [07:37:33]FM_MakeSignedData done [07:37:33]CreateOFDProtocolMessage [07:37:33]wFMCommunicate request_size=4 [07:37:33]MH_SAM_APDU [07:37:33]CAPDU: 80 11 00 00 [07:37:33]Write to MH i2c: E2 08 00 9F 1F 80 11 00 00 00 00 00 00 38 [07:37:33]Write i2c OK [07:37:33]MH_I2C_Read... [07:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:33]Read from MH i2c: E2 [07:37:33]MH_I2C_Read... [07:37:33]Read from MH i2c: E2 17 00 [07:37:33]MH_I2C_Read... [07:37:33]Read from MH i2c: E2 17 00 9F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8B [07:37:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:37:33]wFMCommunicate OK [07:37:33]CreateOFDProtocolMessage done [07:37:33]OFDSenderStorePacket 192463 [07:37:33]StoreOFDPacket docnum=192463 [07:37:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AB 3C 07 01 DC 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 40 3F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EF 02 00 35 04 06 00 BF 22 A3 53 E3 EA 21 A0 1F B4 7C 9A B9 B9 [07:37:33]CheckFolder [07:37:33]dirname=/storage/ofd_packets [07:37:33]CheckFolder done [07:37:33]ProducePacketName [07:37:33]name=ofd_packets/00192463 [07:37:33]NVStorageSaveData ofd_packets/00192463 [07:37:33]File name is /storage/ofd_packets/00192463 [07:37:33]Write 301 bytes [07:37:33]NVStorageSaveData done [07:37:33]OFDSenderStorePacket done [07:37:33]KKMCreateOFDPacket done [07:37:33]NVStorageSaveData kkm_last_timestamp [07:37:33]File name is /storage/kkm_last_timestamp [07:37:33]Write 4 bytes [07:37:33]NVStorageSaveData done [07:37:34]OFD Sender: Processing packet 192463 [packets to send 75, broken 74] [07:37:34]ProducePacketName [07:37:34]name=ofd_packets/00192463 [07:37:34]OFD Sender: To server: pG, [07:37:34]CommunicateWithHost lk.salyk.kg:30040 [07:37:34]ConnectInit lk.salyk.kg [07:37:34]ExternCall_PrintAddStr [07:37:34]wPrintStart [07:37:34]Write to MH i2c: 01 00 00 A0 1F BF [07:37:34]Write i2c OK [07:37:34]MH_I2C_Read... [07:37:34]Read from MH i2c: 01 [07:37:34]MH_I2C_Read... [07:37:34]Read from MH i2c: 01 07 00 [07:37:34]MH_I2C_Read... [07:37:34]Read from MH i2c: 01 07 00 A0 1F 00 00 00 00 00 FF 0F D4 [07:37:34]RasterBufferAndPrint [07:37:34]line Счет N : (1)31778 [07:37:34]line ИНН: 02508201610067 [07:37:34]line Контрольно-Кассовый Чек [07:37:34]line ПРОДАЖА [07:37:34]line ТРК (МРК, ГНК) : 21 [07:37:34]line Товар: 2710124130 [07:37:34]line Аи-92-К-5 [07:37:34]line 7.480 * 66.90 [07:37:34]line = 500.41 [07:37:34]line НДС 12% НСП 1% [07:37:34]line > о реализуемом товаре [07:37:34]line ОКРУГЛЕНИЕ: -0.41 [07:37:34]line ИТОГО: 500.00 [07:37:34]line Внесено: 500.00 [07:37:34]line СДАЧА: 0.00 [07:37:34]line НСП 1% : 4.43 [07:37:34]line НДС 12% : 53.14 [07:37:34]line Наличными: 500.00 [07:37:34]line Безнал.: 0.00 [07:37:34]line Место: АЗС № 170 "Партнер Нефть" [07:37:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:37:34]line СНО: Общий режим [07:37:34]line Чек 11 28.10.2024 07:37 [07:37:34]line Смена: 543 ФФД: 1.0 [07:37:34]line ЗНМ: 0300000110 [07:37:34]line РНМ: 0000000000091776 [07:37:34]line Версия ККМ: 001 [07:37:34]line ФМ: 0000000000871754 [07:37:34]line ФД: 192463 [07:37:34]line ФПД: 210155489977322 [07:37:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T073736&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192463&fm=210155489977322&tin=02508201610067®Number=0000000000091776&sum=50000 [07:37:34]Connected sock=11 [07:37:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AB 3C 07 01 DC 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 40 3F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EF 02 00 35 04 06 00 BF 22 A3 53 E3 EA 21 A0 1F B4 7C 9A B9 B9 [07:37:34]written 0, free lines is 4095 [07:37:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A6 E6 47 00 BE 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 31 37 35 34 10 04 04 00 CF EF 02 00 F4 03 04 00 05 E4 1E 67 B6 04 01 00 00 39 6B 74 AF 69 59 B5 0E [07:37:34]CommunicateWithHost err = 0 [07:37:34]CheckOFDResponse [07:37:34]1017 (14) - 77093643461234 [07:37:34]1041 (16) - 0000000000871754 [07:37:34]1040 (4) - 192463 [07:37:34]1012 (4) - 28.10.2024 01:08 [07:37:34]1206 (1) - 0 [07:37:34]OFD Sender: Remove packet 192463 [07:37:34]ProducePacketName [07:37:34]name=ofd_packets/00192463 [07:37:34]NVStorageDeleteData [07:37:34]Write to MH i2c: 01 00 00 CB 1F EA [07:37:34]Write i2c OK [07:37:34]MH_I2C_Read... [07:37:34]Read from MH i2c: 01 [07:37:34]MH_I2C_Read... [07:37:34]Read from MH i2c: 01 07 00 [07:37:34]MH_I2C_Read... [07:37:34]Read from MH i2c: 01 07 00 CB 1F 00 00 00 00 00 A3 0C A0 [07:37:34]RasterBufferAndPrint [07:37:34]line [07:37:34]line [07:37:34]line [07:37:34]line [07:37:34]line [07:37:34]written 0, free lines is 3241 [07:37:34]MH_Cut [07:37:34]Write to MH i2c: D1 01 00 D2 1F 01 C3 [07:37:34]Write i2c OK [07:37:34]MH_I2C_Read... [07:37:34]Read from MH i2c: D1 [07:37:34]MH_I2C_Read... [07:37:34]Read from MH i2c: D1 01 00 [07:37:34]MH_I2C_Read... [07:37:34]Read from MH i2c: D1 01 00 D2 1F 00 C2 [07:37:34]Write to MH i2c: 01 00 00 D3 1F F2 [07:37:34]Write i2c OK [07:37:34]MH_I2C_Read... [07:37:35]OFD Sender: No OFD packet to send [07:37:35]*** Cut start [07:37:35]*** Partial cut [07:37:35]*** CUTSNS_PIN = 1 [07:37:35]*** CUTSNS_PIN = 0 [07:37:35]*** Brake cut motor [07:37:36]Read from MH i2c: 01 [07:37:36]MH_I2C_Read... [07:37:36]*** Stop cut motor [07:37:36]*** Cut end [07:37:36]Read from MH i2c: 01 07 00 [07:37:36]MH_I2C_Read... [07:37:36]Read from MH i2c: 01 07 00 D3 1F 00 00 00 00 00 FF 0F 07 [07:37:36]process_action close_receipt done [07:37:36]requested_data is exist [07:37:36]produce_requested_data [07:37:36]requested_item fm.sn is exist - process it [07:37:36]wFMCommunicate request_size=4 [07:37:36]MH_SAM_APDU [07:37:36]CAPDU: 80 11 00 00 [07:37:36]Write to MH i2c: E2 08 00 D4 1F 80 11 00 00 00 00 00 00 6D [07:37:36]Write i2c OK [07:37:36]MH_I2C_Read... [07:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:36]Read from MH i2c: E2 [07:37:36]MH_I2C_Read... [07:37:36]Read from MH i2c: E2 17 00 [07:37:36]MH_I2C_Read... [07:37:36]Read from MH i2c: E2 17 00 D4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C0 [07:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:37:36]wFMCommunicate OK [07:37:36]requested_item fd.num is exist - process it [07:37:36]SAM_PROTO_GetFieldsCounters [07:37:36]wFMCommunicate request_size=4 [07:37:36]MH_SAM_APDU [07:37:36]CAPDU: 80 13 00 00 [07:37:36]Write to MH i2c: E2 08 00 D5 1F 80 13 00 00 00 00 00 00 70 [07:37:36]Write i2c OK [07:37:36]MH_I2C_Read... [07:37:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:37:36]Read from MH i2c: E2 [07:37:36]MH_I2C_Read... [07:37:36]Read from MH i2c: E2 62 00 [07:37:36]MH_I2C_Read... [07:37:36]Read from MH i2c: E2 62 00 D5 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CF EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [07:37:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CF EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:37:36]wFMCommunicate OK [07:37:36]SAM_PROTO_GetFieldsCounters done [07:37:36]requested_item shift.num is exist - process it [07:37:36]requested_item shift.opened is exist - process it [07:37:36]req_shift_opened [07:37:36]FM_GetShiftState [07:37:36]SAM_PROTO_GetShiftState [07:37:36]wFMCommunicate request_size=4 [07:37:36]MH_SAM_APDU [07:37:36]CAPDU: 80 13 01 00 [07:37:36]Write to MH i2c: E2 08 00 D6 1F 80 13 01 00 00 00 00 00 72 [07:37:36]Write i2c OK [07:37:36]MH_I2C_Read... [07:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:36]Read from MH i2c: E2 [07:37:36]MH_I2C_Read... [07:37:36]Read from MH i2c: E2 0E 00 [07:37:36]MH_I2C_Read... [07:37:36]Read from MH i2c: E2 0E 00 D6 1F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C2 [07:37:36]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [07:37:36]wFMCommunicate OK [07:37:36]SAM_PROTO_GetShiftState done [07:37:36]FM_GetShiftState done [07:37:36]req_shift_opened done [07:37:36]requested_item shift.open_date is exist - process it [07:37:36]req_shift_open_date [07:37:36]req_shift_open_date done [07:37:36]produce_requested_data done [07:37:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192463,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [07:37:36]process_action_free close_receipt [07:37:36]json_value_free [07:37:36]json_value_free done [07:37:36]process_json_proto returns [07:37:36]Send response to host [07:37:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192463,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [07:37:36]free response buf [07:37:36]execute_script done [07:37:36]execute_script returns [07:37:36]free content buf [07:37:36]Sock 9.Close socket [07:37:36]Sock 9.Thread stoped [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:44]accept exits with 7 [07:52:44]New connection [07:52:44]New thread 3066707300 created [07:52:44]Thread 3066563940 joined [07:52:44]Waiting for new connection... [07:52:44] Sock 7.Parse request [07:52:44]Sock 7.Check first char [07:52:44]Sock 7.First char is OK [07:52:44]request: POST /json_proto HTTP/1.0 [07:52:44]Method: POST [07:52:44]URL: /json_proto [07:52:44]Method is POST - this is cgi request [07:52:44]url: /json_proto [07:52:44]query_string will be loaded in cgi processing [07:52:44]execute_cgi json_proto POST (null) [07:52:44]execute_cgi path=json_proto method=POST [07:52:44]POST find Content-Length [07:52:44]Host: 172.17.63.131:8080 [07:52:44]Content-Length: 678 [07:52:44]Content-Type: application/json [07:52:44] [07:52:44]POST finish read [07:52:44]Found Content-Length = 678 [07:52:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:44]execute_script... [07:52:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:44]POST & json_proto [07:52:44]process_json_proto [07:52:44]json parsed OK: [07:52:44]protocol is kg_v1.0 [07:52:44]action value=close_receipt [07:52:44]process_action close_receipt [07:52:44]cmd_close_receipt [07:52:44]MH_GetDate [07:52:44]Write to MH i2c: F0 00 00 D7 1F E5 [07:52:44]Write i2c OK [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: F0 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: F0 09 00 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: F0 09 00 D7 1F 00 D0 42 1F 67 22 05 6E 64 7F [07:52:44]GetLastDocTimeStamp 1730101056 [07:52:44]current date 1730101968 [07:52:44]FM_GetShiftState [07:52:44]SAM_PROTO_GetShiftState [07:52:44]wFMCommunicate request_size=4 [07:52:44]MH_SAM_APDU [07:52:44]CAPDU: 80 13 01 00 [07:52:44]Write to MH i2c: E2 08 00 D8 1F 80 13 01 00 00 00 00 00 74 [07:52:44]Write i2c OK [07:52:44]MH_I2C_Read... [07:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:44]Read from MH i2c: E2 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: E2 0E 00 [07:52:44]MH_I2C_Read... [07:52:44]Read from MH i2c: E2 0E 00 D8 1F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C4 [07:52:44]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [07:52:44]wFMCommunicate OK [07:52:44]SAM_PROTO_GetShiftState done [07:52:44]FM_GetShiftState done [07:52:44]opened in 1730075620 [07:52:44]opened+sec_in_day 1730162020 [07:52:44]quantity*price = 100050 [07:52:44]sum+1 = 100052 [07:52:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 12 28.10.2024 07:52 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192464 ФПД: 235523008096542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T075248&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192464&fm=235523008096542&tin=02508201610067®Number=0000000000091776&sum=100000 [07:52:45]StoreToDocumentArchive [07:52:45]shift 543 fd 192464 [07:52:45]save to /storage/0543/doc_00192464 [07:52:45]save last doc name /storage/0543/doc_00192464 to /storage/kkm_last_doc_name [07:52:45]save OK [07:52:45]Clear old archive folders... [07:52:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:52:45]tlvbuf is B6D6C2D0 [07:52:45]SAM_PROTO_ClearQueue [07:52:45]wFMCommunicate request_size=4 [07:52:45]MH_SAM_APDU [07:52:45]CAPDU: 80 09 00 00 [07:52:45]Write to MH i2c: E2 08 00 E5 1F 80 09 00 00 00 00 00 00 76 [07:52:45]Write i2c OK [07:52:45]MH_I2C_Read... [07:52:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:45]Read from MH i2c: E2 [07:52:45]MH_I2C_Read... [07:52:45]Read from MH i2c: E2 03 00 [07:52:45]MH_I2C_Read... [07:52:45]Read from MH i2c: E2 03 00 E5 1F 00 90 00 78 [07:52:45]RAPDU: 90 00 [07:52:45]wFMCommunicate OK [07:52:45]SAM_PROTO_ClearQueue done [07:52:45]KKMCreateOFDPacket [07:52:45]OFDProtocolAddRootSTLVToBuf [07:52:45]FM_MakeSignedData [07:52:45]FM_MakeSignedData [07:52:45]SAM_PROTO_SignData [07:52:45]wFMCommunicate request_size=4 [07:52:45]MH_SAM_APDU [07:52:45]CAPDU: 80 0D 01 02 [07:52:45]Write to MH i2c: E2 08 00 E6 1F 80 0D 01 02 00 00 00 00 7E [07:52:45]Write i2c OK [07:52:45]MH_I2C_Read... [07:52:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:45]Read from MH i2c: E2 [07:52:45]MH_I2C_Read... [07:52:45]Read from MH i2c: E2 03 00 [07:52:45]MH_I2C_Read... [07:52:45]Read from MH i2c: E2 03 00 E6 1F 00 90 00 79 [07:52:45]RAPDU: 90 00 [07:52:45]wFMCommunicate OK [07:52:45]wFMCommunicate request_size=255 [07:52:45]MH_SAM_APDU [07:52:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 D0 42 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EF 02 00 35 04 06 00 D6 34 F9 3B [07:52:45]Write to MH i2c: E2 02 01 E7 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 D0 42 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EF 02 00 35 04 06 00 D6 34 F9 3B 00 00 CC [07:52:45]Write i2c OK [07:52:45]MH_I2C_Read... [07:52:45]OFD Sender: No OFD packet to send [07:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:45]Read from MH i2c: E2 [07:52:45]MH_I2C_Read... [07:52:45]Read from MH i2c: E2 03 00 [07:52:45]MH_I2C_Read... [07:52:45]Read from MH i2c: E2 03 00 E7 1F 00 90 00 7A [07:52:45]RAPDU: 90 00 [07:52:46]wFMCommunicate OK [07:52:46]wFMCommunicate request_size=7 [07:52:46]MH_SAM_APDU [07:52:46]CAPDU: 80 0D 02 02 02 E9 1E [07:52:46]Write to MH i2c: E2 0A 00 E8 1F 80 0D 02 02 02 00 E9 1E 00 00 8C [07:52:46]Write i2c OK [07:52:46]MH_I2C_Read... [07:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:46]Read from MH i2c: E2 [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: E2 03 00 [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: E2 03 00 E8 1F 00 90 00 7B [07:52:46]RAPDU: 90 00 [07:52:46]wFMCommunicate OK [07:52:46]wFMCommunicate request_size=4 [07:52:46]MH_SAM_APDU [07:52:46]CAPDU: 80 0D 03 02 [07:52:46]Write to MH i2c: E2 08 00 E9 1F 80 0D 03 02 00 00 00 00 83 [07:52:46]Write i2c OK [07:52:46]MH_I2C_Read... [07:52:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:46]Read from MH i2c: E2 [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: E2 0B 00 [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: E2 0B 00 E9 1F 00 94 61 20 FD 76 C2 84 7F 90 00 D1 [07:52:46]RAPDU: 94 61 20 FD 76 C2 84 7F 90 00 [07:52:46]wFMCommunicate OK [07:52:46]SAM_PROTO_SignData done [07:52:46]FM_MakeSignedData done [07:52:46]CreateOFDProtocolMessage [07:52:46]wFMCommunicate request_size=4 [07:52:46]MH_SAM_APDU [07:52:46]CAPDU: 80 11 00 00 [07:52:46]Write to MH i2c: E2 08 00 EA 1F 80 11 00 00 00 00 00 00 83 [07:52:46]Write i2c OK [07:52:46]MH_I2C_Read... [07:52:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:46]Read from MH i2c: E2 [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: E2 17 00 [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: E2 17 00 EA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D6 [07:52:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:52:46]wFMCommunicate OK [07:52:46]CreateOFDProtocolMessage done [07:52:46]OFDSenderStorePacket 192464 [07:52:46]StoreOFDPacket docnum=192464 [07:52:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 EB F8 04 01 4F AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 D0 42 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EF 02 00 35 04 06 00 D6 34 F9 3B E9 1E 94 61 20 FD 76 C2 84 7F [07:52:46]CheckFolder [07:52:46]dirname=/storage/ofd_packets [07:52:46]CheckFolder done [07:52:46]ProducePacketName [07:52:46]name=ofd_packets/00192464 [07:52:46]NVStorageSaveData ofd_packets/00192464 [07:52:46]File name is /storage/ofd_packets/00192464 [07:52:46]Write 298 bytes [07:52:46]NVStorageSaveData done [07:52:46]OFDSenderStorePacket done [07:52:46]KKMCreateOFDPacket done [07:52:46]NVStorageSaveData kkm_last_timestamp [07:52:46]File name is /storage/kkm_last_timestamp [07:52:46]Write 4 bytes [07:52:46]NVStorageSaveData done [07:52:46]ExternCall_PrintAddStr [07:52:46]wPrintStart [07:52:46]Write to MH i2c: 01 00 00 EB 1F 0A [07:52:46]Write i2c OK [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: 01 [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: 01 07 00 [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: 01 07 00 EB 1F 00 00 00 00 00 FF 0F 1F [07:52:46]RasterBufferAndPrint [07:52:46]line Счет N : (1)31779 [07:52:46]line ИНН: 02508201610067 [07:52:46]line Контрольно-Кассовый Чек [07:52:46]line ПРОДАЖА [07:52:46]line ТРК (МРК, ГНК) : 11 [07:52:46]line Товар: 2710194210 [07:52:46]line ДТ-К-5 [07:52:46]line 13.130 * 76.20 [07:52:46]line = 1000.51 [07:52:46]line НДС 12% НСП 1% [07:52:46]line > о реализуемом товаре [07:52:46]line ОКРУГЛЕНИЕ: -0.51 [07:52:46]line ИТОГО: 1000.00 [07:52:46]line Внесено: 1000.00 [07:52:46]line СДАЧА: 0.00 [07:52:46]line НСП 1% : 8.85 [07:52:46]line НДС 12% : 106.25 [07:52:46]line Наличными: 1000.00 [07:52:46]line Безнал.: 0.00 [07:52:46]line Место: АЗС № 170 "Партнер Нефть" [07:52:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:52:46]line СНО: Общий режим [07:52:46]line Чек 12 28.10.2024 07:52 [07:52:46]line Смена: 543 ФФД: 1.0 [07:52:46]line ЗНМ: 0300000110 [07:52:46]line РНМ: 0000000000091776 [07:52:46]line Версия ККМ: 001 [07:52:46]line ФМ: 0000000000871754 [07:52:46]line ФД: 192464 [07:52:46]line ФПД: 235523008096542 [07:52:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T075248&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192464&fm=235523008096542&tin=02508201610067®Number=0000000000091776&sum=100000 [07:52:46]OFD Sender: Processing packet 192464 [packets to send 75, broken 74] [07:52:46]ProducePacketName [07:52:46]name=ofd_packets/00192464 [07:52:46]OFD Sender: To server: pG, [07:52:46]CommunicateWithHost lk.salyk.kg:30040 [07:52:46]ConnectInit lk.salyk.kg [07:52:46]written 0, free lines is 4095 [07:52:46]Connected sock=10 [07:52:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 EB F8 04 01 4F AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 D0 42 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EF 02 00 35 04 06 00 D6 34 F9 3B E9 1E 94 61 20 FD 76 C2 84 7F [07:52:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4E E3 47 00 28 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EF 02 00 F4 03 04 00 95 E7 1E 67 B6 04 01 00 00 8A EE E5 71 F5 38 78 FE [07:52:46]CommunicateWithHost err = 0 [07:52:46]CheckOFDResponse [07:52:46]1017 (14) - 77093643461234 [07:52:46]1041 (16) - 0000000000871754 [07:52:46]1040 (4) - 192464 [07:52:46]1012 (4) - 28.10.2024 01:23 [07:52:46]1206 (1) - 0 [07:52:46]OFD Sender: Remove packet 192464 [07:52:46]ProducePacketName [07:52:46]name=ofd_packets/00192464 [07:52:46]NVStorageDeleteData [07:52:46]Write to MH i2c: 01 00 00 16 20 36 [07:52:46]Write i2c OK [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: 01 [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: 01 07 00 [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: 01 07 00 16 20 00 00 00 00 00 AD 0C F6 [07:52:46]RasterBufferAndPrint [07:52:46]line [07:52:46]line [07:52:46]line [07:52:46]line [07:52:46]line [07:52:46]written 0, free lines is 3251 [07:52:46]MH_Cut [07:52:46]Write to MH i2c: D1 01 00 1D 20 01 0F [07:52:46]Write i2c OK [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: D1 [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: D1 01 00 [07:52:46]MH_I2C_Read... [07:52:46]Read from MH i2c: D1 01 00 1D 20 00 0E [07:52:46]Write to MH i2c: 01 00 00 1E 20 3E [07:52:46]Write i2c OK [07:52:46]MH_I2C_Read... [07:52:47]OFD Sender: No OFD packet to send [07:52:47]*** Cut start [07:52:47]*** Partial cut [07:52:47]*** CUTSNS_PIN = 1 [07:52:47]*** CUTSNS_PIN = 0 [07:52:48]*** Brake cut motor [07:52:48]Read from MH i2c: 01 [07:52:48]MH_I2C_Read... [07:52:48]*** Stop cut motor [07:52:48]*** Cut end [07:52:48]Read from MH i2c: 01 07 00 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: 01 07 00 1E 20 00 00 00 00 00 FF 0F 53 [07:52:48]process_action close_receipt done [07:52:48]requested_data is exist [07:52:48]produce_requested_data [07:52:48]requested_item fm.sn is exist - process it [07:52:48]wFMCommunicate request_size=4 [07:52:48]MH_SAM_APDU [07:52:48]CAPDU: 80 11 00 00 [07:52:48]Write to MH i2c: E2 08 00 1F 20 80 11 00 00 00 00 00 00 B9 [07:52:48]Write i2c OK [07:52:48]MH_I2C_Read... [07:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:48]Read from MH i2c: E2 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: E2 17 00 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: E2 17 00 1F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0C [07:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:52:48]wFMCommunicate OK [07:52:48]requested_item fd.num is exist - process it [07:52:48]SAM_PROTO_GetFieldsCounters [07:52:48]wFMCommunicate request_size=4 [07:52:48]MH_SAM_APDU [07:52:48]CAPDU: 80 13 00 00 [07:52:48]Write to MH i2c: E2 08 00 20 20 80 13 00 00 00 00 00 00 BC [07:52:48]Write i2c OK [07:52:48]MH_I2C_Read... [07:52:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:48]Read from MH i2c: E2 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: E2 62 00 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: E2 62 00 20 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D0 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [07:52:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D0 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:52:48]wFMCommunicate OK [07:52:48]SAM_PROTO_GetFieldsCounters done [07:52:48]requested_item shift.num is exist - process it [07:52:48]requested_item shift.opened is exist - process it [07:52:48]req_shift_opened [07:52:48]FM_GetShiftState [07:52:48]SAM_PROTO_GetShiftState [07:52:48]wFMCommunicate request_size=4 [07:52:48]MH_SAM_APDU [07:52:48]CAPDU: 80 13 01 00 [07:52:48]Write to MH i2c: E2 08 00 21 20 80 13 01 00 00 00 00 00 BE [07:52:48]Write i2c OK [07:52:48]MH_I2C_Read... [07:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:48]Read from MH i2c: E2 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: E2 0E 00 [07:52:48]MH_I2C_Read... [07:52:48]Read from MH i2c: E2 0E 00 21 20 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0E [07:52:48]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [07:52:48]wFMCommunicate OK [07:52:48]SAM_PROTO_GetShiftState done [07:52:48]FM_GetShiftState done [07:52:48]req_shift_opened done [07:52:48]requested_item shift.open_date is exist - process it [07:52:48]req_shift_open_date [07:52:48]req_shift_open_date done [07:52:48]produce_requested_data done [07:52:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192464,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [07:52:48]process_action_free close_receipt [07:52:48]json_value_free [07:52:48]json_value_free done [07:52:48]process_json_proto returns [07:52:48]Send response to host [07:52:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192464,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [07:52:48]free response buf [07:52:48]execute_script done [07:52:48]execute_script returns [07:52:48]free content buf [07:52:48]Sock 7.Close socket [07:52:48]Sock 7.Thread stoped [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:05]accept exits with 9 [07:58:05]New connection [07:58:05]New thread 3066563940 created [07:58:05]Thread 3066707300 joined [07:58:05]Waiting for new connection... [07:58:05] Sock 9.Parse request [07:58:05]Sock 9.Check first char [07:58:05]Sock 9.First char is OK [07:58:05]request: POST /json_proto HTTP/1.0 [07:58:05]Method: POST [07:58:05]URL: /json_proto [07:58:05]Method is POST - this is cgi request [07:58:05]url: /json_proto [07:58:05]query_string will be loaded in cgi processing [07:58:05]execute_cgi json_proto POST (null) [07:58:05]execute_cgi path=json_proto method=POST [07:58:05]POST find Content-Length [07:58:05]Host: 172.17.63.131:8080 [07:58:05]Content-Length: 681 [07:58:05]Content-Type: application/json [07:58:05] [07:58:05]POST finish read [07:58:05]Found Content-Length = 681 [07:58:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:05]execute_script... [07:58:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:05]POST & json_proto [07:58:05]process_json_proto [07:58:05]json parsed OK: [07:58:05]protocol is kg_v1.0 [07:58:05]action value=close_receipt [07:58:05]process_action close_receipt [07:58:05]cmd_close_receipt [07:58:05]MH_GetDate [07:58:05]Write to MH i2c: F0 00 00 22 20 31 [07:58:05]Write i2c OK [07:58:05]MH_I2C_Read... [07:58:05]Read from MH i2c: F0 [07:58:05]MH_I2C_Read... [07:58:05]Read from MH i2c: F0 09 00 [07:58:05]MH_I2C_Read... [07:58:05]Read from MH i2c: F0 09 00 22 20 00 12 44 1F 67 22 05 6E 64 0F [07:58:05]GetLastDocTimeStamp 1730101968 [07:58:05]current date 1730102290 [07:58:05]FM_GetShiftState [07:58:05]SAM_PROTO_GetShiftState [07:58:05]wFMCommunicate request_size=4 [07:58:05]MH_SAM_APDU [07:58:05]CAPDU: 80 13 01 00 [07:58:05]Write to MH i2c: E2 08 00 23 20 80 13 01 00 00 00 00 00 C0 [07:58:05]Write i2c OK [07:58:05]MH_I2C_Read... [07:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:05]Read from MH i2c: E2 [07:58:05]MH_I2C_Read... [07:58:05]Read from MH i2c: E2 0E 00 [07:58:05]MH_I2C_Read... [07:58:05]Read from MH i2c: E2 0E 00 23 20 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 10 [07:58:05]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [07:58:05]wFMCommunicate OK [07:58:05]SAM_PROTO_GetShiftState done [07:58:05]FM_GetShiftState done [07:58:05]opened in 1730075620 [07:58:05]opened+sec_in_day 1730162020 [07:58:05]quantity*price = 100015 [07:58:05]sum+1 = 100017 [07:58:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 13 28.10.2024 07:58 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192465 ФПД: 265791956159156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T075810&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192465&fm=265791956159156&tin=02508201610067®Number=0000000000091776&sum=100000 [07:58:07]StoreToDocumentArchive [07:58:07]shift 543 fd 192465 [07:58:07]save to /storage/0543/doc_00192465 [07:58:07]save last doc name /storage/0543/doc_00192465 to /storage/kkm_last_doc_name [07:58:07]save OK [07:58:07]Clear old archive folders... [07:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:58:07]tlvbuf is 019C11F0 [07:58:07]SAM_PROTO_ClearQueue [07:58:07]wFMCommunicate request_size=4 [07:58:07]MH_SAM_APDU [07:58:07]CAPDU: 80 09 00 00 [07:58:07]Write to MH i2c: E2 08 00 30 20 80 09 00 00 00 00 00 00 C2 [07:58:07]Write i2c OK [07:58:07]MH_I2C_Read... [07:58:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:07]Read from MH i2c: E2 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: E2 03 00 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: E2 03 00 30 20 00 90 00 C4 [07:58:07]RAPDU: 90 00 [07:58:07]wFMCommunicate OK [07:58:07]SAM_PROTO_ClearQueue done [07:58:07]KKMCreateOFDPacket [07:58:07]OFDProtocolAddRootSTLVToBuf [07:58:07]FM_MakeSignedData [07:58:07]FM_MakeSignedData [07:58:07]SAM_PROTO_SignData [07:58:07]wFMCommunicate request_size=4 [07:58:07]MH_SAM_APDU [07:58:07]CAPDU: 80 0D 01 02 [07:58:07]Write to MH i2c: E2 08 00 31 20 80 0D 01 02 00 00 00 00 CA [07:58:07]Write i2c OK [07:58:07]MH_I2C_Read... [07:58:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:07]Read from MH i2c: E2 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: E2 03 00 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: E2 03 00 31 20 00 90 00 C5 [07:58:07]RAPDU: 90 00 [07:58:07]wFMCommunicate OK [07:58:07]wFMCommunicate request_size=255 [07:58:07]MH_SAM_APDU [07:58:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 12 44 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EF 02 00 35 04 06 00 F1 [07:58:07]Write to MH i2c: E2 02 01 32 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 12 44 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EF 02 00 35 04 06 00 F1 00 00 15 [07:58:07]Write i2c OK [07:58:07]MH_I2C_Read... [07:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:07]Read from MH i2c: E2 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: E2 03 00 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: E2 03 00 32 20 00 90 00 C6 [07:58:07]RAPDU: 90 00 [07:58:07]wFMCommunicate OK [07:58:07]wFMCommunicate request_size=10 [07:58:07]MH_SAM_APDU [07:58:07]CAPDU: 80 0D 02 02 05 BC 83 21 8A B4 [07:58:07]Write to MH i2c: E2 0D 00 33 20 80 0D 02 02 05 00 BC 83 21 8A B4 00 00 75 [07:58:07]Write i2c OK [07:58:07]MH_I2C_Read... [07:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:07]Read from MH i2c: E2 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: E2 03 00 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: E2 03 00 33 20 00 90 00 C7 [07:58:07]RAPDU: 90 00 [07:58:07]wFMCommunicate OK [07:58:07]wFMCommunicate request_size=4 [07:58:07]MH_SAM_APDU [07:58:07]CAPDU: 80 0D 03 02 [07:58:07]Write to MH i2c: E2 08 00 34 20 80 0D 03 02 00 00 00 00 CF [07:58:07]Write i2c OK [07:58:07]MH_I2C_Read... [07:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:07]Read from MH i2c: E2 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: E2 0B 00 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: E2 0B 00 34 20 00 DF 84 27 52 3A 60 D3 77 90 00 90 [07:58:07]RAPDU: DF 84 27 52 3A 60 D3 77 90 00 [07:58:07]wFMCommunicate OK [07:58:07]SAM_PROTO_SignData done [07:58:07]FM_MakeSignedData done [07:58:07]CreateOFDProtocolMessage [07:58:07]wFMCommunicate request_size=4 [07:58:07]MH_SAM_APDU [07:58:07]CAPDU: 80 11 00 00 [07:58:07]Write to MH i2c: E2 08 00 35 20 80 11 00 00 00 00 00 00 CF [07:58:07]Write i2c OK [07:58:07]MH_I2C_Read... [07:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:07]Read from MH i2c: E2 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: E2 17 00 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: E2 17 00 35 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 22 [07:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:58:07]wFMCommunicate OK [07:58:07]CreateOFDProtocolMessage done [07:58:07]OFDSenderStorePacket 192465 [07:58:07]StoreOFDPacket docnum=192465 [07:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 87 07 01 2A B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 12 44 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EF 02 00 35 04 06 00 F1 BC 83 21 8A B4 DF 84 27 52 3A 60 D3 77 [07:58:07]CheckFolder [07:58:07]dirname=/storage/ofd_packets [07:58:07]CheckFolder done [07:58:07]ProducePacketName [07:58:07]name=ofd_packets/00192465 [07:58:07]NVStorageSaveData ofd_packets/00192465 [07:58:07]File name is /storage/ofd_packets/00192465 [07:58:07]Write 301 bytes [07:58:07]NVStorageSaveData done [07:58:07]OFDSenderStorePacket done [07:58:07]KKMCreateOFDPacket done [07:58:07]NVStorageSaveData kkm_last_timestamp [07:58:07]File name is /storage/kkm_last_timestamp [07:58:07]Write 4 bytes [07:58:07]NVStorageSaveData done [07:58:07]ExternCall_PrintAddStr [07:58:07]wPrintStart [07:58:07]Write to MH i2c: 01 00 00 36 20 56 [07:58:07]Write i2c OK [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: 01 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: 01 07 00 [07:58:07]MH_I2C_Read... [07:58:07]Read from MH i2c: 01 07 00 36 20 00 00 00 00 00 FF 0F 6B [07:58:07]RasterBufferAndPrint [07:58:07]line Счет N : (1)31780 [07:58:07]line ИНН: 02508201610067 [07:58:07]line Контрольно-Кассовый Чек [07:58:07]line ПРОДАЖА [07:58:07]line ТРК (МРК, ГНК) : 12 [07:58:07]line Товар: 2710124130 [07:58:07]line Аи-92-К-5 [07:58:07]line 14.950 * 66.90 [07:58:07]line = 1000.16 [07:58:07]line НДС 12% НСП 1% [07:58:07]line > о реализуемом товаре [07:58:07]line ОКРУГЛЕНИЕ: -0.16 [07:58:07]line ИТОГО: 1000.00 [07:58:07]line Внесено: 1000.00 [07:58:07]line СДАЧА: 0.00 [07:58:07]line НСП 1% : 8.85 [07:58:07]line НДС 12% : 106.21 [07:58:07]line Наличными: 1000.00 [07:58:07]line Безнал.: 0.00 [07:58:07]line Место: АЗС № 170 "Партнер Нефть" [07:58:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:58:07]line СНО: Общий режим [07:58:07]line Чек 13 28.10.2024 07:58 [07:58:07]line Смена: 543 ФФД: 1.0 [07:58:07]line ЗНМ: 0300000110 [07:58:07]line РНМ: 0000000000091776 [07:58:07]line Версия ККМ: 001 [07:58:07]line ФМ: 0000000000871754 [07:58:07]line ФД: 192465 [07:58:07]line ФПД: 265791956159156 [07:58:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T075810&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192465&fm=265791956159156&tin=02508201610067®Number=0000000000091776&sum=100000 [07:58:07]OFD Sender: Processing packet 192465 [packets to send 75, broken 74] [07:58:07]ProducePacketName [07:58:07]name=ofd_packets/00192465 [07:58:07]OFD Sender: To server: pG, [07:58:07]CommunicateWithHost lk.salyk.kg:30040 [07:58:07]ConnectInit lk.salyk.kg [07:58:07]written 0, free lines is 4095 [07:58:08]Connected sock=10 [07:58:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 87 07 01 2A B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 12 44 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EF 02 00 35 04 06 00 F1 BC 83 21 8A B4 DF 84 27 52 3A 60 D3 77 [07:58:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 93 38 47 00 62 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EF 02 00 F4 03 04 00 D6 E8 1E 67 B6 04 01 00 00 1A FD DC 79 41 55 C9 79 [07:58:08]CommunicateWithHost err = 0 [07:58:08]CheckOFDResponse [07:58:08]1017 (14) - 77093643461234 [07:58:08]1041 (16) - 0000000000871754 [07:58:08]1040 (4) - 192465 [07:58:08]1012 (4) - 28.10.2024 01:28 [07:58:08]1206 (1) - 0 [07:58:08]OFD Sender: Remove packet 192465 [07:58:08]ProducePacketName [07:58:08]name=ofd_packets/00192465 [07:58:08]NVStorageDeleteData [07:58:08]Write to MH i2c: 01 00 00 61 20 81 [07:58:08]Write i2c OK [07:58:08]MH_I2C_Read... [07:58:08]Read from MH i2c: 01 [07:58:08]MH_I2C_Read... [07:58:08]Read from MH i2c: 01 07 00 [07:58:08]MH_I2C_Read... [07:58:08]Read from MH i2c: 01 07 00 61 20 00 00 00 00 00 BA 0C 4E [07:58:08]RasterBufferAndPrint [07:58:08]line [07:58:08]line [07:58:08]line [07:58:08]line [07:58:08]line [07:58:08]written 0, free lines is 3265 [07:58:08]MH_Cut [07:58:08]Write to MH i2c: D1 01 00 68 20 01 5A [07:58:08]Write i2c OK [07:58:08]MH_I2C_Read... [07:58:08]Read from MH i2c: D1 [07:58:08]MH_I2C_Read... [07:58:08]Read from MH i2c: D1 01 00 [07:58:08]MH_I2C_Read... [07:58:08]Read from MH i2c: D1 01 00 68 20 00 59 [07:58:08]Write to MH i2c: 01 00 00 69 20 89 [07:58:08]Write i2c OK [07:58:08]MH_I2C_Read... [07:58:08]OFD Sender: No OFD packet to send [07:58:09]*** Cut start [07:58:09]*** Partial cut [07:58:09]*** CUTSNS_PIN = 1 [07:58:09]*** CUTSNS_PIN = 0 [07:58:09]*** Brake cut motor [07:58:09]Read from MH i2c: 01 [07:58:09]MH_I2C_Read... [07:58:09]*** Stop cut motor [07:58:09]*** Cut end [07:58:09]Read from MH i2c: 01 07 00 [07:58:09]MH_I2C_Read... [07:58:09]Read from MH i2c: 01 07 00 69 20 00 00 00 00 00 FF 0F 9E [07:58:09]process_action close_receipt done [07:58:09]requested_data is exist [07:58:09]produce_requested_data [07:58:09]requested_item fm.sn is exist - process it [07:58:09]wFMCommunicate request_size=4 [07:58:09]MH_SAM_APDU [07:58:09]CAPDU: 80 11 00 00 [07:58:09]Write to MH i2c: E2 08 00 6A 20 80 11 00 00 00 00 00 00 04 [07:58:09]Write i2c OK [07:58:09]MH_I2C_Read... [07:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:10]Read from MH i2c: E2 [07:58:10]MH_I2C_Read... [07:58:10]Read from MH i2c: E2 17 00 [07:58:10]MH_I2C_Read... [07:58:10]Read from MH i2c: E2 17 00 6A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 57 [07:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:58:10]wFMCommunicate OK [07:58:10]requested_item fd.num is exist - process it [07:58:10]SAM_PROTO_GetFieldsCounters [07:58:10]wFMCommunicate request_size=4 [07:58:10]MH_SAM_APDU [07:58:10]CAPDU: 80 13 00 00 [07:58:10]Write to MH i2c: E2 08 00 6B 20 80 13 00 00 00 00 00 00 07 [07:58:10]Write i2c OK [07:58:10]MH_I2C_Read... [07:58:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:10]Read from MH i2c: E2 [07:58:10]MH_I2C_Read... [07:58:10]Read from MH i2c: E2 62 00 [07:58:10]MH_I2C_Read... [07:58:10]Read from MH i2c: E2 62 00 6B 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D1 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [07:58:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D1 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:58:10]wFMCommunicate OK [07:58:10]SAM_PROTO_GetFieldsCounters done [07:58:10]requested_item shift.num is exist - process it [07:58:10]requested_item shift.opened is exist - process it [07:58:10]req_shift_opened [07:58:10]FM_GetShiftState [07:58:10]SAM_PROTO_GetShiftState [07:58:10]wFMCommunicate request_size=4 [07:58:10]MH_SAM_APDU [07:58:10]CAPDU: 80 13 01 00 [07:58:10]Write to MH i2c: E2 08 00 6C 20 80 13 01 00 00 00 00 00 09 [07:58:10]Write i2c OK [07:58:10]MH_I2C_Read... [07:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:10]Read from MH i2c: E2 [07:58:10]MH_I2C_Read... [07:58:10]Read from MH i2c: E2 0E 00 [07:58:10]MH_I2C_Read... [07:58:10]Read from MH i2c: E2 0E 00 6C 20 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 59 [07:58:10]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [07:58:10]wFMCommunicate OK [07:58:10]SAM_PROTO_GetShiftState done [07:58:10]FM_GetShiftState done [07:58:10]req_shift_opened done [07:58:10]requested_item shift.open_date is exist - process it [07:58:10]req_shift_open_date [07:58:10]req_shift_open_date done [07:58:10]produce_requested_data done [07:58:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192465,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [07:58:10]process_action_free close_receipt [07:58:10]json_value_free [07:58:10]json_value_free done [07:58:10]process_json_proto returns [07:58:10]Send response to host [07:58:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192465,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [07:58:10]free response buf [07:58:10]execute_script done [07:58:10]execute_script returns [07:58:10]free content buf [07:58:10]Sock 9.Close socket [07:58:10]Sock 9.Thread stoped [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:58]OFD Sender: No OFD packet to send [07:59:03]OFD Sender: No OFD packet to send [07:59:08]OFD Sender: No OFD packet to send [07:59:13]OFD Sender: No OFD packet to send [07:59:18]OFD Sender: No OFD packet to send [07:59:23]OFD Sender: No OFD packet to send [07:59:28]OFD Sender: No OFD packet to send [07:59:33]OFD Sender: No OFD packet to send [07:59:38]OFD Sender: No OFD packet to send [07:59:43]OFD Sender: No OFD packet to send [07:59:48]OFD Sender: No OFD packet to send [07:59:53]OFD Sender: No OFD packet to send [07:59:58]OFD Sender: No OFD packet to send [08:00:03]OFD Sender: No OFD packet to send [08:00:08]OFD Sender: No OFD packet to send [08:00:13]OFD Sender: No OFD packet to send [08:00:18]OFD Sender: No OFD packet to send [08:00:23]OFD Sender: No OFD packet to send [08:00:28]OFD Sender: No OFD packet to send [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:09]accept exits with 7 [08:24:09]New connection [08:24:09]New thread 3066707300 created [08:24:09]Thread 3066563940 joined [08:24:09]Waiting for new connection... [08:24:09] Sock 7.Parse request [08:24:09]Sock 7.Check first char [08:24:09]Sock 7.First char is OK [08:24:09]request: POST /json_proto HTTP/1.0 [08:24:09]Method: POST [08:24:09]URL: /json_proto [08:24:09]Method is POST - this is cgi request [08:24:09]url: /json_proto [08:24:09]query_string will be loaded in cgi processing [08:24:09]execute_cgi json_proto POST (null) [08:24:09]execute_cgi path=json_proto method=POST [08:24:09]POST find Content-Length [08:24:09]Host: 172.17.63.131:8080 [08:24:09]Content-Length: 865 [08:24:09]Content-Type: application/json [08:24:09] [08:24:09]POST finish read [08:24:09]Found Content-Length = 865 [08:24:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:09]execute_script... [08:24:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:09]POST & json_proto [08:24:09]process_json_proto [08:24:09]json parsed OK: [08:24:09]protocol is kg_v1.0 [08:24:09]action value=close_receipt [08:24:09]process_action close_receipt [08:24:09]cmd_close_receipt [08:24:09]MH_GetDate [08:24:09]Write to MH i2c: F0 00 00 6D 20 7C [08:24:09]Write i2c OK [08:24:09]MH_I2C_Read... [08:24:09]Read from MH i2c: F0 [08:24:09]MH_I2C_Read... [08:24:09]Read from MH i2c: F0 09 00 [08:24:09]MH_I2C_Read... [08:24:09]Read from MH i2c: F0 09 00 6D 20 00 2D 4A 1F 67 22 05 6E 64 7B [08:24:09]GetLastDocTimeStamp 1730102290 [08:24:09]current date 1730103853 [08:24:09]FM_GetShiftState [08:24:09]SAM_PROTO_GetShiftState [08:24:09]wFMCommunicate request_size=4 [08:24:09]MH_SAM_APDU [08:24:09]CAPDU: 80 13 01 00 [08:24:09]Write to MH i2c: E2 08 00 6E 20 80 13 01 00 00 00 00 00 0B [08:24:09]Write i2c OK [08:24:09]MH_I2C_Read... [08:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:09]Read from MH i2c: E2 [08:24:09]MH_I2C_Read... [08:24:09]Read from MH i2c: E2 0E 00 [08:24:09]MH_I2C_Read... [08:24:09]Read from MH i2c: E2 0E 00 6E 20 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 5B [08:24:09]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:24:09]wFMCommunicate OK [08:24:09]SAM_PROTO_GetShiftState done [08:24:09]FM_GetShiftState done [08:24:09]opened in 1730075620 [08:24:09]opened+sec_in_day 1730162020 [08:24:09]quantity*price = 200031 [08:24:09]sum+1 = 200032 [08:24:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 14 28.10.2024 08:24 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192466 ФПД: 43229808523069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T082413&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192466&fm=43229808523069&tin=02508201610067®Number=0000000000091776&sum=200031 [08:24:10]StoreToDocumentArchive [08:24:10]shift 543 fd 192466 [08:24:10]save to /storage/0543/doc_00192466 [08:24:10]save last doc name /storage/0543/doc_00192466 to /storage/kkm_last_doc_name [08:24:10]save OK [08:24:10]Clear old archive folders... [08:24:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:24:10]tlvbuf is 019D52A0 [08:24:10]SAM_PROTO_ClearQueue [08:24:10]wFMCommunicate request_size=4 [08:24:10]MH_SAM_APDU [08:24:10]CAPDU: 80 09 00 00 [08:24:10]Write to MH i2c: E2 08 00 7B 20 80 09 00 00 00 00 00 00 0D [08:24:10]Write i2c OK [08:24:10]MH_I2C_Read... [08:24:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:10]Read from MH i2c: E2 [08:24:10]MH_I2C_Read... [08:24:10]Read from MH i2c: E2 03 00 [08:24:10]MH_I2C_Read... [08:24:10]Read from MH i2c: E2 03 00 7B 20 00 90 00 0F [08:24:10]RAPDU: 90 00 [08:24:10]wFMCommunicate OK [08:24:10]SAM_PROTO_ClearQueue done [08:24:10]KKMCreateOFDPacket [08:24:10]OFDProtocolAddRootSTLVToBuf [08:24:10]FM_MakeSignedData [08:24:10]FM_MakeSignedData [08:24:10]SAM_PROTO_SignData [08:24:10]wFMCommunicate request_size=4 [08:24:10]MH_SAM_APDU [08:24:10]CAPDU: 80 0D 01 02 [08:24:10]Write to MH i2c: E2 08 00 7C 20 80 0D 01 02 00 00 00 00 15 [08:24:10]Write i2c OK [08:24:10]MH_I2C_Read... [08:24:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:10]Read from MH i2c: E2 [08:24:10]MH_I2C_Read... [08:24:10]Read from MH i2c: E2 03 00 [08:24:10]MH_I2C_Read... [08:24:10]Read from MH i2c: E2 03 00 7C 20 00 90 00 10 [08:24:10]RAPDU: 90 00 [08:24:10]wFMCommunicate OK [08:24:10]wFMCommunicate request_size=255 [08:24:10]MH_SAM_APDU [08:24:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2D 4A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EF 02 00 35 04 06 00 27 [08:24:10]Write to MH i2c: E2 02 01 7D 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2D 4A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EF 02 00 35 04 06 00 27 00 00 3F [08:24:10]Write i2c OK [08:24:10]MH_I2C_Read... [08:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:11]Read from MH i2c: E2 [08:24:11]MH_I2C_Read... [08:24:11]Read from MH i2c: E2 03 00 [08:24:11]MH_I2C_Read... [08:24:11]Read from MH i2c: E2 03 00 7D 20 00 90 00 11 [08:24:11]RAPDU: 90 00 [08:24:11]wFMCommunicate OK [08:24:11]wFMCommunicate request_size=10 [08:24:11]MH_SAM_APDU [08:24:11]CAPDU: 80 0D 02 02 05 51 39 61 77 3D [08:24:11]Write to MH i2c: E2 0D 00 7E 20 80 0D 02 02 05 00 51 39 61 77 3D 00 00 C1 [08:24:11]Write i2c OK [08:24:11]MH_I2C_Read... [08:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:11]Read from MH i2c: E2 [08:24:11]MH_I2C_Read... [08:24:11]Read from MH i2c: E2 03 00 [08:24:11]MH_I2C_Read... [08:24:11]Read from MH i2c: E2 03 00 7E 20 00 90 00 12 [08:24:11]RAPDU: 90 00 [08:24:11]wFMCommunicate OK [08:24:11]wFMCommunicate request_size=4 [08:24:11]MH_SAM_APDU [08:24:11]CAPDU: 80 0D 03 02 [08:24:11]Write to MH i2c: E2 08 00 7F 20 80 0D 03 02 00 00 00 00 1A [08:24:11]Write i2c OK [08:24:11]MH_I2C_Read... [08:24:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:11]Read from MH i2c: E2 [08:24:11]MH_I2C_Read... [08:24:11]Read from MH i2c: E2 0B 00 [08:24:11]MH_I2C_Read... [08:24:11]Read from MH i2c: E2 0B 00 7F 20 00 CC FC 24 C5 72 AD A3 57 90 00 E5 [08:24:11]RAPDU: CC FC 24 C5 72 AD A3 57 90 00 [08:24:11]wFMCommunicate OK [08:24:11]SAM_PROTO_SignData done [08:24:11]FM_MakeSignedData done [08:24:11]CreateOFDProtocolMessage [08:24:11]wFMCommunicate request_size=4 [08:24:11]MH_SAM_APDU [08:24:11]CAPDU: 80 11 00 00 [08:24:11]Write to MH i2c: E2 08 00 80 20 80 11 00 00 00 00 00 00 1A [08:24:11]Write i2c OK [08:24:11]MH_I2C_Read... [08:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:11]Read from MH i2c: E2 [08:24:11]MH_I2C_Read... [08:24:11]Read from MH i2c: E2 17 00 [08:24:11]MH_I2C_Read... [08:24:11]Read from MH i2c: E2 17 00 80 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6D [08:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:24:11]wFMCommunicate OK [08:24:11]CreateOFDProtocolMessage done [08:24:11]OFDSenderStorePacket 192466 [08:24:11]StoreOFDPacket docnum=192466 [08:24:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D9 DD 07 01 1F 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2D 4A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EF 02 00 35 04 06 00 27 51 39 61 77 3D CC FC 24 C5 72 AD A3 57 [08:24:11]CheckFolder [08:24:11]dirname=/storage/ofd_packets [08:24:11]CheckFolder done [08:24:11]ProducePacketName [08:24:11]name=ofd_packets/00192466 [08:24:11]NVStorageSaveData ofd_packets/00192466 [08:24:11]File name is /storage/ofd_packets/00192466 [08:24:11]Write 301 bytes [08:24:11]NVStorageSaveData done [08:24:11]OFDSenderStorePacket done [08:24:11]KKMCreateOFDPacket done [08:24:11]NVStorageSaveData kkm_last_timestamp [08:24:11]File name is /storage/kkm_last_timestamp [08:24:11]Write 4 bytes [08:24:11]NVStorageSaveData done [08:24:11]ExternCall_PrintAddStr [08:24:11]wPrintStart [08:24:11]Write to MH i2c: 01 00 00 81 20 A1 [08:24:11]Write i2c OK [08:24:11]MH_I2C_Read... [08:24:11]Read from MH i2c: 01 [08:24:11]MH_I2C_Read... [08:24:11]Read from MH i2c: 01 07 00 [08:24:11]MH_I2C_Read... [08:24:11]Read from MH i2c: 01 07 00 81 20 00 00 00 00 00 FF 0F B6 [08:24:11]RasterBufferAndPrint [08:24:11]line Счет N : (1)31781 [08:24:11]line ИНН: 02508201610067 [08:24:11]line Контрольно-Кассовый Чек [08:24:11]line ПРОДАЖА [08:24:11]line ТРК (МРК, ГНК) : 12 [08:24:11]line Товар: 2710124130 [08:24:11]line Аи-92-К-5 [08:24:11]line 29.900 * 66.90 [08:24:11]line = 2000.31 [08:24:11]line НДС 12% НСП 1% [08:24:11]line > о реализуемом товаре [08:24:11]line ИТОГО: 2000.31 [08:24:11]line НСП 1% : 17.70 [08:24:11]line НДС 12% : 212.42 [08:24:11]line Наличными: 0.00 [08:24:11]line Безнал.: 2000.31 [08:24:11]line Место: АЗС № 170 "Партнер Нефть" [08:24:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:24:11]line СНО: Общий режим [08:24:11]line Чек 14 28.10.2024 08:24 [08:24:11]line Смена: 543 ФФД: 1.0 [08:24:11]line ЗНМ: 0300000110 [08:24:11]line РНМ: 0000000000091776 [08:24:11]line Версия ККМ: 001 [08:24:11]line Платежная система: Кыргызкоммерцбанк [08:24:11]line ФМ: 0000000000871754 [08:24:11]line ФД: 192466 [08:24:11]line ФПД: 43229808523069 [08:24:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T082413&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192466&fm=43229808523069&tin=02508201610067®Number=0000000000091776&sum=200031 [08:24:11]OFD Sender: Processing packet 192466 [packets to send 75, broken 74] [08:24:11]ProducePacketName [08:24:11]name=ofd_packets/00192466 [08:24:11]OFD Sender: To server: pG, [08:24:11]CommunicateWithHost lk.salyk.kg:30040 [08:24:11]ConnectInit lk.salyk.kg [08:24:11]written 0, free lines is 4095 [08:24:11]Connected sock=11 [08:24:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D9 DD 07 01 1F 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2D 4A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EF 02 00 35 04 06 00 27 51 39 61 77 3D CC FC 24 C5 72 AD A3 57 [08:24:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 54 28 47 00 73 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EF 02 00 F4 03 04 00 F2 EE 1E 67 B6 04 01 00 00 FE 7A D9 77 03 ED 92 49 [08:24:11]CommunicateWithHost err = 0 [08:24:11]CheckOFDResponse [08:24:11]1017 (14) - 77093643461234 [08:24:11]1041 (16) - 0000000000871754 [08:24:11]1040 (4) - 192466 [08:24:11]1012 (4) - 28.10.2024 01:54 [08:24:11]1206 (1) - 0 [08:24:11]OFD Sender: Remove packet 192466 [08:24:11]ProducePacketName [08:24:11]name=ofd_packets/00192466 [08:24:11]NVStorageDeleteData [08:24:12]Write to MH i2c: 01 00 00 AB 20 CB [08:24:12]Write i2c OK [08:24:12]MH_I2C_Read... [08:24:12]Read from MH i2c: 01 [08:24:12]MH_I2C_Read... [08:24:12]Read from MH i2c: 01 07 00 [08:24:12]MH_I2C_Read... [08:24:12]Read from MH i2c: 01 07 00 AB 20 00 00 00 00 00 C8 0C A6 [08:24:12]RasterBufferAndPrint [08:24:12]line [08:24:12]line [08:24:12]line [08:24:12]line [08:24:12]line [08:24:12]written 0, free lines is 3277 [08:24:12]MH_Cut [08:24:12]Write to MH i2c: D1 01 00 B2 20 01 A4 [08:24:12]Write i2c OK [08:24:12]MH_I2C_Read... [08:24:12]Read from MH i2c: D1 [08:24:12]MH_I2C_Read... [08:24:12]Read from MH i2c: D1 01 00 [08:24:12]MH_I2C_Read... [08:24:12]Read from MH i2c: D1 01 00 B2 20 00 A3 [08:24:12]Write to MH i2c: 01 00 00 B3 20 D3 [08:24:12]Write i2c OK [08:24:12]MH_I2C_Read... [08:24:12]OFD Sender: No OFD packet to send [08:24:12]*** Cut start [08:24:12]*** Partial cut [08:24:12]*** CUTSNS_PIN = 1 [08:24:12]*** CUTSNS_PIN = 0 [08:24:13]*** Brake cut motor [08:24:13]Read from MH i2c: 01 [08:24:13]MH_I2C_Read... [08:24:13]*** Stop cut motor [08:24:13]*** Cut end [08:24:13]Read from MH i2c: 01 07 00 [08:24:13]MH_I2C_Read... [08:24:13]Read from MH i2c: 01 07 00 B3 20 00 00 00 00 00 FF 0F E8 [08:24:13]process_action close_receipt done [08:24:13]requested_data is exist [08:24:13]produce_requested_data [08:24:13]requested_item fm.sn is exist - process it [08:24:13]wFMCommunicate request_size=4 [08:24:13]MH_SAM_APDU [08:24:13]CAPDU: 80 11 00 00 [08:24:13]Write to MH i2c: E2 08 00 B4 20 80 11 00 00 00 00 00 00 4E [08:24:13]Write i2c OK [08:24:13]MH_I2C_Read... [08:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:13]Read from MH i2c: E2 [08:24:13]MH_I2C_Read... [08:24:13]Read from MH i2c: E2 17 00 [08:24:13]MH_I2C_Read... [08:24:13]Read from MH i2c: E2 17 00 B4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A1 [08:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:24:13]wFMCommunicate OK [08:24:13]requested_item fd.num is exist - process it [08:24:13]SAM_PROTO_GetFieldsCounters [08:24:13]wFMCommunicate request_size=4 [08:24:13]MH_SAM_APDU [08:24:13]CAPDU: 80 13 00 00 [08:24:13]Write to MH i2c: E2 08 00 B5 20 80 13 00 00 00 00 00 00 51 [08:24:13]Write i2c OK [08:24:13]MH_I2C_Read... [08:24:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:13]Read from MH i2c: E2 [08:24:13]MH_I2C_Read... [08:24:13]Read from MH i2c: E2 62 00 [08:24:13]MH_I2C_Read... [08:24:13]Read from MH i2c: E2 62 00 B5 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D2 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [08:24:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D2 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:24:13]wFMCommunicate OK [08:24:13]SAM_PROTO_GetFieldsCounters done [08:24:13]requested_item shift.num is exist - process it [08:24:13]requested_item shift.opened is exist - process it [08:24:13]req_shift_opened [08:24:13]FM_GetShiftState [08:24:13]SAM_PROTO_GetShiftState [08:24:13]wFMCommunicate request_size=4 [08:24:13]MH_SAM_APDU [08:24:13]CAPDU: 80 13 01 00 [08:24:13]Write to MH i2c: E2 08 00 B6 20 80 13 01 00 00 00 00 00 53 [08:24:13]Write i2c OK [08:24:13]MH_I2C_Read... [08:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:13]Read from MH i2c: E2 [08:24:13]MH_I2C_Read... [08:24:13]Read from MH i2c: E2 0E 00 [08:24:13]MH_I2C_Read... [08:24:13]Read from MH i2c: E2 0E 00 B6 20 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A3 [08:24:13]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:24:13]wFMCommunicate OK [08:24:13]SAM_PROTO_GetShiftState done [08:24:13]FM_GetShiftState done [08:24:13]req_shift_opened done [08:24:13]requested_item shift.open_date is exist - process it [08:24:13]req_shift_open_date [08:24:13]req_shift_open_date done [08:24:13]produce_requested_data done [08:24:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192466,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [08:24:13]process_action_free close_receipt [08:24:13]json_value_free [08:24:13]json_value_free done [08:24:13]process_json_proto returns [08:24:13]Send response to host [08:24:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192466,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [08:24:13]free response buf [08:24:13]execute_script done [08:24:13]execute_script returns [08:24:13]free content buf [08:24:13]Sock 7.Close socket [08:24:13]Sock 7.Thread stoped [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]accept exits with 9 [08:25:17]New connection [08:25:17]New thread 3066563940 created [08:25:17]Thread 3066707300 joined [08:25:17]Waiting for new connection... [08:25:17] Sock 9.Parse request [08:25:17]Sock 9.Check first char [08:25:17]Sock 9.First char is OK [08:25:17]request: POST /json_proto HTTP/1.0 [08:25:17]Method: POST [08:25:17]URL: /json_proto [08:25:17]Method is POST - this is cgi request [08:25:17]url: /json_proto [08:25:17]query_string will be loaded in cgi processing [08:25:17]execute_cgi json_proto POST (null) [08:25:17]execute_cgi path=json_proto method=POST [08:25:17]POST find Content-Length [08:25:17]Host: 172.17.63.131:8080 [08:25:17]Content-Length: 676 [08:25:17]Content-Type: application/json [08:25:17] [08:25:17]POST finish read [08:25:17]Found Content-Length = 676 [08:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:17]execute_script... [08:25:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:17]POST & json_proto [08:25:17]process_json_proto [08:25:17]json parsed OK: [08:25:17]protocol is kg_v1.0 [08:25:17]action value=close_receipt [08:25:17]process_action close_receipt [08:25:17]cmd_close_receipt [08:25:17]MH_GetDate [08:25:17]Write to MH i2c: F0 00 00 B7 20 C6 [08:25:17]Write i2c OK [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: F0 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: F0 09 00 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: F0 09 00 B7 20 00 71 4A 1F 67 22 05 6E 64 09 [08:25:17]GetLastDocTimeStamp 1730103853 [08:25:17]current date 1730103921 [08:25:17]FM_GetShiftState [08:25:17]SAM_PROTO_GetShiftState [08:25:17]wFMCommunicate request_size=4 [08:25:17]MH_SAM_APDU [08:25:17]CAPDU: 80 13 01 00 [08:25:17]Write to MH i2c: E2 08 00 B8 20 80 13 01 00 00 00 00 00 55 [08:25:17]Write i2c OK [08:25:17]MH_I2C_Read... [08:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:17]Read from MH i2c: E2 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: E2 0E 00 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: E2 0E 00 B8 20 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A5 [08:25:17]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:25:17]wFMCommunicate OK [08:25:17]SAM_PROTO_GetShiftState done [08:25:17]FM_GetShiftState done [08:25:17]opened in 1730075620 [08:25:17]opened+sec_in_day 1730162020 [08:25:17]quantity*price = 20003 [08:25:17]sum+1 = 20004 [08:25:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 15 28.10.2024 08:25 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192467 ФПД: 212482445593404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T082521&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192467&fm=212482445593404&tin=02508201610067®Number=0000000000091776&sum=20000 [08:25:18]StoreToDocumentArchive [08:25:18]shift 543 fd 192467 [08:25:18]save to /storage/0543/doc_00192467 [08:25:18]save last doc name /storage/0543/doc_00192467 to /storage/kkm_last_doc_name [08:25:18]save OK [08:25:18]Clear old archive folders... [08:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:25:18]tlvbuf is 019E3E80 [08:25:18]SAM_PROTO_ClearQueue [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 09 00 00 [08:25:18]Write to MH i2c: E2 08 00 C5 20 80 09 00 00 00 00 00 00 57 [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 C5 20 00 90 00 59 [08:25:18]RAPDU: 90 00 [08:25:18]wFMCommunicate OK [08:25:18]SAM_PROTO_ClearQueue done [08:25:18]KKMCreateOFDPacket [08:25:18]OFDProtocolAddRootSTLVToBuf [08:25:18]FM_MakeSignedData [08:25:18]FM_MakeSignedData [08:25:18]SAM_PROTO_SignData [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 0D 01 02 [08:25:18]Write to MH i2c: E2 08 00 C6 20 80 0D 01 02 00 00 00 00 5F [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 C6 20 00 90 00 5A [08:25:18]RAPDU: 90 00 [08:25:18]wFMCommunicate OK [08:25:18]wFMCommunicate request_size=255 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 71 4A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EF 02 00 35 04 06 00 C1 [08:25:18]Write to MH i2c: E2 02 01 C7 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 71 4A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EF 02 00 35 04 06 00 C1 00 00 AB [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 C7 20 00 90 00 5B [08:25:18]RAPDU: 90 00 [08:25:18]wFMCommunicate OK [08:25:18]wFMCommunicate request_size=10 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 0D 02 02 05 40 6C B0 CB 3C [08:25:18]Write to MH i2c: E2 0D 00 C8 20 80 0D 02 02 05 00 40 6C B0 CB 3C 00 00 CF [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 C8 20 00 90 00 5C [08:25:18]RAPDU: 90 00 [08:25:18]wFMCommunicate OK [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 0D 03 02 [08:25:18]Write to MH i2c: E2 08 00 C9 20 80 0D 03 02 00 00 00 00 64 [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 0B 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 0B 00 C9 20 00 39 B7 4B EA 5F FC 1E 80 90 00 83 [08:25:18]RAPDU: 39 B7 4B EA 5F FC 1E 80 90 00 [08:25:18]wFMCommunicate OK [08:25:18]SAM_PROTO_SignData done [08:25:18]FM_MakeSignedData done [08:25:18]CreateOFDProtocolMessage [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 11 00 00 [08:25:18]Write to MH i2c: E2 08 00 CA 20 80 11 00 00 00 00 00 00 64 [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 17 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 17 00 CA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B7 [08:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:25:18]wFMCommunicate OK [08:25:18]CreateOFDProtocolMessage done [08:25:18]OFDSenderStorePacket 192467 [08:25:18]StoreOFDPacket docnum=192467 [08:25:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C1 50 07 01 6F F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 71 4A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EF 02 00 35 04 06 00 C1 40 6C B0 CB 3C 39 B7 4B EA 5F FC 1E 80 [08:25:18]CheckFolder [08:25:18]dirname=/storage/ofd_packets [08:25:18]CheckFolder done [08:25:18]ProducePacketName [08:25:18]name=ofd_packets/00192467 [08:25:18]NVStorageSaveData ofd_packets/00192467 [08:25:18]File name is /storage/ofd_packets/00192467 [08:25:18]Write 301 bytes [08:25:18]NVStorageSaveData done [08:25:18]OFDSenderStorePacket done [08:25:18]KKMCreateOFDPacket done [08:25:18]NVStorageSaveData kkm_last_timestamp [08:25:18]File name is /storage/kkm_last_timestamp [08:25:18]Write 4 bytes [08:25:18]NVStorageSaveData done [08:25:18]ExternCall_PrintAddStr [08:25:18]wPrintStart [08:25:18]Write to MH i2c: 01 00 00 CB 20 EB [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: 01 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: 01 07 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: 01 07 00 CB 20 00 00 00 00 00 FF 0F 00 [08:25:18]RasterBufferAndPrint [08:25:18]line Счет N : (1)31782 [08:25:18]line ИНН: 02508201610067 [08:25:18]line Контрольно-Кассовый Чек [08:25:18]line ПРОДАЖА [08:25:18]line ТРК (МРК, ГНК) : 12 [08:25:18]line Товар: 2710124130 [08:25:18]line Аи-92-К-5 [08:25:18]line 2.990 * 66.90 [08:25:18]line = 200.03 [08:25:18]line НДС 12% НСП 1% [08:25:18]line > о реализуемом товаре [08:25:18]line ОКРУГЛЕНИЕ: -0.03 [08:25:18]line ИТОГО: 200.00 [08:25:18]line Внесено: 200.00 [08:25:18]line СДАЧА: 0.00 [08:25:18]line НСП 1% : 1.77 [08:25:18]line НДС 12% : 21.24 [08:25:18]line Наличными: 200.00 [08:25:18]line Безнал.: 0.00 [08:25:18]line Место: АЗС № 170 "Партнер Нефть" [08:25:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:25:18]line СНО: Общий режим [08:25:18]line Чек 15 28.10.2024 08:25 [08:25:18]line Смена: 543 ФФД: 1.0 [08:25:18]line ЗНМ: 0300000110 [08:25:18]line РНМ: 0000000000091776 [08:25:18]line Версия ККМ: 001 [08:25:18]line ФМ: 0000000000871754 [08:25:18]line ФД: 192467 [08:25:18]line ФПД: 212482445593404 [08:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T082521&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192467&fm=212482445593404&tin=02508201610067®Number=0000000000091776&sum=20000 [08:25:19]OFD Sender: Processing packet 192467 [packets to send 75, broken 74] [08:25:19]ProducePacketName [08:25:19]name=ofd_packets/00192467 [08:25:19]OFD Sender: To server: pG, [08:25:19]CommunicateWithHost lk.salyk.kg:30040 [08:25:19]ConnectInit lk.salyk.kg [08:25:19]written 0, free lines is 4095 [08:25:19]Connected sock=10 [08:25:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C1 50 07 01 6F F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 71 4A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EF 02 00 35 04 06 00 C1 40 6C B0 CB 3C 39 B7 4B EA 5F FC 1E 80 [08:25:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A6 70 47 00 71 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EF 02 00 F4 03 04 00 36 EF 1E 67 B6 04 01 00 00 E8 CA E4 A0 F3 65 CC E1 [08:25:19]CommunicateWithHost err = 0 [08:25:19]CheckOFDResponse [08:25:19]1017 (14) - 77093643461234 [08:25:19]1041 (16) - 0000000000871754 [08:25:19]1040 (4) - 192467 [08:25:19]1012 (4) - 28.10.2024 01:56 [08:25:19]1206 (1) - 0 [08:25:19]OFD Sender: Remove packet 192467 [08:25:19]ProducePacketName [08:25:19]name=ofd_packets/00192467 [08:25:19]NVStorageDeleteData [08:25:19]Write to MH i2c: 01 00 00 F6 20 16 [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 07 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 07 00 F6 20 00 00 00 00 00 A5 0C CE [08:25:19]RasterBufferAndPrint [08:25:19]line [08:25:19]line [08:25:19]line [08:25:19]line [08:25:19]line [08:25:19]written 0, free lines is 3242 [08:25:19]MH_Cut [08:25:19]Write to MH i2c: D1 01 00 FD 20 01 EF [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: D1 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: D1 01 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: D1 01 00 FD 20 00 EE [08:25:19]Write to MH i2c: 01 00 00 FE 20 1E [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:20]OFD Sender: No OFD packet to send [08:25:20]*** Cut start [08:25:20]*** Partial cut [08:25:20]*** CUTSNS_PIN = 1 [08:25:20]*** CUTSNS_PIN = 0 [08:25:20]*** Brake cut motor [08:25:21]Read from MH i2c: 01 [08:25:21]MH_I2C_Read... [08:25:21]*** Stop cut motor [08:25:21]*** Cut end [08:25:21]Read from MH i2c: 01 07 00 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: 01 07 00 FE 20 00 00 00 00 00 FF 0F 33 [08:25:21]process_action close_receipt done [08:25:21]requested_data is exist [08:25:21]produce_requested_data [08:25:21]requested_item fm.sn is exist - process it [08:25:21]wFMCommunicate request_size=4 [08:25:21]MH_SAM_APDU [08:25:21]CAPDU: 80 11 00 00 [08:25:21]Write to MH i2c: E2 08 00 FF 20 80 11 00 00 00 00 00 00 99 [08:25:21]Write i2c OK [08:25:21]MH_I2C_Read... [08:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:21]Read from MH i2c: E2 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 17 00 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 17 00 FF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EC [08:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:25:21]wFMCommunicate OK [08:25:21]requested_item fd.num is exist - process it [08:25:21]SAM_PROTO_GetFieldsCounters [08:25:21]wFMCommunicate request_size=4 [08:25:21]MH_SAM_APDU [08:25:21]CAPDU: 80 13 00 00 [08:25:21]Write to MH i2c: E2 08 00 00 21 80 13 00 00 00 00 00 00 9D [08:25:21]Write i2c OK [08:25:21]MH_I2C_Read... [08:25:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:21]Read from MH i2c: E2 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 62 00 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 62 00 00 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D3 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [08:25:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D3 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:21]wFMCommunicate OK [08:25:21]SAM_PROTO_GetFieldsCounters done [08:25:21]requested_item shift.num is exist - process it [08:25:21]requested_item shift.opened is exist - process it [08:25:21]req_shift_opened [08:25:21]FM_GetShiftState [08:25:21]SAM_PROTO_GetShiftState [08:25:21]wFMCommunicate request_size=4 [08:25:21]MH_SAM_APDU [08:25:21]CAPDU: 80 13 01 00 [08:25:21]Write to MH i2c: E2 08 00 01 21 80 13 01 00 00 00 00 00 9F [08:25:21]Write i2c OK [08:25:21]MH_I2C_Read... [08:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:21]Read from MH i2c: E2 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 0E 00 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 0E 00 01 21 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EF [08:25:21]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:25:21]wFMCommunicate OK [08:25:21]SAM_PROTO_GetShiftState done [08:25:21]FM_GetShiftState done [08:25:21]req_shift_opened done [08:25:21]requested_item shift.open_date is exist - process it [08:25:21]req_shift_open_date [08:25:21]req_shift_open_date done [08:25:21]produce_requested_data done [08:25:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192467,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [08:25:21]process_action_free close_receipt [08:25:21]json_value_free [08:25:21]json_value_free done [08:25:21]process_json_proto returns [08:25:21]Send response to host [08:25:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192467,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [08:25:21]free response buf [08:25:21]execute_script done [08:25:21]execute_script returns [08:25:21]free content buf [08:25:21]Sock 9.Close socket [08:25:21]Sock 9.Thread stoped [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:20]accept exits with 7 [08:29:20]New connection [08:29:20]New thread 3066707300 created [08:29:20]Thread 3066563940 joined [08:29:20]Waiting for new connection... [08:29:20] Sock 7.Parse request [08:29:20]Sock 7.Check first char [08:29:20]Sock 7.First char is OK [08:29:20]request: POST /json_proto HTTP/1.0 [08:29:20]Method: POST [08:29:20]URL: /json_proto [08:29:20]Method is POST - this is cgi request [08:29:20]url: /json_proto [08:29:20]query_string will be loaded in cgi processing [08:29:20]execute_cgi json_proto POST (null) [08:29:20]execute_cgi path=json_proto method=POST [08:29:20]POST find Content-Length [08:29:20]Host: 172.17.63.131:8080 [08:29:20]Content-Length: 676 [08:29:20]Content-Type: application/json [08:29:20] [08:29:20]POST finish read [08:29:20]Found Content-Length = 676 [08:29:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:20]execute_script... [08:29:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:20]POST & json_proto [08:29:20]process_json_proto [08:29:20]json parsed OK: [08:29:20]protocol is kg_v1.0 [08:29:20]action value=close_receipt [08:29:20]process_action close_receipt [08:29:20]cmd_close_receipt [08:29:20]MH_GetDate [08:29:20]Write to MH i2c: F0 00 00 02 21 12 [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: F0 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: F0 09 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: F0 09 00 02 21 00 64 4B 1F 67 22 05 6E 64 49 [08:29:20]GetLastDocTimeStamp 1730103921 [08:29:20]current date 1730104164 [08:29:20]FM_GetShiftState [08:29:20]SAM_PROTO_GetShiftState [08:29:20]wFMCommunicate request_size=4 [08:29:20]MH_SAM_APDU [08:29:20]CAPDU: 80 13 01 00 [08:29:20]Write to MH i2c: E2 08 00 03 21 80 13 01 00 00 00 00 00 A1 [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:20]Read from MH i2c: E2 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 0E 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 0E 00 03 21 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F1 [08:29:20]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:29:20]wFMCommunicate OK [08:29:20]SAM_PROTO_GetShiftState done [08:29:20]FM_GetShiftState done [08:29:20]opened in 1730075620 [08:29:20]opened+sec_in_day 1730162020 [08:29:20]quantity*price = 50041 [08:29:20]sum+1 = 50042 [08:29:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 16 28.10.2024 08:29 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192468 ФПД: 12594064679193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T082925&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192468&fm=12594064679193&tin=02508201610067®Number=0000000000091776&sum=50000 [08:29:21]StoreToDocumentArchive [08:29:21]shift 543 fd 192468 [08:29:21]save to /storage/0543/doc_00192468 [08:29:21]save last doc name /storage/0543/doc_00192468 to /storage/kkm_last_doc_name [08:29:21]save OK [08:29:21]Clear old archive folders... [08:29:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:21]tlvbuf is 019C1440 [08:29:21]SAM_PROTO_ClearQueue [08:29:21]wFMCommunicate request_size=4 [08:29:21]MH_SAM_APDU [08:29:21]CAPDU: 80 09 00 00 [08:29:21]Write to MH i2c: E2 08 00 10 21 80 09 00 00 00 00 00 00 A3 [08:29:21]Write i2c OK [08:29:21]MH_I2C_Read... [08:29:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:21]Read from MH i2c: E2 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: E2 03 00 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: E2 03 00 10 21 00 90 00 A5 [08:29:21]RAPDU: 90 00 [08:29:21]wFMCommunicate OK [08:29:21]SAM_PROTO_ClearQueue done [08:29:21]KKMCreateOFDPacket [08:29:21]OFDProtocolAddRootSTLVToBuf [08:29:21]FM_MakeSignedData [08:29:21]FM_MakeSignedData [08:29:21]SAM_PROTO_SignData [08:29:21]wFMCommunicate request_size=4 [08:29:21]MH_SAM_APDU [08:29:21]CAPDU: 80 0D 01 02 [08:29:21]Write to MH i2c: E2 08 00 11 21 80 0D 01 02 00 00 00 00 AB [08:29:21]Write i2c OK [08:29:21]MH_I2C_Read... [08:29:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:22]Read from MH i2c: E2 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 03 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 03 00 11 21 00 90 00 A6 [08:29:22]RAPDU: 90 00 [08:29:22]wFMCommunicate OK [08:29:22]wFMCommunicate request_size=255 [08:29:22]MH_SAM_APDU [08:29:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 65 4B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EF 02 00 35 04 06 00 0B [08:29:22]Write to MH i2c: E2 02 01 12 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 65 4B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EF 02 00 35 04 06 00 0B 00 00 76 [08:29:22]Write i2c OK [08:29:22]MH_I2C_Read... [08:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:22]Read from MH i2c: E2 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 03 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 03 00 12 21 00 90 00 A7 [08:29:22]RAPDU: 90 00 [08:29:22]wFMCommunicate OK [08:29:22]wFMCommunicate request_size=10 [08:29:22]MH_SAM_APDU [08:29:22]CAPDU: 80 0D 02 02 05 74 48 C0 61 19 [08:29:22]Write to MH i2c: E2 0D 00 13 21 80 0D 02 02 05 00 74 48 C0 61 19 00 00 AE [08:29:22]Write i2c OK [08:29:22]MH_I2C_Read... [08:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:22]Read from MH i2c: E2 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 03 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 03 00 13 21 00 90 00 A8 [08:29:22]RAPDU: 90 00 [08:29:22]wFMCommunicate OK [08:29:22]wFMCommunicate request_size=4 [08:29:22]MH_SAM_APDU [08:29:22]CAPDU: 80 0D 03 02 [08:29:22]Write to MH i2c: E2 08 00 14 21 80 0D 03 02 00 00 00 00 B0 [08:29:22]Write i2c OK [08:29:22]MH_I2C_Read... [08:29:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:22]Read from MH i2c: E2 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 0B 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 0B 00 14 21 00 E6 F2 23 4C 96 85 63 01 90 00 77 [08:29:22]RAPDU: E6 F2 23 4C 96 85 63 01 90 00 [08:29:22]wFMCommunicate OK [08:29:22]SAM_PROTO_SignData done [08:29:22]FM_MakeSignedData done [08:29:22]CreateOFDProtocolMessage [08:29:22]wFMCommunicate request_size=4 [08:29:22]MH_SAM_APDU [08:29:22]CAPDU: 80 11 00 00 [08:29:22]Write to MH i2c: E2 08 00 15 21 80 11 00 00 00 00 00 00 B0 [08:29:22]Write i2c OK [08:29:22]MH_I2C_Read... [08:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:22]Read from MH i2c: E2 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 17 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 17 00 15 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 03 [08:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:29:22]wFMCommunicate OK [08:29:22]CreateOFDProtocolMessage done [08:29:22]OFDSenderStorePacket 192468 [08:29:22]StoreOFDPacket docnum=192468 [08:29:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B9 36 07 01 C7 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 65 4B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EF 02 00 35 04 06 00 0B 74 48 C0 61 19 E6 F2 23 4C 96 85 63 01 [08:29:22]CheckFolder [08:29:22]dirname=/storage/ofd_packets [08:29:22]CheckFolder done [08:29:22]ProducePacketName [08:29:22]name=ofd_packets/00192468 [08:29:22]NVStorageSaveData ofd_packets/00192468 [08:29:22]File name is /storage/ofd_packets/00192468 [08:29:22]Write 301 bytes [08:29:22]NVStorageSaveData done [08:29:22]OFDSenderStorePacket done [08:29:22]KKMCreateOFDPacket done [08:29:22]NVStorageSaveData kkm_last_timestamp [08:29:22]File name is /storage/kkm_last_timestamp [08:29:22]Write 4 bytes [08:29:22]NVStorageSaveData done [08:29:22]ExternCall_PrintAddStr [08:29:22]wPrintStart [08:29:22]Write to MH i2c: 01 00 00 16 21 37 [08:29:22]Write i2c OK [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: 01 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: 01 07 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: 01 07 00 16 21 00 00 00 00 00 FF 0F 4C [08:29:22]RasterBufferAndPrint [08:29:22]line Счет N : (1)31783 [08:29:22]line ИНН: 02508201610067 [08:29:22]line Контрольно-Кассовый Чек [08:29:22]line ПРОДАЖА [08:29:22]line ТРК (МРК, ГНК) : 21 [08:29:22]line Товар: 2710124130 [08:29:22]line Аи-92-К-5 [08:29:22]line 7.480 * 66.90 [08:29:22]line = 500.41 [08:29:22]line НДС 12% НСП 1% [08:29:22]line > о реализуемом товаре [08:29:22]line ОКРУГЛЕНИЕ: -0.41 [08:29:22]line ИТОГО: 500.00 [08:29:22]line Внесено: 500.00 [08:29:22]line СДАЧА: 0.00 [08:29:22]line НСП 1% : 4.43 [08:29:22]line НДС 12% : 53.14 [08:29:22]line Наличными: 500.00 [08:29:22]line Безнал.: 0.00 [08:29:22]line Место: АЗС № 170 "Партнер Нефть" [08:29:22]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:29:22]line СНО: Общий режим [08:29:22]line Чек 16 28.10.2024 08:29 [08:29:22]line Смена: 543 ФФД: 1.0 [08:29:22]line ЗНМ: 0300000110 [08:29:22]line РНМ: 0000000000091776 [08:29:22]line Версия ККМ: 001 [08:29:22]line ФМ: 0000000000871754 [08:29:22]line ФД: 192468 [08:29:22]line ФПД: 12594064679193 [08:29:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T082925&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192468&fm=12594064679193&tin=02508201610067®Number=0000000000091776&sum=50000 [08:29:22]OFD Sender: Processing packet 192468 [packets to send 75, broken 74] [08:29:22]ProducePacketName [08:29:22]name=ofd_packets/00192468 [08:29:22]OFD Sender: To server: pG, [08:29:22]CommunicateWithHost lk.salyk.kg:30040 [08:29:22]ConnectInit lk.salyk.kg [08:29:22]written 0, free lines is 4095 [08:29:22]Connected sock=10 [08:29:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B9 36 07 01 C7 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 65 4B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EF 02 00 35 04 06 00 0B 74 48 C0 61 19 E6 F2 23 4C 96 85 63 01 [08:29:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4C 5F 47 00 B8 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EF 02 00 F4 03 04 00 29 F0 1E 67 B6 04 01 00 00 7D 64 2D F4 F6 F9 69 3B [08:29:23]CommunicateWithHost err = 0 [08:29:23]CheckOFDResponse [08:29:23]1017 (14) - 77093643461234 [08:29:23]1041 (16) - 0000000000871754 [08:29:23]1040 (4) - 192468 [08:29:23]1012 (4) - 28.10.2024 02:00 [08:29:23]1206 (1) - 0 [08:29:23]OFD Sender: Remove packet 192468 [08:29:23]ProducePacketName [08:29:23]name=ofd_packets/00192468 [08:29:23]NVStorageDeleteData [08:29:23]Write to MH i2c: 01 00 00 41 21 62 [08:29:23]Write i2c OK [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: 01 [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: 01 07 00 [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: 01 07 00 41 21 00 00 00 00 00 AB 0C 20 [08:29:23]RasterBufferAndPrint [08:29:23]line [08:29:23]line [08:29:23]line [08:29:23]line [08:29:23]line [08:29:23]written 0, free lines is 3251 [08:29:23]MH_Cut [08:29:23]Write to MH i2c: D1 01 00 48 21 01 3B [08:29:23]Write i2c OK [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: D1 [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: D1 01 00 [08:29:23]MH_I2C_Read... [08:29:23]Read from MH i2c: D1 01 00 48 21 00 3A [08:29:23]Write to MH i2c: 01 00 00 49 21 6A [08:29:23]Write i2c OK [08:29:23]MH_I2C_Read... [08:29:23]OFD Sender: No OFD packet to send [08:29:24]*** Cut start [08:29:24]*** Partial cut [08:29:24]*** CUTSNS_PIN = 1 [08:29:24]*** CUTSNS_PIN = 0 [08:29:24]*** Brake cut motor [08:29:24]Read from MH i2c: 01 [08:29:24]MH_I2C_Read... [08:29:24]*** Stop cut motor [08:29:24]*** Cut end [08:29:24]Read from MH i2c: 01 07 00 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: 01 07 00 49 21 00 00 00 00 00 FF 0F 7F [08:29:24]process_action close_receipt done [08:29:24]requested_data is exist [08:29:24]produce_requested_data [08:29:24]requested_item fm.sn is exist - process it [08:29:24]wFMCommunicate request_size=4 [08:29:24]MH_SAM_APDU [08:29:24]CAPDU: 80 11 00 00 [08:29:24]Write to MH i2c: E2 08 00 4A 21 80 11 00 00 00 00 00 00 E5 [08:29:24]Write i2c OK [08:29:24]MH_I2C_Read... [08:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:24]Read from MH i2c: E2 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: E2 17 00 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: E2 17 00 4A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 38 [08:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:29:24]wFMCommunicate OK [08:29:24]requested_item fd.num is exist - process it [08:29:24]SAM_PROTO_GetFieldsCounters [08:29:24]wFMCommunicate request_size=4 [08:29:24]MH_SAM_APDU [08:29:24]CAPDU: 80 13 00 00 [08:29:24]Write to MH i2c: E2 08 00 4B 21 80 13 00 00 00 00 00 00 E8 [08:29:24]Write i2c OK [08:29:24]MH_I2C_Read... [08:29:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:24]Read from MH i2c: E2 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: E2 62 00 [08:29:24]MH_I2C_Read... [08:29:24]Read from MH i2c: E2 62 00 4B 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D4 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [08:29:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D4 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:24]wFMCommunicate OK [08:29:24]SAM_PROTO_GetFieldsCounters done [08:29:24]requested_item shift.num is exist - process it [08:29:24]requested_item shift.opened is exist - process it [08:29:24]req_shift_opened [08:29:24]FM_GetShiftState [08:29:24]SAM_PROTO_GetShiftState [08:29:24]wFMCommunicate request_size=4 [08:29:24]MH_SAM_APDU [08:29:24]CAPDU: 80 13 01 00 [08:29:24]Write to MH i2c: E2 08 00 4C 21 80 13 01 00 00 00 00 00 EA [08:29:24]Write i2c OK [08:29:24]MH_I2C_Read... [08:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:25]Read from MH i2c: E2 [08:29:25]MH_I2C_Read... [08:29:25]Read from MH i2c: E2 0E 00 [08:29:25]MH_I2C_Read... [08:29:25]Read from MH i2c: E2 0E 00 4C 21 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3A [08:29:25]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:29:25]wFMCommunicate OK [08:29:25]SAM_PROTO_GetShiftState done [08:29:25]FM_GetShiftState done [08:29:25]req_shift_opened done [08:29:25]requested_item shift.open_date is exist - process it [08:29:25]req_shift_open_date [08:29:25]req_shift_open_date done [08:29:25]produce_requested_data done [08:29:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192468,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [08:29:25]process_action_free close_receipt [08:29:25]json_value_free [08:29:25]json_value_free done [08:29:25]process_json_proto returns [08:29:25]Send response to host [08:29:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192468,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [08:29:25]free response buf [08:29:25]execute_script done [08:29:25]execute_script returns [08:29:25]free content buf [08:29:25]Sock 7.Close socket [08:29:25]Sock 7.Thread stoped [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:35]accept exits with 9 [08:31:35]New connection [08:31:35]New thread 3066563940 created [08:31:35]Thread 3066707300 joined [08:31:35]Waiting for new connection... [08:31:35] Sock 9.Parse request [08:31:35]Sock 9.Check first char [08:31:35]Sock 9.First char is OK [08:31:35]request: POST /json_proto HTTP/1.0 [08:31:35]Method: POST [08:31:35]URL: /json_proto [08:31:35]Method is POST - this is cgi request [08:31:35]url: /json_proto [08:31:35]query_string will be loaded in cgi processing [08:31:35]execute_cgi json_proto POST (null) [08:31:35]execute_cgi path=json_proto method=POST [08:31:35]POST find Content-Length [08:31:35]Host: 172.17.63.131:8080 [08:31:35]Content-Length: 676 [08:31:35]Content-Type: application/json [08:31:35] [08:31:35]POST finish read [08:31:35]Found Content-Length = 676 [08:31:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:35]execute_script... [08:31: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)31784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:35]POST & json_proto [08:31:35]process_json_proto [08:31:35]json parsed OK: [08:31:35]protocol is kg_v1.0 [08:31:35]action value=close_receipt [08:31:35]process_action close_receipt [08:31:35]cmd_close_receipt [08:31:35]MH_GetDate [08:31:35]Write to MH i2c: F0 00 00 4D 21 5D [08:31:35]Write i2c OK [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: F0 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: F0 09 00 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: F0 09 00 4D 21 00 EB 4B 1F 67 22 05 6E 64 1B [08:31:35]GetLastDocTimeStamp 1730104165 [08:31:35]current date 1730104299 [08:31:35]FM_GetShiftState [08:31:35]SAM_PROTO_GetShiftState [08:31:35]wFMCommunicate request_size=4 [08:31:35]MH_SAM_APDU [08:31:35]CAPDU: 80 13 01 00 [08:31:35]Write to MH i2c: E2 08 00 4E 21 80 13 01 00 00 00 00 00 EC [08:31:35]Write i2c OK [08:31:35]MH_I2C_Read... [08:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:35]Read from MH i2c: E2 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 0E 00 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 0E 00 4E 21 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3C [08:31:35]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:31:35]wFMCommunicate OK [08:31:35]SAM_PROTO_GetShiftState done [08:31:35]FM_GetShiftState done [08:31:35]opened in 1730075620 [08:31:35]opened+sec_in_day 1730162020 [08:31:35]quantity*price = 20003 [08:31:35]sum+1 = 20004 [08:31:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 17 28.10.2024 08:31 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192469 ФПД: 203385257685390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T083139&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192469&fm=203385257685390&tin=02508201610067®Number=0000000000091776&sum=20000 [08:31:36]StoreToDocumentArchive [08:31:36]shift 543 fd 192469 [08:31:36]save to /storage/0543/doc_00192469 [08:31:36]save last doc name /storage/0543/doc_00192469 to /storage/kkm_last_doc_name [08:31:36]save OK [08:31:36]Clear old archive folders... [08:31:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:36]tlvbuf is 019D4E40 [08:31:36]SAM_PROTO_ClearQueue [08:31:36]wFMCommunicate request_size=4 [08:31:36]MH_SAM_APDU [08:31:36]CAPDU: 80 09 00 00 [08:31:36]Write to MH i2c: E2 08 00 5B 21 80 09 00 00 00 00 00 00 EE [08:31:36]Write i2c OK [08:31:36]MH_I2C_Read... [08:31:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:36]Read from MH i2c: E2 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 03 00 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 03 00 5B 21 00 90 00 F0 [08:31:36]RAPDU: 90 00 [08:31:36]wFMCommunicate OK [08:31:36]SAM_PROTO_ClearQueue done [08:31:36]KKMCreateOFDPacket [08:31:36]OFDProtocolAddRootSTLVToBuf [08:31:36]FM_MakeSignedData [08:31:36]FM_MakeSignedData [08:31:36]SAM_PROTO_SignData [08:31:36]wFMCommunicate request_size=4 [08:31:36]MH_SAM_APDU [08:31:36]CAPDU: 80 0D 01 02 [08:31:36]Write to MH i2c: E2 08 00 5C 21 80 0D 01 02 00 00 00 00 F6 [08:31:36]Write i2c OK [08:31:36]MH_I2C_Read... [08:31:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:36]Read from MH i2c: E2 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 03 00 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 03 00 5C 21 00 90 00 F1 [08:31:36]RAPDU: 90 00 [08:31:36]wFMCommunicate OK [08:31:36]wFMCommunicate request_size=255 [08:31:36]MH_SAM_APDU [08:31: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 EB 4B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EF 02 00 35 04 06 00 B8 [08:31:36]Write to MH i2c: E2 02 01 5D 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 EB 4B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EF 02 00 35 04 06 00 B8 00 00 B8 [08:31:36]Write i2c OK [08:31:36]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 03 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 03 00 5D 21 00 90 00 F2 [08:31:37]RAPDU: 90 00 [08:31:37]wFMCommunicate OK [08:31:37]wFMCommunicate request_size=10 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 0D 02 02 05 FA 52 09 71 8E [08:31:37]Write to MH i2c: E2 0D 00 5E 21 80 0D 02 02 05 00 FA 52 09 71 8E 00 00 57 [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 03 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 03 00 5E 21 00 90 00 F3 [08:31:37]RAPDU: 90 00 [08:31:37]wFMCommunicate OK [08:31:37]wFMCommunicate request_size=4 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 0D 03 02 [08:31:37]Write to MH i2c: E2 08 00 5F 21 80 0D 03 02 00 00 00 00 FB [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 0B 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 0B 00 5F 21 00 5F AD F9 37 CA D5 CD 78 90 00 1C [08:31:37]RAPDU: 5F AD F9 37 CA D5 CD 78 90 00 [08:31:37]wFMCommunicate OK [08:31:37]SAM_PROTO_SignData done [08:31:37]FM_MakeSignedData done [08:31:37]CreateOFDProtocolMessage [08:31:37]wFMCommunicate request_size=4 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 11 00 00 [08:31:37]Write to MH i2c: E2 08 00 60 21 80 11 00 00 00 00 00 00 FB [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 17 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 17 00 60 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4E [08:31:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:31:37]wFMCommunicate OK [08:31:37]CreateOFDProtocolMessage done [08:31:37]OFDSenderStorePacket 192469 [08:31:37]StoreOFDPacket docnum=192469 [08:31:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 68 24 07 01 5A 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 EB 4B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EF 02 00 35 04 06 00 B8 FA 52 09 71 8E 5F AD F9 37 CA D5 CD 78 [08:31:37]CheckFolder [08:31:37]dirname=/storage/ofd_packets [08:31:37]CheckFolder done [08:31:37]ProducePacketName [08:31:37]name=ofd_packets/00192469 [08:31:37]NVStorageSaveData ofd_packets/00192469 [08:31:37]File name is /storage/ofd_packets/00192469 [08:31:37]Write 301 bytes [08:31:37]NVStorageSaveData done [08:31:37]OFDSenderStorePacket done [08:31:37]KKMCreateOFDPacket done [08:31:37]NVStorageSaveData kkm_last_timestamp [08:31:37]File name is /storage/kkm_last_timestamp [08:31:37]Write 4 bytes [08:31:37]NVStorageSaveData done [08:31:37]ExternCall_PrintAddStr [08:31:37]wPrintStart [08:31:37]Write to MH i2c: 01 00 00 61 21 82 [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: 01 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: 01 07 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: 01 07 00 61 21 00 00 00 00 00 FF 0F 97 [08:31:37]RasterBufferAndPrint [08:31:37]line Счет N : (1)31784 [08:31:37]line ИНН: 02508201610067 [08:31:37]line Контрольно-Кассовый Чек [08:31:37]line ПРОДАЖА [08:31:37]line ТРК (МРК, ГНК) : 12 [08:31:37]line Товар: 2710124130 [08:31:37]line Аи-92-К-5 [08:31:37]line 2.990 * 66.90 [08:31:37]line = 200.03 [08:31:37]line НДС 12% НСП 1% [08:31:37]line > о реализуемом товаре [08:31:37]line ОКРУГЛЕНИЕ: -0.03 [08:31:37]line ИТОГО: 200.00 [08:31:37]line Внесено: 200.00 [08:31:37]line СДАЧА: 0.00 [08:31:37]line НСП 1% : 1.77 [08:31:37]line НДС 12% : 21.24 [08:31:37]line Наличными: 200.00 [08:31:37]line Безнал.: 0.00 [08:31:37]line Место: АЗС № 170 "Партнер Нефть" [08:31:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:31:37]line СНО: Общий режим [08:31:37]line Чек 17 28.10.2024 08:31 [08:31:37]line Смена: 543 ФФД: 1.0 [08:31:37]line ЗНМ: 0300000110 [08:31:37]line РНМ: 0000000000091776 [08:31:37]line Версия ККМ: 001 [08:31:37]line ФМ: 0000000000871754 [08:31:37]line ФД: 192469 [08:31:37]line ФПД: 203385257685390 [08:31:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T083139&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192469&fm=203385257685390&tin=02508201610067®Number=0000000000091776&sum=20000 [08:31:37]OFD Sender: Processing packet 192469 [packets to send 75, broken 74] [08:31:37]ProducePacketName [08:31:37]name=ofd_packets/00192469 [08:31:37]OFD Sender: To server: pG, [08:31:37]CommunicateWithHost lk.salyk.kg:30040 [08:31:37]ConnectInit lk.salyk.kg [08:31:37]written 0, free lines is 4095 [08:31:37]Connected sock=10 [08:31:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 68 24 07 01 5A 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 EB 4B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EF 02 00 35 04 06 00 B8 FA 52 09 71 8E 5F AD F9 37 CA D5 CD 78 [08:31:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EB CB 47 00 58 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EF 02 00 F4 03 04 00 B0 F0 1E 67 B6 04 01 00 00 95 8E EE 0D AA 52 15 12 [08:31:37]CommunicateWithHost err = 0 [08:31:37]CheckOFDResponse [08:31:37]1017 (14) - 77093643461234 [08:31:37]1041 (16) - 0000000000871754 [08:31:37]1040 (4) - 192469 [08:31:37]1012 (4) - 28.10.2024 02:02 [08:31:37]1206 (1) - 0 [08:31:37]OFD Sender: Remove packet 192469 [08:31:37]ProducePacketName [08:31:37]name=ofd_packets/00192469 [08:31:37]NVStorageDeleteData [08:31:38]Write to MH i2c: 01 00 00 8C 21 AD [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: 01 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: 01 07 00 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: 01 07 00 8C 21 00 00 00 00 00 A1 0C 61 [08:31:38]RasterBufferAndPrint [08:31:38]line [08:31:38]line [08:31:38]line [08:31:38]line [08:31:38]line [08:31:38]written 0, free lines is 3240 [08:31:38]MH_Cut [08:31:38]Write to MH i2c: D1 01 00 93 21 01 86 [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: D1 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: D1 01 00 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: D1 01 00 93 21 00 85 [08:31:38]Write to MH i2c: 01 00 00 94 21 B5 [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:38]OFD Sender: No OFD packet to send [08:31:38]*** Cut start [08:31:38]*** Partial cut [08:31:38]*** CUTSNS_PIN = 1 [08:31:38]*** CUTSNS_PIN = 0 [08:31:39]*** Brake cut motor [08:31:39]Read from MH i2c: 01 [08:31:39]MH_I2C_Read... [08:31:39]*** Stop cut motor [08:31:39]*** Cut end [08:31:39]Read from MH i2c: 01 07 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: 01 07 00 94 21 00 00 00 00 00 FF 0F CA [08:31:39]process_action close_receipt done [08:31:39]requested_data is exist [08:31:39]produce_requested_data [08:31:39]requested_item fm.sn is exist - process it [08:31:39]wFMCommunicate request_size=4 [08:31:39]MH_SAM_APDU [08:31:39]CAPDU: 80 11 00 00 [08:31:39]Write to MH i2c: E2 08 00 95 21 80 11 00 00 00 00 00 00 30 [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:39]Read from MH i2c: E2 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 17 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 17 00 95 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 83 [08:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:31:39]wFMCommunicate OK [08:31:39]requested_item fd.num is exist - process it [08:31:39]SAM_PROTO_GetFieldsCounters [08:31:39]wFMCommunicate request_size=4 [08:31:39]MH_SAM_APDU [08:31:39]CAPDU: 80 13 00 00 [08:31:39]Write to MH i2c: E2 08 00 96 21 80 13 00 00 00 00 00 00 33 [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:39]Read from MH i2c: E2 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 62 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 62 00 96 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D5 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [08:31:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D5 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:39]wFMCommunicate OK [08:31:39]SAM_PROTO_GetFieldsCounters done [08:31:39]requested_item shift.num is exist - process it [08:31:39]requested_item shift.opened is exist - process it [08:31:39]req_shift_opened [08:31:39]FM_GetShiftState [08:31:39]SAM_PROTO_GetShiftState [08:31:39]wFMCommunicate request_size=4 [08:31:39]MH_SAM_APDU [08:31:39]CAPDU: 80 13 01 00 [08:31:39]Write to MH i2c: E2 08 00 97 21 80 13 01 00 00 00 00 00 35 [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:39]Read from MH i2c: E2 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 0E 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: E2 0E 00 97 21 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 85 [08:31:39]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:31:39]wFMCommunicate OK [08:31:39]SAM_PROTO_GetShiftState done [08:31:39]FM_GetShiftState done [08:31:39]req_shift_opened done [08:31:39]requested_item shift.open_date is exist - process it [08:31:39]req_shift_open_date [08:31:39]req_shift_open_date done [08:31:39]produce_requested_data done [08:31:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192469,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [08:31:39]process_action_free close_receipt [08:31:39]json_value_free [08:31:39]json_value_free done [08:31:39]process_json_proto returns [08:31:39]Send response to host [08:31:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192469,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [08:31:39]free response buf [08:31:39]execute_script done [08:31:39]execute_script returns [08:31:39]free content buf [08:31:39]Sock 9.Close socket [08:31:39]Sock 9.Thread stoped [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:02]accept exits with 7 [08:32:02]New connection [08:32:02]New thread 3066707300 created [08:32:02]Thread 3066563940 joined [08:32:02]Waiting for new connection... [08:32:02] Sock 7.Parse request [08:32:02]Sock 7.Check first char [08:32:02]Sock 7.First char is OK [08:32:02]request: POST /json_proto HTTP/1.0 [08:32:02]Method: POST [08:32:02]URL: /json_proto [08:32:02]Method is POST - this is cgi request [08:32:02]url: /json_proto [08:32:02]query_string will be loaded in cgi processing [08:32:02]execute_cgi json_proto POST (null) [08:32:02]execute_cgi path=json_proto method=POST [08:32:02]POST find Content-Length [08:32:02]Host: 172.17.63.131:8080 [08:32:02]Content-Length: 681 [08:32:02]Content-Type: application/json [08:32:02] [08:32:02]POST finish read [08:32:02]Found Content-Length = 681 [08:32:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:02]execute_script... [08:32:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:02]POST & json_proto [08:32:02]process_json_proto [08:32:02]json parsed OK: [08:32:02]protocol is kg_v1.0 [08:32:02]action value=close_receipt [08:32:02]process_action close_receipt [08:32:02]cmd_close_receipt [08:32:02]MH_GetDate [08:32:02]Write to MH i2c: F0 00 00 98 21 A8 [08:32:02]Write i2c OK [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: F0 [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: F0 09 00 [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: F0 09 00 98 21 00 06 4C 1F 67 22 05 6E 64 82 [08:32:02]GetLastDocTimeStamp 1730104299 [08:32:02]current date 1730104326 [08:32:02]FM_GetShiftState [08:32:02]SAM_PROTO_GetShiftState [08:32:02]wFMCommunicate request_size=4 [08:32:02]MH_SAM_APDU [08:32:02]CAPDU: 80 13 01 00 [08:32:02]Write to MH i2c: E2 08 00 99 21 80 13 01 00 00 00 00 00 37 [08:32:02]Write i2c OK [08:32:02]MH_I2C_Read... [08:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:02]Read from MH i2c: E2 [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: E2 0E 00 [08:32:02]MH_I2C_Read... [08:32:02]Read from MH i2c: E2 0E 00 99 21 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 87 [08:32:02]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:32:02]wFMCommunicate OK [08:32:02]SAM_PROTO_GetShiftState done [08:32:02]FM_GetShiftState done [08:32:02]opened in 1730075620 [08:32:02]opened+sec_in_day 1730162020 [08:32:02]quantity*price = 100015 [08:32:02]sum+1 = 100017 [08:32:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 18 28.10.2024 08:32 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192470 ФПД: 211573923603726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T083206&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192470&fm=211573923603726&tin=02508201610067®Number=0000000000091776&sum=100000 [08:32:03]StoreToDocumentArchive [08:32:03]shift 543 fd 192470 [08:32:03]save to /storage/0543/doc_00192470 [08:32:03]save last doc name /storage/0543/doc_00192470 to /storage/kkm_last_doc_name [08:32:03]save OK [08:32:03]Clear old archive folders... [08:32:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:32:03]tlvbuf is 019D52A0 [08:32:03]SAM_PROTO_ClearQueue [08:32:03]wFMCommunicate request_size=4 [08:32:03]MH_SAM_APDU [08:32:03]CAPDU: 80 09 00 00 [08:32:03]Write to MH i2c: E2 08 00 A6 21 80 09 00 00 00 00 00 00 39 [08:32:03]Write i2c OK [08:32:03]MH_I2C_Read... [08:32:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:03]Read from MH i2c: E2 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 03 00 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 03 00 A6 21 00 90 00 3B [08:32:03]RAPDU: 90 00 [08:32:03]wFMCommunicate OK [08:32:03]SAM_PROTO_ClearQueue done [08:32:03]KKMCreateOFDPacket [08:32:03]OFDProtocolAddRootSTLVToBuf [08:32:03]FM_MakeSignedData [08:32:03]FM_MakeSignedData [08:32:03]SAM_PROTO_SignData [08:32:03]wFMCommunicate request_size=4 [08:32:03]MH_SAM_APDU [08:32:03]CAPDU: 80 0D 01 02 [08:32:03]Write to MH i2c: E2 08 00 A7 21 80 0D 01 02 00 00 00 00 41 [08:32:03]Write i2c OK [08:32:03]MH_I2C_Read... [08:32:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:03]Read from MH i2c: E2 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 03 00 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 03 00 A7 21 00 90 00 3C [08:32:03]RAPDU: 90 00 [08:32:03]wFMCommunicate OK [08:32:03]wFMCommunicate request_size=255 [08:32:03]MH_SAM_APDU [08:32: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 06 4C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EF 02 00 35 04 06 00 C0 [08:32:03]Write to MH i2c: E2 02 01 A8 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 06 4C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EF 02 00 35 04 06 00 C0 00 00 61 [08:32:03]Write i2c OK [08:32:03]MH_I2C_Read... [08:32:03]OFD Sender: No OFD packet to send [08:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:03]Read from MH i2c: E2 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 03 00 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 03 00 A8 21 00 90 00 3D [08:32:03]RAPDU: 90 00 [08:32:03]wFMCommunicate OK [08:32:03]wFMCommunicate request_size=10 [08:32:03]MH_SAM_APDU [08:32:03]CAPDU: 80 0D 02 02 05 6C E4 8F 65 0E [08:32:03]Write to MH i2c: E2 0D 00 A9 21 80 0D 02 02 05 00 6C E4 8F 65 0E 00 00 A0 [08:32:03]Write i2c OK [08:32:03]MH_I2C_Read... [08:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:03]Read from MH i2c: E2 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 03 00 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 03 00 A9 21 00 90 00 3E [08:32:03]RAPDU: 90 00 [08:32:03]wFMCommunicate OK [08:32:03]wFMCommunicate request_size=4 [08:32:03]MH_SAM_APDU [08:32:03]CAPDU: 80 0D 03 02 [08:32:03]Write to MH i2c: E2 08 00 AA 21 80 0D 03 02 00 00 00 00 46 [08:32:03]Write i2c OK [08:32:03]MH_I2C_Read... [08:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:03]Read from MH i2c: E2 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 0B 00 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 0B 00 AA 21 00 CC 67 92 A5 FB BF 3C 2E 90 00 D5 [08:32:03]RAPDU: CC 67 92 A5 FB BF 3C 2E 90 00 [08:32:03]wFMCommunicate OK [08:32:03]SAM_PROTO_SignData done [08:32:03]FM_MakeSignedData done [08:32:03]CreateOFDProtocolMessage [08:32:03]wFMCommunicate request_size=4 [08:32:03]MH_SAM_APDU [08:32:03]CAPDU: 80 11 00 00 [08:32:03]Write to MH i2c: E2 08 00 AB 21 80 11 00 00 00 00 00 00 46 [08:32:03]Write i2c OK [08:32:03]MH_I2C_Read... [08:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:03]Read from MH i2c: E2 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 17 00 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: E2 17 00 AB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 99 [08:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:32:03]wFMCommunicate OK [08:32:03]CreateOFDProtocolMessage done [08:32:03]OFDSenderStorePacket 192470 [08:32:03]StoreOFDPacket docnum=192470 [08:32:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4B 9E 07 01 19 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 06 4C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EF 02 00 35 04 06 00 C0 6C E4 8F 65 0E CC 67 92 A5 FB BF 3C 2E [08:32:03]CheckFolder [08:32:03]dirname=/storage/ofd_packets [08:32:03]CheckFolder done [08:32:03]ProducePacketName [08:32:03]name=ofd_packets/00192470 [08:32:03]NVStorageSaveData ofd_packets/00192470 [08:32:03]File name is /storage/ofd_packets/00192470 [08:32:03]Write 301 bytes [08:32:03]NVStorageSaveData done [08:32:03]OFDSenderStorePacket done [08:32:03]KKMCreateOFDPacket done [08:32:03]NVStorageSaveData kkm_last_timestamp [08:32:03]File name is /storage/kkm_last_timestamp [08:32:03]Write 4 bytes [08:32:03]NVStorageSaveData done [08:32:03]ExternCall_PrintAddStr [08:32:03]wPrintStart [08:32:03]Write to MH i2c: 01 00 00 AC 21 CD [08:32:03]Write i2c OK [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: 01 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: 01 07 00 [08:32:03]MH_I2C_Read... [08:32:03]Read from MH i2c: 01 07 00 AC 21 00 00 00 00 00 FF 0F E2 [08:32:03]RasterBufferAndPrint [08:32:03]line Счет N : (1)31785 [08:32:03]line ИНН: 02508201610067 [08:32:03]line Контрольно-Кассовый Чек [08:32:03]line ПРОДАЖА [08:32:03]line ТРК (МРК, ГНК) : 21 [08:32:03]line Товар: 2710124130 [08:32:03]line Аи-92-К-5 [08:32:03]line 14.950 * 66.90 [08:32:03]line = 1000.16 [08:32:03]line НДС 12% НСП 1% [08:32:03]line > о реализуемом товаре [08:32:03]line ОКРУГЛЕНИЕ: -0.16 [08:32:03]line ИТОГО: 1000.00 [08:32:03]line Внесено: 1000.00 [08:32:03]line СДАЧА: 0.00 [08:32:03]line НСП 1% : 8.85 [08:32:03]line НДС 12% : 106.21 [08:32:03]line Наличными: 1000.00 [08:32:03]line Безнал.: 0.00 [08:32:03]line Место: АЗС № 170 "Партнер Нефть" [08:32:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:32:03]line СНО: Общий режим [08:32:03]line Чек 18 28.10.2024 08:32 [08:32:03]line Смена: 543 ФФД: 1.0 [08:32:03]line ЗНМ: 0300000110 [08:32:03]line РНМ: 0000000000091776 [08:32:03]line Версия ККМ: 001 [08:32:03]line ФМ: 0000000000871754 [08:32:03]line ФД: 192470 [08:32:03]line ФПД: 211573923603726 [08:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T083206&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192470&fm=211573923603726&tin=02508201610067®Number=0000000000091776&sum=100000 [08:32:04]OFD Sender: Processing packet 192470 [packets to send 75, broken 74] [08:32:04]ProducePacketName [08:32:04]name=ofd_packets/00192470 [08:32:04]OFD Sender: To server: pG, [08:32:04]CommunicateWithHost lk.salyk.kg:30040 [08:32:04]ConnectInit lk.salyk.kg [08:32:04]written 0, free lines is 4095 [08:32:04]Connected sock=10 [08:32:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4B 9E 07 01 19 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 06 4C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EF 02 00 35 04 06 00 C0 6C E4 8F 65 0E CC 67 92 A5 FB BF 3C 2E [08:32:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 65 DA 47 00 16 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 31 37 35 34 10 04 04 00 D6 EF 02 00 F4 03 04 00 CB F0 1E 67 B6 04 01 00 00 7D D3 F3 0A B1 01 BF E0 [08:32:04]CommunicateWithHost err = 0 [08:32:04]CheckOFDResponse [08:32:04]1017 (14) - 77093643461234 [08:32:04]1041 (16) - 0000000000871754 [08:32:04]1040 (4) - 192470 [08:32:04]1012 (4) - 28.10.2024 02:02 [08:32:04]1206 (1) - 0 [08:32:04]OFD Sender: Remove packet 192470 [08:32:04]ProducePacketName [08:32:04]name=ofd_packets/00192470 [08:32:04]NVStorageDeleteData [08:32:04]Write to MH i2c: 01 00 00 D7 21 F8 [08:32:04]Write i2c OK [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: 01 [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: 01 07 00 [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: 01 07 00 D7 21 00 00 00 00 00 9F 0C AA [08:32:04]RasterBufferAndPrint [08:32:04]line [08:32:04]line [08:32:04]line [08:32:04]line [08:32:04]line [08:32:04]written 0, free lines is 3238 [08:32:04]MH_Cut [08:32:04]Write to MH i2c: D1 01 00 DE 21 01 D1 [08:32:04]Write i2c OK [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: D1 [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: D1 01 00 [08:32:04]MH_I2C_Read... [08:32:04]Read from MH i2c: D1 01 00 DE 21 00 D0 [08:32:04]Write to MH i2c: 01 00 00 DF 21 00 [08:32:04]Write i2c OK [08:32:04]MH_I2C_Read... [08:32:05]OFD Sender: No OFD packet to send [08:32:05]*** Cut start [08:32:05]*** Partial cut [08:32:05]*** CUTSNS_PIN = 1 [08:32:05]*** CUTSNS_PIN = 0 [08:32:05]*** Brake cut motor [08:32:06]Read from MH i2c: 01 [08:32:06]MH_I2C_Read... [08:32:06]*** Stop cut motor [08:32:06]*** Cut end [08:32:06]Read from MH i2c: 01 07 00 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: 01 07 00 DF 21 00 00 00 00 00 FF 0F 15 [08:32:06]process_action close_receipt done [08:32:06]requested_data is exist [08:32:06]produce_requested_data [08:32:06]requested_item fm.sn is exist - process it [08:32:06]wFMCommunicate request_size=4 [08:32:06]MH_SAM_APDU [08:32:06]CAPDU: 80 11 00 00 [08:32:06]Write to MH i2c: E2 08 00 E0 21 80 11 00 00 00 00 00 00 7B [08:32:06]Write i2c OK [08:32:06]MH_I2C_Read... [08:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:06]Read from MH i2c: E2 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: E2 17 00 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: E2 17 00 E0 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CE [08:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:32:06]wFMCommunicate OK [08:32:06]requested_item fd.num is exist - process it [08:32:06]SAM_PROTO_GetFieldsCounters [08:32:06]wFMCommunicate request_size=4 [08:32:06]MH_SAM_APDU [08:32:06]CAPDU: 80 13 00 00 [08:32:06]Write to MH i2c: E2 08 00 E1 21 80 13 00 00 00 00 00 00 7E [08:32:06]Write i2c OK [08:32:06]MH_I2C_Read... [08:32:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:06]Read from MH i2c: E2 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: E2 62 00 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: E2 62 00 E1 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D6 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [08: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D6 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:06]wFMCommunicate OK [08:32:06]SAM_PROTO_GetFieldsCounters done [08:32:06]requested_item shift.num is exist - process it [08:32:06]requested_item shift.opened is exist - process it [08:32:06]req_shift_opened [08:32:06]FM_GetShiftState [08:32:06]SAM_PROTO_GetShiftState [08:32:06]wFMCommunicate request_size=4 [08:32:06]MH_SAM_APDU [08:32:06]CAPDU: 80 13 01 00 [08:32:06]Write to MH i2c: E2 08 00 E2 21 80 13 01 00 00 00 00 00 80 [08:32:06]Write i2c OK [08:32:06]MH_I2C_Read... [08:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:06]Read from MH i2c: E2 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: E2 0E 00 [08:32:06]MH_I2C_Read... [08:32:06]Read from MH i2c: E2 0E 00 E2 21 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D0 [08:32:06]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:32:06]wFMCommunicate OK [08:32:06]SAM_PROTO_GetShiftState done [08:32:06]FM_GetShiftState done [08:32:06]req_shift_opened done [08:32:06]requested_item shift.open_date is exist - process it [08:32:06]req_shift_open_date [08:32:06]req_shift_open_date done [08:32:06]produce_requested_data done [08:32:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192470,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [08:32:06]process_action_free close_receipt [08:32:06]json_value_free [08:32:06]json_value_free done [08:32:06]process_json_proto returns [08:32:06]Send response to host [08:32:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192470,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [08:32:06]free response buf [08:32:06]execute_script done [08:32:06]execute_script returns [08:32:06]free content buf [08:32:06]Sock 7.Close socket [08:32:06]Sock 7.Thread stoped [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:28]accept exits with 9 [08:38:28]New connection [08:38:28]New thread 3066563940 created [08:38:28]Thread 3066707300 joined [08:38:28]Waiting for new connection... [08:38:28] Sock 9.Parse request [08:38:28]Sock 9.Check first char [08:38:28]Sock 9.First char is OK [08:38:28]request: POST /json_proto HTTP/1.0 [08:38:28]Method: POST [08:38:28]URL: /json_proto [08:38:28]Method is POST - this is cgi request [08:38:28]url: /json_proto [08:38:28]query_string will be loaded in cgi processing [08:38:28]execute_cgi json_proto POST (null) [08:38:28]execute_cgi path=json_proto method=POST [08:38:28]POST find Content-Length [08:38:28]Host: 172.17.63.131:8080 [08:38:28]Content-Length: 676 [08:38:28]Content-Type: application/json [08:38:28] [08:38:28]POST finish read [08:38:28]Found Content-Length = 676 [08:38:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:28]execute_script... [08:38:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:28]POST & json_proto [08:38:28]process_json_proto [08:38:28]json parsed OK: [08:38:28]protocol is kg_v1.0 [08:38:28]action value=close_receipt [08:38:28]process_action close_receipt [08:38:28]cmd_close_receipt [08:38:28]MH_GetDate [08:38:28]Write to MH i2c: F0 00 00 E3 21 F3 [08:38:28]Write i2c OK [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: F0 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: F0 09 00 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: F0 09 00 E3 21 00 88 4D 1F 67 22 05 6E 64 50 [08:38:28]GetLastDocTimeStamp 1730104326 [08:38:28]current date 1730104712 [08:38:28]FM_GetShiftState [08:38:28]SAM_PROTO_GetShiftState [08:38:28]wFMCommunicate request_size=4 [08:38:28]MH_SAM_APDU [08:38:28]CAPDU: 80 13 01 00 [08:38:28]Write to MH i2c: E2 08 00 E4 21 80 13 01 00 00 00 00 00 82 [08:38:28]Write i2c OK [08:38:28]MH_I2C_Read... [08:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:28]Read from MH i2c: E2 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: E2 0E 00 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: E2 0E 00 E4 21 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D2 [08:38:28]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:38:28]wFMCommunicate OK [08:38:28]SAM_PROTO_GetShiftState done [08:38:28]FM_GetShiftState done [08:38:28]opened in 1730075620 [08:38:28]opened+sec_in_day 1730162020 [08:38:28]quantity*price = 30038 [08:38:28]sum+1 = 30039 [08:38:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 19 28.10.2024 08:38 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192471 ФПД: 115121158279388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T083832&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192471&fm=115121158279388&tin=02508201610067®Number=0000000000091776&sum=30000 [08:38:29]StoreToDocumentArchive [08:38:29]shift 543 fd 192471 [08:38:29]save to /storage/0543/doc_00192471 [08:38:29]save last doc name /storage/0543/doc_00192471 to /storage/kkm_last_doc_name [08:38:29]save OK [08:38:29]Clear old archive folders... [08:38:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:38:29]tlvbuf is 019F42D0 [08:38:29]SAM_PROTO_ClearQueue [08:38:29]wFMCommunicate request_size=4 [08:38:29]MH_SAM_APDU [08:38:29]CAPDU: 80 09 00 00 [08:38:29]Write to MH i2c: E2 08 00 F1 21 80 09 00 00 00 00 00 00 84 [08:38:29]Write i2c OK [08:38:29]MH_I2C_Read... [08:38:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:29]Read from MH i2c: E2 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 03 00 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 03 00 F1 21 00 90 00 86 [08:38:29]RAPDU: 90 00 [08:38:29]wFMCommunicate OK [08:38:29]SAM_PROTO_ClearQueue done [08:38:29]KKMCreateOFDPacket [08:38:29]OFDProtocolAddRootSTLVToBuf [08:38:29]FM_MakeSignedData [08:38:29]FM_MakeSignedData [08:38:29]SAM_PROTO_SignData [08:38:29]wFMCommunicate request_size=4 [08:38:29]MH_SAM_APDU [08:38:29]CAPDU: 80 0D 01 02 [08:38:29]Write to MH i2c: E2 08 00 F2 21 80 0D 01 02 00 00 00 00 8C [08:38:29]Write i2c OK [08:38:29]MH_I2C_Read... [08:38:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:29]Read from MH i2c: E2 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 03 00 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 03 00 F2 21 00 90 00 87 [08:38:29]RAPDU: 90 00 [08:38:29]wFMCommunicate OK [08:38:29]wFMCommunicate request_size=255 [08:38:29]MH_SAM_APDU [08:38:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 88 4D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EF 02 00 35 04 06 00 68 [08:38:29]Write to MH i2c: E2 02 01 F3 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 88 4D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EF 02 00 35 04 06 00 68 00 00 D3 [08:38:29]Write i2c OK [08:38:29]MH_I2C_Read... [08:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:30]Read from MH i2c: E2 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: E2 03 00 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: E2 03 00 F3 21 00 90 00 88 [08:38:30]RAPDU: 90 00 [08:38:30]wFMCommunicate OK [08:38:30]wFMCommunicate request_size=10 [08:38:30]MH_SAM_APDU [08:38:30]CAPDU: 80 0D 02 02 05 B3 BB BE D0 DC [08:38:30]Write to MH i2c: E2 0D 00 F4 21 80 0D 02 02 05 00 B3 BB BE D0 DC 00 00 71 [08:38:30]Write i2c OK [08:38:30]MH_I2C_Read... [08:38:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:30]Read from MH i2c: E2 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: E2 03 00 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: E2 03 00 F4 21 00 90 00 89 [08:38:30]RAPDU: 90 00 [08:38:30]wFMCommunicate OK [08:38:30]wFMCommunicate request_size=4 [08:38:30]MH_SAM_APDU [08:38:30]CAPDU: 80 0D 03 02 [08:38:30]Write to MH i2c: E2 08 00 F5 21 80 0D 03 02 00 00 00 00 91 [08:38:30]Write i2c OK [08:38:30]MH_I2C_Read... [08:38:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:30]Read from MH i2c: E2 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: E2 0B 00 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: E2 0B 00 F5 21 00 27 AE 01 8F 58 BA 0C 52 90 00 67 [08:38:30]RAPDU: 27 AE 01 8F 58 BA 0C 52 90 00 [08:38:30]wFMCommunicate OK [08:38:30]SAM_PROTO_SignData done [08:38:30]FM_MakeSignedData done [08:38:30]CreateOFDProtocolMessage [08:38:30]wFMCommunicate request_size=4 [08:38:30]MH_SAM_APDU [08:38:30]CAPDU: 80 11 00 00 [08:38:30]Write to MH i2c: E2 08 00 F6 21 80 11 00 00 00 00 00 00 91 [08:38:30]Write i2c OK [08:38:30]MH_I2C_Read... [08:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:30]Read from MH i2c: E2 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: E2 17 00 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: E2 17 00 F6 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E4 [08:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:38:30]wFMCommunicate OK [08:38:30]CreateOFDProtocolMessage done [08:38:30]OFDSenderStorePacket 192471 [08:38:30]StoreOFDPacket docnum=192471 [08:38:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3C B5 07 01 84 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 88 4D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EF 02 00 35 04 06 00 68 B3 BB BE D0 DC 27 AE 01 8F 58 BA 0C 52 [08:38:30]CheckFolder [08:38:30]dirname=/storage/ofd_packets [08:38:30]CheckFolder done [08:38:30]ProducePacketName [08:38:30]name=ofd_packets/00192471 [08:38:30]NVStorageSaveData ofd_packets/00192471 [08:38:30]File name is /storage/ofd_packets/00192471 [08:38:30]Write 301 bytes [08:38:30]NVStorageSaveData done [08:38:30]OFDSenderStorePacket done [08:38:30]KKMCreateOFDPacket done [08:38:30]NVStorageSaveData kkm_last_timestamp [08:38:30]File name is /storage/kkm_last_timestamp [08:38:30]Write 4 bytes [08:38:30]NVStorageSaveData done [08:38:30]ExternCall_PrintAddStr [08:38:30]wPrintStart [08:38:30]Write to MH i2c: 01 00 00 F7 21 18 [08:38:30]Write i2c OK [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: 01 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: 01 07 00 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: 01 07 00 F7 21 00 00 00 00 00 FF 0F 2D [08:38:30]RasterBufferAndPrint [08:38:30]line Счет N : (1)31786 [08:38:30]line ИНН: 02508201610067 [08:38:30]line Контрольно-Кассовый Чек [08:38:30]line ПРОДАЖА [08:38:30]line ТРК (МРК, ГНК) : 21 [08:38:30]line Товар: 2710124130 [08:38:30]line Аи-92-К-5 [08:38:30]line 4.490 * 66.90 [08:38:30]line = 300.38 [08:38:30]line НДС 12% НСП 1% [08:38:30]line > о реализуемом товаре [08:38:30]line ОКРУГЛЕНИЕ: -0.38 [08:38:30]line ИТОГО: 300.00 [08:38:30]line Внесено: 300.00 [08:38:30]line СДАЧА: 0.00 [08:38:30]line НСП 1% : 2.66 [08:38:30]line НДС 12% : 31.90 [08:38:30]line Наличными: 300.00 [08:38:30]line Безнал.: 0.00 [08:38:30]line Место: АЗС № 170 "Партнер Нефть" [08:38:30]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:38:30]line СНО: Общий режим [08:38:30]line Чек 19 28.10.2024 08:38 [08:38:30]line Смена: 543 ФФД: 1.0 [08:38:30]line ЗНМ: 0300000110 [08:38:30]line РНМ: 0000000000091776 [08:38:30]line Версия ККМ: 001 [08:38:30]line ФМ: 0000000000871754 [08:38:30]line ФД: 192471 [08:38:30]line ФПД: 115121158279388 [08:38:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T083832&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192471&fm=115121158279388&tin=02508201610067®Number=0000000000091776&sum=30000 [08:38:30]written 0, free lines is 4095 [08:38:30]OFD Sender: Processing packet 192471 [packets to send 75, broken 74] [08:38:30]ProducePacketName [08:38:30]name=ofd_packets/00192471 [08:38:30]OFD Sender: To server: pG, [08:38:30]CommunicateWithHost lk.salyk.kg:30040 [08:38:30]ConnectInit lk.salyk.kg [08:38:30]Connected sock=10 [08:38:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3C B5 07 01 84 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 88 4D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EF 02 00 35 04 06 00 68 B3 BB BE D0 DC 27 AE 01 8F 58 BA 0C 52 [08:38:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1C 2B 47 00 CB CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EF 02 00 F4 03 04 00 4D F2 1E 67 B6 04 01 00 00 32 FA 57 4A AC 13 72 A3 [08:38:30]CommunicateWithHost err = 0 [08:38:30]CheckOFDResponse [08:38:30]1017 (14) - 77093643461234 [08:38:30]1041 (16) - 0000000000871754 [08:38:30]1040 (4) - 192471 [08:38:30]1012 (4) - 28.10.2024 02:09 [08:38:30]1206 (1) - 0 [08:38:30]OFD Sender: Remove packet 192471 [08:38:30]ProducePacketName [08:38:30]name=ofd_packets/00192471 [08:38:30]NVStorageDeleteData [08:38:30]Write to MH i2c: 01 00 00 22 22 44 [08:38:30]Write i2c OK [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: 01 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: 01 07 00 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: 01 07 00 22 22 00 00 00 00 00 AA 0C 01 [08:38:30]RasterBufferAndPrint [08:38:30]line [08:38:30]line [08:38:30]line [08:38:30]line [08:38:30]line [08:38:30]written 0, free lines is 3248 [08:38:30]MH_Cut [08:38:30]Write to MH i2c: D1 01 00 29 22 01 1D [08:38:30]Write i2c OK [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: D1 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: D1 01 00 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: D1 01 00 29 22 00 1C [08:38:30]Write to MH i2c: 01 00 00 2A 22 4C [08:38:30]Write i2c OK [08:38:30]MH_I2C_Read... [08:38:31]OFD Sender: No OFD packet to send [08:38:31]*** Cut start [08:38:31]*** Partial cut [08:38:31]*** CUTSNS_PIN = 1 [08:38:31]*** CUTSNS_PIN = 0 [08:38:31]*** Brake cut motor [08:38:32]Read from MH i2c: 01 [08:38:32]MH_I2C_Read... [08:38:32]*** Stop cut motor [08:38:32]*** Cut end [08:38:32]Read from MH i2c: 01 07 00 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: 01 07 00 2A 22 00 00 00 00 00 FF 0F 61 [08:38:32]process_action close_receipt done [08:38:32]requested_data is exist [08:38:32]produce_requested_data [08:38:32]requested_item fm.sn is exist - process it [08:38:32]wFMCommunicate request_size=4 [08:38:32]MH_SAM_APDU [08:38:32]CAPDU: 80 11 00 00 [08:38:32]Write to MH i2c: E2 08 00 2B 22 80 11 00 00 00 00 00 00 C7 [08:38:32]Write i2c OK [08:38:32]MH_I2C_Read... [08:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:32]Read from MH i2c: E2 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 17 00 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 17 00 2B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1A [08:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:38:32]wFMCommunicate OK [08:38:32]requested_item fd.num is exist - process it [08:38:32]SAM_PROTO_GetFieldsCounters [08:38:32]wFMCommunicate request_size=4 [08:38:32]MH_SAM_APDU [08:38:32]CAPDU: 80 13 00 00 [08:38:32]Write to MH i2c: E2 08 00 2C 22 80 13 00 00 00 00 00 00 CA [08:38:32]Write i2c OK [08:38:32]MH_I2C_Read... [08:38:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:32]Read from MH i2c: E2 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 62 00 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 62 00 2C 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D7 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [08:38:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D7 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:38:32]wFMCommunicate OK [08:38:32]SAM_PROTO_GetFieldsCounters done [08:38:32]requested_item shift.num is exist - process it [08:38:32]requested_item shift.opened is exist - process it [08:38:32]req_shift_opened [08:38:32]FM_GetShiftState [08:38:32]SAM_PROTO_GetShiftState [08:38:32]wFMCommunicate request_size=4 [08:38:32]MH_SAM_APDU [08:38:32]CAPDU: 80 13 01 00 [08:38:32]Write to MH i2c: E2 08 00 2D 22 80 13 01 00 00 00 00 00 CC [08:38:32]Write i2c OK [08:38:32]MH_I2C_Read... [08:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:32]Read from MH i2c: E2 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 0E 00 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 0E 00 2D 22 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1C [08:38:32]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:38:32]wFMCommunicate OK [08:38:32]SAM_PROTO_GetShiftState done [08:38:32]FM_GetShiftState done [08:38:32]req_shift_opened done [08:38:32]requested_item shift.open_date is exist - process it [08:38:32]req_shift_open_date [08:38:32]req_shift_open_date done [08:38:32]produce_requested_data done [08:38:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192471,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [08:38:32]process_action_free close_receipt [08:38:32]json_value_free [08:38:32]json_value_free done [08:38:32]process_json_proto returns [08:38:32]Send response to host [08:38:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192471,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [08:38:32]free response buf [08:38:32]execute_script done [08:38:32]execute_script returns [08:38:32]free content buf [08:38:32]Sock 9.Close socket [08:38:32]Sock 9.Thread stoped [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:07]accept exits with 7 [08:44:07]New connection [08:44:07]New thread 3066707300 created [08:44:07]Thread 3066563940 joined [08:44:07]Waiting for new connection... [08:44:07] Sock 7.Parse request [08:44:07]Sock 7.Check first char [08:44:07]Sock 7.First char is OK [08:44:07]request: POST /json_proto HTTP/1.0 [08:44:07]Method: POST [08:44:07]URL: /json_proto [08:44:07]Method is POST - this is cgi request [08:44:07]url: /json_proto [08:44:07]query_string will be loaded in cgi processing [08:44:07]execute_cgi json_proto POST (null) [08:44:07]execute_cgi path=json_proto method=POST [08:44:07]POST find Content-Length [08:44:07]Host: 172.17.63.131:8080 [08:44:07]Content-Length: 676 [08:44:07]Content-Type: application/json [08:44:07] [08:44:07]POST finish read [08:44:07]Found Content-Length = 676 [08:44:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:07]execute_script... [08:44:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:07]POST & json_proto [08:44:07]process_json_proto [08:44:07]json parsed OK: [08:44:07]protocol is kg_v1.0 [08:44:07]action value=close_receipt [08:44:07]process_action close_receipt [08:44:07]cmd_close_receipt [08:44:07]MH_GetDate [08:44:07]Write to MH i2c: F0 00 00 2E 22 3F [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: F0 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: F0 09 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: F0 09 00 2E 22 00 DC 4E 1F 67 22 05 6E 64 F1 [08:44:07]GetLastDocTimeStamp 1730104712 [08:44:07]current date 1730105052 [08:44:07]FM_GetShiftState [08:44:07]SAM_PROTO_GetShiftState [08:44:07]wFMCommunicate request_size=4 [08:44:07]MH_SAM_APDU [08:44:07]CAPDU: 80 13 01 00 [08:44:07]Write to MH i2c: E2 08 00 2F 22 80 13 01 00 00 00 00 00 CE [08:44:07]Write i2c OK [08:44:07]MH_I2C_Read... [08:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:07]Read from MH i2c: E2 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 0E 00 [08:44:07]MH_I2C_Read... [08:44:07]Read from MH i2c: E2 0E 00 2F 22 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1E [08:44:07]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:44:07]wFMCommunicate OK [08:44:07]SAM_PROTO_GetShiftState done [08:44:07]FM_GetShiftState done [08:44:07]opened in 1730075620 [08:44:07]opened+sec_in_day 1730162020 [08:44:07]quantity*price = 50041 [08:44:07]sum+1 = 50042 [08:44:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 20 28.10.2024 08:44 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192472 ФПД: 223198772554933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T084412&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192472&fm=223198772554933&tin=02508201610067®Number=0000000000091776&sum=50000 [08:44:08]StoreToDocumentArchive [08:44:08]shift 543 fd 192472 [08:44:08]save to /storage/0543/doc_00192472 [08:44:08]save last doc name /storage/0543/doc_00192472 to /storage/kkm_last_doc_name [08:44:08]save OK [08:44:08]Clear old archive folders... [08:44:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:08]tlvbuf is 019D52E0 [08:44:08]SAM_PROTO_ClearQueue [08:44:08]wFMCommunicate request_size=4 [08:44:08]MH_SAM_APDU [08:44:08]CAPDU: 80 09 00 00 [08:44:08]Write to MH i2c: E2 08 00 3C 22 80 09 00 00 00 00 00 00 D0 [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:08]Read from MH i2c: E2 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 03 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 03 00 3C 22 00 90 00 D2 [08:44:08]RAPDU: 90 00 [08:44:08]wFMCommunicate OK [08:44:08]SAM_PROTO_ClearQueue done [08:44:08]KKMCreateOFDPacket [08:44:08]OFDProtocolAddRootSTLVToBuf [08:44:08]FM_MakeSignedData [08:44:08]FM_MakeSignedData [08:44:08]SAM_PROTO_SignData [08:44:08]wFMCommunicate request_size=4 [08:44:08]MH_SAM_APDU [08:44:08]CAPDU: 80 0D 01 02 [08:44:08]Write to MH i2c: E2 08 00 3D 22 80 0D 01 02 00 00 00 00 D8 [08:44:08]Write i2c OK [08:44:08]MH_I2C_Read... [08:44:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:08]Read from MH i2c: E2 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 03 00 [08:44:08]MH_I2C_Read... [08:44:08]Read from MH i2c: E2 03 00 3D 22 00 90 00 D3 [08:44:08]RAPDU: 90 00 [08:44:08]wFMCommunicate OK [08:44:08]wFMCommunicate request_size=255 [08:44:08]MH_SAM_APDU [08:44:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 DC 4E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EF 02 00 35 04 06 00 CA [08:44:08]Write to MH i2c: E2 02 01 3E 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 DC 4E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EF 02 00 35 04 06 00 CA 00 00 E4 [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:09]Read from MH i2c: E2 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 03 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 03 00 3E 22 00 90 00 D4 [08:44:09]RAPDU: 90 00 [08:44:09]wFMCommunicate OK [08:44:09]wFMCommunicate request_size=10 [08:44:09]MH_SAM_APDU [08:44:09]CAPDU: 80 0D 02 02 05 FF 83 8D 6C B5 [08:44:09]Write to MH i2c: E2 0D 00 3F 22 80 0D 02 02 05 00 FF 83 8D 6C B5 00 00 15 [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:09]Read from MH i2c: E2 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 03 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 03 00 3F 22 00 90 00 D5 [08:44:09]RAPDU: 90 00 [08:44:09]wFMCommunicate OK [08:44:09]wFMCommunicate request_size=4 [08:44:09]MH_SAM_APDU [08:44:09]CAPDU: 80 0D 03 02 [08:44:09]Write to MH i2c: E2 08 00 40 22 80 0D 03 02 00 00 00 00 DD [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:09]Read from MH i2c: E2 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 0B 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 0B 00 40 22 00 58 3E 9E 5E 2A 72 4F F1 90 00 4C [08:44:09]RAPDU: 58 3E 9E 5E 2A 72 4F F1 90 00 [08:44:09]wFMCommunicate OK [08:44:09]SAM_PROTO_SignData done [08:44:09]FM_MakeSignedData done [08:44:09]CreateOFDProtocolMessage [08:44:09]wFMCommunicate request_size=4 [08:44:09]MH_SAM_APDU [08:44:09]CAPDU: 80 11 00 00 [08:44:09]Write to MH i2c: E2 08 00 41 22 80 11 00 00 00 00 00 00 DD [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:09]Read from MH i2c: E2 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 17 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: E2 17 00 41 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 30 [08:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:44:09]wFMCommunicate OK [08:44:09]CreateOFDProtocolMessage done [08:44:09]OFDSenderStorePacket 192472 [08:44:09]StoreOFDPacket docnum=192472 [08:44:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 B6 07 01 85 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 DC 4E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EF 02 00 35 04 06 00 CA FF 83 8D 6C B5 58 3E 9E 5E 2A 72 4F F1 [08:44:09]CheckFolder [08:44:09]dirname=/storage/ofd_packets [08:44:09]CheckFolder done [08:44:09]ProducePacketName [08:44:09]name=ofd_packets/00192472 [08:44:09]NVStorageSaveData ofd_packets/00192472 [08:44:09]File name is /storage/ofd_packets/00192472 [08:44:09]Write 301 bytes [08:44:09]NVStorageSaveData done [08:44:09]OFDSenderStorePacket done [08:44:09]KKMCreateOFDPacket done [08:44:09]NVStorageSaveData kkm_last_timestamp [08:44:09]File name is /storage/kkm_last_timestamp [08:44:09]Write 4 bytes [08:44:09]NVStorageSaveData done [08:44:09]ExternCall_PrintAddStr [08:44:09]wPrintStart [08:44:09]Write to MH i2c: 01 00 00 42 22 64 [08:44:09]Write i2c OK [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: 01 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: 01 07 00 [08:44:09]MH_I2C_Read... [08:44:09]Read from MH i2c: 01 07 00 42 22 00 00 00 00 00 FF 0F 79 [08:44:09]RasterBufferAndPrint [08:44:09]line Счет N : (1)31787 [08:44:09]line ИНН: 02508201610067 [08:44:09]line Контрольно-Кассовый Чек [08:44:09]line ПРОДАЖА [08:44:09]line ТРК (МРК, ГНК) : 21 [08:44:09]line Товар: 2710124130 [08:44:09]line Аи-92-К-5 [08:44:09]line 7.480 * 66.90 [08:44:09]line = 500.41 [08:44:09]line НДС 12% НСП 1% [08:44:09]line > о реализуемом товаре [08:44:09]line ОКРУГЛЕНИЕ: -0.41 [08:44:09]line ИТОГО: 500.00 [08:44:09]line Внесено: 500.00 [08:44:09]line СДАЧА: 0.00 [08:44:09]line НСП 1% : 4.43 [08:44:09]line НДС 12% : 53.14 [08:44:09]line Наличными: 500.00 [08:44:09]line Безнал.: 0.00 [08:44:09]line Место: АЗС № 170 "Партнер Нефть" [08:44:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:44:09]line СНО: Общий режим [08:44:09]line Чек 20 28.10.2024 08:44 [08:44:09]line Смена: 543 ФФД: 1.0 [08:44:09]line ЗНМ: 0300000110 [08:44:09]line РНМ: 0000000000091776 [08:44:09]line Версия ККМ: 001 [08:44:09]line ФМ: 0000000000871754 [08:44:09]line ФД: 192472 [08:44:09]line ФПД: 223198772554933 [08:44:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T084412&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192472&fm=223198772554933&tin=02508201610067®Number=0000000000091776&sum=50000 [08:44:09]OFD Sender: Processing packet 192472 [packets to send 75, broken 74] [08:44:09]ProducePacketName [08:44:09]name=ofd_packets/00192472 [08:44:09]OFD Sender: To server: pG, [08:44:09]CommunicateWithHost lk.salyk.kg:30040 [08:44:09]ConnectInit lk.salyk.kg [08:44:09]written 0, free lines is 4095 [08:44:09]Connected sock=10 [08:44:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 B6 07 01 85 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 DC 4E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EF 02 00 35 04 06 00 CA FF 83 8D 6C B5 58 3E 9E 5E 2A 72 4F F1 [08:44:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AC 6B 47 00 6A 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EF 02 00 F4 03 04 00 A0 F3 1E 67 B6 04 01 00 00 20 19 FB 9F 5D 45 6F 46 [08:44:10]CommunicateWithHost err = 0 [08:44:10]CheckOFDResponse [08:44:10]1017 (14) - 77093643461234 [08:44:10]1041 (16) - 0000000000871754 [08:44:10]1040 (4) - 192472 [08:44:10]1012 (4) - 28.10.2024 02:14 [08:44:10]1206 (1) - 0 [08:44:10]OFD Sender: Remove packet 192472 [08:44:10]ProducePacketName [08:44:10]name=ofd_packets/00192472 [08:44:10]NVStorageDeleteData [08:44:10]Write to MH i2c: 01 00 00 6D 22 8F [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 07 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: 01 07 00 6D 22 00 00 00 00 00 97 0C 39 [08:44:10]RasterBufferAndPrint [08:44:10]line [08:44:10]line [08:44:10]line [08:44:10]line [08:44:10]line [08:44:10]written 0, free lines is 3229 [08:44:10]MH_Cut [08:44:10]Write to MH i2c: D1 01 00 74 22 01 68 [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: D1 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: D1 01 00 [08:44:10]MH_I2C_Read... [08:44:10]Read from MH i2c: D1 01 00 74 22 00 67 [08:44:10]Write to MH i2c: 01 00 00 75 22 97 [08:44:10]Write i2c OK [08:44:10]MH_I2C_Read... [08:44:10]OFD Sender: No OFD packet to send [08:44:11]*** Cut start [08:44:11]*** Partial cut [08:44:11]*** CUTSNS_PIN = 1 [08:44:11]*** CUTSNS_PIN = 0 [08:44:11]*** Brake cut motor [08:44:11]Read from MH i2c: 01 [08:44:11]MH_I2C_Read... [08:44:11]*** Stop cut motor [08:44:11]*** Cut end [08:44:11]Read from MH i2c: 01 07 00 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: 01 07 00 75 22 00 00 00 00 00 FF 0F AC [08:44:11]process_action close_receipt done [08:44:11]requested_data is exist [08:44:11]produce_requested_data [08:44:11]requested_item fm.sn is exist - process it [08:44:11]wFMCommunicate request_size=4 [08:44:11]MH_SAM_APDU [08:44:11]CAPDU: 80 11 00 00 [08:44:11]Write to MH i2c: E2 08 00 76 22 80 11 00 00 00 00 00 00 12 [08:44:11]Write i2c OK [08:44:11]MH_I2C_Read... [08:44:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:11]Read from MH i2c: E2 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 17 00 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 17 00 76 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 65 [08:44:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:44:11]wFMCommunicate OK [08:44:11]requested_item fd.num is exist - process it [08:44:11]SAM_PROTO_GetFieldsCounters [08:44:11]wFMCommunicate request_size=4 [08:44:11]MH_SAM_APDU [08:44:11]CAPDU: 80 13 00 00 [08:44:11]Write to MH i2c: E2 08 00 77 22 80 13 00 00 00 00 00 00 15 [08:44:11]Write i2c OK [08:44:11]MH_I2C_Read... [08:44:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:11]Read from MH i2c: E2 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 62 00 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 62 00 77 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D8 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [08:44:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D8 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:11]wFMCommunicate OK [08:44:11]SAM_PROTO_GetFieldsCounters done [08:44:11]requested_item shift.num is exist - process it [08:44:11]requested_item shift.opened is exist - process it [08:44:11]req_shift_opened [08:44:11]FM_GetShiftState [08:44:11]SAM_PROTO_GetShiftState [08:44:11]wFMCommunicate request_size=4 [08:44:11]MH_SAM_APDU [08:44:11]CAPDU: 80 13 01 00 [08:44:11]Write to MH i2c: E2 08 00 78 22 80 13 01 00 00 00 00 00 17 [08:44:11]Write i2c OK [08:44:11]MH_I2C_Read... [08:44:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:11]Read from MH i2c: E2 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 0E 00 [08:44:11]MH_I2C_Read... [08:44:11]Read from MH i2c: E2 0E 00 78 22 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 67 [08:44:11]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:44:11]wFMCommunicate OK [08:44:11]SAM_PROTO_GetShiftState done [08:44:11]FM_GetShiftState done [08:44:11]req_shift_opened done [08:44:11]requested_item shift.open_date is exist - process it [08:44:11]req_shift_open_date [08:44:11]req_shift_open_date done [08:44:11]produce_requested_data done [08:44:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192472,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [08:44:11]process_action_free close_receipt [08:44:11]json_value_free [08:44:11]json_value_free done [08:44:11]process_json_proto returns [08:44:11]Send response to host [08:44:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192472,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [08:44:12]free response buf [08:44:12]execute_script done [08:44:12]execute_script returns [08:44:12]free content buf [08:44:12]Sock 7.Close socket [08:44:12]Sock 7.Thread stoped [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:47:30]OFD Sender: No OFD packet to send [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:43]accept exits with 9 [08:48:43]New connection [08:48:43]New thread 3066563940 created [08:48:43]Thread 3066707300 joined [08:48:43]Waiting for new connection... [08:48:43] Sock 9.Parse request [08:48:43]Sock 9.Check first char [08:48:43]Sock 9.First char is OK [08:48:43]request: POST /json_proto HTTP/1.0 [08:48:43]Method: POST [08:48:43]URL: /json_proto [08:48:43]Method is POST - this is cgi request [08:48:43]url: /json_proto [08:48:43]query_string will be loaded in cgi processing [08:48:43]execute_cgi json_proto POST (null) [08:48:43]execute_cgi path=json_proto method=POST [08:48:43]POST find Content-Length [08:48:43]Host: 172.17.63.131:8080 [08:48:43]Content-Length: 678 [08:48:43]Content-Type: application/json [08:48:43] [08:48:43]POST finish read [08:48:43]Found Content-Length = 678 [08:48:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:43]execute_script... [08:48: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)31788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:43]POST & json_proto [08:48:43]process_json_proto [08:48:43]json parsed OK: [08:48:43]protocol is kg_v1.0 [08:48:43]action value=close_receipt [08:48:43]process_action close_receipt [08:48:43]cmd_close_receipt [08:48:43]MH_GetDate [08:48:43]Write to MH i2c: F0 00 00 79 22 8A [08:48:43]Write i2c OK [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: F0 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: F0 09 00 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: F0 09 00 79 22 00 F0 4F 1F 67 22 05 6E 64 51 [08:48:43]GetLastDocTimeStamp 1730105052 [08:48:43]current date 1730105328 [08:48:43]FM_GetShiftState [08:48:43]SAM_PROTO_GetShiftState [08:48:43]wFMCommunicate request_size=4 [08:48:43]MH_SAM_APDU [08:48:43]CAPDU: 80 13 01 00 [08:48:43]Write to MH i2c: E2 08 00 7A 22 80 13 01 00 00 00 00 00 19 [08:48:43]Write i2c OK [08:48:43]MH_I2C_Read... [08:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:43]Read from MH i2c: E2 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: E2 0E 00 [08:48:43]MH_I2C_Read... [08:48:43]Read from MH i2c: E2 0E 00 7A 22 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 69 [08:48:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:48:43]wFMCommunicate OK [08:48:43]SAM_PROTO_GetShiftState done [08:48:43]FM_GetShiftState done [08:48:43]opened in 1730075620 [08:48:43]opened+sec_in_day 1730162020 [08:48:43]quantity*price = 100050 [08:48:43]sum+1 = 100052 [08:48:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 21 28.10.2024 08:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192473 ФПД: 20886896234266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T084848&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192473&fm=20886896234266&tin=02508201610067®Number=0000000000091776&sum=100000 [08:48:45]StoreToDocumentArchive [08:48:45]shift 543 fd 192473 [08:48:45]save to /storage/0543/doc_00192473 [08:48:45]save last doc name /storage/0543/doc_00192473 to /storage/kkm_last_doc_name [08:48:45]save OK [08:48:45]Clear old archive folders... [08:48:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:48:45]tlvbuf is 019E4740 [08:48:45]SAM_PROTO_ClearQueue [08:48:45]wFMCommunicate request_size=4 [08:48:45]MH_SAM_APDU [08:48:45]CAPDU: 80 09 00 00 [08:48:45]Write to MH i2c: E2 08 00 87 22 80 09 00 00 00 00 00 00 1B [08:48:45]Write i2c OK [08:48:45]MH_I2C_Read... [08:48:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:45]Read from MH i2c: E2 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 03 00 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 03 00 87 22 00 90 00 1D [08:48:45]RAPDU: 90 00 [08:48:45]wFMCommunicate OK [08:48:45]SAM_PROTO_ClearQueue done [08:48:45]KKMCreateOFDPacket [08:48:45]OFDProtocolAddRootSTLVToBuf [08:48:45]FM_MakeSignedData [08:48:45]FM_MakeSignedData [08:48:45]SAM_PROTO_SignData [08:48:45]wFMCommunicate request_size=4 [08:48:45]MH_SAM_APDU [08:48:45]CAPDU: 80 0D 01 02 [08:48:45]Write to MH i2c: E2 08 00 88 22 80 0D 01 02 00 00 00 00 23 [08:48:45]Write i2c OK [08:48:45]MH_I2C_Read... [08:48:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:45]Read from MH i2c: E2 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 03 00 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 03 00 88 22 00 90 00 1E [08:48:45]RAPDU: 90 00 [08:48:45]wFMCommunicate OK [08:48:45]wFMCommunicate request_size=255 [08:48:45]MH_SAM_APDU [08:48:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 F0 4F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EF 02 00 35 04 06 00 12 FF 1C 07 [08:48:45]Write to MH i2c: E2 02 01 89 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 F0 4F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EF 02 00 35 04 06 00 12 FF 1C 07 00 00 A6 [08:48:45]Write i2c OK [08:48:45]MH_I2C_Read... [08:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:45]Read from MH i2c: E2 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 03 00 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 03 00 89 22 00 90 00 1F [08:48:45]RAPDU: 90 00 [08:48:45]wFMCommunicate OK [08:48:45]wFMCommunicate request_size=7 [08:48:45]MH_SAM_APDU [08:48:45]CAPDU: 80 0D 02 02 02 CF 1A [08:48:45]Write to MH i2c: E2 0A 00 8A 22 80 0D 02 02 02 00 CF 1A 00 00 13 [08:48:45]Write i2c OK [08:48:45]MH_I2C_Read... [08:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:45]Read from MH i2c: E2 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 03 00 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 03 00 8A 22 00 90 00 20 [08:48:45]RAPDU: 90 00 [08:48:45]wFMCommunicate OK [08:48:45]wFMCommunicate request_size=4 [08:48:45]MH_SAM_APDU [08:48:45]CAPDU: 80 0D 03 02 [08:48:45]Write to MH i2c: E2 08 00 8B 22 80 0D 03 02 00 00 00 00 28 [08:48:45]Write i2c OK [08:48:45]MH_I2C_Read... [08:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:45]Read from MH i2c: E2 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 0B 00 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 0B 00 8B 22 00 8E FE 3A 2B 11 33 CC F2 90 00 1C [08:48:45]RAPDU: 8E FE 3A 2B 11 33 CC F2 90 00 [08:48:45]wFMCommunicate OK [08:48:45]SAM_PROTO_SignData done [08:48:45]FM_MakeSignedData done [08:48:45]CreateOFDProtocolMessage [08:48:45]wFMCommunicate request_size=4 [08:48:45]MH_SAM_APDU [08:48:45]CAPDU: 80 11 00 00 [08:48:45]Write to MH i2c: E2 08 00 8C 22 80 11 00 00 00 00 00 00 28 [08:48:45]Write i2c OK [08:48:45]MH_I2C_Read... [08:48:48]requested_item shift.open_date is exist - process it [08:48:48]req_shift_open_date [08:48:48]req_shift_open_date done [08:48:48]produce_requested_data done [08:48:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192473,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [08:48:48]process_action_free close_receipt [08:48:48]json_value_free [08:48:48]json_value_free done [08:48:48]process_json_proto returns [08:48:48]Send response to host [08:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192473,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [08:48:48]free response buf [08:48:48]execute_script done [08:48:48]execute_script returns [08:48:48]free content buf [08:48:48]Sock 9.Close socket [08:48:48]Sock 9.Thread stoped [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:40]ConnectInit Can't connect to host [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:40]accept exits with 10 [08:51:40]New connection [08:51:40]New thread 3066707300 created [08:51:40]Thread 3066563940 joined [08:51:40]Waiting for new connection... [08:51:40] Sock 10.Parse request [08:51:40]Sock 10.Check first char [08:51:40]Sock 10.First char is OK [08:51:40]request: POST /json_proto HTTP/1.0 [08:51:40]Method: POST [08:51:40]URL: /json_proto [08:51:40]Method is POST - this is cgi request [08:51:40]url: /json_proto [08:51:40]query_string will be loaded in cgi processing [08:51:40]execute_cgi json_proto POST (null) [08:51:40]execute_cgi path=json_proto method=POST [08:51:40]POST find Content-Length [08:51:40]Host: 172.17.63.131:8080 [08:51:40]Content-Length: 681 [08:51:40]Content-Type: application/json [08:51:40] [08:51:40]POST finish read [08:51:40]Found Content-Length = 681 [08:51:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:40]execute_script... [08:51:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:40]POST & json_proto [08:51:40]process_json_proto [08:51:40]json parsed OK: [08:51:40]protocol is kg_v1.0 [08:51:40]action value=close_receipt [08:51:40]process_action close_receipt [08:51:40]cmd_close_receipt [08:51:40]MH_GetDate [08:51:40]Write to MH i2c: F0 00 00 C4 22 D5 [08:51:40]Write i2c OK [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: F0 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: F0 09 00 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: F0 09 00 C4 22 00 A0 50 1F 67 22 05 6E 64 4D [08:51:40]GetLastDocTimeStamp 1730105328 [08:51:40]current date 1730105504 [08:51:40]FM_GetShiftState [08:51:40]SAM_PROTO_GetShiftState [08:51:40]wFMCommunicate request_size=4 [08:51:40]MH_SAM_APDU [08:51:40]CAPDU: 80 13 01 00 [08:51:40]Write to MH i2c: E2 08 00 C5 22 80 13 01 00 00 00 00 00 64 [08:51:40]Write i2c OK [08:51:40]MH_I2C_Read... [08:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:40]Read from MH i2c: E2 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: E2 0E 00 [08:51:40]MH_I2C_Read... [08:51:40]Read from MH i2c: E2 0E 00 C5 22 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B4 [08:51:40]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:51:40]wFMCommunicate OK [08:51:40]SAM_PROTO_GetShiftState done [08:51:40]FM_GetShiftState done [08:51:40]opened in 1730075620 [08:51:40]opened+sec_in_day 1730162020 [08:51:40]quantity*price = 100015 [08:51:40]sum+1 = 100017 [08:51:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 22 28.10.2024 08:51 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192474 ФПД: 46160247677935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T085145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192474&fm=46160247677935&tin=02508201610067®Number=0000000000091776&sum=100000 [08:51:41]StoreToDocumentArchive [08:51:41]shift 543 fd 192474 [08:51:41]save to /storage/0543/doc_00192474 [08:51:41]save last doc name /storage/0543/doc_00192474 to /storage/kkm_last_doc_name [08:51:41]save OK [08:51:41]Clear old archive folders... [08:51:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:51:41]tlvbuf is B6D6C600 [08:51:41]SAM_PROTO_ClearQueue [08:51:41]wFMCommunicate request_size=4 [08:51:41]MH_SAM_APDU [08:51:41]CAPDU: 80 09 00 00 [08:51:41]Write to MH i2c: E2 08 00 D2 22 80 09 00 00 00 00 00 00 66 [08:51:41]Write i2c OK [08:51:41]MH_I2C_Read... [08:51:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:41]Read from MH i2c: E2 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 03 00 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 03 00 D2 22 00 90 00 68 [08:51:41]RAPDU: 90 00 [08:51:41]wFMCommunicate OK [08:51:41]SAM_PROTO_ClearQueue done [08:51:41]KKMCreateOFDPacket [08:51:41]OFDProtocolAddRootSTLVToBuf [08:51:41]FM_MakeSignedData [08:51:41]FM_MakeSignedData [08:51:41]SAM_PROTO_SignData [08:51:41]wFMCommunicate request_size=4 [08:51:41]MH_SAM_APDU [08:51:41]CAPDU: 80 0D 01 02 [08:51:41]Write to MH i2c: E2 08 00 D3 22 80 0D 01 02 00 00 00 00 6E [08:51:41]Write i2c OK [08:51:41]MH_I2C_Read... [08:51:41]OFD Sender: No OFD packet to send [08:51:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:41]Read from MH i2c: E2 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 03 00 [08:51:41]MH_I2C_Read... [08:51:41]Read from MH i2c: E2 03 00 D3 22 00 90 00 69 [08:51:41]RAPDU: 90 00 [08:51:41]wFMCommunicate OK [08:51:41]wFMCommunicate request_size=255 [08:51:41]MH_SAM_APDU [08:51:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 A1 50 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EF 02 00 35 04 06 00 29 [08:51:41]Write to MH i2c: E2 02 01 D4 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 A1 50 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EF 02 00 35 04 06 00 29 00 00 9E [08:51:41]Write i2c OK [08:51:41]MH_I2C_Read... [08:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:42]Read from MH i2c: E2 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: E2 03 00 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: E2 03 00 D4 22 00 90 00 6A [08:51:42]RAPDU: 90 00 [08:51:42]wFMCommunicate OK [08:51:42]wFMCommunicate request_size=10 [08:51:42]MH_SAM_APDU [08:51:42]CAPDU: 80 0D 02 02 05 FB 85 2A 63 EF [08:51:42]Write to MH i2c: E2 0D 00 D5 22 80 0D 02 02 05 00 FB 85 2A 63 EF 00 00 77 [08:51:42]Write i2c OK [08:51:42]MH_I2C_Read... [08:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:42]Read from MH i2c: E2 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: E2 03 00 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: E2 03 00 D5 22 00 90 00 6B [08:51:42]RAPDU: 90 00 [08:51:42]wFMCommunicate OK [08:51:42]wFMCommunicate request_size=4 [08:51:42]MH_SAM_APDU [08:51:42]CAPDU: 80 0D 03 02 [08:51:42]Write to MH i2c: E2 08 00 D6 22 80 0D 03 02 00 00 00 00 73 [08:51:42]Write i2c OK [08:51:42]MH_I2C_Read... [08:51:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:42]Read from MH i2c: E2 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: E2 0B 00 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: E2 0B 00 D6 22 00 FC 1E BD 71 1F AE 89 F3 90 00 05 [08:51:42]RAPDU: FC 1E BD 71 1F AE 89 F3 90 00 [08:51:42]wFMCommunicate OK [08:51:42]SAM_PROTO_SignData done [08:51:42]FM_MakeSignedData done [08:51:42]CreateOFDProtocolMessage [08:51:42]wFMCommunicate request_size=4 [08:51:42]MH_SAM_APDU [08:51:42]CAPDU: 80 11 00 00 [08:51:42]Write to MH i2c: E2 08 00 D7 22 80 11 00 00 00 00 00 00 73 [08:51:42]Write i2c OK [08:51:42]MH_I2C_Read... [08:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:42]Read from MH i2c: E2 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: E2 17 00 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: E2 17 00 D7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C6 [08:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:51:42]wFMCommunicate OK [08:51:42]CreateOFDProtocolMessage done [08:51:42]OFDSenderStorePacket 192474 [08:51:42]StoreOFDPacket docnum=192474 [08:51:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F7 D4 07 01 22 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 A1 50 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EF 02 00 35 04 06 00 29 FB 85 2A 63 EF FC 1E BD 71 1F AE 89 F3 [08:51:42]CheckFolder [08:51:42]dirname=/storage/ofd_packets [08:51:42]CheckFolder done [08:51:42]ProducePacketName [08:51:42]name=ofd_packets/00192474 [08:51:42]NVStorageSaveData ofd_packets/00192474 [08:51:42]File name is /storage/ofd_packets/00192474 [08:51:42]Write 301 bytes [08:51:42]NVStorageSaveData done [08:51:42]OFDSenderStorePacket done [08:51:42]KKMCreateOFDPacket done [08:51:42]NVStorageSaveData kkm_last_timestamp [08:51:42]File name is /storage/kkm_last_timestamp [08:51:42]Write 4 bytes [08:51:42]NVStorageSaveData done [08:51:42]ExternCall_PrintAddStr [08:51:42]wPrintStart [08:51:42]Write to MH i2c: 01 00 00 D8 22 FA [08:51:42]Write i2c OK [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: 01 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: 01 07 00 [08:51:42]MH_I2C_Read... [08:51:42]Read from MH i2c: 01 07 00 D8 22 00 00 00 00 00 FF 0F 0F [08:51:42]RasterBufferAndPrint [08:51:42]line Счет N : (1)31789 [08:51:42]line ИНН: 02508201610067 [08:51:42]line Контрольно-Кассовый Чек [08:51:42]line ПРОДАЖА [08:51:42]line ТРК (МРК, ГНК) : 21 [08:51:42]line Товар: 2710124130 [08:51:42]line Аи-92-К-5 [08:51:42]line 14.950 * 66.90 [08:51:42]line = 1000.16 [08:51:42]line НДС 12% НСП 1% [08:51:42]line > о реализуемом товаре [08:51:42]line ОКРУГЛЕНИЕ: -0.16 [08:51:42]line ИТОГО: 1000.00 [08:51:42]line Внесено: 1000.00 [08:51:42]line СДАЧА: 0.00 [08:51:42]line НСП 1% : 8.85 [08:51:42]line НДС 12% : 106.21 [08:51:42]line Наличными: 1000.00 [08:51:42]line Безнал.: 0.00 [08:51:42]line Место: АЗС № 170 "Партнер Нефть" [08:51:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:51:42]line СНО: Общий режим [08:51:42]line Чек 22 28.10.2024 08:51 [08:51:42]line Смена: 543 ФФД: 1.0 [08:51:42]line ЗНМ: 0300000110 [08:51:42]line РНМ: 0000000000091776 [08:51:42]line Версия ККМ: 001 [08:51:42]line ФМ: 0000000000871754 [08:51:42]line ФД: 192474 [08:51:42]line ФПД: 46160247677935 [08:51:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T085145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192474&fm=46160247677935&tin=02508201610067®Number=0000000000091776&sum=100000 [08:51:42]OFD Sender: Processing packet 192474 [packets to send 75, broken 74] [08:51:42]ProducePacketName [08:51:42]name=ofd_packets/00192474 [08:51:42]OFD Sender: To server: pG, [08:51:42]CommunicateWithHost lk.salyk.kg:30040 [08:51:42]ConnectInit lk.salyk.kg [08:51:42]written 0, free lines is 4095 [08:51:42]Connected sock=11 [08:51:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F7 D4 07 01 22 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 A1 50 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EF 02 00 35 04 06 00 29 FB 85 2A 63 EF FC 1E BD 71 1F AE 89 F3 [08:51:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 97 5C 47 00 59 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EF 02 00 F4 03 04 00 65 F5 1E 67 B6 04 01 00 00 B0 B9 D1 F5 55 0B 6D A1 [08:51:43]CommunicateWithHost err = 0 [08:51:43]CheckOFDResponse [08:51:43]1017 (14) - 77093643461234 [08:51:43]1041 (16) - 0000000000871754 [08:51:43]1040 (4) - 192474 [08:51:43]1012 (4) - 28.10.2024 02:22 [08:51:43]1206 (1) - 0 [08:51:43]OFD Sender: Remove packet 192474 [08:51:43]ProducePacketName [08:51:43]name=ofd_packets/00192474 [08:51:43]NVStorageDeleteData [08:51:43]Write to MH i2c: 01 00 00 03 23 26 [08:51:43]Write i2c OK [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: 01 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: 01 07 00 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: 01 07 00 03 23 00 00 00 00 00 9B 0C D4 [08:51:43]RasterBufferAndPrint [08:51:43]line [08:51:43]line [08:51:43]line [08:51:43]line [08:51:43]line [08:51:43]written 0, free lines is 3232 [08:51:43]MH_Cut [08:51:43]Write to MH i2c: D1 01 00 0A 23 01 FF [08:51:43]Write i2c OK [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: D1 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: D1 01 00 [08:51:43]MH_I2C_Read... [08:51:43]Read from MH i2c: D1 01 00 0A 23 00 FE [08:51:43]Write to MH i2c: 01 00 00 0B 23 2E [08:51:43]Write i2c OK [08:51:43]MH_I2C_Read... [08:51:43]OFD Sender: No OFD packet to send [08:51:44]*** Cut start [08:51:44]*** Partial cut [08:51:44]*** CUTSNS_PIN = 1 [08:51:44]*** CUTSNS_PIN = 0 [08:51:44]*** Brake cut motor [08:51:44]Read from MH i2c: 01 [08:51:44]MH_I2C_Read... [08:51:44]*** Stop cut motor [08:51:44]*** Cut end [08:51:44]Read from MH i2c: 01 07 00 [08:51:44]MH_I2C_Read... [08:51:44]Read from MH i2c: 01 07 00 0B 23 00 00 00 00 00 FF 0F 43 [08:51:44]process_action close_receipt done [08:51:44]requested_data is exist [08:51:44]produce_requested_data [08:51:44]requested_item fm.sn is exist - process it [08:51:44]wFMCommunicate request_size=4 [08:51:44]MH_SAM_APDU [08:51:44]CAPDU: 80 11 00 00 [08:51:44]Write to MH i2c: E2 08 00 0C 23 80 11 00 00 00 00 00 00 A9 [08:51:44]Write i2c OK [08:51:44]MH_I2C_Read... [08:51:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:44]Read from MH i2c: E2 [08:51:44]MH_I2C_Read... [08:51:44]Read from MH i2c: E2 17 00 [08:51:44]MH_I2C_Read... [08:51:44]Read from MH i2c: E2 17 00 0C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FC [08:51:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:51:44]wFMCommunicate OK [08:51:44]requested_item fd.num is exist - process it [08:51:44]SAM_PROTO_GetFieldsCounters [08:51:44]wFMCommunicate request_size=4 [08:51:44]MH_SAM_APDU [08:51:44]CAPDU: 80 13 00 00 [08:51:44]Write to MH i2c: E2 08 00 0D 23 80 13 00 00 00 00 00 00 AC [08:51:44]Write i2c OK [08:51:44]MH_I2C_Read... [08:51:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:44]Read from MH i2c: E2 [08:51:44]MH_I2C_Read... [08:51:44]Read from MH i2c: E2 62 00 [08:51:44]MH_I2C_Read... [08:51:44]Read from MH i2c: E2 62 00 0D 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DA EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [08:51:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DA EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:44]wFMCommunicate OK [08:51:44]SAM_PROTO_GetFieldsCounters done [08:51:44]requested_item shift.num is exist - process it [08:51:44]requested_item shift.opened is exist - process it [08:51:44]req_shift_opened [08:51:44]FM_GetShiftState [08:51:44]SAM_PROTO_GetShiftState [08:51:44]wFMCommunicate request_size=4 [08:51:44]MH_SAM_APDU [08:51:44]CAPDU: 80 13 01 00 [08:51:44]Write to MH i2c: E2 08 00 0E 23 80 13 01 00 00 00 00 00 AE [08:51:44]Write i2c OK [08:51:44]MH_I2C_Read... [08:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:44]Read from MH i2c: E2 [08:51:44]MH_I2C_Read... [08:51:44]Read from MH i2c: E2 0E 00 [08:51:44]MH_I2C_Read... [08:51:44]Read from MH i2c: E2 0E 00 0E 23 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FE [08:51:44]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:51:44]wFMCommunicate OK [08:51:44]SAM_PROTO_GetShiftState done [08:51:44]FM_GetShiftState done [08:51:44]req_shift_opened done [08:51:44]requested_item shift.open_date is exist - process it [08:51:44]req_shift_open_date [08:51:44]req_shift_open_date done [08:51:44]produce_requested_data done [08:51:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192474,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [08:51:44]process_action_free close_receipt [08:51:44]json_value_free [08:51:44]json_value_free done [08:51:44]process_json_proto returns [08:51:44]Send response to host [08:51:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192474,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [08:51:44]free response buf [08:51:44]execute_script done [08:51:44]execute_script returns [08:51:44]free content buf [08:51:44]Sock 10.Close socket [08:51:44]Sock 10.Thread stoped [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:09]ConnectInit Can't connect to host [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:36]accept exits with 9 [08:53:36]New connection [08:53:36]New thread 3066563940 created [08:53:36]Thread 3066707300 joined [08:53:36]Waiting for new connection... [08:53:36] Sock 9.Parse request [08:53:36]Sock 9.Check first char [08:53:36]Sock 9.First char is OK [08:53:36]request: POST /json_proto HTTP/1.0 [08:53:36]Method: POST [08:53:36]URL: /json_proto [08:53:36]Method is POST - this is cgi request [08:53:36]url: /json_proto [08:53:36]query_string will be loaded in cgi processing [08:53:36]execute_cgi json_proto POST (null) [08:53:36]execute_cgi path=json_proto method=POST [08:53:36]POST find Content-Length [08:53:36]Host: 172.17.63.131:8080 [08:53:36]Content-Length: 676 [08:53:36]Content-Type: application/json [08:53:36] [08:53:36]POST finish read [08:53:36]Found Content-Length = 676 [08:53:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:36]execute_script... [08:53: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)31790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:36]POST & json_proto [08:53:36]process_json_proto [08:53:36]json parsed OK: [08:53:36]protocol is kg_v1.0 [08:53:36]action value=close_receipt [08:53:36]process_action close_receipt [08:53:36]cmd_close_receipt [08:53:36]MH_GetDate [08:53:36]Write to MH i2c: F0 00 00 0F 23 21 [08:53:36]Write i2c OK [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: F0 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: F0 09 00 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: F0 09 00 0F 23 00 14 51 1F 67 22 05 6E 64 0E [08:53:36]GetLastDocTimeStamp 1730105505 [08:53:36]current date 1730105620 [08:53:36]FM_GetShiftState [08:53:36]SAM_PROTO_GetShiftState [08:53:36]wFMCommunicate request_size=4 [08:53:36]MH_SAM_APDU [08:53:36]CAPDU: 80 13 01 00 [08:53:36]Write to MH i2c: E2 08 00 10 23 80 13 01 00 00 00 00 00 B0 [08:53:36]Write i2c OK [08:53:36]MH_I2C_Read... [08:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:36]Read from MH i2c: E2 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: E2 0E 00 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: E2 0E 00 10 23 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 00 [08:53:36]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:53:36]wFMCommunicate OK [08:53:36]SAM_PROTO_GetShiftState done [08:53:36]FM_GetShiftState done [08:53:36]opened in 1730075620 [08:53:36]opened+sec_in_day 1730162020 [08:53:36]quantity*price = 40006 [08:53:36]sum+1 = 40007 [08:53:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 23 28.10.2024 08:53 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192475 ФПД: 216028548784697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T085340&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192475&fm=216028548784697&tin=02508201610067®Number=0000000000091776&sum=40000 [08:53:37]StoreToDocumentArchive [08:53:37]shift 543 fd 192475 [08:53:37]save to /storage/0543/doc_00192475 [08:53:37]save last doc name /storage/0543/doc_00192475 to /storage/kkm_last_doc_name [08:53:37]save OK [08:53:37]Clear old archive folders... [08:53:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:53:37]tlvbuf is B6D6C060 [08:53:37]SAM_PROTO_ClearQueue [08:53:37]wFMCommunicate request_size=4 [08:53:37]MH_SAM_APDU [08:53:37]CAPDU: 80 09 00 00 [08:53:37]Write to MH i2c: E2 08 00 1D 23 80 09 00 00 00 00 00 00 B2 [08:53:37]Write i2c OK [08:53:37]MH_I2C_Read... [08:53:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:37]Read from MH i2c: E2 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 03 00 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 03 00 1D 23 00 90 00 B4 [08:53:37]RAPDU: 90 00 [08:53:37]wFMCommunicate OK [08:53:37]SAM_PROTO_ClearQueue done [08:53:37]KKMCreateOFDPacket [08:53:37]OFDProtocolAddRootSTLVToBuf [08:53:37]FM_MakeSignedData [08:53:37]FM_MakeSignedData [08:53:37]SAM_PROTO_SignData [08:53:37]wFMCommunicate request_size=4 [08:53:37]MH_SAM_APDU [08:53:37]CAPDU: 80 0D 01 02 [08:53:37]Write to MH i2c: E2 08 00 1E 23 80 0D 01 02 00 00 00 00 BA [08:53:37]Write i2c OK [08:53:37]MH_I2C_Read... [08:53:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:37]Read from MH i2c: E2 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 03 00 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 03 00 1E 23 00 90 00 B5 [08:53:37]RAPDU: 90 00 [08:53:37]wFMCommunicate OK [08:53:37]wFMCommunicate request_size=255 [08:53:37]MH_SAM_APDU [08:53: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 14 51 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EF 02 00 35 04 06 00 C4 [08:53:37]Write to MH i2c: E2 02 01 1F 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 14 51 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EF 02 00 35 04 06 00 C4 00 00 D0 [08:53:37]Write i2c OK [08:53:37]MH_I2C_Read... [08:53:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:37]Read from MH i2c: E2 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 03 00 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 03 00 1F 23 00 90 00 B6 [08:53:37]RAPDU: 90 00 [08:53:37]wFMCommunicate OK [08:53:37]wFMCommunicate request_size=10 [08:53:37]MH_SAM_APDU [08:53:37]CAPDU: 80 0D 02 02 05 7A 10 E9 62 39 [08:53:37]Write to MH i2c: E2 0D 00 20 23 80 0D 02 02 05 00 7A 10 E9 62 39 00 00 D5 [08:53:37]Write i2c OK [08:53:37]MH_I2C_Read... [08:53:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:37]Read from MH i2c: E2 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 03 00 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 03 00 20 23 00 90 00 B7 [08:53:37]RAPDU: 90 00 [08:53:37]wFMCommunicate OK [08:53:37]wFMCommunicate request_size=4 [08:53:37]MH_SAM_APDU [08:53:37]CAPDU: 80 0D 03 02 [08:53:37]Write to MH i2c: E2 08 00 21 23 80 0D 03 02 00 00 00 00 BF [08:53:37]Write i2c OK [08:53:37]MH_I2C_Read... [08:53:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:37]Read from MH i2c: E2 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 0B 00 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 0B 00 21 23 00 C4 72 FC 75 AA 2E D7 65 90 00 7B [08:53:37]RAPDU: C4 72 FC 75 AA 2E D7 65 90 00 [08:53:37]wFMCommunicate OK [08:53:37]SAM_PROTO_SignData done [08:53:37]FM_MakeSignedData done [08:53:37]CreateOFDProtocolMessage [08:53:37]wFMCommunicate request_size=4 [08:53:37]MH_SAM_APDU [08:53:37]CAPDU: 80 11 00 00 [08:53:37]Write to MH i2c: E2 08 00 22 23 80 11 00 00 00 00 00 00 BF [08:53:37]Write i2c OK [08:53:37]MH_I2C_Read... [08:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:37]Read from MH i2c: E2 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 17 00 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 17 00 22 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 12 [08:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:53:37]wFMCommunicate OK [08:53:37]CreateOFDProtocolMessage done [08:53:37]OFDSenderStorePacket 192475 [08:53:37]StoreOFDPacket docnum=192475 [08:53:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AD 6A 07 01 A2 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 14 51 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EF 02 00 35 04 06 00 C4 7A 10 E9 62 39 C4 72 FC 75 AA 2E D7 65 [08:53:37]CheckFolder [08:53:37]dirname=/storage/ofd_packets [08:53:37]CheckFolder done [08:53:37]ProducePacketName [08:53:37]name=ofd_packets/00192475 [08:53:37]NVStorageSaveData ofd_packets/00192475 [08:53:37]File name is /storage/ofd_packets/00192475 [08:53:37]Write 301 bytes [08:53:37]NVStorageSaveData done [08:53:37]OFDSenderStorePacket done [08:53:37]KKMCreateOFDPacket done [08:53:37]NVStorageSaveData kkm_last_timestamp [08:53:37]File name is /storage/kkm_last_timestamp [08:53:37]Write 4 bytes [08:53:37]NVStorageSaveData done [08:53:37]ExternCall_PrintAddStr [08:53:37]wPrintStart [08:53:37]Write to MH i2c: 01 00 00 23 23 46 [08:53:37]Write i2c OK [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: 01 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: 01 07 00 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: 01 07 00 23 23 00 00 00 00 00 FF 0F 5B [08:53:37]RasterBufferAndPrint [08:53:37]line Счет N : (1)31790 [08:53:37]line ИНН: 02508201610067 [08:53:37]line Контрольно-Кассовый Чек [08:53:37]line ПРОДАЖА [08:53:37]line ТРК (МРК, ГНК) : 21 [08:53:37]line Товар: 2710124130 [08:53:37]line Аи-92-К-5 [08:53:37]line 5.980 * 66.90 [08:53:37]line = 400.06 [08:53:37]line НДС 12% НСП 1% [08:53:37]line > о реализуемом товаре [08:53:37]line ОКРУГЛЕНИЕ: -0.06 [08:53:37]line ИТОГО: 400.00 [08:53:37]line Внесено: 400.00 [08:53:37]line СДАЧА: 0.00 [08:53:37]line НСП 1% : 3.54 [08:53:37]line НДС 12% : 42.48 [08:53:37]line Наличными: 400.00 [08:53:37]line Безнал.: 0.00 [08:53:37]line Место: АЗС № 170 "Партнер Нефть" [08:53:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:53:37]line СНО: Общий режим [08:53:37]line Чек 23 28.10.2024 08:53 [08:53:37]line Смена: 543 ФФД: 1.0 [08:53:37]line ЗНМ: 0300000110 [08:53:37]line РНМ: 0000000000091776 [08:53:37]line Версия ККМ: 001 [08:53:37]line ФМ: 0000000000871754 [08:53:37]line ФД: 192475 [08:53:37]line ФПД: 216028548784697 [08:53:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T085340&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192475&fm=216028548784697&tin=02508201610067®Number=0000000000091776&sum=40000 [08:53:38]OFD Sender: Processing packet 192475 [packets to send 75, broken 74] [08:53:38]ProducePacketName [08:53:38]name=ofd_packets/00192475 [08:53:38]OFD Sender: To server: pG, [08:53:38]CommunicateWithHost lk.salyk.kg:30040 [08:53:38]ConnectInit lk.salyk.kg [08:53:38]written 0, free lines is 4095 [08:53:38]Connected sock=10 [08:53:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AD 6A 07 01 A2 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 14 51 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EF 02 00 35 04 06 00 C4 7A 10 E9 62 39 C4 72 FC 75 AA 2E D7 65 [08:53:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1A E4 47 00 FF 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EF 02 00 F4 03 04 00 D9 F5 1E 67 B6 04 01 00 00 C3 7B 53 50 FE 49 D7 73 [08:53:38]CommunicateWithHost err = 0 [08:53:38]CheckOFDResponse [08:53:38]1017 (14) - 77093643461234 [08:53:38]1041 (16) - 0000000000871754 [08:53:38]1040 (4) - 192475 [08:53:38]1012 (4) - 28.10.2024 02:24 [08:53:38]1206 (1) - 0 [08:53:38]OFD Sender: Remove packet 192475 [08:53:38]ProducePacketName [08:53:38]name=ofd_packets/00192475 [08:53:38]NVStorageDeleteData [08:53:38]Write to MH i2c: 01 00 00 4E 23 71 [08:53:38]Write i2c OK [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: 01 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: 01 07 00 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: 01 07 00 4E 23 00 00 00 00 00 A0 0C 24 [08:53:38]RasterBufferAndPrint [08:53:38]line [08:53:38]line [08:53:38]line [08:53:38]line [08:53:38]line [08:53:38]written 0, free lines is 3239 [08:53:38]MH_Cut [08:53:38]Write to MH i2c: D1 01 00 55 23 01 4A [08:53:38]Write i2c OK [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: D1 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: D1 01 00 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: D1 01 00 55 23 00 49 [08:53:38]Write to MH i2c: 01 00 00 56 23 79 [08:53:38]Write i2c OK [08:53:38]MH_I2C_Read... [08:53:39]OFD Sender: No OFD packet to send [08:53:39]*** Cut start [08:53:39]*** Partial cut [08:53:39]*** CUTSNS_PIN = 1 [08:53:39]*** CUTSNS_PIN = 0 [08:53:39]*** Brake cut motor [08:53:40]Read from MH i2c: 01 [08:53:40]MH_I2C_Read... [08:53:40]*** Stop cut motor [08:53:40]*** Cut end [08:53:40]Read from MH i2c: 01 07 00 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: 01 07 00 56 23 00 00 00 00 00 FF 0F 8E [08:53:40]process_action close_receipt done [08:53:40]requested_data is exist [08:53:40]produce_requested_data [08:53:40]requested_item fm.sn is exist - process it [08:53:40]wFMCommunicate request_size=4 [08:53:40]MH_SAM_APDU [08:53:40]CAPDU: 80 11 00 00 [08:53:40]Write to MH i2c: E2 08 00 57 23 80 11 00 00 00 00 00 00 F4 [08:53:40]Write i2c OK [08:53:40]MH_I2C_Read... [08:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:40]Read from MH i2c: E2 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 17 00 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 17 00 57 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 47 [08:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:53:40]wFMCommunicate OK [08:53:40]requested_item fd.num is exist - process it [08:53:40]SAM_PROTO_GetFieldsCounters [08:53:40]wFMCommunicate request_size=4 [08:53:40]MH_SAM_APDU [08:53:40]CAPDU: 80 13 00 00 [08:53:40]Write to MH i2c: E2 08 00 58 23 80 13 00 00 00 00 00 00 F7 [08:53:40]Write i2c OK [08:53:40]MH_I2C_Read... [08:53:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:40]Read from MH i2c: E2 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 62 00 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 62 00 58 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DB EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [08:53:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DB EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:40]wFMCommunicate OK [08:53:40]SAM_PROTO_GetFieldsCounters done [08:53:40]requested_item shift.num is exist - process it [08:53:40]requested_item shift.opened is exist - process it [08:53:40]req_shift_opened [08:53:40]FM_GetShiftState [08:53:40]SAM_PROTO_GetShiftState [08:53:40]wFMCommunicate request_size=4 [08:53:40]MH_SAM_APDU [08:53:40]CAPDU: 80 13 01 00 [08:53:40]Write to MH i2c: E2 08 00 59 23 80 13 01 00 00 00 00 00 F9 [08:53:40]Write i2c OK [08:53:40]MH_I2C_Read... [08:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:40]Read from MH i2c: E2 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 0E 00 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 0E 00 59 23 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 49 [08:53:40]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:53:40]wFMCommunicate OK [08:53:40]SAM_PROTO_GetShiftState done [08:53:40]FM_GetShiftState done [08:53:40]req_shift_opened done [08:53:40]requested_item shift.open_date is exist - process it [08:53:40]req_shift_open_date [08:53:40]req_shift_open_date done [08:53:40]produce_requested_data done [08:53:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192475,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [08:53:40]process_action_free close_receipt [08:53:40]json_value_free [08:53:40]json_value_free done [08:53:40]process_json_proto returns [08:53:40]Send response to host [08:53:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192475,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [08:53:40]free response buf [08:53:40]execute_script done [08:53:40]execute_script returns [08:53:40]free content buf [08:53:40]Sock 9.Close socket [08:53:40]Sock 9.Thread stoped [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:30]accept exits with 7 [08:54:30]New connection [08:54:30]New thread 3066707300 created [08:54:30]Thread 3066563940 joined [08:54:30]Waiting for new connection... [08:54:30] Sock 7.Parse request [08:54:30]Sock 7.Check first char [08:54:30]Sock 7.First char is OK [08:54:30]request: POST /json_proto HTTP/1.0 [08:54:30]Method: POST [08:54:30]URL: /json_proto [08:54:30]Method is POST - this is cgi request [08:54:30]url: /json_proto [08:54:30]query_string will be loaded in cgi processing [08:54:30]execute_cgi json_proto POST (null) [08:54:30]execute_cgi path=json_proto method=POST [08:54:30]POST find Content-Length [08:54:30]Host: 172.17.63.131:8080 [08:54:30]Content-Length: 859 [08:54:30]Content-Type: application/json [08:54:30] [08:54:30]POST finish read [08:54:30]Found Content-Length = 859 [08:54:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:30]execute_script... [08:54: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)31791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:30]POST & json_proto [08:54:30]process_json_proto [08:54:30]json parsed OK: [08:54:30]protocol is kg_v1.0 [08:54:30]action value=close_receipt [08:54:30]process_action close_receipt [08:54:30]cmd_close_receipt [08:54:30]MH_GetDate [08:54:30]Write to MH i2c: F0 00 00 5A 23 6C [08:54:30]Write i2c OK [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: F0 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: F0 09 00 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: F0 09 00 5A 23 00 4A 51 1F 67 22 05 6E 64 8F [08:54:30]GetLastDocTimeStamp 1730105620 [08:54:30]current date 1730105674 [08:54:30]FM_GetShiftState [08:54:30]SAM_PROTO_GetShiftState [08:54:30]wFMCommunicate request_size=4 [08:54:30]MH_SAM_APDU [08:54:30]CAPDU: 80 13 01 00 [08:54:30]Write to MH i2c: E2 08 00 5B 23 80 13 01 00 00 00 00 00 FB [08:54:30]Write i2c OK [08:54:30]MH_I2C_Read... [08:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:30]Read from MH i2c: E2 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 0E 00 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 0E 00 5B 23 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 4B [08:54:30]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:54:30]wFMCommunicate OK [08:54:30]SAM_PROTO_GetShiftState done [08:54:30]FM_GetShiftState done [08:54:30]opened in 1730075620 [08:54:30]opened+sec_in_day 1730162020 [08:54:30]quantity*price = 70027 [08:54:30]sum+1 = 70029 [08:54:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.28 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 0.00 Безнал.: 700.28 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 24 28.10.2024 08:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192476 ФПД: 86237266517029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T085434&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192476&fm=86237266517029&tin=02508201610067®Number=0000000000091776&sum=70028 [08:54:31]StoreToDocumentArchive [08:54:31]shift 543 fd 192476 [08:54:31]save to /storage/0543/doc_00192476 [08:54:31]save last doc name /storage/0543/doc_00192476 to /storage/kkm_last_doc_name [08:54:31]save OK [08:54:31]Clear old archive folders... [08:54:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:54:31]tlvbuf is 019F4C10 [08:54:31]SAM_PROTO_ClearQueue [08:54:31]wFMCommunicate request_size=4 [08:54:31]MH_SAM_APDU [08:54:31]CAPDU: 80 09 00 00 [08:54:31]Write to MH i2c: E2 08 00 68 23 80 09 00 00 00 00 00 00 FD [08:54:31]Write i2c OK [08:54:31]MH_I2C_Read... [08:54:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:31]Read from MH i2c: E2 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 03 00 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 03 00 68 23 00 90 00 FF [08:54:31]RAPDU: 90 00 [08:54:31]wFMCommunicate OK [08:54:31]SAM_PROTO_ClearQueue done [08:54:31]KKMCreateOFDPacket [08:54:31]OFDProtocolAddRootSTLVToBuf [08:54:31]FM_MakeSignedData [08:54:31]FM_MakeSignedData [08:54:31]SAM_PROTO_SignData [08:54:31]wFMCommunicate request_size=4 [08:54:31]MH_SAM_APDU [08:54:31]CAPDU: 80 0D 01 02 [08:54:31]Write to MH i2c: E2 08 00 69 23 80 0D 01 02 00 00 00 00 05 [08:54:31]Write i2c OK [08:54:31]MH_I2C_Read... [08:54:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:31]Read from MH i2c: E2 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 03 00 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 03 00 69 23 00 90 00 00 [08:54:31]RAPDU: 90 00 [08:54:31]wFMCommunicate OK [08:54:31]wFMCommunicate request_size=255 [08:54:31]MH_SAM_APDU [08:54: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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 4A 51 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EF 02 00 35 04 06 00 4E 6E AD A3 [08:54:31]Write to MH i2c: E2 02 01 6A 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 4A 51 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EF 02 00 35 04 06 00 4E 6E AD A3 00 00 F6 [08:54:31]Write i2c OK [08:54:31]MH_I2C_Read... [08:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:31]Read from MH i2c: E2 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 03 00 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 03 00 6A 23 00 90 00 01 [08:54:31]RAPDU: 90 00 [08:54:31]wFMCommunicate OK [08:54:31]wFMCommunicate request_size=7 [08:54:31]MH_SAM_APDU [08:54:31]CAPDU: 80 0D 02 02 02 1C 25 [08:54:31]Write to MH i2c: E2 0A 00 6B 23 80 0D 02 02 02 00 1C 25 00 00 4D [08:54:31]Write i2c OK [08:54:31]MH_I2C_Read... [08:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:31]Read from MH i2c: E2 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 03 00 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 03 00 6B 23 00 90 00 02 [08:54:31]RAPDU: 90 00 [08:54:31]wFMCommunicate OK [08:54:31]wFMCommunicate request_size=4 [08:54:31]MH_SAM_APDU [08:54:31]CAPDU: 80 0D 03 02 [08:54:31]Write to MH i2c: E2 08 00 6C 23 80 0D 03 02 00 00 00 00 0A [08:54:31]Write i2c OK [08:54:31]MH_I2C_Read... [08:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:31]Read from MH i2c: E2 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 0B 00 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: E2 0B 00 6C 23 00 16 86 19 00 7D 9F 50 BF 90 00 EB [08:54:31]RAPDU: 16 86 19 00 7D 9F 50 BF 90 00 [08:54:31]wFMCommunicate OK [08:54:31]SAM_PROTO_SignData done [08:54:31]FM_MakeSignedData done [08:54:31]CreateOFDProtocolMessage [08:54:31]wFMCommunicate request_size=4 [08:54:31]MH_SAM_APDU [08:54:31]CAPDU: 80 11 00 00 [08:54:31]Write to MH i2c: E2 08 00 6D 23 80 11 00 00 00 00 00 00 0A [08:54:31]Write i2c OK [08:54:31]MH_I2C_Read... [08:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:32]Read from MH i2c: E2 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: E2 17 00 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: E2 17 00 6D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5D [08:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:54:32]wFMCommunicate OK [08:54:32]CreateOFDProtocolMessage done [08:54:32]OFDSenderStorePacket 192476 [08:54:32]StoreOFDPacket docnum=192476 [08:54:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F2 66 04 01 4A 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 4A 51 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EF 02 00 35 04 06 00 4E 6E AD A3 1C 25 16 86 19 00 7D 9F 50 BF [08:54:32]CheckFolder [08:54:32]dirname=/storage/ofd_packets [08:54:32]CheckFolder done [08:54:32]ProducePacketName [08:54:32]name=ofd_packets/00192476 [08:54:32]NVStorageSaveData ofd_packets/00192476 [08:54:32]File name is /storage/ofd_packets/00192476 [08:54:32]Write 298 bytes [08:54:32]NVStorageSaveData done [08:54:32]OFDSenderStorePacket done [08:54:32]KKMCreateOFDPacket done [08:54:32]NVStorageSaveData kkm_last_timestamp [08:54:32]File name is /storage/kkm_last_timestamp [08:54:32]Write 4 bytes [08:54:32]NVStorageSaveData done [08:54:32]ExternCall_PrintAddStr [08:54:32]wPrintStart [08:54:32]Write to MH i2c: 01 00 00 6E 23 91 [08:54:32]Write i2c OK [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: 01 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: 01 07 00 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: 01 07 00 6E 23 00 00 00 00 00 FF 0F A6 [08:54:32]RasterBufferAndPrint [08:54:32]line Счет N : (1)31791 [08:54:32]line ИНН: 02508201610067 [08:54:32]line Контрольно-Кассовый Чек [08:54:32]line ПРОДАЖА [08:54:32]line ТРК (МРК, ГНК) : 11 [08:54:32]line Товар: 2710194210 [08:54:32]line ДТ-К-5 [08:54:32]line 9.190 * 76.20 [08:54:32]line = 700.28 [08:54:32]line НДС 12% НСП 1% [08:54:32]line > о реализуемом товаре [08:54:32]line ИТОГО: 700.28 [08:54:32]line НСП 1% : 6.20 [08:54:32]line НДС 12% : 74.37 [08:54:32]line Наличными: 0.00 [08:54:32]line Безнал.: 700.28 [08:54:32]line Место: АЗС № 170 "Партнер Нефть" [08:54:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:54:32]line СНО: Общий режим [08:54:32]line Чек 24 28.10.2024 08:54 [08:54:32]line Смена: 543 ФФД: 1.0 [08:54:32]line ЗНМ: 0300000110 [08:54:32]line РНМ: 0000000000091776 [08:54:32]line Версия ККМ: 001 [08:54:32]line Платежная система: Кыргызкоммерцбанк [08:54:32]line ФМ: 0000000000871754 [08:54:32]line ФД: 192476 [08:54:32]line ФПД: 86237266517029 [08:54:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T085434&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192476&fm=86237266517029&tin=02508201610067®Number=0000000000091776&sum=70028 [08:54:32]written 0, free lines is 4095 [08:54:32]OFD Sender: Processing packet 192476 [packets to send 75, broken 74] [08:54:32]ProducePacketName [08:54:32]name=ofd_packets/00192476 [08:54:32]OFD Sender: To server: pG, [08:54:32]CommunicateWithHost lk.salyk.kg:30040 [08:54:32]ConnectInit lk.salyk.kg [08:54:32]Connected sock=10 [08:54:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F2 66 04 01 4A 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 4A 51 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EF 02 00 35 04 06 00 4E 6E AD A3 1C 25 16 86 19 00 7D 9F 50 BF [08:54:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 83 A3 47 00 31 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EF 02 00 F4 03 04 00 0F F6 1E 67 B6 04 01 00 00 AA 69 74 37 46 CF C3 A6 [08:54:32]CommunicateWithHost err = 0 [08:54:32]CheckOFDResponse [08:54:32]1017 (14) - 77093643461234 [08:54:32]1041 (16) - 0000000000871754 [08:54:32]1040 (4) - 192476 [08:54:32]1012 (4) - 28.10.2024 02:25 [08:54:32]1206 (1) - 0 [08:54:32]OFD Sender: Remove packet 192476 [08:54:32]ProducePacketName [08:54:32]name=ofd_packets/00192476 [08:54:32]NVStorageDeleteData [08:54:32]Write to MH i2c: 01 00 00 98 23 BB [08:54:32]Write i2c OK [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: 01 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: 01 07 00 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: 01 07 00 98 23 00 00 00 00 00 BC 0C 8A [08:54:32]RasterBufferAndPrint [08:54:32]line [08:54:32]line [08:54:32]line [08:54:32]line [08:54:32]line [08:54:32]written 0, free lines is 3267 [08:54:32]MH_Cut [08:54:32]Write to MH i2c: D1 01 00 9F 23 01 94 [08:54:32]Write i2c OK [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: D1 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: D1 01 00 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: D1 01 00 9F 23 00 93 [08:54:32]Write to MH i2c: 01 00 00 A0 23 C3 [08:54:32]Write i2c OK [08:54:32]MH_I2C_Read... [08:54:32]OFD Sender: No OFD packet to send [08:54:33]*** Cut start [08:54:33]*** Partial cut [08:54:33]*** CUTSNS_PIN = 1 [08:54:33]*** CUTSNS_PIN = 0 [08:54:33]*** Brake cut motor [08:54:33]Read from MH i2c: 01 [08:54:33]MH_I2C_Read... [08:54:33]*** Stop cut motor [08:54:33]*** Cut end [08:54:33]Read from MH i2c: 01 07 00 [08:54:33]MH_I2C_Read... [08:54:33]Read from MH i2c: 01 07 00 A0 23 00 00 00 00 00 FF 0F D8 [08:54:33]process_action close_receipt done [08:54:33]requested_data is exist [08:54:33]produce_requested_data [08:54:33]requested_item fm.sn is exist - process it [08:54:33]wFMCommunicate request_size=4 [08:54:33]MH_SAM_APDU [08:54:33]CAPDU: 80 11 00 00 [08:54:33]Write to MH i2c: E2 08 00 A1 23 80 11 00 00 00 00 00 00 3E [08:54:33]Write i2c OK [08:54:33]MH_I2C_Read... [08:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:34]Read from MH i2c: E2 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 17 00 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 17 00 A1 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 91 [08:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:54:34]wFMCommunicate OK [08:54:34]requested_item fd.num is exist - process it [08:54:34]SAM_PROTO_GetFieldsCounters [08:54:34]wFMCommunicate request_size=4 [08:54:34]MH_SAM_APDU [08:54:34]CAPDU: 80 13 00 00 [08:54:34]Write to MH i2c: E2 08 00 A2 23 80 13 00 00 00 00 00 00 41 [08:54:34]Write i2c OK [08:54:34]MH_I2C_Read... [08:54:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:34]Read from MH i2c: E2 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 62 00 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 62 00 A2 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DC EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [08:54:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DC EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:34]wFMCommunicate OK [08:54:34]SAM_PROTO_GetFieldsCounters done [08:54:34]requested_item shift.num is exist - process it [08:54:34]requested_item shift.opened is exist - process it [08:54:34]req_shift_opened [08:54:34]FM_GetShiftState [08:54:34]SAM_PROTO_GetShiftState [08:54:34]wFMCommunicate request_size=4 [08:54:34]MH_SAM_APDU [08:54:34]CAPDU: 80 13 01 00 [08:54:34]Write to MH i2c: E2 08 00 A3 23 80 13 01 00 00 00 00 00 43 [08:54:34]Write i2c OK [08:54:34]MH_I2C_Read... [08:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:34]Read from MH i2c: E2 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 0E 00 [08:54:34]MH_I2C_Read... [08:54:34]Read from MH i2c: E2 0E 00 A3 23 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 93 [08:54:34]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:54:34]wFMCommunicate OK [08:54:34]SAM_PROTO_GetShiftState done [08:54:34]FM_GetShiftState done [08:54:34]req_shift_opened done [08:54:34]requested_item shift.open_date is exist - process it [08:54:34]req_shift_open_date [08:54:34]req_shift_open_date done [08:54:34]produce_requested_data done [08:54:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192476,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [08:54:34]process_action_free close_receipt [08:54:34]json_value_free [08:54:34]json_value_free done [08:54:34]process_json_proto returns [08:54:34]Send response to host [08:54:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192476,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [08:54:34]free response buf [08:54:34]execute_script done [08:54:34]execute_script returns [08:54:34]free content buf [08:54:34]Sock 7.Close socket [08:54:34]Sock 7.Thread stoped [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:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:34]accept exits with 9 [08:56:34]New connection [08:56:34]New thread 3066563940 created [08:56:34]Thread 3066707300 joined [08:56:34]Waiting for new connection... [08:56:34] Sock 9.Parse request [08:56:34]Sock 9.Check first char [08:56:34]Sock 9.First char is OK [08:56:34]request: POST /json_proto HTTP/1.0 [08:56:34]Method: POST [08:56:34]URL: /json_proto [08:56:34]Method is POST - this is cgi request [08:56:34]url: /json_proto [08:56:34]query_string will be loaded in cgi processing [08:56:34]execute_cgi json_proto POST (null) [08:56:34]execute_cgi path=json_proto method=POST [08:56:34]POST find Content-Length [08:56:34]Host: 172.17.63.131:8080 [08:56:34]Content-Length: 676 [08:56:34]Content-Type: application/json [08:56:34] [08:56:34]POST finish read [08:56:34]Found Content-Length = 676 [08:56:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:34]execute_script... [08:56: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)31792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:34]POST & json_proto [08:56:34]process_json_proto [08:56:34]json parsed OK: [08:56:34]protocol is kg_v1.0 [08:56:34]action value=close_receipt [08:56:34]process_action close_receipt [08:56:34]cmd_close_receipt [08:56:34]MH_GetDate [08:56:34]Write to MH i2c: F0 00 00 A4 23 B6 [08:56:34]Write i2c OK [08:56:34]MH_I2C_Read... [08:56:34]Read from MH i2c: F0 [08:56:34]MH_I2C_Read... [08:56:34]Read from MH i2c: F0 09 00 [08:56:34]MH_I2C_Read... [08:56:34]Read from MH i2c: F0 09 00 A4 23 00 C6 51 1F 67 22 05 6E 64 55 [08:56:34]GetLastDocTimeStamp 1730105674 [08:56:34]current date 1730105798 [08:56:34]FM_GetShiftState [08:56:34]SAM_PROTO_GetShiftState [08:56:34]wFMCommunicate request_size=4 [08:56:34]MH_SAM_APDU [08:56:34]CAPDU: 80 13 01 00 [08:56:34]Write to MH i2c: E2 08 00 A5 23 80 13 01 00 00 00 00 00 45 [08:56:34]Write i2c OK [08:56:34]MH_I2C_Read... [08:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:34]Read from MH i2c: E2 [08:56:34]MH_I2C_Read... [08:56:34]Read from MH i2c: E2 0E 00 [08:56:34]MH_I2C_Read... [08:56:34]Read from MH i2c: E2 0E 00 A5 23 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 95 [08:56:34]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:56:34]wFMCommunicate OK [08:56:34]SAM_PROTO_GetShiftState done [08:56:34]FM_GetShiftState done [08:56:34]opened in 1730075620 [08:56:34]opened+sec_in_day 1730162020 [08:56:34]quantity*price = 40006 [08:56:34]sum+1 = 40007 [08:56:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 25 28.10.2024 08:56 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192477 ФПД: 47115915195913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T085639&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192477&fm=47115915195913&tin=02508201610067®Number=0000000000091776&sum=40000 [08:56:35]StoreToDocumentArchive [08:56:35]shift 543 fd 192477 [08:56:35]save to /storage/0543/doc_00192477 [08:56:35]save last doc name /storage/0543/doc_00192477 to /storage/kkm_last_doc_name [08:56:35]save OK [08:56:35]Clear old archive folders... [08:56:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:35]tlvbuf is 019AE570 [08:56:35]SAM_PROTO_ClearQueue [08:56:35]wFMCommunicate request_size=4 [08:56:35]MH_SAM_APDU [08:56:35]CAPDU: 80 09 00 00 [08:56:35]Write to MH i2c: E2 08 00 B2 23 80 09 00 00 00 00 00 00 47 [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:35]Read from MH i2c: E2 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 03 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 03 00 B2 23 00 90 00 49 [08:56:35]RAPDU: 90 00 [08:56:35]wFMCommunicate OK [08:56:35]SAM_PROTO_ClearQueue done [08:56:35]KKMCreateOFDPacket [08:56:35]OFDProtocolAddRootSTLVToBuf [08:56:35]FM_MakeSignedData [08:56:35]FM_MakeSignedData [08:56:35]SAM_PROTO_SignData [08:56:35]wFMCommunicate request_size=4 [08:56:35]MH_SAM_APDU [08:56:35]CAPDU: 80 0D 01 02 [08:56:35]Write to MH i2c: E2 08 00 B3 23 80 0D 01 02 00 00 00 00 4F [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:35]Read from MH i2c: E2 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 03 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 03 00 B3 23 00 90 00 4A [08:56:35]RAPDU: 90 00 [08:56:35]wFMCommunicate OK [08:56:35]wFMCommunicate request_size=255 [08:56:35]MH_SAM_APDU [08:56: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 C7 51 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EF 02 00 35 04 06 00 2A [08:56:35]Write to MH i2c: E2 02 01 B4 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 C7 51 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EF 02 00 35 04 06 00 2A 00 00 82 [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:36]Read from MH i2c: E2 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 03 00 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 03 00 B4 23 00 90 00 4B [08:56:36]RAPDU: 90 00 [08:56:36]wFMCommunicate OK [08:56:36]wFMCommunicate request_size=10 [08:56:36]MH_SAM_APDU [08:56:36]CAPDU: 80 0D 02 02 05 DA 07 63 76 09 [08:56:36]Write to MH i2c: E2 0D 00 B5 23 80 0D 02 02 05 00 DA 07 63 76 09 00 00 1F [08:56:36]Write i2c OK [08:56:36]MH_I2C_Read... [08:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:36]Read from MH i2c: E2 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 03 00 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 03 00 B5 23 00 90 00 4C [08:56:36]RAPDU: 90 00 [08:56:36]wFMCommunicate OK [08:56:36]wFMCommunicate request_size=4 [08:56:36]MH_SAM_APDU [08:56:36]CAPDU: 80 0D 03 02 [08:56:36]Write to MH i2c: E2 08 00 B6 23 80 0D 03 02 00 00 00 00 54 [08:56:36]Write i2c OK [08:56:36]MH_I2C_Read... [08:56:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:36]Read from MH i2c: E2 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 0B 00 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 0B 00 B6 23 00 D3 1C B9 CE 5F AE BB B5 90 00 48 [08:56:36]RAPDU: D3 1C B9 CE 5F AE BB B5 90 00 [08:56:36]wFMCommunicate OK [08:56:36]SAM_PROTO_SignData done [08:56:36]FM_MakeSignedData done [08:56:36]CreateOFDProtocolMessage [08:56:36]wFMCommunicate request_size=4 [08:56:36]MH_SAM_APDU [08:56:36]CAPDU: 80 11 00 00 [08:56:36]Write to MH i2c: E2 08 00 B7 23 80 11 00 00 00 00 00 00 54 [08:56:36]Write i2c OK [08:56:36]MH_I2C_Read... [08:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:36]Read from MH i2c: E2 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 17 00 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: E2 17 00 B7 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A7 [08:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:56:36]wFMCommunicate OK [08:56:36]CreateOFDProtocolMessage done [08:56:36]OFDSenderStorePacket 192477 [08:56:36]StoreOFDPacket docnum=192477 [08:56:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B7 10 07 01 EF DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 19 00 00 00 F4 03 04 00 C7 51 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EF 02 00 35 04 06 00 2A DA 07 63 76 09 D3 1C B9 CE 5F AE BB B5 [08:56:36]CheckFolder [08:56:36]dirname=/storage/ofd_packets [08:56:36]CheckFolder done [08:56:36]ProducePacketName [08:56:36]name=ofd_packets/00192477 [08:56:36]NVStorageSaveData ofd_packets/00192477 [08:56:36]File name is /storage/ofd_packets/00192477 [08:56:36]Write 301 bytes [08:56:36]NVStorageSaveData done [08:56:36]OFDSenderStorePacket done [08:56:36]KKMCreateOFDPacket done [08:56:36]NVStorageSaveData kkm_last_timestamp [08:56:36]File name is /storage/kkm_last_timestamp [08:56:36]Write 4 bytes [08:56:36]NVStorageSaveData done [08:56:36]ExternCall_PrintAddStr [08:56:36]wPrintStart [08:56:36]Write to MH i2c: 01 00 00 B8 23 DB [08:56:36]Write i2c OK [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: 01 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: 01 07 00 [08:56:36]MH_I2C_Read... [08:56:36]Read from MH i2c: 01 07 00 B8 23 00 00 00 00 00 FF 0F F0 [08:56:36]RasterBufferAndPrint [08:56:36]line Счет N : (1)31792 [08:56:36]line ИНН: 02508201610067 [08:56:36]line Контрольно-Кассовый Чек [08:56:36]line ПРОДАЖА [08:56:36]line ТРК (МРК, ГНК) : 21 [08:56:36]line Товар: 2710124130 [08:56:36]line Аи-92-К-5 [08:56:36]line 5.980 * 66.90 [08:56:36]line = 400.06 [08:56:36]line НДС 12% НСП 1% [08:56:36]line > о реализуемом товаре [08:56:36]line ОКРУГЛЕНИЕ: -0.06 [08:56:36]line ИТОГО: 400.00 [08:56:36]line Внесено: 400.00 [08:56:36]line СДАЧА: 0.00 [08:56:36]line НСП 1% : 3.54 [08:56:36]line НДС 12% : 42.48 [08:56:36]line Наличными: 400.00 [08:56:36]line Безнал.: 0.00 [08:56:36]line Место: АЗС № 170 "Партнер Нефть" [08:56:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:56:36]line СНО: Общий режим [08:56:36]line Чек 25 28.10.2024 08:56 [08:56:36]line Смена: 543 ФФД: 1.0 [08:56:36]line ЗНМ: 0300000110 [08:56:36]line РНМ: 0000000000091776 [08:56:36]line Версия ККМ: 001 [08:56:36]line ФМ: 0000000000871754 [08:56:36]line ФД: 192477 [08:56:36]line ФПД: 47115915195913 [08:56:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T085639&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192477&fm=47115915195913&tin=02508201610067®Number=0000000000091776&sum=40000 [08:56:36]OFD Sender: Processing packet 192477 [packets to send 75, broken 74] [08:56:36]ProducePacketName [08:56:36]name=ofd_packets/00192477 [08:56:36]OFD Sender: To server: pG, [08:56:36]CommunicateWithHost lk.salyk.kg:30040 [08:56:36]ConnectInit lk.salyk.kg [08:56:36]written 0, free lines is 4095 [08:56:36]Connected sock=10 [08:56:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B7 10 07 01 EF DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 19 00 00 00 F4 03 04 00 C7 51 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EF 02 00 35 04 06 00 2A DA 07 63 76 09 D3 1C B9 CE 5F AE BB B5 [08:56:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F6 FE 47 00 0E F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EF 02 00 F4 03 04 00 8B F6 1E 67 B6 04 01 00 00 DB 1E A6 4B 38 20 62 62 [08:56:37]CommunicateWithHost err = 0 [08:56:37]CheckOFDResponse [08:56:37]1017 (14) - 77093643461234 [08:56:37]1041 (16) - 0000000000871754 [08:56:37]1040 (4) - 192477 [08:56:37]1012 (4) - 28.10.2024 02:27 [08:56:37]1206 (1) - 0 [08:56:37]OFD Sender: Remove packet 192477 [08:56:37]ProducePacketName [08:56:37]name=ofd_packets/00192477 [08:56:37]NVStorageDeleteData [08:56:37]Write to MH i2c: 01 00 00 E3 23 06 [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: 01 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: 01 07 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: 01 07 00 E3 23 00 00 00 00 00 9D 0C B6 [08:56:37]RasterBufferAndPrint [08:56:37]line [08:56:37]line [08:56:37]line [08:56:37]line [08:56:37]line [08:56:37]written 0, free lines is 3237 [08:56:37]MH_Cut [08:56:37]Write to MH i2c: D1 01 00 EA 23 01 DF [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: D1 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: D1 01 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: D1 01 00 EA 23 00 DE [08:56:37]Write to MH i2c: 01 00 00 EB 23 0E [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:37]OFD Sender: No OFD packet to send [08:56:38]*** Cut start [08:56:38]*** Partial cut [08:56:38]*** CUTSNS_PIN = 1 [08:56:38]*** CUTSNS_PIN = 0 [08:56:38]*** Brake cut motor [08:56:38]Read from MH i2c: 01 [08:56:38]MH_I2C_Read... [08:56:38]*** Stop cut motor [08:56:38]*** Cut end [08:56:38]Read from MH i2c: 01 07 00 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: 01 07 00 EB 23 00 00 00 00 00 FF 0F 23 [08:56:38]process_action close_receipt done [08:56:38]requested_data is exist [08:56:38]produce_requested_data [08:56:38]requested_item fm.sn is exist - process it [08:56:38]wFMCommunicate request_size=4 [08:56:38]MH_SAM_APDU [08:56:38]CAPDU: 80 11 00 00 [08:56:38]Write to MH i2c: E2 08 00 EC 23 80 11 00 00 00 00 00 00 89 [08:56:38]Write i2c OK [08:56:38]MH_I2C_Read... [08:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:38]Read from MH i2c: E2 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: E2 17 00 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: E2 17 00 EC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DC [08:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:56:38]wFMCommunicate OK [08:56:38]requested_item fd.num is exist - process it [08:56:38]SAM_PROTO_GetFieldsCounters [08:56:38]wFMCommunicate request_size=4 [08:56:38]MH_SAM_APDU [08:56:38]CAPDU: 80 13 00 00 [08:56:38]Write to MH i2c: E2 08 00 ED 23 80 13 00 00 00 00 00 00 8C [08:56:38]Write i2c OK [08:56:38]MH_I2C_Read... [08:56:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:38]Read from MH i2c: E2 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: E2 62 00 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: E2 62 00 ED 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DD EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [08:56:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DD EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:38]wFMCommunicate OK [08:56:38]SAM_PROTO_GetFieldsCounters done [08:56:38]requested_item shift.num is exist - process it [08:56:38]requested_item shift.opened is exist - process it [08:56:38]req_shift_opened [08:56:38]FM_GetShiftState [08:56:38]SAM_PROTO_GetShiftState [08:56:38]wFMCommunicate request_size=4 [08:56:38]MH_SAM_APDU [08:56:38]CAPDU: 80 13 01 00 [08:56:38]Write to MH i2c: E2 08 00 EE 23 80 13 01 00 00 00 00 00 8E [08:56:38]Write i2c OK [08:56:38]MH_I2C_Read... [08:56:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:38]Read from MH i2c: E2 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: E2 0E 00 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: E2 0E 00 EE 23 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DE [08:56:38]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [08:56:38]wFMCommunicate OK [08:56:38]SAM_PROTO_GetShiftState done [08:56:38]FM_GetShiftState done [08:56:38]req_shift_opened done [08:56:38]requested_item shift.open_date is exist - process it [08:56:38]req_shift_open_date [08:56:38]req_shift_open_date done [08:56:38]produce_requested_data done [08:56:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192477,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [08:56:38]process_action_free close_receipt [08:56:38]json_value_free [08:56:38]json_value_free done [08:56:38]process_json_proto returns [08:56:38]Send response to host [08:56:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192477,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [08:56:38]free response buf [08:56:38]execute_script done [08:56:38]execute_script returns [08:56:38]free content buf [08:56:38]Sock 9.Close socket [08:56:38]Sock 9.Thread stoped [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:55]accept exits with 7 [09:03:55]New connection [09:03:55]New thread 3066707300 created [09:03:55]Thread 3066563940 joined [09:03:55]Waiting for new connection... [09:03:55] Sock 7.Parse request [09:03:55]Sock 7.Check first char [09:03:55]Sock 7.First char is OK [09:03:55]request: POST /json_proto HTTP/1.0 [09:03:55]Method: POST [09:03:55]URL: /json_proto [09:03:55]Method is POST - this is cgi request [09:03:55]url: /json_proto [09:03:55]query_string will be loaded in cgi processing [09:03:55]execute_cgi json_proto POST (null) [09:03:55]execute_cgi path=json_proto method=POST [09:03:55]POST find Content-Length [09:03:55]Host: 172.17.63.131:8080 [09:03:55]Content-Length: 681 [09:03:55]Content-Type: application/json [09:03:55] [09:03:55]POST finish read [09:03:55]Found Content-Length = 681 [09:03:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:55]execute_script... [09:03:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:55]POST & json_proto [09:03:55]process_json_proto [09:03:55]json parsed OK: [09:03:55]protocol is kg_v1.0 [09:03:55]action value=close_receipt [09:03:55]process_action close_receipt [09:03:55]cmd_close_receipt [09:03:55]MH_GetDate [09:03:55]Write to MH i2c: F0 00 00 EF 23 01 [09:03:55]Write i2c OK [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: F0 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: F0 09 00 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: F0 09 00 EF 23 00 80 53 1F 67 22 05 6E 64 5C [09:03:55]GetLastDocTimeStamp 1730105799 [09:03:55]current date 1730106240 [09:03:55]FM_GetShiftState [09:03:55]SAM_PROTO_GetShiftState [09:03:55]wFMCommunicate request_size=4 [09:03:55]MH_SAM_APDU [09:03:55]CAPDU: 80 13 01 00 [09:03:55]Write to MH i2c: E2 08 00 F0 23 80 13 01 00 00 00 00 00 90 [09:03:55]Write i2c OK [09:03:55]MH_I2C_Read... [09:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:55]Read from MH i2c: E2 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 0E 00 [09:03:55]MH_I2C_Read... [09:03:55]Read from MH i2c: E2 0E 00 F0 23 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E0 [09:03:55]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:03:55]wFMCommunicate OK [09:03:55]SAM_PROTO_GetShiftState done [09:03:55]FM_GetShiftState done [09:03:55]opened in 1730075620 [09:03:55]opened+sec_in_day 1730162020 [09:03:55]quantity*price = 100015 [09:03:55]sum+1 = 100017 [09:03:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 26 28.10.2024 09:04 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192478 ФПД: 20818209219217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T090400&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192478&fm=20818209219217&tin=02508201610067®Number=0000000000091776&sum=100000 [09:03:56]StoreToDocumentArchive [09:03:56]shift 543 fd 192478 [09:03:56]save to /storage/0543/doc_00192478 [09:03:56]save last doc name /storage/0543/doc_00192478 to /storage/kkm_last_doc_name [09:03:56]save OK [09:03:56]Clear old archive folders... [09:03:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:56]tlvbuf is 019AE570 [09:03:56]SAM_PROTO_ClearQueue [09:03:56]wFMCommunicate request_size=4 [09:03:56]MH_SAM_APDU [09:03:56]CAPDU: 80 09 00 00 [09:03:56]Write to MH i2c: E2 08 00 FD 23 80 09 00 00 00 00 00 00 92 [09:03:56]Write i2c OK [09:03:56]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 FD 23 00 90 00 94 [09:03:57]RAPDU: 90 00 [09:03:57]wFMCommunicate OK [09:03:57]SAM_PROTO_ClearQueue done [09:03:57]KKMCreateOFDPacket [09:03:57]OFDProtocolAddRootSTLVToBuf [09:03:57]FM_MakeSignedData [09:03:57]FM_MakeSignedData [09:03:57]SAM_PROTO_SignData [09:03:57]wFMCommunicate request_size=4 [09:03:57]MH_SAM_APDU [09:03:57]CAPDU: 80 0D 01 02 [09:03:57]Write to MH i2c: E2 08 00 FE 23 80 0D 01 02 00 00 00 00 9A [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 FE 23 00 90 00 95 [09:03:57]RAPDU: 90 00 [09:03:57]wFMCommunicate OK [09:03:57]wFMCommunicate request_size=255 [09:03:57]MH_SAM_APDU [09:03: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 80 53 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EF 02 00 35 04 06 00 12 [09:03:57]Write to MH i2c: E2 02 01 FF 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 80 53 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EF 02 00 35 04 06 00 12 00 00 9D [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 FF 23 00 90 00 96 [09:03:57]RAPDU: 90 00 [09:03:57]wFMCommunicate OK [09:03:57]wFMCommunicate request_size=10 [09:03:57]MH_SAM_APDU [09:03:57]CAPDU: 80 0D 02 02 05 EF 1D F7 22 91 [09:03:57]Write to MH i2c: E2 0D 00 00 24 80 0D 02 02 05 00 EF 1D F7 22 91 00 00 5E [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 00 24 00 90 00 98 [09:03:57]RAPDU: 90 00 [09:03:57]wFMCommunicate OK [09:03:57]wFMCommunicate request_size=4 [09:03:57]MH_SAM_APDU [09:03:57]CAPDU: 80 0D 03 02 [09:03:57]Write to MH i2c: E2 08 00 01 24 80 0D 03 02 00 00 00 00 A0 [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 0B 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 0B 00 01 24 00 AD 7B C1 79 28 49 8E F2 90 00 F4 [09:03:57]RAPDU: AD 7B C1 79 28 49 8E F2 90 00 [09:03:57]wFMCommunicate OK [09:03:57]SAM_PROTO_SignData done [09:03:57]FM_MakeSignedData done [09:03:57]CreateOFDProtocolMessage [09:03:57]wFMCommunicate request_size=4 [09:03:57]MH_SAM_APDU [09:03:57]CAPDU: 80 11 00 00 [09:03:57]Write to MH i2c: E2 08 00 02 24 80 11 00 00 00 00 00 00 A0 [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 17 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 17 00 02 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F3 [09:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:03:57]wFMCommunicate OK [09:03:57]CreateOFDProtocolMessage done [09:03:57]OFDSenderStorePacket 192478 [09:03:57]StoreOFDPacket docnum=192478 [09:03:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 01 BE 07 01 EE 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 80 53 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EF 02 00 35 04 06 00 12 EF 1D F7 22 91 AD 7B C1 79 28 49 8E F2 [09:03:57]CheckFolder [09:03:57]dirname=/storage/ofd_packets [09:03:57]CheckFolder done [09:03:57]ProducePacketName [09:03:57]name=ofd_packets/00192478 [09:03:57]NVStorageSaveData ofd_packets/00192478 [09:03:57]File name is /storage/ofd_packets/00192478 [09:03:57]Write 301 bytes [09:03:57]NVStorageSaveData done [09:03:57]OFDSenderStorePacket done [09:03:57]KKMCreateOFDPacket done [09:03:57]NVStorageSaveData kkm_last_timestamp [09:03:57]File name is /storage/kkm_last_timestamp [09:03:57]Write 4 bytes [09:03:57]NVStorageSaveData done [09:03:57]ExternCall_PrintAddStr [09:03:57]wPrintStart [09:03:57]Write to MH i2c: 01 00 00 03 24 27 [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: 01 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: 01 07 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: 01 07 00 03 24 00 00 00 00 00 FF 0F 3C [09:03:57]RasterBufferAndPrint [09:03:57]line Счет N : (1)31793 [09:03:57]line ИНН: 02508201610067 [09:03:57]line Контрольно-Кассовый Чек [09:03:57]line ПРОДАЖА [09:03:57]line ТРК (МРК, ГНК) : 21 [09:03:57]line Товар: 2710124130 [09:03:57]line Аи-92-К-5 [09:03:57]line 14.950 * 66.90 [09:03:57]line = 1000.16 [09:03:57]line НДС 12% НСП 1% [09:03:57]line > о реализуемом товаре [09:03:57]line ОКРУГЛЕНИЕ: -0.16 [09:03:57]line ИТОГО: 1000.00 [09:03:57]line Внесено: 1000.00 [09:03:57]line СДАЧА: 0.00 [09:03:57]line НСП 1% : 8.85 [09:03:57]line НДС 12% : 106.21 [09:03:57]line Наличными: 1000.00 [09:03:57]line Безнал.: 0.00 [09:03:57]line Место: АЗС № 170 "Партнер Нефть" [09:03:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:03:57]line СНО: Общий режим [09:03:57]line Чек 26 28.10.2024 09:04 [09:03:57]line Смена: 543 ФФД: 1.0 [09:03:57]line ЗНМ: 0300000110 [09:03:57]line РНМ: 0000000000091776 [09:03:57]line Версия ККМ: 001 [09:03:57]line ФМ: 0000000000871754 [09:03:57]line ФД: 192478 [09:03:57]line ФПД: 20818209219217 [09:03:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T090400&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192478&fm=20818209219217&tin=02508201610067®Number=0000000000091776&sum=100000 [09:03:57]OFD Sender: Processing packet 192478 [packets to send 75, broken 74] [09:03:57]ProducePacketName [09:03:57]name=ofd_packets/00192478 [09:03:57]OFD Sender: To server: pG, [09:03:57]CommunicateWithHost lk.salyk.kg:30040 [09:03:57]ConnectInit lk.salyk.kg [09:03:57]written 0, free lines is 4095 [09:03:57]Connected sock=10 [09:03:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 01 BE 07 01 EE 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 80 53 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EF 02 00 35 04 06 00 12 EF 1D F7 22 91 AD 7B C1 79 28 49 8E F2 [09:03:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EE DA 47 00 A6 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EF 02 00 F4 03 04 00 44 F8 1E 67 B6 04 01 00 00 59 43 16 73 E2 CA E6 6B [09:03:58]CommunicateWithHost err = 0 [09:03:58]CheckOFDResponse [09:03:58]1017 (14) - 77093643461234 [09:03:58]1041 (16) - 0000000000871754 [09:03:58]1040 (4) - 192478 [09:03:58]1012 (4) - 28.10.2024 02:34 [09:03:58]1206 (1) - 0 [09:03:58]OFD Sender: Remove packet 192478 [09:03:58]ProducePacketName [09:03:58]name=ofd_packets/00192478 [09:03:58]NVStorageDeleteData [09:03:58]Write to MH i2c: 01 00 00 2E 24 52 [09:03:58]Write i2c OK [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: 01 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: 01 07 00 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: 01 07 00 2E 24 00 00 00 00 00 AD 0C 12 [09:03:58]RasterBufferAndPrint [09:03:58]line [09:03:58]line [09:03:58]line [09:03:58]line [09:03:58]line [09:03:58]written 0, free lines is 3251 [09:03:58]MH_Cut [09:03:58]Write to MH i2c: D1 01 00 35 24 01 2B [09:03:58]Write i2c OK [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: D1 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: D1 01 00 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: D1 01 00 35 24 00 2A [09:03:58]Write to MH i2c: 01 00 00 36 24 5A [09:03:58]Write i2c OK [09:03:58]MH_I2C_Read... [09:03:58]OFD Sender: No OFD packet to send [09:03:59]*** Cut start [09:03:59]*** Partial cut [09:03:59]*** CUTSNS_PIN = 1 [09:03:59]*** CUTSNS_PIN = 0 [09:03:59]*** Brake cut motor [09:03:59]Read from MH i2c: 01 [09:03:59]MH_I2C_Read... [09:03:59]*** Stop cut motor [09:03:59]*** Cut end [09:03:59]Read from MH i2c: 01 07 00 [09:03:59]MH_I2C_Read... [09:03:59]Read from MH i2c: 01 07 00 36 24 00 00 00 00 00 FF 0F 6F [09:03:59]process_action close_receipt done [09:03:59]requested_data is exist [09:03:59]produce_requested_data [09:03:59]requested_item fm.sn is exist - process it [09:03:59]wFMCommunicate request_size=4 [09:03:59]MH_SAM_APDU [09:03:59]CAPDU: 80 11 00 00 [09:03:59]Write to MH i2c: E2 08 00 37 24 80 11 00 00 00 00 00 00 D5 [09:03:59]Write i2c OK [09:03:59]MH_I2C_Read... [09:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:59]Read from MH i2c: E2 [09:03:59]MH_I2C_Read... [09:03:59]Read from MH i2c: E2 17 00 [09:03:59]MH_I2C_Read... [09:03:59]Read from MH i2c: E2 17 00 37 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 28 [09:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:03:59]wFMCommunicate OK [09:03:59]requested_item fd.num is exist - process it [09:03:59]SAM_PROTO_GetFieldsCounters [09:03:59]wFMCommunicate request_size=4 [09:03:59]MH_SAM_APDU [09:03:59]CAPDU: 80 13 00 00 [09:03:59]Write to MH i2c: E2 08 00 38 24 80 13 00 00 00 00 00 00 D8 [09:03:59]Write i2c OK [09:03:59]MH_I2C_Read... [09:03:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:00]Read from MH i2c: E2 [09:04:00]MH_I2C_Read... [09:04:00]Read from MH i2c: E2 62 00 [09:04:00]MH_I2C_Read... [09:04:00]Read from MH i2c: E2 62 00 38 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [09:04:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:00]wFMCommunicate OK [09:04:00]SAM_PROTO_GetFieldsCounters done [09:04:00]requested_item shift.num is exist - process it [09:04:00]requested_item shift.opened is exist - process it [09:04:00]req_shift_opened [09:04:00]FM_GetShiftState [09:04:00]SAM_PROTO_GetShiftState [09:04:00]wFMCommunicate request_size=4 [09:04:00]MH_SAM_APDU [09:04:00]CAPDU: 80 13 01 00 [09:04:00]Write to MH i2c: E2 08 00 39 24 80 13 01 00 00 00 00 00 DA [09:04:00]Write i2c OK [09:04:00]MH_I2C_Read... [09:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:00]Read from MH i2c: E2 [09:04:00]MH_I2C_Read... [09:04:00]Read from MH i2c: E2 0E 00 [09:04:00]MH_I2C_Read... [09:04:00]Read from MH i2c: E2 0E 00 39 24 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2A [09:04:00]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:04:00]wFMCommunicate OK [09:04:00]SAM_PROTO_GetShiftState done [09:04:00]FM_GetShiftState done [09:04:00]req_shift_opened done [09:04:00]requested_item shift.open_date is exist - process it [09:04:00]req_shift_open_date [09:04:00]req_shift_open_date done [09:04:00]produce_requested_data done [09:04:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192478,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:04:00]process_action_free close_receipt [09:04:00]json_value_free [09:04:00]json_value_free done [09:04:00]process_json_proto returns [09:04:00]Send response to host [09:04:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192478,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:04:00]free response buf [09:04:00]execute_script done [09:04:00]execute_script returns [09:04:00]free content buf [09:04:00]Sock 7.Close socket [09:04:00]Sock 7.Thread stoped [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:58]OFD Sender: No OFD packet to send [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:46]accept exits with 9 [09:08:46]New connection [09:08:46]New thread 3066563940 created [09:08:46]Thread 3066707300 joined [09:08:46]Waiting for new connection... [09:08:46] Sock 9.Parse request [09:08:46]Sock 9.Check first char [09:08:46]Sock 9.First char is OK [09:08:46]request: POST /json_proto HTTP/1.0 [09:08:46]Method: POST [09:08:46]URL: /json_proto [09:08:46]Method is POST - this is cgi request [09:08:46]url: /json_proto [09:08:46]query_string will be loaded in cgi processing [09:08:46]execute_cgi json_proto POST (null) [09:08:46]execute_cgi path=json_proto method=POST [09:08:46]POST find Content-Length [09:08:46]Host: 172.17.63.131:8080 [09:08:46]Content-Length: 681 [09:08:46]Content-Type: application/json [09:08:46] [09:08:46]POST finish read [09:08:46]Found Content-Length = 681 [09:08:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:46]execute_script... [09:08:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:46]POST & json_proto [09:08:46]process_json_proto [09:08:46]json parsed OK: [09:08:46]protocol is kg_v1.0 [09:08:46]action value=close_receipt [09:08:46]process_action close_receipt [09:08:46]cmd_close_receipt [09:08:46]MH_GetDate [09:08:46]Write to MH i2c: F0 00 00 3A 24 4D [09:08:46]Write i2c OK [09:08:46]MH_I2C_Read... [09:08:46]Read from MH i2c: F0 [09:08:46]MH_I2C_Read... [09:08:46]Read from MH i2c: F0 09 00 [09:08:46]MH_I2C_Read... [09:08:46]Read from MH i2c: F0 09 00 3A 24 00 A2 54 1F 67 22 05 6E 64 CB [09:08:46]GetLastDocTimeStamp 1730106240 [09:08:46]current date 1730106530 [09:08:46]FM_GetShiftState [09:08:46]SAM_PROTO_GetShiftState [09:08:46]wFMCommunicate request_size=4 [09:08:46]MH_SAM_APDU [09:08:46]CAPDU: 80 13 01 00 [09:08:46]Write to MH i2c: E2 08 00 3B 24 80 13 01 00 00 00 00 00 DC [09:08:46]Write i2c OK [09:08:46]MH_I2C_Read... [09:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:46]Read from MH i2c: E2 [09:08:46]MH_I2C_Read... [09:08:46]Read from MH i2c: E2 0E 00 [09:08:46]MH_I2C_Read... [09:08:46]Read from MH i2c: E2 0E 00 3B 24 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2C [09:08:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:08:46]wFMCommunicate OK [09:08:46]SAM_PROTO_GetShiftState done [09:08:46]FM_GetShiftState done [09:08:46]opened in 1730075620 [09:08:46]opened+sec_in_day 1730162020 [09:08:46]quantity*price = 100015 [09:08:46]sum+1 = 100017 [09:08:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 27 28.10.2024 09:08 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192479 ФПД: 256622160567941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T090850&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192479&fm=256622160567941&tin=02508201610067®Number=0000000000091776&sum=100000 [09:08:47]StoreToDocumentArchive [09:08:47]shift 543 fd 192479 [09:08:47]save to /storage/0543/doc_00192479 [09:08:47]save last doc name /storage/0543/doc_00192479 to /storage/kkm_last_doc_name [09:08:47]save OK [09:08:47]Clear old archive folders... [09:08:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:47]tlvbuf is 0197DB50 [09:08:47]SAM_PROTO_ClearQueue [09:08:47]wFMCommunicate request_size=4 [09:08:47]MH_SAM_APDU [09:08:47]CAPDU: 80 09 00 00 [09:08:47]Write to MH i2c: E2 08 00 48 24 80 09 00 00 00 00 00 00 DE [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 48 24 00 90 00 E0 [09:08:47]RAPDU: 90 00 [09:08:47]wFMCommunicate OK [09:08:47]SAM_PROTO_ClearQueue done [09:08:47]KKMCreateOFDPacket [09:08:47]OFDProtocolAddRootSTLVToBuf [09:08:47]FM_MakeSignedData [09:08:47]FM_MakeSignedData [09:08:47]SAM_PROTO_SignData [09:08:47]wFMCommunicate request_size=4 [09:08:47]MH_SAM_APDU [09:08:47]CAPDU: 80 0D 01 02 [09:08:47]Write to MH i2c: E2 08 00 49 24 80 0D 01 02 00 00 00 00 E6 [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 49 24 00 90 00 E1 [09:08:47]RAPDU: 90 00 [09:08:47]wFMCommunicate OK [09:08:47]wFMCommunicate request_size=255 [09:08:47]MH_SAM_APDU [09:08: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 A2 54 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EF 02 00 35 04 06 00 E9 [09:08:47]Write to MH i2c: E2 02 01 4A 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 A2 54 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EF 02 00 35 04 06 00 E9 00 00 E5 [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 4A 24 00 90 00 E2 [09:08:47]RAPDU: 90 00 [09:08:47]wFMCommunicate OK [09:08:47]wFMCommunicate request_size=10 [09:08:47]MH_SAM_APDU [09:08:47]CAPDU: 80 0D 02 02 05 65 80 B8 DE 85 [09:08:47]Write to MH i2c: E2 0D 00 4B 24 80 0D 02 02 05 00 65 80 B8 DE 85 00 00 F3 [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 4B 24 00 90 00 E3 [09:08:47]RAPDU: 90 00 [09:08:47]wFMCommunicate OK [09:08:47]wFMCommunicate request_size=4 [09:08:47]MH_SAM_APDU [09:08:47]CAPDU: 80 0D 03 02 [09:08:47]Write to MH i2c: E2 08 00 4C 24 80 0D 03 02 00 00 00 00 EB [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 0B 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 0B 00 4C 24 00 56 C1 A6 59 65 CC 66 73 90 00 0C [09:08:47]RAPDU: 56 C1 A6 59 65 CC 66 73 90 00 [09:08:47]wFMCommunicate OK [09:08:47]SAM_PROTO_SignData done [09:08:47]FM_MakeSignedData done [09:08:47]CreateOFDProtocolMessage [09:08:47]wFMCommunicate request_size=4 [09:08:47]MH_SAM_APDU [09:08:47]CAPDU: 80 11 00 00 [09:08:47]Write to MH i2c: E2 08 00 4D 24 80 11 00 00 00 00 00 00 EB [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 17 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 17 00 4D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3E [09:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:08:47]wFMCommunicate OK [09:08:47]CreateOFDProtocolMessage done [09:08:47]OFDSenderStorePacket 192479 [09:08:47]StoreOFDPacket docnum=192479 [09:08:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 33 CE 07 01 FF 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 A2 54 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EF 02 00 35 04 06 00 E9 65 80 B8 DE 85 56 C1 A6 59 65 CC 66 73 [09:08:47]CheckFolder [09:08:47]dirname=/storage/ofd_packets [09:08:47]CheckFolder done [09:08:47]ProducePacketName [09:08:47]name=ofd_packets/00192479 [09:08:47]NVStorageSaveData ofd_packets/00192479 [09:08:47]File name is /storage/ofd_packets/00192479 [09:08:47]Write 301 bytes [09:08:47]NVStorageSaveData done [09:08:47]OFDSenderStorePacket done [09:08:47]KKMCreateOFDPacket done [09:08:47]NVStorageSaveData kkm_last_timestamp [09:08:47]File name is /storage/kkm_last_timestamp [09:08:47]Write 4 bytes [09:08:47]NVStorageSaveData done [09:08:47]ExternCall_PrintAddStr [09:08:47]wPrintStart [09:08:47]Write to MH i2c: 01 00 00 4E 24 72 [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: 01 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: 01 07 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: 01 07 00 4E 24 00 00 00 00 00 FF 0F 87 [09:08:47]RasterBufferAndPrint [09:08:47]line Счет N : (1)31794 [09:08:47]line ИНН: 02508201610067 [09:08:47]line Контрольно-Кассовый Чек [09:08:47]line ПРОДАЖА [09:08:47]line ТРК (МРК, ГНК) : 12 [09:08:47]line Товар: 2710124130 [09:08:47]line Аи-92-К-5 [09:08:47]line 14.950 * 66.90 [09:08:47]line = 1000.16 [09:08:47]line НДС 12% НСП 1% [09:08:47]line > о реализуемом товаре [09:08:47]line ОКРУГЛЕНИЕ: -0.16 [09:08:47]line ИТОГО: 1000.00 [09:08:47]line Внесено: 1000.00 [09:08:47]line СДАЧА: 0.00 [09:08:47]line НСП 1% : 8.85 [09:08:47]line НДС 12% : 106.21 [09:08:47]line Наличными: 1000.00 [09:08:47]line Безнал.: 0.00 [09:08:47]line Место: АЗС № 170 "Партнер Нефть" [09:08:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:08:47]line СНО: Общий режим [09:08:47]line Чек 27 28.10.2024 09:08 [09:08:47]line Смена: 543 ФФД: 1.0 [09:08:47]line ЗНМ: 0300000110 [09:08:47]line РНМ: 0000000000091776 [09:08:47]line Версия ККМ: 001 [09:08:47]line ФМ: 0000000000871754 [09:08:47]line ФД: 192479 [09:08:47]line ФПД: 256622160567941 [09:08:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T090850&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192479&fm=256622160567941&tin=02508201610067®Number=0000000000091776&sum=100000 [09:08:48]OFD Sender: Processing packet 192479 [packets to send 75, broken 74] [09:08:48]ProducePacketName [09:08:48]name=ofd_packets/00192479 [09:08:48]OFD Sender: To server: pG, [09:08:48]CommunicateWithHost lk.salyk.kg:30040 [09:08:48]ConnectInit lk.salyk.kg [09:08:48]written 0, free lines is 4095 [09:08:48]Connected sock=10 [09:08:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 33 CE 07 01 FF 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 A2 54 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EF 02 00 35 04 06 00 E9 65 80 B8 DE 85 56 C1 A6 59 65 CC 66 73 [09:08:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A4 9F 47 00 A1 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EF 02 00 F4 03 04 00 67 F9 1E 67 B6 04 01 00 00 9A A7 BB A2 7A 16 B0 F8 [09:08:48]CommunicateWithHost err = 0 [09:08:48]CheckOFDResponse [09:08:48]1017 (14) - 77093643461234 [09:08:48]1041 (16) - 0000000000871754 [09:08:48]1040 (4) - 192479 [09:08:48]1012 (4) - 28.10.2024 02:39 [09:08:48]1206 (1) - 0 [09:08:48]OFD Sender: Remove packet 192479 [09:08:48]ProducePacketName [09:08:48]name=ofd_packets/00192479 [09:08:48]NVStorageDeleteData [09:08:48]Write to MH i2c: 01 00 00 79 24 9D [09:08:48]Write i2c OK [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: 01 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: 01 07 00 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: 01 07 00 79 24 00 00 00 00 00 A7 0C 57 [09:08:48]RasterBufferAndPrint [09:08:48]line [09:08:48]line [09:08:48]line [09:08:48]line [09:08:48]line [09:08:48]written 0, free lines is 3243 [09:08:48]MH_Cut [09:08:48]Write to MH i2c: D1 01 00 80 24 01 76 [09:08:48]Write i2c OK [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: D1 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: D1 01 00 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: D1 01 00 80 24 00 75 [09:08:48]Write to MH i2c: 01 00 00 81 24 A5 [09:08:48]Write i2c OK [09:08:48]MH_I2C_Read... [09:08:49]OFD Sender: No OFD packet to send [09:08:49]*** Cut start [09:08:49]*** Partial cut [09:08:49]*** CUTSNS_PIN = 1 [09:08:49]*** CUTSNS_PIN = 0 [09:08:49]*** Brake cut motor [09:08:50]Read from MH i2c: 01 [09:08:50]MH_I2C_Read... [09:08:50]*** Stop cut motor [09:08:50]*** Cut end [09:08:50]Read from MH i2c: 01 07 00 [09:08:50]MH_I2C_Read... [09:08:50]Read from MH i2c: 01 07 00 81 24 00 00 00 00 00 FF 0F BA [09:08:50]process_action close_receipt done [09:08:50]requested_data is exist [09:08:50]produce_requested_data [09:08:50]requested_item fm.sn is exist - process it [09:08:50]wFMCommunicate request_size=4 [09:08:50]MH_SAM_APDU [09:08:50]CAPDU: 80 11 00 00 [09:08:50]Write to MH i2c: E2 08 00 82 24 80 11 00 00 00 00 00 00 20 [09:08:50]Write i2c OK [09:08:50]MH_I2C_Read... [09:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:50]Read from MH i2c: E2 [09:08:50]MH_I2C_Read... [09:08:50]Read from MH i2c: E2 17 00 [09:08:50]MH_I2C_Read... [09:08:50]Read from MH i2c: E2 17 00 82 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 73 [09:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:08:50]wFMCommunicate OK [09:08:50]requested_item fd.num is exist - process it [09:08:50]SAM_PROTO_GetFieldsCounters [09:08:50]wFMCommunicate request_size=4 [09:08:50]MH_SAM_APDU [09:08:50]CAPDU: 80 13 00 00 [09:08:50]Write to MH i2c: E2 08 00 83 24 80 13 00 00 00 00 00 00 23 [09:08:50]Write i2c OK [09:08:50]MH_I2C_Read... [09:08:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:50]Read from MH i2c: E2 [09:08:50]MH_I2C_Read... [09:08:50]Read from MH i2c: E2 62 00 [09:08:50]MH_I2C_Read... [09:08:50]Read from MH i2c: E2 62 00 83 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DF EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [09:08:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DF EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:50]wFMCommunicate OK [09:08:50]SAM_PROTO_GetFieldsCounters done [09:08:50]requested_item shift.num is exist - process it [09:08:50]requested_item shift.opened is exist - process it [09:08:50]req_shift_opened [09:08:50]FM_GetShiftState [09:08:50]SAM_PROTO_GetShiftState [09:08:50]wFMCommunicate request_size=4 [09:08:50]MH_SAM_APDU [09:08:50]CAPDU: 80 13 01 00 [09:08:50]Write to MH i2c: E2 08 00 84 24 80 13 01 00 00 00 00 00 25 [09:08:50]Write i2c OK [09:08:50]MH_I2C_Read... [09:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:50]Read from MH i2c: E2 [09:08:50]MH_I2C_Read... [09:08:50]Read from MH i2c: E2 0E 00 [09:08:50]MH_I2C_Read... [09:08:50]Read from MH i2c: E2 0E 00 84 24 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 75 [09:08:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:08:50]wFMCommunicate OK [09:08:50]SAM_PROTO_GetShiftState done [09:08:50]FM_GetShiftState done [09:08:50]req_shift_opened done [09:08:50]requested_item shift.open_date is exist - process it [09:08:50]req_shift_open_date [09:08:50]req_shift_open_date done [09:08:50]produce_requested_data done [09:08:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192479,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:08:50]process_action_free close_receipt [09:08:50]json_value_free [09:08:50]json_value_free done [09:08:50]process_json_proto returns [09:08:50]Send response to host [09:08:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192479,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:08:50]free response buf [09:08:50]execute_script done [09:08:50]execute_script returns [09:08:50]free content buf [09:08:50]Sock 9.Close socket [09:08:50]Sock 9.Thread stoped [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:49]accept exits with 7 [09:10:49]New connection [09:10:49]New thread 3066707300 created [09:10:49]Thread 3066563940 joined [09:10:49]Waiting for new connection... [09:10:49] Sock 7.Parse request [09:10:49]Sock 7.Check first char [09:10:49]Sock 7.First char is OK [09:10:49]request: POST /json_proto HTTP/1.0 [09:10:49]Method: POST [09:10:49]URL: /json_proto [09:10:49]Method is POST - this is cgi request [09:10:49]url: /json_proto [09:10:49]query_string will be loaded in cgi processing [09:10:49]execute_cgi json_proto POST (null) [09:10:49]execute_cgi path=json_proto method=POST [09:10:49]POST find Content-Length [09:10:49]Host: 172.17.63.131:8080 [09:10:49]Content-Length: 865 [09:10:49]Content-Type: application/json [09:10:49] [09:10:49]POST finish read [09:10:49]Found Content-Length = 865 [09:10:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:49]execute_script... [09:10:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:49]POST & json_proto [09:10:49]process_json_proto [09:10:49]json parsed OK: [09:10:49]protocol is kg_v1.0 [09:10:49]action value=close_receipt [09:10:49]process_action close_receipt [09:10:49]cmd_close_receipt [09:10:49]MH_GetDate [09:10:49]Write to MH i2c: F0 00 00 85 24 98 [09:10:49]Write i2c OK [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: F0 [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: F0 09 00 [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: F0 09 00 85 24 00 1D 55 1F 67 22 05 6E 64 92 [09:10:49]GetLastDocTimeStamp 1730106530 [09:10:49]current date 1730106653 [09:10:49]FM_GetShiftState [09:10:49]SAM_PROTO_GetShiftState [09:10:49]wFMCommunicate request_size=4 [09:10:49]MH_SAM_APDU [09:10:49]CAPDU: 80 13 01 00 [09:10:49]Write to MH i2c: E2 08 00 86 24 80 13 01 00 00 00 00 00 27 [09:10:49]Write i2c OK [09:10:49]MH_I2C_Read... [09:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:49]Read from MH i2c: E2 [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: E2 0E 00 [09:10:49]MH_I2C_Read... [09:10:49]Read from MH i2c: E2 0E 00 86 24 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 77 [09:10:49]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:10:49]wFMCommunicate OK [09:10:49]SAM_PROTO_GetShiftState done [09:10:49]FM_GetShiftState done [09:10:49]opened in 1730075620 [09:10:49]opened+sec_in_day 1730162020 [09:10:49]quantity*price = 100015 [09:10:49]sum+1 = 100017 [09:10:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 28 28.10.2024 09:10 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192480 ФПД: 88317729465688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091053&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192480&fm=88317729465688&tin=02508201610067®Number=0000000000091776&sum=100016 [09:10:50]StoreToDocumentArchive [09:10:50]shift 543 fd 192480 [09:10:50]save to /storage/0543/doc_00192480 [09:10:50]save last doc name /storage/0543/doc_00192480 to /storage/kkm_last_doc_name [09:10:50]save OK [09:10:50]Clear old archive folders... [09:10:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:50]tlvbuf is 019C0D10 [09:10:50]SAM_PROTO_ClearQueue [09:10:50]wFMCommunicate request_size=4 [09:10:50]MH_SAM_APDU [09:10:50]CAPDU: 80 09 00 00 [09:10:50]Write to MH i2c: E2 08 00 93 24 80 09 00 00 00 00 00 00 29 [09:10:50]Write i2c OK [09:10:50]MH_I2C_Read... [09:10:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:50]Read from MH i2c: E2 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: E2 03 00 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: E2 03 00 93 24 00 90 00 2B [09:10:50]RAPDU: 90 00 [09:10:50]wFMCommunicate OK [09:10:50]SAM_PROTO_ClearQueue done [09:10:50]KKMCreateOFDPacket [09:10:50]OFDProtocolAddRootSTLVToBuf [09:10:50]FM_MakeSignedData [09:10:50]FM_MakeSignedData [09:10:50]SAM_PROTO_SignData [09:10:50]wFMCommunicate request_size=4 [09:10:50]MH_SAM_APDU [09:10:50]CAPDU: 80 0D 01 02 [09:10:50]Write to MH i2c: E2 08 00 94 24 80 0D 01 02 00 00 00 00 31 [09:10:50]Write i2c OK [09:10:50]MH_I2C_Read... [09:10:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:50]Read from MH i2c: E2 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: E2 03 00 [09:10:50]MH_I2C_Read... [09:10:50]Read from MH i2c: E2 03 00 94 24 00 90 00 2C [09:10:50]RAPDU: 90 00 [09:10:50]wFMCommunicate OK [09:10:50]wFMCommunicate request_size=255 [09:10:50]MH_SAM_APDU [09:10: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1D 55 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EF 02 00 35 04 06 00 50 [09:10:50]Write to MH i2c: E2 02 01 95 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1D 55 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EF 02 00 35 04 06 00 50 00 00 35 [09:10:50]Write i2c OK [09:10:50]MH_I2C_Read... [09:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:51]Read from MH i2c: E2 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: E2 03 00 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: E2 03 00 95 24 00 90 00 2D [09:10:51]RAPDU: 90 00 [09:10:51]wFMCommunicate OK [09:10:51]wFMCommunicate request_size=10 [09:10:51]MH_SAM_APDU [09:10:51]CAPDU: 80 0D 02 02 05 53 12 E4 65 58 [09:10:51]Write to MH i2c: E2 0D 00 96 24 80 0D 02 02 05 00 53 12 E4 65 58 00 00 44 [09:10:51]Write i2c OK [09:10:51]MH_I2C_Read... [09:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:51]Read from MH i2c: E2 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: E2 03 00 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: E2 03 00 96 24 00 90 00 2E [09:10:51]RAPDU: 90 00 [09:10:51]wFMCommunicate OK [09:10:51]wFMCommunicate request_size=4 [09:10:51]MH_SAM_APDU [09:10:51]CAPDU: 80 0D 03 02 [09:10:51]Write to MH i2c: E2 08 00 97 24 80 0D 03 02 00 00 00 00 36 [09:10:51]Write i2c OK [09:10:51]MH_I2C_Read... [09:10:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:51]Read from MH i2c: E2 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: E2 0B 00 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: E2 0B 00 97 24 00 2D 81 FC C8 95 A2 3C AA 90 00 C6 [09:10:51]RAPDU: 2D 81 FC C8 95 A2 3C AA 90 00 [09:10:51]wFMCommunicate OK [09:10:51]SAM_PROTO_SignData done [09:10:51]FM_MakeSignedData done [09:10:51]CreateOFDProtocolMessage [09:10:51]wFMCommunicate request_size=4 [09:10:51]MH_SAM_APDU [09:10:51]CAPDU: 80 11 00 00 [09:10:51]Write to MH i2c: E2 08 00 98 24 80 11 00 00 00 00 00 00 36 [09:10:51]Write i2c OK [09:10:51]MH_I2C_Read... [09:10:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:51]Read from MH i2c: E2 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: E2 17 00 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: E2 17 00 98 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 89 [09:10:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:10:51]wFMCommunicate OK [09:10:51]CreateOFDProtocolMessage done [09:10:51]OFDSenderStorePacket 192480 [09:10:51]StoreOFDPacket docnum=192480 [09:10:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 99 2C 07 01 82 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1D 55 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EF 02 00 35 04 06 00 50 53 12 E4 65 58 2D 81 FC C8 95 A2 3C AA [09:10:51]CheckFolder [09:10:51]dirname=/storage/ofd_packets [09:10:51]CheckFolder done [09:10:51]ProducePacketName [09:10:51]name=ofd_packets/00192480 [09:10:51]NVStorageSaveData ofd_packets/00192480 [09:10:51]File name is /storage/ofd_packets/00192480 [09:10:51]Write 301 bytes [09:10:51]NVStorageSaveData done [09:10:51]OFDSenderStorePacket done [09:10:51]KKMCreateOFDPacket done [09:10:51]NVStorageSaveData kkm_last_timestamp [09:10:51]File name is /storage/kkm_last_timestamp [09:10:51]Write 4 bytes [09:10:51]NVStorageSaveData done [09:10:51]ExternCall_PrintAddStr [09:10:51]wPrintStart [09:10:51]Write to MH i2c: 01 00 00 99 24 BD [09:10:51]Write i2c OK [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: 01 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: 01 07 00 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: 01 07 00 99 24 00 00 00 00 00 FF 0F D2 [09:10:51]RasterBufferAndPrint [09:10:51]line Счет N : (1)31795 [09:10:51]line ИНН: 02508201610067 [09:10:51]line Контрольно-Кассовый Чек [09:10:51]line ПРОДАЖА [09:10:51]line ТРК (МРК, ГНК) : 12 [09:10:51]line Товар: 2710124130 [09:10:51]line Аи-92-К-5 [09:10:51]line 14.950 * 66.90 [09:10:51]line = 1000.16 [09:10:51]line НДС 12% НСП 1% [09:10:51]line > о реализуемом товаре [09:10:51]line ИТОГО: 1000.16 [09:10:51]line НСП 1% : 8.85 [09:10:51]line НДС 12% : 106.21 [09:10:51]line Наличными: 0.00 [09:10:51]line Безнал.: 1000.16 [09:10:51]line Место: АЗС № 170 "Партнер Нефть" [09:10:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:10:51]line СНО: Общий режим [09:10:51]line Чек 28 28.10.2024 09:10 [09:10:51]line Смена: 543 ФФД: 1.0 [09:10:51]line ЗНМ: 0300000110 [09:10:51]line РНМ: 0000000000091776 [09:10:51]line Версия ККМ: 001 [09:10:51]line Платежная система: Кыргызкоммерцбанк [09:10:51]line ФМ: 0000000000871754 [09:10:51]line ФД: 192480 [09:10:51]line ФПД: 88317729465688 [09:10:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091053&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192480&fm=88317729465688&tin=02508201610067®Number=0000000000091776&sum=100016 [09:10:51]OFD Sender: Processing packet 192480 [packets to send 75, broken 74] [09:10:51]ProducePacketName [09:10:51]name=ofd_packets/00192480 [09:10:51]OFD Sender: To server: pG, [09:10:51]CommunicateWithHost lk.salyk.kg:30040 [09:10:51]ConnectInit lk.salyk.kg [09:10:51]written 0, free lines is 4095 [09:10:51]Connected sock=10 [09:10:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 99 2C 07 01 82 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1D 55 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EF 02 00 35 04 06 00 50 53 12 E4 65 58 2D 81 FC C8 95 A2 3C AA [09:10:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 90 EA 47 00 D6 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EF 02 00 F4 03 04 00 E2 F9 1E 67 B6 04 01 00 00 E3 E2 50 F4 F6 C4 00 32 [09:10:51]CommunicateWithHost err = 0 [09:10:51]CheckOFDResponse [09:10:51]1017 (14) - 77093643461234 [09:10:51]1041 (16) - 0000000000871754 [09:10:51]1040 (4) - 192480 [09:10:51]1012 (4) - 28.10.2024 02:41 [09:10:51]1206 (1) - 0 [09:10:51]OFD Sender: Remove packet 192480 [09:10:51]ProducePacketName [09:10:51]name=ofd_packets/00192480 [09:10:51]NVStorageDeleteData [09:10:51]Write to MH i2c: 01 00 00 C3 24 E7 [09:10:51]Write i2c OK [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: 01 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: 01 07 00 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: 01 07 00 C3 24 00 00 00 00 00 B6 0C B0 [09:10:51]RasterBufferAndPrint [09:10:51]line [09:10:51]line [09:10:51]line [09:10:51]line [09:10:51]line [09:10:51]written 0, free lines is 3259 [09:10:51]MH_Cut [09:10:51]Write to MH i2c: D1 01 00 CA 24 01 C0 [09:10:51]Write i2c OK [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: D1 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: D1 01 00 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: D1 01 00 CA 24 00 BF [09:10:52]Write to MH i2c: 01 00 00 CB 24 EF [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:52]OFD Sender: No OFD packet to send [09:10:52]*** Cut start [09:10:52]*** Partial cut [09:10:52]*** CUTSNS_PIN = 1 [09:10:52]*** CUTSNS_PIN = 0 [09:10:53]*** Brake cut motor [09:10:53]Read from MH i2c: 01 [09:10:53]MH_I2C_Read... [09:10:53]*** Stop cut motor [09:10:53]*** Cut end [09:10:53]Read from MH i2c: 01 07 00 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: 01 07 00 CB 24 00 00 00 00 00 FF 0F 04 [09:10:53]process_action close_receipt done [09:10:53]requested_data is exist [09:10:53]produce_requested_data [09:10:53]requested_item fm.sn is exist - process it [09:10:53]wFMCommunicate request_size=4 [09:10:53]MH_SAM_APDU [09:10:53]CAPDU: 80 11 00 00 [09:10:53]Write to MH i2c: E2 08 00 CC 24 80 11 00 00 00 00 00 00 6A [09:10:53]Write i2c OK [09:10:53]MH_I2C_Read... [09:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:53]Read from MH i2c: E2 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 17 00 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 17 00 CC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BD [09:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:10:53]wFMCommunicate OK [09:10:53]requested_item fd.num is exist - process it [09:10:53]SAM_PROTO_GetFieldsCounters [09:10:53]wFMCommunicate request_size=4 [09:10:53]MH_SAM_APDU [09:10:53]CAPDU: 80 13 00 00 [09:10:53]Write to MH i2c: E2 08 00 CD 24 80 13 00 00 00 00 00 00 6D [09:10:53]Write i2c OK [09:10:53]MH_I2C_Read... [09:10:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:53]Read from MH i2c: E2 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 62 00 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 62 00 CD 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E0 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [09:10:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E0 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:53]wFMCommunicate OK [09:10:53]SAM_PROTO_GetFieldsCounters done [09:10:53]requested_item shift.num is exist - process it [09:10:53]requested_item shift.opened is exist - process it [09:10:53]req_shift_opened [09:10:53]FM_GetShiftState [09:10:53]SAM_PROTO_GetShiftState [09:10:53]wFMCommunicate request_size=4 [09:10:53]MH_SAM_APDU [09:10:53]CAPDU: 80 13 01 00 [09:10:53]Write to MH i2c: E2 08 00 CE 24 80 13 01 00 00 00 00 00 6F [09:10:53]Write i2c OK [09:10:53]MH_I2C_Read... [09:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:53]Read from MH i2c: E2 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 0E 00 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 0E 00 CE 24 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 BF [09:10:53]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:10:53]wFMCommunicate OK [09:10:53]SAM_PROTO_GetShiftState done [09:10:53]FM_GetShiftState done [09:10:53]req_shift_opened done [09:10:53]requested_item shift.open_date is exist - process it [09:10:53]req_shift_open_date [09:10:53]req_shift_open_date done [09:10:53]produce_requested_data done [09:10:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192480,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:10:53]process_action_free close_receipt [09:10:53]json_value_free [09:10:53]json_value_free done [09:10:53]process_json_proto returns [09:10:53]Send response to host [09:10:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192480,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:10:53]free response buf [09:10:53]execute_script done [09:10:53]execute_script returns [09:10:53]free content buf [09:10:53]Sock 7.Close socket [09:10:53]Sock 7.Thread stoped [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:38]accept exits with 9 [09:11:38]New connection [09:11:38]New thread 3066563940 created [09:11:38]Thread 3066707300 joined [09:11:38]Waiting for new connection... [09:11:38] Sock 9.Parse request [09:11:38]Sock 9.Check first char [09:11:38]Sock 9.First char is OK [09:11:38]request: POST /json_proto HTTP/1.0 [09:11:38]Method: POST [09:11:38]URL: /json_proto [09:11:38]Method is POST - this is cgi request [09:11:38]url: /json_proto [09:11:38]query_string will be loaded in cgi processing [09:11:38]execute_cgi json_proto POST (null) [09:11:38]execute_cgi path=json_proto method=POST [09:11:38]POST find Content-Length [09:11:38]Host: 172.17.63.131:8080 [09:11:38]Content-Length: 681 [09:11:38]Content-Type: application/json [09:11:38] [09:11:38]POST finish read [09:11:38]Found Content-Length = 681 [09:11:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:38]execute_script... [09:11:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:38]POST & json_proto [09:11:38]process_json_proto [09:11:38]json parsed OK: [09:11:38]protocol is kg_v1.0 [09:11:38]action value=close_receipt [09:11:38]process_action close_receipt [09:11:38]cmd_close_receipt [09:11:38]MH_GetDate [09:11:38]Write to MH i2c: F0 00 00 CF 24 E2 [09:11:38]Write i2c OK [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: F0 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: F0 09 00 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: F0 09 00 CF 24 00 4E 55 1F 67 22 05 6E 64 0D [09:11:38]GetLastDocTimeStamp 1730106653 [09:11:38]current date 1730106702 [09:11:38]FM_GetShiftState [09:11:38]SAM_PROTO_GetShiftState [09:11:38]wFMCommunicate request_size=4 [09:11:38]MH_SAM_APDU [09:11:38]CAPDU: 80 13 01 00 [09:11:38]Write to MH i2c: E2 08 00 D0 24 80 13 01 00 00 00 00 00 71 [09:11:38]Write i2c OK [09:11:38]MH_I2C_Read... [09:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:38]Read from MH i2c: E2 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: E2 0E 00 [09:11:38]MH_I2C_Read... [09:11:38]Read from MH i2c: E2 0E 00 D0 24 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C1 [09:11:38]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:11:38]wFMCommunicate OK [09:11:38]SAM_PROTO_GetShiftState done [09:11:38]FM_GetShiftState done [09:11:38]opened in 1730075620 [09:11:38]opened+sec_in_day 1730162020 [09:11:38]quantity*price = 100015 [09:11:38]sum+1 = 100017 [09:11:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 29 28.10.2024 09:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192481 ФПД: 154669864654893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091142&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192481&fm=154669864654893&tin=02508201610067®Number=0000000000091776&sum=100000 [09:11:39]StoreToDocumentArchive [09:11:39]shift 543 fd 192481 [09:11:39]save to /storage/0543/doc_00192481 [09:11:39]save last doc name /storage/0543/doc_00192481 to /storage/kkm_last_doc_name [09:11:39]save OK [09:11:39]Clear old archive folders... [09:11:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:39]tlvbuf is B6F19010 [09:11:39]SAM_PROTO_ClearQueue [09:11:39]wFMCommunicate request_size=4 [09:11:39]MH_SAM_APDU [09:11:39]CAPDU: 80 09 00 00 [09:11:39]Write to MH i2c: E2 08 00 DD 24 80 09 00 00 00 00 00 00 73 [09:11:39]Write i2c OK [09:11:39]MH_I2C_Read... [09:11:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:39]Read from MH i2c: E2 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 03 00 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 03 00 DD 24 00 90 00 75 [09:11:39]RAPDU: 90 00 [09:11:39]wFMCommunicate OK [09:11:39]SAM_PROTO_ClearQueue done [09:11:39]KKMCreateOFDPacket [09:11:39]OFDProtocolAddRootSTLVToBuf [09:11:39]FM_MakeSignedData [09:11:39]FM_MakeSignedData [09:11:39]SAM_PROTO_SignData [09:11:39]wFMCommunicate request_size=4 [09:11:39]MH_SAM_APDU [09:11:39]CAPDU: 80 0D 01 02 [09:11:39]Write to MH i2c: E2 08 00 DE 24 80 0D 01 02 00 00 00 00 7B [09:11:39]Write i2c OK [09:11:39]MH_I2C_Read... [09:11:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:39]Read from MH i2c: E2 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 03 00 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 03 00 DE 24 00 90 00 76 [09:11:39]RAPDU: 90 00 [09:11:39]wFMCommunicate OK [09:11:39]wFMCommunicate request_size=255 [09:11:39]MH_SAM_APDU [09:11:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4E 55 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EF 02 00 35 04 06 00 8C [09:11:39]Write to MH i2c: E2 02 01 DF 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4E 55 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EF 02 00 35 04 06 00 8C 00 00 CE [09:11:39]Write i2c OK [09:11:39]MH_I2C_Read... [09:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:39]Read from MH i2c: E2 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 03 00 [09:11:39]MH_I2C_Read... [09:11:39]Read from MH i2c: E2 03 00 DF 24 00 90 00 77 [09:11:39]RAPDU: 90 00 [09:11:39]wFMCommunicate OK [09:11:39]wFMCommunicate request_size=10 [09:11:39]MH_SAM_APDU [09:11:39]CAPDU: 80 0D 02 02 05 AB E2 57 18 2D [09:11:39]Write to MH i2c: E2 0D 00 E0 24 80 0D 02 02 05 00 AB E2 57 18 2D 00 00 B1 [09:11:39]Write i2c OK [09:11:39]MH_I2C_Read... [09:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:40]Read from MH i2c: E2 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: E2 03 00 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: E2 03 00 E0 24 00 90 00 78 [09:11:40]RAPDU: 90 00 [09:11:40]wFMCommunicate OK [09:11:40]wFMCommunicate request_size=4 [09:11:40]MH_SAM_APDU [09:11:40]CAPDU: 80 0D 03 02 [09:11:40]Write to MH i2c: E2 08 00 E1 24 80 0D 03 02 00 00 00 00 80 [09:11:40]Write i2c OK [09:11:40]MH_I2C_Read... [09:11:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:40]Read from MH i2c: E2 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: E2 0B 00 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: E2 0B 00 E1 24 00 FF 1D 1E FE F1 EC 58 5A 90 00 48 [09:11:40]RAPDU: FF 1D 1E FE F1 EC 58 5A 90 00 [09:11:40]wFMCommunicate OK [09:11:40]SAM_PROTO_SignData done [09:11:40]FM_MakeSignedData done [09:11:40]CreateOFDProtocolMessage [09:11:40]wFMCommunicate request_size=4 [09:11:40]MH_SAM_APDU [09:11:40]CAPDU: 80 11 00 00 [09:11:40]Write to MH i2c: E2 08 00 E2 24 80 11 00 00 00 00 00 00 80 [09:11:40]Write i2c OK [09:11:40]MH_I2C_Read... [09:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:40]Read from MH i2c: E2 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: E2 17 00 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: E2 17 00 E2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D3 [09:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:11:40]wFMCommunicate OK [09:11:40]CreateOFDProtocolMessage done [09:11:40]OFDSenderStorePacket 192481 [09:11:40]StoreOFDPacket docnum=192481 [09:11:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B2 29 07 01 E8 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4E 55 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EF 02 00 35 04 06 00 8C AB E2 57 18 2D FF 1D 1E FE F1 EC 58 5A [09:11:40]CheckFolder [09:11:40]dirname=/storage/ofd_packets [09:11:40]CheckFolder done [09:11:40]ProducePacketName [09:11:40]name=ofd_packets/00192481 [09:11:40]NVStorageSaveData ofd_packets/00192481 [09:11:40]File name is /storage/ofd_packets/00192481 [09:11:40]Write 301 bytes [09:11:40]NVStorageSaveData done [09:11:40]OFDSenderStorePacket done [09:11:40]KKMCreateOFDPacket done [09:11:40]NVStorageSaveData kkm_last_timestamp [09:11:40]File name is /storage/kkm_last_timestamp [09:11:40]Write 4 bytes [09:11:40]NVStorageSaveData done [09:11:40]ExternCall_PrintAddStr [09:11:40]wPrintStart [09:11:40]Write to MH i2c: 01 00 00 E3 24 07 [09:11:40]Write i2c OK [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: 01 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: 01 07 00 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: 01 07 00 E3 24 00 00 00 00 00 FF 0F 1C [09:11:40]RasterBufferAndPrint [09:11:40]line Счет N : (1)31796 [09:11:40]line ИНН: 02508201610067 [09:11:40]line Контрольно-Кассовый Чек [09:11:40]line ПРОДАЖА [09:11:40]line ТРК (МРК, ГНК) : 21 [09:11:40]line Товар: 2710124130 [09:11:40]line Аи-92-К-5 [09:11:40]line 14.950 * 66.90 [09:11:40]line = 1000.16 [09:11:40]line НДС 12% НСП 1% [09:11:40]line > о реализуемом товаре [09:11:40]line ОКРУГЛЕНИЕ: -0.16 [09:11:40]line ИТОГО: 1000.00 [09:11:40]line Внесено: 1000.00 [09:11:40]line СДАЧА: 0.00 [09:11:40]line НСП 1% : 8.85 [09:11:40]line НДС 12% : 106.21 [09:11:40]line Наличными: 1000.00 [09:11:40]line Безнал.: 0.00 [09:11:40]line Место: АЗС № 170 "Партнер Нефть" [09:11:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:11:40]line СНО: Общий режим [09:11:40]line Чек 29 28.10.2024 09:11 [09:11:40]line Смена: 543 ФФД: 1.0 [09:11:40]line ЗНМ: 0300000110 [09:11:40]line РНМ: 0000000000091776 [09:11:40]line Версия ККМ: 001 [09:11:40]line ФМ: 0000000000871754 [09:11:40]line ФД: 192481 [09:11:40]line ФПД: 154669864654893 [09:11:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091142&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192481&fm=154669864654893&tin=02508201610067®Number=0000000000091776&sum=100000 [09:11:40]OFD Sender: Processing packet 192481 [packets to send 75, broken 74] [09:11:40]ProducePacketName [09:11:40]name=ofd_packets/00192481 [09:11:40]OFD Sender: To server: pG, [09:11:40]CommunicateWithHost lk.salyk.kg:30040 [09:11:40]ConnectInit lk.salyk.kg [09:11:40]written 0, free lines is 4095 [09:11:40]Connected sock=10 [09:11:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B2 29 07 01 E8 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 4E 55 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EF 02 00 35 04 06 00 8C AB E2 57 18 2D FF 1D 1E FE F1 EC 58 5A [09:11:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D8 10 47 00 B5 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EF 02 00 F4 03 04 00 13 FA 1E 67 B6 04 01 00 00 BD 2B 6B 60 7D 94 16 D9 [09:11:40]CommunicateWithHost err = 0 [09:11:40]CheckOFDResponse [09:11:40]1017 (14) - 77093643461234 [09:11:40]1041 (16) - 0000000000871754 [09:11:40]1040 (4) - 192481 [09:11:40]1012 (4) - 28.10.2024 02:42 [09:11:40]1206 (1) - 0 [09:11:40]OFD Sender: Remove packet 192481 [09:11:40]ProducePacketName [09:11:40]name=ofd_packets/00192481 [09:11:40]NVStorageDeleteData [09:11:40]Write to MH i2c: 01 00 00 0E 25 33 [09:11:40]Write i2c OK [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: 01 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: 01 07 00 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: 01 07 00 0E 25 00 00 00 00 00 9D 0C E3 [09:11:40]RasterBufferAndPrint [09:11:40]line [09:11:40]line [09:11:40]line [09:11:40]line [09:11:40]line [09:11:40]written 0, free lines is 3235 [09:11:40]MH_Cut [09:11:40]Write to MH i2c: D1 01 00 15 25 01 0C [09:11:40]Write i2c OK [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: D1 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: D1 01 00 [09:11:40]MH_I2C_Read... [09:11:40]Read from MH i2c: D1 01 00 15 25 00 0B [09:11:40]Write to MH i2c: 01 00 00 16 25 3B [09:11:40]Write i2c OK [09:11:40]MH_I2C_Read... [09:11:41]OFD Sender: No OFD packet to send [09:11:41]*** Cut start [09:11:41]*** Partial cut [09:11:41]*** CUTSNS_PIN = 1 [09:11:41]*** CUTSNS_PIN = 0 [09:11:42]*** Brake cut motor [09:11:42]Read from MH i2c: 01 [09:11:42]MH_I2C_Read... [09:11:42]*** Stop cut motor [09:11:42]*** Cut end [09:11:42]Read from MH i2c: 01 07 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: 01 07 00 16 25 00 00 00 00 00 FF 0F 50 [09:11:42]process_action close_receipt done [09:11:42]requested_data is exist [09:11:42]produce_requested_data [09:11:42]requested_item fm.sn is exist - process it [09:11:42]wFMCommunicate request_size=4 [09:11:42]MH_SAM_APDU [09:11:42]CAPDU: 80 11 00 00 [09:11:42]Write to MH i2c: E2 08 00 17 25 80 11 00 00 00 00 00 00 B6 [09:11:42]Write i2c OK [09:11:42]MH_I2C_Read... [09:11:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:42]Read from MH i2c: E2 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 17 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 17 00 17 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 09 [09:11:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:11:42]wFMCommunicate OK [09:11:42]requested_item fd.num is exist - process it [09:11:42]SAM_PROTO_GetFieldsCounters [09:11:42]wFMCommunicate request_size=4 [09:11:42]MH_SAM_APDU [09:11:42]CAPDU: 80 13 00 00 [09:11:42]Write to MH i2c: E2 08 00 18 25 80 13 00 00 00 00 00 00 B9 [09:11:42]Write i2c OK [09:11:42]MH_I2C_Read... [09:11:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:42]Read from MH i2c: E2 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 62 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 62 00 18 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E1 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [09:11:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E1 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:42]wFMCommunicate OK [09:11:42]SAM_PROTO_GetFieldsCounters done [09:11:42]requested_item shift.num is exist - process it [09:11:42]requested_item shift.opened is exist - process it [09:11:42]req_shift_opened [09:11:42]FM_GetShiftState [09:11:42]SAM_PROTO_GetShiftState [09:11:42]wFMCommunicate request_size=4 [09:11:42]MH_SAM_APDU [09:11:42]CAPDU: 80 13 01 00 [09:11:42]Write to MH i2c: E2 08 00 19 25 80 13 01 00 00 00 00 00 BB [09:11:42]Write i2c OK [09:11:42]MH_I2C_Read... [09:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:42]Read from MH i2c: E2 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 0E 00 [09:11:42]MH_I2C_Read... [09:11:42]Read from MH i2c: E2 0E 00 19 25 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0B [09:11:42]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:11:42]wFMCommunicate OK [09:11:42]SAM_PROTO_GetShiftState done [09:11:42]FM_GetShiftState done [09:11:42]req_shift_opened done [09:11:42]requested_item shift.open_date is exist - process it [09:11:42]req_shift_open_date [09:11:42]req_shift_open_date done [09:11:42]produce_requested_data done [09:11:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192481,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:11:42]process_action_free close_receipt [09:11:42]json_value_free [09:11:42]json_value_free done [09:11:42]process_json_proto returns [09:11:42]Send response to host [09:11:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192481,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:11:42]free response buf [09:11:42]execute_script done [09:11:42]execute_script returns [09:11:42]free content buf [09:11:42]Sock 9.Close socket [09:11:42]Sock 9.Thread stoped [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]accept exits with 7 [09:11:56]New connection [09:11:56]New thread 3066707300 created [09:11:56]Thread 3066563940 joined [09:11:56]Waiting for new connection... [09:11:56] Sock 7.Parse request [09:11:56]Sock 7.Check first char [09:11:56]Sock 7.First char is OK [09:11:56]request: POST /json_proto HTTP/1.0 [09:11:56]Method: POST [09:11:56]URL: /json_proto [09:11:56]Method is POST - this is cgi request [09:11:56]url: /json_proto [09:11:56]query_string will be loaded in cgi processing [09:11:56]execute_cgi json_proto POST (null) [09:11:56]execute_cgi path=json_proto method=POST [09:11:56]POST find Content-Length [09:11:56]Host: 172.17.63.131:8080 [09:11:56]Content-Length: 676 [09:11:56]Content-Type: application/json [09:11:56] [09:11:56]POST finish read [09:11:56]Found Content-Length = 676 [09:11:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:56]execute_script... [09:11: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)31797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:56]POST & json_proto [09:11:56]process_json_proto [09:11:56]json parsed OK: [09:11:56]protocol is kg_v1.0 [09:11:56]action value=close_receipt [09:11:56]process_action close_receipt [09:11:56]cmd_close_receipt [09:11:56]MH_GetDate [09:11:56]Write to MH i2c: F0 00 00 1A 25 2E [09:11:56]Write i2c OK [09:11:56]MH_I2C_Read... [09:11:56]Read from MH i2c: F0 [09:11:56]MH_I2C_Read... [09:11:56]Read from MH i2c: F0 09 00 [09:11:56]MH_I2C_Read... [09:11:56]Read from MH i2c: F0 09 00 1A 25 00 60 55 1F 67 22 05 6E 64 6B [09:11:56]GetLastDocTimeStamp 1730106702 [09:11:56]current date 1730106720 [09:11:56]FM_GetShiftState [09:11:56]SAM_PROTO_GetShiftState [09:11:56]wFMCommunicate request_size=4 [09:11:56]MH_SAM_APDU [09:11:56]CAPDU: 80 13 01 00 [09:11:56]Write to MH i2c: E2 08 00 1B 25 80 13 01 00 00 00 00 00 BD [09:11:56]Write i2c OK [09:11:56]MH_I2C_Read... [09:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:56]Read from MH i2c: E2 [09:11:56]MH_I2C_Read... [09:11:56]Read from MH i2c: E2 0E 00 [09:11:56]MH_I2C_Read... [09:11:56]Read from MH i2c: E2 0E 00 1B 25 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0D [09:11:56]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:11:56]wFMCommunicate OK [09:11:56]SAM_PROTO_GetShiftState done [09:11:56]FM_GetShiftState done [09:11:56]opened in 1730075620 [09:11:56]opened+sec_in_day 1730162020 [09:11:56]quantity*price = 30038 [09:11:56]sum+1 = 30039 [09:11:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 30 28.10.2024 09:12 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192482 ФПД: 210485929542510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091200&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192482&fm=210485929542510&tin=02508201610067®Number=0000000000091776&sum=30000 [09:11:57]StoreToDocumentArchive [09:11:57]shift 543 fd 192482 [09:11:57]save to /storage/0543/doc_00192482 [09:11:57]save last doc name /storage/0543/doc_00192482 to /storage/kkm_last_doc_name [09:11:57]save OK [09:11:57]Clear old archive folders... [09:11:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:57]tlvbuf is 019C3740 [09:11:57]SAM_PROTO_ClearQueue [09:11:57]wFMCommunicate request_size=4 [09:11:57]MH_SAM_APDU [09:11:57]CAPDU: 80 09 00 00 [09:11:57]Write to MH i2c: E2 08 00 28 25 80 09 00 00 00 00 00 00 BF [09:11:57]Write i2c OK [09:11:57]MH_I2C_Read... [09:11:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:57]Read from MH i2c: E2 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 03 00 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 03 00 28 25 00 90 00 C1 [09:11:57]RAPDU: 90 00 [09:11:57]wFMCommunicate OK [09:11:57]SAM_PROTO_ClearQueue done [09:11:57]KKMCreateOFDPacket [09:11:57]OFDProtocolAddRootSTLVToBuf [09:11:57]FM_MakeSignedData [09:11:57]FM_MakeSignedData [09:11:57]SAM_PROTO_SignData [09:11:57]wFMCommunicate request_size=4 [09:11:57]MH_SAM_APDU [09:11:57]CAPDU: 80 0D 01 02 [09:11:57]Write to MH i2c: E2 08 00 29 25 80 0D 01 02 00 00 00 00 C7 [09:11:57]Write i2c OK [09:11:57]MH_I2C_Read... [09:11:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:57]Read from MH i2c: E2 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 03 00 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 03 00 29 25 00 90 00 C2 [09:11:57]RAPDU: 90 00 [09:11:57]wFMCommunicate OK [09:11:57]wFMCommunicate request_size=255 [09:11:57]MH_SAM_APDU [09:11:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 60 55 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EF 02 00 35 04 06 00 BF [09:11:57]Write to MH i2c: E2 02 01 2A 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 60 55 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EF 02 00 35 04 06 00 BF 00 00 5B [09:11:57]Write i2c OK [09:11:57]MH_I2C_Read... [09:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:57]Read from MH i2c: E2 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 03 00 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 03 00 2A 25 00 90 00 C3 [09:11:57]RAPDU: 90 00 [09:11:57]wFMCommunicate OK [09:11:57]wFMCommunicate request_size=10 [09:11:57]MH_SAM_APDU [09:11:57]CAPDU: 80 0D 02 02 05 6F 93 0F 83 6E [09:11:57]Write to MH i2c: E2 0D 00 2B 25 80 0D 02 02 05 00 6F 93 0F 83 6E 00 00 D6 [09:11:57]Write i2c OK [09:11:57]MH_I2C_Read... [09:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:57]Read from MH i2c: E2 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 03 00 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 03 00 2B 25 00 90 00 C4 [09:11:57]RAPDU: 90 00 [09:11:57]wFMCommunicate OK [09:11:57]wFMCommunicate request_size=4 [09:11:57]MH_SAM_APDU [09:11:57]CAPDU: 80 0D 03 02 [09:11:57]Write to MH i2c: E2 08 00 2C 25 80 0D 03 02 00 00 00 00 CC [09:11:57]Write i2c OK [09:11:57]MH_I2C_Read... [09:11:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:57]Read from MH i2c: E2 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 0B 00 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 0B 00 2C 25 00 70 08 64 45 51 F9 A9 8A 90 00 6B [09:11:57]RAPDU: 70 08 64 45 51 F9 A9 8A 90 00 [09:11:57]wFMCommunicate OK [09:11:57]SAM_PROTO_SignData done [09:11:57]FM_MakeSignedData done [09:11:57]CreateOFDProtocolMessage [09:11:57]wFMCommunicate request_size=4 [09:11:57]MH_SAM_APDU [09:11:57]CAPDU: 80 11 00 00 [09:11:57]Write to MH i2c: E2 08 00 2D 25 80 11 00 00 00 00 00 00 CC [09:11:57]Write i2c OK [09:11:57]MH_I2C_Read... [09:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:57]Read from MH i2c: E2 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 17 00 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 17 00 2D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1F [09:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:11:57]wFMCommunicate OK [09:11:57]CreateOFDProtocolMessage done [09:11:57]OFDSenderStorePacket 192482 [09:11:57]StoreOFDPacket docnum=192482 [09:11:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 47 7C 07 01 E7 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 60 55 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EF 02 00 35 04 06 00 BF 6F 93 0F 83 6E 70 08 64 45 51 F9 A9 8A [09:11:57]CheckFolder [09:11:57]dirname=/storage/ofd_packets [09:11:57]CheckFolder done [09:11:57]ProducePacketName [09:11:57]name=ofd_packets/00192482 [09:11:57]NVStorageSaveData ofd_packets/00192482 [09:11:57]File name is /storage/ofd_packets/00192482 [09:11:57]Write 301 bytes [09:11:57]NVStorageSaveData done [09:11:57]OFDSenderStorePacket done [09:11:57]KKMCreateOFDPacket done [09:11:57]NVStorageSaveData kkm_last_timestamp [09:11:57]File name is /storage/kkm_last_timestamp [09:11:57]Write 4 bytes [09:11:57]NVStorageSaveData done [09:11:57]ExternCall_PrintAddStr [09:11:57]wPrintStart [09:11:57]Write to MH i2c: 01 00 00 2E 25 53 [09:11:57]Write i2c OK [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: 01 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: 01 07 00 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: 01 07 00 2E 25 00 00 00 00 00 FF 0F 68 [09:11:57]RasterBufferAndPrint [09:11:57]line Счет N : (1)31797 [09:11:57]line ИНН: 02508201610067 [09:11:57]line Контрольно-Кассовый Чек [09:11:57]line ПРОДАЖА [09:11:57]line ТРК (МРК, ГНК) : 12 [09:11:57]line Товар: 2710124130 [09:11:57]line Аи-92-К-5 [09:11:57]line 4.490 * 66.90 [09:11:57]line = 300.38 [09:11:57]line НДС 12% НСП 1% [09:11:57]line > о реализуемом товаре [09:11:57]line ОКРУГЛЕНИЕ: -0.38 [09:11:57]line ИТОГО: 300.00 [09:11:57]line Внесено: 300.00 [09:11:57]line СДАЧА: 0.00 [09:11:57]line НСП 1% : 2.66 [09:11:57]line НДС 12% : 31.90 [09:11:57]line Наличными: 300.00 [09:11:57]line Безнал.: 0.00 [09:11:57]line Место: АЗС № 170 "Партнер Нефть" [09:11:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:11:57]line СНО: Общий режим [09:11:57]line Чек 30 28.10.2024 09:12 [09:11:57]line Смена: 543 ФФД: 1.0 [09:11:57]line ЗНМ: 0300000110 [09:11:57]line РНМ: 0000000000091776 [09:11:57]line Версия ККМ: 001 [09:11:57]line ФМ: 0000000000871754 [09:11:57]line ФД: 192482 [09:11:57]line ФПД: 210485929542510 [09:11:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091200&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192482&fm=210485929542510&tin=02508201610067®Number=0000000000091776&sum=30000 [09:11:58]OFD Sender: Processing packet 192482 [packets to send 75, broken 74] [09:11:58]ProducePacketName [09:11:58]name=ofd_packets/00192482 [09:11:58]OFD Sender: To server: pG, [09:11:58]CommunicateWithHost lk.salyk.kg:30040 [09:11:58]ConnectInit lk.salyk.kg [09:11:58]written 0, free lines is 4095 [09:11:58]Connected sock=11 [09:11:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 47 7C 07 01 E7 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 60 55 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EF 02 00 35 04 06 00 BF 6F 93 0F 83 6E 70 08 64 45 51 F9 A9 8A [09:11:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 57 77 47 00 AF ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EF 02 00 F4 03 04 00 25 FA 1E 67 B6 04 01 00 00 32 62 FE 1F 2A C9 5E 80 [09:11:58]CommunicateWithHost err = 0 [09:11:58]CheckOFDResponse [09:11:58]1017 (14) - 77093643461234 [09:11:58]1041 (16) - 0000000000871754 [09:11:58]1040 (4) - 192482 [09:11:58]1012 (4) - 28.10.2024 02:42 [09:11:58]1206 (1) - 0 [09:11:58]OFD Sender: Remove packet 192482 [09:11:58]ProducePacketName [09:11:58]name=ofd_packets/00192482 [09:11:58]NVStorageDeleteData [09:11:58]Write to MH i2c: 01 00 00 59 25 7E [09:11:58]Write i2c OK [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: 01 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: 01 07 00 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: 01 07 00 59 25 00 00 00 00 00 A0 0C 31 [09:11:58]RasterBufferAndPrint [09:11:58]line [09:11:58]line [09:11:58]line [09:11:58]line [09:11:58]line [09:11:58]written 0, free lines is 3237 [09:11:58]MH_Cut [09:11:58]Write to MH i2c: D1 01 00 60 25 01 57 [09:11:58]Write i2c OK [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: D1 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: D1 01 00 [09:11:58]MH_I2C_Read... [09:11:58]Read from MH i2c: D1 01 00 60 25 00 56 [09:11:58]Write to MH i2c: 01 00 00 61 25 86 [09:11:58]Write i2c OK [09:11:58]MH_I2C_Read... [09:11:58]OFD Sender: No OFD packet to send [09:11:59]*** Cut start [09:11:59]*** Partial cut [09:11:59]*** CUTSNS_PIN = 1 [09:11:59]*** CUTSNS_PIN = 0 [09:11:59]*** Brake cut motor [09:12:00]Read from MH i2c: 01 [09:12:00]MH_I2C_Read... [09:12:00]*** Stop cut motor [09:12:00]*** Cut end [09:12:00]Read from MH i2c: 01 07 00 [09:12:00]MH_I2C_Read... [09:12:00]Read from MH i2c: 01 07 00 61 25 00 00 00 00 00 FF 0F 9B [09:12:00]process_action close_receipt done [09:12:00]requested_data is exist [09:12:00]produce_requested_data [09:12:00]requested_item fm.sn is exist - process it [09:12:00]wFMCommunicate request_size=4 [09:12:00]MH_SAM_APDU [09:12:00]CAPDU: 80 11 00 00 [09:12:00]Write to MH i2c: E2 08 00 62 25 80 11 00 00 00 00 00 00 01 [09:12:00]Write i2c OK [09:12:00]MH_I2C_Read... [09:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:00]Read from MH i2c: E2 [09:12:00]MH_I2C_Read... [09:12:00]Read from MH i2c: E2 17 00 [09:12:00]MH_I2C_Read... [09:12:00]Read from MH i2c: E2 17 00 62 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 54 [09:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:12:00]wFMCommunicate OK [09:12:00]requested_item fd.num is exist - process it [09:12:00]SAM_PROTO_GetFieldsCounters [09:12:00]wFMCommunicate request_size=4 [09:12:00]MH_SAM_APDU [09:12:00]CAPDU: 80 13 00 00 [09:12:00]Write to MH i2c: E2 08 00 63 25 80 13 00 00 00 00 00 00 04 [09:12:00]Write i2c OK [09:12:00]MH_I2C_Read... [09:12:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:00]Read from MH i2c: E2 [09:12:00]MH_I2C_Read... [09:12:00]Read from MH i2c: E2 62 00 [09:12:00]MH_I2C_Read... [09:12:00]Read from MH i2c: E2 62 00 63 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E2 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [09:12:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E2 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:00]wFMCommunicate OK [09:12:00]SAM_PROTO_GetFieldsCounters done [09:12:00]requested_item shift.num is exist - process it [09:12:00]requested_item shift.opened is exist - process it [09:12:00]req_shift_opened [09:12:00]FM_GetShiftState [09:12:00]SAM_PROTO_GetShiftState [09:12:00]wFMCommunicate request_size=4 [09:12:00]MH_SAM_APDU [09:12:00]CAPDU: 80 13 01 00 [09:12:00]Write to MH i2c: E2 08 00 64 25 80 13 01 00 00 00 00 00 06 [09:12:00]Write i2c OK [09:12:00]MH_I2C_Read... [09:12:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:00]Read from MH i2c: E2 [09:12:00]MH_I2C_Read... [09:12:00]Read from MH i2c: E2 0E 00 [09:12:00]MH_I2C_Read... [09:12:00]Read from MH i2c: E2 0E 00 64 25 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 56 [09:12:00]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:12:00]wFMCommunicate OK [09:12:00]SAM_PROTO_GetShiftState done [09:12:00]FM_GetShiftState done [09:12:00]req_shift_opened done [09:12:00]requested_item shift.open_date is exist - process it [09:12:00]req_shift_open_date [09:12:00]req_shift_open_date done [09:12:00]produce_requested_data done [09:12:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192482,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:12:00]process_action_free close_receipt [09:12:00]json_value_free [09:12:00]json_value_free done [09:12:00]process_json_proto returns [09:12:00]Send response to host [09:12:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192482,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:12:00]free response buf [09:12:00]execute_script done [09:12:00]execute_script returns [09:12:00]free content buf [09:12:00]Sock 7.Close socket [09:12:00]Sock 7.Thread stoped [09:12:03]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:45]accept exits with 9 [09:13:45]New connection [09:13:45]New thread 3066563940 created [09:13:45]Thread 3066707300 joined [09:13:45]Waiting for new connection... [09:13:45] Sock 9.Parse request [09:13:45]Sock 9.Check first char [09:13:45]Sock 9.First char is OK [09:13:45]request: POST /json_proto HTTP/1.0 [09:13:45]Method: POST [09:13:45]URL: /json_proto [09:13:45]Method is POST - this is cgi request [09:13:45]url: /json_proto [09:13:45]query_string will be loaded in cgi processing [09:13:45]execute_cgi json_proto POST (null) [09:13:45]execute_cgi path=json_proto method=POST [09:13:45]POST find Content-Length [09:13:45]Host: 172.17.63.131:8080 [09:13:45]Content-Length: 676 [09:13:45]Content-Type: application/json [09:13:45] [09:13:45]POST finish read [09:13:45]Found Content-Length = 676 [09:13:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:45]execute_script... [09:13:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:45]POST & json_proto [09:13:45]process_json_proto [09:13:45]json parsed OK: [09:13:45]protocol is kg_v1.0 [09:13:45]action value=close_receipt [09:13:45]process_action close_receipt [09:13:45]cmd_close_receipt [09:13:45]MH_GetDate [09:13:45]Write to MH i2c: F0 00 00 65 25 79 [09:13:45]Write i2c OK [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: F0 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: F0 09 00 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: F0 09 00 65 25 00 CE 55 1F 67 22 05 6E 64 24 [09:13:45]GetLastDocTimeStamp 1730106720 [09:13:45]current date 1730106830 [09:13:45]FM_GetShiftState [09:13:45]SAM_PROTO_GetShiftState [09:13:45]wFMCommunicate request_size=4 [09:13:45]MH_SAM_APDU [09:13:45]CAPDU: 80 13 01 00 [09:13:45]Write to MH i2c: E2 08 00 66 25 80 13 01 00 00 00 00 00 08 [09:13:45]Write i2c OK [09:13:45]MH_I2C_Read... [09:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:45]Read from MH i2c: E2 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: E2 0E 00 [09:13:45]MH_I2C_Read... [09:13:45]Read from MH i2c: E2 0E 00 66 25 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 58 [09:13:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:13:45]wFMCommunicate OK [09:13:45]SAM_PROTO_GetShiftState done [09:13:45]FM_GetShiftState done [09:13:45]opened in 1730075620 [09:13:45]opened+sec_in_day 1730162020 [09:13:45]quantity*price = 40006 [09:13:45]sum+1 = 40007 [09:13:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 31 28.10.2024 09:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192483 ФПД: 210274108805809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091350&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192483&fm=210274108805809&tin=02508201610067®Number=0000000000091776&sum=40000 [09:13:47]StoreToDocumentArchive [09:13:47]shift 543 fd 192483 [09:13:47]save to /storage/0543/doc_00192483 [09:13:47]save last doc name /storage/0543/doc_00192483 to /storage/kkm_last_doc_name [09:13:47]save OK [09:13:47]Clear old archive folders... [09:13:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:47]tlvbuf is 01970930 [09:13:47]SAM_PROTO_ClearQueue [09:13:47]wFMCommunicate request_size=4 [09:13:47]MH_SAM_APDU [09:13:47]CAPDU: 80 09 00 00 [09:13:47]Write to MH i2c: E2 08 00 73 25 80 09 00 00 00 00 00 00 0A [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:47]Read from MH i2c: E2 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 73 25 00 90 00 0C [09:13:47]RAPDU: 90 00 [09:13:47]wFMCommunicate OK [09:13:47]SAM_PROTO_ClearQueue done [09:13:47]KKMCreateOFDPacket [09:13:47]OFDProtocolAddRootSTLVToBuf [09:13:47]FM_MakeSignedData [09:13:47]FM_MakeSignedData [09:13:47]SAM_PROTO_SignData [09:13:47]wFMCommunicate request_size=4 [09:13:47]MH_SAM_APDU [09:13:47]CAPDU: 80 0D 01 02 [09:13:47]Write to MH i2c: E2 08 00 74 25 80 0D 01 02 00 00 00 00 12 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:47]Read from MH i2c: E2 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 74 25 00 90 00 0D [09:13:47]RAPDU: 90 00 [09:13:47]wFMCommunicate OK [09:13:47]wFMCommunicate request_size=255 [09:13:47]MH_SAM_APDU [09:13: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 CE 55 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EF 02 00 35 04 06 00 BF [09:13:47]Write to MH i2c: E2 02 01 75 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 CE 55 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EF 02 00 35 04 06 00 BF 00 00 F1 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:47]Read from MH i2c: E2 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 75 25 00 90 00 0E [09:13:47]RAPDU: 90 00 [09:13:47]wFMCommunicate OK [09:13:47]wFMCommunicate request_size=10 [09:13:47]MH_SAM_APDU [09:13:47]CAPDU: 80 0D 02 02 05 3E 41 8F 92 B1 [09:13:47]Write to MH i2c: E2 0D 00 76 25 80 0D 02 02 05 00 3E 41 8F 92 B1 00 00 70 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:47]Read from MH i2c: E2 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 03 00 76 25 00 90 00 0F [09:13:47]RAPDU: 90 00 [09:13:47]wFMCommunicate OK [09:13:47]wFMCommunicate request_size=4 [09:13:47]MH_SAM_APDU [09:13:47]CAPDU: 80 0D 03 02 [09:13:47]Write to MH i2c: E2 08 00 77 25 80 0D 03 02 00 00 00 00 17 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:47]Read from MH i2c: E2 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 0B 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 0B 00 77 25 00 09 47 1A CA 63 07 88 85 90 00 C3 [09:13:47]RAPDU: 09 47 1A CA 63 07 88 85 90 00 [09:13:47]wFMCommunicate OK [09:13:47]SAM_PROTO_SignData done [09:13:47]FM_MakeSignedData done [09:13:47]CreateOFDProtocolMessage [09:13:47]wFMCommunicate request_size=4 [09:13:47]MH_SAM_APDU [09:13:47]CAPDU: 80 11 00 00 [09:13:47]Write to MH i2c: E2 08 00 78 25 80 11 00 00 00 00 00 00 17 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:47]Read from MH i2c: E2 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 17 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: E2 17 00 78 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6A [09:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:13:47]wFMCommunicate OK [09:13:47]CreateOFDProtocolMessage done [09:13:47]OFDSenderStorePacket 192483 [09:13:47]StoreOFDPacket docnum=192483 [09:13:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 60 2F 07 01 72 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 CE 55 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EF 02 00 35 04 06 00 BF 3E 41 8F 92 B1 09 47 1A CA 63 07 88 85 [09:13:47]CheckFolder [09:13:47]dirname=/storage/ofd_packets [09:13:47]CheckFolder done [09:13:47]ProducePacketName [09:13:47]name=ofd_packets/00192483 [09:13:47]NVStorageSaveData ofd_packets/00192483 [09:13:47]File name is /storage/ofd_packets/00192483 [09:13:47]Write 301 bytes [09:13:47]NVStorageSaveData done [09:13:47]OFDSenderStorePacket done [09:13:47]KKMCreateOFDPacket done [09:13:47]NVStorageSaveData kkm_last_timestamp [09:13:47]File name is /storage/kkm_last_timestamp [09:13:47]Write 4 bytes [09:13:47]NVStorageSaveData done [09:13:47]ExternCall_PrintAddStr [09:13:47]wPrintStart [09:13:47]Write to MH i2c: 01 00 00 79 25 9E [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 07 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: 01 07 00 79 25 00 00 00 00 00 FF 0F B3 [09:13:47]RasterBufferAndPrint [09:13:47]line Счет N : (1)31798 [09:13:47]line ИНН: 02508201610067 [09:13:47]line Контрольно-Кассовый Чек [09:13:47]line ПРОДАЖА [09:13:47]line ТРК (МРК, ГНК) : 21 [09:13:47]line Товар: 2710124130 [09:13:47]line Аи-92-К-5 [09:13:47]line 5.980 * 66.90 [09:13:47]line = 400.06 [09:13:47]line НДС 12% НСП 1% [09:13:47]line > о реализуемом товаре [09:13:47]line ОКРУГЛЕНИЕ: -0.06 [09:13:47]line ИТОГО: 400.00 [09:13:47]line Внесено: 400.00 [09:13:47]line СДАЧА: 0.00 [09:13:47]line НСП 1% : 3.54 [09:13:47]line НДС 12% : 42.48 [09:13:47]line Наличными: 400.00 [09:13:47]line Безнал.: 0.00 [09:13:47]line Место: АЗС № 170 "Партнер Нефть" [09:13:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:13:47]line СНО: Общий режим [09:13:47]line Чек 31 28.10.2024 09:13 [09:13:47]line Смена: 543 ФФД: 1.0 [09:13:47]line ЗНМ: 0300000110 [09:13:47]line РНМ: 0000000000091776 [09:13:47]line Версия ККМ: 001 [09:13:47]line ФМ: 0000000000871754 [09:13:47]line ФД: 192483 [09:13:47]line ФПД: 210274108805809 [09:13:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091350&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192483&fm=210274108805809&tin=02508201610067®Number=0000000000091776&sum=40000 [09:13:47]OFD Sender: Processing packet 192483 [packets to send 75, broken 74] [09:13:47]ProducePacketName [09:13:47]name=ofd_packets/00192483 [09:13:47]OFD Sender: To server: pG, [09:13:47]CommunicateWithHost lk.salyk.kg:30040 [09:13:47]ConnectInit lk.salyk.kg [09:13:47]written 0, free lines is 4095 [09:13:48]Connected sock=10 [09:13:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 60 2F 07 01 72 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 CE 55 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EF 02 00 35 04 06 00 BF 3E 41 8F 92 B1 09 47 1A CA 63 07 88 85 [09:13:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AE 66 47 00 A3 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EF 02 00 F4 03 04 00 92 FA 1E 67 B6 04 01 00 00 7A 4D 84 6A A9 E2 1A 9D [09:13:48]CommunicateWithHost err = 0 [09:13:48]CheckOFDResponse [09:13:48]1017 (14) - 77093643461234 [09:13:48]1041 (16) - 0000000000871754 [09:13:48]1040 (4) - 192483 [09:13:48]1012 (4) - 28.10.2024 02:44 [09:13:48]1206 (1) - 0 [09:13:48]OFD Sender: Remove packet 192483 [09:13:48]ProducePacketName [09:13:48]name=ofd_packets/00192483 [09:13:48]NVStorageDeleteData [09:13:48]Write to MH i2c: 01 00 00 A4 25 C9 [09:13:48]Write i2c OK [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: 01 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: 01 07 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: 01 07 00 A4 25 00 00 00 00 00 9D 0C 79 [09:13:48]RasterBufferAndPrint [09:13:48]line [09:13:48]line [09:13:48]line [09:13:48]line [09:13:48]line [09:13:48]written 0, free lines is 3236 [09:13:48]MH_Cut [09:13:48]Write to MH i2c: D1 01 00 AB 25 01 A2 [09:13:48]Write i2c OK [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: D1 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: D1 01 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: D1 01 00 AB 25 00 A1 [09:13:48]Write to MH i2c: 01 00 00 AC 25 D1 [09:13:48]Write i2c OK [09:13:48]MH_I2C_Read... [09:13:48]OFD Sender: No OFD packet to send [09:13:49]*** Cut start [09:13:49]*** Partial cut [09:13:49]*** CUTSNS_PIN = 1 [09:13:49]*** CUTSNS_PIN = 0 [09:13:49]*** Brake cut motor [09:13:49]Read from MH i2c: 01 [09:13:49]MH_I2C_Read... [09:13:49]*** Stop cut motor [09:13:49]*** Cut end [09:13:49]Read from MH i2c: 01 07 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: 01 07 00 AC 25 00 00 00 00 00 FF 0F E6 [09:13:49]process_action close_receipt done [09:13:49]requested_data is exist [09:13:49]produce_requested_data [09:13:49]requested_item fm.sn is exist - process it [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 11 00 00 [09:13:49]Write to MH i2c: E2 08 00 AD 25 80 11 00 00 00 00 00 00 4C [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 17 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 17 00 AD 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [09:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:13:49]wFMCommunicate OK [09:13:49]requested_item fd.num is exist - process it [09:13:49]SAM_PROTO_GetFieldsCounters [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 13 00 00 [09:13:49]Write to MH i2c: E2 08 00 AE 25 80 13 00 00 00 00 00 00 4F [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:50]Read from MH i2c: E2 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 62 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 62 00 AE 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E3 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [09:13:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E3 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:50]wFMCommunicate OK [09:13:50]SAM_PROTO_GetFieldsCounters done [09:13:50]requested_item shift.num is exist - process it [09:13:50]requested_item shift.opened is exist - process it [09:13:50]req_shift_opened [09:13:50]FM_GetShiftState [09:13:50]SAM_PROTO_GetShiftState [09:13:50]wFMCommunicate request_size=4 [09:13:50]MH_SAM_APDU [09:13:50]CAPDU: 80 13 01 00 [09:13:50]Write to MH i2c: E2 08 00 AF 25 80 13 01 00 00 00 00 00 51 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:50]Read from MH i2c: E2 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 0E 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 0E 00 AF 25 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A1 [09:13:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:13:50]wFMCommunicate OK [09:13:50]SAM_PROTO_GetShiftState done [09:13:50]FM_GetShiftState done [09:13:50]req_shift_opened done [09:13:50]requested_item shift.open_date is exist - process it [09:13:50]req_shift_open_date [09:13:50]req_shift_open_date done [09:13:50]produce_requested_data done [09:13:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192483,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:13:50]process_action_free close_receipt [09:13:50]json_value_free [09:13:50]json_value_free done [09:13:50]process_json_proto returns [09:13:50]Send response to host [09:13:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192483,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:13:50]free response buf [09:13:50]execute_script done [09:13:50]execute_script returns [09:13:50]free content buf [09:13:50]Sock 9.Close socket [09:13:50]Sock 9.Thread stoped [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]accept exits with 7 [09:15:48]New connection [09:15:48]New thread 3066707300 created [09:15:48]Thread 3066563940 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.63.131:8080 [09:15:48]Content-Length: 676 [09:15:48]Content-Type: application/json [09:15:48] [09:15:48]POST finish read [09:15:48]Found Content-Length = 676 [09:15:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09: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 : (1)31799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09: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 B0 25 C4 [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 B0 25 00 48 56 1F 67 22 05 6E 64 EA [09:15:48]GetLastDocTimeStamp 1730106830 [09:15:48]current date 1730106952 [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 B1 25 80 13 01 00 00 00 00 00 53 [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 B1 25 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A3 [09:15:48]RAPDU: 09 00 01 E4 DB 1E 67 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 1730075620 [09:15:48]opened+sec_in_day 1730162020 [09:15:48]quantity*price = 50041 [09:15:48]sum+1 = 50042 [09:15:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 32 28.10.2024 09:15 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192484 ФПД: 80091930362413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091552&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192484&fm=80091930362413&tin=02508201610067®Number=0000000000091776&sum=50000 [09:15:49]StoreToDocumentArchive [09:15:49]shift 543 fd 192484 [09:15:49]save to /storage/0543/doc_00192484 [09:15:49]save last doc name /storage/0543/doc_00192484 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=251 [09:15:49]tlvbuf is B6F192D0 [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 BE 25 80 09 00 00 00 00 00 00 55 [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:49]Read from MH i2c: E2 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 03 00 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 03 00 BE 25 00 90 00 57 [09:15:49]RAPDU: 90 00 [09:15:49]wFMCommunicate OK [09:15:49]SAM_PROTO_ClearQueue done [09:15:49]KKMCreateOFDPacket [09:15:49]OFDProtocolAddRootSTLVToBuf [09:15:49]FM_MakeSignedData [09:15:49]FM_MakeSignedData [09:15:49]SAM_PROTO_SignData [09:15:49]wFMCommunicate request_size=4 [09:15:49]MH_SAM_APDU [09:15:49]CAPDU: 80 0D 01 02 [09:15:49]Write to MH i2c: E2 08 00 BF 25 80 0D 01 02 00 00 00 00 5D [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:49]Read from MH i2c: E2 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 03 00 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: E2 03 00 BF 25 00 90 00 58 [09:15:49]RAPDU: 90 00 [09:15:49]wFMCommunicate OK [09:15:49]wFMCommunicate request_size=255 [09:15:49]MH_SAM_APDU [09:15:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 48 56 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 EF 02 00 35 04 06 00 48 [09:15:49]Write to MH i2c: E2 02 01 C0 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 48 56 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 EF 02 00 35 04 06 00 48 00 00 73 [09:15:49]Write i2c OK [09:15:49]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 C0 25 00 90 00 59 [09:15:50]RAPDU: 90 00 [09:15:50]wFMCommunicate OK [09:15:50]wFMCommunicate request_size=10 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 0D 02 02 05 D7 DB 0F 02 2D [09:15:50]Write to MH i2c: E2 0D 00 C1 25 80 0D 02 02 05 00 D7 DB 0F 02 2D 00 00 5A [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 C1 25 00 90 00 5A [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 C2 25 80 0D 03 02 00 00 00 00 62 [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 C2 25 00 77 F5 78 61 E2 BE 8C 4A 90 00 1E [09:15:50]RAPDU: 77 F5 78 61 E2 BE 8C 4A 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 C3 25 80 11 00 00 00 00 00 00 62 [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 C3 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [09:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:15:50]wFMCommunicate OK [09:15:50]CreateOFDProtocolMessage done [09:15:50]OFDSenderStorePacket 192484 [09:15:50]StoreOFDPacket docnum=192484 [09:15:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B9 33 07 01 62 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 48 56 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 EF 02 00 35 04 06 00 48 D7 DB 0F 02 2D 77 F5 78 61 E2 BE 8C 4A [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/00192484 [09:15:50]NVStorageSaveData ofd_packets/00192484 [09:15:50]File name is /storage/ofd_packets/00192484 [09:15:50]Write 301 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 C4 25 E9 [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 C4 25 00 00 00 00 00 FF 0F FE [09:15:50]RasterBufferAndPrint [09:15:50]line Счет N : (1)31799 [09:15:50]line ИНН: 02508201610067 [09:15:50]line Контрольно-Кассовый Чек [09:15:50]line ПРОДАЖА [09:15:50]line ТРК (МРК, ГНК) : 21 [09:15:50]line Товар: 2710124130 [09:15:50]line Аи-92-К-5 [09:15:50]line 7.480 * 66.90 [09:15:50]line = 500.41 [09:15:50]line НДС 12% НСП 1% [09:15:50]line > о реализуемом товаре [09:15:50]line ОКРУГЛЕНИЕ: -0.41 [09:15:50]line ИТОГО: 500.00 [09:15:50]line Внесено: 500.00 [09:15:50]line СДАЧА: 0.00 [09:15:50]line НСП 1% : 4.43 [09:15:50]line НДС 12% : 53.14 [09:15:50]line Наличными: 500.00 [09:15:50]line Безнал.: 0.00 [09:15:50]line Место: АЗС № 170 "Партнер Нефть" [09:15:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:15:50]line СНО: Общий режим [09:15:50]line Чек 32 28.10.2024 09:15 [09:15:50]line Смена: 543 ФФД: 1.0 [09:15:50]line ЗНМ: 0300000110 [09:15:50]line РНМ: 0000000000091776 [09:15:50]line Версия ККМ: 001 [09:15:50]line ФМ: 0000000000871754 [09:15:50]line ФД: 192484 [09:15:50]line ФПД: 80091930362413 [09:15:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091552&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192484&fm=80091930362413&tin=02508201610067®Number=0000000000091776&sum=50000 [09:15:50]OFD Sender: Processing packet 192484 [packets to send 75, broken 74] [09:15:50]ProducePacketName [09:15:50]name=ofd_packets/00192484 [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 31 37 35 34 0F 01 00 00 B9 33 07 01 62 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 48 56 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 EF 02 00 35 04 06 00 48 D7 DB 0F 02 2D 77 F5 78 61 E2 BE 8C 4A [09:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FD 90 47 00 F3 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 EF 02 00 F4 03 04 00 0D FB 1E 67 B6 04 01 00 00 A1 E6 3F 4F 39 69 A9 F8 [09:15:50]CommunicateWithHost err = 0 [09:15:50]CheckOFDResponse [09:15:50]1017 (14) - 77093643461234 [09:15:50]1041 (16) - 0000000000871754 [09:15:50]1040 (4) - 192484 [09:15:50]1012 (4) - 28.10.2024 02:46 [09:15:50]1206 (1) - 0 [09:15:50]OFD Sender: Remove packet 192484 [09:15:50]ProducePacketName [09:15:50]name=ofd_packets/00192484 [09:15:50]NVStorageDeleteData [09:15:51]Write to MH i2c: 01 00 00 EF 25 14 [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 EF 25 00 00 00 00 00 99 0C C0 [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 3232 [09:15:51]MH_Cut [09:15:51]Write to MH i2c: D1 01 00 F6 25 01 ED [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 F6 25 00 EC [09:15:51]Write to MH i2c: 01 00 00 F7 25 1C [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:51]*** 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 F7 25 00 00 00 00 00 FF 0F 31 [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 F8 25 80 11 00 00 00 00 00 00 97 [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 F8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [09:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 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 F9 25 80 13 00 00 00 00 00 00 9A [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 F9 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E4 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E4 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 FA 25 80 13 01 00 00 00 00 00 9C [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 FA 25 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EC [09:15:52]RAPDU: 09 00 01 E4 DB 1E 67 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":"0000000000871754","fd.num":192484,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [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":"0000000000871754","fd.num":192484,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [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:05]accept exits with 9 [09:19:05]New connection [09:19:05]New thread 3066563940 created [09:19:05]Thread 3066707300 joined [09:19:05]Waiting for new connection... [09:19:05] Sock 9.Parse request [09:19:05]Sock 9.Check first char [09:19:05]Sock 9.First char is OK [09:19:05]request: POST /json_proto HTTP/1.0 [09:19:05]Method: POST [09:19:05]URL: /json_proto [09:19:05]Method is POST - this is cgi request [09:19:05]url: /json_proto [09:19:05]query_string will be loaded in cgi processing [09:19:05]execute_cgi json_proto POST (null) [09:19:05]execute_cgi path=json_proto method=POST [09:19:05]POST find Content-Length [09:19:05]Host: 172.17.63.131:8080 [09:19:05]Content-Length: 676 [09:19:05]Content-Type: application/json [09:19:05] [09:19:05]POST finish read [09:19:05]Found Content-Length = 676 [09:19:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.030, "sum" : 135.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 135.00, "payments": [ { "type": 0, "sum" : 135.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:05]execute_script... [09:19: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)31800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.030, "sum" : 135.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 135.00, "payments": [ { "type": 0, "sum" : 135.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:05]POST & json_proto [09:19:05]process_json_proto [09:19:05]json parsed OK: [09:19:05]protocol is kg_v1.0 [09:19:05]action value=close_receipt [09:19:05]process_action close_receipt [09:19:05]cmd_close_receipt [09:19:05]MH_GetDate [09:19:05]Write to MH i2c: F0 00 00 FB 25 0F [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: F0 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: F0 09 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: F0 09 00 FB 25 00 0E 57 1F 67 22 05 6E 64 FC [09:19:05]GetLastDocTimeStamp 1730106952 [09:19:05]current date 1730107150 [09:19:05]FM_GetShiftState [09:19:05]SAM_PROTO_GetShiftState [09:19:05]wFMCommunicate request_size=4 [09:19:05]MH_SAM_APDU [09:19:05]CAPDU: 80 13 01 00 [09:19:05]Write to MH i2c: E2 08 00 FC 25 80 13 01 00 00 00 00 00 9E [09:19:05]Write i2c OK [09:19:05]MH_I2C_Read... [09:19:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:05]Read from MH i2c: E2 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 0E 00 [09:19:05]MH_I2C_Read... [09:19:05]Read from MH i2c: E2 0E 00 FC 25 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EE [09:19:05]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:19:05]wFMCommunicate OK [09:19:05]SAM_PROTO_GetShiftState done [09:19:05]FM_GetShiftState done [09:19:05]opened in 1730075620 [09:19:05]opened+sec_in_day 1730162020 [09:19:05]quantity*price = 13580 [09:19:05]sum+1 = 13582 [09:19:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.81 ИТОГО: 135.00 Внесено: 140.00 СДАЧА: 5.00 НСП 1% : 1.20 НДС 12% : 14.42 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 33 28.10.2024 09:19 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192485 ФПД: 25600046386262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091910&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192485&fm=25600046386262&tin=02508201610067®Number=0000000000091776&sum=13500 [09:19:06]StoreToDocumentArchive [09:19:06]shift 543 fd 192485 [09:19:06]save to /storage/0543/doc_00192485 [09:19:06]save last doc name /storage/0543/doc_00192485 to /storage/kkm_last_doc_name [09:19:06]save OK [09:19:06]Clear old archive folders... [09:19:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:06]tlvbuf is B6F19010 [09:19:06]SAM_PROTO_ClearQueue [09:19:06]wFMCommunicate request_size=4 [09:19:06]MH_SAM_APDU [09:19:06]CAPDU: 80 09 00 00 [09:19:06]Write to MH i2c: E2 08 00 09 26 80 09 00 00 00 00 00 00 A1 [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:06]Read from MH i2c: E2 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 03 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 03 00 09 26 00 90 00 A3 [09:19:06]RAPDU: 90 00 [09:19:06]wFMCommunicate OK [09:19:06]SAM_PROTO_ClearQueue done [09:19:06]KKMCreateOFDPacket [09:19:06]OFDProtocolAddRootSTLVToBuf [09:19:06]FM_MakeSignedData [09:19:06]FM_MakeSignedData [09:19:06]SAM_PROTO_SignData [09:19:06]wFMCommunicate request_size=4 [09:19:06]MH_SAM_APDU [09:19:06]CAPDU: 80 0D 01 02 [09:19:06]Write to MH i2c: E2 08 00 0A 26 80 0D 01 02 00 00 00 00 A9 [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:06]Read from MH i2c: E2 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 03 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 03 00 0A 26 00 90 00 A4 [09:19:06]RAPDU: 90 00 [09:19:06]wFMCommunicate OK [09:19:06]wFMCommunicate request_size=255 [09:19:06]MH_SAM_APDU [09:19: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 EE 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0D 35 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 78 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 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 21 00 00 00 F4 03 04 00 0E 57 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EF 02 00 35 04 06 00 17 [09:19:06]Write to MH i2c: E2 02 01 0B 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0D 35 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 78 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 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 21 00 00 00 F4 03 04 00 0E 57 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EF 02 00 35 04 06 00 17 00 00 44 [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 0B 26 00 90 00 A5 [09:19:07]RAPDU: 90 00 [09:19:07]wFMCommunicate OK [09:19:07]wFMCommunicate request_size=10 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 0D 02 02 05 48 79 AB CC 56 [09:19:07]Write to MH i2c: E2 0D 00 0C 26 80 0D 02 02 05 00 48 79 AB CC 56 00 00 44 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 0C 26 00 90 00 A6 [09:19:07]RAPDU: 90 00 [09:19:07]wFMCommunicate OK [09:19:07]wFMCommunicate request_size=4 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 0D 03 02 [09:19:07]Write to MH i2c: E2 08 00 0D 26 80 0D 03 02 00 00 00 00 AE [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 0B 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 0B 00 0D 26 00 8D EF A3 F1 63 81 DF 1C 90 00 9E [09:19:07]RAPDU: 8D EF A3 F1 63 81 DF 1C 90 00 [09:19:07]wFMCommunicate OK [09:19:07]SAM_PROTO_SignData done [09:19:07]FM_MakeSignedData done [09:19:07]CreateOFDProtocolMessage [09:19:07]wFMCommunicate request_size=4 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 11 00 00 [09:19:07]Write to MH i2c: E2 08 00 0E 26 80 11 00 00 00 00 00 00 AE [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 17 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 17 00 0E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 01 [09:19:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:19:07]wFMCommunicate OK [09:19:07]CreateOFDProtocolMessage done [09:19:07]OFDSenderStorePacket 192485 [09:19:07]StoreOFDPacket docnum=192485 [09:19:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CF 58 07 01 26 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 EE 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0D 35 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 78 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 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 21 00 00 00 F4 03 04 00 0E 57 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EF 02 00 35 04 06 00 17 48 79 AB CC 56 8D EF A3 F1 63 81 DF 1C [09:19:07]CheckFolder [09:19:07]dirname=/storage/ofd_packets [09:19:07]CheckFolder done [09:19:07]ProducePacketName [09:19:07]name=ofd_packets/00192485 [09:19:07]NVStorageSaveData ofd_packets/00192485 [09:19:07]File name is /storage/ofd_packets/00192485 [09:19:07]Write 301 bytes [09:19:07]NVStorageSaveData done [09:19:07]OFDSenderStorePacket done [09:19:07]KKMCreateOFDPacket done [09:19:07]NVStorageSaveData kkm_last_timestamp [09:19:07]File name is /storage/kkm_last_timestamp [09:19:07]Write 4 bytes [09:19:07]NVStorageSaveData done [09:19:07]ExternCall_PrintAddStr [09:19:07]wPrintStart [09:19:07]Write to MH i2c: 01 00 00 0F 26 35 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 07 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 07 00 0F 26 00 00 00 00 00 FF 0F 4A [09:19:07]RasterBufferAndPrint [09:19:07]line Счет N : (1)31800 [09:19:07]line ИНН: 02508201610067 [09:19:07]line Контрольно-Кассовый Чек [09:19:07]line ПРОДАЖА [09:19:07]line ТРК (МРК, ГНК) : 12 [09:19:07]line Товар: 2710124130 [09:19:07]line Аи-92-К-5 [09:19:07]line 2.030 * 66.90 [09:19:07]line = 135.81 [09:19:07]line НДС 12% НСП 1% [09:19:07]line > о реализуемом товаре [09:19:07]line ОКРУГЛЕНИЕ: -0.81 [09:19:07]line ИТОГО: 135.00 [09:19:07]line Внесено: 140.00 [09:19:07]line СДАЧА: 5.00 [09:19:07]line НСП 1% : 1.20 [09:19:07]line НДС 12% : 14.42 [09:19:07]line Наличными: 135.00 [09:19:07]line Безнал.: 0.00 [09:19:07]line Место: АЗС № 170 "Партнер Нефть" [09:19:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:19:07]line СНО: Общий режим [09:19:07]line Чек 33 28.10.2024 09:19 [09:19:07]line Смена: 543 ФФД: 1.0 [09:19:07]line ЗНМ: 0300000110 [09:19:07]line РНМ: 0000000000091776 [09:19:07]line Версия ККМ: 001 [09:19:07]line ФМ: 0000000000871754 [09:19:07]line ФД: 192485 [09:19:07]line ФПД: 25600046386262 [09:19:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091910&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192485&fm=25600046386262&tin=02508201610067®Number=0000000000091776&sum=13500 [09:19:07]OFD Sender: Processing packet 192485 [packets to send 75, broken 74] [09:19:07]ProducePacketName [09:19:07]name=ofd_packets/00192485 [09:19:07]OFD Sender: To server: pG, [09:19:07]CommunicateWithHost lk.salyk.kg:30040 [09:19:07]ConnectInit lk.salyk.kg [09:19:07]written 0, free lines is 4095 [09:19:07]Connected sock=11 [09:19:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CF 58 07 01 26 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 EE 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0D 35 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 78 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 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 21 00 00 00 F4 03 04 00 0E 57 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EF 02 00 35 04 06 00 17 48 79 AB CC 56 8D EF A3 F1 63 81 DF 1C [09:19:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5F B0 47 00 99 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EF 02 00 F4 03 04 00 D2 FB 1E 67 B6 04 01 00 00 DC 9F 77 A0 4C 3D 6C 61 [09:19:08]CommunicateWithHost err = 0 [09:19:08]CheckOFDResponse [09:19:08]1017 (14) - 77093643461234 [09:19:08]1041 (16) - 0000000000871754 [09:19:08]1040 (4) - 192485 [09:19:08]1012 (4) - 28.10.2024 02:49 [09:19:08]1206 (1) - 0 [09:19:08]OFD Sender: Remove packet 192485 [09:19:08]ProducePacketName [09:19:08]name=ofd_packets/00192485 [09:19:08]NVStorageDeleteData [09:19:08]Write to MH i2c: 01 00 00 3A 26 60 [09:19:08]Write i2c OK [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: 01 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: 01 07 00 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: 01 07 00 3A 26 00 00 00 00 00 9B 0C 0E [09:19:08]RasterBufferAndPrint [09:19:08]line [09:19:08]line [09:19:08]line [09:19:08]line [09:19:08]line [09:19:08]written 0, free lines is 3232 [09:19:08]MH_Cut [09:19:08]Write to MH i2c: D1 01 00 41 26 01 39 [09:19:08]Write i2c OK [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: D1 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: D1 01 00 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: D1 01 00 41 26 00 38 [09:19:08]Write to MH i2c: 01 00 00 42 26 68 [09:19:08]Write i2c OK [09:19:08]MH_I2C_Read... [09:19:08]OFD Sender: No OFD packet to send [09:19:09]*** Cut start [09:19:09]*** Partial cut [09:19:09]*** CUTSNS_PIN = 1 [09:19:09]*** CUTSNS_PIN = 0 [09:19:09]*** Brake cut motor [09:19:09]Read from MH i2c: 01 [09:19:09]MH_I2C_Read... [09:19:09]*** Stop cut motor [09:19:09]*** Cut end [09:19:09]Read from MH i2c: 01 07 00 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: 01 07 00 42 26 00 00 00 00 00 FF 0F 7D [09:19:09]process_action close_receipt done [09:19:09]requested_data is exist [09:19:09]produce_requested_data [09:19:09]requested_item fm.sn is exist - process it [09:19:09]wFMCommunicate request_size=4 [09:19:09]MH_SAM_APDU [09:19:09]CAPDU: 80 11 00 00 [09:19:09]Write to MH i2c: E2 08 00 43 26 80 11 00 00 00 00 00 00 E3 [09:19:09]Write i2c OK [09:19:09]MH_I2C_Read... [09:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:09]Read from MH i2c: E2 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: E2 17 00 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: E2 17 00 43 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 36 [09:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:19:09]wFMCommunicate OK [09:19:09]requested_item fd.num is exist - process it [09:19:09]SAM_PROTO_GetFieldsCounters [09:19:09]wFMCommunicate request_size=4 [09:19:09]MH_SAM_APDU [09:19:09]CAPDU: 80 13 00 00 [09:19:09]Write to MH i2c: E2 08 00 44 26 80 13 00 00 00 00 00 00 E6 [09:19:09]Write i2c OK [09:19:09]MH_I2C_Read... [09:19:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:09]Read from MH i2c: E2 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: E2 62 00 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: E2 62 00 44 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E5 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [09:19:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E5 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:09]wFMCommunicate OK [09:19:09]SAM_PROTO_GetFieldsCounters done [09:19:09]requested_item shift.num is exist - process it [09:19:09]requested_item shift.opened is exist - process it [09:19:09]req_shift_opened [09:19:09]FM_GetShiftState [09:19:09]SAM_PROTO_GetShiftState [09:19:09]wFMCommunicate request_size=4 [09:19:09]MH_SAM_APDU [09:19:09]CAPDU: 80 13 01 00 [09:19:09]Write to MH i2c: E2 08 00 45 26 80 13 01 00 00 00 00 00 E8 [09:19:09]Write i2c OK [09:19:09]MH_I2C_Read... [09:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:09]Read from MH i2c: E2 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: E2 0E 00 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: E2 0E 00 45 26 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 38 [09:19:09]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:19:09]wFMCommunicate OK [09:19:09]SAM_PROTO_GetShiftState done [09:19:09]FM_GetShiftState done [09:19:09]req_shift_opened done [09:19:09]requested_item shift.open_date is exist - process it [09:19:09]req_shift_open_date [09:19:09]req_shift_open_date done [09:19:09]produce_requested_data done [09:19:09]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192485,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:19:09]process_action_free close_receipt [09:19:09]json_value_free [09:19:09]json_value_free done [09:19:09]process_json_proto returns [09:19:09]Send response to host [09:19:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192485,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:19:09]free response buf [09:19:09]execute_script done [09:19:09]execute_script returns [09:19:09]free content buf [09:19:09]Sock 9.Close socket [09:19:09]Sock 9.Thread stoped [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]accept exits with 7 [09:19:48]New connection [09:19:48]New thread 3066707300 created [09:19:48]Thread 3066563940 joined [09:19:48]Waiting for new connection... [09:19:48] Sock 7.Parse request [09:19:48]Sock 7.Check first char [09:19:48]Sock 7.First char is OK [09:19:48]request: POST /json_proto HTTP/1.0 [09:19:48]Method: POST [09:19:48]URL: /json_proto [09:19:48]Method is POST - this is cgi request [09:19:48]url: /json_proto [09:19:48]query_string will be loaded in cgi processing [09:19:48]execute_cgi json_proto POST (null) [09:19:48]execute_cgi path=json_proto method=POST [09:19:48]POST find Content-Length [09:19:48]Host: 172.17.63.131:8080 [09:19:48]Content-Length: 677 [09:19:48]Content-Type: application/json [09:19:48] [09:19:48]POST finish read [09:19:48]Found Content-Length = 677 [09:19:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:48]execute_script... [09:19: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)31801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:48]POST & json_proto [09:19:48]process_json_proto [09:19:48]json parsed OK: [09:19:48]protocol is kg_v1.0 [09:19:48]action value=close_receipt [09:19:48]process_action close_receipt [09:19:48]cmd_close_receipt [09:19:48]MH_GetDate [09:19:48]Write to MH i2c: F0 00 00 46 26 5B [09:19:48]Write i2c OK [09:19:48]MH_I2C_Read... [09:19:48]Read from MH i2c: F0 [09:19:48]MH_I2C_Read... [09:19:48]Read from MH i2c: F0 09 00 [09:19:48]MH_I2C_Read... [09:19:48]Read from MH i2c: F0 09 00 46 26 00 38 57 1F 67 22 05 6E 64 72 [09:19:48]GetLastDocTimeStamp 1730107150 [09:19:48]current date 1730107192 [09:19:48]FM_GetShiftState [09:19:48]SAM_PROTO_GetShiftState [09:19:48]wFMCommunicate request_size=4 [09:19:48]MH_SAM_APDU [09:19:48]CAPDU: 80 13 01 00 [09:19:48]Write to MH i2c: E2 08 00 47 26 80 13 01 00 00 00 00 00 EA [09:19:48]Write i2c OK [09:19:48]MH_I2C_Read... [09:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:48]Read from MH i2c: E2 [09:19:48]MH_I2C_Read... [09:19:48]Read from MH i2c: E2 0E 00 [09:19:48]MH_I2C_Read... [09:19:48]Read from MH i2c: E2 0E 00 47 26 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3A [09:19:48]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:19:48]wFMCommunicate OK [09:19:48]SAM_PROTO_GetShiftState done [09:19:48]FM_GetShiftState done [09:19:48]opened in 1730075620 [09:19:48]opened+sec_in_day 1730162020 [09:19:48]quantity*price = 70044 [09:19:48]sum+1 = 70045 [09:19:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 34 28.10.2024 09:19 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192486 ФПД: 28644427378585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091953&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192486&fm=28644427378585&tin=02508201610067®Number=0000000000091776&sum=70000 [09:19:49]StoreToDocumentArchive [09:19:49]shift 543 fd 192486 [09:19:49]save to /storage/0543/doc_00192486 [09:19:49]save last doc name /storage/0543/doc_00192486 to /storage/kkm_last_doc_name [09:19:49]save OK [09:19:49]Clear old archive folders... [09:19:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:49]tlvbuf is 019E4140 [09:19:49]SAM_PROTO_ClearQueue [09:19:49]wFMCommunicate request_size=4 [09:19:49]MH_SAM_APDU [09:19:49]CAPDU: 80 09 00 00 [09:19:49]Write to MH i2c: E2 08 00 54 26 80 09 00 00 00 00 00 00 EC [09:19:49]Write i2c OK [09:19:49]MH_I2C_Read... [09:19:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:49]Read from MH i2c: E2 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 03 00 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 03 00 54 26 00 90 00 EE [09:19:49]RAPDU: 90 00 [09:19:49]wFMCommunicate OK [09:19:49]SAM_PROTO_ClearQueue done [09:19:49]KKMCreateOFDPacket [09:19:49]OFDProtocolAddRootSTLVToBuf [09:19:49]FM_MakeSignedData [09:19:49]FM_MakeSignedData [09:19:49]SAM_PROTO_SignData [09:19:49]wFMCommunicate request_size=4 [09:19:49]MH_SAM_APDU [09:19:49]CAPDU: 80 0D 01 02 [09:19:49]Write to MH i2c: E2 08 00 55 26 80 0D 01 02 00 00 00 00 F4 [09:19:49]Write i2c OK [09:19:49]MH_I2C_Read... [09:19:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:49]Read from MH i2c: E2 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 03 00 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 03 00 55 26 00 90 00 EF [09:19:49]RAPDU: 90 00 [09:19:49]wFMCommunicate OK [09:19:49]wFMCommunicate request_size=255 [09:19:49]MH_SAM_APDU [09:19: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 39 57 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EF 02 00 35 04 06 00 1A [09:19:49]Write to MH i2c: E2 02 01 56 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 39 57 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EF 02 00 35 04 06 00 1A 00 00 E2 [09:19:49]Write i2c OK [09:19:49]MH_I2C_Read... [09:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:50]Read from MH i2c: E2 [09:19:50]MH_I2C_Read... [09:19:50]Read from MH i2c: E2 03 00 [09:19:50]MH_I2C_Read... [09:19:50]Read from MH i2c: E2 03 00 56 26 00 90 00 F0 [09:19:50]RAPDU: 90 00 [09:19:50]wFMCommunicate OK [09:19:50]wFMCommunicate request_size=10 [09:19:50]MH_SAM_APDU [09:19:50]CAPDU: 80 0D 02 02 05 0D 4C EB 2F 99 [09:19:50]Write to MH i2c: E2 0D 00 57 26 80 0D 02 02 05 00 0D 4C EB 2F 99 00 00 0D [09:19:50]Write i2c OK [09:19:50]MH_I2C_Read... [09:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:50]Read from MH i2c: E2 [09:19:50]MH_I2C_Read... [09:19:50]Read from MH i2c: E2 03 00 [09:19:50]MH_I2C_Read... [09:19:50]Read from MH i2c: E2 03 00 57 26 00 90 00 F1 [09:19:50]RAPDU: 90 00 [09:19:50]wFMCommunicate OK [09:19:50]wFMCommunicate request_size=4 [09:19:50]MH_SAM_APDU [09:19:50]CAPDU: 80 0D 03 02 [09:19:50]Write to MH i2c: E2 08 00 58 26 80 0D 03 02 00 00 00 00 F9 [09:19:50]Write i2c OK [09:19:50]MH_I2C_Read... [09:19:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:50]Read from MH i2c: E2 [09:19:50]MH_I2C_Read... [09:19:50]Read from MH i2c: E2 0B 00 [09:19:50]MH_I2C_Read... [09:19:50]Read from MH i2c: E2 0B 00 58 26 00 89 57 42 70 EA C0 16 76 90 00 C2 [09:19:50]RAPDU: 89 57 42 70 EA C0 16 76 90 00 [09:19:50]wFMCommunicate OK [09:19:50]SAM_PROTO_SignData done [09:19:50]FM_MakeSignedData done [09:19:50]CreateOFDProtocolMessage [09:19:50]wFMCommunicate request_size=4 [09:19:50]MH_SAM_APDU [09:19:50]CAPDU: 80 11 00 00 [09:19:50]Write to MH i2c: E2 08 00 59 26 80 11 00 00 00 00 00 00 F9 [09:19:50]Write i2c OK [09:19:50]MH_I2C_Read... [09:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:50]Read from MH i2c: E2 [09:19:50]MH_I2C_Read... [09:19:50]Read from MH i2c: E2 17 00 [09:19:50]MH_I2C_Read... [09:19:50]Read from MH i2c: E2 17 00 59 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [09:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:19:50]wFMCommunicate OK [09:19:50]CreateOFDProtocolMessage done [09:19:50]OFDSenderStorePacket 192486 [09:19:50]StoreOFDPacket docnum=192486 [09:19:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 43 07 01 7E 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 39 57 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EF 02 00 35 04 06 00 1A 0D 4C EB 2F 99 89 57 42 70 EA C0 16 76 [09:19:50]CheckFolder [09:19:50]dirname=/storage/ofd_packets [09:19:50]CheckFolder done [09:19:50]ProducePacketName [09:19:50]name=ofd_packets/00192486 [09:19:50]NVStorageSaveData ofd_packets/00192486 [09:19:50]File name is /storage/ofd_packets/00192486 [09:19:50]Write 301 bytes [09:19:50]NVStorageSaveData done [09:19:50]OFDSenderStorePacket done [09:19:50]KKMCreateOFDPacket done [09:19:50]NVStorageSaveData kkm_last_timestamp [09:19:50]File name is /storage/kkm_last_timestamp [09:19:50]Write 4 bytes [09:19:50]NVStorageSaveData done [09:19:50]ExternCall_PrintAddStr [09:19:50]wPrintStart [09:19:50]Write to MH i2c: 01 00 00 5A 26 80 [09:19:50]Write i2c OK [09:19:50]MH_I2C_Read... [09:19:50]Read from MH i2c: 01 [09:19:50]MH_I2C_Read... [09:19:50]Read from MH i2c: 01 07 00 [09:19:50]MH_I2C_Read... [09:19:50]Read from MH i2c: 01 07 00 5A 26 00 00 00 00 00 FF 0F 95 [09:19:50]RasterBufferAndPrint [09:19:50]line Счет N : (1)31801 [09:19:50]line ИНН: 02508201610067 [09:19:50]line Контрольно-Кассовый Чек [09:19:50]line ПРОДАЖА [09:19:50]line ТРК (МРК, ГНК) : 21 [09:19:50]line Товар: 2710124130 [09:19:50]line Аи-92-К-5 [09:19:50]line 10.470 * 66.90 [09:19:50]line = 700.44 [09:19:50]line НДС 12% НСП 1% [09:19:50]line > о реализуемом товаре [09:19:50]line ОКРУГЛЕНИЕ: -0.44 [09:19:50]line ИТОГО: 700.00 [09:19:50]line Внесено: 700.00 [09:19:50]line СДАЧА: 0.00 [09:19:50]line НСП 1% : 6.20 [09:19:50]line НДС 12% : 74.38 [09:19:50]line Наличными: 700.00 [09:19:50]line Безнал.: 0.00 [09:19:50]line Место: АЗС № 170 "Партнер Нефть" [09:19:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:19:50]line СНО: Общий режим [09:19:50]line Чек 34 28.10.2024 09:19 [09:19:50]line Смена: 543 ФФД: 1.0 [09:19:50]line ЗНМ: 0300000110 [09:19:50]line РНМ: 0000000000091776 [09:19:50]line Версия ККМ: 001 [09:19:50]line ФМ: 0000000000871754 [09:19:50]line ФД: 192486 [09:19:50]line ФПД: 28644427378585 [09:19:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091953&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192486&fm=28644427378585&tin=02508201610067®Number=0000000000091776&sum=70000 [09:19:50]OFD Sender: Processing packet 192486 [packets to send 75, broken 74] [09:19:50]ProducePacketName [09:19:50]name=ofd_packets/00192486 [09:19:50]OFD Sender: To server: pG, [09:19:50]CommunicateWithHost lk.salyk.kg:30040 [09:19:50]ConnectInit lk.salyk.kg [09:19:50]written 0, free lines is 4095 [09:19:50]Connected sock=10 [09:19:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 43 07 01 7E 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 39 57 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EF 02 00 35 04 06 00 1A 0D 4C EB 2F 99 89 57 42 70 EA C0 16 76 [09:19:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 46 FA 47 00 53 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EF 02 00 F4 03 04 00 FD FB 1E 67 B6 04 01 00 00 53 B4 67 9A 59 61 E7 D1 [09:19:50]CommunicateWithHost err = 0 [09:19:50]CheckOFDResponse [09:19:50]1017 (14) - 77093643461234 [09:19:50]1041 (16) - 0000000000871754 [09:19:50]1040 (4) - 192486 [09:19:50]1012 (4) - 28.10.2024 02:50 [09:19:50]1206 (1) - 0 [09:19:50]OFD Sender: Remove packet 192486 [09:19:50]ProducePacketName [09:19:50]name=ofd_packets/00192486 [09:19:50]NVStorageDeleteData [09:19:51]Write to MH i2c: 01 00 00 85 26 AB [09:19:51]Write i2c OK [09:19:51]MH_I2C_Read... [09:19:51]Read from MH i2c: 01 [09:19:51]MH_I2C_Read... [09:19:51]Read from MH i2c: 01 07 00 [09:19:51]MH_I2C_Read... [09:19:51]Read from MH i2c: 01 07 00 85 26 00 00 00 00 00 9F 0C 5D [09:19:51]RasterBufferAndPrint [09:19:51]line [09:19:51]line [09:19:51]line [09:19:51]line [09:19:51]line [09:19:51]written 0, free lines is 3238 [09:19:51]MH_Cut [09:19:51]Write to MH i2c: D1 01 00 8C 26 01 84 [09:19:51]Write i2c OK [09:19:51]MH_I2C_Read... [09:19:51]Read from MH i2c: D1 [09:19:51]MH_I2C_Read... [09:19:51]Read from MH i2c: D1 01 00 [09:19:51]MH_I2C_Read... [09:19:51]Read from MH i2c: D1 01 00 8C 26 00 83 [09:19:51]Write to MH i2c: 01 00 00 8D 26 B3 [09:19:51]Write i2c OK [09:19:51]MH_I2C_Read... [09:19:51]OFD Sender: No OFD packet to send [09:19:51]*** Cut start [09:19:51]*** Partial cut [09:19:51]*** CUTSNS_PIN = 1 [09:19:51]*** CUTSNS_PIN = 0 [09:19:52]*** Brake cut motor [09:19:52]Read from MH i2c: 01 [09:19:52]MH_I2C_Read... [09:19:52]*** Stop cut motor [09:19:52]*** Cut end [09:19:52]Read from MH i2c: 01 07 00 [09:19:52]MH_I2C_Read... [09:19:52]Read from MH i2c: 01 07 00 8D 26 00 00 00 00 00 FF 0F C8 [09:19:52]process_action close_receipt done [09:19:52]requested_data is exist [09:19:52]produce_requested_data [09:19:52]requested_item fm.sn is exist - process it [09:19:52]wFMCommunicate request_size=4 [09:19:52]MH_SAM_APDU [09:19:52]CAPDU: 80 11 00 00 [09:19:52]Write to MH i2c: E2 08 00 8E 26 80 11 00 00 00 00 00 00 2E [09:19:52]Write i2c OK [09:19:52]MH_I2C_Read... [09:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:52]Read from MH i2c: E2 [09:19:52]MH_I2C_Read... [09:19:52]Read from MH i2c: E2 17 00 [09:19:52]MH_I2C_Read... [09:19:52]Read from MH i2c: E2 17 00 8E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 81 [09:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:19:52]wFMCommunicate OK [09:19:52]requested_item fd.num is exist - process it [09:19:52]SAM_PROTO_GetFieldsCounters [09:19:52]wFMCommunicate request_size=4 [09:19:52]MH_SAM_APDU [09:19:52]CAPDU: 80 13 00 00 [09:19:52]Write to MH i2c: E2 08 00 8F 26 80 13 00 00 00 00 00 00 31 [09:19:52]Write i2c OK [09:19:52]MH_I2C_Read... [09:19:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:52]Read from MH i2c: E2 [09:19:52]MH_I2C_Read... [09:19:52]Read from MH i2c: E2 62 00 [09:19:52]MH_I2C_Read... [09:19:52]Read from MH i2c: E2 62 00 8F 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E6 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [09:19:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E6 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:52]wFMCommunicate OK [09:19:52]SAM_PROTO_GetFieldsCounters done [09:19:52]requested_item shift.num is exist - process it [09:19:52]requested_item shift.opened is exist - process it [09:19:52]req_shift_opened [09:19:52]FM_GetShiftState [09:19:52]SAM_PROTO_GetShiftState [09:19:52]wFMCommunicate request_size=4 [09:19:52]MH_SAM_APDU [09:19:52]CAPDU: 80 13 01 00 [09:19:52]Write to MH i2c: E2 08 00 90 26 80 13 01 00 00 00 00 00 33 [09:19:52]Write i2c OK [09:19:52]MH_I2C_Read... [09:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:52]Read from MH i2c: E2 [09:19:52]MH_I2C_Read... [09:19:52]Read from MH i2c: E2 0E 00 [09:19:52]MH_I2C_Read... [09:19:52]Read from MH i2c: E2 0E 00 90 26 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 83 [09:19:52]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:19:52]wFMCommunicate OK [09:19:52]SAM_PROTO_GetShiftState done [09:19:52]FM_GetShiftState done [09:19:52]req_shift_opened done [09:19:52]requested_item shift.open_date is exist - process it [09:19:52]req_shift_open_date [09:19:52]req_shift_open_date done [09:19:52]produce_requested_data done [09:19:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192486,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:19:52]process_action_free close_receipt [09:19:52]json_value_free [09:19:52]json_value_free done [09:19:52]process_json_proto returns [09:19:52]Send response to host [09:19:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192486,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:19:52]free response buf [09:19:52]execute_script done [09:19:52]execute_script returns [09:19:52]free content buf [09:19:52]Sock 7.Close socket [09:19:52]Sock 7.Thread stoped [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:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:53]accept exits with 9 [09:22:53]New connection [09:22:53]New thread 3066563940 created [09:22:53]Thread 3066707300 joined [09:22:53]Waiting for new connection... [09:22:53] Sock 9.Parse request [09:22:53]Sock 9.Check first char [09:22:53]Sock 9.First char is OK [09:22:53]request: POST /json_proto HTTP/1.0 [09:22:53]Method: POST [09:22:53]URL: /json_proto [09:22:53]Method is POST - this is cgi request [09:22:53]url: /json_proto [09:22:53]query_string will be loaded in cgi processing [09:22:53]execute_cgi json_proto POST (null) [09:22:53]execute_cgi path=json_proto method=POST [09:22:53]POST find Content-Length [09:22:53]Host: 172.17.63.131:8080 [09:22:53]Content-Length: 676 [09:22:53]Content-Type: application/json [09:22:53] [09:22:53]POST finish read [09:22:53]Found Content-Length = 676 [09:22:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:53]execute_script... [09:22: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)31802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:53]POST & json_proto [09:22:53]process_json_proto [09:22:53]json parsed OK: [09:22:53]protocol is kg_v1.0 [09:22:53]action value=close_receipt [09:22:53]process_action close_receipt [09:22:53]cmd_close_receipt [09:22:53]MH_GetDate [09:22:53]Write to MH i2c: F0 00 00 91 26 A6 [09:22:53]Write i2c OK [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: F0 [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: F0 09 00 [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: F0 09 00 91 26 00 F2 57 1F 67 22 05 6E 64 77 [09:22:53]GetLastDocTimeStamp 1730107193 [09:22:53]current date 1730107378 [09:22:53]FM_GetShiftState [09:22:53]SAM_PROTO_GetShiftState [09:22:53]wFMCommunicate request_size=4 [09:22:53]MH_SAM_APDU [09:22:53]CAPDU: 80 13 01 00 [09:22:53]Write to MH i2c: E2 08 00 92 26 80 13 01 00 00 00 00 00 35 [09:22:53]Write i2c OK [09:22:53]MH_I2C_Read... [09:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:53]Read from MH i2c: E2 [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: E2 0E 00 [09:22:53]MH_I2C_Read... [09:22:53]Read from MH i2c: E2 0E 00 92 26 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 85 [09:22:53]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:22:53]wFMCommunicate OK [09:22:53]SAM_PROTO_GetShiftState done [09:22:53]FM_GetShiftState done [09:22:53]opened in 1730075620 [09:22:53]opened+sec_in_day 1730162020 [09:22:53]quantity*price = 30038 [09:22:53]sum+1 = 30039 [09:22:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 35 28.10.2024 09:22 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192487 ФПД: 60534850943488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092258&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192487&fm=60534850943488&tin=02508201610067®Number=0000000000091776&sum=30000 [09:22:55]StoreToDocumentArchive [09:22:55]shift 543 fd 192487 [09:22:55]save to /storage/0543/doc_00192487 [09:22:55]save last doc name /storage/0543/doc_00192487 to /storage/kkm_last_doc_name [09:22:55]save OK [09:22:55]Clear old archive folders... [09:22:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:55]tlvbuf is 019EE450 [09:22:55]SAM_PROTO_ClearQueue [09:22:55]wFMCommunicate request_size=4 [09:22:55]MH_SAM_APDU [09:22:55]CAPDU: 80 09 00 00 [09:22:55]Write to MH i2c: E2 08 00 9F 26 80 09 00 00 00 00 00 00 37 [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:55]Read from MH i2c: E2 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 03 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 03 00 9F 26 00 90 00 39 [09:22:55]RAPDU: 90 00 [09:22:55]wFMCommunicate OK [09:22:55]SAM_PROTO_ClearQueue done [09:22:55]KKMCreateOFDPacket [09:22:55]OFDProtocolAddRootSTLVToBuf [09:22:55]FM_MakeSignedData [09:22:55]FM_MakeSignedData [09:22:55]SAM_PROTO_SignData [09:22:55]wFMCommunicate request_size=4 [09:22:55]MH_SAM_APDU [09:22:55]CAPDU: 80 0D 01 02 [09:22:55]Write to MH i2c: E2 08 00 A0 26 80 0D 01 02 00 00 00 00 3F [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:55]Read from MH i2c: E2 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 03 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 03 00 A0 26 00 90 00 3A [09:22:55]RAPDU: 90 00 [09:22:55]wFMCommunicate OK [09:22:55]wFMCommunicate request_size=255 [09:22:55]MH_SAM_APDU [09:22:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F2 57 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EF 02 00 35 04 06 00 37 [09:22:55]Write to MH i2c: E2 02 01 A1 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F2 57 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EF 02 00 35 04 06 00 37 00 00 E9 [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:55]Read from MH i2c: E2 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 03 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 03 00 A1 26 00 90 00 3B [09:22:55]RAPDU: 90 00 [09:22:55]wFMCommunicate OK [09:22:55]wFMCommunicate request_size=10 [09:22:55]MH_SAM_APDU [09:22:55]CAPDU: 80 0D 02 02 05 0E 5E 49 7A 00 [09:22:55]Write to MH i2c: E2 0D 00 A2 26 80 0D 02 02 05 00 0E 5E 49 7A 00 00 00 7B [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:55]Read from MH i2c: E2 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 03 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 03 00 A2 26 00 90 00 3C [09:22:55]RAPDU: 90 00 [09:22:55]wFMCommunicate OK [09:22:55]wFMCommunicate request_size=4 [09:22:55]MH_SAM_APDU [09:22:55]CAPDU: 80 0D 03 02 [09:22:55]Write to MH i2c: E2 08 00 A3 26 80 0D 03 02 00 00 00 00 44 [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:55]Read from MH i2c: E2 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 0B 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 0B 00 A3 26 00 A1 CC 13 6C AC F2 02 3E 90 00 0F [09:22:55]RAPDU: A1 CC 13 6C AC F2 02 3E 90 00 [09:22:55]wFMCommunicate OK [09:22:55]SAM_PROTO_SignData done [09:22:55]FM_MakeSignedData done [09:22:55]CreateOFDProtocolMessage [09:22:55]wFMCommunicate request_size=4 [09:22:55]MH_SAM_APDU [09:22:55]CAPDU: 80 11 00 00 [09:22:55]Write to MH i2c: E2 08 00 A4 26 80 11 00 00 00 00 00 00 44 [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:55]Read from MH i2c: E2 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 17 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: E2 17 00 A4 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [09:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:22:55]wFMCommunicate OK [09:22:55]CreateOFDProtocolMessage done [09:22:55]OFDSenderStorePacket 192487 [09:22:55]StoreOFDPacket docnum=192487 [09:22:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CB 4E 07 01 7A EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F2 57 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EF 02 00 35 04 06 00 37 0E 5E 49 7A 00 A1 CC 13 6C AC F2 02 3E [09:22:55]CheckFolder [09:22:55]dirname=/storage/ofd_packets [09:22:55]CheckFolder done [09:22:55]ProducePacketName [09:22:55]name=ofd_packets/00192487 [09:22:55]NVStorageSaveData ofd_packets/00192487 [09:22:55]File name is /storage/ofd_packets/00192487 [09:22:55]Write 301 bytes [09:22:55]NVStorageSaveData done [09:22:55]OFDSenderStorePacket done [09:22:55]KKMCreateOFDPacket done [09:22:55]NVStorageSaveData kkm_last_timestamp [09:22:55]File name is /storage/kkm_last_timestamp [09:22:55]Write 4 bytes [09:22:55]NVStorageSaveData done [09:22:55]ExternCall_PrintAddStr [09:22:55]wPrintStart [09:22:55]Write to MH i2c: 01 00 00 A5 26 CB [09:22:55]Write i2c OK [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: 01 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: 01 07 00 [09:22:55]MH_I2C_Read... [09:22:55]Read from MH i2c: 01 07 00 A5 26 00 00 00 00 00 FF 0F E0 [09:22:55]RasterBufferAndPrint [09:22:55]line Счет N : (1)31802 [09:22:55]line ИНН: 02508201610067 [09:22:55]line Контрольно-Кассовый Чек [09:22:55]line ПРОДАЖА [09:22:55]line ТРК (МРК, ГНК) : 21 [09:22:55]line Товар: 2710124130 [09:22:55]line Аи-92-К-5 [09:22:55]line 4.490 * 66.90 [09:22:55]line = 300.38 [09:22:55]line НДС 12% НСП 1% [09:22:55]line > о реализуемом товаре [09:22:55]line ОКРУГЛЕНИЕ: -0.38 [09:22:55]line ИТОГО: 300.00 [09:22:55]line Внесено: 300.00 [09:22:55]line СДАЧА: 0.00 [09:22:55]line НСП 1% : 2.66 [09:22:55]line НДС 12% : 31.90 [09:22:55]line Наличными: 300.00 [09:22:55]line Безнал.: 0.00 [09:22:55]line Место: АЗС № 170 "Партнер Нефть" [09:22:55]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:22:55]line СНО: Общий режим [09:22:55]line Чек 35 28.10.2024 09:22 [09:22:55]line Смена: 543 ФФД: 1.0 [09:22:55]line ЗНМ: 0300000110 [09:22:55]line РНМ: 0000000000091776 [09:22:55]line Версия ККМ: 001 [09:22:55]line ФМ: 0000000000871754 [09:22:55]line ФД: 192487 [09:22:55]line ФПД: 60534850943488 [09:22:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092258&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192487&fm=60534850943488&tin=02508201610067®Number=0000000000091776&sum=30000 [09:22:55]OFD Sender: Processing packet 192487 [packets to send 75, broken 74] [09:22:55]ProducePacketName [09:22:55]name=ofd_packets/00192487 [09:22:55]OFD Sender: To server: pG, [09:22:55]CommunicateWithHost lk.salyk.kg:30040 [09:22:55]ConnectInit lk.salyk.kg [09:22:55]written 0, free lines is 4095 [09:22:56]Connected sock=11 [09:22:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CB 4E 07 01 7A EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 F2 57 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EF 02 00 35 04 06 00 37 0E 5E 49 7A 00 A1 CC 13 6C AC F2 02 3E [09:22:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B4 6B 47 00 E6 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EF 02 00 F4 03 04 00 B7 FC 1E 67 B6 04 01 00 00 F0 0D 18 41 8E C5 4D 12 [09:22:56]CommunicateWithHost err = 0 [09:22:56]CheckOFDResponse [09:22:56]1017 (14) - 77093643461234 [09:22:56]1041 (16) - 0000000000871754 [09:22:56]1040 (4) - 192487 [09:22:56]1012 (4) - 28.10.2024 02:53 [09:22:56]1206 (1) - 0 [09:22:56]OFD Sender: Remove packet 192487 [09:22:56]ProducePacketName [09:22:56]name=ofd_packets/00192487 [09:22:56]NVStorageDeleteData [09:22:56]Write to MH i2c: 01 00 00 D0 26 F6 [09:22:56]Write i2c OK [09:22:56]MH_I2C_Read... [09:22:56]Read from MH i2c: 01 [09:22:56]MH_I2C_Read... [09:22:56]Read from MH i2c: 01 07 00 [09:22:56]MH_I2C_Read... [09:22:56]Read from MH i2c: 01 07 00 D0 26 00 00 00 00 00 A1 0C AA [09:22:56]RasterBufferAndPrint [09:22:56]line [09:22:56]line [09:22:56]line [09:22:56]line [09:22:56]line [09:22:56]written 0, free lines is 3238 [09:22:56]MH_Cut [09:22:56]Write to MH i2c: D1 01 00 D7 26 01 CF [09:22:56]Write i2c OK [09:22:56]MH_I2C_Read... [09:22:56]Read from MH i2c: D1 [09:22:56]MH_I2C_Read... [09:22:56]Read from MH i2c: D1 01 00 [09:22:56]MH_I2C_Read... [09:22:56]Read from MH i2c: D1 01 00 D7 26 00 CE [09:22:56]Write to MH i2c: 01 00 00 D8 26 FE [09:22:56]Write i2c OK [09:22:56]MH_I2C_Read... [09:22:56]OFD Sender: No OFD packet to send [09:22:57]*** Cut start [09:22:57]*** Partial cut [09:22:57]*** CUTSNS_PIN = 1 [09:22:57]*** CUTSNS_PIN = 0 [09:22:57]*** Brake cut motor [09:22:57]Read from MH i2c: 01 [09:22:57]MH_I2C_Read... [09:22:57]*** Stop cut motor [09:22:57]*** Cut end [09:22:57]Read from MH i2c: 01 07 00 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: 01 07 00 D8 26 00 00 00 00 00 FF 0F 13 [09:22:57]process_action close_receipt done [09:22:57]requested_data is exist [09:22:57]produce_requested_data [09:22:57]requested_item fm.sn is exist - process it [09:22:57]wFMCommunicate request_size=4 [09:22:57]MH_SAM_APDU [09:22:57]CAPDU: 80 11 00 00 [09:22:57]Write to MH i2c: E2 08 00 D9 26 80 11 00 00 00 00 00 00 79 [09:22:57]Write i2c OK [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: E2 [09:22:57]MH_I2C_Read... [09:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:57]Read from MH i2c: E2 17 00 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: E2 17 00 D9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CC [09:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:22:57]wFMCommunicate OK [09:22:57]requested_item fd.num is exist - process it [09:22:57]SAM_PROTO_GetFieldsCounters [09:22:57]wFMCommunicate request_size=4 [09:22:57]MH_SAM_APDU [09:22:57]CAPDU: 80 13 00 00 [09:22:57]Write to MH i2c: E2 08 00 DA 26 80 13 00 00 00 00 00 00 7C [09:22:57]Write i2c OK [09:22:57]MH_I2C_Read... [09:22:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:58]Read from MH i2c: E2 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 62 00 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 62 00 DA 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E7 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [09:22:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E7 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:58]wFMCommunicate OK [09:22:58]SAM_PROTO_GetFieldsCounters done [09:22:58]requested_item shift.num is exist - process it [09:22:58]requested_item shift.opened is exist - process it [09:22:58]req_shift_opened [09:22:58]FM_GetShiftState [09:22:58]SAM_PROTO_GetShiftState [09:22:58]wFMCommunicate request_size=4 [09:22:58]MH_SAM_APDU [09:22:58]CAPDU: 80 13 01 00 [09:22:58]Write to MH i2c: E2 08 00 DB 26 80 13 01 00 00 00 00 00 7E [09:22:58]Write i2c OK [09:22:58]MH_I2C_Read... [09:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:58]Read from MH i2c: E2 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 0E 00 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 0E 00 DB 26 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CE [09:22:58]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:22:58]wFMCommunicate OK [09:22:58]SAM_PROTO_GetShiftState done [09:22:58]FM_GetShiftState done [09:22:58]req_shift_opened done [09:22:58]requested_item shift.open_date is exist - process it [09:22:58]req_shift_open_date [09:22:58]req_shift_open_date done [09:22:58]produce_requested_data done [09:22:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192487,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:22:58]process_action_free close_receipt [09:22:58]json_value_free [09:22:58]json_value_free done [09:22:58]process_json_proto returns [09:22:58]Send response to host [09:22:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192487,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:22:58]free response buf [09:22:58]execute_script done [09:22:58]execute_script returns [09:22:58]free content buf [09:22:58]Sock 9.Close socket [09:22:58]Sock 9.Thread stoped [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]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:39]accept exits with 7 [09:31:39]New connection [09:31:39]New thread 3066707300 created [09:31:39]Thread 3066563940 joined [09:31:39]Waiting for new connection... [09:31:39] Sock 7.Parse request [09:31:39]Sock 7.Check first char [09:31:39]Sock 7.First char is OK [09:31:39]request: POST /json_proto HTTP/1.0 [09:31:39]Method: POST [09:31:39]URL: /json_proto [09:31:39]Method is POST - this is cgi request [09:31:39]url: /json_proto [09:31:39]query_string will be loaded in cgi processing [09:31:39]execute_cgi json_proto POST (null) [09:31:39]execute_cgi path=json_proto method=POST [09:31:39]POST find Content-Length [09:31:39]Host: 172.17.63.131:8080 [09:31:39]Content-Length: 977 [09:31:39]Content-Type: application/json [09:31:39] [09:31:39]POST finish read [09:31:39]Found Content-Length = 977 [09:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "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 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:39]execute_script... [09:31:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "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 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:39]POST & json_proto [09:31:39]process_json_proto [09:31:39]json parsed OK: [09:31:39]protocol is kg_v1.0 [09:31:39]action value=close_receipt [09:31:39]process_action close_receipt [09:31:39]cmd_close_receipt [09:31:39]MH_GetDate [09:31:39]Write to MH i2c: F0 00 00 DC 26 F1 [09:31:39]Write i2c OK [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: F0 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: F0 09 00 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: F0 09 00 DC 26 00 00 5A 1F 67 22 05 6E 64 D3 [09:31:39]GetLastDocTimeStamp 1730107378 [09:31:39]current date 1730107904 [09:31:39]FM_GetShiftState [09:31:39]SAM_PROTO_GetShiftState [09:31:39]wFMCommunicate request_size=4 [09:31:39]MH_SAM_APDU [09:31:39]CAPDU: 80 13 01 00 [09:31:39]Write to MH i2c: E2 08 00 DD 26 80 13 01 00 00 00 00 00 80 [09:31:39]Write i2c OK [09:31:39]MH_I2C_Read... [09:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:39]Read from MH i2c: E2 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 0E 00 [09:31:39]MH_I2C_Read... [09:31:39]Read from MH i2c: E2 0E 00 DD 26 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D0 [09:31:39]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:31:39]wFMCommunicate OK [09:31:39]SAM_PROTO_GetShiftState done [09:31:39]FM_GetShiftState done [09:31:39]opened in 1730075620 [09:31:39]opened+sec_in_day 1730162020 [09:31:39]quantity*price = 450072 [09:31:39]sum+1 = 450073 [09:31:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.95 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 36 28.10.2024 09:31 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа ДТ номер 170 сэкономлено 59.85 сом ФМ: 0000000000871754 ФД: 192488 ФПД: 275475331857137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093144&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192488&fm=275475331857137&tin=02508201610067®Number=0000000000091776&sum=450000 [09:31:40]StoreToDocumentArchive [09:31:40]shift 543 fd 192488 [09:31:40]save to /storage/0543/doc_00192488 [09:31:40]save last doc name /storage/0543/doc_00192488 to /storage/kkm_last_doc_name [09:31:40]save OK [09:31:40]Clear old archive folders... [09:31:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:31:40]tlvbuf is 0197B480 [09:31:40]SAM_PROTO_ClearQueue [09:31:40]wFMCommunicate request_size=4 [09:31:40]MH_SAM_APDU [09:31:40]CAPDU: 80 09 00 00 [09:31:40]Write to MH i2c: E2 08 00 EA 26 80 09 00 00 00 00 00 00 82 [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:40]Read from MH i2c: E2 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: E2 03 00 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: E2 03 00 EA 26 00 90 00 84 [09:31:40]RAPDU: 90 00 [09:31:40]wFMCommunicate OK [09:31:40]SAM_PROTO_ClearQueue done [09:31:40]KKMCreateOFDPacket [09:31:40]OFDProtocolAddRootSTLVToBuf [09:31:40]FM_MakeSignedData [09:31:40]FM_MakeSignedData [09:31:40]SAM_PROTO_SignData [09:31:40]wFMCommunicate request_size=4 [09:31:40]MH_SAM_APDU [09:31:40]CAPDU: 80 0D 01 02 [09:31:40]Write to MH i2c: E2 08 00 EB 26 80 0D 01 02 00 00 00 00 8A [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:40]Read from MH i2c: E2 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: E2 03 00 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: E2 03 00 EB 26 00 90 00 85 [09:31:40]RAPDU: 90 00 [09:31:40]wFMCommunicate OK [09:31:40]wFMCommunicate request_size=255 [09:31:40]MH_SAM_APDU [09:31:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 00 5A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EF 02 00 35 04 06 00 FA 8B 19 4C [09:31:40]Write to MH i2c: E2 02 01 EC 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 00 5A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EF 02 00 35 04 06 00 FA 8B 19 4C 00 00 71 [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:41]Read from MH i2c: E2 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 03 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 03 00 EC 26 00 90 00 86 [09:31:41]RAPDU: 90 00 [09:31:41]wFMCommunicate OK [09:31:41]wFMCommunicate request_size=7 [09:31:41]MH_SAM_APDU [09:31:41]CAPDU: 80 0D 02 02 02 BA F1 [09:31:41]Write to MH i2c: E2 0A 00 ED 26 80 0D 02 02 02 00 BA F1 00 00 3C [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:41]Read from MH i2c: E2 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 03 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 03 00 ED 26 00 90 00 87 [09:31:41]RAPDU: 90 00 [09:31:41]wFMCommunicate OK [09:31:41]wFMCommunicate request_size=4 [09:31:41]MH_SAM_APDU [09:31:41]CAPDU: 80 0D 03 02 [09:31:41]Write to MH i2c: E2 08 00 EE 26 80 0D 03 02 00 00 00 00 8F [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:41]Read from MH i2c: E2 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 0B 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 0B 00 EE 26 00 C9 B8 30 B6 55 5D 35 96 90 00 74 [09:31:41]RAPDU: C9 B8 30 B6 55 5D 35 96 90 00 [09:31:41]wFMCommunicate OK [09:31:41]SAM_PROTO_SignData done [09:31:41]FM_MakeSignedData done [09:31:41]CreateOFDProtocolMessage [09:31:41]wFMCommunicate request_size=4 [09:31:41]MH_SAM_APDU [09:31:41]CAPDU: 80 11 00 00 [09:31:41]Write to MH i2c: E2 08 00 EF 26 80 11 00 00 00 00 00 00 8F [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:41]Read from MH i2c: E2 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 17 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: E2 17 00 EF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E2 [09:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:31:41]wFMCommunicate OK [09:31:41]CreateOFDProtocolMessage done [09:31:41]OFDSenderStorePacket 192488 [09:31:41]StoreOFDPacket docnum=192488 [09:31:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 EE 5E 04 01 7B AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 00 5A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EF 02 00 35 04 06 00 FA 8B 19 4C BA F1 C9 B8 30 B6 55 5D 35 96 [09:31:41]CheckFolder [09:31:41]dirname=/storage/ofd_packets [09:31:41]CheckFolder done [09:31:41]ProducePacketName [09:31:41]name=ofd_packets/00192488 [09:31:41]NVStorageSaveData ofd_packets/00192488 [09:31:41]File name is /storage/ofd_packets/00192488 [09:31:41]Write 298 bytes [09:31:41]NVStorageSaveData done [09:31:41]OFDSenderStorePacket done [09:31:41]KKMCreateOFDPacket done [09:31:41]NVStorageSaveData kkm_last_timestamp [09:31:41]File name is /storage/kkm_last_timestamp [09:31:41]Write 4 bytes [09:31:41]NVStorageSaveData done [09:31:41]ExternCall_PrintAddStr [09:31:41]wPrintStart [09:31:41]Write to MH i2c: 01 00 00 F0 26 16 [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: 01 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: 01 07 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: 01 07 00 F0 26 00 00 00 00 00 FF 0F 2B [09:31:41]RasterBufferAndPrint [09:31:41]line Счет N : (1)31803 [09:31:41]line ИНН: 02508201610067 [09:31:41]line Контрольно-Кассовый Чек [09:31:41]line ПРОДАЖА [09:31:41]line ТРК (МРК, ГНК) : 11 [09:31:41]line Товар: 2710194210 [09:31:41]line ДТ-К-5 [09:31:41]line 59.850 * 75.20 [09:31:41]line = 4500.72 [09:31:41]line НДС 12% НСП 1% [09:31:41]line > о реализуемом товаре [09:31:41]line ОКРУГЛЕНИЕ: -0.72 [09:31:41]line ИТОГО: 4500.00 [09:31:41]line Внесено: 4500.00 [09:31:41]line СДАЧА: 0.00 [09:31:41]line НСП 1% : 39.83 [09:31:41]line НДС 12% : 477.95 [09:31:41]line Наличными: 4500.00 [09:31:41]line Безнал.: 0.00 [09:31:41]line Место: АЗС № 170 "Партнер Нефть" [09:31:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:31:41]line СНО: Общий режим [09:31:41]line Чек 36 28.10.2024 09:31 [09:31:41]line Смена: 543 ФФД: 1.0 [09:31:41]line ЗНМ: 0300000110 [09:31:41]line РНМ: 0000000000091776 [09:31:41]line Версия ККМ: 001 [09:31:41]line [09:31:41]line Дисконтная программа [09:31:41]line ДТ [09:31:41]line номер 170 [09:31:41]line сэкономлено 59.85 сом [09:31:41]line ФМ: 0000000000871754 [09:31:41]line ФД: 192488 [09:31:41]line ФПД: 275475331857137 [09:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093144&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192488&fm=275475331857137&tin=02508201610067®Number=0000000000091776&sum=450000 [09:31:41]OFD Sender: Processing packet 192488 [packets to send 75, broken 74] [09:31:41]ProducePacketName [09:31:41]name=ofd_packets/00192488 [09:31:41]OFD Sender: To server: pG, [09:31:41]CommunicateWithHost lk.salyk.kg:30040 [09:31:41]ConnectInit lk.salyk.kg [09:31:41]written 0, free lines is 4095 [09:31:41]Connected sock=10 [09:31:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 EE 5E 04 01 7B AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 00 5A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EF 02 00 35 04 06 00 FA 8B 19 4C BA F1 C9 B8 30 B6 55 5D 35 96 [09:31:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EB 76 47 00 5C 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EF 02 00 F4 03 04 00 C4 FE 1E 67 B6 04 01 00 00 93 28 9B 1D 9C 9D CE 66 [09:31:41]CommunicateWithHost err = 0 [09:31:41]CheckOFDResponse [09:31:41]1017 (14) - 77093643461234 [09:31:41]1041 (16) - 0000000000871754 [09:31:41]1040 (4) - 192488 [09:31:41]1012 (4) - 28.10.2024 03:02 [09:31:41]1206 (1) - 0 [09:31:41]OFD Sender: Remove packet 192488 [09:31:41]ProducePacketName [09:31:41]name=ofd_packets/00192488 [09:31:41]NVStorageDeleteData [09:31:42]Write to MH i2c: 01 00 00 20 27 47 [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: 01 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: 01 07 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: 01 07 00 20 27 00 00 00 00 00 56 0C B0 [09:31:42]RasterBufferAndPrint [09:31:42]line [09:31:42]line [09:31:42]line [09:31:42]line [09:31:42]line [09:31:42]written 0, free lines is 3164 [09:31:42]MH_Cut [09:31:42]Write to MH i2c: D1 01 00 27 27 01 20 [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: D1 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: D1 01 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: D1 01 00 27 27 00 1F [09:31:42]Write to MH i2c: 01 00 00 28 27 4F [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]OFD Sender: No OFD packet to send [09:31:43]*** Cut start [09:31:43]*** Partial cut [09:31:43]*** CUTSNS_PIN = 1 [09:31:43]*** CUTSNS_PIN = 0 [09:31:43]*** Brake cut motor [09:31:43]Read from MH i2c: 01 [09:31:43]MH_I2C_Read... [09:31:43]*** Stop cut motor [09:31:43]*** Cut end [09:31:43]Read from MH i2c: 01 07 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: 01 07 00 28 27 00 00 00 00 00 FF 0F 64 [09:31:43]process_action close_receipt done [09:31:43]requested_data is exist [09:31:43]produce_requested_data [09:31:43]requested_item fm.sn is exist - process it [09:31:43]wFMCommunicate request_size=4 [09:31:43]MH_SAM_APDU [09:31:43]CAPDU: 80 11 00 00 [09:31:43]Write to MH i2c: E2 08 00 29 27 80 11 00 00 00 00 00 00 CA [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:43]Read from MH i2c: E2 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: E2 17 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: E2 17 00 29 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1D [09:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:31:43]wFMCommunicate OK [09:31:43]requested_item fd.num is exist - process it [09:31:43]SAM_PROTO_GetFieldsCounters [09:31:43]wFMCommunicate request_size=4 [09:31:43]MH_SAM_APDU [09:31:43]CAPDU: 80 13 00 00 [09:31:43]Write to MH i2c: E2 08 00 2A 27 80 13 00 00 00 00 00 00 CD [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:43]Read from MH i2c: E2 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: E2 62 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: E2 62 00 2A 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E8 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [09:31:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E8 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:43]wFMCommunicate OK [09:31:43]SAM_PROTO_GetFieldsCounters done [09:31:43]requested_item shift.num is exist - process it [09:31:43]requested_item shift.opened is exist - process it [09:31:43]req_shift_opened [09:31:43]FM_GetShiftState [09:31:43]SAM_PROTO_GetShiftState [09:31:43]wFMCommunicate request_size=4 [09:31:43]MH_SAM_APDU [09:31:43]CAPDU: 80 13 01 00 [09:31:43]Write to MH i2c: E2 08 00 2B 27 80 13 01 00 00 00 00 00 CF [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:43]Read from MH i2c: E2 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: E2 0E 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: E2 0E 00 2B 27 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1F [09:31:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:31:43]wFMCommunicate OK [09:31:43]SAM_PROTO_GetShiftState done [09:31:43]FM_GetShiftState done [09:31:43]req_shift_opened done [09:31:43]requested_item shift.open_date is exist - process it [09:31:43]req_shift_open_date [09:31:43]req_shift_open_date done [09:31:43]produce_requested_data done [09:31:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192488,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:31:43]process_action_free close_receipt [09:31:43]json_value_free [09:31:43]json_value_free done [09:31:43]process_json_proto returns [09:31:43]Send response to host [09:31:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192488,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:31:43]free response buf [09:31:43]execute_script done [09:31:43]execute_script returns [09:31:43]free content buf [09:31:43]Sock 7.Close socket [09:31:43]Sock 7.Thread stoped [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:35:59]accept exits with 9 [09:35:59]New connection [09:35:59]New thread 3066563940 created [09:35:59]Thread 3066707300 joined [09:35:59]Waiting for new connection... [09:35:59] Sock 9.Parse request [09:35:59]Sock 9.Check first char [09:35:59]Sock 9.First char is OK [09:35:59]request: POST /json_proto HTTP/1.0 [09:35:59]Method: POST [09:35:59]URL: /json_proto [09:35:59]Method is POST - this is cgi request [09:35:59]url: /json_proto [09:35:59]query_string will be loaded in cgi processing [09:35:59]execute_cgi json_proto POST (null) [09:35:59]execute_cgi path=json_proto method=POST [09:35:59]POST find Content-Length [09:35:59]Host: 172.17.63.131:8080 [09:35:59]Content-Length: 983 [09:35:59]Content-Type: application/json [09:35:59] [09:35:59]POST finish read [09:35:59]Found Content-Length = 983 [09:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "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 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \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" ] } } [09:35:59]execute_script... [09: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)31804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "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 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \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" ] } } [09:35:59]POST & json_proto [09:35:59]process_json_proto [09:35:59]json parsed OK: [09:35:59]protocol is kg_v1.0 [09:35:59]action value=close_receipt [09:35:59]process_action close_receipt [09:35:59]cmd_close_receipt [09:35:59]MH_GetDate [09:35:59]Write to MH i2c: F0 00 00 2C 27 42 [09:35:59]Write i2c OK [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: F0 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: F0 09 00 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: F0 09 00 2C 27 00 04 5B 1F 67 22 05 6E 64 29 [09:35:59]GetLastDocTimeStamp 1730107904 [09:35:59]current date 1730108164 [09:35:59]FM_GetShiftState [09:35:59]SAM_PROTO_GetShiftState [09:35:59]wFMCommunicate request_size=4 [09:35:59]MH_SAM_APDU [09:35:59]CAPDU: 80 13 01 00 [09:35:59]Write to MH i2c: E2 08 00 2D 27 80 13 01 00 00 00 00 00 D1 [09:35:59]Write i2c OK [09:35:59]MH_I2C_Read... [09:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:59]Read from MH i2c: E2 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: E2 0E 00 [09:35:59]MH_I2C_Read... [09:35:59]Read from MH i2c: E2 0E 00 2D 27 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 21 [09:35:59]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:35:59]wFMCommunicate OK [09:35:59]SAM_PROTO_GetShiftState done [09:35:59]FM_GetShiftState done [09:35:59]opened in 1730075620 [09:35:59]opened+sec_in_day 1730162020 [09:35:59]quantity*price = 150054 [09:35:59]sum+1 = 150055 [09:35:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 37 28.10.2024 09:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 22.77 сом ФМ: 0000000000871754 ФД: 192489 ФПД: 158733282515349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093604&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192489&fm=158733282515349&tin=02508201610067®Number=0000000000091776&sum=150000 [09:36:00]StoreToDocumentArchive [09:36:00]shift 543 fd 192489 [09:36:00]save to /storage/0543/doc_00192489 [09:36:00]save last doc name /storage/0543/doc_00192489 to /storage/kkm_last_doc_name [09:36:00]save OK [09:36:00]Clear old archive folders... [09:36:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:00]tlvbuf is 01A00960 [09:36:00]SAM_PROTO_ClearQueue [09:36:00]wFMCommunicate request_size=4 [09:36:00]MH_SAM_APDU [09:36:00]CAPDU: 80 09 00 00 [09:36:00]Write to MH i2c: E2 08 00 3A 27 80 09 00 00 00 00 00 00 D3 [09:36:00]Write i2c OK [09:36:00]MH_I2C_Read... [09:36:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:00]Read from MH i2c: E2 [09:36:00]MH_I2C_Read... [09:36:00]Read from MH i2c: E2 03 00 [09:36:00]MH_I2C_Read... [09:36:00]Read from MH i2c: E2 03 00 3A 27 00 90 00 D5 [09:36:00]RAPDU: 90 00 [09:36:00]wFMCommunicate OK [09:36:00]SAM_PROTO_ClearQueue done [09:36:00]KKMCreateOFDPacket [09:36:00]OFDProtocolAddRootSTLVToBuf [09:36:00]FM_MakeSignedData [09:36:00]FM_MakeSignedData [09:36:00]SAM_PROTO_SignData [09:36:00]wFMCommunicate request_size=4 [09:36:00]MH_SAM_APDU [09:36:00]CAPDU: 80 0D 01 02 [09:36:00]Write to MH i2c: E2 08 00 3B 27 80 0D 01 02 00 00 00 00 DB [09:36:00]Write i2c OK [09:36:00]MH_I2C_Read... [09:36:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:00]Read from MH i2c: E2 [09:36:00]MH_I2C_Read... [09:36:00]Read from MH i2c: E2 03 00 [09:36:00]MH_I2C_Read... [09:36:00]Read from MH i2c: E2 03 00 3B 27 00 90 00 D6 [09:36:00]RAPDU: 90 00 [09:36:00]wFMCommunicate OK [09:36:00]wFMCommunicate request_size=255 [09:36:00]MH_SAM_APDU [09:36:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 04 5B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EF 02 00 35 04 06 00 90 [09:36:00]Write to MH i2c: E2 02 01 3C 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 04 5B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EF 02 00 35 04 06 00 90 00 00 3A [09:36:00]Write i2c OK [09:36:00]MH_I2C_Read... [09:36:01]Read from MH i2c: E2 [09:36:01]MH_I2C_Read... [09:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:01]Read from MH i2c: E2 03 00 [09:36:01]MH_I2C_Read... [09:36:01]Read from MH i2c: E2 03 00 3C 27 00 90 00 D7 [09:36:01]RAPDU: 90 00 [09:36:01]wFMCommunicate OK [09:36:01]wFMCommunicate request_size=10 [09:36:01]MH_SAM_APDU [09:36:01]CAPDU: 80 0D 02 02 05 5D F8 EB 19 95 [09:36:01]Write to MH i2c: E2 0D 00 3D 27 80 0D 02 02 05 00 5D F8 EB 19 95 00 00 D6 [09:36:01]Write i2c OK [09:36:01]MH_I2C_Read... [09:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:01]Read from MH i2c: E2 [09:36:01]MH_I2C_Read... [09:36:01]Read from MH i2c: E2 03 00 [09:36:01]MH_I2C_Read... [09:36:01]Read from MH i2c: E2 03 00 3D 27 00 90 00 D8 [09:36:01]RAPDU: 90 00 [09:36:01]wFMCommunicate OK [09:36:01]wFMCommunicate request_size=4 [09:36:01]MH_SAM_APDU [09:36:01]CAPDU: 80 0D 03 02 [09:36:01]Write to MH i2c: E2 08 00 3E 27 80 0D 03 02 00 00 00 00 E0 [09:36:01]Write i2c OK [09:36:01]MH_I2C_Read... [09:36:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:01]Read from MH i2c: E2 [09:36:01]MH_I2C_Read... [09:36:01]Read from MH i2c: E2 0B 00 [09:36:01]MH_I2C_Read... [09:36:01]Read from MH i2c: E2 0B 00 3E 27 00 BF B5 BA 9E 55 57 54 CB 90 00 78 [09:36:01]RAPDU: BF B5 BA 9E 55 57 54 CB 90 00 [09:36:01]wFMCommunicate OK [09:36:01]SAM_PROTO_SignData done [09:36:01]FM_MakeSignedData done [09:36:01]CreateOFDProtocolMessage [09:36:01]wFMCommunicate request_size=4 [09:36:01]MH_SAM_APDU [09:36:01]CAPDU: 80 11 00 00 [09:36:01]Write to MH i2c: E2 08 00 3F 27 80 11 00 00 00 00 00 00 E0 [09:36:01]Write i2c OK [09:36:01]MH_I2C_Read... [09:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:01]Read from MH i2c: E2 [09:36:01]MH_I2C_Read... [09:36:01]Read from MH i2c: E2 17 00 [09:36:01]MH_I2C_Read... [09:36:01]Read from MH i2c: E2 17 00 3F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 33 [09:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:36:01]wFMCommunicate OK [09:36:01]CreateOFDProtocolMessage done [09:36:01]OFDSenderStorePacket 192489 [09:36:01]StoreOFDPacket docnum=192489 [09:36:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1E 38 07 01 B3 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 04 5B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EF 02 00 35 04 06 00 90 5D F8 EB 19 95 BF B5 BA 9E 55 57 54 CB [09:36:01]CheckFolder [09:36:01]dirname=/storage/ofd_packets [09:36:01]CheckFolder done [09:36:01]ProducePacketName [09:36:01]name=ofd_packets/00192489 [09:36:01]NVStorageSaveData ofd_packets/00192489 [09:36:01]File name is /storage/ofd_packets/00192489 [09:36:01]Write 301 bytes [09:36:01]NVStorageSaveData done [09:36:01]OFDSenderStorePacket done [09:36:01]KKMCreateOFDPacket done [09:36:01]NVStorageSaveData kkm_last_timestamp [09:36:01]File name is /storage/kkm_last_timestamp [09:36:01]Write 4 bytes [09:36:01]NVStorageSaveData done [09:36:01]ExternCall_PrintAddStr [09:36:01]wPrintStart [09:36:01]Write to MH i2c: 01 00 00 40 27 67 [09:36:01]Write i2c OK [09:36:01]MH_I2C_Read... [09:36:01]Read from MH i2c: 01 [09:36:01]MH_I2C_Read... [09:36:01]Read from MH i2c: 01 07 00 [09:36:01]MH_I2C_Read... [09:36:01]Read from MH i2c: 01 07 00 40 27 00 00 00 00 00 FF 0F 7C [09:36:01]RasterBufferAndPrint [09:36:01]line Счет N : (1)31804 [09:36:01]line ИНН: 02508201610067 [09:36:01]line Контрольно-Кассовый Чек [09:36:01]line ПРОДАЖА [09:36:01]line ТРК (МРК, ГНК) : 21 [09:36:01]line Товар: 2710124130 [09:36:01]line Аи-92-К-5 [09:36:01]line 22.770 * 65.90 [09:36:01]line = 1500.54 [09:36:01]line НДС 12% НСП 1% [09:36:01]line > о реализуемом товаре [09:36:01]line ОКРУГЛЕНИЕ: -0.54 [09:36:01]line ИТОГО: 1500.00 [09:36:01]line Внесено: 1500.00 [09:36:01]line СДАЧА: 0.00 [09:36:01]line НСП 1% : 13.28 [09:36:01]line НДС 12% : 159.35 [09:36:01]line Наличными: 1500.00 [09:36:01]line Безнал.: 0.00 [09:36:01]line Место: АЗС № 170 "Партнер Нефть" [09:36:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:36:01]line СНО: Общий режим [09:36:01]line Чек 37 28.10.2024 09:36 [09:36:01]line Смена: 543 ФФД: 1.0 [09:36:01]line ЗНМ: 0300000110 [09:36:01]line РНМ: 0000000000091776 [09:36:01]line Версия ККМ: 001 [09:36:01]line [09:36:01]line Дисконтная программа [09:36:01]line АИ-92 [09:36:01]line номер 170 [09:36:01]line сэкономлено 22.77 сом [09:36:01]line ФМ: 0000000000871754 [09:36:01]line ФД: 192489 [09:36:01]line ФПД: 158733282515349 [09:36:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093604&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192489&fm=158733282515349&tin=02508201610067®Number=0000000000091776&sum=150000 [09:36:01]OFD Sender: Processing packet 192489 [packets to send 75, broken 74] [09:36:01]ProducePacketName [09:36:01]name=ofd_packets/00192489 [09:36:01]OFD Sender: To server: pG, [09:36:01]CommunicateWithHost lk.salyk.kg:30040 [09:36:01]ConnectInit lk.salyk.kg [09:36:01]written 0, free lines is 4095 [09:36:01]Connected sock=10 [09: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 31 37 35 34 0F 01 00 00 1E 38 07 01 B3 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 04 5B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EF 02 00 35 04 06 00 90 5D F8 EB 19 95 BF B5 BA 9E 55 57 54 CB [09:36:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6B C6 47 00 39 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 31 37 35 34 10 04 04 00 E9 EF 02 00 F4 03 04 00 C8 FF 1E 67 B6 04 01 00 00 CF 57 11 30 31 41 82 D3 [09:36:01]CommunicateWithHost err = 0 [09:36:01]CheckOFDResponse [09:36:01]1017 (14) - 77093643461234 [09:36:01]1041 (16) - 0000000000871754 [09:36:01]1040 (4) - 192489 [09:36:01]1012 (4) - 28.10.2024 03:06 [09:36:01]1206 (1) - 0 [09:36:01]OFD Sender: Remove packet 192489 [09:36:01]ProducePacketName [09:36:01]name=ofd_packets/00192489 [09:36:01]NVStorageDeleteData [09:36:02]Write to MH i2c: 01 00 00 70 27 97 [09:36:02]Write i2c OK [09:36:02]MH_I2C_Read... [09:36:02]Read from MH i2c: 01 [09:36:02]MH_I2C_Read... [09:36:02]Read from MH i2c: 01 07 00 [09:36:02]MH_I2C_Read... [09:36:02]Read from MH i2c: 01 07 00 70 27 00 00 00 00 00 48 0C F2 [09:36:02]RasterBufferAndPrint [09:36:02]line [09:36:02]line [09:36:02]line [09:36:02]line [09:36:02]line [09:36:02]written 0, free lines is 3148 [09:36:02]MH_Cut [09:36:02]Write to MH i2c: D1 01 00 77 27 01 70 [09:36:02]Write i2c OK [09:36:02]MH_I2C_Read... [09:36:02]Read from MH i2c: D1 [09:36:02]MH_I2C_Read... [09:36:02]Read from MH i2c: D1 01 00 [09:36:02]MH_I2C_Read... [09:36:02]Read from MH i2c: D1 01 00 77 27 00 6F [09:36:02]Write to MH i2c: 01 00 00 78 27 9F [09:36:02]Write i2c OK [09:36:02]MH_I2C_Read... [09:36:02]OFD Sender: No OFD packet to send [09:36:03]*** Cut start [09:36:03]*** Partial cut [09:36:03]*** CUTSNS_PIN = 1 [09:36:03]*** CUTSNS_PIN = 0 [09:36:03]*** Brake cut motor [09:36:03]Read from MH i2c: 01 [09:36:03]MH_I2C_Read... [09:36:03]*** Stop cut motor [09:36:03]*** Cut end [09:36:03]Read from MH i2c: 01 07 00 [09:36:03]MH_I2C_Read... [09:36:03]Read from MH i2c: 01 07 00 78 27 00 00 00 00 00 FF 0F B4 [09:36:03]process_action close_receipt done [09:36:03]requested_data is exist [09:36:03]produce_requested_data [09:36:03]requested_item fm.sn is exist - process it [09:36:03]wFMCommunicate request_size=4 [09:36:03]MH_SAM_APDU [09:36:03]CAPDU: 80 11 00 00 [09:36:03]Write to MH i2c: E2 08 00 79 27 80 11 00 00 00 00 00 00 1A [09:36:03]Write i2c OK [09:36:03]MH_I2C_Read... [09:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:03]Read from MH i2c: E2 [09:36:03]MH_I2C_Read... [09:36:03]Read from MH i2c: E2 17 00 [09:36:03]MH_I2C_Read... [09:36:03]Read from MH i2c: E2 17 00 79 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6D [09:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:36:03]wFMCommunicate OK [09:36:03]requested_item fd.num is exist - process it [09:36:03]SAM_PROTO_GetFieldsCounters [09:36:03]wFMCommunicate request_size=4 [09:36:03]MH_SAM_APDU [09:36:03]CAPDU: 80 13 00 00 [09:36:03]Write to MH i2c: E2 08 00 7A 27 80 13 00 00 00 00 00 00 1D [09:36:03]Write i2c OK [09:36:03]MH_I2C_Read... [09:36:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:03]Read from MH i2c: E2 [09:36:03]MH_I2C_Read... [09:36:03]Read from MH i2c: E2 62 00 [09:36:03]MH_I2C_Read... [09:36:03]Read from MH i2c: E2 62 00 7A 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E9 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [09: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E9 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:03]wFMCommunicate OK [09:36:03]SAM_PROTO_GetFieldsCounters done [09:36:03]requested_item shift.num is exist - process it [09:36:03]requested_item shift.opened is exist - process it [09:36:03]req_shift_opened [09:36:03]FM_GetShiftState [09:36:03]SAM_PROTO_GetShiftState [09:36:03]wFMCommunicate request_size=4 [09:36:03]MH_SAM_APDU [09:36:03]CAPDU: 80 13 01 00 [09:36:03]Write to MH i2c: E2 08 00 7B 27 80 13 01 00 00 00 00 00 1F [09:36:03]Write i2c OK [09:36:03]MH_I2C_Read... [09:36:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:04]Read from MH i2c: E2 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 0E 00 [09:36:04]MH_I2C_Read... [09:36:04]Read from MH i2c: E2 0E 00 7B 27 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 6F [09:36:04]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:36:04]wFMCommunicate OK [09:36:04]SAM_PROTO_GetShiftState done [09:36:04]FM_GetShiftState done [09:36:04]req_shift_opened done [09:36:04]requested_item shift.open_date is exist - process it [09:36:04]req_shift_open_date [09:36:04]req_shift_open_date done [09:36:04]produce_requested_data done [09:36:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192489,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:36:04]process_action_free close_receipt [09:36:04]json_value_free [09:36:04]json_value_free done [09:36:04]process_json_proto returns [09:36:04]Send response to host [09:36:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192489,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:36:04]free response buf [09:36:04]execute_script done [09:36:04]execute_script returns [09:36:04]free content buf [09:36:04]Sock 9.Close socket [09:36:04]Sock 9.Thread stoped [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]accept exits with 7 [09:38:37]New connection [09:38:37]New thread 3066707300 created [09:38:37]Thread 3066563940 joined [09:38:37]Waiting for new connection... [09:38:37] Sock 7.Parse request [09:38:37]Sock 7.Check first char [09:38:37]Sock 7.First char is OK [09:38:37]request: POST /json_proto HTTP/1.0 [09:38:37]Method: POST [09:38:37]URL: /json_proto [09:38:37]Method is POST - this is cgi request [09:38:37]url: /json_proto [09:38:37]query_string will be loaded in cgi processing [09:38:37]execute_cgi json_proto POST (null) [09:38:37]execute_cgi path=json_proto method=POST [09:38:37]POST find Content-Length [09:38:37]Host: 172.17.63.131:8080 [09:38:37]Content-Length: 676 [09:38:37]Content-Type: application/json [09:38:37] [09:38:37]POST finish read [09:38:37]Found Content-Length = 676 [09:38:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:37]execute_script... [09:38: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)31805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:37]POST & json_proto [09:38:37]process_json_proto [09:38:37]json parsed OK: [09:38:37]protocol is kg_v1.0 [09:38:37]action value=close_receipt [09:38:37]process_action close_receipt [09:38:37]cmd_close_receipt [09:38:37]MH_GetDate [09:38:37]Write to MH i2c: F0 00 00 7C 27 92 [09:38:37]Write i2c OK [09:38:37]MH_I2C_Read... [09:38:37]Read from MH i2c: F0 [09:38:37]MH_I2C_Read... [09:38:37]Read from MH i2c: F0 09 00 [09:38:37]MH_I2C_Read... [09:38:37]Read from MH i2c: F0 09 00 7C 27 00 A1 5B 1F 67 22 05 6E 64 16 [09:38:37]GetLastDocTimeStamp 1730108164 [09:38:37]current date 1730108321 [09:38:37]FM_GetShiftState [09:38:37]SAM_PROTO_GetShiftState [09:38:37]wFMCommunicate request_size=4 [09:38:37]MH_SAM_APDU [09:38:37]CAPDU: 80 13 01 00 [09:38:37]Write to MH i2c: E2 08 00 7D 27 80 13 01 00 00 00 00 00 21 [09:38:37]Write i2c OK [09:38:37]MH_I2C_Read... [09:38:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:37]Read from MH i2c: E2 [09:38:37]MH_I2C_Read... [09:38:37]Read from MH i2c: E2 0E 00 [09:38:37]MH_I2C_Read... [09:38:37]Read from MH i2c: E2 0E 00 7D 27 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 71 [09:38:37]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:38:37]wFMCommunicate OK [09:38:37]SAM_PROTO_GetShiftState done [09:38:37]FM_GetShiftState done [09:38:37]opened in 1730075620 [09:38:37]opened+sec_in_day 1730162020 [09:38:37]quantity*price = 50041 [09:38:37]sum+1 = 50042 [09:38:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 38 28.10.2024 09:38 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192490 ФПД: 94928057320240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093841&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192490&fm=94928057320240&tin=02508201610067®Number=0000000000091776&sum=50000 [09:38:38]StoreToDocumentArchive [09:38:38]shift 543 fd 192490 [09:38:38]save to /storage/0543/doc_00192490 [09:38:38]save last doc name /storage/0543/doc_00192490 to /storage/kkm_last_doc_name [09:38:38]save OK [09:38:38]Clear old archive folders... [09:38:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:38]tlvbuf is 01990D80 [09:38:38]SAM_PROTO_ClearQueue [09:38:38]wFMCommunicate request_size=4 [09:38:38]MH_SAM_APDU [09:38:38]CAPDU: 80 09 00 00 [09:38:38]Write to MH i2c: E2 08 00 8A 27 80 09 00 00 00 00 00 00 23 [09:38:38]Write i2c OK [09:38:38]MH_I2C_Read... [09:38:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:38]Read from MH i2c: E2 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: E2 03 00 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: E2 03 00 8A 27 00 90 00 25 [09:38:38]RAPDU: 90 00 [09:38:38]wFMCommunicate OK [09:38:38]SAM_PROTO_ClearQueue done [09:38:38]KKMCreateOFDPacket [09:38:38]OFDProtocolAddRootSTLVToBuf [09:38:38]FM_MakeSignedData [09:38:38]FM_MakeSignedData [09:38:38]SAM_PROTO_SignData [09:38:38]wFMCommunicate request_size=4 [09:38:38]MH_SAM_APDU [09:38:38]CAPDU: 80 0D 01 02 [09:38:38]Write to MH i2c: E2 08 00 8B 27 80 0D 01 02 00 00 00 00 2B [09:38:38]Write i2c OK [09:38:38]MH_I2C_Read... [09:38:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:38]Read from MH i2c: E2 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: E2 03 00 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: E2 03 00 8B 27 00 90 00 26 [09:38:38]RAPDU: 90 00 [09:38:38]wFMCommunicate OK [09:38:38]wFMCommunicate request_size=255 [09:38:38]MH_SAM_APDU [09:38: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 A1 5B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EF 02 00 35 04 06 00 56 [09:38:38]Write to MH i2c: E2 02 01 8C 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 A1 5B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EF 02 00 35 04 06 00 56 00 00 B9 [09:38:38]Write i2c OK [09:38:38]MH_I2C_Read... [09:38:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:38]Read from MH i2c: E2 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: E2 03 00 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: E2 03 00 8C 27 00 90 00 27 [09:38:38]RAPDU: 90 00 [09:38:38]wFMCommunicate OK [09:38:38]wFMCommunicate request_size=10 [09:38:38]MH_SAM_APDU [09:38:38]CAPDU: 80 0D 02 02 05 56 29 22 C3 30 [09:38:38]Write to MH i2c: E2 0D 00 8D 27 80 0D 02 02 05 00 56 29 22 C3 30 00 00 CC [09:38:38]Write i2c OK [09:38:38]MH_I2C_Read... [09:38:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:38]Read from MH i2c: E2 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: E2 03 00 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: E2 03 00 8D 27 00 90 00 28 [09:38:38]RAPDU: 90 00 [09:38:38]wFMCommunicate OK [09:38:38]wFMCommunicate request_size=4 [09:38:38]MH_SAM_APDU [09:38:38]CAPDU: 80 0D 03 02 [09:38:38]Write to MH i2c: E2 08 00 8E 27 80 0D 03 02 00 00 00 00 30 [09:38:38]Write i2c OK [09:38:38]MH_I2C_Read... [09:38:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:38]Read from MH i2c: E2 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: E2 0B 00 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: E2 0B 00 8E 27 00 E2 C6 89 59 7D 25 63 14 90 00 D4 [09:38:38]RAPDU: E2 C6 89 59 7D 25 63 14 90 00 [09:38:38]wFMCommunicate OK [09:38:38]SAM_PROTO_SignData done [09:38:38]FM_MakeSignedData done [09:38:38]CreateOFDProtocolMessage [09:38:38]wFMCommunicate request_size=4 [09:38:38]MH_SAM_APDU [09:38:38]CAPDU: 80 11 00 00 [09:38:38]Write to MH i2c: E2 08 00 8F 27 80 11 00 00 00 00 00 00 30 [09:38:38]Write i2c OK [09:38:38]MH_I2C_Read... [09:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:38]Read from MH i2c: E2 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: E2 17 00 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: E2 17 00 8F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 83 [09:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:38:38]wFMCommunicate OK [09:38:38]CreateOFDProtocolMessage done [09:38:38]OFDSenderStorePacket 192490 [09:38:38]StoreOFDPacket docnum=192490 [09:38:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 93 08 07 01 0A 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 A1 5B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EF 02 00 35 04 06 00 56 56 29 22 C3 30 E2 C6 89 59 7D 25 63 14 [09:38:38]CheckFolder [09:38:38]dirname=/storage/ofd_packets [09:38:38]CheckFolder done [09:38:38]ProducePacketName [09:38:38]name=ofd_packets/00192490 [09:38:38]NVStorageSaveData ofd_packets/00192490 [09:38:38]File name is /storage/ofd_packets/00192490 [09:38:38]Write 301 bytes [09:38:38]NVStorageSaveData done [09:38:38]OFDSenderStorePacket done [09:38:38]KKMCreateOFDPacket done [09:38:38]NVStorageSaveData kkm_last_timestamp [09:38:38]File name is /storage/kkm_last_timestamp [09:38:38]Write 4 bytes [09:38:38]NVStorageSaveData done [09:38:38]ExternCall_PrintAddStr [09:38:38]wPrintStart [09:38:38]Write to MH i2c: 01 00 00 90 27 B7 [09:38:38]Write i2c OK [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: 01 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: 01 07 00 [09:38:38]MH_I2C_Read... [09:38:38]Read from MH i2c: 01 07 00 90 27 00 00 00 00 00 FF 0F CC [09:38:38]RasterBufferAndPrint [09:38:38]line Счет N : (1)31805 [09:38:38]line ИНН: 02508201610067 [09:38:38]line Контрольно-Кассовый Чек [09:38:38]line ПРОДАЖА [09:38:38]line ТРК (МРК, ГНК) : 21 [09:38:38]line Товар: 2710124130 [09:38:38]line Аи-92-К-5 [09:38:38]line 7.480 * 66.90 [09:38:38]line = 500.41 [09:38:38]line НДС 12% НСП 1% [09:38:38]line > о реализуемом товаре [09:38:38]line ОКРУГЛЕНИЕ: -0.41 [09:38:38]line ИТОГО: 500.00 [09:38:38]line Внесено: 500.00 [09:38:38]line СДАЧА: 0.00 [09:38:38]line НСП 1% : 4.43 [09:38:38]line НДС 12% : 53.14 [09:38:38]line Наличными: 500.00 [09:38:38]line Безнал.: 0.00 [09:38:38]line Место: АЗС № 170 "Партнер Нефть" [09:38:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:38:38]line СНО: Общий режим [09:38:38]line Чек 38 28.10.2024 09:38 [09:38:38]line Смена: 543 ФФД: 1.0 [09:38:38]line ЗНМ: 0300000110 [09:38:38]line РНМ: 0000000000091776 [09:38:38]line Версия ККМ: 001 [09:38:38]line ФМ: 0000000000871754 [09:38:38]line ФД: 192490 [09:38:38]line ФПД: 94928057320240 [09:38:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093841&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192490&fm=94928057320240&tin=02508201610067®Number=0000000000091776&sum=50000 [09:38:39]OFD Sender: Processing packet 192490 [packets to send 75, broken 74] [09:38:39]ProducePacketName [09:38:39]name=ofd_packets/00192490 [09:38:39]OFD Sender: To server: pG, [09:38:39]CommunicateWithHost lk.salyk.kg:30040 [09:38:39]ConnectInit lk.salyk.kg [09:38:39]written 0, free lines is 4095 [09:38:39]Connected sock=10 [09:38:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 93 08 07 01 0A 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 A1 5B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EF 02 00 35 04 06 00 56 56 29 22 C3 30 E2 C6 89 59 7D 25 63 14 [09:38:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3B F5 47 00 04 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EF 02 00 F4 03 04 00 66 00 1F 67 B6 04 01 00 00 E2 5E C4 F0 8A 05 C4 84 [09:38:39]CommunicateWithHost err = 0 [09:38:39]CheckOFDResponse [09:38:39]1017 (14) - 77093643461234 [09:38:39]1041 (16) - 0000000000871754 [09:38:39]1040 (4) - 192490 [09:38:39]1012 (4) - 28.10.2024 03:09 [09:38:39]1206 (1) - 0 [09:38:39]OFD Sender: Remove packet 192490 [09:38:39]ProducePacketName [09:38:39]name=ofd_packets/00192490 [09:38:39]NVStorageDeleteData [09:38:39]Write to MH i2c: 01 00 00 BB 27 E2 [09:38:39]Write i2c OK [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: 01 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: 01 07 00 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: 01 07 00 BB 27 00 00 00 00 00 99 0C 8E [09:38:39]RasterBufferAndPrint [09:38:39]line [09:38:39]line [09:38:39]line [09:38:39]line [09:38:39]line [09:38:39]written 0, free lines is 3232 [09:38:39]MH_Cut [09:38:39]Write to MH i2c: D1 01 00 C2 27 01 BB [09:38:39]Write i2c OK [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: D1 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: D1 01 00 [09:38:39]MH_I2C_Read... [09:38:39]Read from MH i2c: D1 01 00 C2 27 00 BA [09:38:39]Write to MH i2c: 01 00 00 C3 27 EA [09:38:39]Write i2c OK [09:38:39]MH_I2C_Read... [09:38:40]OFD Sender: No OFD packet to send [09:38:40]*** Cut start [09:38:40]*** Partial cut [09:38:40]*** CUTSNS_PIN = 1 [09:38:40]*** CUTSNS_PIN = 0 [09:38:40]*** Brake cut motor [09:38:41]Read from MH i2c: 01 [09:38:41]MH_I2C_Read... [09:38:41]*** Stop cut motor [09:38:41]*** Cut end [09:38:41]Read from MH i2c: 01 07 00 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: 01 07 00 C3 27 00 00 00 00 00 FF 0F FF [09:38:41]process_action close_receipt done [09:38:41]requested_data is exist [09:38:41]produce_requested_data [09:38:41]requested_item fm.sn is exist - process it [09:38:41]wFMCommunicate request_size=4 [09:38:41]MH_SAM_APDU [09:38:41]CAPDU: 80 11 00 00 [09:38:41]Write to MH i2c: E2 08 00 C4 27 80 11 00 00 00 00 00 00 65 [09:38:41]Write i2c OK [09:38:41]MH_I2C_Read... [09:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:41]Read from MH i2c: E2 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 17 00 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 17 00 C4 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B8 [09:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:38:41]wFMCommunicate OK [09:38:41]requested_item fd.num is exist - process it [09:38:41]SAM_PROTO_GetFieldsCounters [09:38:41]wFMCommunicate request_size=4 [09:38:41]MH_SAM_APDU [09:38:41]CAPDU: 80 13 00 00 [09:38:41]Write to MH i2c: E2 08 00 C5 27 80 13 00 00 00 00 00 00 68 [09:38:41]Write i2c OK [09:38:41]MH_I2C_Read... [09:38:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:41]Read from MH i2c: E2 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 62 00 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 62 00 C5 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EA EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [09:38: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EA EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:41]wFMCommunicate OK [09:38:41]SAM_PROTO_GetFieldsCounters done [09:38:41]requested_item shift.num is exist - process it [09:38:41]requested_item shift.opened is exist - process it [09:38:41]req_shift_opened [09:38:41]FM_GetShiftState [09:38:41]SAM_PROTO_GetShiftState [09:38:41]wFMCommunicate request_size=4 [09:38:41]MH_SAM_APDU [09:38:41]CAPDU: 80 13 01 00 [09:38:41]Write to MH i2c: E2 08 00 C6 27 80 13 01 00 00 00 00 00 6A [09:38:41]Write i2c OK [09:38:41]MH_I2C_Read... [09:38:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:41]Read from MH i2c: E2 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 0E 00 [09:38:41]MH_I2C_Read... [09:38:41]Read from MH i2c: E2 0E 00 C6 27 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 BA [09:38:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:38:41]wFMCommunicate OK [09:38:41]SAM_PROTO_GetShiftState done [09:38:41]FM_GetShiftState done [09:38:41]req_shift_opened done [09:38:41]requested_item shift.open_date is exist - process it [09:38:41]req_shift_open_date [09:38:41]req_shift_open_date done [09:38:41]produce_requested_data done [09:38:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192490,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:38:41]process_action_free close_receipt [09:38:41]json_value_free [09:38:41]json_value_free done [09:38:41]process_json_proto returns [09:38:41]Send response to host [09:38:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192490,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:38:41]free response buf [09:38:41]execute_script done [09:38:41]execute_script returns [09:38:41]free content buf [09:38:41]Sock 7.Close socket [09:38:41]Sock 7.Thread stoped [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:06]accept exits with 9 [09:41:06]New connection [09:41:06]New thread 3066563940 created [09:41:06]Thread 3066707300 joined [09:41:06]Waiting for new connection... [09:41:06] Sock 9.Parse request [09:41:06]Sock 9.Check first char [09:41:06]Sock 9.First char is OK [09:41:06]request: POST /json_proto HTTP/1.0 [09:41:06]Method: POST [09:41:06]URL: /json_proto [09:41:06]Method is POST - this is cgi request [09:41:06]url: /json_proto [09:41:06]query_string will be loaded in cgi processing [09:41:06]execute_cgi json_proto POST (null) [09:41:06]execute_cgi path=json_proto method=POST [09:41:06]POST find Content-Length [09:41:06]Host: 172.17.63.131:8080 [09:41:06]Content-Length: 673 [09:41:06]Content-Type: application/json [09:41:06] [09:41:06]POST finish read [09:41:06]Found Content-Length = 673 [09:41:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:06]execute_script... [09:41:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:06]POST & json_proto [09:41:06]process_json_proto [09:41:06]json parsed OK: [09:41:06]protocol is kg_v1.0 [09:41:06]action value=close_receipt [09:41:06]process_action close_receipt [09:41:06]cmd_close_receipt [09:41:06]MH_GetDate [09:41:06]Write to MH i2c: F0 00 00 C7 27 DD [09:41:06]Write i2c OK [09:41:06]MH_I2C_Read... [09:41:06]Read from MH i2c: F0 [09:41:06]MH_I2C_Read... [09:41:06]Read from MH i2c: F0 09 00 [09:41:06]MH_I2C_Read... [09:41:06]Read from MH i2c: F0 09 00 C7 27 00 37 5C 1F 67 22 05 6E 64 F8 [09:41:06]GetLastDocTimeStamp 1730108321 [09:41:06]current date 1730108471 [09:41:06]FM_GetShiftState [09:41:06]SAM_PROTO_GetShiftState [09:41:06]wFMCommunicate request_size=4 [09:41:06]MH_SAM_APDU [09:41:06]CAPDU: 80 13 01 00 [09:41:06]Write to MH i2c: E2 08 00 C8 27 80 13 01 00 00 00 00 00 6C [09:41:06]Write i2c OK [09:41:06]MH_I2C_Read... [09:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:06]Read from MH i2c: E2 [09:41:06]MH_I2C_Read... [09:41:06]Read from MH i2c: E2 0E 00 [09:41:06]MH_I2C_Read... [09:41:06]Read from MH i2c: E2 0E 00 C8 27 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 BC [09:41:06]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:41:06]wFMCommunicate OK [09:41:06]SAM_PROTO_GetShiftState done [09:41:06]FM_GetShiftState done [09:41:06]opened in 1730075620 [09:41:06]opened+sec_in_day 1730162020 [09:41:06]quantity*price = 70027 [09:41:06]sum+1 = 70029 [09:41:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 39 28.10.2024 09:41 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192491 ФПД: 115334873190564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094111&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192491&fm=115334873190564&tin=02508201610067®Number=0000000000091776&sum=70000 [09:41:08]StoreToDocumentArchive [09:41:08]shift 543 fd 192491 [09:41:08]save to /storage/0543/doc_00192491 [09:41:08]save last doc name /storage/0543/doc_00192491 to /storage/kkm_last_doc_name [09:41:08]save OK [09:41:08]Clear old archive folders... [09:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:41:08]tlvbuf is 019C0F70 [09:41:08]SAM_PROTO_ClearQueue [09:41:08]wFMCommunicate request_size=4 [09:41:08]MH_SAM_APDU [09:41:08]CAPDU: 80 09 00 00 [09:41:08]Write to MH i2c: E2 08 00 D5 27 80 09 00 00 00 00 00 00 6E [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:08]Read from MH i2c: E2 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 03 00 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 03 00 D5 27 00 90 00 70 [09:41:08]RAPDU: 90 00 [09:41:08]wFMCommunicate OK [09:41:08]SAM_PROTO_ClearQueue done [09:41:08]KKMCreateOFDPacket [09:41:08]OFDProtocolAddRootSTLVToBuf [09:41:08]FM_MakeSignedData [09:41:08]FM_MakeSignedData [09:41:08]SAM_PROTO_SignData [09:41:08]wFMCommunicate request_size=4 [09:41:08]MH_SAM_APDU [09:41:08]CAPDU: 80 0D 01 02 [09:41:08]Write to MH i2c: E2 08 00 D6 27 80 0D 01 02 00 00 00 00 76 [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:08]Read from MH i2c: E2 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 03 00 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 03 00 D6 27 00 90 00 71 [09:41:08]RAPDU: 90 00 [09:41:08]wFMCommunicate OK [09:41:08]wFMCommunicate request_size=255 [09:41:08]MH_SAM_APDU [09:41:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 37 5C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EF 02 00 35 04 06 00 68 E5 7E 25 [09:41:08]Write to MH i2c: E2 02 01 D7 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 37 5C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EF 02 00 35 04 06 00 68 E5 7E 25 00 00 29 [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:08]Read from MH i2c: E2 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 03 00 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 03 00 D7 27 00 90 00 72 [09:41:08]RAPDU: 90 00 [09:41:08]wFMCommunicate OK [09:41:08]wFMCommunicate request_size=7 [09:41:08]MH_SAM_APDU [09:41:08]CAPDU: 80 0D 02 02 02 90 A4 [09:41:08]Write to MH i2c: E2 0A 00 D8 27 80 0D 02 02 02 00 90 A4 00 00 B1 [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:08]Read from MH i2c: E2 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 03 00 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 03 00 D8 27 00 90 00 73 [09:41:08]RAPDU: 90 00 [09:41:08]wFMCommunicate OK [09:41:08]wFMCommunicate request_size=4 [09:41:08]MH_SAM_APDU [09:41:08]CAPDU: 80 0D 03 02 [09:41:08]Write to MH i2c: E2 08 00 D9 27 80 0D 03 02 00 00 00 00 7B [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:08]Read from MH i2c: E2 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 0B 00 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 0B 00 D9 27 00 7B FC A0 07 EF 59 0E 41 90 00 31 [09:41:08]RAPDU: 7B FC A0 07 EF 59 0E 41 90 00 [09:41:08]wFMCommunicate OK [09:41:08]SAM_PROTO_SignData done [09:41:08]FM_MakeSignedData done [09:41:08]CreateOFDProtocolMessage [09:41:08]wFMCommunicate request_size=4 [09:41:08]MH_SAM_APDU [09:41:08]CAPDU: 80 11 00 00 [09:41:08]Write to MH i2c: E2 08 00 DA 27 80 11 00 00 00 00 00 00 7B [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:08]Read from MH i2c: E2 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 17 00 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: E2 17 00 DA 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CE [09:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:41:08]wFMCommunicate OK [09:41:08]CreateOFDProtocolMessage done [09:41:08]OFDSenderStorePacket 192491 [09:41:08]StoreOFDPacket docnum=192491 [09:41:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 90 E6 04 01 9C EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 37 5C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EF 02 00 35 04 06 00 68 E5 7E 25 90 A4 7B FC A0 07 EF 59 0E 41 [09:41:08]CheckFolder [09:41:08]dirname=/storage/ofd_packets [09:41:08]CheckFolder done [09:41:08]ProducePacketName [09:41:08]name=ofd_packets/00192491 [09:41:08]NVStorageSaveData ofd_packets/00192491 [09:41:08]File name is /storage/ofd_packets/00192491 [09:41:08]Write 298 bytes [09:41:08]NVStorageSaveData done [09:41:08]OFDSenderStorePacket done [09:41:08]KKMCreateOFDPacket done [09:41:08]NVStorageSaveData kkm_last_timestamp [09:41:08]File name is /storage/kkm_last_timestamp [09:41:08]Write 4 bytes [09:41:08]NVStorageSaveData done [09:41:08]ExternCall_PrintAddStr [09:41:08]wPrintStart [09:41:08]Write to MH i2c: 01 00 00 DB 27 02 [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: 01 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: 01 07 00 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: 01 07 00 DB 27 00 00 00 00 00 FF 0F 17 [09:41:08]RasterBufferAndPrint [09:41:08]line Счет N : (1)31806 [09:41:08]line ИНН: 02508201610067 [09:41:08]line Контрольно-Кассовый Чек [09:41:08]line ПРОДАЖА [09:41:08]line ТРК (МРК, ГНК) : 11 [09:41:08]line Товар: 2710194210 [09:41:08]line ДТ-К-5 [09:41:08]line 9.190 * 76.20 [09:41:08]line = 700.28 [09:41:08]line НДС 12% НСП 1% [09:41:08]line > о реализуемом товаре [09:41:08]line ОКРУГЛЕНИЕ: -0.28 [09:41:08]line ИТОГО: 700.00 [09:41:08]line Внесено: 700.00 [09:41:08]line СДАЧА: 0.00 [09:41:08]line НСП 1% : 6.20 [09:41:08]line НДС 12% : 74.37 [09:41:08]line Наличными: 700.00 [09:41:08]line Безнал.: 0.00 [09:41:08]line Место: АЗС № 170 "Партнер Нефть" [09:41:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:41:08]line СНО: Общий режим [09:41:08]line Чек 39 28.10.2024 09:41 [09:41:08]line Смена: 543 ФФД: 1.0 [09:41:08]line ЗНМ: 0300000110 [09:41:08]line РНМ: 0000000000091776 [09:41:08]line Версия ККМ: 001 [09:41:08]line ФМ: 0000000000871754 [09:41:08]line ФД: 192491 [09:41:08]line ФПД: 115334873190564 [09:41:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094111&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192491&fm=115334873190564&tin=02508201610067®Number=0000000000091776&sum=70000 [09:41:08]OFD Sender: Processing packet 192491 [packets to send 75, broken 74] [09:41:08]ProducePacketName [09:41:08]name=ofd_packets/00192491 [09:41:08]OFD Sender: To server: pG, [09:41:08]CommunicateWithHost lk.salyk.kg:30040 [09:41:08]ConnectInit lk.salyk.kg [09:41:08]written 0, free lines is 4095 [09:41:09]Connected sock=10 [09:41:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 90 E6 04 01 9C EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 37 5C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EF 02 00 35 04 06 00 68 E5 7E 25 90 A4 7B FC A0 07 EF 59 0E 41 [09:41:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 82 FD 47 00 1C 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EF 02 00 F4 03 04 00 FC 00 1F 67 B6 04 01 00 00 35 56 30 30 26 9D AF 04 [09:41:09]CommunicateWithHost err = 0 [09:41:09]CheckOFDResponse [09:41:09]1017 (14) - 77093643461234 [09:41:09]1041 (16) - 0000000000871754 [09:41:09]1040 (4) - 192491 [09:41:09]1012 (4) - 28.10.2024 03:11 [09:41:09]1206 (1) - 0 [09:41:09]OFD Sender: Remove packet 192491 [09:41:09]ProducePacketName [09:41:09]name=ofd_packets/00192491 [09:41:09]NVStorageDeleteData [09:41:09]Write to MH i2c: 01 00 00 06 28 2E [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: 01 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: 01 07 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: 01 07 00 06 28 00 00 00 00 00 93 0C D4 [09:41:09]RasterBufferAndPrint [09:41:09]line [09:41:09]line [09:41:09]line [09:41:09]line [09:41:09]line [09:41:09]written 0, free lines is 3223 [09:41:09]MH_Cut [09:41:09]Write to MH i2c: D1 01 00 0D 28 01 07 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: D1 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: D1 01 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: D1 01 00 0D 28 00 06 [09:41:09]Write to MH i2c: 01 00 00 0E 28 36 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]OFD Sender: No OFD packet to send [09:41:10]*** Cut start [09:41:10]*** Partial cut [09:41:10]*** CUTSNS_PIN = 1 [09:41:10]*** CUTSNS_PIN = 0 [09:41:10]*** Brake cut motor [09:41:10]Read from MH i2c: 01 [09:41:10]MH_I2C_Read... [09:41:10]*** Stop cut motor [09:41:10]*** Cut end [09:41:10]Read from MH i2c: 01 07 00 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: 01 07 00 0E 28 00 00 00 00 00 FF 0F 4B [09:41:10]process_action close_receipt done [09:41:10]requested_data is exist [09:41:10]produce_requested_data [09:41:10]requested_item fm.sn is exist - process it [09:41:10]wFMCommunicate request_size=4 [09:41:10]MH_SAM_APDU [09:41:10]CAPDU: 80 11 00 00 [09:41:10]Write to MH i2c: E2 08 00 0F 28 80 11 00 00 00 00 00 00 B1 [09:41:10]Write i2c OK [09:41:10]MH_I2C_Read... [09:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:10]Read from MH i2c: E2 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 17 00 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 17 00 0F 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 04 [09:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:41:10]wFMCommunicate OK [09:41:10]requested_item fd.num is exist - process it [09:41:10]SAM_PROTO_GetFieldsCounters [09:41:10]wFMCommunicate request_size=4 [09:41:10]MH_SAM_APDU [09:41:10]CAPDU: 80 13 00 00 [09:41:10]Write to MH i2c: E2 08 00 10 28 80 13 00 00 00 00 00 00 B4 [09:41:10]Write i2c OK [09:41:10]MH_I2C_Read... [09:41:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:11]Read from MH i2c: E2 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 62 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 62 00 10 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EB EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [09:41:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EB EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:11]wFMCommunicate OK [09:41:11]SAM_PROTO_GetFieldsCounters done [09:41:11]requested_item shift.num is exist - process it [09:41:11]requested_item shift.opened is exist - process it [09:41:11]req_shift_opened [09:41:11]FM_GetShiftState [09:41:11]SAM_PROTO_GetShiftState [09:41:11]wFMCommunicate request_size=4 [09:41:11]MH_SAM_APDU [09:41:11]CAPDU: 80 13 01 00 [09:41:11]Write to MH i2c: E2 08 00 11 28 80 13 01 00 00 00 00 00 B6 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:11]Read from MH i2c: E2 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 0E 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 0E 00 11 28 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 06 [09:41:11]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:41:11]wFMCommunicate OK [09:41:11]SAM_PROTO_GetShiftState done [09:41:11]FM_GetShiftState done [09:41:11]req_shift_opened done [09:41:11]requested_item shift.open_date is exist - process it [09:41:11]req_shift_open_date [09:41:11]req_shift_open_date done [09:41:11]produce_requested_data done [09:41:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192491,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:41:11]process_action_free close_receipt [09:41:11]json_value_free [09:41:11]json_value_free done [09:41:11]process_json_proto returns [09:41:11]Send response to host [09:41:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192491,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:41:11]free response buf [09:41:11]execute_script done [09:41:11]execute_script returns [09:41:11]free content buf [09:41:11]Sock 9.Close socket [09:41:11]Sock 9.Thread stoped [09:41:11]accept exits with 7 [09:41:11]New connection [09:41:11]New thread 3066707300 created [09:41:11]Thread 3066563940 joined [09:41:11]Waiting for new connection... [09:41:11] Sock 7.Parse request [09:41:11]Sock 7.Check first char [09:41:11]Sock 7.First char is OK [09:41:11]request: POST /json_proto HTTP/1.0 [09:41:11]Method: POST [09:41:11]URL: /json_proto [09:41:11]Method is POST - this is cgi request [09:41:11]url: /json_proto [09:41:11]query_string will be loaded in cgi processing [09:41:11]execute_cgi json_proto POST (null) [09:41:11]execute_cgi path=json_proto method=POST [09:41:11]POST find Content-Length [09:41:11]Host: 172.17.63.131:8080 [09:41:11]Content-Length: 681 [09:41:11]Content-Type: application/json [09:41:11] [09:41:11]POST finish read [09:41:11]Found Content-Length = 681 [09:41:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:11]execute_script... [09:41:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:11]POST & json_proto [09:41:11]process_json_proto [09:41:11]json parsed OK: [09:41:11]protocol is kg_v1.0 [09:41:11]action value=close_receipt [09:41:11]process_action close_receipt [09:41:11]cmd_close_receipt [09:41:11]MH_GetDate [09:41:11]Write to MH i2c: F0 00 00 12 28 29 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: F0 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: F0 09 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: F0 09 00 12 28 00 3C 5C 1F 67 22 05 6E 64 49 [09:41:11]GetLastDocTimeStamp 1730108471 [09:41:11]current date 1730108476 [09:41:11]FM_GetShiftState [09:41:11]SAM_PROTO_GetShiftState [09:41:11]wFMCommunicate request_size=4 [09:41:11]MH_SAM_APDU [09:41:11]CAPDU: 80 13 01 00 [09:41:11]Write to MH i2c: E2 08 00 13 28 80 13 01 00 00 00 00 00 B8 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:11]Read from MH i2c: E2 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 0E 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 0E 00 13 28 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 08 [09:41:11]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:41:11]wFMCommunicate OK [09:41:11]SAM_PROTO_GetShiftState done [09:41:11]FM_GetShiftState done [09:41:11]opened in 1730075620 [09:41:11]opened+sec_in_day 1730162020 [09:41:11]quantity*price = 100015 [09:41:11]sum+1 = 100017 [09:41:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 40 28.10.2024 09:41 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192492 ФПД: 103811899504574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094116&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192492&fm=103811899504574&tin=02508201610067®Number=0000000000091776&sum=100000 [09:41:12]StoreToDocumentArchive [09:41:12]shift 543 fd 192492 [09:41:12]save to /storage/0543/doc_00192492 [09:41:12]save last doc name /storage/0543/doc_00192492 to /storage/kkm_last_doc_name [09:41:12]save OK [09:41:12]Clear old archive folders... [09:41:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:12]tlvbuf is 01A65E00 [09:41:12]SAM_PROTO_ClearQueue [09:41:12]wFMCommunicate request_size=4 [09:41:12]MH_SAM_APDU [09:41:12]CAPDU: 80 09 00 00 [09:41:12]Write to MH i2c: E2 08 00 20 28 80 09 00 00 00 00 00 00 BA [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:13]Read from MH i2c: E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 03 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 03 00 20 28 00 90 00 BC [09:41:13]RAPDU: 90 00 [09:41:13]wFMCommunicate OK [09:41:13]SAM_PROTO_ClearQueue done [09:41:13]KKMCreateOFDPacket [09:41:13]OFDProtocolAddRootSTLVToBuf [09:41:13]FM_MakeSignedData [09:41:13]FM_MakeSignedData [09:41:13]SAM_PROTO_SignData [09:41:13]wFMCommunicate request_size=4 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 0D 01 02 [09:41:13]Write to MH i2c: E2 08 00 21 28 80 0D 01 02 00 00 00 00 C2 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:13]Read from MH i2c: E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 03 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 03 00 21 28 00 90 00 BD [09:41:13]RAPDU: 90 00 [09:41:13]wFMCommunicate OK [09:41:13]wFMCommunicate request_size=255 [09:41:13]MH_SAM_APDU [09:41: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 3C 5C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EF 02 00 35 04 06 00 5E [09:41:13]Write to MH i2c: E2 02 01 22 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 3C 5C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EF 02 00 35 04 06 00 5E 00 00 F2 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:13]E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 03 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 03 00 22 28 00 90 00 BE [09:41:13]RAPDU: 90 00 [09:41:13]wFMCommunicate OK [09:41:13]wFMCommunicate request_size=10 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 0D 02 02 05 6A 97 64 B7 BE [09:41:13]Write to MH i2c: E2 0D 00 23 28 80 0D 02 02 05 00 6A 97 64 B7 BE 00 00 A9 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:13]Read from MH i2c: E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 03 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 03 00 23 28 00 90 00 BF [09:41:13]RAPDU: 90 00 [09:41:13]wFMCommunicate OK [09:41:13]wFMCommunicate request_size=4 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 0D 03 02 [09:41:13]Write to MH i2c: E2 08 00 24 28 80 0D 03 02 00 00 00 00 C7 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:13]Read from MH i2c: E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 0B 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 0B 00 24 28 00 7E D9 D8 72 FC 98 1F B9 90 00 D5 [09:41:13]RAPDU: 7E D9 D8 72 FC 98 1F B9 90 00 [09:41:13]wFMCommunicate OK [09:41:13]SAM_PROTO_SignData done [09:41:13]FM_MakeSignedData done [09:41:13]CreateOFDProtocolMessage [09:41:13]wFMCommunicate request_size=4 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 11 00 00 [09:41:13]Write to MH i2c: E2 08 00 25 28 80 11 00 00 00 00 00 00 C7 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:13]Read from MH i2c: E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 17 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 17 00 25 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1A [09:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:41:13]wFMCommunicate OK [09:41:13]CreateOFDProtocolMessage done [09:41:13]OFDSenderStorePacket 192492 [09:41:13]StoreOFDPacket docnum=192492 [09:41:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E6 8D 07 01 E1 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 3C 5C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EF 02 00 35 04 06 00 5E 6A 97 64 B7 BE 7E D9 D8 72 FC 98 1F B9 [09:41:13]CheckFolder [09:41:13]dirname=/storage/ofd_packets [09:41:13]CheckFolder done [09:41:13]ProducePacketName [09:41:13]name=ofd_packets/00192492 [09:41:13]NVStorageSaveData ofd_packets/00192492 [09:41:13]File name is /storage/ofd_packets/00192492 [09:41:13]Write 301 bytes [09:41:13]NVStorageSaveData done [09:41:13]OFDSenderStorePacket done [09:41:13]KKMCreateOFDPacket done [09:41:13]NVStorageSaveData kkm_last_timestamp [09:41:13]File name is /storage/kkm_last_timestamp [09:41:13]Write 4 bytes [09:41:13]NVStorageSaveData done [09:41:13]ExternCall_PrintAddStr [09:41:13]wPrintStart [09:41:13]Write to MH i2c: 01 00 00 26 28 4E [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 07 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 07 00 26 28 00 00 00 00 00 FF 0F 63 [09:41:13]RasterBufferAndPrint [09:41:13]line Счет N : (1)31807 [09:41:13]line ИНН: 02508201610067 [09:41:13]line Контрольно-Кассовый Чек [09:41:13]line ПРОДАЖА [09:41:13]line ТРК (МРК, ГНК) : 21 [09:41:13]line Товар: 2710124130 [09:41:13]line Аи-92-К-5 [09:41:13]line 14.950 * 66.90 [09:41:13]line = 1000.16 [09:41:13]line НДС 12% НСП 1% [09:41:13]line > о реализуемом товаре [09:41:13]line ОКРУГЛЕНИЕ: -0.16 [09:41:13]line ИТОГО: 1000.00 [09:41:13]line Внесено: 1000.00 [09:41:13]line СДАЧА: 0.00 [09:41:13]line НСП 1% : 8.85 [09:41:13]line НДС 12% : 106.21 [09:41:13]line Наличными: 1000.00 [09:41:13]line Безнал.: 0.00 [09:41:13]line Место: АЗС № 170 "Партнер Нефть" [09:41:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:41:13]line СНО: Общий режим [09:41:13]line Чек 40 28.10.2024 09:41 [09:41:13]line Смена: 543 ФФД: 1.0 [09:41:13]line ЗНМ: 0300000110 [09:41:13]line РНМ: 0000000000091776 [09:41:13]line Версия ККМ: 001 [09:41:13]line ФМ: 0000000000871754 [09:41:13]line ФД: 192492 [09:41:13]line ФПД: 103811899504574 [09:41:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094116&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192492&fm=103811899504574&tin=02508201610067®Number=0000000000091776&sum=100000 [09:41:13]OFD Sender: Processing packet 192492 [packets to send 75, broken 74] [09:41:13]ProducePacketName [09:41:13]name=ofd_packets/00192492 [09:41:13]OFD Sender: To server: pG, [09:41:13]CommunicateWithHost lk.salyk.kg:30040 [09:41:13]ConnectInit lk.salyk.kg [09:41:13]written 0, free lines is 4095 [09:41:14]Connected sock=11 [09: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 31 37 35 34 0F 01 00 00 E6 8D 07 01 E1 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 3C 5C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EF 02 00 35 04 06 00 5E 6A 97 64 B7 BE 7E D9 D8 72 FC 98 1F B9 [09:41:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B0 1B 47 00 B6 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EF 02 00 F4 03 04 00 01 01 1F 67 B6 04 01 00 00 27 CC 36 09 CA A4 F7 AF [09:41:14]CommunicateWithHost err = 0 [09:41:14]CheckOFDResponse [09:41:14]1017 (14) - 77093643461234 [09:41:14]1041 (16) - 0000000000871754 [09:41:14]1040 (4) - 192492 [09:41:14]1012 (4) - 28.10.2024 03:12 [09:41:14]1206 (1) - 0 [09:41:14]OFD Sender: Remove packet 192492 [09:41:14]ProducePacketName [09:41:14]name=ofd_packets/00192492 [09:41:14]NVStorageDeleteData [09:41:14]Write to MH i2c: 01 00 00 51 28 79 [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: 01 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: 01 07 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: 01 07 00 51 28 00 00 00 00 00 C3 0C 4F [09:41:14]RasterBufferAndPrint [09:41:14]line [09:41:14]line [09:41:14]line [09:41:14]line [09:41:14]line [09:41:14]written 0, free lines is 3276 [09:41:14]MH_Cut [09:41:14]Write to MH i2c: D1 01 00 58 28 01 52 [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: D1 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: D1 01 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: D1 01 00 58 28 00 51 [09:41:14]Write to MH i2c: 01 00 00 59 28 81 [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]OFD Sender: No OFD packet to send [09:41:15]*** Cut start [09:41:15]*** Partial cut [09:41:15]*** CUTSNS_PIN = 1 [09:41:15]*** CUTSNS_PIN = 0 [09:41:15]*** Brake cut motor [09:41:15]Read from MH i2c: 01 [09:41:15]MH_I2C_Read... [09:41:15]*** Stop cut motor [09:41:15]*** Cut end [09:41:15]Read from MH i2c: 01 07 00 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: 01 07 00 59 28 00 00 00 00 00 FF 0F 96 [09:41:15]process_action close_receipt done [09:41:15]requested_data is exist [09:41:15]produce_requested_data [09:41:15]requested_item fm.sn is exist - process it [09:41:15]wFMCommunicate request_size=4 [09:41:15]MH_SAM_APDU [09:41:15]CAPDU: 80 11 00 00 [09:41:15]Write to MH i2c: E2 08 00 5A 28 80 11 00 00 00 00 00 00 FC [09:41:15]Write i2c OK [09:41:15]MH_I2C_Read... [09:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:15]Read from MH i2c: E2 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 17 00 [09:41:15]MH_I2C_Read... [09:41:15]Read from MH i2c: E2 17 00 5A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4F [09:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:41:15]wFMCommunicate OK [09:41:15]requested_item fd.num is exist - process it [09:41:15]SAM_PROTO_GetFieldsCounters [09:41:15]wFMCommunicate request_size=4 [09:41:15]MH_SAM_APDU [09:41:15]CAPDU: 80 13 00 00 [09:41:15]Write to MH i2c: E2 08 00 5B 28 80 13 00 00 00 00 00 00 FF [09:41:15]Write i2c OK [09:41:15]MH_I2C_Read... [09:41:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:16]Read from MH i2c: E2 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 62 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 62 00 5B 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EC EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [09: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EC EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:16]wFMCommunicate OK [09:41:16]SAM_PROTO_GetFieldsCounters done [09:41:16]requested_item shift.num is exist - process it [09:41:16]requested_item shift.opened is exist - process it [09:41:16]req_shift_opened [09:41:16]FM_GetShiftState [09:41:16]SAM_PROTO_GetShiftState [09:41:16]wFMCommunicate request_size=4 [09:41:16]MH_SAM_APDU [09:41:16]CAPDU: 80 13 01 00 [09:41:16]Write to MH i2c: E2 08 00 5C 28 80 13 01 00 00 00 00 00 01 [09:41:16]Write i2c OK [09:41:16]MH_I2C_Read... [09:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:16]Read from MH i2c: E2 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 0E 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 0E 00 5C 28 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 51 [09:41:16]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:41:16]wFMCommunicate OK [09:41:16]SAM_PROTO_GetShiftState done [09:41:16]FM_GetShiftState done [09:41:16]req_shift_opened done [09:41:16]requested_item shift.open_date is exist - process it [09:41:16]req_shift_open_date [09:41:16]req_shift_open_date done [09:41:16]produce_requested_data done [09:41:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192492,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:41:16]process_action_free close_receipt [09:41:16]json_value_free [09:41:16]json_value_free done [09:41:16]process_json_proto returns [09:41:16]Send response to host [09:41:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192492,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:41:16]free response buf [09:41:16]execute_script done [09:41:16]execute_script returns [09:41:16]free content buf [09:41:16]Sock 7.Close socket [09:41:16]Sock 7.Thread stoped [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:45]accept exits with 9 [09:43:45]New connection [09:43:45]New thread 3066563940 created [09:43:45]Thread 3066707300 joined [09:43:45]Waiting for new connection... [09:43:45] Sock 9.Parse request [09:43:45]Sock 9.Check first char [09:43:45]Sock 9.First char is OK [09:43:45]request: POST /json_proto HTTP/1.0 [09:43:45]Method: POST [09:43:45]URL: /json_proto [09:43:45]Method is POST - this is cgi request [09:43:45]url: /json_proto [09:43:45]query_string will be loaded in cgi processing [09:43:45]execute_cgi json_proto POST (null) [09:43:45]execute_cgi path=json_proto method=POST [09:43:45]POST find Content-Length [09:43:45]Host: 172.17.63.131:8080 [09:43:45]Content-Length: 804 [09:43:45]Content-Type: application/json [09:43:45] [09:43:45]POST finish read [09:43:45]Found Content-Length = 804 [09:43:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:45]execute_script... [09:43:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:45]POST & json_proto [09:43:45]process_json_proto [09:43:45]json parsed OK: [09:43:45]protocol is kg_v1.0 [09:43:45]action value=close_receipt [09:43:45]process_action close_receipt [09:43:45]cmd_close_receipt [09:43:45]MH_GetDate [09:43:45]Write to MH i2c: F0 00 00 5D 28 74 [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: F0 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: F0 09 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: F0 09 00 5D 28 00 D6 5C 1F 67 22 05 6E 64 2E [09:43:45]GetLastDocTimeStamp 1730108476 [09:43:45]current date 1730108630 [09:43:45]FM_GetShiftState [09:43:45]SAM_PROTO_GetShiftState [09:43:45]wFMCommunicate request_size=4 [09:43:45]MH_SAM_APDU [09:43:45]CAPDU: 80 13 01 00 [09:43:45]Write to MH i2c: E2 08 00 5E 28 80 13 01 00 00 00 00 00 03 [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:45]Read from MH i2c: E2 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 0E 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 0E 00 5E 28 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 53 [09:43:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:43:45]wFMCommunicate OK [09:43:45]SAM_PROTO_GetShiftState done [09:43:45]FM_GetShiftState done [09:43:45]opened in 1730075620 [09:43:45]opened+sec_in_day 1730162020 [09:43:45]quantity*price = 50041 [09:43:45]sum+1 = 50042 [09:43:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 41 28.10.2024 09:43 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000871754 ФД: 192493 ФПД: 45717116633603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094350&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192493&fm=45717116633603&tin=02508201610067®Number=0000000000091776&sum=50041 [09:43:47]StoreToDocumentArchive [09:43:47]shift 543 fd 192493 [09:43:47]save to /storage/0543/doc_00192493 [09:43:47]save last doc name /storage/0543/doc_00192493 to /storage/kkm_last_doc_name [09:43:47]save OK [09:43:47]Clear old archive folders... [09:43:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:47]tlvbuf is 019E4700 [09:43:47]SAM_PROTO_ClearQueue [09:43:47]wFMCommunicate request_size=4 [09:43:47]MH_SAM_APDU [09:43:47]CAPDU: 80 09 00 00 [09:43:47]Write to MH i2c: E2 08 00 6B 28 80 09 00 00 00 00 00 00 05 [09:43:47]Write i2c OK [09:43:47]MH_I2C_Read... [09:43:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:47]Read from MH i2c: E2 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 03 00 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 03 00 6B 28 00 90 00 07 [09:43:47]RAPDU: 90 00 [09:43:47]wFMCommunicate OK [09:43:47]SAM_PROTO_ClearQueue done [09:43:47]KKMCreateOFDPacket [09:43:47]OFDProtocolAddRootSTLVToBuf [09:43:47]FM_MakeSignedData [09:43:47]FM_MakeSignedData [09:43:47]SAM_PROTO_SignData [09:43:47]wFMCommunicate request_size=4 [09:43:47]MH_SAM_APDU [09:43:47]CAPDU: 80 0D 01 02 [09:43:47]Write to MH i2c: E2 08 00 6C 28 80 0D 01 02 00 00 00 00 0D [09:43:47]Write i2c OK [09:43:47]MH_I2C_Read... [09:43:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:47]Read from MH i2c: E2 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 03 00 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 03 00 6C 28 00 90 00 08 [09:43:47]RAPDU: 90 00 [09:43:47]wFMCommunicate OK [09:43:47]wFMCommunicate request_size=255 [09:43:47]MH_SAM_APDU [09:43:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 D6 5C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EF 02 00 35 04 06 00 29 [09:43:47]Write to MH i2c: E2 02 01 6D 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 D6 5C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EF 02 00 35 04 06 00 29 00 00 FC [09:43:47]Write i2c OK [09:43:47]MH_I2C_Read... [09:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:47]Read from MH i2c: E2 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 03 00 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 03 00 6D 28 00 90 00 09 [09:43:47]RAPDU: 90 00 [09:43:47]wFMCommunicate OK [09:43:47]wFMCommunicate request_size=10 [09:43:47]MH_SAM_APDU [09:43:47]CAPDU: 80 0D 02 02 05 94 58 7F 42 03 [09:43:47]Write to MH i2c: E2 0D 00 6E 28 80 0D 02 02 05 00 94 58 7F 42 03 00 00 CA [09:43:47]Write i2c OK [09:43:47]MH_I2C_Read... [09:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:47]Read from MH i2c: E2 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 03 00 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 03 00 6E 28 00 90 00 0A [09:43:47]RAPDU: 90 00 [09:43:47]wFMCommunicate OK [09:43:47]wFMCommunicate request_size=4 [09:43:47]MH_SAM_APDU [09:43:47]CAPDU: 80 0D 03 02 [09:43:47]Write to MH i2c: E2 08 00 6F 28 80 0D 03 02 00 00 00 00 12 [09:43:47]Write i2c OK [09:43:47]MH_I2C_Read... [09:43:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:47]Read from MH i2c: E2 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 0B 00 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 0B 00 6F 28 00 04 9B E9 D0 66 99 E9 69 90 00 BC [09:43:47]RAPDU: 04 9B E9 D0 66 99 E9 69 90 00 [09:43:47]wFMCommunicate OK [09:43:47]SAM_PROTO_SignData done [09:43:47]FM_MakeSignedData done [09:43:47]CreateOFDProtocolMessage [09:43:47]wFMCommunicate request_size=4 [09:43:47]MH_SAM_APDU [09:43:47]CAPDU: 80 11 00 00 [09:43:47]Write to MH i2c: E2 08 00 70 28 80 11 00 00 00 00 00 00 12 [09:43:47]Write i2c OK [09:43:47]MH_I2C_Read... [09:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:47]Read from MH i2c: E2 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 17 00 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 17 00 70 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 65 [09:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:43:47]wFMCommunicate OK [09:43:47]CreateOFDProtocolMessage done [09:43:47]OFDSenderStorePacket 192493 [09:43:47]StoreOFDPacket docnum=192493 [09:43:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 65 07 01 2A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 D6 5C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EF 02 00 35 04 06 00 29 94 58 7F 42 03 04 9B E9 D0 66 99 E9 69 [09:43:47]CheckFolder [09:43:47]dirname=/storage/ofd_packets [09:43:47]CheckFolder done [09:43:47]ProducePacketName [09:43:47]name=ofd_packets/00192493 [09:43:47]NVStorageSaveData ofd_packets/00192493 [09:43:47]File name is /storage/ofd_packets/00192493 [09:43:47]Write 301 bytes [09:43:47]NVStorageSaveData done [09:43:47]OFDSenderStorePacket done [09:43:47]KKMCreateOFDPacket done [09:43:47]NVStorageSaveData kkm_last_timestamp [09:43:47]File name is /storage/kkm_last_timestamp [09:43:47]Write 4 bytes [09:43:47]NVStorageSaveData done [09:43:47]ExternCall_PrintAddStr [09:43:47]wPrintStart [09:43:47]Write to MH i2c: 01 00 00 71 28 99 [09:43:47]Write i2c OK [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: 01 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: 01 07 00 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: 01 07 00 71 28 00 00 00 00 00 FF 0F AE [09:43:47]RasterBufferAndPrint [09:43:47]line Счет N : (1)31808 [09:43:47]line ИНН: 02508201610067 [09:43:47]line Контрольно-Кассовый Чек [09:43:47]line ПРОДАЖА [09:43:47]line ТРК (МРК, ГНК) : 21 [09:43:47]line Товар: 2710124130 [09:43:47]line Аи-92-К-5 [09:43:47]line 7.480 * 66.90 [09:43:47]line = 500.41 [09:43:47]line НДС 12% НСП 1% [09:43:47]line > о реализуемом товаре [09:43:47]line ИТОГО: 500.41 [09:43:47]line НСП 1% : 4.43 [09:43:47]line НДС 12% : 53.14 [09:43:47]line Наличными: 0.00 [09:43:47]line Безнал.: 500.41 [09:43:47]line Место: АЗС № 170 "Партнер Нефть" [09:43:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:43:47]line СНО: Общий режим [09:43:47]line Чек 41 28.10.2024 09:43 [09:43:47]line Смена: 543 ФФД: 1.0 [09:43:47]line ЗНМ: 0300000110 [09:43:47]line РНМ: 0000000000091776 [09:43:47]line Версия ККМ: 001 [09:43:47]line Платежная система: О! деньги [09:43:47]line ФМ: 0000000000871754 [09:43:47]line ФД: 192493 [09:43:47]line ФПД: 45717116633603 [09:43:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094350&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192493&fm=45717116633603&tin=02508201610067®Number=0000000000091776&sum=50041 [09:43:47]written 0, free lines is 4095 [09:43:47]OFD Sender: Processing packet 192493 [packets to send 75, broken 74] [09:43:47]ProducePacketName [09:43:47]name=ofd_packets/00192493 [09:43:47]OFD Sender: To server: pG, [09:43:47]CommunicateWithHost lk.salyk.kg:30040 [09:43:47]ConnectInit lk.salyk.kg [09:43:47]Connected sock=11 [09:43:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 65 07 01 2A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 D6 5C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EF 02 00 35 04 06 00 29 94 58 7F 42 03 04 9B E9 D0 66 99 E9 69 [09:43:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C1 C0 47 00 AB 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EF 02 00 F4 03 04 00 9A 01 1F 67 B6 04 01 00 00 59 59 E0 20 C4 86 E1 F0 [09:43:48]CommunicateWithHost err = 0 [09:43:48]CheckOFDResponse [09:43:48]1017 (14) - 77093643461234 [09:43:48]1041 (16) - 0000000000871754 [09:43:48]1040 (4) - 192493 [09:43:48]1012 (4) - 28.10.2024 03:14 [09:43:48]1206 (1) - 0 [09:43:48]OFD Sender: Remove packet 192493 [09:43:48]ProducePacketName [09:43:48]name=ofd_packets/00192493 [09:43:48]NVStorageDeleteData [09:43:48]Write to MH i2c: 01 00 00 9B 28 C3 [09:43:48]Write i2c OK [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: 01 [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: 01 07 00 [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: 01 07 00 9B 28 00 00 00 00 00 BA 0C 90 [09:43:48]RasterBufferAndPrint [09:43:48]line [09:43:48]line [09:43:48]line [09:43:48]line [09:43:48]line [09:43:48]written 0, free lines is 3264 [09:43:48]MH_Cut [09:43:48]Write to MH i2c: D1 01 00 A2 28 01 9C [09:43:48]Write i2c OK [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: D1 [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: D1 01 00 [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: D1 01 00 A2 28 00 9B [09:43:48]Write to MH i2c: 01 00 00 A3 28 CB [09:43:48]Write i2c OK [09:43:48]MH_I2C_Read... [09:43:48]OFD Sender: No OFD packet to send [09:43:48]*** Cut start [09:43:48]*** Partial cut [09:43:48]*** CUTSNS_PIN = 1 [09:43:48]*** CUTSNS_PIN = 0 [09:43:49]*** Brake cut motor [09:43:49]Read from MH i2c: 01 [09:43:49]MH_I2C_Read... [09:43:49]*** Stop cut motor [09:43:49]*** Cut end [09:43:49]Read from MH i2c: 01 07 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: 01 07 00 A3 28 00 00 00 00 00 FF 0F E0 [09:43:49]process_action close_receipt done [09:43:49]requested_data is exist [09:43:49]produce_requested_data [09:43:49]requested_item fm.sn is exist - process it [09:43:49]wFMCommunicate request_size=4 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 11 00 00 [09:43:49]Write to MH i2c: E2 08 00 A4 28 80 11 00 00 00 00 00 00 46 [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:49]Read from MH i2c: E2 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 17 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 17 00 A4 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 99 [09:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:43:49]wFMCommunicate OK [09:43:49]requested_item fd.num is exist - process it [09:43:49]SAM_PROTO_GetFieldsCounters [09:43:49]wFMCommunicate request_size=4 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 13 00 00 [09:43:49]Write to MH i2c: E2 08 00 A5 28 80 13 00 00 00 00 00 00 49 [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:49]Read from MH i2c: E2 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 62 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 62 00 A5 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 ED EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [09:43:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 ED EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:49]wFMCommunicate OK [09:43:49]SAM_PROTO_GetFieldsCounters done [09:43:49]requested_item shift.num is exist - process it [09:43:49]requested_item shift.opened is exist - process it [09:43:49]req_shift_opened [09:43:49]FM_GetShiftState [09:43:49]SAM_PROTO_GetShiftState [09:43:49]wFMCommunicate request_size=4 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 13 01 00 [09:43:49]Write to MH i2c: E2 08 00 A6 28 80 13 01 00 00 00 00 00 4B [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:49]Read from MH i2c: E2 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 0E 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 0E 00 A6 28 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 9B [09:43:49]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:43:49]wFMCommunicate OK [09:43:49]SAM_PROTO_GetShiftState done [09:43:49]FM_GetShiftState done [09:43:49]req_shift_opened done [09:43:49]requested_item shift.open_date is exist - process it [09:43:49]req_shift_open_date [09:43:49]req_shift_open_date done [09:43:49]produce_requested_data done [09:43:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192493,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:43:49]process_action_free close_receipt [09:43:49]json_value_free [09:43:49]json_value_free done [09:43:49]process_json_proto returns [09:43:49]Send response to host [09:43:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192493,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:43:49]free response buf [09:43:49]execute_script done [09:43:49]execute_script returns [09:43:49]free content buf [09:43:49]Sock 9.Close socket [09:43:49]Sock 9.Thread stoped [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:20]accept exits with 7 [09:44:20]New connection [09:44:20]New thread 3066707300 created [09:44:20]Thread 3066563940 joined [09:44:20]Waiting for new connection... [09:44:20] Sock 7.Parse request [09:44:20]Sock 7.Check first char [09:44:20]Sock 7.First char is OK [09:44:20]request: POST /json_proto HTTP/1.0 [09:44:20]Method: POST [09:44:20]URL: /json_proto [09:44:20]Method is POST - this is cgi request [09:44:20]url: /json_proto [09:44:20]query_string will be loaded in cgi processing [09:44:20]execute_cgi json_proto POST (null) [09:44:20]execute_cgi path=json_proto method=POST [09:44:20]POST find Content-Length [09:44:20]Host: 172.17.63.131:8080 [09:44:20]Content-Length: 676 [09:44:20]Content-Type: application/json [09:44:20] [09:44:20]POST finish read [09:44:20]Found Content-Length = 676 [09:44:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:20]execute_script... [09:44:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:20]POST & json_proto [09:44:20]process_json_proto [09:44:20]json parsed OK: [09:44:20]protocol is kg_v1.0 [09:44:20]action value=close_receipt [09:44:20]process_action close_receipt [09:44:20]cmd_close_receipt [09:44:20]MH_GetDate [09:44:20]Write to MH i2c: F0 00 00 A7 28 BE [09:44:20]Write i2c OK [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: F0 [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: F0 09 00 [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: F0 09 00 A7 28 00 F8 5C 1F 67 22 05 6E 64 9A [09:44:20]GetLastDocTimeStamp 1730108630 [09:44:20]current date 1730108664 [09:44:20]FM_GetShiftState [09:44:20]SAM_PROTO_GetShiftState [09:44:20]wFMCommunicate request_size=4 [09:44:20]MH_SAM_APDU [09:44:20]CAPDU: 80 13 01 00 [09:44:20]Write to MH i2c: E2 08 00 A8 28 80 13 01 00 00 00 00 00 4D [09:44:20]Write i2c OK [09:44:20]MH_I2C_Read... [09:44:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:20]Read from MH i2c: E2 [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: E2 0E 00 [09:44:20]MH_I2C_Read... [09:44:20]Read from MH i2c: E2 0E 00 A8 28 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 9D [09:44:20]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:44:20]wFMCommunicate OK [09:44:20]SAM_PROTO_GetShiftState done [09:44:20]FM_GetShiftState done [09:44:20]opened in 1730075620 [09:44:20]opened+sec_in_day 1730162020 [09:44:20]quantity*price = 50041 [09:44:20]sum+1 = 50042 [09:44:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 42 28.10.2024 09:44 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192494 ФПД: 242425933041435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094424&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192494&fm=242425933041435&tin=02508201610067®Number=0000000000091776&sum=50000 [09:44:21]StoreToDocumentArchive [09:44:21]shift 543 fd 192494 [09:44:21]save to /storage/0543/doc_00192494 [09:44:21]save last doc name /storage/0543/doc_00192494 to /storage/kkm_last_doc_name [09:44:21]save OK [09:44:21]Clear old archive folders... [09:44:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:21]tlvbuf is B6F1C4F0 [09:44:21]SAM_PROTO_ClearQueue [09:44:21]wFMCommunicate request_size=4 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 09 00 00 [09:44:21]Write to MH i2c: E2 08 00 B5 28 80 09 00 00 00 00 00 00 4F [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 03 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 03 00 B5 28 00 90 00 51 [09:44:21]RAPDU: 90 00 [09:44:21]wFMCommunicate OK [09:44:21]SAM_PROTO_ClearQueue done [09:44:21]KKMCreateOFDPacket [09:44:21]OFDProtocolAddRootSTLVToBuf [09:44:21]FM_MakeSignedData [09:44:21]FM_MakeSignedData [09:44:21]SAM_PROTO_SignData [09:44:21]wFMCommunicate request_size=4 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 0D 01 02 [09:44:21]Write to MH i2c: E2 08 00 B6 28 80 0D 01 02 00 00 00 00 57 [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 03 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 03 00 B6 28 00 90 00 52 [09:44:21]RAPDU: 90 00 [09:44:21]wFMCommunicate OK [09:44:21]wFMCommunicate request_size=255 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F8 5C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EF 02 00 35 04 06 00 DC [09:44:21]Write to MH i2c: E2 02 01 B7 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F8 5C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EF 02 00 35 04 06 00 DC 00 00 CB [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 03 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 03 00 B7 28 00 90 00 53 [09:44:21]RAPDU: 90 00 [09:44:21]wFMCommunicate OK [09:44:21]wFMCommunicate request_size=10 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 0D 02 02 05 7C 2F 9F 8F 1B [09:44:21]Write to MH i2c: E2 0D 00 B8 28 80 0D 02 02 05 00 7C 2F 9F 8F 1B 00 00 58 [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 03 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 03 00 B8 28 00 90 00 54 [09:44:21]RAPDU: 90 00 [09:44:21]wFMCommunicate OK [09:44:21]wFMCommunicate request_size=4 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 0D 03 02 [09:44:21]Write to MH i2c: E2 08 00 B9 28 80 0D 03 02 00 00 00 00 5C [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 0B 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 0B 00 B9 28 00 A0 21 EE 0D 2F 7C 60 F1 90 00 15 [09:44:21]RAPDU: A0 21 EE 0D 2F 7C 60 F1 90 00 [09:44:21]wFMCommunicate OK [09:44:21]SAM_PROTO_SignData done [09:44:21]FM_MakeSignedData done [09:44:21]CreateOFDProtocolMessage [09:44:21]wFMCommunicate request_size=4 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 11 00 00 [09:44:21]Write to MH i2c: E2 08 00 BA 28 80 11 00 00 00 00 00 00 5C [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 17 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 17 00 BA 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AF [09:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:44:21]wFMCommunicate OK [09:44:21]CreateOFDProtocolMessage done [09:44:21]OFDSenderStorePacket 192494 [09:44:21]StoreOFDPacket docnum=192494 [09:44:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0F 0B 07 01 57 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F8 5C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EF 02 00 35 04 06 00 DC 7C 2F 9F 8F 1B A0 21 EE 0D 2F 7C 60 F1 [09:44:21]CheckFolder [09:44:21]dirname=/storage/ofd_packets [09:44:21]CheckFolder done [09:44:21]ProducePacketName [09:44:21]name=ofd_packets/00192494 [09:44:21]NVStorageSaveData ofd_packets/00192494 [09:44:21]File name is /storage/ofd_packets/00192494 [09:44:21]Write 301 bytes [09:44:21]NVStorageSaveData done [09:44:21]OFDSenderStorePacket done [09:44:21]KKMCreateOFDPacket done [09:44:21]NVStorageSaveData kkm_last_timestamp [09:44:21]File name is /storage/kkm_last_timestamp [09:44:21]Write 4 bytes [09:44:21]NVStorageSaveData done [09:44:21]ExternCall_PrintAddStr [09:44:21]wPrintStart [09:44:21]Write to MH i2c: 01 00 00 BB 28 E3 [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: 01 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: 01 07 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: 01 07 00 BB 28 00 00 00 00 00 FF 0F F8 [09:44:21]RasterBufferAndPrint [09:44:21]line Счет N : (1)31810 [09:44:21]line ИНН: 02508201610067 [09:44:21]line Контрольно-Кассовый Чек [09:44:21]line ПРОДАЖА [09:44:21]line ТРК (МРК, ГНК) : 21 [09:44:21]line Товар: 2710124130 [09:44:21]line Аи-92-К-5 [09:44:21]line 7.480 * 66.90 [09:44:21]line = 500.41 [09:44:21]line НДС 12% НСП 1% [09:44:21]line > о реализуемом товаре [09:44:21]line ОКРУГЛЕНИЕ: -0.41 [09:44:21]line ИТОГО: 500.00 [09:44:21]line Внесено: 500.00 [09:44:21]line СДАЧА: 0.00 [09:44:21]line НСП 1% : 4.43 [09:44:21]line НДС 12% : 53.14 [09:44:21]line Наличными: 500.00 [09:44:21]line Безнал.: 0.00 [09:44:21]line Место: АЗС № 170 "Партнер Нефть" [09:44:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:44:21]line СНО: Общий режим [09:44:21]line Чек 42 28.10.2024 09:44 [09:44:21]line Смена: 543 ФФД: 1.0 [09:44:21]line ЗНМ: 0300000110 [09:44:21]line РНМ: 0000000000091776 [09:44:21]line Версия ККМ: 001 [09:44:21]line ФМ: 0000000000871754 [09:44:21]line ФД: 192494 [09:44:21]line ФПД: 242425933041435 [09:44:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094424&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192494&fm=242425933041435&tin=02508201610067®Number=0000000000091776&sum=50000 [09:44:22]OFD Sender: Processing packet 192494 [packets to send 75, broken 74] [09:44:22]ProducePacketName [09:44:22]name=ofd_packets/00192494 [09:44:22]OFD Sender: To server: pG, [09:44:22]CommunicateWithHost lk.salyk.kg:30040 [09:44:22]ConnectInit lk.salyk.kg [09:44:22]written 0, free lines is 4095 [09:44:22]Connected sock=10 [09:44:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0F 0B 07 01 57 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 F8 5C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EF 02 00 35 04 06 00 DC 7C 2F 9F 8F 1B A0 21 EE 0D 2F 7C 60 F1 [09:44:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 15 47 47 00 56 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EF 02 00 F4 03 04 00 BD 01 1F 67 B6 04 01 00 00 DA 7D DE CE E6 68 1D 8F [09:44:22]CommunicateWithHost err = 0 [09:44:22]CheckOFDResponse [09:44:22]1017 (14) - 77093643461234 [09:44:22]1041 (16) - 0000000000871754 [09:44:22]1040 (4) - 192494 [09:44:22]1012 (4) - 28.10.2024 03:15 [09:44:22]1206 (1) - 0 [09:44:22]OFD Sender: Remove packet 192494 [09:44:22]ProducePacketName [09:44:22]name=ofd_packets/00192494 [09:44:22]NVStorageDeleteData [09:44:22]Write to MH i2c: 01 00 00 E6 28 0E [09:44:22]Write i2c OK [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: 01 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: 01 07 00 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: 01 07 00 E6 28 00 00 00 00 00 A7 0C C8 [09:44:22]RasterBufferAndPrint [09:44:22]line [09:44:22]line [09:44:22]line [09:44:22]line [09:44:22]line [09:44:22]written 0, free lines is 3245 [09:44:22]MH_Cut [09:44:22]Write to MH i2c: D1 01 00 ED 28 01 E7 [09:44:22]Write i2c OK [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: D1 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: D1 01 00 [09:44:22]MH_I2C_Read... [09:44:22]Read from MH i2c: D1 01 00 ED 28 00 E6 [09:44:22]Write to MH i2c: 01 00 00 EE 28 16 [09:44:22]Write i2c OK [09:44:22]MH_I2C_Read... [09:44:22]OFD Sender: No OFD packet to send [09:44:23]*** Cut start [09:44:23]*** Partial cut [09:44:23]*** CUTSNS_PIN = 1 [09:44:23]*** CUTSNS_PIN = 0 [09:44:23]*** Brake cut motor [09:44:24]Read from MH i2c: 01 [09:44:24]MH_I2C_Read... [09:44:24]*** Stop cut motor [09:44:24]*** Cut end [09:44:24]Read from MH i2c: 01 07 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: 01 07 00 EE 28 00 00 00 00 00 FF 0F 2B [09:44:24]process_action close_receipt done [09:44:24]requested_data is exist [09:44:24]produce_requested_data [09:44:24]requested_item fm.sn is exist - process it [09:44:24]wFMCommunicate request_size=4 [09:44:24]MH_SAM_APDU [09:44:24]CAPDU: 80 11 00 00 [09:44:24]Write to MH i2c: E2 08 00 EF 28 80 11 00 00 00 00 00 00 91 [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:24]Read from MH i2c: E2 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 17 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 17 00 EF 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E4 [09:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:44:24]wFMCommunicate OK [09:44:24]requested_item fd.num is exist - process it [09:44:24]SAM_PROTO_GetFieldsCounters [09:44:24]wFMCommunicate request_size=4 [09:44:24]MH_SAM_APDU [09:44:24]CAPDU: 80 13 00 00 [09:44:24]Write to MH i2c: E2 08 00 F0 28 80 13 00 00 00 00 00 00 94 [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:24]Read from MH i2c: E2 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 62 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 62 00 F0 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EE EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [09:44:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EE EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:24]wFMCommunicate OK [09:44:24]SAM_PROTO_GetFieldsCounters done [09:44:24]requested_item shift.num is exist - process it [09:44:24]requested_item shift.opened is exist - process it [09:44:24]req_shift_opened [09:44:24]FM_GetShiftState [09:44:24]SAM_PROTO_GetShiftState [09:44:24]wFMCommunicate request_size=4 [09:44:24]MH_SAM_APDU [09:44:24]CAPDU: 80 13 01 00 [09:44:24]Write to MH i2c: E2 08 00 F1 28 80 13 01 00 00 00 00 00 96 [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:24]Read from MH i2c: E2 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 0E 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: E2 0E 00 F1 28 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E6 [09:44:24]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:44:24]wFMCommunicate OK [09:44:24]SAM_PROTO_GetShiftState done [09:44:24]FM_GetShiftState done [09:44:24]req_shift_opened done [09:44:24]requested_item shift.open_date is exist - process it [09:44:24]req_shift_open_date [09:44:24]req_shift_open_date done [09:44:24]produce_requested_data done [09:44:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192494,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:44:24]process_action_free close_receipt [09:44:24]json_value_free [09:44:24]json_value_free done [09:44:24]process_json_proto returns [09:44:24]Send response to host [09:44:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192494,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:44:24]free response buf [09:44:24]execute_script done [09:44:24]execute_script returns [09:44:24]free content buf [09:44:24]Sock 7.Close socket [09:44:24]Sock 7.Thread stoped [09:44:27]OFD Sender: No OFD packet to send [09:44:29]accept exits with 9 [09:44:29]New connection [09:44:29]New thread 3066563940 created [09:44:29]Thread 3066707300 joined [09:44:29]Waiting for new connection... [09:44:29] Sock 9.Parse request [09:44:29]Sock 9.Check first char [09:44:29]Sock 9.First char is OK [09:44:29]request: POST /json_proto HTTP/1.0 [09:44:29]Method: POST [09:44:29]URL: /json_proto [09:44:29]Method is POST - this is cgi request [09:44:29]url: /json_proto [09:44:29]query_string will be loaded in cgi processing [09:44:29]execute_cgi json_proto POST (null) [09:44:29]execute_cgi path=json_proto method=POST [09:44:29]POST find Content-Length [09:44:29]Host: 172.17.63.131:8080 [09:44:29]Content-Length: 676 [09:44:29]Content-Type: application/json [09:44:29] [09:44:29]POST finish read [09:44:29]Found Content-Length = 676 [09:44:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:29]execute_script... [09:44:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:29]POST & json_proto [09:44:29]process_json_proto [09:44:29]json parsed OK: [09:44:29]protocol is kg_v1.0 [09:44:29]action value=close_receipt [09:44:29]process_action close_receipt [09:44:29]cmd_close_receipt [09:44:29]MH_GetDate [09:44:29]Write to MH i2c: F0 00 00 F2 28 09 [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: F0 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: F0 09 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: F0 09 00 F2 28 00 01 5D 1F 67 22 05 6E 64 EF [09:44:29]GetLastDocTimeStamp 1730108664 [09:44:29]current date 1730108673 [09:44:29]FM_GetShiftState [09:44:29]SAM_PROTO_GetShiftState [09:44:29]wFMCommunicate request_size=4 [09:44:29]MH_SAM_APDU [09:44:29]CAPDU: 80 13 01 00 [09:44:29]Write to MH i2c: E2 08 00 F3 28 80 13 01 00 00 00 00 00 98 [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:29]Read from MH i2c: E2 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 0E 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 0E 00 F3 28 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E8 [09:44:29]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:44:29]wFMCommunicate OK [09:44:29]SAM_PROTO_GetShiftState done [09:44:29]FM_GetShiftState done [09:44:29]opened in 1730075620 [09:44:29]opened+sec_in_day 1730162020 [09:44:29]quantity*price = 40006 [09:44:29]sum+1 = 40007 [09:44:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 43 28.10.2024 09:44 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192495 ФПД: 34980745004008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094433&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192495&fm=34980745004008&tin=02508201610067®Number=0000000000091776&sum=40000 [09:44:30]StoreToDocumentArchive [09:44:30]shift 543 fd 192495 [09:44:30]save to /storage/0543/doc_00192495 [09:44:30]save last doc name /storage/0543/doc_00192495 to /storage/kkm_last_doc_name [09:44:30]save OK [09:44:30]Clear old archive folders... [09:44:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:30]tlvbuf is 01971170 [09:44:30]SAM_PROTO_ClearQueue [09:44:30]wFMCommunicate request_size=4 [09:44:30]MH_SAM_APDU [09:44:30]CAPDU: 80 09 00 00 [09:44:30]Write to MH i2c: E2 08 00 00 29 80 09 00 00 00 00 00 00 9B [09:44:30]Write i2c OK [09:44:30]MH_I2C_Read... [09:44:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:30]Read from MH i2c: E2 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 03 00 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 03 00 00 29 00 90 00 9D [09:44:30]RAPDU: 90 00 [09:44:30]wFMCommunicate OK [09:44:30]SAM_PROTO_ClearQueue done [09:44:30]KKMCreateOFDPacket [09:44:30]OFDProtocolAddRootSTLVToBuf [09:44:30]FM_MakeSignedData [09:44:30]FM_MakeSignedData [09:44:30]SAM_PROTO_SignData [09:44:30]wFMCommunicate request_size=4 [09:44:30]MH_SAM_APDU [09:44:30]CAPDU: 80 0D 01 02 [09:44:30]Write to MH i2c: E2 08 00 01 29 80 0D 01 02 00 00 00 00 A3 [09:44:30]Write i2c OK [09:44:30]MH_I2C_Read... [09:44:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:30]Read from MH i2c: E2 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 03 00 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 03 00 01 29 00 90 00 9E [09:44:30]RAPDU: 90 00 [09:44:30]wFMCommunicate OK [09:44:30]wFMCommunicate request_size=255 [09:44:30]MH_SAM_APDU [09: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 01 5D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EF 02 00 35 04 06 00 1F [09:44:30]Write to MH i2c: E2 02 01 02 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 01 5D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EF 02 00 35 04 06 00 1F 00 00 35 [09:44:30]Write i2c OK [09:44:30]MH_I2C_Read... [09:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:30]Read from MH i2c: E2 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 03 00 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 03 00 02 29 00 90 00 9F [09:44:30]RAPDU: 90 00 [09:44:30]wFMCommunicate OK [09:44:30]wFMCommunicate request_size=10 [09:44:30]MH_SAM_APDU [09:44:30]CAPDU: 80 0D 02 02 05 D0 96 E1 43 E8 [09:44:30]Write to MH i2c: E2 0D 00 03 29 80 0D 02 02 05 00 D0 96 E1 43 E8 00 00 22 [09:44:30]Write i2c OK [09:44:30]MH_I2C_Read... [09:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:30]Read from MH i2c: E2 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 03 00 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: E2 03 00 03 29 00 90 00 A0 [09:44:30]RAPDU: 90 00 [09:44:30]wFMCommunicate OK [09:44:30]wFMCommunicate request_size=4 [09:44:30]MH_SAM_APDU [09:44:30]CAPDU: 80 0D 03 02 [09:44:30]Write to MH i2c: E2 08 00 04 29 80 0D 03 02 00 00 00 00 A8 [09:44:30]Write i2c OK [09:44:30]MH_I2C_Read... [09:44:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:31]Read from MH i2c: E2 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 0B 00 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 0B 00 04 29 00 59 11 81 4F 17 21 6B 64 90 00 EA [09:44:31]RAPDU: 59 11 81 4F 17 21 6B 64 90 00 [09:44:31]wFMCommunicate OK [09:44:31]SAM_PROTO_SignData done [09:44:31]FM_MakeSignedData done [09:44:31]CreateOFDProtocolMessage [09:44:31]wFMCommunicate request_size=4 [09:44:31]MH_SAM_APDU [09:44:31]CAPDU: 80 11 00 00 [09:44:31]Write to MH i2c: E2 08 00 05 29 80 11 00 00 00 00 00 00 A8 [09:44:31]Write i2c OK [09:44:31]MH_I2C_Read... [09:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:31]Read from MH i2c: E2 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 17 00 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 17 00 05 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FB [09:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:44:31]wFMCommunicate OK [09:44:31]CreateOFDProtocolMessage done [09:44:31]OFDSenderStorePacket 192495 [09:44:31]StoreOFDPacket docnum=192495 [09:44:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F0 9B 07 01 49 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 01 5D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EF 02 00 35 04 06 00 1F D0 96 E1 43 E8 59 11 81 4F 17 21 6B 64 [09:44:31]CheckFolder [09:44:31]dirname=/storage/ofd_packets [09:44:31]CheckFolder done [09:44:31]ProducePacketName [09:44:31]name=ofd_packets/00192495 [09:44:31]NVStorageSaveData ofd_packets/00192495 [09:44:31]File name is /storage/ofd_packets/00192495 [09:44:31]Write 301 bytes [09:44:31]NVStorageSaveData done [09:44:31]OFDSenderStorePacket done [09:44:31]KKMCreateOFDPacket done [09:44:31]NVStorageSaveData kkm_last_timestamp [09:44:31]File name is /storage/kkm_last_timestamp [09:44:31]Write 4 bytes [09:44:31]NVStorageSaveData done [09:44:31]ExternCall_PrintAddStr [09:44:31]wPrintStart [09:44:31]Write to MH i2c: 01 00 00 06 29 2F [09:44:31]Write i2c OK [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: 01 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: 01 07 00 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: 01 07 00 06 29 00 00 00 00 00 FF 0F 44 [09:44:31]RasterBufferAndPrint [09:44:31]line Счет N : (1)31809 [09:44:31]line ИНН: 02508201610067 [09:44:31]line Контрольно-Кассовый Чек [09:44:31]line ПРОДАЖА [09:44:31]line ТРК (МРК, ГНК) : 12 [09:44:31]line Товар: 2710124130 [09:44:31]line Аи-92-К-5 [09:44:31]line 5.980 * 66.90 [09:44:31]line = 400.06 [09:44:31]line НДС 12% НСП 1% [09:44:31]line > о реализуемом товаре [09:44:31]line ОКРУГЛЕНИЕ: -0.06 [09:44:31]line ИТОГО: 400.00 [09:44:31]line Внесено: 400.00 [09:44:31]line СДАЧА: 0.00 [09:44:31]line НСП 1% : 3.54 [09:44:31]line НДС 12% : 42.48 [09:44:31]line Наличными: 400.00 [09:44:31]line Безнал.: 0.00 [09:44:31]line Место: АЗС № 170 "Партнер Нефть" [09:44:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:44:31]line СНО: Общий режим [09:44:31]line Чек 43 28.10.2024 09:44 [09:44:31]line Смена: 543 ФФД: 1.0 [09:44:31]line ЗНМ: 0300000110 [09:44:31]line РНМ: 0000000000091776 [09:44:31]line Версия ККМ: 001 [09:44:31]line ФМ: 0000000000871754 [09:44:31]line ФД: 192495 [09:44:31]line ФПД: 34980745004008 [09:44:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094433&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192495&fm=34980745004008&tin=02508201610067®Number=0000000000091776&sum=40000 [09:44:31]written 0, free lines is 4095 [09:44:31]OFD Sender: Processing packet 192495 [packets to send 75, broken 74] [09:44:31]ProducePacketName [09:44:31]name=ofd_packets/00192495 [09:44:31]OFD Sender: To server: pG, [09:44:31]CommunicateWithHost lk.salyk.kg:30040 [09:44:31]ConnectInit lk.salyk.kg [09:44:31]Connected sock=10 [09: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 31 37 35 34 0F 01 00 00 F0 9B 07 01 49 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 01 5D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EF 02 00 35 04 06 00 1F D0 96 E1 43 E8 59 11 81 4F 17 21 6B 64 [09:44:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2B A4 47 00 71 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 31 37 35 34 10 04 04 00 EF EF 02 00 F4 03 04 00 C6 01 1F 67 B6 04 01 00 00 DF 79 18 D6 CE 5F 5D 87 [09:44:31]CommunicateWithHost err = 0 [09:44:31]CheckOFDResponse [09:44:31]1017 (14) - 77093643461234 [09:44:31]1041 (16) - 0000000000871754 [09:44:31]1040 (4) - 192495 [09:44:31]1012 (4) - 28.10.2024 03:15 [09:44:31]1206 (1) - 0 [09:44:31]OFD Sender: Remove packet 192495 [09:44:31]ProducePacketName [09:44:31]name=ofd_packets/00192495 [09:44:31]NVStorageDeleteData [09:44:31]Write to MH i2c: 01 00 00 31 29 5A [09:44:31]Write i2c OK [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: 01 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: 01 07 00 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: 01 07 00 31 29 00 00 00 00 00 AF 0C 1C [09:44:31]RasterBufferAndPrint [09:44:31]line [09:44:31]line [09:44:31]line [09:44:31]line [09:44:31]line [09:44:31]written 0, free lines is 3257 [09:44:31]MH_Cut [09:44:31]Write to MH i2c: D1 01 00 38 29 01 33 [09:44:31]Write i2c OK [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: D1 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: D1 01 00 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: D1 01 00 38 29 00 32 [09:44:31]Write to MH i2c: 01 00 00 39 29 62 [09:44:31]Write i2c OK [09:44:31]MH_I2C_Read... [09:44:32]OFD Sender: No OFD packet to send [09:44:32]*** Cut start [09:44:32]*** Partial cut [09:44:32]*** CUTSNS_PIN = 1 [09:44:32]*** CUTSNS_PIN = 0 [09:44:32]*** Brake cut motor [09:44:33]Read from MH i2c: 01 [09:44:33]MH_I2C_Read... [09:44:33]*** Stop cut motor [09:44:33]*** Cut end [09:44:33]Read from MH i2c: 01 07 00 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: 01 07 00 39 29 00 00 00 00 00 FF 0F 77 [09:44:33]process_action close_receipt done [09:44:33]requested_data is exist [09:44:33]produce_requested_data [09:44:33]requested_item fm.sn is exist - process it [09:44:33]wFMCommunicate request_size=4 [09:44:33]MH_SAM_APDU [09:44:33]CAPDU: 80 11 00 00 [09:44:33]Write to MH i2c: E2 08 00 3A 29 80 11 00 00 00 00 00 00 DD [09:44:33]Write i2c OK [09:44:33]MH_I2C_Read... [09:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:33]Read from MH i2c: E2 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 17 00 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 17 00 3A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 30 [09:44:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:44:33]wFMCommunicate OK [09:44:33]requested_item fd.num is exist - process it [09:44:33]SAM_PROTO_GetFieldsCounters [09:44:33]wFMCommunicate request_size=4 [09:44:33]MH_SAM_APDU [09:44:33]CAPDU: 80 13 00 00 [09:44:33]Write to MH i2c: E2 08 00 3B 29 80 13 00 00 00 00 00 00 E0 [09:44:33]Write i2c OK [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 [09:44:33]MH_I2C_Read... [09:44:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:33]Read from MH i2c: E2 62 00 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 62 00 3B 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EF EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [09:44:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EF EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:33]wFMCommunicate OK [09:44:33]SAM_PROTO_GetFieldsCounters done [09:44:33]requested_item shift.num is exist - process it [09:44:33]requested_item shift.opened is exist - process it [09:44:33]req_shift_opened [09:44:33]FM_GetShiftState [09:44:33]SAM_PROTO_GetShiftState [09:44:33]wFMCommunicate request_size=4 [09:44:33]MH_SAM_APDU [09:44:33]CAPDU: 80 13 01 00 [09:44:33]Write to MH i2c: E2 08 00 3C 29 80 13 01 00 00 00 00 00 E2 [09:44:33]Write i2c OK [09:44:33]MH_I2C_Read... [09:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:33]Read from MH i2c: E2 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 0E 00 [09:44:33]MH_I2C_Read... [09:44:33]Read from MH i2c: E2 0E 00 3C 29 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 32 [09:44:33]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:44:33]wFMCommunicate OK [09:44:33]SAM_PROTO_GetShiftState done [09:44:33]FM_GetShiftState done [09:44:33]req_shift_opened done [09:44:33]requested_item shift.open_date is exist - process it [09:44:33]req_shift_open_date [09:44:33]req_shift_open_date done [09:44:33]produce_requested_data done [09:44:33]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192495,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:44:33]process_action_free close_receipt [09:44:33]json_value_free [09:44:33]json_value_free done [09:44:33]process_json_proto returns [09:44:33]Send response to host [09:44:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192495,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:44:33]free response buf [09:44:33]execute_script done [09:44:33]execute_script returns [09:44:33]free content buf [09:44:33]Sock 9.Close socket [09:44:33]Sock 9.Thread stoped [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:08]accept exits with 7 [09:45:08]New connection [09:45:08]New thread 3066707300 created [09:45:08]Thread 3066563940 joined [09:45:08]Waiting for new connection... [09:45:08] Sock 7.Parse request [09:45:08]Sock 7.Check first char [09:45:08]Sock 7.First char is OK [09:45:08]request: POST /json_proto HTTP/1.0 [09:45:08]Method: POST [09:45:08]URL: /json_proto [09:45:08]Method is POST - this is cgi request [09:45:08]url: /json_proto [09:45:08]query_string will be loaded in cgi processing [09:45:08]execute_cgi json_proto POST (null) [09:45:08]execute_cgi path=json_proto method=POST [09:45:08]POST find Content-Length [09:45:08]Host: 172.17.63.131:8080 [09:45:08]Content-Length: 676 [09:45:08]Content-Type: application/json [09:45:08] [09:45:08]POST finish read [09:45:08]Found Content-Length = 676 [09:45:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:08]execute_script... [09:45:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:08]POST & json_proto [09:45:08]process_json_proto [09:45:08]json parsed OK: [09:45:08]protocol is kg_v1.0 [09:45:08]action value=close_receipt [09:45:08]process_action close_receipt [09:45:08]cmd_close_receipt [09:45:08]MH_GetDate [09:45:08]Write to MH i2c: F0 00 00 3D 29 55 [09:45:08]Write i2c OK [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: F0 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: F0 09 00 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: F0 09 00 3D 29 00 28 5D 1F 67 22 05 6E 64 62 [09:45:08]GetLastDocTimeStamp 1730108673 [09:45:08]current date 1730108712 [09:45:08]FM_GetShiftState [09:45:08]SAM_PROTO_GetShiftState [09:45:08]wFMCommunicate request_size=4 [09:45:08]MH_SAM_APDU [09:45:08]CAPDU: 80 13 01 00 [09:45:08]Write to MH i2c: E2 08 00 3E 29 80 13 01 00 00 00 00 00 E4 [09:45:08]Write i2c OK [09:45:08]MH_I2C_Read... [09:45:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:08]Read from MH i2c: E2 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 0E 00 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 0E 00 3E 29 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 34 [09:45:08]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:45:08]wFMCommunicate OK [09:45:08]SAM_PROTO_GetShiftState done [09:45:08]FM_GetShiftState done [09:45:08]opened in 1730075620 [09:45:08]opened+sec_in_day 1730162020 [09:45:08]quantity*price = 20003 [09:45:08]sum+1 = 20004 [09:45:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 44 28.10.2024 09:45 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192496 ФПД: 230605287964095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094512&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192496&fm=230605287964095&tin=02508201610067®Number=0000000000091776&sum=20000 [09:45:09]StoreToDocumentArchive [09:45:09]shift 543 fd 192496 [09:45:09]save to /storage/0543/doc_00192496 [09:45:09]save last doc name /storage/0543/doc_00192496 to /storage/kkm_last_doc_name [09:45:09]save OK [09:45:09]Clear old archive folders... [09:45:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:09]tlvbuf is 01A502E0 [09:45:09]SAM_PROTO_ClearQueue [09:45:09]wFMCommunicate request_size=4 [09:45:09]MH_SAM_APDU [09:45:09]CAPDU: 80 09 00 00 [09:45:09]Write to MH i2c: E2 08 00 4B 29 80 09 00 00 00 00 00 00 E6 [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:09]Read from MH i2c: E2 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 4B 29 00 90 00 E8 [09:45:09]RAPDU: 90 00 [09:45:09]wFMCommunicate OK [09:45:09]SAM_PROTO_ClearQueue done [09:45:09]KKMCreateOFDPacket [09:45:09]OFDProtocolAddRootSTLVToBuf [09:45:09]FM_MakeSignedData [09:45:09]FM_MakeSignedData [09:45:09]SAM_PROTO_SignData [09:45:09]wFMCommunicate request_size=4 [09:45:09]MH_SAM_APDU [09:45:09]CAPDU: 80 0D 01 02 [09:45:09]Write to MH i2c: E2 08 00 4C 29 80 0D 01 02 00 00 00 00 EE [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:09]Read from MH i2c: E2 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 4C 29 00 90 00 E9 [09:45:09]RAPDU: 90 00 [09:45:09]wFMCommunicate OK [09:45:09]wFMCommunicate request_size=255 [09:45:09]MH_SAM_APDU [09:45: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 28 5D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EF 02 00 35 04 06 00 D1 [09:45:09]Write to MH i2c: E2 02 01 4D 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 28 5D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EF 02 00 35 04 06 00 D1 00 00 4E [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:09]Read from MH i2c: E2 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 4D 29 00 90 00 EA [09:45:09]RAPDU: 90 00 [09:45:09]wFMCommunicate OK [09:45:09]wFMCommunicate request_size=10 [09:45:09]MH_SAM_APDU [09:45:09]CAPDU: 80 0D 02 02 05 BB FA 45 BD BF [09:45:09]Write to MH i2c: E2 0D 00 4E 29 80 0D 02 02 05 00 BB FA 45 BD BF 00 00 71 [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:10]Read from MH i2c: E2 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: E2 03 00 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: E2 03 00 4E 29 00 90 00 EB [09:45:10]RAPDU: 90 00 [09:45:10]wFMCommunicate OK [09:45:10]wFMCommunicate request_size=4 [09:45:10]MH_SAM_APDU [09:45:10]CAPDU: 80 0D 03 02 [09:45:10]Write to MH i2c: E2 08 00 4F 29 80 0D 03 02 00 00 00 00 F3 [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:10]Read from MH i2c: E2 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: E2 0B 00 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: E2 0B 00 4F 29 00 65 24 82 EA 2D 68 41 48 90 00 07 [09:45:10]RAPDU: 65 24 82 EA 2D 68 41 48 90 00 [09:45:10]wFMCommunicate OK [09:45:10]SAM_PROTO_SignData done [09:45:10]FM_MakeSignedData done [09:45:10]CreateOFDProtocolMessage [09:45:10]wFMCommunicate request_size=4 [09:45:10]MH_SAM_APDU [09:45:10]CAPDU: 80 11 00 00 [09:45:10]Write to MH i2c: E2 08 00 50 29 80 11 00 00 00 00 00 00 F3 [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:10]Read from MH i2c: E2 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: E2 17 00 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: E2 17 00 50 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 46 [09:45:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:45:10]wFMCommunicate OK [09:45:10]CreateOFDProtocolMessage done [09:45:10]OFDSenderStorePacket 192496 [09:45:10]StoreOFDPacket docnum=192496 [09:45:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 9A 07 01 FF 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 28 5D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EF 02 00 35 04 06 00 D1 BB FA 45 BD BF 65 24 82 EA 2D 68 41 48 [09:45:10]CheckFolder [09:45:10]dirname=/storage/ofd_packets [09:45:10]CheckFolder done [09:45:10]ProducePacketName [09:45:10]name=ofd_packets/00192496 [09:45:10]NVStorageSaveData ofd_packets/00192496 [09:45:10]File name is /storage/ofd_packets/00192496 [09:45:10]Write 301 bytes [09:45:10]NVStorageSaveData done [09:45:10]OFDSenderStorePacket done [09:45:10]KKMCreateOFDPacket done [09:45:10]NVStorageSaveData kkm_last_timestamp [09:45:10]File name is /storage/kkm_last_timestamp [09:45:10]Write 4 bytes [09:45:10]NVStorageSaveData done [09:45:10]OFD Sender: Processing packet 192496 [packets to send 75, broken 74] [09:45:10]ProducePacketName [09:45:10]name=ofd_packets/00192496 [09:45:10]OFD Sender: To server: pG, [09:45:10]CommunicateWithHost lk.salyk.kg:30040 [09:45:10]ConnectInit lk.salyk.kg [09:45:10]ExternCall_PrintAddStr [09:45:10]wPrintStart [09:45:10]Write to MH i2c: 01 00 00 51 29 7A [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: 01 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: 01 07 00 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: 01 07 00 51 29 00 00 00 00 00 FF 0F 8F [09:45:10]RasterBufferAndPrint [09:45:10]line Счет N : (1)31811 [09:45:10]line ИНН: 02508201610067 [09:45:10]line Контрольно-Кассовый Чек [09:45:10]line ПРОДАЖА [09:45:10]line ТРК (МРК, ГНК) : 12 [09:45:10]line Товар: 2710124130 [09:45:10]line Аи-92-К-5 [09:45:10]line 2.990 * 66.90 [09:45:10]line = 200.03 [09:45:10]line НДС 12% НСП 1% [09:45:10]line > о реализуемом товаре [09:45:10]line ОКРУГЛЕНИЕ: -0.03 [09:45:10]line ИТОГО: 200.00 [09:45:10]line Внесено: 200.00 [09:45:10]line СДАЧА: 0.00 [09:45:10]line НСП 1% : 1.77 [09:45:10]line НДС 12% : 21.24 [09:45:10]line Наличными: 200.00 [09:45:10]line Безнал.: 0.00 [09:45:10]line Место: АЗС № 170 "Партнер Нефть" [09:45:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:45:10]line СНО: Общий режим [09:45:10]line Чек 44 28.10.2024 09:45 [09:45:10]line Смена: 543 ФФД: 1.0 [09:45:10]line ЗНМ: 0300000110 [09:45:10]line РНМ: 0000000000091776 [09:45:10]line Версия ККМ: 001 [09:45:10]line ФМ: 0000000000871754 [09:45:10]line ФД: 192496 [09:45:10]line ФПД: 230605287964095 [09:45:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094512&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192496&fm=230605287964095&tin=02508201610067®Number=0000000000091776&sum=20000 [09:45:10]Connected sock=11 [09:45:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 9A 07 01 FF 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 28 5D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EF 02 00 35 04 06 00 D1 BB FA 45 BD BF 65 24 82 EA 2D 68 41 48 [09:45:10]written 0, free lines is 4095 [09:45:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D5 DE 47 00 2E 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EF 02 00 F4 03 04 00 ED 01 1F 67 B6 04 01 00 00 6D CE 56 FD DB 70 09 13 [09:45:10]CommunicateWithHost err = 0 [09:45:10]CheckOFDResponse [09:45:10]1017 (14) - 77093643461234 [09:45:10]1041 (16) - 0000000000871754 [09:45:10]1040 (4) - 192496 [09:45:10]1012 (4) - 28.10.2024 03:15 [09:45:10]1206 (1) - 0 [09:45:10]OFD Sender: Remove packet 192496 [09:45:10]ProducePacketName [09:45:10]name=ofd_packets/00192496 [09:45:10]NVStorageDeleteData [09:45:10]Write to MH i2c: 01 00 00 7C 29 A5 [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: 01 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: 01 07 00 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: 01 07 00 7C 29 00 00 00 00 00 A9 0C 61 [09:45:10]RasterBufferAndPrint [09:45:10]line [09:45:10]line [09:45:10]line [09:45:10]line [09:45:10]line [09:45:10]written 0, free lines is 3246 [09:45:10]MH_Cut [09:45:10]Write to MH i2c: D1 01 00 83 29 01 7E [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: D1 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: D1 01 00 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: D1 01 00 83 29 00 7D [09:45:10]Write to MH i2c: 01 00 00 84 29 AD [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:11]OFD Sender: No OFD packet to send [09:45:11]*** Cut start [09:45:11]*** Partial cut [09:45:11]*** CUTSNS_PIN = 1 [09:45:11]*** CUTSNS_PIN = 0 [09:45:12]*** Brake cut motor [09:45:12]Read from MH i2c: 01 [09:45:12]MH_I2C_Read... [09:45:12]*** Stop cut motor [09:45:12]*** Cut end [09:45:12]Read from MH i2c: 01 07 00 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: 01 07 00 84 29 00 00 00 00 00 FF 0F C2 [09:45:12]process_action close_receipt done [09:45:12]requested_data is exist [09:45:12]produce_requested_data [09:45:12]requested_item fm.sn is exist - process it [09:45:12]wFMCommunicate request_size=4 [09:45:12]MH_SAM_APDU [09:45:12]CAPDU: 80 11 00 00 [09:45:12]Write to MH i2c: E2 08 00 85 29 80 11 00 00 00 00 00 00 28 [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:12]Read from MH i2c: E2 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 17 00 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 17 00 85 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7B [09:45:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:45:12]wFMCommunicate OK [09:45:12]requested_item fd.num is exist - process it [09:45:12]SAM_PROTO_GetFieldsCounters [09:45:12]wFMCommunicate request_size=4 [09:45:12]MH_SAM_APDU [09:45:12]CAPDU: 80 13 00 00 [09:45:12]Write to MH i2c: E2 08 00 86 29 80 13 00 00 00 00 00 00 2B [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:12]Read from MH i2c: E2 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 62 00 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 62 00 86 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F0 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [09:45:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F0 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:12]wFMCommunicate OK [09:45:12]SAM_PROTO_GetFieldsCounters done [09:45:12]requested_item shift.num is exist - process it [09:45:12]requested_item shift.opened is exist - process it [09:45:12]req_shift_opened [09:45:12]FM_GetShiftState [09:45:12]SAM_PROTO_GetShiftState [09:45:12]wFMCommunicate request_size=4 [09:45:12]MH_SAM_APDU [09:45:12]CAPDU: 80 13 01 00 [09:45:12]Write to MH i2c: E2 08 00 87 29 80 13 01 00 00 00 00 00 2D [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:12]Read from MH i2c: E2 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 0E 00 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 0E 00 87 29 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 7D [09:45:12]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:45:12]wFMCommunicate OK [09:45:12]SAM_PROTO_GetShiftState done [09:45:12]FM_GetShiftState done [09:45:12]req_shift_opened done [09:45:12]requested_item shift.open_date is exist - process it [09:45:12]req_shift_open_date [09:45:12]req_shift_open_date done [09:45:12]produce_requested_data done [09:45:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192496,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:45:12]process_action_free close_receipt [09:45:12]json_value_free [09:45:12]json_value_free done [09:45:12]process_json_proto returns [09:45:12]Send response to host [09:45:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192496,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:45:12]free response buf [09:45:12]execute_script done [09:45:12]execute_script returns [09:45:12]free content buf [09:45:12]Sock 7.Close socket [09:45:12]Sock 7.Thread stoped [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:46:59]accept exits with 9 [09:46:59]New connection [09:46:59]New thread 3066563940 created [09:46:59]Thread 3066707300 joined [09:46:59]Waiting for new connection... [09:46:59] Sock 9.Parse request [09:46:59]Sock 9.Check first char [09:46:59]Sock 9.First char is OK [09:46:59]request: POST /json_proto HTTP/1.0 [09:46:59]Method: POST [09:46:59]URL: /json_proto [09:46:59]Method is POST - this is cgi request [09:46:59]url: /json_proto [09:46:59]query_string will be loaded in cgi processing [09:46:59]execute_cgi json_proto POST (null) [09:46:59]execute_cgi path=json_proto method=POST [09:46:59]POST find Content-Length [09:46:59]Host: 172.17.63.131:8080 [09:46:59]Content-Length: 676 [09:46:59]Content-Type: application/json [09:46:59] [09:46:59]POST finish read [09:46:59]Found Content-Length = 676 [09:46:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:59]execute_script... [09:46: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)31812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:59]POST & json_proto [09:46:59]process_json_proto [09:46:59]json parsed OK: [09:46:59]protocol is kg_v1.0 [09:46:59]action value=close_receipt [09:46:59]process_action close_receipt [09:46:59]cmd_close_receipt [09:46:59]MH_GetDate [09:46:59]Write to MH i2c: F0 00 00 88 29 A0 [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: F0 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: F0 09 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: F0 09 00 88 29 00 97 5D 1F 67 22 05 6E 64 1C [09:46:59]GetLastDocTimeStamp 1730108712 [09:46:59]current date 1730108823 [09:46:59]FM_GetShiftState [09:46:59]SAM_PROTO_GetShiftState [09:46:59]wFMCommunicate request_size=4 [09:46:59]MH_SAM_APDU [09:46:59]CAPDU: 80 13 01 00 [09:46:59]Write to MH i2c: E2 08 00 89 29 80 13 01 00 00 00 00 00 2F [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:59]Read from MH i2c: E2 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 0E 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 0E 00 89 29 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 7F [09:46:59]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:46:59]wFMCommunicate OK [09:46:59]SAM_PROTO_GetShiftState done [09:46:59]FM_GetShiftState done [09:46:59]opened in 1730075620 [09:46:59]opened+sec_in_day 1730162020 [09:46:59]quantity*price = 50041 [09:46:59]sum+1 = 50042 [09:46:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 45 28.10.2024 09:47 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192497 ФПД: 251180965197186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094703&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192497&fm=251180965197186&tin=02508201610067®Number=0000000000091776&sum=50000 [09:47:00]StoreToDocumentArchive [09:47:00]shift 543 fd 192497 [09:47:00]save to /storage/0543/doc_00192497 [09:47:00]save last doc name /storage/0543/doc_00192497 to /storage/kkm_last_doc_name [09:47:00]save OK [09:47:00]Clear old archive folders... [09:47:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:00]tlvbuf is 01A50CF0 [09:47:00]SAM_PROTO_ClearQueue [09:47:00]wFMCommunicate request_size=4 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 09 00 00 [09:47:00]Write to MH i2c: E2 08 00 96 29 80 09 00 00 00 00 00 00 31 [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 03 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 03 00 96 29 00 90 00 33 [09:47:00]RAPDU: 90 00 [09:47:00]wFMCommunicate OK [09:47:00]SAM_PROTO_ClearQueue done [09:47:00]KKMCreateOFDPacket [09:47:00]OFDProtocolAddRootSTLVToBuf [09:47:00]FM_MakeSignedData [09:47:00]FM_MakeSignedData [09:47:00]SAM_PROTO_SignData [09:47:00]wFMCommunicate request_size=4 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 0D 01 02 [09:47:00]Write to MH i2c: E2 08 00 97 29 80 0D 01 02 00 00 00 00 39 [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 03 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 03 00 97 29 00 90 00 34 [09:47:00]RAPDU: 90 00 [09:47:00]wFMCommunicate OK [09:47:00]wFMCommunicate request_size=255 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 97 5D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EF 02 00 35 04 06 00 E4 [09:47:00]Write to MH i2c: E2 02 01 98 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 97 5D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EF 02 00 35 04 06 00 E4 00 00 5B [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 03 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 03 00 98 29 00 90 00 35 [09:47:00]RAPDU: 90 00 [09:47:00]wFMCommunicate OK [09:47:00]wFMCommunicate request_size=10 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 0D 02 02 05 72 A0 34 75 82 [09:47:00]Write to MH i2c: E2 0D 00 99 29 80 0D 02 02 05 00 72 A0 34 75 82 00 00 83 [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 03 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 03 00 99 29 00 90 00 36 [09:47:00]RAPDU: 90 00 [09:47:00]wFMCommunicate OK [09:47:00]wFMCommunicate request_size=4 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 0D 03 02 [09:47:00]Write to MH i2c: E2 08 00 9A 29 80 0D 03 02 00 00 00 00 3E [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 0B 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 0B 00 9A 29 00 B0 F8 41 5D 91 12 84 40 90 00 EC [09:47:00]RAPDU: B0 F8 41 5D 91 12 84 40 90 00 [09:47:00]wFMCommunicate OK [09:47:00]SAM_PROTO_SignData done [09:47:00]FM_MakeSignedData done [09:47:00]CreateOFDProtocolMessage [09:47:00]wFMCommunicate request_size=4 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 11 00 00 [09:47:00]Write to MH i2c: E2 08 00 9B 29 80 11 00 00 00 00 00 00 3E [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 17 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 17 00 9B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 91 [09:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:47:00]wFMCommunicate OK [09:47:00]CreateOFDProtocolMessage done [09:47:00]OFDSenderStorePacket 192497 [09:47:00]StoreOFDPacket docnum=192497 [09:47:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 37 36 07 01 70 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 97 5D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EF 02 00 35 04 06 00 E4 72 A0 34 75 82 B0 F8 41 5D 91 12 84 40 [09:47:00]CheckFolder [09:47:00]dirname=/storage/ofd_packets [09:47:00]CheckFolder done [09:47:00]ProducePacketName [09:47:00]name=ofd_packets/00192497 [09:47:00]NVStorageSaveData ofd_packets/00192497 [09:47:00]File name is /storage/ofd_packets/00192497 [09:47:00]Write 301 bytes [09:47:00]NVStorageSaveData done [09:47:00]OFDSenderStorePacket done [09:47:00]KKMCreateOFDPacket done [09:47:00]NVStorageSaveData kkm_last_timestamp [09:47:00]File name is /storage/kkm_last_timestamp [09:47:00]Write 4 bytes [09:47:00]NVStorageSaveData done [09:47:00]ExternCall_PrintAddStr [09:47:00]wPrintStart [09:47:00]Write to MH i2c: 01 00 00 9C 29 C5 [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: 01 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: 01 07 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: 01 07 00 9C 29 00 00 00 00 00 FF 0F DA [09:47:00]RasterBufferAndPrint [09:47:00]line Счет N : (1)31812 [09:47:00]line ИНН: 02508201610067 [09:47:00]line Контрольно-Кассовый Чек [09:47:00]line ПРОДАЖА [09:47:00]line ТРК (МРК, ГНК) : 12 [09:47:00]line Товар: 2710124130 [09:47:00]line Аи-92-К-5 [09:47:00]line 7.480 * 66.90 [09:47:00]line = 500.41 [09:47:00]line НДС 12% НСП 1% [09:47:00]line > о реализуемом товаре [09:47:00]line ОКРУГЛЕНИЕ: -0.41 [09:47:00]line ИТОГО: 500.00 [09:47:00]line Внесено: 500.00 [09:47:00]line СДАЧА: 0.00 [09:47:00]line НСП 1% : 4.43 [09:47:00]line НДС 12% : 53.14 [09:47:00]line Наличными: 500.00 [09:47:00]line Безнал.: 0.00 [09:47:00]line Место: АЗС № 170 "Партнер Нефть" [09:47:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:47:00]line СНО: Общий режим [09:47:00]line Чек 45 28.10.2024 09:47 [09:47:00]line Смена: 543 ФФД: 1.0 [09:47:00]line ЗНМ: 0300000110 [09:47:00]line РНМ: 0000000000091776 [09:47:00]line Версия ККМ: 001 [09:47:00]line ФМ: 0000000000871754 [09:47:00]line ФД: 192497 [09:47:00]line ФПД: 251180965197186 [09:47:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094703&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192497&fm=251180965197186&tin=02508201610067®Number=0000000000091776&sum=50000 [09:47:01]OFD Sender: Processing packet 192497 [packets to send 75, broken 74] [09:47:01]ProducePacketName [09:47:01]name=ofd_packets/00192497 [09:47:01]OFD Sender: To server: pG, [09:47:01]CommunicateWithHost lk.salyk.kg:30040 [09:47:01]ConnectInit lk.salyk.kg [09:47:01]written 0, free lines is 4095 [09:47:01]Connected sock=10 [09:47:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 37 36 07 01 70 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 97 5D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EF 02 00 35 04 06 00 E4 72 A0 34 75 82 B0 F8 41 5D 91 12 84 40 [09:47:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D3 06 47 00 85 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EF 02 00 F4 03 04 00 5C 02 1F 67 B6 04 01 00 00 DA EA E5 D5 DB 2E FB 8D [09:47:01]CommunicateWithHost err = 0 [09:47:01]CheckOFDResponse [09:47:01]1017 (14) - 77093643461234 [09:47:01]1041 (16) - 0000000000871754 [09:47:01]1040 (4) - 192497 [09:47:01]1012 (4) - 28.10.2024 03:17 [09:47:01]1206 (1) - 0 [09:47:01]OFD Sender: Remove packet 192497 [09:47:01]ProducePacketName [09:47:01]name=ofd_packets/00192497 [09:47:01]NVStorageDeleteData [09:47:01]Write to MH i2c: 01 00 00 C7 29 F0 [09:47:01]Write i2c OK [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: 01 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: 01 07 00 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: 01 07 00 C7 29 00 00 00 00 00 A2 0C A5 [09:47:01]RasterBufferAndPrint [09:47:01]line [09:47:01]line [09:47:01]line [09:47:01]line [09:47:01]line [09:47:01]written 0, free lines is 3242 [09:47:01]MH_Cut [09:47:01]Write to MH i2c: D1 01 00 CE 29 01 C9 [09:47:01]Write i2c OK [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: D1 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: D1 01 00 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: D1 01 00 CE 29 00 C8 [09:47:01]Write to MH i2c: 01 00 00 CF 29 F8 [09:47:01]Write i2c OK [09:47:01]MH_I2C_Read... [09:47:02]OFD Sender: No OFD packet to send [09:47:02]*** Cut start [09:47:02]*** Partial cut [09:47:02]*** CUTSNS_PIN = 1 [09:47:02]*** CUTSNS_PIN = 0 [09:47:02]*** Brake cut motor [09:47:03]Read from MH i2c: 01 [09:47:03]MH_I2C_Read... [09:47:03]*** Stop cut motor [09:47:03]*** Cut end [09:47:03]Read from MH i2c: 01 07 00 [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: 01 07 00 CF 29 00 00 00 00 00 FF 0F 0D [09:47:03]process_action close_receipt done [09:47:03]requested_data is exist [09:47:03]produce_requested_data [09:47:03]requested_item fm.sn is exist - process it [09:47:03]wFMCommunicate request_size=4 [09:47:03]MH_SAM_APDU [09:47:03]CAPDU: 80 11 00 00 [09:47:03]Write to MH i2c: E2 08 00 D0 29 80 11 00 00 00 00 00 00 73 [09:47:03]Write i2c OK [09:47:03]MH_I2C_Read... [09:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:03]Read from MH i2c: E2 [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: E2 17 00 [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: E2 17 00 D0 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C6 [09:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:47:03]wFMCommunicate OK [09:47:03]requested_item fd.num is exist - process it [09:47:03]SAM_PROTO_GetFieldsCounters [09:47:03]wFMCommunicate request_size=4 [09:47:03]MH_SAM_APDU [09:47:03]CAPDU: 80 13 00 00 [09:47:03]Write to MH i2c: E2 08 00 D1 29 80 13 00 00 00 00 00 00 76 [09:47:03]Write i2c OK [09:47:03]MH_I2C_Read... [09:47:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:03]Read from MH i2c: E2 [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: E2 62 00 [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: E2 62 00 D1 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F1 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [09:47:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F1 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:03]wFMCommunicate OK [09:47:03]SAM_PROTO_GetFieldsCounters done [09:47:03]requested_item shift.num is exist - process it [09:47:03]requested_item shift.opened is exist - process it [09:47:03]req_shift_opened [09:47:03]FM_GetShiftState [09:47:03]SAM_PROTO_GetShiftState [09:47:03]wFMCommunicate request_size=4 [09:47:03]MH_SAM_APDU [09:47:03]CAPDU: 80 13 01 00 [09:47:03]Write to MH i2c: E2 08 00 D2 29 80 13 01 00 00 00 00 00 78 [09:47:03]Write i2c OK [09:47:03]MH_I2C_Read... [09:47:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:03]Read from MH i2c: E2 [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: E2 0E 00 [09:47:03]MH_I2C_Read... [09:47:03]Read from MH i2c: E2 0E 00 D2 29 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C8 [09:47:03]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:47:03]wFMCommunicate OK [09:47:03]SAM_PROTO_GetShiftState done [09:47:03]FM_GetShiftState done [09:47:03]req_shift_opened done [09:47:03]requested_item shift.open_date is exist - process it [09:47:03]req_shift_open_date [09:47:03]req_shift_open_date done [09:47:03]produce_requested_data done [09:47:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192497,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:47:03]process_action_free close_receipt [09:47:03]json_value_free [09:47:03]json_value_free done [09:47:03]process_json_proto returns [09:47:03]Send response to host [09:47:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192497,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:47:03]free response buf [09:47:03]execute_script done [09:47:03]execute_script returns [09:47:03]free content buf [09:47:03]Sock 9.Close socket [09:47:03]Sock 9.Thread stoped [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:43]accept exits with 7 [09:48:43]New connection [09:48:43]New thread 3066707300 created [09:48:43]Thread 3066563940 joined [09:48:43]Waiting for new connection... [09:48:43] Sock 7.Parse request [09:48:43]Sock 7.Check first char [09:48:43]Sock 7.First char is OK [09:48:43]request: POST /json_proto HTTP/1.0 [09:48:43]Method: POST [09:48:43]URL: /json_proto [09:48:43]Method is POST - this is cgi request [09:48:43]url: /json_proto [09:48:43]query_string will be loaded in cgi processing [09:48:43]execute_cgi json_proto POST (null) [09:48:43]execute_cgi path=json_proto method=POST [09:48:43]POST find Content-Length [09:48:43]Host: 172.17.63.131:8080 [09:48:43]Content-Length: 676 [09:48:43]Content-Type: application/json [09:48:43] [09:48:43]POST finish read [09:48:43]Found Content-Length = 676 [09:48:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:43]execute_script... [09:48: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)31813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:43]POST & json_proto [09:48:43]process_json_proto [09:48:43]json parsed OK: [09:48:43]protocol is kg_v1.0 [09:48:43]action value=close_receipt [09:48:43]process_action close_receipt [09:48:43]cmd_close_receipt [09:48:43]MH_GetDate [09:48:43]Write to MH i2c: F0 00 00 D3 29 EB [09:48:43]Write i2c OK [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: F0 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: F0 09 00 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: F0 09 00 D3 29 00 FF 5D 1F 67 22 05 6E 64 CF [09:48:43]GetLastDocTimeStamp 1730108823 [09:48:43]current date 1730108927 [09:48:43]FM_GetShiftState [09:48:43]SAM_PROTO_GetShiftState [09:48:43]wFMCommunicate request_size=4 [09:48:43]MH_SAM_APDU [09:48:43]CAPDU: 80 13 01 00 [09:48:43]Write to MH i2c: E2 08 00 D4 29 80 13 01 00 00 00 00 00 7A [09:48:43]Write i2c OK [09:48:43]MH_I2C_Read... [09:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:43]Read from MH i2c: E2 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 0E 00 [09:48:43]MH_I2C_Read... [09:48:43]Read from MH i2c: E2 0E 00 D4 29 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CA [09:48:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:48:43]wFMCommunicate OK [09:48:43]SAM_PROTO_GetShiftState done [09:48:43]FM_GetShiftState done [09:48:43]opened in 1730075620 [09:48:43]opened+sec_in_day 1730162020 [09:48:43]quantity*price = 50041 [09:48:43]sum+1 = 50042 [09:48:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 46 28.10.2024 09:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192498 ФПД: 39901073249246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094847&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192498&fm=39901073249246&tin=02508201610067®Number=0000000000091776&sum=50000 [09:48:44]StoreToDocumentArchive [09:48:44]shift 543 fd 192498 [09:48:44]save to /storage/0543/doc_00192498 [09:48:44]save last doc name /storage/0543/doc_00192498 to /storage/kkm_last_doc_name [09:48:44]save OK [09:48:44]Clear old archive folders... [09:48:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:44]tlvbuf is B6D6C840 [09:48:44]SAM_PROTO_ClearQueue [09:48:44]wFMCommunicate request_size=4 [09:48:44]MH_SAM_APDU [09:48:44]CAPDU: 80 09 00 00 [09:48:44]Write to MH i2c: E2 08 00 E1 29 80 09 00 00 00 00 00 00 7C [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:44]Read from MH i2c: E2 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 E1 29 00 90 00 7E [09:48:44]RAPDU: 90 00 [09:48:44]wFMCommunicate OK [09:48:44]SAM_PROTO_ClearQueue done [09:48:44]KKMCreateOFDPacket [09:48:44]OFDProtocolAddRootSTLVToBuf [09:48:44]FM_MakeSignedData [09:48:44]FM_MakeSignedData [09:48:44]SAM_PROTO_SignData [09:48:44]wFMCommunicate request_size=4 [09:48:44]MH_SAM_APDU [09:48:44]CAPDU: 80 0D 01 02 [09:48:44]Write to MH i2c: E2 08 00 E2 29 80 0D 01 02 00 00 00 00 84 [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:44]Read from MH i2c: E2 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 E2 29 00 90 00 7F [09:48:44]RAPDU: 90 00 [09:48:44]wFMCommunicate OK [09:48:44]wFMCommunicate request_size=255 [09:48:44]MH_SAM_APDU [09:48:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 FF 5D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EF 02 00 35 04 06 00 24 [09:48:44]Write to MH i2c: E2 02 01 E3 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 FF 5D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EF 02 00 35 04 06 00 24 00 00 50 [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:44]Read from MH i2c: E2 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 E3 29 00 90 00 80 [09:48:44]RAPDU: 90 00 [09:48:44]wFMCommunicate OK [09:48:44]wFMCommunicate request_size=10 [09:48:44]MH_SAM_APDU [09:48:44]CAPDU: 80 0D 02 02 05 4A 31 4C 13 DE [09:48:44]Write to MH i2c: E2 0D 00 E4 29 80 0D 02 02 05 00 4A 31 4C 13 DE 00 00 49 [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:44]Read from MH i2c: E2 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 03 00 E4 29 00 90 00 81 [09:48:44]RAPDU: 90 00 [09:48:44]wFMCommunicate OK [09:48:44]wFMCommunicate request_size=4 [09:48:44]MH_SAM_APDU [09:48:44]CAPDU: 80 0D 03 02 [09:48:44]Write to MH i2c: E2 08 00 E5 29 80 0D 03 02 00 00 00 00 89 [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:44]Read from MH i2c: E2 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 0B 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 0B 00 E5 29 00 02 26 76 A4 43 7A 1E 30 90 00 D7 [09:48:44]RAPDU: 02 26 76 A4 43 7A 1E 30 90 00 [09:48:44]wFMCommunicate OK [09:48:44]SAM_PROTO_SignData done [09:48:44]FM_MakeSignedData done [09:48:44]CreateOFDProtocolMessage [09:48:44]wFMCommunicate request_size=4 [09:48:44]MH_SAM_APDU [09:48:44]CAPDU: 80 11 00 00 [09:48:44]Write to MH i2c: E2 08 00 E6 29 80 11 00 00 00 00 00 00 89 [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:44]Read from MH i2c: E2 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 17 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 17 00 E6 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DC [09:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:48:44]wFMCommunicate OK [09:48:44]CreateOFDProtocolMessage done [09:48:44]OFDSenderStorePacket 192498 [09:48:44]StoreOFDPacket docnum=192498 [09:48:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C4 78 07 01 31 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 FF 5D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EF 02 00 35 04 06 00 24 4A 31 4C 13 DE 02 26 76 A4 43 7A 1E 30 [09:48:44]CheckFolder [09:48:44]dirname=/storage/ofd_packets [09:48:44]CheckFolder done [09:48:44]ProducePacketName [09:48:44]name=ofd_packets/00192498 [09:48:44]NVStorageSaveData ofd_packets/00192498 [09:48:44]File name is /storage/ofd_packets/00192498 [09:48:44]Write 301 bytes [09:48:44]NVStorageSaveData done [09:48:44]OFDSenderStorePacket done [09:48:44]KKMCreateOFDPacket done [09:48:44]NVStorageSaveData kkm_last_timestamp [09:48:44]File name is /storage/kkm_last_timestamp [09:48:44]Write 4 bytes [09:48:44]NVStorageSaveData done [09:48:44]ExternCall_PrintAddStr [09:48:44]wPrintStart [09:48:44]Write to MH i2c: 01 00 00 E7 29 10 [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: 01 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: 01 07 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: 01 07 00 E7 29 00 00 00 00 00 FF 0F 25 [09:48:44]RasterBufferAndPrint [09:48:44]line Счет N : (1)31813 [09:48:44]line ИНН: 02508201610067 [09:48:44]line Контрольно-Кассовый Чек [09:48:44]line ПРОДАЖА [09:48:44]line ТРК (МРК, ГНК) : 21 [09:48:44]line Товар: 2710124130 [09:48:44]line Аи-92-К-5 [09:48:44]line 7.480 * 66.90 [09:48:44]line = 500.41 [09:48:44]line НДС 12% НСП 1% [09:48:44]line > о реализуемом товаре [09:48:44]line ОКРУГЛЕНИЕ: -0.41 [09:48:44]line ИТОГО: 500.00 [09:48:44]line Внесено: 500.00 [09:48:44]line СДАЧА: 0.00 [09:48:44]line НСП 1% : 4.43 [09:48:44]line НДС 12% : 53.14 [09:48:44]line Наличными: 500.00 [09:48:44]line Безнал.: 0.00 [09:48:44]line Место: АЗС № 170 "Партнер Нефть" [09:48:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:48:44]line СНО: Общий режим [09:48:44]line Чек 46 28.10.2024 09:48 [09:48:44]line Смена: 543 ФФД: 1.0 [09:48:44]line ЗНМ: 0300000110 [09:48:44]line РНМ: 0000000000091776 [09:48:44]line Версия ККМ: 001 [09:48:44]line ФМ: 0000000000871754 [09:48:44]line ФД: 192498 [09:48:44]line ФПД: 39901073249246 [09:48:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094847&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192498&fm=39901073249246&tin=02508201610067®Number=0000000000091776&sum=50000 [09:48:45]OFD Sender: Processing packet 192498 [packets to send 75, broken 74] [09:48:45]ProducePacketName [09:48:45]name=ofd_packets/00192498 [09:48:45]OFD Sender: To server: pG, [09:48:45]CommunicateWithHost lk.salyk.kg:30040 [09:48:45]ConnectInit lk.salyk.kg [09:48:45]written 0, free lines is 4095 [09:48:45]Connected sock=10 [09:48:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C4 78 07 01 31 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 FF 5D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EF 02 00 35 04 06 00 24 4A 31 4C 13 DE 02 26 76 A4 43 7A 1E 30 [09:48:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D8 92 47 00 32 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 31 37 35 34 10 04 04 00 F2 EF 02 00 F4 03 04 00 C4 02 1F 67 B6 04 01 00 00 B7 81 EE F9 45 C8 CB 02 [09:48:45]CommunicateWithHost err = 0 [09:48:45]CheckOFDResponse [09:48:45]1017 (14) - 77093643461234 [09:48:45]1041 (16) - 0000000000871754 [09:48:45]1040 (4) - 192498 [09:48:45]1012 (4) - 28.10.2024 03:19 [09:48:45]1206 (1) - 0 [09:48:45]OFD Sender: Remove packet 192498 [09:48:45]ProducePacketName [09:48:45]name=ofd_packets/00192498 [09:48:45]NVStorageDeleteData [09:48:45]Write to MH i2c: 01 00 00 12 2A 3C [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: 01 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: 01 07 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: 01 07 00 12 2A 00 00 00 00 00 99 0C E8 [09:48:45]RasterBufferAndPrint [09:48:45]line [09:48:45]line [09:48:45]line [09:48:45]line [09:48:45]line [09:48:45]written 0, free lines is 3229 [09:48:45]MH_Cut [09:48:45]Write to MH i2c: D1 01 00 19 2A 01 15 [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: D1 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: D1 01 00 [09:48:45]MH_I2C_Read... [09:48:45]Read from MH i2c: D1 01 00 19 2A 00 14 [09:48:45]Write to MH i2c: 01 00 00 1A 2A 44 [09:48:45]Write i2c OK [09:48:45]MH_I2C_Read... [09:48:45]OFD Sender: No OFD packet to send [09:48:46]*** Cut start [09:48:46]*** Partial cut [09:48:46]*** CUTSNS_PIN = 1 [09:48:46]*** CUTSNS_PIN = 0 [09:48:46]*** Brake cut motor [09:48:46]Read from MH i2c: 01 [09:48:46]MH_I2C_Read... [09:48:46]*** Stop cut motor [09:48:47]*** Cut end [09:48:47]Read from MH i2c: 01 07 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: 01 07 00 1A 2A 00 00 00 00 00 FF 0F 59 [09:48:47]process_action close_receipt done [09:48:47]requested_data is exist [09:48:47]produce_requested_data [09:48:47]requested_item fm.sn is exist - process it [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 11 00 00 [09:48:47]Write to MH i2c: E2 08 00 1B 2A 80 11 00 00 00 00 00 00 BF [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 17 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 17 00 1B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 12 [09:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:48:47]wFMCommunicate OK [09:48:47]requested_item fd.num is exist - process it [09:48:47]SAM_PROTO_GetFieldsCounters [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 13 00 00 [09:48:47]Write to MH i2c: E2 08 00 1C 2A 80 13 00 00 00 00 00 00 C2 [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 62 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 62 00 1C 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F2 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [09:48:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F2 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:47]wFMCommunicate OK [09:48:47]SAM_PROTO_GetFieldsCounters done [09:48:47]requested_item shift.num is exist - process it [09:48:47]requested_item shift.opened is exist - process it [09:48:47]req_shift_opened [09:48:47]FM_GetShiftState [09:48:47]SAM_PROTO_GetShiftState [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 13 01 00 [09:48:47]Write to MH i2c: E2 08 00 1D 2A 80 13 01 00 00 00 00 00 C4 [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 0E 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 0E 00 1D 2A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 14 [09:48:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:48:47]wFMCommunicate OK [09:48:47]SAM_PROTO_GetShiftState done [09:48:47]FM_GetShiftState done [09:48:47]req_shift_opened done [09:48:47]requested_item shift.open_date is exist - process it [09:48:47]req_shift_open_date [09:48:47]req_shift_open_date done [09:48:47]produce_requested_data done [09:48:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192498,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:48:47]process_action_free close_receipt [09:48:47]json_value_free [09:48:47]json_value_free done [09:48:47]process_json_proto returns [09:48:47]Send response to host [09:48:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192498,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:48:47]free response buf [09:48:47]execute_script done [09:48:47]execute_script returns [09:48:47]free content buf [09:48:47]Sock 7.Close socket [09:48:47]Sock 7.Thread stoped [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:45]accept exits with 9 [09:54:45]New connection [09:54:45]New thread 3066563940 created [09:54:45]Thread 3066707300 joined [09:54:45]Waiting for new connection... [09:54:45] Sock 9.Parse request [09:54:45]Sock 9.Check first char [09:54:45]Sock 9.First char is OK [09:54:45]request: POST /json_proto HTTP/1.0 [09:54:45]Method: POST [09:54:45]URL: /json_proto [09:54:45]Method is POST - this is cgi request [09:54:45]url: /json_proto [09:54:45]query_string will be loaded in cgi processing [09:54:45]execute_cgi json_proto POST (null) [09:54:45]execute_cgi path=json_proto method=POST [09:54:45]POST find Content-Length [09:54:45]Host: 172.17.63.131:8080 [09:54:45]Content-Length: 676 [09:54:45]Content-Type: application/json [09:54:45] [09:54:45]POST finish read [09:54:45]Found Content-Length = 676 [09:54:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:45]execute_script... [09:54:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:45]POST & json_proto [09:54:45]process_json_proto [09:54:45]json parsed OK: [09:54:45]protocol is kg_v1.0 [09:54:45]action value=close_receipt [09:54:45]process_action close_receipt [09:54:45]cmd_close_receipt [09:54:45]MH_GetDate [09:54:45]Write to MH i2c: F0 00 00 1E 2A 37 [09:54:45]Write i2c OK [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: F0 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: F0 09 00 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: F0 09 00 1E 2A 00 6A 5F 1F 67 22 05 6E 64 88 [09:54:45]GetLastDocTimeStamp 1730108927 [09:54:45]current date 1730109290 [09:54:45]FM_GetShiftState [09:54:45]SAM_PROTO_GetShiftState [09:54:45]wFMCommunicate request_size=4 [09:54:45]MH_SAM_APDU [09:54:45]CAPDU: 80 13 01 00 [09:54:45]Write to MH i2c: E2 08 00 1F 2A 80 13 01 00 00 00 00 00 C6 [09:54:45]Write i2c OK [09:54:45]MH_I2C_Read... [09:54:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:45]Read from MH i2c: E2 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: E2 0E 00 [09:54:45]MH_I2C_Read... [09:54:45]Read from MH i2c: E2 0E 00 1F 2A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 16 [09:54:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:54:45]wFMCommunicate OK [09:54:45]SAM_PROTO_GetShiftState done [09:54:45]FM_GetShiftState done [09:54:45]opened in 1730075620 [09:54:45]opened+sec_in_day 1730162020 [09:54:45]quantity*price = 29034 [09:54:45]sum+1 = 29036 [09:54:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.83 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 47 28.10.2024 09:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192499 ФПД: 85820000865706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T095450&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192499&fm=85820000865706&tin=02508201610067®Number=0000000000091776&sum=29000 [09:54:47]StoreToDocumentArchive [09:54:47]shift 543 fd 192499 [09:54:47]save to /storage/0543/doc_00192499 [09:54:47]save last doc name /storage/0543/doc_00192499 to /storage/kkm_last_doc_name [09:54:47]save OK [09:54:47]Clear old archive folders... [09:54:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:47]tlvbuf is 01A38F70 [09:54:47]SAM_PROTO_ClearQueue [09:54:47]wFMCommunicate request_size=4 [09:54:47]MH_SAM_APDU [09:54:47]CAPDU: 80 09 00 00 [09:54:47]Write to MH i2c: E2 08 00 2C 2A 80 09 00 00 00 00 00 00 C8 [09:54:47]Write i2c OK [09:54:47]MH_I2C_Read... [09:54:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:47]Read from MH i2c: E2 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 03 00 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 03 00 2C 2A 00 90 00 CA [09:54:47]RAPDU: 90 00 [09:54:47]wFMCommunicate OK [09:54:47]SAM_PROTO_ClearQueue done [09:54:47]KKMCreateOFDPacket [09:54:47]OFDProtocolAddRootSTLVToBuf [09:54:47]FM_MakeSignedData [09:54:47]FM_MakeSignedData [09:54:47]SAM_PROTO_SignData [09:54:47]wFMCommunicate request_size=4 [09:54:47]MH_SAM_APDU [09:54:47]CAPDU: 80 0D 01 02 [09:54:47]Write to MH i2c: E2 08 00 2D 2A 80 0D 01 02 00 00 00 00 D0 [09:54:47]Write i2c OK [09:54:47]MH_I2C_Read... [09:54:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:47]Read from MH i2c: E2 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 03 00 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 03 00 2D 2A 00 90 00 CB [09:54:47]RAPDU: 90 00 [09:54:47]wFMCommunicate OK [09:54:47]wFMCommunicate request_size=255 [09:54:47]MH_SAM_APDU [09:54: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 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 6A 5F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EF 02 00 35 04 06 00 4E [09:54:47]Write to MH i2c: E2 02 01 2E 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 6A 5F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EF 02 00 35 04 06 00 4E 00 00 57 [09:54:47]Write i2c OK [09:54:47]MH_I2C_Read... [09:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:47]Read from MH i2c: E2 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 03 00 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 03 00 2E 2A 00 90 00 CC [09:54:47]RAPDU: 90 00 [09:54:47]wFMCommunicate OK [09:54:47]wFMCommunicate request_size=10 [09:54:47]MH_SAM_APDU [09:54:47]CAPDU: 80 0D 02 02 05 0D 86 AA 8D AA [09:54:47]Write to MH i2c: E2 0D 00 2F 2A 80 0D 02 02 05 00 0D 86 AA 8D AA 00 00 51 [09:54:47]Write i2c OK [09:54:47]MH_I2C_Read... [09:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:47]Read from MH i2c: E2 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 03 00 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 03 00 2F 2A 00 90 00 CD [09:54:47]RAPDU: 90 00 [09:54:47]wFMCommunicate OK [09:54:47]wFMCommunicate request_size=4 [09:54:47]MH_SAM_APDU [09:54:47]CAPDU: 80 0D 03 02 [09:54:47]Write to MH i2c: E2 08 00 30 2A 80 0D 03 02 00 00 00 00 D5 [09:54:47]Write i2c OK [09:54:47]MH_I2C_Read... [09:54:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:47]Read from MH i2c: E2 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 0B 00 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 0B 00 30 2A 00 97 59 F5 7C 97 F0 26 23 90 00 07 [09:54:47]RAPDU: 97 59 F5 7C 97 F0 26 23 90 00 [09:54:47]wFMCommunicate OK [09:54:47]SAM_PROTO_SignData done [09:54:47]FM_MakeSignedData done [09:54:47]CreateOFDProtocolMessage [09:54:47]wFMCommunicate request_size=4 [09:54:47]MH_SAM_APDU [09:54:47]CAPDU: 80 11 00 00 [09:54:47]Write to MH i2c: E2 08 00 31 2A 80 11 00 00 00 00 00 00 D5 [09:54:47]Write i2c OK [09:54:47]MH_I2C_Read... [09:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:47]Read from MH i2c: E2 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 17 00 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: E2 17 00 31 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 28 [09:54:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:54:47]wFMCommunicate OK [09:54:47]CreateOFDProtocolMessage done [09:54:47]OFDSenderStorePacket 192499 [09:54:47]StoreOFDPacket docnum=192499 [09:54:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 85 07 01 52 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 6A 5F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EF 02 00 35 04 06 00 4E 0D 86 AA 8D AA 97 59 F5 7C 97 F0 26 23 [09:54:47]CheckFolder [09:54:47]dirname=/storage/ofd_packets [09:54:47]CheckFolder done [09:54:47]ProducePacketName [09:54:47]name=ofd_packets/00192499 [09:54:47]NVStorageSaveData ofd_packets/00192499 [09:54:47]File name is /storage/ofd_packets/00192499 [09:54:47]Write 301 bytes [09:54:47]NVStorageSaveData done [09:54:47]OFDSenderStorePacket done [09:54:47]KKMCreateOFDPacket done [09:54:47]NVStorageSaveData kkm_last_timestamp [09:54:47]File name is /storage/kkm_last_timestamp [09:54:47]Write 4 bytes [09:54:47]NVStorageSaveData done [09:54:47]ExternCall_PrintAddStr [09:54:47]wPrintStart [09:54:47]Write to MH i2c: 01 00 00 32 2A 5C [09:54:47]Write i2c OK [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: 01 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: 01 07 00 [09:54:47]MH_I2C_Read... [09:54:47]Read from MH i2c: 01 07 00 32 2A 00 00 00 00 00 FF 0F 71 [09:54:47]RasterBufferAndPrint [09:54:47]line Счет N : (1)31814 [09:54:47]line ИНН: 02508201610067 [09:54:47]line Контрольно-Кассовый Чек [09:54:47]line ПРОДАЖА [09:54:47]line ТРК (МРК, ГНК) : 21 [09:54:47]line Товар: 2710124130 [09:54:47]line Аи-92-К-5 [09:54:47]line 4.340 * 66.90 [09:54:47]line = 290.35 [09:54:47]line НДС 12% НСП 1% [09:54:47]line > о реализуемом товаре [09:54:47]line ОКРУГЛЕНИЕ: -0.35 [09:54:47]line ИТОГО: 290.00 [09:54:47]line Внесено: 290.00 [09:54:47]line СДАЧА: 0.00 [09:54:47]line НСП 1% : 2.57 [09:54:47]line НДС 12% : 30.83 [09:54:47]line Наличными: 290.00 [09:54:47]line Безнал.: 0.00 [09:54:47]line Место: АЗС № 170 "Партнер Нефть" [09:54:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:54:47]line СНО: Общий режим [09:54:47]line Чек 47 28.10.2024 09:54 [09:54:47]line Смена: 543 ФФД: 1.0 [09:54:47]line ЗНМ: 0300000110 [09:54:47]line РНМ: 0000000000091776 [09:54:47]line Версия ККМ: 001 [09:54:47]line ФМ: 0000000000871754 [09:54:47]line ФД: 192499 [09:54:47]line ФПД: 85820000865706 [09:54:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T095450&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192499&fm=85820000865706&tin=02508201610067®Number=0000000000091776&sum=29000 [09:54:47]OFD Sender: Processing packet 192499 [packets to send 75, broken 74] [09:54:47]ProducePacketName [09:54:47]name=ofd_packets/00192499 [09:54:47]OFD Sender: To server: pG, [09:54:47]CommunicateWithHost lk.salyk.kg:30040 [09:54:47]ConnectInit lk.salyk.kg [09:54:47]written 0, free lines is 4095 [09:54:48]Connected sock=10 [09:54:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 85 07 01 52 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 6A 5F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EF 02 00 35 04 06 00 4E 0D 86 AA 8D AA 97 59 F5 7C 97 F0 26 23 [09:54:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 48 B6 47 00 AD 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EF 02 00 F4 03 04 00 2F 04 1F 67 B6 04 01 00 00 60 FD DD F0 BC 07 66 B8 [09:54:48]CommunicateWithHost err = 0 [09:54:48]CheckOFDResponse [09:54:48]1017 (14) - 77093643461234 [09:54:48]1041 (16) - 0000000000871754 [09:54:48]1040 (4) - 192499 [09:54:48]1012 (4) - 28.10.2024 03:25 [09:54:48]1206 (1) - 0 [09:54:48]OFD Sender: Remove packet 192499 [09:54:48]ProducePacketName [09:54:48]name=ofd_packets/00192499 [09:54:48]NVStorageDeleteData [09:54:48]Write to MH i2c: 01 00 00 5D 2A 87 [09:54:48]Write i2c OK [09:54:48]MH_I2C_Read... [09:54:48]Read from MH i2c: 01 [09:54:48]MH_I2C_Read... [09:54:48]Read from MH i2c: 01 07 00 [09:54:48]MH_I2C_Read... [09:54:48]Read from MH i2c: 01 07 00 5D 2A 00 00 00 00 00 9D 0C 37 [09:54:48]RasterBufferAndPrint [09:54:48]line [09:54:48]line [09:54:48]line [09:54:48]line [09:54:48]line [09:54:48]written 0, free lines is 3234 [09:54:48]MH_Cut [09:54:48]Write to MH i2c: D1 01 00 64 2A 01 60 [09:54:48]Write i2c OK [09:54:48]MH_I2C_Read... [09:54:48]Read from MH i2c: D1 [09:54:48]MH_I2C_Read... [09:54:48]Read from MH i2c: D1 01 00 [09:54:48]MH_I2C_Read... [09:54:48]Read from MH i2c: D1 01 00 64 2A 00 5F [09:54:48]Write to MH i2c: 01 00 00 65 2A 8F [09:54:48]Write i2c OK [09:54:48]MH_I2C_Read... [09:54:48]OFD Sender: No OFD packet to send [09:54:49]*** Cut start [09:54:49]*** Partial cut [09:54:49]*** CUTSNS_PIN = 1 [09:54:49]*** CUTSNS_PIN = 0 [09:54:49]*** Brake cut motor [09:54:49]Read from MH i2c: 01 [09:54:49]MH_I2C_Read... [09:54:49]*** Stop cut motor [09:54:49]*** Cut end [09:54:49]Read from MH i2c: 01 07 00 [09:54:49]MH_I2C_Read... [09:54:49]Read from MH i2c: 01 07 00 65 2A 00 00 00 00 00 FF 0F A4 [09:54:49]process_action close_receipt done [09:54:49]requested_data is exist [09:54:49]produce_requested_data [09:54:49]requested_item fm.sn is exist - process it [09:54:49]wFMCommunicate request_size=4 [09:54:49]MH_SAM_APDU [09:54:49]CAPDU: 80 11 00 00 [09:54:49]Write to MH i2c: E2 08 00 66 2A 80 11 00 00 00 00 00 00 0A [09:54:49]Write i2c OK [09:54:49]MH_I2C_Read... [09:54:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:49]Read from MH i2c: E2 [09:54:49]MH_I2C_Read... [09:54:49]Read from MH i2c: E2 17 00 [09:54:49]MH_I2C_Read... [09:54:49]Read from MH i2c: E2 17 00 66 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5D [09:54:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:54:49]wFMCommunicate OK [09:54:49]requested_item fd.num is exist - process it [09:54:49]SAM_PROTO_GetFieldsCounters [09:54:49]wFMCommunicate request_size=4 [09:54:49]MH_SAM_APDU [09:54:49]CAPDU: 80 13 00 00 [09:54:49]Write to MH i2c: E2 08 00 67 2A 80 13 00 00 00 00 00 00 0D [09:54:49]Write i2c OK [09:54:49]MH_I2C_Read... [09:54:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:50]Read from MH i2c: E2 [09:54:50]MH_I2C_Read... [09:54:50]Read from MH i2c: E2 62 00 [09:54:50]MH_I2C_Read... [09:54:50]Read from MH i2c: E2 62 00 67 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F3 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [09:54:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F3 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:50]wFMCommunicate OK [09:54:50]SAM_PROTO_GetFieldsCounters done [09:54:50]requested_item shift.num is exist - process it [09:54:50]requested_item shift.opened is exist - process it [09:54:50]req_shift_opened [09:54:50]FM_GetShiftState [09:54:50]SAM_PROTO_GetShiftState [09:54:50]wFMCommunicate request_size=4 [09:54:50]MH_SAM_APDU [09:54:50]CAPDU: 80 13 01 00 [09:54:50]Write to MH i2c: E2 08 00 68 2A 80 13 01 00 00 00 00 00 0F [09:54:50]Write i2c OK [09:54:50]MH_I2C_Read... [09:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:50]Read from MH i2c: E2 [09:54:50]MH_I2C_Read... [09:54:50]Read from MH i2c: E2 0E 00 [09:54:50]MH_I2C_Read... [09:54:50]Read from MH i2c: E2 0E 00 68 2A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 5F [09:54:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [09:54:50]wFMCommunicate OK [09:54:50]SAM_PROTO_GetShiftState done [09:54:50]FM_GetShiftState done [09:54:50]req_shift_opened done [09:54:50]requested_item shift.open_date is exist - process it [09:54:50]req_shift_open_date [09:54:50]req_shift_open_date done [09:54:50]produce_requested_data done [09:54:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192499,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [09:54:50]process_action_free close_receipt [09:54:50]json_value_free [09:54:50]json_value_free done [09:54:50]process_json_proto returns [09:54:50]Send response to host [09:54:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192499,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [09:54:50]free response buf [09:54:50]execute_script done [09:54:50]execute_script returns [09:54:50]free content buf [09:54:50]Sock 9.Close socket [09:54:50]Sock 9.Thread stoped [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:57]accept exits with 7 [10:03:57]New connection [10:03:57]New thread 3066707300 created [10:03:57]Thread 3066563940 joined [10:03:57]Waiting for new connection... [10:03:57] Sock 7.Parse request [10:03:57]Sock 7.Check first char [10:03:57]Sock 7.First char is OK [10:03:57]request: POST /json_proto HTTP/1.0 [10:03:57]Method: POST [10:03:57]URL: /json_proto [10:03:57]Method is POST - this is cgi request [10:03:57]url: /json_proto [10:03:57]query_string will be loaded in cgi processing [10:03:57]execute_cgi json_proto POST (null) [10:03:57]execute_cgi path=json_proto method=POST [10:03:57]POST find Content-Length [10:03:57]Host: 172.17.63.131:8080 [10:03:57]Content-Length: 862 [10:03:57]Content-Type: application/json [10:03:57] [10:03:57]POST finish read [10:03:57]Found Content-Length = 862 [10:03:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.330, "sum" : 490.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: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 490.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:57]execute_script... [10:03:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.330, "sum" : 490.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: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 490.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:57]POST & json_proto [10:03:57]process_json_proto [10:03:57]json parsed OK: [10:03:57]protocol is kg_v1.0 [10:03:57]action value=close_receipt [10:03:57]process_action close_receipt [10:03:57]cmd_close_receipt [10:03:57]MH_GetDate [10:03:57]Write to MH i2c: F0 00 00 69 2A 82 [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: F0 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: F0 09 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: F0 09 00 69 2A 00 92 61 1F 67 22 05 6E 64 FD [10:03:57]GetLastDocTimeStamp 1730109290 [10:03:57]current date 1730109842 [10:03:57]FM_GetShiftState [10:03:57]SAM_PROTO_GetShiftState [10:03:57]wFMCommunicate request_size=4 [10:03:57]MH_SAM_APDU [10:03:57]CAPDU: 80 13 01 00 [10:03:57]Write to MH i2c: E2 08 00 6A 2A 80 13 01 00 00 00 00 00 11 [10:03:57]Write i2c OK [10:03:57]MH_I2C_Read... [10:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:57]Read from MH i2c: E2 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 0E 00 [10:03:57]MH_I2C_Read... [10:03:57]Read from MH i2c: E2 0E 00 6A 2A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 61 [10:03:57]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:03:57]wFMCommunicate OK [10:03:57]SAM_PROTO_GetShiftState done [10:03:57]FM_GetShiftState done [10:03:57]opened in 1730075620 [10:03:57]opened+sec_in_day 1730162020 [10:03:57]quantity*price = 49037 [10:03:57]sum+1 = 49039 [10:03:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 490.38 НСП 1% : 4.34 НДС 12% : 52.08 Наличными: 0.00 Безнал.: 490.38 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 48 28.10.2024 10:04 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192500 ФПД: 148985182922050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T100402&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192500&fm=148985182922050&tin=02508201610067®Number=0000000000091776&sum=49038 [10:03:59]StoreToDocumentArchive [10:03:59]shift 543 fd 192500 [10:03:59]save to /storage/0543/doc_00192500 [10:03:59]save last doc name /storage/0543/doc_00192500 to /storage/kkm_last_doc_name [10:03:59]save OK [10:03:59]Clear old archive folders... [10:03:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:59]tlvbuf is 01990E30 [10:03:59]SAM_PROTO_ClearQueue [10:03:59]wFMCommunicate request_size=4 [10:03:59]MH_SAM_APDU [10:03:59]CAPDU: 80 09 00 00 [10:03:59]Write to MH i2c: E2 08 00 77 2A 80 09 00 00 00 00 00 00 13 [10:03:59]Write i2c OK [10:03:59]MH_I2C_Read... [10:03:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:59]Read from MH i2c: E2 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 03 00 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 03 00 77 2A 00 90 00 15 [10:03:59]RAPDU: 90 00 [10:03:59]wFMCommunicate OK [10:03:59]SAM_PROTO_ClearQueue done [10:03:59]KKMCreateOFDPacket [10:03:59]OFDProtocolAddRootSTLVToBuf [10:03:59]FM_MakeSignedData [10:03:59]FM_MakeSignedData [10:03:59]SAM_PROTO_SignData [10:03:59]wFMCommunicate request_size=4 [10:03:59]MH_SAM_APDU [10:03:59]CAPDU: 80 0D 01 02 [10:03:59]Write to MH i2c: E2 08 00 78 2A 80 0D 01 02 00 00 00 00 1B [10:03:59]Write i2c OK [10:03:59]MH_I2C_Read... [10:03:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:59]Read from MH i2c: E2 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 03 00 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 03 00 78 2A 00 90 00 16 [10:03:59]RAPDU: 90 00 [10:03:59]wFMCommunicate OK [10:03:59]wFMCommunicate request_size=255 [10:03:59]MH_SAM_APDU [10:03:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E BF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 92 61 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EF 02 00 35 04 06 00 87 [10:03:59]Write to MH i2c: E2 02 01 79 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E BF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 92 61 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EF 02 00 35 04 06 00 87 00 00 60 [10:03:59]Write i2c OK [10:03:59]MH_I2C_Read... [10:03:59]OFD Sender: No OFD packet to send [10:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:59]Read from MH i2c: E2 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 03 00 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 03 00 79 2A 00 90 00 17 [10:03:59]RAPDU: 90 00 [10:03:59]wFMCommunicate OK [10:03:59]wFMCommunicate request_size=10 [10:03:59]MH_SAM_APDU [10:03:59]CAPDU: 80 0D 02 02 05 80 50 E7 A5 42 [10:03:59]Write to MH i2c: E2 0D 00 7A 2A 80 0D 02 02 05 00 80 50 E7 A5 42 00 00 C6 [10:03:59]Write i2c OK [10:03:59]MH_I2C_Read... [10:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:59]Read from MH i2c: E2 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 03 00 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 03 00 7A 2A 00 90 00 18 [10:03:59]RAPDU: 90 00 [10:03:59]wFMCommunicate OK [10:03:59]wFMCommunicate request_size=4 [10:03:59]MH_SAM_APDU [10:03:59]CAPDU: 80 0D 03 02 [10:03:59]Write to MH i2c: E2 08 00 7B 2A 80 0D 03 02 00 00 00 00 20 [10:03:59]Write i2c OK [10:03:59]MH_I2C_Read... [10:03:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:59]Read from MH i2c: E2 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 0B 00 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 0B 00 7B 2A 00 68 CE 53 E1 A4 A0 60 BB 90 00 EA [10:03:59]RAPDU: 68 CE 53 E1 A4 A0 60 BB 90 00 [10:03:59]wFMCommunicate OK [10:03:59]SAM_PROTO_SignData done [10:03:59]FM_MakeSignedData done [10:03:59]CreateOFDProtocolMessage [10:03:59]wFMCommunicate request_size=4 [10:03:59]MH_SAM_APDU [10:03:59]CAPDU: 80 11 00 00 [10:03:59]Write to MH i2c: E2 08 00 7C 2A 80 11 00 00 00 00 00 00 20 [10:03:59]Write i2c OK [10:03:59]MH_I2C_Read... [10:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:59]Read from MH i2c: E2 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 17 00 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: E2 17 00 7C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 73 [10:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:03:59]wFMCommunicate OK [10:03:59]CreateOFDProtocolMessage done [10:03:59]OFDSenderStorePacket 192500 [10:03:59]StoreOFDPacket docnum=192500 [10:03:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 89 56 07 01 C9 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E BF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 92 61 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EF 02 00 35 04 06 00 87 80 50 E7 A5 42 68 CE 53 E1 A4 A0 60 BB [10:03:59]CheckFolder [10:03:59]dirname=/storage/ofd_packets [10:03:59]CheckFolder done [10:03:59]ProducePacketName [10:03:59]name=ofd_packets/00192500 [10:03:59]NVStorageSaveData ofd_packets/00192500 [10:03:59]File name is /storage/ofd_packets/00192500 [10:03:59]Write 301 bytes [10:03:59]NVStorageSaveData done [10:03:59]OFDSenderStorePacket done [10:03:59]KKMCreateOFDPacket done [10:03:59]NVStorageSaveData kkm_last_timestamp [10:03:59]File name is /storage/kkm_last_timestamp [10:03:59]Write 4 bytes [10:03:59]NVStorageSaveData done [10:03:59]ExternCall_PrintAddStr [10:03:59]wPrintStart [10:03:59]Write to MH i2c: 01 00 00 7D 2A A7 [10:03:59]Write i2c OK [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: 01 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: 01 07 00 [10:03:59]MH_I2C_Read... [10:03:59]Read from MH i2c: 01 07 00 7D 2A 00 00 00 00 00 FF 0F BC [10:03:59]RasterBufferAndPrint [10:03:59]line Счет N : (1)31815 [10:03:59]line ИНН: 02508201610067 [10:03:59]line Контрольно-Кассовый Чек [10:03:59]line ПРОДАЖА [10:03:59]line ТРК (МРК, ГНК) : 12 [10:03:59]line Товар: 2710124130 [10:03:59]line Аи-92-К-5 [10:03:59]line 7.330 * 66.90 [10:03:59]line = 490.38 [10:03:59]line НДС 12% НСП 1% [10:03:59]line > о реализуемом товаре [10:03:59]line ИТОГО: 490.38 [10:03:59]line НСП 1% : 4.34 [10:03:59]line НДС 12% : 52.08 [10:03:59]line Наличными: 0.00 [10:03:59]line Безнал.: 490.38 [10:03:59]line Место: АЗС № 170 "Партнер Нефть" [10:03:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:03:59]line СНО: Общий режим [10:03:59]line Чек 48 28.10.2024 10:04 [10:03:59]line Смена: 543 ФФД: 1.0 [10:03:59]line ЗНМ: 0300000110 [10:03:59]line РНМ: 0000000000091776 [10:03:59]line Версия ККМ: 001 [10:03:59]line Платежная система: Кыргызкоммерцбанк [10:03:59]line ФМ: 0000000000871754 [10:03:59]line ФД: 192500 [10:03:59]line ФПД: 148985182922050 [10:03:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T100402&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192500&fm=148985182922050&tin=02508201610067®Number=0000000000091776&sum=49038 [10:03:59]OFD Sender: Processing packet 192500 [packets to send 75, broken 74] [10:03:59]ProducePacketName [10:03:59]name=ofd_packets/00192500 [10:03:59]OFD Sender: To server: pG, [10:03:59]CommunicateWithHost lk.salyk.kg:30040 [10:03:59]ConnectInit lk.salyk.kg [10:03:59]written 0, free lines is 4095 [10:04:00]Connected sock=10 [10:04:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 89 56 07 01 C9 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E BF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 92 61 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EF 02 00 35 04 06 00 87 80 50 E7 A5 42 68 CE 53 E1 A4 A0 60 BB [10:04:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 47 02 47 00 9B 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EF 02 00 F4 03 04 00 57 06 1F 67 B6 04 01 00 00 3A 12 F3 F6 A1 7E 28 DC [10:04:00]CommunicateWithHost err = 0 [10:04:00]CheckOFDResponse [10:04:00]1017 (14) - 77093643461234 [10:04:00]1041 (16) - 0000000000871754 [10:04:00]1040 (4) - 192500 [10:04:00]1012 (4) - 28.10.2024 03:34 [10:04:00]1206 (1) - 0 [10:04:00]OFD Sender: Remove packet 192500 [10:04:00]ProducePacketName [10:04:00]name=ofd_packets/00192500 [10:04:00]NVStorageDeleteData [10:04:00]Write to MH i2c: 01 00 00 A7 2A D1 [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: 01 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: 01 07 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: 01 07 00 A7 2A 00 00 00 00 00 BF 0C A3 [10:04:00]RasterBufferAndPrint [10:04:00]line [10:04:00]line [10:04:00]line [10:04:00]line [10:04:00]line [10:04:00]written 0, free lines is 3269 [10:04:00]MH_Cut [10:04:00]Write to MH i2c: D1 01 00 AE 2A 01 AA [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: D1 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: D1 01 00 [10:04:00]MH_I2C_Read... [10:04:00]Read from MH i2c: D1 01 00 AE 2A 00 A9 [10:04:00]Write to MH i2c: 01 00 00 AF 2A D9 [10:04:00]Write i2c OK [10:04:00]MH_I2C_Read... [10:04:00]OFD Sender: No OFD packet to send [10:04:01]*** Cut start [10:04:01]*** Partial cut [10:04:01]*** CUTSNS_PIN = 1 [10:04:01]*** CUTSNS_PIN = 0 [10:04:01]*** Brake cut motor [10:04:01]Read from MH i2c: 01 [10:04:01]MH_I2C_Read... [10:04:01]*** Stop cut motor [10:04:01]*** Cut end [10:04:01]Read from MH i2c: 01 07 00 [10:04:01]MH_I2C_Read... [10:04:01]Read from MH i2c: 01 07 00 AF 2A 00 00 00 00 00 FF 0F EE [10:04:01]process_action close_receipt done [10:04:01]requested_data is exist [10:04:01]produce_requested_data [10:04:01]requested_item fm.sn is exist - process it [10:04:01]wFMCommunicate request_size=4 [10:04:01]MH_SAM_APDU [10:04:01]CAPDU: 80 11 00 00 [10:04:01]Write to MH i2c: E2 08 00 B0 2A 80 11 00 00 00 00 00 00 54 [10:04:01]Write i2c OK [10:04:01]MH_I2C_Read... [10:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:02]Read from MH i2c: E2 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 17 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 17 00 B0 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A7 [10:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:04:02]wFMCommunicate OK [10:04:02]requested_item fd.num is exist - process it [10:04:02]SAM_PROTO_GetFieldsCounters [10:04:02]wFMCommunicate request_size=4 [10:04:02]MH_SAM_APDU [10:04:02]CAPDU: 80 13 00 00 [10:04:02]Write to MH i2c: E2 08 00 B1 2A 80 13 00 00 00 00 00 00 57 [10:04:02]Write i2c OK [10:04:02]MH_I2C_Read... [10:04:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:02]Read from MH i2c: E2 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 62 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 62 00 B1 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F4 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [10:04:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F4 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:02]wFMCommunicate OK [10:04:02]SAM_PROTO_GetFieldsCounters done [10:04:02]requested_item shift.num is exist - process it [10:04:02]requested_item shift.opened is exist - process it [10:04:02]req_shift_opened [10:04:02]FM_GetShiftState [10:04:02]SAM_PROTO_GetShiftState [10:04:02]wFMCommunicate request_size=4 [10:04:02]MH_SAM_APDU [10:04:02]CAPDU: 80 13 01 00 [10:04:02]Write to MH i2c: E2 08 00 B2 2A 80 13 01 00 00 00 00 00 59 [10:04:02]Write i2c OK [10:04:02]MH_I2C_Read... [10:04:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:02]Read from MH i2c: E2 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 0E 00 [10:04:02]MH_I2C_Read... [10:04:02]Read from MH i2c: E2 0E 00 B2 2A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A9 [10:04:02]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:04:02]wFMCommunicate OK [10:04:02]SAM_PROTO_GetShiftState done [10:04:02]FM_GetShiftState done [10:04:02]req_shift_opened done [10:04:02]requested_item shift.open_date is exist - process it [10:04:02]req_shift_open_date [10:04:02]req_shift_open_date done [10:04:02]produce_requested_data done [10:04:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192500,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:04:02]process_action_free close_receipt [10:04:02]json_value_free [10:04:02]json_value_free done [10:04:02]process_json_proto returns [10:04:02]Send response to host [10:04:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192500,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:04:02]free response buf [10:04:02]execute_script done [10:04:02]execute_script returns [10:04:02]free content buf [10:04:02]Sock 7.Close socket [10:04:02]Sock 7.Thread stoped [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:39]accept exits with 9 [10:10:39]New connection [10:10:39]New thread 3066563940 created [10:10:39]Thread 3066707300 joined [10:10:39]Waiting for new connection... [10:10:39] Sock 9.Parse request [10:10:39]Sock 9.Check first char [10:10:39]Sock 9.First char is OK [10:10:39]request: POST /json_proto HTTP/1.0 [10:10:39]Method: POST [10:10:39]URL: /json_proto [10:10:39]Method is POST - this is cgi request [10:10:39]url: /json_proto [10:10:39]query_string will be loaded in cgi processing [10:10:39]execute_cgi json_proto POST (null) [10:10:39]execute_cgi path=json_proto method=POST [10:10:39]POST find Content-Length [10:10:39]Host: 172.17.63.131:8080 [10:10:39]Content-Length: 678 [10:10:39]Content-Type: application/json [10:10:39] [10:10:39]POST finish read [10:10:39]Found Content-Length = 678 [10:10:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:39]execute_script... [10:10:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:39]POST & json_proto [10:10:39]process_json_proto [10:10:39]json parsed OK: [10:10:39]protocol is kg_v1.0 [10:10:39]action value=close_receipt [10:10:39]process_action close_receipt [10:10:39]cmd_close_receipt [10:10:39]MH_GetDate [10:10:39]Write to MH i2c: F0 00 00 B3 2A CC [10:10:39]Write i2c OK [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: F0 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: F0 09 00 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: F0 09 00 B3 2A 00 23 63 1F 67 22 05 6E 64 DA [10:10:39]GetLastDocTimeStamp 1730109842 [10:10:39]current date 1730110243 [10:10:39]FM_GetShiftState [10:10:39]SAM_PROTO_GetShiftState [10:10:39]wFMCommunicate request_size=4 [10:10:39]MH_SAM_APDU [10:10:39]CAPDU: 80 13 01 00 [10:10:39]Write to MH i2c: E2 08 00 B4 2A 80 13 01 00 00 00 00 00 5B [10:10:39]Write i2c OK [10:10:39]MH_I2C_Read... [10:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:39]Read from MH i2c: E2 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: E2 0E 00 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: E2 0E 00 B4 2A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 AB [10:10:39]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:10:39]wFMCommunicate OK [10:10:39]SAM_PROTO_GetShiftState done [10:10:39]FM_GetShiftState done [10:10:39]opened in 1730075620 [10:10:39]opened+sec_in_day 1730162020 [10:10:39]quantity*price = 150037 [10:10:39]sum+1 = 150039 [10:10:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 49 28.10.2024 10:10 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192501 ФПД: 278710747534485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101043&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192501&fm=278710747534485&tin=02508201610067®Number=0000000000091776&sum=150000 [10:10:40]StoreToDocumentArchive [10:10:40]shift 543 fd 192501 [10:10:40]save to /storage/0543/doc_00192501 [10:10:40]save last doc name /storage/0543/doc_00192501 to /storage/kkm_last_doc_name [10:10:40]save OK [10:10:40]Clear old archive folders... [10:10:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:10:40]tlvbuf is 019EEB00 [10:10:40]SAM_PROTO_ClearQueue [10:10:40]wFMCommunicate request_size=4 [10:10:40]MH_SAM_APDU [10:10:40]CAPDU: 80 09 00 00 [10:10:40]Write to MH i2c: E2 08 00 C1 2A 80 09 00 00 00 00 00 00 5D [10:10:40]Write i2c OK [10:10:40]MH_I2C_Read... [10:10:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:40]Read from MH i2c: E2 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 03 00 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 03 00 C1 2A 00 90 00 5F [10:10:40]RAPDU: 90 00 [10:10:40]wFMCommunicate OK [10:10:40]SAM_PROTO_ClearQueue done [10:10:40]KKMCreateOFDPacket [10:10:40]OFDProtocolAddRootSTLVToBuf [10:10:40]FM_MakeSignedData [10:10:40]FM_MakeSignedData [10:10:40]SAM_PROTO_SignData [10:10:40]wFMCommunicate request_size=4 [10:10:40]MH_SAM_APDU [10:10:40]CAPDU: 80 0D 01 02 [10:10:40]Write to MH i2c: E2 08 00 C2 2A 80 0D 01 02 00 00 00 00 65 [10:10:40]Write i2c OK [10:10:40]MH_I2C_Read... [10:10:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:40]Read from MH i2c: E2 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 03 00 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 03 00 C2 2A 00 90 00 60 [10:10:40]RAPDU: 90 00 [10:10:40]wFMCommunicate OK [10:10:40]wFMCommunicate request_size=255 [10:10:40]MH_SAM_APDU [10:10:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 23 63 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EF 02 00 35 04 06 00 FD 7C 67 1A [10:10:40]Write to MH i2c: E2 02 01 C3 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 23 63 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EF 02 00 35 04 06 00 FD 7C 67 1A 00 00 A4 [10:10:40]Write i2c OK [10:10:40]MH_I2C_Read... [10:10:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:40]Read from MH i2c: E2 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 03 00 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 03 00 C3 2A 00 90 00 61 [10:10:40]RAPDU: 90 00 [10:10:40]wFMCommunicate OK [10:10:40]wFMCommunicate request_size=7 [10:10:40]MH_SAM_APDU [10:10:40]CAPDU: 80 0D 02 02 02 14 95 [10:10:40]Write to MH i2c: E2 0A 00 C4 2A 80 0D 02 02 02 00 14 95 00 00 15 [10:10:40]Write i2c OK [10:10:40]MH_I2C_Read... [10:10:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:40]Read from MH i2c: E2 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 03 00 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 03 00 C4 2A 00 90 00 62 [10:10:40]RAPDU: 90 00 [10:10:40]wFMCommunicate OK [10:10:40]wFMCommunicate request_size=4 [10:10:40]MH_SAM_APDU [10:10:40]CAPDU: 80 0D 03 02 [10:10:40]Write to MH i2c: E2 08 00 C5 2A 80 0D 03 02 00 00 00 00 6A [10:10:40]Write i2c OK [10:10:40]MH_I2C_Read... [10:10:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:40]Read from MH i2c: E2 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 0B 00 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 0B 00 C5 2A 00 1A 62 B2 CC 8A AE D2 AB 90 00 1A [10:10:40]RAPDU: 1A 62 B2 CC 8A AE D2 AB 90 00 [10:10:40]wFMCommunicate OK [10:10:40]SAM_PROTO_SignData done [10:10:40]FM_MakeSignedData done [10:10:40]CreateOFDProtocolMessage [10:10:40]wFMCommunicate request_size=4 [10:10:40]MH_SAM_APDU [10:10:40]CAPDU: 80 11 00 00 [10:10:40]Write to MH i2c: E2 08 00 C6 2A 80 11 00 00 00 00 00 00 6A [10:10:40]Write i2c OK [10:10:40]MH_I2C_Read... [10:10:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:40]Read from MH i2c: E2 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 17 00 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 17 00 C6 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BD [10:10:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:10:40]wFMCommunicate OK [10:10:40]CreateOFDProtocolMessage done [10:10:40]OFDSenderStorePacket 192501 [10:10:40]StoreOFDPacket docnum=192501 [10:10:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 9F 45 04 01 2B 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 23 63 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EF 02 00 35 04 06 00 FD 7C 67 1A 14 95 1A 62 B2 CC 8A AE D2 AB [10:10:40]CheckFolder [10:10:40]dirname=/storage/ofd_packets [10:10:40]CheckFolder done [10:10:40]ProducePacketName [10:10:40]name=ofd_packets/00192501 [10:10:40]NVStorageSaveData ofd_packets/00192501 [10:10:40]File name is /storage/ofd_packets/00192501 [10:10:40]Write 298 bytes [10:10:40]NVStorageSaveData done [10:10:40]OFDSenderStorePacket done [10:10:40]KKMCreateOFDPacket done [10:10:40]NVStorageSaveData kkm_last_timestamp [10:10:40]File name is /storage/kkm_last_timestamp [10:10:40]Write 4 bytes [10:10:40]NVStorageSaveData done [10:10:40]ExternCall_PrintAddStr [10:10:40]wPrintStart [10:10:40]Write to MH i2c: 01 00 00 C7 2A F1 [10:10:40]Write i2c OK [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: 01 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: 01 07 00 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: 01 07 00 C7 2A 00 00 00 00 00 FF 0F 06 [10:10:40]RasterBufferAndPrint [10:10:40]line Счет N : (1)31816 [10:10:40]line ИНН: 02508201610067 [10:10:40]line Контрольно-Кассовый Чек [10:10:40]line ПРОДАЖА [10:10:40]line ТРК (МРК, ГНК) : 11 [10:10:40]line Товар: 2710194210 [10:10:40]line ДТ-К-5 [10:10:40]line 19.690 * 76.20 [10:10:40]line = 1500.38 [10:10:40]line НДС 12% НСП 1% [10:10:40]line > о реализуемом товаре [10:10:40]line ОКРУГЛЕНИЕ: -0.38 [10:10:40]line ИТОГО: 1500.00 [10:10:40]line Внесено: 1500.00 [10:10:40]line СДАЧА: 0.00 [10:10:40]line НСП 1% : 13.28 [10:10:40]line НДС 12% : 159.33 [10:10:40]line Наличными: 1500.00 [10:10:40]line Безнал.: 0.00 [10:10:40]line Место: АЗС № 170 "Партнер Нефть" [10:10:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:10:40]line СНО: Общий режим [10:10:40]line Чек 49 28.10.2024 10:10 [10:10:40]line Смена: 543 ФФД: 1.0 [10:10:40]line ЗНМ: 0300000110 [10:10:40]line РНМ: 0000000000091776 [10:10:40]line Версия ККМ: 001 [10:10:40]line ФМ: 0000000000871754 [10:10:40]line ФД: 192501 [10:10:40]line ФПД: 278710747534485 [10:10:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101043&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192501&fm=278710747534485&tin=02508201610067®Number=0000000000091776&sum=150000 [10:10:41]OFD Sender: Processing packet 192501 [packets to send 75, broken 74] [10:10:41]ProducePacketName [10:10:41]name=ofd_packets/00192501 [10:10:41]OFD Sender: To server: pG, [10:10:41]CommunicateWithHost lk.salyk.kg:30040 [10:10:41]ConnectInit lk.salyk.kg [10:10:41]written 0, free lines is 4095 [10:10:41]Connected sock=10 [10:10:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 9F 45 04 01 2B 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 23 63 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EF 02 00 35 04 06 00 FD 7C 67 1A 14 95 1A 62 B2 CC 8A AE D2 AB [10:10:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 68 6C 47 00 63 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EF 02 00 F4 03 04 00 E8 07 1F 67 B6 04 01 00 00 29 DC 02 38 CF EE 0A 6F [10:10:41]CommunicateWithHost err = 0 [10:10:41]CheckOFDResponse [10:10:41]1017 (14) - 77093643461234 [10:10:41]1041 (16) - 0000000000871754 [10:10:41]1040 (4) - 192501 [10:10:41]1012 (4) - 28.10.2024 03:41 [10:10:41]1206 (1) - 0 [10:10:41]OFD Sender: Remove packet 192501 [10:10:41]ProducePacketName [10:10:41]name=ofd_packets/00192501 [10:10:41]NVStorageDeleteData [10:10:41]Write to MH i2c: 01 00 00 F2 2A 1C [10:10:41]Write i2c OK [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: 01 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: 01 07 00 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: 01 07 00 F2 2A 00 00 00 00 00 A0 0C CF [10:10:41]RasterBufferAndPrint [10:10:41]line [10:10:41]line [10:10:41]line [10:10:41]line [10:10:41]line [10:10:41]written 0, free lines is 3237 [10:10:41]MH_Cut [10:10:41]Write to MH i2c: D1 01 00 F9 2A 01 F5 [10:10:41]Write i2c OK [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: D1 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: D1 01 00 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: D1 01 00 F9 2A 00 F4 [10:10:41]Write to MH i2c: 01 00 00 FA 2A 24 [10:10:41]Write i2c OK [10:10:41]MH_I2C_Read... [10:10:42]OFD Sender: No OFD packet to send [10:10:42]*** Cut start [10:10:42]*** Partial cut [10:10:42]*** CUTSNS_PIN = 1 [10:10:42]*** CUTSNS_PIN = 0 [10:10:42]*** Brake cut motor [10:10:43]Read from MH i2c: 01 [10:10:43]MH_I2C_Read... [10:10:43]*** Stop cut motor [10:10:43]*** Cut end [10:10:43]Read from MH i2c: 01 07 00 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: 01 07 00 FA 2A 00 00 00 00 00 FF 0F 39 [10:10:43]process_action close_receipt done [10:10:43]requested_data is exist [10:10:43]produce_requested_data [10:10:43]requested_item fm.sn is exist - process it [10:10:43]wFMCommunicate request_size=4 [10:10:43]MH_SAM_APDU [10:10:43]CAPDU: 80 11 00 00 [10:10:43]Write to MH i2c: E2 08 00 FB 2A 80 11 00 00 00 00 00 00 9F [10:10:43]Write i2c OK [10:10:43]MH_I2C_Read... [10:10:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:43]Read from MH i2c: E2 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 17 00 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 17 00 FB 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F2 [10:10:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:10:43]wFMCommunicate OK [10:10:43]requested_item fd.num is exist - process it [10:10:43]SAM_PROTO_GetFieldsCounters [10:10:43]wFMCommunicate request_size=4 [10:10:43]MH_SAM_APDU [10:10:43]CAPDU: 80 13 00 00 [10:10:43]Write to MH i2c: E2 08 00 FC 2A 80 13 00 00 00 00 00 00 A2 [10:10:43]Write i2c OK [10:10:43]MH_I2C_Read... [10:10:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:43]Read from MH i2c: E2 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 62 00 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 62 00 FC 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F5 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [10:10:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F5 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:43]wFMCommunicate OK [10:10:43]SAM_PROTO_GetFieldsCounters done [10:10:43]requested_item shift.num is exist - process it [10:10:43]requested_item shift.opened is exist - process it [10:10:43]req_shift_opened [10:10:43]FM_GetShiftState [10:10:43]SAM_PROTO_GetShiftState [10:10:43]wFMCommunicate request_size=4 [10:10:43]MH_SAM_APDU [10:10:43]CAPDU: 80 13 01 00 [10:10:43]Write to MH i2c: E2 08 00 FD 2A 80 13 01 00 00 00 00 00 A4 [10:10:43]Write i2c OK [10:10:43]MH_I2C_Read... [10:10:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:43]Read from MH i2c: E2 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 0E 00 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 0E 00 FD 2A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F4 [10:10:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:10:43]wFMCommunicate OK [10:10:43]SAM_PROTO_GetShiftState done [10:10:43]FM_GetShiftState done [10:10:43]req_shift_opened done [10:10:43]requested_item shift.open_date is exist - process it [10:10:43]req_shift_open_date [10:10:43]req_shift_open_date done [10:10:43]produce_requested_data done [10:10:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192501,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:10:43]process_action_free close_receipt [10:10:43]json_value_free [10:10:43]json_value_free done [10:10:43]process_json_proto returns [10:10:43]Send response to host [10:10:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192501,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:10:43]free response buf [10:10:43]execute_script done [10:10:43]execute_script returns [10:10:43]free content buf [10:10:43]Sock 9.Close socket [10:10:43]Sock 9.Thread stoped [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:18]accept exits with 7 [10:11:18]New connection [10:11:18]New thread 3066707300 created [10:11:18]Thread 3066563940 joined [10:11:18]Waiting for new connection... [10:11:18] Sock 7.Parse request [10:11:18]Sock 7.Check first char [10:11:18]Sock 7.First char is OK [10:11:18]request: POST /json_proto HTTP/1.0 [10:11:18]Method: POST [10:11:18]URL: /json_proto [10:11:18]Method is POST - this is cgi request [10:11:18]url: /json_proto [10:11:18]query_string will be loaded in cgi processing [10:11:18]execute_cgi json_proto POST (null) [10:11:18]execute_cgi path=json_proto method=POST [10:11:18]POST find Content-Length [10:11:18]Host: 172.17.63.131:8080 [10:11:18]Content-Length: 676 [10:11:18]Content-Type: application/json [10:11:18] [10:11:18]POST finish read [10:11:18]Found Content-Length = 676 [10:11:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:18]execute_script... [10:11:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:18]POST & json_proto [10:11:18]process_json_proto [10:11:18]json parsed OK: [10:11:18]protocol is kg_v1.0 [10:11:18]action value=close_receipt [10:11:18]process_action close_receipt [10:11:18]cmd_close_receipt [10:11:18]MH_GetDate [10:11:18]Write to MH i2c: F0 00 00 FE 2A 17 [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: F0 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: F0 09 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: F0 09 00 FE 2A 00 4B 63 1F 67 22 05 6E 64 4D [10:11:18]GetLastDocTimeStamp 1730110243 [10:11:18]current date 1730110283 [10:11:18]FM_GetShiftState [10:11:18]SAM_PROTO_GetShiftState [10:11:18]wFMCommunicate request_size=4 [10:11:18]MH_SAM_APDU [10:11:18]CAPDU: 80 13 01 00 [10:11:18]Write to MH i2c: E2 08 00 FF 2A 80 13 01 00 00 00 00 00 A6 [10:11:18]Write i2c OK [10:11:18]MH_I2C_Read... [10:11:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:18]Read from MH i2c: E2 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 0E 00 [10:11:18]MH_I2C_Read... [10:11:18]Read from MH i2c: E2 0E 00 FF 2A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F6 [10:11:18]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:11:18]wFMCommunicate OK [10:11:18]SAM_PROTO_GetShiftState done [10:11:18]FM_GetShiftState done [10:11:18]opened in 1730075620 [10:11:18]opened+sec_in_day 1730162020 [10:11:18]quantity*price = 60009 [10:11:18]sum+1 = 60010 [10:11:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 50 28.10.2024 10:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192502 ФПД: 77238952903973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101123&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192502&fm=77238952903973&tin=02508201610067®Number=0000000000091776&sum=60000 [10:11:20]StoreToDocumentArchive [10:11:20]shift 543 fd 192502 [10:11:20]save to /storage/0543/doc_00192502 [10:11:20]save last doc name /storage/0543/doc_00192502 to /storage/kkm_last_doc_name [10:11:20]save OK [10:11:20]Clear old archive folders... [10:11:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:20]tlvbuf is B6F1CCE0 [10:11:20]SAM_PROTO_ClearQueue [10:11:20]wFMCommunicate request_size=4 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 09 00 00 [10:11:20]Write to MH i2c: E2 08 00 0C 2B 80 09 00 00 00 00 00 00 A9 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 0C 2B 00 90 00 AB [10:11:20]RAPDU: 90 00 [10:11:20]wFMCommunicate OK [10:11:20]SAM_PROTO_ClearQueue done [10:11:20]KKMCreateOFDPacket [10:11:20]OFDProtocolAddRootSTLVToBuf [10:11:20]FM_MakeSignedData [10:11:20]FM_MakeSignedData [10:11:20]SAM_PROTO_SignData [10:11:20]wFMCommunicate request_size=4 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 0D 01 02 [10:11:20]Write to MH i2c: E2 08 00 0D 2B 80 0D 01 02 00 00 00 00 B1 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 0D 2B 00 90 00 AC [10:11:20]RAPDU: 90 00 [10:11:20]wFMCommunicate OK [10:11:20]wFMCommunicate request_size=255 [10:11:20]MH_SAM_APDU [10:11: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 4B 63 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EF 02 00 35 04 06 00 46 [10:11:20]Write to MH i2c: E2 02 01 0E 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 4B 63 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EF 02 00 35 04 06 00 46 00 00 D6 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 0E 2B 00 90 00 AD [10:11:20]RAPDU: 90 00 [10:11:20]wFMCommunicate OK [10:11:20]wFMCommunicate request_size=10 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 0D 02 02 05 3F 98 59 C5 25 [10:11:20]Write to MH i2c: E2 0D 00 0F 2B 80 0D 02 02 05 00 3F 98 59 C5 25 00 00 D8 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 03 00 0F 2B 00 90 00 AE [10:11:20]RAPDU: 90 00 [10:11:20]wFMCommunicate OK [10:11:20]wFMCommunicate request_size=4 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 0D 03 02 [10:11:20]Write to MH i2c: E2 08 00 10 2B 80 0D 03 02 00 00 00 00 B6 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 0B 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 0B 00 10 2B 00 86 41 2E 65 C8 4D ED B5 90 00 C8 [10:11:20]RAPDU: 86 41 2E 65 C8 4D ED B5 90 00 [10:11:20]wFMCommunicate OK [10:11:20]SAM_PROTO_SignData done [10:11:20]FM_MakeSignedData done [10:11:20]CreateOFDProtocolMessage [10:11:20]wFMCommunicate request_size=4 [10:11:20]MH_SAM_APDU [10:11:20]CAPDU: 80 11 00 00 [10:11:20]Write to MH i2c: E2 08 00 11 2B 80 11 00 00 00 00 00 00 B6 [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:20]Read from MH i2c: E2 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 17 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: E2 17 00 11 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 09 [10:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:11:20]wFMCommunicate OK [10:11:20]CreateOFDProtocolMessage done [10:11:20]OFDSenderStorePacket 192502 [10:11:20]StoreOFDPacket docnum=192502 [10:11:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 47 9E 07 01 60 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 4B 63 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EF 02 00 35 04 06 00 46 3F 98 59 C5 25 86 41 2E 65 C8 4D ED B5 [10:11:20]CheckFolder [10:11:20]dirname=/storage/ofd_packets [10:11:20]CheckFolder done [10:11:20]ProducePacketName [10:11:20]name=ofd_packets/00192502 [10:11:20]NVStorageSaveData ofd_packets/00192502 [10:11:20]File name is /storage/ofd_packets/00192502 [10:11:20]Write 301 bytes [10:11:20]NVStorageSaveData done [10:11:20]OFDSenderStorePacket done [10:11:20]KKMCreateOFDPacket done [10:11:20]NVStorageSaveData kkm_last_timestamp [10:11:20]File name is /storage/kkm_last_timestamp [10:11:20]Write 4 bytes [10:11:20]NVStorageSaveData done [10:11:20]ExternCall_PrintAddStr [10:11:20]wPrintStart [10:11:20]Write to MH i2c: 01 00 00 12 2B 3D [10:11:20]Write i2c OK [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 07 00 [10:11:20]MH_I2C_Read... [10:11:20]Read from MH i2c: 01 07 00 12 2B 00 00 00 00 00 FF 0F 52 [10:11:20]RasterBufferAndPrint [10:11:20]line Счет N : (1)31817 [10:11:20]line ИНН: 02508201610067 [10:11:20]line Контрольно-Кассовый Чек [10:11:20]line ПРОДАЖА [10:11:20]line ТРК (МРК, ГНК) : 21 [10:11:20]line Товар: 2710124130 [10:11:20]line Аи-92-К-5 [10:11:20]line 8.970 * 66.90 [10:11:20]line = 600.09 [10:11:20]line НДС 12% НСП 1% [10:11:20]line > о реализуемом товаре [10:11:20]line ОКРУГЛЕНИЕ: -0.09 [10:11:20]line ИТОГО: 600.00 [10:11:20]line Внесено: 600.00 [10:11:20]line СДАЧА: 0.00 [10:11:20]line НСП 1% : 5.31 [10:11:20]line НДС 12% : 63.73 [10:11:20]line Наличными: 600.00 [10:11:20]line Безнал.: 0.00 [10:11:20]line Место: АЗС № 170 "Партнер Нефть" [10:11:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:11:20]line СНО: Общий режим [10:11:20]line Чек 50 28.10.2024 10:11 [10:11:20]line Смена: 543 ФФД: 1.0 [10:11:20]line ЗНМ: 0300000110 [10:11:20]line РНМ: 0000000000091776 [10:11:20]line Версия ККМ: 001 [10:11:20]line ФМ: 0000000000871754 [10:11:20]line ФД: 192502 [10:11:20]line ФПД: 77238952903973 [10:11:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101123&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192502&fm=77238952903973&tin=02508201610067®Number=0000000000091776&sum=60000 [10:11:20]OFD Sender: Processing packet 192502 [packets to send 75, broken 74] [10:11:20]ProducePacketName [10:11:20]name=ofd_packets/00192502 [10:11:20]OFD Sender: To server: pG, [10:11:20]CommunicateWithHost lk.salyk.kg:30040 [10:11:20]ConnectInit lk.salyk.kg [10:11:20]written 0, free lines is 4095 [10:11:21]Connected sock=10 [10:11:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 47 9E 07 01 60 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 4B 63 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EF 02 00 35 04 06 00 46 3F 98 59 C5 25 86 41 2E 65 C8 4D ED B5 [10:11:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 28 49 47 00 00 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EF 02 00 F4 03 04 00 10 08 1F 67 B6 04 01 00 00 39 BA 7F 49 19 AE 43 74 [10:11:21]CommunicateWithHost err = 0 [10:11:21]CheckOFDResponse [10:11:21]1017 (14) - 77093643461234 [10:11:21]1041 (16) - 0000000000871754 [10:11:21]1040 (4) - 192502 [10:11:21]1012 (4) - 28.10.2024 03:42 [10:11:21]1206 (1) - 0 [10:11:21]OFD Sender: Remove packet 192502 [10:11:21]ProducePacketName [10:11:21]name=ofd_packets/00192502 [10:11:21]NVStorageDeleteData [10:11:21]Write to MH i2c: 01 00 00 3D 2B 68 [10:11:21]Write i2c OK [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: 01 [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: 01 07 00 [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: 01 07 00 3D 2B 00 00 00 00 00 9D 0C 18 [10:11:21]RasterBufferAndPrint [10:11:21]line [10:11:21]line [10:11:21]line [10:11:21]line [10:11:21]line [10:11:21]written 0, free lines is 3236 [10:11:21]MH_Cut [10:11:21]Write to MH i2c: D1 01 00 44 2B 01 41 [10:11:21]Write i2c OK [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: D1 [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: D1 01 00 [10:11:21]MH_I2C_Read... [10:11:21]Read from MH i2c: D1 01 00 44 2B 00 40 [10:11:21]Write to MH i2c: 01 00 00 45 2B 70 [10:11:21]Write i2c OK [10:11:21]MH_I2C_Read... [10:11:21]OFD Sender: No OFD packet to send [10:11:22]*** Cut start [10:11:22]*** Partial cut [10:11:22]*** CUTSNS_PIN = 1 [10:11:22]*** CUTSNS_PIN = 0 [10:11:22]*** Brake cut motor [10:11:22]Read from MH i2c: 01 [10:11:22]MH_I2C_Read... [10:11:22]*** Stop cut motor [10:11:22]*** Cut end [10:11:22]Read from MH i2c: 01 07 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: 01 07 00 45 2B 00 00 00 00 00 FF 0F 85 [10:11:22]process_action close_receipt done [10:11:22]requested_data is exist [10:11:22]produce_requested_data [10:11:22]requested_item fm.sn is exist - process it [10:11:22]wFMCommunicate request_size=4 [10:11:22]MH_SAM_APDU [10:11:22]CAPDU: 80 11 00 00 [10:11:22]Write to MH i2c: E2 08 00 46 2B 80 11 00 00 00 00 00 00 EB [10:11:22]Write i2c OK [10:11:22]MH_I2C_Read... [10:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:22]Read from MH i2c: E2 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 17 00 [10:11:22]MH_I2C_Read... [10:11:22]Read from MH i2c: E2 17 00 46 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3E [10:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:11:22]wFMCommunicate OK [10:11:22]requested_item fd.num is exist - process it [10:11:22]SAM_PROTO_GetFieldsCounters [10:11:22]wFMCommunicate request_size=4 [10:11:22]MH_SAM_APDU [10:11:22]CAPDU: 80 13 00 00 [10:11:22]Write to MH i2c: E2 08 00 47 2B 80 13 00 00 00 00 00 00 EE [10:11:22]Write i2c OK [10:11:22]MH_I2C_Read... [10:11:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:23]Read from MH i2c: E2 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: E2 62 00 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: E2 62 00 47 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F6 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [10:11:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F6 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:23]wFMCommunicate OK [10:11:23]SAM_PROTO_GetFieldsCounters done [10:11:23]requested_item shift.num is exist - process it [10:11:23]requested_item shift.opened is exist - process it [10:11:23]req_shift_opened [10:11:23]FM_GetShiftState [10:11:23]SAM_PROTO_GetShiftState [10:11:23]wFMCommunicate request_size=4 [10:11:23]MH_SAM_APDU [10:11:23]CAPDU: 80 13 01 00 [10:11:23]Write to MH i2c: E2 08 00 48 2B 80 13 01 00 00 00 00 00 F0 [10:11:23]Write i2c OK [10:11:23]MH_I2C_Read... [10:11:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:23]Read from MH i2c: E2 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: E2 0E 00 [10:11:23]MH_I2C_Read... [10:11:23]Read from MH i2c: E2 0E 00 48 2B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 40 [10:11:23]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:11:23]wFMCommunicate OK [10:11:23]SAM_PROTO_GetShiftState done [10:11:23]FM_GetShiftState done [10:11:23]req_shift_opened done [10:11:23]requested_item shift.open_date is exist - process it [10:11:23]req_shift_open_date [10:11:23]req_shift_open_date done [10:11:23]produce_requested_data done [10:11:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192502,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:11:23]process_action_free close_receipt [10:11:23]json_value_free [10:11:23]json_value_free done [10:11:23]process_json_proto returns [10:11:23]Send response to host [10:11:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192502,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:11:23]free response buf [10:11:23]execute_script done [10:11:23]execute_script returns [10:11:23]free content buf [10:11:23]Sock 7.Close socket [10:11:23]Sock 7.Thread stoped [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:07]accept exits with 9 [10:12:07]New connection [10:12:07]New thread 3066563940 created [10:12:07]Thread 3066707300 joined [10:12:07]Waiting for new connection... [10:12:07] Sock 9.Parse request [10:12:07]Sock 9.Check first char [10:12:07]Sock 9.First char is OK [10:12:07]request: POST /json_proto HTTP/1.0 [10:12:07]Method: POST [10:12:07]URL: /json_proto [10:12:07]Method is POST - this is cgi request [10:12:07]url: /json_proto [10:12:07]query_string will be loaded in cgi processing [10:12:07]execute_cgi json_proto POST (null) [10:12:07]execute_cgi path=json_proto method=POST [10:12:07]POST find Content-Length [10:12:07]Host: 172.17.63.131:8080 [10:12:07]Content-Length: 676 [10:12:07]Content-Type: application/json [10:12:07] [10:12:07]POST finish read [10:12:07]Found Content-Length = 676 [10:12:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:07]execute_script... [10:12:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:07]POST & json_proto [10:12:07]process_json_proto [10:12:07]json parsed OK: [10:12:07]protocol is kg_v1.0 [10:12:07]action value=close_receipt [10:12:07]process_action close_receipt [10:12:07]cmd_close_receipt [10:12:07]MH_GetDate [10:12:07]Write to MH i2c: F0 00 00 49 2B 63 [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: F0 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: F0 09 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: F0 09 00 49 2B 00 7B 63 1F 67 22 05 6E 64 C9 [10:12:07]GetLastDocTimeStamp 1730110283 [10:12:07]current date 1730110331 [10:12:07]FM_GetShiftState [10:12:07]SAM_PROTO_GetShiftState [10:12:07]wFMCommunicate request_size=4 [10:12:07]MH_SAM_APDU [10:12:07]CAPDU: 80 13 01 00 [10:12:07]Write to MH i2c: E2 08 00 4A 2B 80 13 01 00 00 00 00 00 F2 [10:12:07]Write i2c OK [10:12:07]MH_I2C_Read... [10:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:07]Read from MH i2c: E2 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 0E 00 [10:12:07]MH_I2C_Read... [10:12:07]Read from MH i2c: E2 0E 00 4A 2B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 42 [10:12:07]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:12:07]wFMCommunicate OK [10:12:07]SAM_PROTO_GetShiftState done [10:12:07]FM_GetShiftState done [10:12:07]opened in 1730075620 [10:12:07]opened+sec_in_day 1730162020 [10:12:07]quantity*price = 40006 [10:12:07]sum+1 = 40007 [10:12:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 51 28.10.2024 10:12 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192503 ФПД: 179788196236751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101211&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192503&fm=179788196236751&tin=02508201610067®Number=0000000000091776&sum=40000 [10:12:08]StoreToDocumentArchive [10:12:08]shift 543 fd 192503 [10:12:08]save to /storage/0543/doc_00192503 [10:12:08]save last doc name /storage/0543/doc_00192503 to /storage/kkm_last_doc_name [10:12:08]save OK [10:12:08]Clear old archive folders... [10:12:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:08]tlvbuf is B6D6C700 [10:12:08]SAM_PROTO_ClearQueue [10:12:08]wFMCommunicate request_size=4 [10:12:08]MH_SAM_APDU [10:12:08]CAPDU: 80 09 00 00 [10:12:08]Write to MH i2c: E2 08 00 57 2B 80 09 00 00 00 00 00 00 F4 [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:08]Read from MH i2c: E2 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 57 2B 00 90 00 F6 [10:12:08]RAPDU: 90 00 [10:12:08]wFMCommunicate OK [10:12:08]SAM_PROTO_ClearQueue done [10:12:08]KKMCreateOFDPacket [10:12:08]OFDProtocolAddRootSTLVToBuf [10:12:08]FM_MakeSignedData [10:12:08]FM_MakeSignedData [10:12:08]SAM_PROTO_SignData [10:12:08]wFMCommunicate request_size=4 [10:12:08]MH_SAM_APDU [10:12:08]CAPDU: 80 0D 01 02 [10:12:08]Write to MH i2c: E2 08 00 58 2B 80 0D 01 02 00 00 00 00 FC [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:08]Read from MH i2c: E2 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 58 2B 00 90 00 F7 [10:12:08]RAPDU: 90 00 [10:12:08]wFMCommunicate OK [10:12:08]wFMCommunicate request_size=255 [10:12:08]MH_SAM_APDU [10:12:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 7B 63 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EF 02 00 35 04 06 00 A3 [10:12:08]Write to MH i2c: E2 02 01 59 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 7B 63 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EF 02 00 35 04 06 00 A3 00 00 A2 [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:08]Read from MH i2c: E2 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 59 2B 00 90 00 F8 [10:12:08]RAPDU: 90 00 [10:12:08]wFMCommunicate OK [10:12:08]wFMCommunicate request_size=10 [10:12:08]MH_SAM_APDU [10:12:08]CAPDU: 80 0D 02 02 05 84 33 92 4D CF [10:12:08]Write to MH i2c: E2 0D 00 5A 2B 80 0D 02 02 05 00 84 33 92 4D CF 00 00 6E [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:08]Read from MH i2c: E2 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 03 00 5A 2B 00 90 00 F9 [10:12:08]RAPDU: 90 00 [10:12:08]wFMCommunicate OK [10:12:08]wFMCommunicate request_size=4 [10:12:08]MH_SAM_APDU [10:12:08]CAPDU: 80 0D 03 02 [10:12:08]Write to MH i2c: E2 08 00 5B 2B 80 0D 03 02 00 00 00 00 01 [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:08]Read from MH i2c: E2 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 0B 00 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 0B 00 5B 2B 00 CA DE CE F5 02 B1 19 73 90 00 AC [10:12:08]RAPDU: CA DE CE F5 02 B1 19 73 90 00 [10:12:08]wFMCommunicate OK [10:12:08]SAM_PROTO_SignData done [10:12:08]FM_MakeSignedData done [10:12:08]CreateOFDProtocolMessage [10:12:08]wFMCommunicate request_size=4 [10:12:08]MH_SAM_APDU [10:12:08]CAPDU: 80 11 00 00 [10:12:08]Write to MH i2c: E2 08 00 5C 2B 80 11 00 00 00 00 00 00 01 [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:08]Read from MH i2c: E2 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 17 00 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: E2 17 00 5C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 54 [10:12:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:12:08]wFMCommunicate OK [10:12:08]CreateOFDProtocolMessage done [10:12:08]OFDSenderStorePacket 192503 [10:12:08]StoreOFDPacket docnum=192503 [10:12:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 69 4C 07 01 59 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 7B 63 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EF 02 00 35 04 06 00 A3 84 33 92 4D CF CA DE CE F5 02 B1 19 73 [10:12:08]CheckFolder [10:12:08]dirname=/storage/ofd_packets [10:12:08]CheckFolder done [10:12:08]ProducePacketName [10:12:08]name=ofd_packets/00192503 [10:12:08]NVStorageSaveData ofd_packets/00192503 [10:12:08]File name is /storage/ofd_packets/00192503 [10:12:08]Write 301 bytes [10:12:08]NVStorageSaveData done [10:12:08]OFDSenderStorePacket done [10:12:08]KKMCreateOFDPacket done [10:12:08]NVStorageSaveData kkm_last_timestamp [10:12:08]File name is /storage/kkm_last_timestamp [10:12:08]Write 4 bytes [10:12:08]NVStorageSaveData done [10:12:08]OFD Sender: Processing packet 192503 [packets to send 75, broken 74] [10:12:08]ProducePacketName [10:12:08]name=ofd_packets/00192503 [10:12:08]OFD Sender: To server: pG, [10:12:08]CommunicateWithHost lk.salyk.kg:30040 [10:12:08]ConnectInit lk.salyk.kg [10:12:08]ExternCall_PrintAddStr [10:12:08]wPrintStart [10:12:08]Write to MH i2c: 01 00 00 5D 2B 88 [10:12:08]Write i2c OK [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: 01 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: 01 07 00 [10:12:08]MH_I2C_Read... [10:12:08]Read from MH i2c: 01 07 00 5D 2B 00 00 00 00 00 FF 0F 9D [10:12:08]RasterBufferAndPrint [10:12:08]line Счет N : (1)31818 [10:12:08]line ИНН: 02508201610067 [10:12:08]line Контрольно-Кассовый Чек [10:12:08]line ПРОДАЖА [10:12:08]line ТРК (МРК, ГНК) : 21 [10:12:08]line Товар: 2710124130 [10:12:08]line Аи-92-К-5 [10:12:08]line 5.980 * 66.90 [10:12:08]line = 400.06 [10:12:08]line НДС 12% НСП 1% [10:12:08]line > о реализуемом товаре [10:12:08]line ОКРУГЛЕНИЕ: -0.06 [10:12:08]line ИТОГО: 400.00 [10:12:08]line Внесено: 400.00 [10:12:08]line СДАЧА: 0.00 [10:12:08]line НСП 1% : 3.54 [10:12:08]line НДС 12% : 42.48 [10:12:08]line Наличными: 400.00 [10:12:08]line Безнал.: 0.00 [10:12:08]line Место: АЗС № 170 "Партнер Нефть" [10:12:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:12:08]line СНО: Общий режим [10:12:08]line Чек 51 28.10.2024 10:12 [10:12:08]line Смена: 543 ФФД: 1.0 [10:12:08]line ЗНМ: 0300000110 [10:12:08]line РНМ: 0000000000091776 [10:12:08]line Версия ККМ: 001 [10:12:08]line ФМ: 0000000000871754 [10:12:08]line ФД: 192503 [10:12:08]line ФПД: 179788196236751 [10:12:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101211&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192503&fm=179788196236751&tin=02508201610067®Number=0000000000091776&sum=40000 [10:12:09]Connected sock=11 [10:12:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 69 4C 07 01 59 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 7B 63 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EF 02 00 35 04 06 00 A3 84 33 92 4D CF CA DE CE F5 02 B1 19 73 [10:12:09]written 0, free lines is 4095 [10:12:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 48 C2 47 00 3D AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EF 02 00 F4 03 04 00 40 08 1F 67 B6 04 01 00 00 DB BC EC FD 39 0A 3F 96 [10:12:09]CommunicateWithHost err = 0 [10:12:09]CheckOFDResponse [10:12:09]1017 (14) - 77093643461234 [10:12:09]1041 (16) - 0000000000871754 [10:12:09]1040 (4) - 192503 [10:12:09]1012 (4) - 28.10.2024 03:42 [10:12:09]1206 (1) - 0 [10:12:09]OFD Sender: Remove packet 192503 [10:12:09]ProducePacketName [10:12:09]name=ofd_packets/00192503 [10:12:09]NVStorageDeleteData [10:12:09]Write to MH i2c: 01 00 00 88 2B B3 [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 07 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: 01 07 00 88 2B 00 00 00 00 00 A1 0C 67 [10:12:09]RasterBufferAndPrint [10:12:09]line [10:12:09]line [10:12:09]line [10:12:09]line [10:12:09]line [10:12:09]written 0, free lines is 3240 [10:12:09]MH_Cut [10:12:09]Write to MH i2c: D1 01 00 8F 2B 01 8C [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: D1 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: D1 01 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: D1 01 00 8F 2B 00 8B [10:12:09]Write to MH i2c: 01 00 00 90 2B BB [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]OFD Sender: No OFD packet to send [10:12:10]*** Cut start [10:12:10]*** Partial cut [10:12:10]*** CUTSNS_PIN = 1 [10:12:10]*** CUTSNS_PIN = 0 [10:12:10]*** Brake cut motor [10:12:11]Read from MH i2c: 01 [10:12:11]MH_I2C_Read... [10:12:11]*** Stop cut motor [10:12:11]*** Cut end [10:12:11]Read from MH i2c: 01 07 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: 01 07 00 90 2B 00 00 00 00 00 FF 0F D0 [10:12:11]process_action close_receipt done [10:12:11]requested_data is exist [10:12:11]produce_requested_data [10:12:11]requested_item fm.sn is exist - process it [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 11 00 00 [10:12:11]Write to MH i2c: E2 08 00 91 2B 80 11 00 00 00 00 00 00 36 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 17 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 17 00 91 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 89 [10:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:12:11]wFMCommunicate OK [10:12:11]requested_item fd.num is exist - process it [10:12:11]SAM_PROTO_GetFieldsCounters [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 13 00 00 [10:12:11]Write to MH i2c: E2 08 00 92 2B 80 13 00 00 00 00 00 00 39 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 62 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 62 00 92 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F7 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [10:12:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F7 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:11]wFMCommunicate OK [10:12:11]SAM_PROTO_GetFieldsCounters done [10:12:11]requested_item shift.num is exist - process it [10:12:11]requested_item shift.opened is exist - process it [10:12:11]req_shift_opened [10:12:11]FM_GetShiftState [10:12:11]SAM_PROTO_GetShiftState [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 13 01 00 [10:12:11]Write to MH i2c: E2 08 00 93 2B 80 13 01 00 00 00 00 00 3B [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 0E 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 0E 00 93 2B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 8B [10:12:11]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:12:11]wFMCommunicate OK [10:12:11]SAM_PROTO_GetShiftState done [10:12:11]FM_GetShiftState done [10:12:11]req_shift_opened done [10:12:11]requested_item shift.open_date is exist - process it [10:12:11]req_shift_open_date [10:12:11]req_shift_open_date done [10:12:11]produce_requested_data done [10:12:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192503,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:12:11]process_action_free close_receipt [10:12:11]json_value_free [10:12:11]json_value_free done [10:12:11]process_json_proto returns [10:12:11]Send response to host [10:12:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192503,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:12:11]free response buf [10:12:11]execute_script done [10:12:11]execute_script returns [10:12:11]free content buf [10:12:11]Sock 9.Close socket [10:12:11]Sock 9.Thread stoped [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:30]accept exits with 7 [10:14:30]New connection [10:14:30]New thread 3066707300 created [10:14:30]Thread 3066563940 joined [10:14:30]Waiting for new connection... [10:14:30] Sock 7.Parse request [10:14:30]Sock 7.Check first char [10:14:30]Sock 7.First char is OK [10:14:30]request: POST /json_proto HTTP/1.0 [10:14:30]Method: POST [10:14:30]URL: /json_proto [10:14:30]Method is POST - this is cgi request [10:14:30]url: /json_proto [10:14:30]query_string will be loaded in cgi processing [10:14:30]execute_cgi json_proto POST (null) [10:14:30]execute_cgi path=json_proto method=POST [10:14:30]POST find Content-Length [10:14:30]Host: 172.17.63.131:8080 [10:14:30]Content-Length: 676 [10:14:30]Content-Type: application/json [10:14:30] [10:14:30]POST finish read [10:14:30]Found Content-Length = 676 [10:14:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:30]execute_script... [10:14: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)31819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:30]POST & json_proto [10:14:30]process_json_proto [10:14:30]json parsed OK: [10:14:30]protocol is kg_v1.0 [10:14:30]action value=close_receipt [10:14:30]process_action close_receipt [10:14:30]cmd_close_receipt [10:14:30]MH_GetDate [10:14:30]Write to MH i2c: F0 00 00 94 2B AE [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: F0 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: F0 09 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: F0 09 00 94 2B 00 0B 64 1F 67 22 05 6E 64 A5 [10:14:30]GetLastDocTimeStamp 1730110331 [10:14:30]current date 1730110475 [10:14:30]FM_GetShiftState [10:14:30]SAM_PROTO_GetShiftState [10:14:30]wFMCommunicate request_size=4 [10:14:30]MH_SAM_APDU [10:14:30]CAPDU: 80 13 01 00 [10:14:30]Write to MH i2c: E2 08 00 95 2B 80 13 01 00 00 00 00 00 3D [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:30]Read from MH i2c: E2 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 0E 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 0E 00 95 2B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 8D [10:14:30]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:14:30]wFMCommunicate OK [10:14:30]SAM_PROTO_GetShiftState done [10:14:30]FM_GetShiftState done [10:14:30]opened in 1730075620 [10:14:30]opened+sec_in_day 1730162020 [10:14:30]quantity*price = 60009 [10:14:30]sum+1 = 60010 [10:14:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 52 28.10.2024 10:14 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192504 ФПД: 259533158777885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101435&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192504&fm=259533158777885&tin=02508201610067®Number=0000000000091776&sum=60000 [10:14:31]StoreToDocumentArchive [10:14:31]shift 543 fd 192504 [10:14:31]save to /storage/0543/doc_00192504 [10:14:31]save last doc name /storage/0543/doc_00192504 to /storage/kkm_last_doc_name [10:14:31]save OK [10:14:31]Clear old archive folders... [10:14:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:31]tlvbuf is 019F49D0 [10:14:31]SAM_PROTO_ClearQueue [10:14:31]wFMCommunicate request_size=4 [10:14:31]MH_SAM_APDU [10:14:31]CAPDU: 80 09 00 00 [10:14:31]Write to MH i2c: E2 08 00 A2 2B 80 09 00 00 00 00 00 00 3F [10:14:31]Write i2c OK [10:14:31]MH_I2C_Read... [10:14:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:31]Read from MH i2c: E2 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 03 00 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 03 00 A2 2B 00 90 00 41 [10:14:31]RAPDU: 90 00 [10:14:31]wFMCommunicate OK [10:14:31]SAM_PROTO_ClearQueue done [10:14:31]KKMCreateOFDPacket [10:14:31]OFDProtocolAddRootSTLVToBuf [10:14:31]FM_MakeSignedData [10:14:31]FM_MakeSignedData [10:14:31]SAM_PROTO_SignData [10:14:31]wFMCommunicate request_size=4 [10:14:31]MH_SAM_APDU [10:14:31]CAPDU: 80 0D 01 02 [10:14:31]Write to MH i2c: E2 08 00 A3 2B 80 0D 01 02 00 00 00 00 47 [10:14:31]Write i2c OK [10:14:31]MH_I2C_Read... [10:14:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:31]Read from MH i2c: E2 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 03 00 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 03 00 A3 2B 00 90 00 42 [10:14:31]RAPDU: 90 00 [10:14:31]wFMCommunicate OK [10:14:31]wFMCommunicate request_size=255 [10:14:31]MH_SAM_APDU [10:14: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 0B 64 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EF 02 00 35 04 06 00 EC [10:14:31]Write to MH i2c: E2 02 01 A4 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 0B 64 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EF 02 00 35 04 06 00 EC 00 00 D7 [10:14:31]Write i2c OK [10:14:31]MH_I2C_Read... [10:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:31]Read from MH i2c: E2 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 03 00 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 03 00 A4 2B 00 90 00 43 [10:14:31]RAPDU: 90 00 [10:14:31]wFMCommunicate OK [10:14:31]wFMCommunicate request_size=10 [10:14:31]MH_SAM_APDU [10:14:31]CAPDU: 80 0D 02 02 05 0B 45 BC 84 1D [10:14:31]Write to MH i2c: E2 0D 00 A5 2B 80 0D 02 02 05 00 0B 45 BC 84 1D 00 00 01 [10:14:31]Write i2c OK [10:14:31]MH_I2C_Read... [10:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:31]Read from MH i2c: E2 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 03 00 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: E2 03 00 A5 2B 00 90 00 44 [10:14:31]RAPDU: 90 00 [10:14:31]wFMCommunicate OK [10:14:31]wFMCommunicate request_size=4 [10:14:31]MH_SAM_APDU [10:14:31]CAPDU: 80 0D 03 02 [10:14:31]Write to MH i2c: E2 08 00 A6 2B 80 0D 03 02 00 00 00 00 4C [10:14:31]Write i2c OK [10:14:31]MH_I2C_Read... [10:14:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:32]Read from MH i2c: E2 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: E2 0B 00 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: E2 0B 00 A6 2B 00 E6 AC 77 94 05 27 62 57 90 00 CF [10:14:32]RAPDU: E6 AC 77 94 05 27 62 57 90 00 [10:14:32]wFMCommunicate OK [10:14:32]SAM_PROTO_SignData done [10:14:32]FM_MakeSignedData done [10:14:32]CreateOFDProtocolMessage [10:14:32]wFMCommunicate request_size=4 [10:14:32]MH_SAM_APDU [10:14:32]CAPDU: 80 11 00 00 [10:14:32]Write to MH i2c: E2 08 00 A7 2B 80 11 00 00 00 00 00 00 4C [10:14:32]Write i2c OK [10:14:32]MH_I2C_Read... [10:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:32]Read from MH i2c: E2 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: E2 17 00 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: E2 17 00 A7 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [10:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:14:32]wFMCommunicate OK [10:14:32]CreateOFDProtocolMessage done [10:14:32]OFDSenderStorePacket 192504 [10:14:32]StoreOFDPacket docnum=192504 [10:14:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1F D1 07 01 66 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 0B 64 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EF 02 00 35 04 06 00 EC 0B 45 BC 84 1D E6 AC 77 94 05 27 62 57 [10:14:32]CheckFolder [10:14:32]dirname=/storage/ofd_packets [10:14:32]CheckFolder done [10:14:32]ProducePacketName [10:14:32]name=ofd_packets/00192504 [10:14:32]NVStorageSaveData ofd_packets/00192504 [10:14:32]File name is /storage/ofd_packets/00192504 [10:14:32]Write 301 bytes [10:14:32]NVStorageSaveData done [10:14:32]OFDSenderStorePacket done [10:14:32]KKMCreateOFDPacket done [10:14:32]NVStorageSaveData kkm_last_timestamp [10:14:32]File name is /storage/kkm_last_timestamp [10:14:32]Write 4 bytes [10:14:32]NVStorageSaveData done [10:14:32]ExternCall_PrintAddStr [10:14:32]wPrintStart [10:14:32]Write to MH i2c: 01 00 00 A8 2B D3 [10:14:32]Write i2c OK [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: 01 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: 01 07 00 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: 01 07 00 A8 2B 00 00 00 00 00 FF 0F E8 [10:14:32]RasterBufferAndPrint [10:14:32]line Счет N : (1)31819 [10:14:32]line ИНН: 02508201610067 [10:14:32]line Контрольно-Кассовый Чек [10:14:32]line ПРОДАЖА [10:14:32]line ТРК (МРК, ГНК) : 12 [10:14:32]line Товар: 2710124130 [10:14:32]line Аи-92-К-5 [10:14:32]line 8.970 * 66.90 [10:14:32]line = 600.09 [10:14:32]line НДС 12% НСП 1% [10:14:32]line > о реализуемом товаре [10:14:32]line ОКРУГЛЕНИЕ: -0.09 [10:14:32]line ИТОГО: 600.00 [10:14:32]line Внесено: 600.00 [10:14:32]line СДАЧА: 0.00 [10:14:32]line НСП 1% : 5.31 [10:14:32]line НДС 12% : 63.73 [10:14:32]line Наличными: 600.00 [10:14:32]line Безнал.: 0.00 [10:14:32]line Место: АЗС № 170 "Партнер Нефть" [10:14:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:14:32]line СНО: Общий режим [10:14:32]line Чек 52 28.10.2024 10:14 [10:14:32]line Смена: 543 ФФД: 1.0 [10:14:32]line ЗНМ: 0300000110 [10:14:32]line РНМ: 0000000000091776 [10:14:32]line Версия ККМ: 001 [10:14:32]line ФМ: 0000000000871754 [10:14:32]line ФД: 192504 [10:14:32]line ФПД: 259533158777885 [10:14:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101435&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192504&fm=259533158777885&tin=02508201610067®Number=0000000000091776&sum=60000 [10:14:32]OFD Sender: Processing packet 192504 [packets to send 75, broken 74] [10:14:32]ProducePacketName [10:14:32]name=ofd_packets/00192504 [10:14:32]OFD Sender: To server: pG, [10:14:32]CommunicateWithHost lk.salyk.kg:30040 [10:14:32]ConnectInit lk.salyk.kg [10:14:32]written 0, free lines is 4095 [10:14:32]Connected sock=10 [10:14:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1F D1 07 01 66 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 0B 64 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EF 02 00 35 04 06 00 EC 0B 45 BC 84 1D E6 AC 77 94 05 27 62 57 [10:14:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 66 9D 47 00 FC 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EF 02 00 F4 03 04 00 CF 08 1F 67 B6 04 01 00 00 7A 31 0C 01 DA F0 F8 85 [10:14:32]CommunicateWithHost err = 0 [10:14:32]CheckOFDResponse [10:14:32]1017 (14) - 77093643461234 [10:14:32]1041 (16) - 0000000000871754 [10:14:32]1040 (4) - 192504 [10:14:32]1012 (4) - 28.10.2024 03:45 [10:14:32]1206 (1) - 0 [10:14:32]OFD Sender: Remove packet 192504 [10:14:32]ProducePacketName [10:14:32]name=ofd_packets/00192504 [10:14:32]NVStorageDeleteData [10:14:32]Write to MH i2c: 01 00 00 D3 2B FE [10:14:32]Write i2c OK [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: 01 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: 01 07 00 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: 01 07 00 D3 2B 00 00 00 00 00 99 0C AA [10:14:32]RasterBufferAndPrint [10:14:32]line [10:14:32]line [10:14:32]line [10:14:32]line [10:14:32]line [10:14:32]written 0, free lines is 3232 [10:14:32]MH_Cut [10:14:32]Write to MH i2c: D1 01 00 DA 2B 01 D7 [10:14:32]Write i2c OK [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: D1 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: D1 01 00 [10:14:32]MH_I2C_Read... [10:14:32]Read from MH i2c: D1 01 00 DA 2B 00 D6 [10:14:32]Write to MH i2c: 01 00 00 DB 2B 06 [10:14:32]Write i2c OK [10:14:32]MH_I2C_Read... [10:14:33]OFD Sender: No OFD packet to send [10:14:33]*** Cut start [10:14:33]*** Partial cut [10:14:33]*** CUTSNS_PIN = 1 [10:14:33]*** CUTSNS_PIN = 0 [10:14:34]*** Brake cut motor [10:14:34]Read from MH i2c: 01 [10:14:34]MH_I2C_Read... [10:14:34]*** Stop cut motor [10:14:34]*** Cut end [10:14:34]Read from MH i2c: 01 07 00 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: 01 07 00 DB 2B 00 00 00 00 00 FF 0F 1B [10:14:34]process_action close_receipt done [10:14:34]requested_data is exist [10:14:34]produce_requested_data [10:14:34]requested_item fm.sn is exist - process it [10:14:34]wFMCommunicate request_size=4 [10:14:34]MH_SAM_APDU [10:14:34]CAPDU: 80 11 00 00 [10:14:34]Write to MH i2c: E2 08 00 DC 2B 80 11 00 00 00 00 00 00 81 [10:14:34]Write i2c OK [10:14:34]MH_I2C_Read... [10:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:34]Read from MH i2c: E2 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 17 00 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 17 00 DC 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D4 [10:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:14:34]wFMCommunicate OK [10:14:34]requested_item fd.num is exist - process it [10:14:34]SAM_PROTO_GetFieldsCounters [10:14:34]wFMCommunicate request_size=4 [10:14:34]MH_SAM_APDU [10:14:34]CAPDU: 80 13 00 00 [10:14:34]Write to MH i2c: E2 08 00 DD 2B 80 13 00 00 00 00 00 00 84 [10:14:34]Write i2c OK [10:14:34]MH_I2C_Read... [10:14:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:34]Read from MH i2c: E2 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 62 00 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 62 00 DD 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F8 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [10:14:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F8 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:34]wFMCommunicate OK [10:14:34]SAM_PROTO_GetFieldsCounters done [10:14:34]requested_item shift.num is exist - process it [10:14:34]requested_item shift.opened is exist - process it [10:14:34]req_shift_opened [10:14:34]FM_GetShiftState [10:14:34]SAM_PROTO_GetShiftState [10:14:34]wFMCommunicate request_size=4 [10:14:34]MH_SAM_APDU [10:14:34]CAPDU: 80 13 01 00 [10:14:34]Write to MH i2c: E2 08 00 DE 2B 80 13 01 00 00 00 00 00 86 [10:14:34]Write i2c OK [10:14:34]MH_I2C_Read... [10:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:34]Read from MH i2c: E2 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 0E 00 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 0E 00 DE 2B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D6 [10:14:34]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:14:34]wFMCommunicate OK [10:14:34]SAM_PROTO_GetShiftState done [10:14:34]FM_GetShiftState done [10:14:34]req_shift_opened done [10:14:34]requested_item shift.open_date is exist - process it [10:14:34]req_shift_open_date [10:14:34]req_shift_open_date done [10:14:34]produce_requested_data done [10:14:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192504,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:14:34]process_action_free close_receipt [10:14:34]json_value_free [10:14:34]json_value_free done [10:14:34]process_json_proto returns [10:14:34]Send response to host [10:14:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192504,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:14:34]free response buf [10:14:34]execute_script done [10:14:34]execute_script returns [10:14:34]free content buf [10:14:34]Sock 7.Close socket [10:14:34]Sock 7.Thread stoped [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16: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: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:01]accept exits with 9 [10:21:01]New connection [10:21:01]New thread 3066563940 created [10:21:01]Thread 3066707300 joined [10:21:01]Waiting for new connection... [10:21:01] Sock 9.Parse request [10:21:01]Sock 9.Check first char [10:21:01]Sock 9.First char is OK [10:21:01]request: POST /json_proto HTTP/1.0 [10:21:01]Method: POST [10:21:01]URL: /json_proto [10:21:01]Method is POST - this is cgi request [10:21:01]url: /json_proto [10:21:01]query_string will be loaded in cgi processing [10:21:01]execute_cgi json_proto POST (null) [10:21:01]execute_cgi path=json_proto method=POST [10:21:01]POST find Content-Length [10:21:01]Host: 172.17.63.131:8080 [10:21:01]Content-Length: 681 [10:21:01]Content-Type: application/json [10:21:01] [10:21:01]POST finish read [10:21:01]Found Content-Length = 681 [10:21:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:01]execute_script... [10:21: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)31820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:01]POST & json_proto [10:21:01]process_json_proto [10:21:01]json parsed OK: [10:21:01]protocol is kg_v1.0 [10:21:01]action value=close_receipt [10:21:01]process_action close_receipt [10:21:01]cmd_close_receipt [10:21:01]MH_GetDate [10:21:01]Write to MH i2c: F0 00 00 DF 2B F9 [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: F0 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: F0 09 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: F0 09 00 DF 2B 00 92 65 1F 67 22 05 6E 64 78 [10:21:01]GetLastDocTimeStamp 1730110475 [10:21:01]current date 1730110866 [10:21:01]FM_GetShiftState [10:21:01]SAM_PROTO_GetShiftState [10:21:01]wFMCommunicate request_size=4 [10:21:01]MH_SAM_APDU [10:21:01]CAPDU: 80 13 01 00 [10:21:01]Write to MH i2c: E2 08 00 E0 2B 80 13 01 00 00 00 00 00 88 [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:01]Read from MH i2c: E2 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 0E 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 0E 00 E0 2B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D8 [10:21:01]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:21:01]wFMCommunicate OK [10:21:01]SAM_PROTO_GetShiftState done [10:21:01]FM_GetShiftState done [10:21:01]opened in 1730075620 [10:21:01]opened+sec_in_day 1730162020 [10:21:01]quantity*price = 100015 [10:21:01]sum+1 = 100017 [10:21:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 53 28.10.2024 10:21 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192505 ФПД: 59805887234020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102106&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192505&fm=59805887234020&tin=02508201610067®Number=0000000000091776&sum=100000 [10:21:02]StoreToDocumentArchive [10:21:02]shift 543 fd 192505 [10:21:02]save to /storage/0543/doc_00192505 [10:21:02]save last doc name /storage/0543/doc_00192505 to /storage/kkm_last_doc_name [10:21:02]save OK [10:21:02]Clear old archive folders... [10:21:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:02]tlvbuf is 019C3AE0 [10:21:02]SAM_PROTO_ClearQueue [10:21:02]wFMCommunicate request_size=4 [10:21:02]MH_SAM_APDU [10:21:02]CAPDU: 80 09 00 00 [10:21:02]Write to MH i2c: E2 08 00 ED 2B 80 09 00 00 00 00 00 00 8A [10:21:03]Write i2c OK [10:21:03]MH_I2C_Read... [10:21:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:03]Read from MH i2c: E2 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 03 00 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 03 00 ED 2B 00 90 00 8C [10:21:03]RAPDU: 90 00 [10:21:03]wFMCommunicate OK [10:21:03]SAM_PROTO_ClearQueue done [10:21:03]KKMCreateOFDPacket [10:21:03]OFDProtocolAddRootSTLVToBuf [10:21:03]FM_MakeSignedData [10:21:03]FM_MakeSignedData [10:21:03]SAM_PROTO_SignData [10:21:03]wFMCommunicate request_size=4 [10:21:03]MH_SAM_APDU [10:21:03]CAPDU: 80 0D 01 02 [10:21:03]Write to MH i2c: E2 08 00 EE 2B 80 0D 01 02 00 00 00 00 92 [10:21:03]Write i2c OK [10:21:03]MH_I2C_Read... [10:21:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:03]Read from MH i2c: E2 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 03 00 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 03 00 EE 2B 00 90 00 8D [10:21:03]RAPDU: 90 00 [10:21:03]wFMCommunicate OK [10:21:03]wFMCommunicate request_size=255 [10:21:03]MH_SAM_APDU [10:21: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 92 65 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EF 02 00 35 04 06 00 36 [10:21:03]Write to MH i2c: E2 02 01 EF 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 92 65 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EF 02 00 35 04 06 00 36 00 00 13 [10:21:03]Write i2c OK [10:21:03]MH_I2C_Read... [10:21:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:03]Read from MH i2c: E2 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 03 00 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 03 00 EF 2B 00 90 00 8E [10:21:03]RAPDU: 90 00 [10:21:03]wFMCommunicate OK [10:21:03]wFMCommunicate request_size=10 [10:21:03]MH_SAM_APDU [10:21:03]CAPDU: 80 0D 02 02 05 64 A4 A9 FF E4 [10:21:03]Write to MH i2c: E2 0D 00 F0 2B 80 0D 02 02 05 00 64 A4 A9 FF E4 00 00 33 [10:21:03]Write i2c OK [10:21:03]MH_I2C_Read... [10:21:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:03]Read from MH i2c: E2 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 03 00 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 03 00 F0 2B 00 90 00 8F [10:21:03]RAPDU: 90 00 [10:21:03]wFMCommunicate OK [10:21:03]wFMCommunicate request_size=4 [10:21:03]MH_SAM_APDU [10:21:03]CAPDU: 80 0D 03 02 [10:21:03]Write to MH i2c: E2 08 00 F1 2B 80 0D 03 02 00 00 00 00 97 [10:21:03]Write i2c OK [10:21:03]MH_I2C_Read... [10:21:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:03]Read from MH i2c: E2 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 0B 00 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 0B 00 F1 2B 00 B1 86 14 AC 2E ED 84 AB 90 00 D9 [10:21:03]RAPDU: B1 86 14 AC 2E ED 84 AB 90 00 [10:21:03]wFMCommunicate OK [10:21:03]SAM_PROTO_SignData done [10:21:03]FM_MakeSignedData done [10:21:03]CreateOFDProtocolMessage [10:21:03]wFMCommunicate request_size=4 [10:21:03]MH_SAM_APDU [10:21:03]CAPDU: 80 11 00 00 [10:21:03]Write to MH i2c: E2 08 00 F2 2B 80 11 00 00 00 00 00 00 97 [10:21:03]Write i2c OK [10:21:03]MH_I2C_Read... [10:21:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:03]Read from MH i2c: E2 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 17 00 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: E2 17 00 F2 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [10:21:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:21:03]wFMCommunicate OK [10:21:03]CreateOFDProtocolMessage done [10:21:03]OFDSenderStorePacket 192505 [10:21:03]StoreOFDPacket docnum=192505 [10:21:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AA E3 07 01 C0 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 92 65 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EF 02 00 35 04 06 00 36 64 A4 A9 FF E4 B1 86 14 AC 2E ED 84 AB [10:21:03]CheckFolder [10:21:03]dirname=/storage/ofd_packets [10:21:03]CheckFolder done [10:21:03]ProducePacketName [10:21:03]name=ofd_packets/00192505 [10:21:03]NVStorageSaveData ofd_packets/00192505 [10:21:03]File name is /storage/ofd_packets/00192505 [10:21:03]Write 301 bytes [10:21:03]NVStorageSaveData done [10:21:03]OFDSenderStorePacket done [10:21:03]KKMCreateOFDPacket done [10:21:03]NVStorageSaveData kkm_last_timestamp [10:21:03]File name is /storage/kkm_last_timestamp [10:21:03]Write 4 bytes [10:21:03]NVStorageSaveData done [10:21:03]ExternCall_PrintAddStr [10:21:03]wPrintStart [10:21:03]Write to MH i2c: 01 00 00 F3 2B 1E [10:21:03]Write i2c OK [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: 01 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: 01 07 00 [10:21:03]MH_I2C_Read... [10:21:03]Read from MH i2c: 01 07 00 F3 2B 00 00 00 00 00 FF 0F 33 [10:21:03]RasterBufferAndPrint [10:21:03]line Счет N : (1)31820 [10:21:03]line ИНН: 02508201610067 [10:21:03]line Контрольно-Кассовый Чек [10:21:03]line ПРОДАЖА [10:21:03]line ТРК (МРК, ГНК) : 12 [10:21:03]line Товар: 2710124130 [10:21:03]line Аи-92-К-5 [10:21:03]line 14.950 * 66.90 [10:21:03]line = 1000.16 [10:21:03]line НДС 12% НСП 1% [10:21:03]line > о реализуемом товаре [10:21:03]line ОКРУГЛЕНИЕ: -0.16 [10:21:03]line ИТОГО: 1000.00 [10:21:03]line Внесено: 1000.00 [10:21:03]line СДАЧА: 0.00 [10:21:03]line НСП 1% : 8.85 [10:21:03]line НДС 12% : 106.21 [10:21:03]line Наличными: 1000.00 [10:21:03]line Безнал.: 0.00 [10:21:03]line Место: АЗС № 170 "Партнер Нефть" [10:21:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:21:03]line СНО: Общий режим [10:21:03]line Чек 53 28.10.2024 10:21 [10:21:03]line Смена: 543 ФФД: 1.0 [10:21:03]line ЗНМ: 0300000110 [10:21:03]line РНМ: 0000000000091776 [10:21:03]line Версия ККМ: 001 [10:21:03]line ФМ: 0000000000871754 [10:21:03]line ФД: 192505 [10:21:03]line ФПД: 59805887234020 [10:21:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102106&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192505&fm=59805887234020&tin=02508201610067®Number=0000000000091776&sum=100000 [10:21:03]OFD Sender: Processing packet 192505 [packets to send 75, broken 74] [10:21:03]ProducePacketName [10:21:03]name=ofd_packets/00192505 [10:21:03]OFD Sender: To server: pG, [10:21:03]CommunicateWithHost lk.salyk.kg:30040 [10:21:03]ConnectInit lk.salyk.kg [10:21:03]written 0, free lines is 4095 [10:21:03]Connected sock=10 [10:21:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AA E3 07 01 C0 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 92 65 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EF 02 00 35 04 06 00 36 64 A4 A9 FF E4 B1 86 14 AC 2E ED 84 AB [10:21:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E5 A3 47 00 C4 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EF 02 00 F4 03 04 00 57 0A 1F 67 B6 04 01 00 00 A5 A8 19 C7 19 AD 3E BE [10:21:04]CommunicateWithHost err = 0 [10:21:04]CheckOFDResponse [10:21:04]1017 (14) - 77093643461234 [10:21:04]1041 (16) - 0000000000871754 [10:21:04]1040 (4) - 192505 [10:21:04]1012 (4) - 28.10.2024 03:51 [10:21:04]1206 (1) - 0 [10:21:04]OFD Sender: Remove packet 192505 [10:21:04]ProducePacketName [10:21:04]name=ofd_packets/00192505 [10:21:04]NVStorageDeleteData [10:21:04]Write to MH i2c: 01 00 00 1E 2C 4A [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: 01 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: 01 07 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: 01 07 00 1E 2C 00 00 00 00 00 9D 0C FA [10:21:04]RasterBufferAndPrint [10:21:04]line [10:21:04]line [10:21:04]line [10:21:04]line [10:21:04]line [10:21:04]written 0, free lines is 3234 [10:21:04]MH_Cut [10:21:04]Write to MH i2c: D1 01 00 25 2C 01 23 [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: D1 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: D1 01 00 [10:21:04]MH_I2C_Read... [10:21:04]Read from MH i2c: D1 01 00 25 2C 00 22 [10:21:04]Write to MH i2c: 01 00 00 26 2C 52 [10:21:04]Write i2c OK [10:21:04]MH_I2C_Read... [10:21:04]OFD Sender: No OFD packet to send [10:21:05]*** Cut start [10:21:05]*** Partial cut [10:21:05]*** CUTSNS_PIN = 1 [10:21:05]*** CUTSNS_PIN = 0 [10:21:05]*** Brake cut motor [10:21:05]Read from MH i2c: 01 [10:21:05]MH_I2C_Read... [10:21:05]*** Stop cut motor [10:21:05]*** Cut end [10:21:05]Read from MH i2c: 01 07 00 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: 01 07 00 26 2C 00 00 00 00 00 FF 0F 67 [10:21:05]process_action close_receipt done [10:21:05]requested_data is exist [10:21:05]produce_requested_data [10:21:05]requested_item fm.sn is exist - process it [10:21:05]wFMCommunicate request_size=4 [10:21:05]MH_SAM_APDU [10:21:05]CAPDU: 80 11 00 00 [10:21:05]Write to MH i2c: E2 08 00 27 2C 80 11 00 00 00 00 00 00 CD [10:21:05]Write i2c OK [10:21:05]MH_I2C_Read... [10:21:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:05]Read from MH i2c: E2 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: E2 17 00 [10:21:05]MH_I2C_Read... [10:21:05]Read from MH i2c: E2 17 00 27 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [10:21:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:21:05]wFMCommunicate OK [10:21:05]requested_item fd.num is exist - process it [10:21:05]SAM_PROTO_GetFieldsCounters [10:21:05]wFMCommunicate request_size=4 [10:21:05]MH_SAM_APDU [10:21:05]CAPDU: 80 13 00 00 [10:21:05]Write to MH i2c: E2 08 00 28 2C 80 13 00 00 00 00 00 00 D0 [10:21:05]Write i2c OK [10:21:05]MH_I2C_Read... [10:21:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:06]Read from MH i2c: E2 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: E2 62 00 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: E2 62 00 28 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F9 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [10:21:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F9 EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:06]wFMCommunicate OK [10:21:06]SAM_PROTO_GetFieldsCounters done [10:21:06]requested_item shift.num is exist - process it [10:21:06]requested_item shift.opened is exist - process it [10:21:06]req_shift_opened [10:21:06]FM_GetShiftState [10:21:06]SAM_PROTO_GetShiftState [10:21:06]wFMCommunicate request_size=4 [10:21:06]MH_SAM_APDU [10:21:06]CAPDU: 80 13 01 00 [10:21:06]Write to MH i2c: E2 08 00 29 2C 80 13 01 00 00 00 00 00 D2 [10:21:06]Write i2c OK [10:21:06]MH_I2C_Read... [10:21:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:06]Read from MH i2c: E2 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: E2 0E 00 [10:21:06]MH_I2C_Read... [10:21:06]Read from MH i2c: E2 0E 00 29 2C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 22 [10:21:06]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:21:06]wFMCommunicate OK [10:21:06]SAM_PROTO_GetShiftState done [10:21:06]FM_GetShiftState done [10:21:06]req_shift_opened done [10:21:06]requested_item shift.open_date is exist - process it [10:21:06]req_shift_open_date [10:21:06]req_shift_open_date done [10:21:06]produce_requested_data done [10:21:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192505,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:21:06]process_action_free close_receipt [10:21:06]json_value_free [10:21:06]json_value_free done [10:21:06]process_json_proto returns [10:21:06]Send response to host [10:21:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192505,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:21:06]free response buf [10:21:06]execute_script done [10:21:06]execute_script returns [10:21:06]free content buf [10:21:06]Sock 9.Close socket [10:21:06]Sock 9.Thread stoped [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:41]accept exits with 7 [10:21:41]New connection [10:21:41]New thread 3066707300 created [10:21:41]Thread 3066563940 joined [10:21:41]Waiting for new connection... [10:21:41] Sock 7.Parse request [10:21:41]Sock 7.Check first char [10:21:41]Sock 7.First char is OK [10:21:41]request: POST /json_proto HTTP/1.0 [10:21:41]Method: POST [10:21:41]URL: /json_proto [10:21:41]Method is POST - this is cgi request [10:21:41]url: /json_proto [10:21:41]query_string will be loaded in cgi processing [10:21:41]execute_cgi json_proto POST (null) [10:21:41]execute_cgi path=json_proto method=POST [10:21:41]POST find Content-Length [10:21:41]Host: 172.17.63.131:8080 [10:21:41]Content-Length: 862 [10:21:41]Content-Type: application/json [10:21:41] [10:21:41]POST finish read [10:21:41]Found Content-Length = 862 [10:21:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:41]execute_script... [10:21:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:41]POST & json_proto [10:21:41]process_json_proto [10:21:41]json parsed OK: [10:21:41]protocol is kg_v1.0 [10:21:41]action value=close_receipt [10:21:41]process_action close_receipt [10:21:41]cmd_close_receipt [10:21:41]MH_GetDate [10:21:41]Write to MH i2c: F0 00 00 2A 2C 45 [10:21:41]Write i2c OK [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: F0 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: F0 09 00 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: F0 09 00 2A 2C 00 B9 65 1F 67 22 05 6E 64 EB [10:21:41]GetLastDocTimeStamp 1730110866 [10:21:41]current date 1730110905 [10:21:41]FM_GetShiftState [10:21:41]SAM_PROTO_GetShiftState [10:21:41]wFMCommunicate request_size=4 [10:21:41]MH_SAM_APDU [10:21:41]CAPDU: 80 13 01 00 [10:21:41]Write to MH i2c: E2 08 00 2B 2C 80 13 01 00 00 00 00 00 D4 [10:21:41]Write i2c OK [10:21:41]MH_I2C_Read... [10:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:41]Read from MH i2c: E2 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 0E 00 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 0E 00 2B 2C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 24 [10:21:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:21:41]wFMCommunicate OK [10:21:41]SAM_PROTO_GetShiftState done [10:21:41]FM_GetShiftState done [10:21:41]opened in 1730075620 [10:21:41]opened+sec_in_day 1730162020 [10:21:41]quantity*price = 50041 [10:21:41]sum+1 = 50042 [10:21:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 54 28.10.2024 10:21 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192506 ФПД: 205672954286563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192506&fm=205672954286563&tin=02508201610067®Number=0000000000091776&sum=50041 [10:21:42]StoreToDocumentArchive [10:21:42]shift 543 fd 192506 [10:21:42]save to /storage/0543/doc_00192506 [10:21:42]save last doc name /storage/0543/doc_00192506 to /storage/kkm_last_doc_name [10:21:42]save OK [10:21:42]Clear old archive folders... [10:21:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:42]tlvbuf is 0197DDE0 [10:21:42]SAM_PROTO_ClearQueue [10:21:42]wFMCommunicate request_size=4 [10:21:42]MH_SAM_APDU [10:21:42]CAPDU: 80 09 00 00 [10:21:42]Write to MH i2c: E2 08 00 38 2C 80 09 00 00 00 00 00 00 D6 [10:21:42]Write i2c OK [10:21:42]MH_I2C_Read... [10:21:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:42]Read from MH i2c: E2 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 03 00 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 03 00 38 2C 00 90 00 D8 [10:21:42]RAPDU: 90 00 [10:21:42]wFMCommunicate OK [10:21:42]SAM_PROTO_ClearQueue done [10:21:42]KKMCreateOFDPacket [10:21:42]OFDProtocolAddRootSTLVToBuf [10:21:42]FM_MakeSignedData [10:21:42]FM_MakeSignedData [10:21:42]SAM_PROTO_SignData [10:21:42]wFMCommunicate request_size=4 [10:21:42]MH_SAM_APDU [10:21:42]CAPDU: 80 0D 01 02 [10:21:42]Write to MH i2c: E2 08 00 39 2C 80 0D 01 02 00 00 00 00 DE [10:21:42]Write i2c OK [10:21:42]MH_I2C_Read... [10:21:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:42]Read from MH i2c: E2 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 03 00 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 03 00 39 2C 00 90 00 D9 [10:21:42]RAPDU: 90 00 [10:21:42]wFMCommunicate OK [10:21:42]wFMCommunicate request_size=255 [10:21:42]MH_SAM_APDU [10:21:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B9 65 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EF 02 00 35 04 06 00 BB [10:21:42]Write to MH i2c: E2 02 01 3A 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B9 65 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EF 02 00 35 04 06 00 BB 00 00 65 [10:21:42]Write i2c OK [10:21:42]MH_I2C_Read... [10:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:42]Read from MH i2c: E2 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 03 00 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 03 00 3A 2C 00 90 00 DA [10:21:42]RAPDU: 90 00 [10:21:42]wFMCommunicate OK [10:21:42]wFMCommunicate request_size=10 [10:21:42]MH_SAM_APDU [10:21:42]CAPDU: 80 0D 02 02 05 0E F7 61 51 E3 [10:21:42]Write to MH i2c: E2 0D 00 3B 2C 80 0D 02 02 05 00 0E F7 61 51 E3 00 00 85 [10:21:42]Write i2c OK [10:21:42]MH_I2C_Read... [10:21:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:42]Read from MH i2c: E2 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 03 00 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 03 00 3B 2C 00 90 00 DB [10:21:42]RAPDU: 90 00 [10:21:42]wFMCommunicate OK [10:21:42]wFMCommunicate request_size=4 [10:21:42]MH_SAM_APDU [10:21:42]CAPDU: 80 0D 03 02 [10:21:42]Write to MH i2c: E2 08 00 3C 2C 80 0D 03 02 00 00 00 00 E3 [10:21:42]Write i2c OK [10:21:42]MH_I2C_Read... [10:21:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:42]Read from MH i2c: E2 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 0B 00 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 0B 00 3C 2C 00 83 4C F9 9B FC 41 79 FB 90 00 F8 [10:21:42]RAPDU: 83 4C F9 9B FC 41 79 FB 90 00 [10:21:42]wFMCommunicate OK [10:21:42]SAM_PROTO_SignData done [10:21:42]FM_MakeSignedData done [10:21:42]CreateOFDProtocolMessage [10:21:42]wFMCommunicate request_size=4 [10:21:42]MH_SAM_APDU [10:21:42]CAPDU: 80 11 00 00 [10:21:42]Write to MH i2c: E2 08 00 3D 2C 80 11 00 00 00 00 00 00 E3 [10:21:42]Write i2c OK [10:21:42]MH_I2C_Read... [10:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:42]Read from MH i2c: E2 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 17 00 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 17 00 3D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 36 [10:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:21:42]wFMCommunicate OK [10:21:42]CreateOFDProtocolMessage done [10:21:42]OFDSenderStorePacket 192506 [10:21:42]StoreOFDPacket docnum=192506 [10:21:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 08 90 07 01 72 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B9 65 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EF 02 00 35 04 06 00 BB 0E F7 61 51 E3 83 4C F9 9B FC 41 79 FB [10:21:42]CheckFolder [10:21:42]dirname=/storage/ofd_packets [10:21:42]CheckFolder done [10:21:42]ProducePacketName [10:21:42]name=ofd_packets/00192506 [10:21:42]NVStorageSaveData ofd_packets/00192506 [10:21:42]File name is /storage/ofd_packets/00192506 [10:21:42]Write 301 bytes [10:21:42]NVStorageSaveData done [10:21:42]OFDSenderStorePacket done [10:21:42]KKMCreateOFDPacket done [10:21:42]NVStorageSaveData kkm_last_timestamp [10:21:42]File name is /storage/kkm_last_timestamp [10:21:42]Write 4 bytes [10:21:42]NVStorageSaveData done [10:21:42]ExternCall_PrintAddStr [10:21:42]wPrintStart [10:21:42]Write to MH i2c: 01 00 00 3E 2C 6A [10:21:42]Write i2c OK [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: 01 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: 01 07 00 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: 01 07 00 3E 2C 00 00 00 00 00 FF 0F 7F [10:21:42]RasterBufferAndPrint [10:21:42]line Счет N : (1)31821 [10:21:42]line ИНН: 02508201610067 [10:21:42]line Контрольно-Кассовый Чек [10:21:42]line ПРОДАЖА [10:21:42]line ТРК (МРК, ГНК) : 21 [10:21:42]line Товар: 2710124130 [10:21:42]line Аи-92-К-5 [10:21:42]line 7.480 * 66.90 [10:21:42]line = 500.41 [10:21:42]line НДС 12% НСП 1% [10:21:42]line > о реализуемом товаре [10:21:42]line ИТОГО: 500.41 [10:21:42]line НСП 1% : 4.43 [10:21:42]line НДС 12% : 53.14 [10:21:42]line Наличными: 0.00 [10:21:42]line Безнал.: 500.41 [10:21:42]line Место: АЗС № 170 "Партнер Нефть" [10:21:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:21:42]line СНО: Общий режим [10:21:42]line Чек 54 28.10.2024 10:21 [10:21:42]line Смена: 543 ФФД: 1.0 [10:21:42]line ЗНМ: 0300000110 [10:21:42]line РНМ: 0000000000091776 [10:21:42]line Версия ККМ: 001 [10:21:42]line Платежная система: Кыргызкоммерцбанк [10:21:42]line ФМ: 0000000000871754 [10:21:42]line ФД: 192506 [10:21:42]line ФПД: 205672954286563 [10:21:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192506&fm=205672954286563&tin=02508201610067®Number=0000000000091776&sum=50041 [10:21:43]written 0, free lines is 4095 [10:21:43]OFD Sender: Processing packet 192506 [packets to send 75, broken 74] [10:21:43]ProducePacketName [10:21:43]name=ofd_packets/00192506 [10:21:43]OFD Sender: To server: pG, [10:21:43]CommunicateWithHost lk.salyk.kg:30040 [10:21:43]ConnectInit lk.salyk.kg [10:21:43]Connected sock=10 [10:21:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 08 90 07 01 72 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B9 65 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EF 02 00 35 04 06 00 BB 0E F7 61 51 E3 83 4C F9 9B FC 41 79 FB [10:21:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8F 99 47 00 1C 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EF 02 00 F4 03 04 00 7E 0A 1F 67 B6 04 01 00 00 67 DD A5 24 3B D8 5E 14 [10:21:43]CommunicateWithHost err = 0 [10:21:43]CheckOFDResponse [10:21:43]1017 (14) - 77093643461234 [10:21:43]1041 (16) - 0000000000871754 [10:21:43]1040 (4) - 192506 [10:21:43]1012 (4) - 28.10.2024 03:52 [10:21:43]1206 (1) - 0 [10:21:43]OFD Sender: Remove packet 192506 [10:21:43]ProducePacketName [10:21:43]name=ofd_packets/00192506 [10:21:43]NVStorageDeleteData [10:21:43]Write to MH i2c: 01 00 00 68 2C 94 [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: 01 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: 01 07 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: 01 07 00 68 2C 00 00 00 00 00 BB 0C 62 [10:21:43]RasterBufferAndPrint [10:21:43]line [10:21:43]line [10:21:43]line [10:21:43]line [10:21:43]line [10:21:43]written 0, free lines is 3265 [10:21:43]MH_Cut [10:21:43]Write to MH i2c: D1 01 00 6F 2C 01 6D [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: D1 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: D1 01 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: D1 01 00 6F 2C 00 6C [10:21:43]Write to MH i2c: 01 00 00 70 2C 9C [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]OFD Sender: No OFD packet to send [10:21:44]*** Cut start [10:21:44]*** Partial cut [10:21:44]*** CUTSNS_PIN = 1 [10:21:44]*** CUTSNS_PIN = 0 [10:21:44]*** Brake cut motor [10:21:45]Read from MH i2c: 01 [10:21:45]MH_I2C_Read... [10:21:45]*** Stop cut motor [10:21:45]*** Cut end [10:21:45]Read from MH i2c: 01 07 00 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: 01 07 00 70 2C 00 00 00 00 00 FF 0F B1 [10:21:45]process_action close_receipt done [10:21:45]requested_data is exist [10:21:45]produce_requested_data [10:21:45]requested_item fm.sn is exist - process it [10:21:45]wFMCommunicate request_size=4 [10:21:45]MH_SAM_APDU [10:21:45]CAPDU: 80 11 00 00 [10:21:45]Write to MH i2c: E2 08 00 71 2C 80 11 00 00 00 00 00 00 17 [10:21:45]Write i2c OK [10:21:45]MH_I2C_Read... [10:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:45]Read from MH i2c: E2 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: E2 17 00 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: E2 17 00 71 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6A [10:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:21:45]wFMCommunicate OK [10:21:45]requested_item fd.num is exist - process it [10:21:45]SAM_PROTO_GetFieldsCounters [10:21:45]wFMCommunicate request_size=4 [10:21:45]MH_SAM_APDU [10:21:45]CAPDU: 80 13 00 00 [10:21:45]Write to MH i2c: E2 08 00 72 2C 80 13 00 00 00 00 00 00 1A [10:21:45]Write i2c OK [10:21:45]MH_I2C_Read... [10:21:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:45]Read from MH i2c: E2 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: E2 62 00 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: E2 62 00 72 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FA EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [10:21:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FA EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:45]wFMCommunicate OK [10:21:45]SAM_PROTO_GetFieldsCounters done [10:21:45]requested_item shift.num is exist - process it [10:21:45]requested_item shift.opened is exist - process it [10:21:45]req_shift_opened [10:21:45]FM_GetShiftState [10:21:45]SAM_PROTO_GetShiftState [10:21:45]wFMCommunicate request_size=4 [10:21:45]MH_SAM_APDU [10:21:45]CAPDU: 80 13 01 00 [10:21:45]Write to MH i2c: E2 08 00 73 2C 80 13 01 00 00 00 00 00 1C [10:21:45]Write i2c OK [10:21:45]MH_I2C_Read... [10:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:45]Read from MH i2c: E2 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: E2 0E 00 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: E2 0E 00 73 2C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 6C [10:21:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:21:45]wFMCommunicate OK [10:21:45]SAM_PROTO_GetShiftState done [10:21:45]FM_GetShiftState done [10:21:45]req_shift_opened done [10:21:45]requested_item shift.open_date is exist - process it [10:21:45]req_shift_open_date [10:21:45]req_shift_open_date done [10:21:45]produce_requested_data done [10:21:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192506,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:21:45]process_action_free close_receipt [10:21:45]json_value_free [10:21:45]json_value_free done [10:21:45]process_json_proto returns [10:21:45]Send response to host [10:21:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192506,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:21:45]free response buf [10:21:45]execute_script done [10:21:45]execute_script returns [10:21:45]free content buf [10:21:45]Sock 7.Close socket [10:21:45]Sock 7.Thread stoped [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:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:24]accept exits with 9 [10:27:24]New connection [10:27:24]New thread 3066563940 created [10:27:24]Thread 3066707300 joined [10:27:24]Waiting for new connection... [10:27:24] Sock 9.Parse request [10:27:24]Sock 9.Check first char [10:27:24]Sock 9.First char is OK [10:27:24]request: POST /json_proto HTTP/1.0 [10:27:24]Method: POST [10:27:24]URL: /json_proto [10:27:24]Method is POST - this is cgi request [10:27:24]url: /json_proto [10:27:24]query_string will be loaded in cgi processing [10:27:24]execute_cgi json_proto POST (null) [10:27:24]execute_cgi path=json_proto method=POST [10:27:24]POST find Content-Length [10:27:24]Host: 172.17.63.131:8080 [10:27:24]Content-Length: 673 [10:27:24]Content-Type: application/json [10:27:24] [10:27:24]POST finish read [10:27:24]Found Content-Length = 673 [10:27:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:24]execute_script... [10:27:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:24]POST & json_proto [10:27:24]process_json_proto [10:27:24]json parsed OK: [10:27:24]protocol is kg_v1.0 [10:27:24]action value=close_receipt [10:27:24]process_action close_receipt [10:27:24]cmd_close_receipt [10:27:24]MH_GetDate [10:27:24]Write to MH i2c: F0 00 00 74 2C 8F [10:27:24]Write i2c OK [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: F0 [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: F0 09 00 [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: F0 09 00 74 2C 00 11 67 1F 67 22 05 6E 64 8F [10:27:24]GetLastDocTimeStamp 1730110905 [10:27:24]current date 1730111249 [10:27:24]FM_GetShiftState [10:27:24]SAM_PROTO_GetShiftState [10:27:24]wFMCommunicate request_size=4 [10:27:24]MH_SAM_APDU [10:27:24]CAPDU: 80 13 01 00 [10:27:24]Write to MH i2c: E2 08 00 75 2C 80 13 01 00 00 00 00 00 1E [10:27:24]Write i2c OK [10:27:24]MH_I2C_Read... [10:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:24]Read from MH i2c: E2 [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: E2 0E 00 [10:27:24]MH_I2C_Read... [10:27:24]Read from MH i2c: E2 0E 00 75 2C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 6E [10:27:24]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:27:24]wFMCommunicate OK [10:27:24]SAM_PROTO_GetShiftState done [10:27:24]FM_GetShiftState done [10:27:24]opened in 1730075620 [10:27:24]opened+sec_in_day 1730162020 [10:27:24]quantity*price = 50063 [10:27:24]sum+1 = 50064 [10:27:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 55 28.10.2024 10:27 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192507 ФПД: 279168901048827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102729&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192507&fm=279168901048827&tin=02508201610067®Number=0000000000091776&sum=50000 [10:27:25]StoreToDocumentArchive [10:27:25]shift 543 fd 192507 [10:27:25]save to /storage/0543/doc_00192507 [10:27:25]save last doc name /storage/0543/doc_00192507 to /storage/kkm_last_doc_name [10:27:25]save OK [10:27:25]Clear old archive folders... [10:27:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:27:25]tlvbuf is 019B6CC0 [10:27:25]SAM_PROTO_ClearQueue [10:27:25]wFMCommunicate request_size=4 [10:27:25]MH_SAM_APDU [10:27:25]CAPDU: 80 09 00 00 [10:27:25]Write to MH i2c: E2 08 00 82 2C 80 09 00 00 00 00 00 00 20 [10:27:25]Write i2c OK [10:27:25]MH_I2C_Read... [10:27:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:25]Read from MH i2c: E2 [10:27:25]MH_I2C_Read... [10:27:25]Read from MH i2c: E2 03 00 [10:27:25]MH_I2C_Read... [10:27:25]Read from MH i2c: E2 03 00 82 2C 00 90 00 22 [10:27:25]RAPDU: 90 00 [10:27:25]wFMCommunicate OK [10:27:25]SAM_PROTO_ClearQueue done [10:27:25]KKMCreateOFDPacket [10:27:25]OFDProtocolAddRootSTLVToBuf [10:27:25]FM_MakeSignedData [10:27:25]FM_MakeSignedData [10:27:25]SAM_PROTO_SignData [10:27:25]wFMCommunicate request_size=4 [10:27:25]MH_SAM_APDU [10:27:25]CAPDU: 80 0D 01 02 [10:27:25]Write to MH i2c: E2 08 00 83 2C 80 0D 01 02 00 00 00 00 28 [10:27:25]Write i2c OK [10:27:25]MH_I2C_Read... [10:27:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:25]Read from MH i2c: E2 [10:27:25]MH_I2C_Read... [10:27:25]Read from MH i2c: E2 03 00 [10:27:25]MH_I2C_Read... [10:27:25]Read from MH i2c: E2 03 00 83 2C 00 90 00 23 [10:27:25]RAPDU: 90 00 [10:27:25]wFMCommunicate OK [10:27:25]wFMCommunicate request_size=255 [10:27:25]MH_SAM_APDU [10:27:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 11 67 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EF 02 00 35 04 06 00 FD E7 13 2D [10:27:25]Write to MH i2c: E2 02 01 84 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 11 67 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EF 02 00 35 04 06 00 FD E7 13 2D 00 00 A0 [10:27:25]Write i2c OK [10:27:25]MH_I2C_Read... [10:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:25]Read from MH i2c: E2 [10:27:25]MH_I2C_Read... [10:27:25]Read from MH i2c: E2 03 00 [10:27:25]MH_I2C_Read... [10:27:25]Read from MH i2c: E2 03 00 84 2C 00 90 00 24 [10:27:25]RAPDU: 90 00 [10:27:25]wFMCommunicate OK [10:27:25]wFMCommunicate request_size=7 [10:27:25]MH_SAM_APDU [10:27:25]CAPDU: 80 0D 02 02 02 E9 FB [10:27:25]Write to MH i2c: E2 0A 00 85 2C 80 0D 02 02 02 00 E9 FB 00 00 13 [10:27:25]Write i2c OK [10:27:25]MH_I2C_Read... [10:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:25]Read from MH i2c: E2 [10:27:25]MH_I2C_Read... [10:27:25]Read from MH i2c: E2 03 00 [10:27:25]MH_I2C_Read... [10:27:25]Read from MH i2c: E2 03 00 85 2C 00 90 00 25 [10:27:25]RAPDU: 90 00 [10:27:25]wFMCommunicate OK [10:27:25]wFMCommunicate request_size=4 [10:27:25]MH_SAM_APDU [10:27:25]CAPDU: 80 0D 03 02 [10:27:25]Write to MH i2c: E2 08 00 86 2C 80 0D 03 02 00 00 00 00 2D [10:27:25]Write i2c OK [10:27:25]MH_I2C_Read... [10:27:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:26]Read from MH i2c: E2 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: E2 0B 00 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: E2 0B 00 86 2C 00 F6 99 A8 57 CB E0 03 0A 90 00 74 [10:27:26]RAPDU: F6 99 A8 57 CB E0 03 0A 90 00 [10:27:26]wFMCommunicate OK [10:27:26]SAM_PROTO_SignData done [10:27:26]FM_MakeSignedData done [10:27:26]CreateOFDProtocolMessage [10:27:26]wFMCommunicate request_size=4 [10:27:26]MH_SAM_APDU [10:27:26]CAPDU: 80 11 00 00 [10:27:26]Write to MH i2c: E2 08 00 87 2C 80 11 00 00 00 00 00 00 2D [10:27:26]Write i2c OK [10:27:26]MH_I2C_Read... [10:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:26]Read from MH i2c: E2 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: E2 17 00 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: E2 17 00 87 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 80 [10:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:27:26]wFMCommunicate OK [10:27:26]CreateOFDProtocolMessage done [10:27:26]OFDSenderStorePacket 192507 [10:27:26]StoreOFDPacket docnum=192507 [10:27:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 3B EE 04 01 43 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 11 67 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EF 02 00 35 04 06 00 FD E7 13 2D E9 FB F6 99 A8 57 CB E0 03 0A [10:27:26]CheckFolder [10:27:26]dirname=/storage/ofd_packets [10:27:26]CheckFolder done [10:27:26]ProducePacketName [10:27:26]name=ofd_packets/00192507 [10:27:26]NVStorageSaveData ofd_packets/00192507 [10:27:26]File name is /storage/ofd_packets/00192507 [10:27:26]Write 298 bytes [10:27:26]NVStorageSaveData done [10:27:26]OFDSenderStorePacket done [10:27:26]KKMCreateOFDPacket done [10:27:26]NVStorageSaveData kkm_last_timestamp [10:27:26]File name is /storage/kkm_last_timestamp [10:27:26]Write 4 bytes [10:27:26]NVStorageSaveData done [10:27:26]ExternCall_PrintAddStr [10:27:26]wPrintStart [10:27:26]Write to MH i2c: 01 00 00 88 2C B4 [10:27:26]Write i2c OK [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: 01 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: 01 07 00 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: 01 07 00 88 2C 00 00 00 00 00 FF 0F C9 [10:27:26]RasterBufferAndPrint [10:27:26]line Счет N : (1)31822 [10:27:26]line ИНН: 02508201610067 [10:27:26]line Контрольно-Кассовый Чек [10:27:26]line ПРОДАЖА [10:27:26]line ТРК (МРК, ГНК) : 11 [10:27:26]line Товар: 2710194210 [10:27:26]line ДТ-К-5 [10:27:26]line 6.570 * 76.20 [10:27:26]line = 500.63 [10:27:26]line НДС 12% НСП 1% [10:27:26]line > о реализуемом товаре [10:27:26]line ОКРУГЛЕНИЕ: -0.63 [10:27:26]line ИТОГО: 500.00 [10:27:26]line Внесено: 500.00 [10:27:26]line СДАЧА: 0.00 [10:27:26]line НСП 1% : 4.43 [10:27:26]line НДС 12% : 53.16 [10:27:26]line Наличными: 500.00 [10:27:26]line Безнал.: 0.00 [10:27:26]line Место: АЗС № 170 "Партнер Нефть" [10:27:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:27:26]line СНО: Общий режим [10:27:26]line Чек 55 28.10.2024 10:27 [10:27:26]line Смена: 543 ФФД: 1.0 [10:27:26]line ЗНМ: 0300000110 [10:27:26]line РНМ: 0000000000091776 [10:27:26]line Версия ККМ: 001 [10:27:26]line ФМ: 0000000000871754 [10:27:26]line ФД: 192507 [10:27:26]line ФПД: 279168901048827 [10:27:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102729&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192507&fm=279168901048827&tin=02508201610067®Number=0000000000091776&sum=50000 [10:27:26]OFD Sender: Processing packet 192507 [packets to send 75, broken 74] [10:27:26]ProducePacketName [10:27:26]name=ofd_packets/00192507 [10:27:26]OFD Sender: To server: pG, [10:27:26]CommunicateWithHost lk.salyk.kg:30040 [10:27:26]ConnectInit lk.salyk.kg [10:27:26]written 0, free lines is 4095 [10:27:26]Connected sock=10 [10:27:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 3B EE 04 01 43 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 11 67 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EF 02 00 35 04 06 00 FD E7 13 2D E9 FB F6 99 A8 57 CB E0 03 0A [10:27:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 22 19 47 00 6D 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EF 02 00 F4 03 04 00 D5 0B 1F 67 B6 04 01 00 00 71 D5 5C DA DA F2 95 49 [10:27:26]CommunicateWithHost err = 0 [10:27:26]CheckOFDResponse [10:27:26]1017 (14) - 77093643461234 [10:27:26]1041 (16) - 0000000000871754 [10:27:26]1040 (4) - 192507 [10:27:26]1012 (4) - 28.10.2024 03:58 [10:27:26]1206 (1) - 0 [10:27:26]OFD Sender: Remove packet 192507 [10:27:26]ProducePacketName [10:27:26]name=ofd_packets/00192507 [10:27:26]NVStorageDeleteData [10:27:26]Write to MH i2c: 01 00 00 B3 2C DF [10:27:26]Write i2c OK [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: 01 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: 01 07 00 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: 01 07 00 B3 2C 00 00 00 00 00 9D 0C 8F [10:27:26]RasterBufferAndPrint [10:27:26]line [10:27:26]line [10:27:26]line [10:27:26]line [10:27:26]line [10:27:26]written 0, free lines is 3238 [10:27:26]MH_Cut [10:27:26]Write to MH i2c: D1 01 00 BA 2C 01 B8 [10:27:26]Write i2c OK [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: D1 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: D1 01 00 [10:27:26]MH_I2C_Read... [10:27:26]Read from MH i2c: D1 01 00 BA 2C 00 B7 [10:27:26]Write to MH i2c: 01 00 00 BB 2C E7 [10:27:26]Write i2c OK [10:27:26]MH_I2C_Read... [10:27:27]OFD Sender: No OFD packet to send [10:27:27]*** Cut start [10:27:27]*** Partial cut [10:27:27]*** CUTSNS_PIN = 1 [10:27:27]*** CUTSNS_PIN = 0 [10:27:28]*** Brake cut motor [10:27:28]Read from MH i2c: 01 [10:27:28]MH_I2C_Read... [10:27:28]*** Stop cut motor [10:27:28]*** Cut end [10:27:28]Read from MH i2c: 01 07 00 [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: 01 07 00 BB 2C 00 00 00 00 00 FF 0F FC [10:27:28]process_action close_receipt done [10:27:28]requested_data is exist [10:27:28]produce_requested_data [10:27:28]requested_item fm.sn is exist - process it [10:27:28]wFMCommunicate request_size=4 [10:27:28]MH_SAM_APDU [10:27:28]CAPDU: 80 11 00 00 [10:27:28]Write to MH i2c: E2 08 00 BC 2C 80 11 00 00 00 00 00 00 62 [10:27:28]Write i2c OK [10:27:28]MH_I2C_Read... [10:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:28]Read from MH i2c: E2 [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: E2 17 00 [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: E2 17 00 BC 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [10:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:27:28]wFMCommunicate OK [10:27:28]requested_item fd.num is exist - process it [10:27:28]SAM_PROTO_GetFieldsCounters [10:27:28]wFMCommunicate request_size=4 [10:27:28]MH_SAM_APDU [10:27:28]CAPDU: 80 13 00 00 [10:27:28]Write to MH i2c: E2 08 00 BD 2C 80 13 00 00 00 00 00 00 65 [10:27:28]Write i2c OK [10:27:28]MH_I2C_Read... [10:27:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:28]Read from MH i2c: E2 [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: E2 62 00 [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: E2 62 00 BD 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FB EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [10:27:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FB EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:28]wFMCommunicate OK [10:27:28]SAM_PROTO_GetFieldsCounters done [10:27:28]requested_item shift.num is exist - process it [10:27:28]requested_item shift.opened is exist - process it [10:27:28]req_shift_opened [10:27:28]FM_GetShiftState [10:27:28]SAM_PROTO_GetShiftState [10:27:28]wFMCommunicate request_size=4 [10:27:28]MH_SAM_APDU [10:27:28]CAPDU: 80 13 01 00 [10:27:28]Write to MH i2c: E2 08 00 BE 2C 80 13 01 00 00 00 00 00 67 [10:27:28]Write i2c OK [10:27:28]MH_I2C_Read... [10:27:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:28]Read from MH i2c: E2 [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: E2 0E 00 [10:27:28]MH_I2C_Read... [10:27:28]Read from MH i2c: E2 0E 00 BE 2C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B7 [10:27:28]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:27:28]wFMCommunicate OK [10:27:28]SAM_PROTO_GetShiftState done [10:27:28]FM_GetShiftState done [10:27:28]req_shift_opened done [10:27:28]requested_item shift.open_date is exist - process it [10:27:28]req_shift_open_date [10:27:28]req_shift_open_date done [10:27:28]produce_requested_data done [10:27:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192507,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:27:28]process_action_free close_receipt [10:27:28]json_value_free [10:27:28]json_value_free done [10:27:28]process_json_proto returns [10:27:28]Send response to host [10:27:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192507,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:27:28]free response buf [10:27:28]execute_script done [10:27:28]execute_script returns [10:27:28]free content buf [10:27:28]Sock 9.Close socket [10:27:28]Sock 9.Thread stoped [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:22]OFD Sender: No OFD packet to send [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]OFD Sender: No OFD packet to send [10:28:42]OFD Sender: No OFD packet to send [10:28:47]OFD Sender: No OFD packet to send [10:28:52]OFD Sender: No OFD packet to send [10:28:57]OFD Sender: No OFD packet to send [10:29:02]OFD Sender: No OFD packet to send [10:29:07]OFD Sender: No OFD packet to send [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:27]OFD Sender: No OFD packet to send [10:29:32]OFD Sender: No OFD packet to send [10:29:33]accept exits with 7 [10:29:33]New connection [10:29:33]New thread 3066707300 created [10:29:33]Thread 3066563940 joined [10:29:33]Waiting for new connection... [10:29:33] Sock 7.Parse request [10:29:33]Sock 7.Check first char [10:29:33]Sock 7.First char is OK [10:29:33]request: POST /json_proto HTTP/1.0 [10:29:33]Method: POST [10:29:33]URL: /json_proto [10:29:33]Method is POST - this is cgi request [10:29:33]url: /json_proto [10:29:33]query_string will be loaded in cgi processing [10:29:33]execute_cgi json_proto POST (null) [10:29:33]execute_cgi path=json_proto method=POST [10:29:33]POST find Content-Length [10:29:33]Host: 172.17.63.131:8080 [10:29:33]Content-Length: 676 [10:29:33]Content-Type: application/json [10:29:33] [10:29:33]POST finish read [10:29:33]Found Content-Length = 676 [10:29:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:33]execute_script... [10:29: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)31823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:33]POST & json_proto [10:29:33]process_json_proto [10:29:33]json parsed OK: [10:29:33]protocol is kg_v1.0 [10:29:33]action value=close_receipt [10:29:33]process_action close_receipt [10:29:33]cmd_close_receipt [10:29:33]MH_GetDate [10:29:33]Write to MH i2c: F0 00 00 BF 2C DA [10:29:33]Write i2c OK [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: F0 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: F0 09 00 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: F0 09 00 BF 2C 00 92 67 1F 67 22 05 6E 64 5B [10:29:33]GetLastDocTimeStamp 1730111249 [10:29:33]current date 1730111378 [10:29:33]FM_GetShiftState [10:29:33]SAM_PROTO_GetShiftState [10:29:33]wFMCommunicate request_size=4 [10:29:33]MH_SAM_APDU [10:29:33]CAPDU: 80 13 01 00 [10:29:33]Write to MH i2c: E2 08 00 C0 2C 80 13 01 00 00 00 00 00 69 [10:29:33]Write i2c OK [10:29:33]MH_I2C_Read... [10:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:33]Read from MH i2c: E2 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 0E 00 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 0E 00 C0 2C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B9 [10:29:33]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:29:33]wFMCommunicate OK [10:29:33]SAM_PROTO_GetShiftState done [10:29:33]FM_GetShiftState done [10:29:33]opened in 1730075620 [10:29:33]opened+sec_in_day 1730162020 [10:29:33]quantity*price = 60009 [10:29:33]sum+1 = 60010 [10:29:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 56 28.10.2024 10:29 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192508 ФПД: 73353346906576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102938&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192508&fm=73353346906576&tin=02508201610067®Number=0000000000091776&sum=60000 [10:29:34]StoreToDocumentArchive [10:29:34]shift 543 fd 192508 [10:29:34]save to /storage/0543/doc_00192508 [10:29:34]save last doc name /storage/0543/doc_00192508 to /storage/kkm_last_doc_name [10:29:34]save OK [10:29:34]Clear old archive folders... [10:29:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:34]tlvbuf is 019868E0 [10:29:34]SAM_PROTO_ClearQueue [10:29:34]wFMCommunicate request_size=4 [10:29:34]MH_SAM_APDU [10:29:34]CAPDU: 80 09 00 00 [10:29:34]Write to MH i2c: E2 08 00 CD 2C 80 09 00 00 00 00 00 00 6B [10:29:34]Write i2c OK [10:29:34]MH_I2C_Read... [10:29:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:34]Read from MH i2c: E2 [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: E2 03 00 [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: E2 03 00 CD 2C 00 90 00 6D [10:29:34]RAPDU: 90 00 [10:29:34]wFMCommunicate OK [10:29:34]SAM_PROTO_ClearQueue done [10:29:34]KKMCreateOFDPacket [10:29:34]OFDProtocolAddRootSTLVToBuf [10:29:34]FM_MakeSignedData [10:29:34]FM_MakeSignedData [10:29:34]SAM_PROTO_SignData [10:29:34]wFMCommunicate request_size=4 [10:29:34]MH_SAM_APDU [10:29:34]CAPDU: 80 0D 01 02 [10:29:34]Write to MH i2c: E2 08 00 CE 2C 80 0D 01 02 00 00 00 00 73 [10:29:34]Write i2c OK [10:29:34]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 03 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 03 00 CE 2C 00 90 00 6E [10:29:35]RAPDU: 90 00 [10:29:35]wFMCommunicate OK [10:29:35]wFMCommunicate request_size=255 [10:29:35]MH_SAM_APDU [10:29: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 92 67 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EF 02 00 35 04 06 00 42 [10:29:35]Write to MH i2c: E2 02 01 CF 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 92 67 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EF 02 00 35 04 06 00 42 00 00 EB [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 03 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 03 00 CF 2C 00 90 00 6F [10:29:35]RAPDU: 90 00 [10:29:35]wFMCommunicate OK [10:29:35]wFMCommunicate request_size=10 [10:29:35]MH_SAM_APDU [10:29:35]CAPDU: 80 0D 02 02 05 B6 E8 2F 79 D0 [10:29:35]Write to MH i2c: E2 0D 00 D0 2C 80 0D 02 02 05 00 B6 E8 2F 79 D0 00 00 96 [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 03 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 03 00 D0 2C 00 90 00 70 [10:29:35]RAPDU: 90 00 [10:29:35]wFMCommunicate OK [10:29:35]wFMCommunicate request_size=4 [10:29:35]MH_SAM_APDU [10:29:35]CAPDU: 80 0D 03 02 [10:29:35]Write to MH i2c: E2 08 00 D1 2C 80 0D 03 02 00 00 00 00 78 [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 0B 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 0B 00 D1 2C 00 B0 D3 1F 69 4A D4 34 C2 90 00 98 [10:29:35]RAPDU: B0 D3 1F 69 4A D4 34 C2 90 00 [10:29:35]wFMCommunicate OK [10:29:35]SAM_PROTO_SignData done [10:29:35]FM_MakeSignedData done [10:29:35]CreateOFDProtocolMessage [10:29:35]wFMCommunicate request_size=4 [10:29:35]MH_SAM_APDU [10:29:35]CAPDU: 80 11 00 00 [10:29:35]Write to MH i2c: E2 08 00 D2 2C 80 11 00 00 00 00 00 00 78 [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 17 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 17 00 D2 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CB [10:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:29:35]wFMCommunicate OK [10:29:35]CreateOFDProtocolMessage done [10:29:35]OFDSenderStorePacket 192508 [10:29:35]StoreOFDPacket docnum=192508 [10:29:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 34 A0 07 01 BF 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 92 67 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EF 02 00 35 04 06 00 42 B6 E8 2F 79 D0 B0 D3 1F 69 4A D4 34 C2 [10:29:35]CheckFolder [10:29:35]dirname=/storage/ofd_packets [10:29:35]CheckFolder done [10:29:35]ProducePacketName [10:29:35]name=ofd_packets/00192508 [10:29:35]NVStorageSaveData ofd_packets/00192508 [10:29:35]File name is /storage/ofd_packets/00192508 [10:29:35]Write 301 bytes [10:29:35]NVStorageSaveData done [10:29:35]OFDSenderStorePacket done [10:29:35]KKMCreateOFDPacket done [10:29:35]NVStorageSaveData kkm_last_timestamp [10:29:35]File name is /storage/kkm_last_timestamp [10:29:35]Write 4 bytes [10:29:35]NVStorageSaveData done [10:29:35]ExternCall_PrintAddStr [10:29:35]wPrintStart [10:29:35]Write to MH i2c: 01 00 00 D3 2C FF [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: 01 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: 01 07 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: 01 07 00 D3 2C 00 00 00 00 00 FF 0F 14 [10:29:35]RasterBufferAndPrint [10:29:35]line Счет N : (1)31823 [10:29:35]line ИНН: 02508201610067 [10:29:35]line Контрольно-Кассовый Чек [10:29:35]line ПРОДАЖА [10:29:35]line ТРК (МРК, ГНК) : 12 [10:29:35]line Товар: 2710124130 [10:29:35]line Аи-92-К-5 [10:29:35]line 8.970 * 66.90 [10:29:35]line = 600.09 [10:29:35]line НДС 12% НСП 1% [10:29:35]line > о реализуемом товаре [10:29:35]line ОКРУГЛЕНИЕ: -0.09 [10:29:35]line ИТОГО: 600.00 [10:29:35]line Внесено: 600.00 [10:29:35]line СДАЧА: 0.00 [10:29:35]line НСП 1% : 5.31 [10:29:35]line НДС 12% : 63.73 [10:29:35]line Наличными: 600.00 [10:29:35]line Безнал.: 0.00 [10:29:35]line Место: АЗС № 170 "Партнер Нефть" [10:29:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:29:35]line СНО: Общий режим [10:29:35]line Чек 56 28.10.2024 10:29 [10:29:35]line Смена: 543 ФФД: 1.0 [10:29:35]line ЗНМ: 0300000110 [10:29:35]line РНМ: 0000000000091776 [10:29:35]line Версия ККМ: 001 [10:29:35]line ФМ: 0000000000871754 [10:29:35]line ФД: 192508 [10:29:35]line ФПД: 73353346906576 [10:29:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102938&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192508&fm=73353346906576&tin=02508201610067®Number=0000000000091776&sum=60000 [10:29:35]OFD Sender: Processing packet 192508 [packets to send 75, broken 74] [10:29:35]ProducePacketName [10:29:35]name=ofd_packets/00192508 [10:29:35]OFD Sender: To server: pG, [10:29:35]CommunicateWithHost lk.salyk.kg:30040 [10:29:35]ConnectInit lk.salyk.kg [10:29:35]written 0, free lines is 4095 [10:29:35]Connected sock=10 [10:29:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 34 A0 07 01 BF 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 92 67 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EF 02 00 35 04 06 00 42 B6 E8 2F 79 D0 B0 D3 1F 69 4A D4 34 C2 [10:29:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2A 78 47 00 9D C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EF 02 00 F4 03 04 00 56 0C 1F 67 B6 04 01 00 00 D0 E0 D1 64 8C 72 8D 8E [10:29:36]CommunicateWithHost err = 0 [10:29:36]CheckOFDResponse [10:29:36]1017 (14) - 77093643461234 [10:29:36]1041 (16) - 0000000000871754 [10:29:36]1040 (4) - 192508 [10:29:36]1012 (4) - 28.10.2024 04:00 [10:29:36]1206 (1) - 0 [10:29:36]OFD Sender: Remove packet 192508 [10:29:36]ProducePacketName [10:29:36]name=ofd_packets/00192508 [10:29:36]NVStorageDeleteData [10:29:36]Write to MH i2c: 01 00 00 FE 2C 2A [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: 01 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: 01 07 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: 01 07 00 FE 2C 00 00 00 00 00 9D 0C DA [10:29:36]RasterBufferAndPrint [10:29:36]line [10:29:36]line [10:29:36]line [10:29:36]line [10:29:36]line [10:29:36]written 0, free lines is 3236 [10:29:36]MH_Cut [10:29:36]Write to MH i2c: D1 01 00 05 2D 01 04 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: D1 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: D1 01 00 [10:29:36]MH_I2C_Read... [10:29:36]Read from MH i2c: D1 01 00 05 2D 00 03 [10:29:36]Write to MH i2c: 01 00 00 06 2D 33 [10:29:36]Write i2c OK [10:29:36]MH_I2C_Read... [10:29:36]OFD Sender: No OFD packet to send [10:29:37]*** Cut start [10:29:37]*** Partial cut [10:29:37]*** CUTSNS_PIN = 1 [10:29:37]*** CUTSNS_PIN = 0 [10:29:37]*** Brake cut motor [10:29:37]Read from MH i2c: 01 [10:29:37]MH_I2C_Read... [10:29:37]*** Stop cut motor [10:29:37]*** Cut end [10:29:37]Read from MH i2c: 01 07 00 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: 01 07 00 06 2D 00 00 00 00 00 FF 0F 48 [10:29:37]process_action close_receipt done [10:29:37]requested_data is exist [10:29:37]produce_requested_data [10:29:37]requested_item fm.sn is exist - process it [10:29:37]wFMCommunicate request_size=4 [10:29:37]MH_SAM_APDU [10:29:37]CAPDU: 80 11 00 00 [10:29:37]Write to MH i2c: E2 08 00 07 2D 80 11 00 00 00 00 00 00 AE [10:29:37]Write i2c OK [10:29:37]MH_I2C_Read... [10:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:37]Read from MH i2c: E2 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: E2 17 00 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: E2 17 00 07 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 01 [10:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:29:37]wFMCommunicate OK [10:29:37]requested_item fd.num is exist - process it [10:29:37]SAM_PROTO_GetFieldsCounters [10:29:37]wFMCommunicate request_size=4 [10:29:37]MH_SAM_APDU [10:29:37]CAPDU: 80 13 00 00 [10:29:37]Write to MH i2c: E2 08 00 08 2D 80 13 00 00 00 00 00 00 B1 [10:29:37]Write i2c OK [10:29:37]MH_I2C_Read... [10:29:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:37]Read from MH i2c: E2 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: E2 62 00 [10:29:37]MH_I2C_Read... [10:29:37]Read from MH i2c: E2 62 00 08 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FC EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [10:29:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FC EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:37]wFMCommunicate OK [10:29:37]SAM_PROTO_GetFieldsCounters done [10:29:37]requested_item shift.num is exist - process it [10:29:37]requested_item shift.opened is exist - process it [10:29:37]req_shift_opened [10:29:37]FM_GetShiftState [10:29:37]SAM_PROTO_GetShiftState [10:29:37]wFMCommunicate request_size=4 [10:29:37]MH_SAM_APDU [10:29:37]CAPDU: 80 13 01 00 [10:29:37]Write to MH i2c: E2 08 00 09 2D 80 13 01 00 00 00 00 00 B3 [10:29:37]Write i2c OK [10:29:37]MH_I2C_Read... [10:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:38]Read from MH i2c: E2 [10:29:38]MH_I2C_Read... [10:29:38]Read from MH i2c: E2 0E 00 [10:29:38]MH_I2C_Read... [10:29:38]Read from MH i2c: E2 0E 00 09 2D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 03 [10:29:38]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:29:38]wFMCommunicate OK [10:29:38]SAM_PROTO_GetShiftState done [10:29:38]FM_GetShiftState done [10:29:38]req_shift_opened done [10:29:38]requested_item shift.open_date is exist - process it [10:29:38]req_shift_open_date [10:29:38]req_shift_open_date done [10:29:38]produce_requested_data done [10:29:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192508,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:29:38]process_action_free close_receipt [10:29:38]json_value_free [10:29:38]json_value_free done [10:29:38]process_json_proto returns [10:29:38]Send response to host [10:29:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192508,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:29:38]free response buf [10:29:38]execute_script done [10:29:38]execute_script returns [10:29:38]free content buf [10:29:38]Sock 7.Close socket [10:29:38]Sock 7.Thread stoped [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]accept exits with 9 [10:30:11]New connection [10:30:11]New thread 3066563940 created [10:30:11]Thread 3066707300 joined [10:30:11]Waiting for new connection... [10:30:11] Sock 9.Parse request [10:30:11]Sock 9.Check first char [10:30:11]Sock 9.First char is OK [10:30:11]request: POST /json_proto HTTP/1.0 [10:30:11]Method: POST [10:30:11]URL: /json_proto [10:30:11]Method is POST - this is cgi request [10:30:11]url: /json_proto [10:30:11]query_string will be loaded in cgi processing [10:30:11]execute_cgi json_proto POST (null) [10:30:11]execute_cgi path=json_proto method=POST [10:30:11]POST find Content-Length [10:30:11]Host: 172.17.63.131:8080 [10:30:11]Content-Length: 862 [10:30:11]Content-Type: application/json [10:30:11] [10:30:11]POST finish read [10:30:11]Found Content-Length = 862 [10:30:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:11]execute_script... [10:30:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:11]POST & json_proto [10:30:11]process_json_proto [10:30:11]json parsed OK: [10:30:11]protocol is kg_v1.0 [10:30:11]action value=close_receipt [10:30:11]process_action close_receipt [10:30:11]cmd_close_receipt [10:30:11]MH_GetDate [10:30:11]Write to MH i2c: F0 00 00 0A 2D 26 [10:30:11]Write i2c OK [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: F0 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: F0 09 00 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: F0 09 00 0A 2D 00 B7 67 1F 67 22 05 6E 64 CC [10:30:11]GetLastDocTimeStamp 1730111378 [10:30:11]current date 1730111415 [10:30:11]FM_GetShiftState [10:30:11]SAM_PROTO_GetShiftState [10:30:11]wFMCommunicate request_size=4 [10:30:11]MH_SAM_APDU [10:30:11]CAPDU: 80 13 01 00 [10:30:11]Write to MH i2c: E2 08 00 0B 2D 80 13 01 00 00 00 00 00 B5 [10:30:11]Write i2c OK [10:30:11]MH_I2C_Read... [10:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:11]Read from MH i2c: E2 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 0E 00 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 0E 00 0B 2D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 05 [10:30:11]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:30:11]wFMCommunicate OK [10:30:11]SAM_PROTO_GetShiftState done [10:30:11]FM_GetShiftState done [10:30:11]opened in 1730075620 [10:30:11]opened+sec_in_day 1730162020 [10:30:11]quantity*price = 50041 [10:30:11]sum+1 = 50042 [10:30:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 57 28.10.2024 10:30 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192509 ФПД: 242968763700085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T103015&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192509&fm=242968763700085&tin=02508201610067®Number=0000000000091776&sum=50041 [10:30:12]StoreToDocumentArchive [10:30:12]shift 543 fd 192509 [10:30:12]save to /storage/0543/doc_00192509 [10:30:12]save last doc name /storage/0543/doc_00192509 to /storage/kkm_last_doc_name [10:30:12]save OK [10:30:12]Clear old archive folders... [10:30:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:12]tlvbuf is 01A390E0 [10:30:12]SAM_PROTO_ClearQueue [10:30:12]wFMCommunicate request_size=4 [10:30:12]MH_SAM_APDU [10:30:12]CAPDU: 80 09 00 00 [10:30:12]Write to MH i2c: E2 08 00 18 2D 80 09 00 00 00 00 00 00 B7 [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:12]Read from MH i2c: E2 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 03 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 03 00 18 2D 00 90 00 B9 [10:30:12]RAPDU: 90 00 [10:30:12]wFMCommunicate OK [10:30:12]SAM_PROTO_ClearQueue done [10:30:12]KKMCreateOFDPacket [10:30:12]OFDProtocolAddRootSTLVToBuf [10:30:12]FM_MakeSignedData [10:30:12]FM_MakeSignedData [10:30:12]SAM_PROTO_SignData [10:30:12]wFMCommunicate request_size=4 [10:30:12]MH_SAM_APDU [10:30:12]CAPDU: 80 0D 01 02 [10:30:12]Write to MH i2c: E2 08 00 19 2D 80 0D 01 02 00 00 00 00 BF [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:12]Read from MH i2c: E2 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 03 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 03 00 19 2D 00 90 00 BA [10:30:12]RAPDU: 90 00 [10:30:12]wFMCommunicate OK [10:30:12]wFMCommunicate request_size=255 [10:30:12]MH_SAM_APDU [10:30:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B7 67 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EF 02 00 35 04 06 00 DC [10:30:12]Write to MH i2c: E2 02 01 1A 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B7 67 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EF 02 00 35 04 06 00 DC 00 00 6D [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:12]Read from MH i2c: E2 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 03 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 03 00 1A 2D 00 90 00 BB [10:30:12]RAPDU: 90 00 [10:30:12]wFMCommunicate OK [10:30:12]wFMCommunicate request_size=10 [10:30:12]MH_SAM_APDU [10:30:12]CAPDU: 80 0D 02 02 05 FA 92 DA 13 75 [10:30:12]Write to MH i2c: E2 0D 00 1B 2D 80 0D 02 02 05 00 FA 92 DA 13 75 00 00 BA [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:12]Read from MH i2c: E2 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 03 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 03 00 1B 2D 00 90 00 BC [10:30:12]RAPDU: 90 00 [10:30:12]wFMCommunicate OK [10:30:12]wFMCommunicate request_size=4 [10:30:12]MH_SAM_APDU [10:30:12]CAPDU: 80 0D 03 02 [10:30:12]Write to MH i2c: E2 08 00 1C 2D 80 0D 03 02 00 00 00 00 C4 [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:12]Read from MH i2c: E2 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 0B 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 0B 00 1C 2D 00 96 55 01 63 7C 46 AE E6 90 00 6A [10:30:12]RAPDU: 96 55 01 63 7C 46 AE E6 90 00 [10:30:12]wFMCommunicate OK [10:30:12]SAM_PROTO_SignData done [10:30:12]FM_MakeSignedData done [10:30:12]CreateOFDProtocolMessage [10:30:12]wFMCommunicate request_size=4 [10:30:12]MH_SAM_APDU [10:30:12]CAPDU: 80 11 00 00 [10:30:12]Write to MH i2c: E2 08 00 1D 2D 80 11 00 00 00 00 00 00 C4 [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:12]Read from MH i2c: E2 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 17 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: E2 17 00 1D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 17 [10:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:30:12]wFMCommunicate OK [10:30:12]CreateOFDProtocolMessage done [10:30:12]OFDSenderStorePacket 192509 [10:30:12]StoreOFDPacket docnum=192509 [10:30:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 5E 07 01 E2 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B7 67 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EF 02 00 35 04 06 00 DC FA 92 DA 13 75 96 55 01 63 7C 46 AE E6 [10:30:12]CheckFolder [10:30:12]dirname=/storage/ofd_packets [10:30:12]CheckFolder done [10:30:12]ProducePacketName [10:30:12]name=ofd_packets/00192509 [10:30:12]NVStorageSaveData ofd_packets/00192509 [10:30:12]File name is /storage/ofd_packets/00192509 [10:30:12]Write 301 bytes [10:30:12]NVStorageSaveData done [10:30:12]OFDSenderStorePacket done [10:30:12]KKMCreateOFDPacket done [10:30:12]NVStorageSaveData kkm_last_timestamp [10:30:12]File name is /storage/kkm_last_timestamp [10:30:12]Write 4 bytes [10:30:12]NVStorageSaveData done [10:30:12]ExternCall_PrintAddStr [10:30:12]wPrintStart [10:30:12]Write to MH i2c: 01 00 00 1E 2D 4B [10:30:12]Write i2c OK [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: 01 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: 01 07 00 [10:30:12]MH_I2C_Read... [10:30:12]Read from MH i2c: 01 07 00 1E 2D 00 00 00 00 00 FF 0F 60 [10:30:12]RasterBufferAndPrint [10:30:12]line Счет N : (1)31824 [10:30:12]line ИНН: 02508201610067 [10:30:12]line Контрольно-Кассовый Чек [10:30:12]line ПРОДАЖА [10:30:12]line ТРК (МРК, ГНК) : 12 [10:30:12]line Товар: 2710124130 [10:30:12]line Аи-92-К-5 [10:30:12]line 7.480 * 66.90 [10:30:12]line = 500.41 [10:30:12]line НДС 12% НСП 1% [10:30:12]line > о реализуемом товаре [10:30:12]line ИТОГО: 500.41 [10:30:12]line НСП 1% : 4.43 [10:30:12]line НДС 12% : 53.14 [10:30:12]line Наличными: 0.00 [10:30:12]line Безнал.: 500.41 [10:30:12]line Место: АЗС № 170 "Партнер Нефть" [10:30:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:30:12]line СНО: Общий режим [10:30:12]line Чек 57 28.10.2024 10:30 [10:30:12]line Смена: 543 ФФД: 1.0 [10:30:12]line ЗНМ: 0300000110 [10:30:12]line РНМ: 0000000000091776 [10:30:12]line Версия ККМ: 001 [10:30:12]line Платежная система: Кыргызкоммерцбанк [10:30:12]line ФМ: 0000000000871754 [10:30:12]line ФД: 192509 [10:30:12]line ФПД: 242968763700085 [10:30:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T103015&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192509&fm=242968763700085&tin=02508201610067®Number=0000000000091776&sum=50041 [10:30:13]OFD Sender: Processing packet 192509 [packets to send 75, broken 74] [10:30:13]ProducePacketName [10:30:13]name=ofd_packets/00192509 [10:30:13]OFD Sender: To server: pG, [10:30:13]CommunicateWithHost lk.salyk.kg:30040 [10:30:13]ConnectInit lk.salyk.kg [10:30:13]written 0, free lines is 4095 [10:30:13]Connected sock=10 [10:30:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 5E 07 01 E2 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B7 67 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EF 02 00 35 04 06 00 DC FA 92 DA 13 75 96 55 01 63 7C 46 AE E6 [10:30:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 09 CD 47 00 86 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EF 02 00 F4 03 04 00 7C 0C 1F 67 B6 04 01 00 00 0B B1 31 63 E9 E5 E9 5A [10:30:13]CommunicateWithHost err = 0 [10:30:13]CheckOFDResponse [10:30:13]1017 (14) - 77093643461234 [10:30:13]1041 (16) - 0000000000871754 [10:30:13]1040 (4) - 192509 [10:30:13]1012 (4) - 28.10.2024 04:01 [10:30:13]1206 (1) - 0 [10:30:13]OFD Sender: Remove packet 192509 [10:30:13]ProducePacketName [10:30:13]name=ofd_packets/00192509 [10:30:13]NVStorageDeleteData [10:30:13]Write to MH i2c: 01 00 00 48 2D 75 [10:30:13]Write i2c OK [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: 01 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: 01 07 00 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: 01 07 00 48 2D 00 00 00 00 00 B6 0C 3E [10:30:13]RasterBufferAndPrint [10:30:13]line [10:30:13]line [10:30:13]line [10:30:13]line [10:30:13]line [10:30:13]written 0, free lines is 3259 [10:30:13]MH_Cut [10:30:13]Write to MH i2c: D1 01 00 4F 2D 01 4E [10:30:13]Write i2c OK [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: D1 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: D1 01 00 [10:30:13]MH_I2C_Read... [10:30:13]Read from MH i2c: D1 01 00 4F 2D 00 4D [10:30:13]Write to MH i2c: 01 00 00 50 2D 7D [10:30:13]Write i2c OK [10:30:13]MH_I2C_Read... [10:30:14]OFD Sender: No OFD packet to send [10:30:14]*** Cut start [10:30:14]*** Partial cut [10:30:14]*** CUTSNS_PIN = 1 [10:30:14]*** CUTSNS_PIN = 0 [10:30:14]*** Brake cut motor [10:30:15]Read from MH i2c: 01 [10:30:15]MH_I2C_Read... [10:30:15]*** Stop cut motor [10:30:15]*** Cut end [10:30:15]Read from MH i2c: 01 07 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: 01 07 00 50 2D 00 00 00 00 00 FF 0F 92 [10:30:15]process_action close_receipt done [10:30:15]requested_data is exist [10:30:15]produce_requested_data [10:30:15]requested_item fm.sn is exist - process it [10:30:15]wFMCommunicate request_size=4 [10:30:15]MH_SAM_APDU [10:30:15]CAPDU: 80 11 00 00 [10:30:15]Write to MH i2c: E2 08 00 51 2D 80 11 00 00 00 00 00 00 F8 [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:15]Read from MH i2c: E2 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 17 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 17 00 51 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4B [10:30:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:30:15]wFMCommunicate OK [10:30:15]requested_item fd.num is exist - process it [10:30:15]SAM_PROTO_GetFieldsCounters [10:30:15]wFMCommunicate request_size=4 [10:30:15]MH_SAM_APDU [10:30:15]CAPDU: 80 13 00 00 [10:30:15]Write to MH i2c: E2 08 00 52 2D 80 13 00 00 00 00 00 00 FB [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:15]Read from MH i2c: E2 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 62 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 62 00 52 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FD EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [10:30:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FD EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:15]wFMCommunicate OK [10:30:15]SAM_PROTO_GetFieldsCounters done [10:30:15]requested_item shift.num is exist - process it [10:30:15]requested_item shift.opened is exist - process it [10:30:15]req_shift_opened [10:30:15]FM_GetShiftState [10:30:15]SAM_PROTO_GetShiftState [10:30:15]wFMCommunicate request_size=4 [10:30:15]MH_SAM_APDU [10:30:15]CAPDU: 80 13 01 00 [10:30:15]Write to MH i2c: E2 08 00 53 2D 80 13 01 00 00 00 00 00 FD [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:15]Read from MH i2c: E2 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 0E 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 0E 00 53 2D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 4D [10:30:15]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:30:15]wFMCommunicate OK [10:30:15]SAM_PROTO_GetShiftState done [10:30:15]FM_GetShiftState done [10:30:15]req_shift_opened done [10:30:15]requested_item shift.open_date is exist - process it [10:30:15]req_shift_open_date [10:30:15]req_shift_open_date done [10:30:15]produce_requested_data done [10:30:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192509,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:30:15]process_action_free close_receipt [10:30:15]json_value_free [10:30:15]json_value_free done [10:30:15]process_json_proto returns [10:30:15]Send response to host [10:30:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192509,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:30:15]free response buf [10:30:15]execute_script done [10:30:15]execute_script returns [10:30:15]free content buf [10:30:15]Sock 9.Close socket [10:30:15]Sock 9.Thread stoped [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:52]accept exits with 7 [10:32:52]New connection [10:32:52]New thread 3066707300 created [10:32:52]Thread 3066563940 joined [10:32:52]Waiting for new connection... [10:32:52] Sock 7.Parse request [10:32:52]Sock 7.Check first char [10:32:52]Sock 7.First char is OK [10:32:52]request: POST /json_proto HTTP/1.0 [10:32:52]Method: POST [10:32:52]URL: /json_proto [10:32:52]Method is POST - this is cgi request [10:32:52]url: /json_proto [10:32:52]query_string will be loaded in cgi processing [10:32:52]execute_cgi json_proto POST (null) [10:32:52]execute_cgi path=json_proto method=POST [10:32:52]POST find Content-Length [10:32:52]Host: 172.17.63.131:8080 [10:32:52]Content-Length: 681 [10:32:52]Content-Type: application/json [10:32:52] [10:32:52]POST finish read [10:32:52]Found Content-Length = 681 [10:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:52]execute_script... [10:32: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)31825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:52]POST & json_proto [10:32:52]process_json_proto [10:32:52]json parsed OK: [10:32:52]protocol is kg_v1.0 [10:32:52]action value=close_receipt [10:32:52]process_action close_receipt [10:32:52]cmd_close_receipt [10:32:52]MH_GetDate [10:32:52]Write to MH i2c: F0 00 00 54 2D 70 [10:32:52]Write i2c OK [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: F0 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: F0 09 00 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: F0 09 00 54 2D 00 59 68 1F 67 22 05 6E 64 B9 [10:32:52]GetLastDocTimeStamp 1730111415 [10:32:52]current date 1730111577 [10:32:52]FM_GetShiftState [10:32:52]SAM_PROTO_GetShiftState [10:32:52]wFMCommunicate request_size=4 [10:32:52]MH_SAM_APDU [10:32:52]CAPDU: 80 13 01 00 [10:32:52]Write to MH i2c: E2 08 00 55 2D 80 13 01 00 00 00 00 00 FF [10:32:52]Write i2c OK [10:32:52]MH_I2C_Read... [10:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:52]Read from MH i2c: E2 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 0E 00 [10:32:52]MH_I2C_Read... [10:32:52]Read from MH i2c: E2 0E 00 55 2D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 4F [10:32:52]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:32:52]wFMCommunicate OK [10:32:52]SAM_PROTO_GetShiftState done [10:32:52]FM_GetShiftState done [10:32:52]opened in 1730075620 [10:32:52]opened+sec_in_day 1730162020 [10:32:52]quantity*price = 100015 [10:32:52]sum+1 = 100017 [10:32:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 58 28.10.2024 10:32 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192510 ФПД: 28251577805974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T103257&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192510&fm=28251577805974&tin=02508201610067®Number=0000000000091776&sum=100000 [10:32:53]StoreToDocumentArchive [10:32:53]shift 543 fd 192510 [10:32:53]save to /storage/0543/doc_00192510 [10:32:53]save last doc name /storage/0543/doc_00192510 to /storage/kkm_last_doc_name [10:32:53]save OK [10:32:53]Clear old archive folders... [10:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:53]tlvbuf is 019C38E0 [10:32:53]SAM_PROTO_ClearQueue [10:32:53]wFMCommunicate request_size=4 [10:32:53]MH_SAM_APDU [10:32:53]CAPDU: 80 09 00 00 [10:32:53]Write to MH i2c: E2 08 00 62 2D 80 09 00 00 00 00 00 00 01 [10:32:53]Write i2c OK [10:32:53]MH_I2C_Read... [10:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:53]Read from MH i2c: E2 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 03 00 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 03 00 62 2D 00 90 00 03 [10:32:53]RAPDU: 90 00 [10:32:53]wFMCommunicate OK [10:32:53]SAM_PROTO_ClearQueue done [10:32:53]KKMCreateOFDPacket [10:32:53]OFDProtocolAddRootSTLVToBuf [10:32:53]FM_MakeSignedData [10:32:53]FM_MakeSignedData [10:32:53]SAM_PROTO_SignData [10:32:53]wFMCommunicate request_size=4 [10:32:53]MH_SAM_APDU [10:32:53]CAPDU: 80 0D 01 02 [10:32:53]Write to MH i2c: E2 08 00 63 2D 80 0D 01 02 00 00 00 00 09 [10:32:53]Write i2c OK [10:32:53]MH_I2C_Read... [10:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:53]Read from MH i2c: E2 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 03 00 [10:32:53]MH_I2C_Read... [10:32:53]Read from MH i2c: E2 03 00 63 2D 00 90 00 04 [10:32:53]RAPDU: 90 00 [10:32:53]wFMCommunicate OK [10:32:53]wFMCommunicate request_size=255 [10:32:53]MH_SAM_APDU [10:32:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 59 68 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EF 02 00 35 04 06 00 19 [10:32:53]Write to MH i2c: E2 02 01 64 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 59 68 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EF 02 00 35 04 06 00 19 00 00 41 [10:32:53]Write i2c OK [10:32:53]MH_I2C_Read... [10:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:54]Read from MH i2c: E2 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: E2 03 00 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: E2 03 00 64 2D 00 90 00 05 [10:32:54]RAPDU: 90 00 [10:32:54]wFMCommunicate OK [10:32:54]wFMCommunicate request_size=10 [10:32:54]MH_SAM_APDU [10:32:54]CAPDU: 80 0D 02 02 05 B1 D5 42 6C 96 [10:32:54]Write to MH i2c: E2 0D 00 65 2D 80 0D 02 02 05 00 B1 D5 42 6C 96 00 00 E0 [10:32:54]Write i2c OK [10:32:54]MH_I2C_Read... [10:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:54]Read from MH i2c: E2 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: E2 03 00 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: E2 03 00 65 2D 00 90 00 06 [10:32:54]RAPDU: 90 00 [10:32:54]wFMCommunicate OK [10:32:54]wFMCommunicate request_size=4 [10:32:54]MH_SAM_APDU [10:32:54]CAPDU: 80 0D 03 02 [10:32:54]Write to MH i2c: E2 08 00 66 2D 80 0D 03 02 00 00 00 00 0E [10:32:54]Write i2c OK [10:32:54]MH_I2C_Read... [10:32:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:54]OFD Sender: No OFD packet to send [10:32:54]Read from MH i2c: E2 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: E2 0B 00 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: E2 0B 00 66 2D 00 60 CD 65 12 00 ED 02 D0 90 00 72 [10:32:54]RAPDU: 60 CD 65 12 00 ED 02 D0 90 00 [10:32:54]wFMCommunicate OK [10:32:54]SAM_PROTO_SignData done [10:32:54]FM_MakeSignedData done [10:32:54]CreateOFDProtocolMessage [10:32:54]wFMCommunicate request_size=4 [10:32:54]MH_SAM_APDU [10:32:54]CAPDU: 80 11 00 00 [10:32:54]Write to MH i2c: E2 08 00 67 2D 80 11 00 00 00 00 00 00 0E [10:32:54]Write i2c OK [10:32:54]MH_I2C_Read... [10:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:54]Read from MH i2c: E2 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: E2 17 00 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: E2 17 00 67 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [10:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:32:54]wFMCommunicate OK [10:32:54]CreateOFDProtocolMessage done [10:32:54]OFDSenderStorePacket 192510 [10:32:54]StoreOFDPacket docnum=192510 [10:32:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 58 A3 07 01 F1 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 59 68 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EF 02 00 35 04 06 00 19 B1 D5 42 6C 96 60 CD 65 12 00 ED 02 D0 [10:32:54]CheckFolder [10:32:54]dirname=/storage/ofd_packets [10:32:54]CheckFolder done [10:32:54]ProducePacketName [10:32:54]name=ofd_packets/00192510 [10:32:54]NVStorageSaveData ofd_packets/00192510 [10:32:54]File name is /storage/ofd_packets/00192510 [10:32:54]Write 301 bytes [10:32:54]NVStorageSaveData done [10:32:54]OFDSenderStorePacket done [10:32:54]KKMCreateOFDPacket done [10:32:54]NVStorageSaveData kkm_last_timestamp [10:32:54]File name is /storage/kkm_last_timestamp [10:32:54]Write 4 bytes [10:32:54]NVStorageSaveData done [10:32:54]ExternCall_PrintAddStr [10:32:54]wPrintStart [10:32:54]Write to MH i2c: 01 00 00 68 2D 95 [10:32:54]Write i2c OK [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: 01 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: 01 07 00 [10:32:54]MH_I2C_Read... [10:32:54]Read from MH i2c: 01 07 00 68 2D 00 00 00 00 00 FF 0F AA [10:32:54]RasterBufferAndPrint [10:32:54]line Счет N : (1)31825 [10:32:54]line ИНН: 02508201610067 [10:32:54]line Контрольно-Кассовый Чек [10:32:54]line ПРОДАЖА [10:32:54]line ТРК (МРК, ГНК) : 21 [10:32:54]line Товар: 2710124130 [10:32:54]line Аи-92-К-5 [10:32:54]line 14.950 * 66.90 [10:32:54]line = 1000.16 [10:32:54]line НДС 12% НСП 1% [10:32:54]line > о реализуемом товаре [10:32:54]line ОКРУГЛЕНИЕ: -0.16 [10:32:54]line ИТОГО: 1000.00 [10:32:54]line Внесено: 1000.00 [10:32:54]line СДАЧА: 0.00 [10:32:54]line НСП 1% : 8.85 [10:32:54]line НДС 12% : 106.21 [10:32:54]line Наличными: 1000.00 [10:32:54]line Безнал.: 0.00 [10:32:54]line Место: АЗС № 170 "Партнер Нефть" [10:32:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:32:54]line СНО: Общий режим [10:32:54]line Чек 58 28.10.2024 10:32 [10:32:54]line Смена: 543 ФФД: 1.0 [10:32:54]line ЗНМ: 0300000110 [10:32:54]line РНМ: 0000000000091776 [10:32:54]line Версия ККМ: 001 [10:32:54]line ФМ: 0000000000871754 [10:32:54]line ФД: 192510 [10:32:54]line ФПД: 28251577805974 [10:32:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T103257&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192510&fm=28251577805974&tin=02508201610067®Number=0000000000091776&sum=100000 [10:32:54]OFD Sender: Processing packet 192510 [packets to send 75, broken 74] [10:32:54]ProducePacketName [10:32:54]name=ofd_packets/00192510 [10:32:54]OFD Sender: To server: pG, [10:32:54]CommunicateWithHost lk.salyk.kg:30040 [10:32:54]ConnectInit lk.salyk.kg [10:32:54]written 0, free lines is 4095 [10:32:54]Connected sock=10 [10:32:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 58 A3 07 01 F1 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 59 68 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EF 02 00 35 04 06 00 19 B1 D5 42 6C 96 60 CD 65 12 00 ED 02 D0 [10:32:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A6 58 47 00 4E F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EF 02 00 F4 03 04 00 1D 0D 1F 67 B6 04 01 00 00 9F 13 DE B5 E1 5F D6 72 [10:32:54]CommunicateWithHost err = 0 [10:32:54]CheckOFDResponse [10:32:54]1017 (14) - 77093643461234 [10:32:54]1041 (16) - 0000000000871754 [10:32:54]1040 (4) - 192510 [10:32:54]1012 (4) - 28.10.2024 04:03 [10:32:54]1206 (1) - 0 [10:32:54]OFD Sender: Remove packet 192510 [10:32:54]ProducePacketName [10:32:54]name=ofd_packets/00192510 [10:32:54]NVStorageDeleteData [10:32:55]Write to MH i2c: 01 00 00 93 2D C0 [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: 01 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: 01 07 00 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: 01 07 00 93 2D 00 00 00 00 00 A4 0C 77 [10:32:55]RasterBufferAndPrint [10:32:55]line [10:32:55]line [10:32:55]line [10:32:55]line [10:32:55]line [10:32:55]written 0, free lines is 3243 [10:32:55]MH_Cut [10:32:55]Write to MH i2c: D1 01 00 9A 2D 01 99 [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: D1 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: D1 01 00 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: D1 01 00 9A 2D 00 98 [10:32:55]Write to MH i2c: 01 00 00 9B 2D C8 [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:55]OFD Sender: No OFD packet to send [10:32:55]*** Cut start [10:32:55]*** Partial cut [10:32:55]*** CUTSNS_PIN = 1 [10:32:56]*** CUTSNS_PIN = 0 [10:32:56]*** Brake cut motor [10:32:56]Read from MH i2c: 01 [10:32:56]MH_I2C_Read... [10:32:56]*** Stop cut motor [10:32:56]*** Cut end [10:32:56]Read from MH i2c: 01 07 00 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: 01 07 00 9B 2D 00 00 00 00 00 FF 0F DD [10:32:56]process_action close_receipt done [10:32:56]requested_data is exist [10:32:56]produce_requested_data [10:32:56]requested_item fm.sn is exist - process it [10:32:56]wFMCommunicate request_size=4 [10:32:56]MH_SAM_APDU [10:32:56]CAPDU: 80 11 00 00 [10:32:56]Write to MH i2c: E2 08 00 9C 2D 80 11 00 00 00 00 00 00 43 [10:32:56]Write i2c OK [10:32:56]MH_I2C_Read... [10:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:56]Read from MH i2c: E2 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 17 00 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 17 00 9C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [10:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:32:56]wFMCommunicate OK [10:32:56]requested_item fd.num is exist - process it [10:32:56]SAM_PROTO_GetFieldsCounters [10:32:56]wFMCommunicate request_size=4 [10:32:56]MH_SAM_APDU [10:32:56]CAPDU: 80 13 00 00 [10:32:56]Write to MH i2c: E2 08 00 9D 2D 80 13 00 00 00 00 00 00 46 [10:32:56]Write i2c OK [10:32:56]MH_I2C_Read... [10:32:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:56]Read from MH i2c: E2 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 62 00 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 62 00 9D 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FE EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [10:32:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FE EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:56]wFMCommunicate OK [10:32:56]SAM_PROTO_GetFieldsCounters done [10:32:56]requested_item shift.num is exist - process it [10:32:56]requested_item shift.opened is exist - process it [10:32:56]req_shift_opened [10:32:56]FM_GetShiftState [10:32:56]SAM_PROTO_GetShiftState [10:32:56]wFMCommunicate request_size=4 [10:32:56]MH_SAM_APDU [10:32:56]CAPDU: 80 13 01 00 [10:32:56]Write to MH i2c: E2 08 00 9E 2D 80 13 01 00 00 00 00 00 48 [10:32:56]Write i2c OK [10:32:56]MH_I2C_Read... [10:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:56]Read from MH i2c: E2 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 0E 00 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 0E 00 9E 2D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 98 [10:32:56]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:32:56]wFMCommunicate OK [10:32:56]SAM_PROTO_GetShiftState done [10:32:56]FM_GetShiftState done [10:32:56]req_shift_opened done [10:32:56]requested_item shift.open_date is exist - process it [10:32:56]req_shift_open_date [10:32:56]req_shift_open_date done [10:32:56]produce_requested_data done [10:32:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192510,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:32:56]process_action_free close_receipt [10:32:56]json_value_free [10:32:56]json_value_free done [10:32:56]process_json_proto returns [10:32:56]Send response to host [10:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192510,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:32:56]free response buf [10:32:56]execute_script done [10:32:56]execute_script returns [10:32:56]free content buf [10:32:56]Sock 7.Close socket [10:32:56]Sock 7.Thread stoped [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:33]recv_with_timeout no data received [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:43]accept exits with 9 [10:34:43]New connection [10:34:43]New thread 3066563940 created [10:34:43]Thread 3066707300 joined [10:34:43]Waiting for new connection... [10:34:43] Sock 9.Parse request [10:34:43]Sock 9.Check first char [10:34:43]Sock 9.First char is OK [10:34:43]request: POST /json_proto HTTP/1.0 [10:34:43]Method: POST [10:34:43]URL: /json_proto [10:34:43]Method is POST - this is cgi request [10:34:43]url: /json_proto [10:34:43]query_string will be loaded in cgi processing [10:34:43]execute_cgi json_proto POST (null) [10:34:43]execute_cgi path=json_proto method=POST [10:34:43]POST find Content-Length [10:34:43]Host: 172.17.63.131:8080 [10:34:43]Content-Length: 862 [10:34:43]Content-Type: application/json [10:34:43] [10:34:43]POST finish read [10:34:43]Found Content-Length = 862 [10:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:43]execute_script... [10:34:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:43]POST & json_proto [10:34:43]process_json_proto [10:34:43]json parsed OK: [10:34:43]protocol is kg_v1.0 [10:34:43]action value=close_receipt [10:34:43]process_action close_receipt [10:34:43]cmd_close_receipt [10:34:43]MH_GetDate [10:34:43]Write to MH i2c: F0 00 00 9F 2D BB [10:34:43]Write i2c OK [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: F0 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: F0 09 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: F0 09 00 9F 2D 00 C8 68 1F 67 22 05 6E 64 73 [10:34:43]GetLastDocTimeStamp 1730111577 [10:34:43]current date 1730111688 [10:34:43]FM_GetShiftState [10:34:43]SAM_PROTO_GetShiftState [10:34:43]wFMCommunicate request_size=4 [10:34:43]MH_SAM_APDU [10:34:43]CAPDU: 80 13 01 00 [10:34:43]Write to MH i2c: E2 08 00 A0 2D 80 13 01 00 00 00 00 00 4A [10:34:43]Write i2c OK [10:34:43]MH_I2C_Read... [10:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:43]Read from MH i2c: E2 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 0E 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: E2 0E 00 A0 2D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 9A [10:34:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:34:43]wFMCommunicate OK [10:34:43]SAM_PROTO_GetShiftState done [10:34:43]FM_GetShiftState done [10:34:43]opened in 1730075620 [10:34:43]opened+sec_in_day 1730162020 [10:34:43]quantity*price = 50041 [10:34:43]sum+1 = 50042 [10:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 59 28.10.2024 10:34 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192511 ФПД: 126316094305301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T103448&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192511&fm=126316094305301&tin=02508201610067®Number=0000000000091776&sum=50041 [10:34:44]StoreToDocumentArchive [10:34:44]shift 543 fd 192511 [10:34:44]save to /storage/0543/doc_00192511 [10:34:44]save last doc name /storage/0543/doc_00192511 to /storage/kkm_last_doc_name [10:34:44]save OK [10:34:44]Clear old archive folders... [10:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:44]tlvbuf is 019F42D0 [10:34:44]SAM_PROTO_ClearQueue [10:34:44]wFMCommunicate request_size=4 [10:34:44]MH_SAM_APDU [10:34:44]CAPDU: 80 09 00 00 [10:34:44]Write to MH i2c: E2 08 00 AD 2D 80 09 00 00 00 00 00 00 4C [10:34:44]Write i2c OK [10:34:44]MH_I2C_Read... [10:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:44]Read from MH i2c: E2 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: E2 03 00 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: E2 03 00 AD 2D 00 90 00 4E [10:34:44]RAPDU: 90 00 [10:34:44]wFMCommunicate OK [10:34:44]SAM_PROTO_ClearQueue done [10:34:44]KKMCreateOFDPacket [10:34:44]OFDProtocolAddRootSTLVToBuf [10:34:44]FM_MakeSignedData [10:34:44]FM_MakeSignedData [10:34:44]SAM_PROTO_SignData [10:34:44]wFMCommunicate request_size=4 [10:34:44]MH_SAM_APDU [10:34:44]CAPDU: 80 0D 01 02 [10:34:44]Write to MH i2c: E2 08 00 AE 2D 80 0D 01 02 00 00 00 00 54 [10:34:44]Write i2c OK [10:34:44]MH_I2C_Read... [10:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:44]Read from MH i2c: E2 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: E2 03 00 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: E2 03 00 AE 2D 00 90 00 4F [10:34:44]RAPDU: 90 00 [10:34:44]wFMCommunicate OK [10:34:44]wFMCommunicate request_size=255 [10:34:44]MH_SAM_APDU [10:34:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C8 68 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EF 02 00 35 04 06 00 72 [10:34:44]Write to MH i2c: E2 02 01 AF 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C8 68 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EF 02 00 35 04 06 00 72 00 00 AE [10:34:44]Write i2c OK [10:34:44]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 03 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 03 00 AF 2D 00 90 00 50 [10:34:45]RAPDU: 90 00 [10:34:45]wFMCommunicate OK [10:34:45]wFMCommunicate request_size=10 [10:34:45]MH_SAM_APDU [10:34:45]CAPDU: 80 0D 02 02 05 E2 41 EE 34 15 [10:34:45]Write to MH i2c: E2 0D 00 B0 2D 80 0D 02 02 05 00 E2 41 EE 34 15 00 00 BB [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 03 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 03 00 B0 2D 00 90 00 51 [10:34:45]RAPDU: 90 00 [10:34:45]wFMCommunicate OK [10:34:45]wFMCommunicate request_size=4 [10:34:45]MH_SAM_APDU [10:34:45]CAPDU: 80 0D 03 02 [10:34:45]Write to MH i2c: E2 08 00 B1 2D 80 0D 03 02 00 00 00 00 59 [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 0B 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 0B 00 B1 2D 00 27 F1 0E 1B C8 41 04 37 90 00 DF [10:34:45]RAPDU: 27 F1 0E 1B C8 41 04 37 90 00 [10:34:45]wFMCommunicate OK [10:34:45]SAM_PROTO_SignData done [10:34:45]FM_MakeSignedData done [10:34:45]CreateOFDProtocolMessage [10:34:45]wFMCommunicate request_size=4 [10:34:45]MH_SAM_APDU [10:34:45]CAPDU: 80 11 00 00 [10:34:45]Write to MH i2c: E2 08 00 B2 2D 80 11 00 00 00 00 00 00 59 [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 17 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 17 00 B2 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [10:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:34:45]wFMCommunicate OK [10:34:45]CreateOFDProtocolMessage done [10:34:45]OFDSenderStorePacket 192511 [10:34:45]StoreOFDPacket docnum=192511 [10:34:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 DA 07 01 9B AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C8 68 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EF 02 00 35 04 06 00 72 E2 41 EE 34 15 27 F1 0E 1B C8 41 04 37 [10:34:45]CheckFolder [10:34:45]dirname=/storage/ofd_packets [10:34:45]CheckFolder done [10:34:45]ProducePacketName [10:34:45]name=ofd_packets/00192511 [10:34:45]NVStorageSaveData ofd_packets/00192511 [10:34:45]File name is /storage/ofd_packets/00192511 [10:34:45]Write 301 bytes [10:34:45]NVStorageSaveData done [10:34:45]OFDSenderStorePacket done [10:34:45]KKMCreateOFDPacket done [10:34:45]NVStorageSaveData kkm_last_timestamp [10:34:45]File name is /storage/kkm_last_timestamp [10:34:45]Write 4 bytes [10:34:45]NVStorageSaveData done [10:34:45]ExternCall_PrintAddStr [10:34:45]wPrintStart [10:34:45]Write to MH i2c: 01 00 00 B3 2D E0 [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: 01 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: 01 07 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: 01 07 00 B3 2D 00 00 00 00 00 FF 0F F5 [10:34:45]RasterBufferAndPrint [10:34:45]line Счет N : (1)31826 [10:34:45]line ИНН: 02508201610067 [10:34:45]line Контрольно-Кассовый Чек [10:34:45]line ПРОДАЖА [10:34:45]line ТРК (МРК, ГНК) : 12 [10:34:45]line Товар: 2710124130 [10:34:45]line Аи-92-К-5 [10:34:45]line 7.480 * 66.90 [10:34:45]line = 500.41 [10:34:45]line НДС 12% НСП 1% [10:34:45]line > о реализуемом товаре [10:34:45]line ИТОГО: 500.41 [10:34:45]line НСП 1% : 4.43 [10:34:45]line НДС 12% : 53.14 [10:34:45]line Наличными: 0.00 [10:34:45]line Безнал.: 500.41 [10:34:45]line Место: АЗС № 170 "Партнер Нефть" [10:34:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:34:45]line СНО: Общий режим [10:34:45]line Чек 59 28.10.2024 10:34 [10:34:45]line Смена: 543 ФФД: 1.0 [10:34:45]line ЗНМ: 0300000110 [10:34:45]line РНМ: 0000000000091776 [10:34:45]line Версия ККМ: 001 [10:34:45]line Платежная система: Кыргызкоммерцбанк [10:34:45]line ФМ: 0000000000871754 [10:34:45]line ФД: 192511 [10:34:45]line ФПД: 126316094305301 [10:34:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T103448&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192511&fm=126316094305301&tin=02508201610067®Number=0000000000091776&sum=50041 [10:34:45]written 0, free lines is 4095 [10:34:45]OFD Sender: Processing packet 192511 [packets to send 75, broken 74] [10:34:45]ProducePacketName [10:34:45]name=ofd_packets/00192511 [10:34:45]OFD Sender: To server: pG, [10:34:45]CommunicateWithHost lk.salyk.kg:30040 [10:34:45]ConnectInit lk.salyk.kg [10:34:45]Connected sock=10 [10:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 DA 07 01 9B AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C8 68 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EF 02 00 35 04 06 00 72 E2 41 EE 34 15 27 F1 0E 1B C8 41 04 37 [10:34:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C2 05 47 00 80 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EF 02 00 F4 03 04 00 8C 0D 1F 67 B6 04 01 00 00 62 9E F2 70 8A 99 30 51 [10:34:46]CommunicateWithHost err = 0 [10:34:46]CheckOFDResponse [10:34:46]1017 (14) - 77093643461234 [10:34:46]1041 (16) - 0000000000871754 [10:34:46]1040 (4) - 192511 [10:34:46]1012 (4) - 28.10.2024 04:05 [10:34:46]1206 (1) - 0 [10:34:46]OFD Sender: Remove packet 192511 [10:34:46]ProducePacketName [10:34:46]name=ofd_packets/00192511 [10:34:46]NVStorageDeleteData [10:34:46]Write to MH i2c: 01 00 00 DD 2D 0A [10:34:46]Write i2c OK [10:34:46]MH_I2C_Read... [10:34:46]Read from MH i2c: 01 [10:34:46]MH_I2C_Read... [10:34:46]Read from MH i2c: 01 07 00 [10:34:46]MH_I2C_Read... [10:34:46]Read from MH i2c: 01 07 00 DD 2D 00 00 00 00 00 B4 0C D1 [10:34:46]RasterBufferAndPrint [10:34:46]line [10:34:46]line [10:34:46]line [10:34:46]line [10:34:46]line [10:34:46]written 0, free lines is 3257 [10:34:46]MH_Cut [10:34:46]Write to MH i2c: D1 01 00 E4 2D 01 E3 [10:34:46]Write i2c OK [10:34:46]MH_I2C_Read... [10:34:46]Read from MH i2c: D1 [10:34:46]MH_I2C_Read... [10:34:46]Read from MH i2c: D1 01 00 [10:34:46]MH_I2C_Read... [10:34:46]Read from MH i2c: D1 01 00 E4 2D 00 E2 [10:34:46]Write to MH i2c: 01 00 00 E5 2D 12 [10:34:46]Write i2c OK [10:34:46]MH_I2C_Read... [10:34:46]OFD Sender: No OFD packet to send [10:34:47]*** Cut start [10:34:47]*** Partial cut [10:34:47]*** CUTSNS_PIN = 1 [10:34:47]*** CUTSNS_PIN = 0 [10:34:47]*** Brake cut motor [10:34:47]Read from MH i2c: 01 [10:34:47]MH_I2C_Read... [10:34:47]*** Stop cut motor [10:34:47]*** Cut end [10:34:47]Read from MH i2c: 01 07 00 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: 01 07 00 E5 2D 00 00 00 00 00 FF 0F 27 [10:34:47]process_action close_receipt done [10:34:47]requested_data is exist [10:34:47]produce_requested_data [10:34:47]requested_item fm.sn is exist - process it [10:34:47]wFMCommunicate request_size=4 [10:34:47]MH_SAM_APDU [10:34:47]CAPDU: 80 11 00 00 [10:34:47]Write to MH i2c: E2 08 00 E6 2D 80 11 00 00 00 00 00 00 8D [10:34:47]Write i2c OK [10:34:47]MH_I2C_Read... [10:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:47]Read from MH i2c: E2 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 17 00 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 17 00 E6 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E0 [10:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:34:47]wFMCommunicate OK [10:34:47]requested_item fd.num is exist - process it [10:34:47]SAM_PROTO_GetFieldsCounters [10:34:47]wFMCommunicate request_size=4 [10:34:47]MH_SAM_APDU [10:34:47]CAPDU: 80 13 00 00 [10:34:47]Write to MH i2c: E2 08 00 E7 2D 80 13 00 00 00 00 00 00 90 [10:34:47]Write i2c OK [10:34:47]MH_I2C_Read... [10:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:47]Read from MH i2c: E2 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 62 00 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 62 00 E7 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FF EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [10:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FF EF 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:47]wFMCommunicate OK [10:34:47]SAM_PROTO_GetFieldsCounters done [10:34:47]requested_item shift.num is exist - process it [10:34:47]requested_item shift.opened is exist - process it [10:34:47]req_shift_opened [10:34:47]FM_GetShiftState [10:34:47]SAM_PROTO_GetShiftState [10:34:47]wFMCommunicate request_size=4 [10:34:47]MH_SAM_APDU [10:34:47]CAPDU: 80 13 01 00 [10:34:47]Write to MH i2c: E2 08 00 E8 2D 80 13 01 00 00 00 00 00 92 [10:34:47]Write i2c OK [10:34:47]MH_I2C_Read... [10:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:47]Read from MH i2c: E2 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 0E 00 [10:34:47]MH_I2C_Read... [10:34:47]Read from MH i2c: E2 0E 00 E8 2D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E2 [10:34:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:34:47]wFMCommunicate OK [10:34:47]SAM_PROTO_GetShiftState done [10:34:47]FM_GetShiftState done [10:34:47]req_shift_opened done [10:34:47]requested_item shift.open_date is exist - process it [10:34:47]req_shift_open_date [10:34:47]req_shift_open_date done [10:34:47]produce_requested_data done [10:34:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192511,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:34:47]process_action_free close_receipt [10:34:47]json_value_free [10:34:47]json_value_free done [10:34:47]process_json_proto returns [10:34:47]Send response to host [10:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192511,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:34:47]free response buf [10:34:47]execute_script done [10:34:47]execute_script returns [10:34:47]free content buf [10:34:47]Sock 9.Close socket [10:34:47]Sock 9.Thread stoped [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:47]accept exits with 7 [10:38:47]New connection [10:38:47]New thread 3066707300 created [10:38:47]Thread 3066563940 joined [10:38:47]Waiting for new connection... [10:38:47] Sock 7.Parse request [10:38:47]Sock 7.Check first char [10:38:47]Sock 7.First char is OK [10:38:47]request: POST /json_proto HTTP/1.0 [10:38:47]Method: POST [10:38:47]URL: /json_proto [10:38:47]Method is POST - this is cgi request [10:38:47]url: /json_proto [10:38:47]query_string will be loaded in cgi processing [10:38:47]execute_cgi json_proto POST (null) [10:38:47]execute_cgi path=json_proto method=POST [10:38:47]POST find Content-Length [10:38:47]Host: 172.17.63.131:8080 [10:38:47]Content-Length: 676 [10:38:47]Content-Type: application/json [10:38:47] [10:38:47]POST finish read [10:38:47]Found Content-Length = 676 [10:38:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.330, "sum" : 490.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:47]execute_script... [10:38: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)31827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.330, "sum" : 490.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:47]POST & json_proto [10:38:47]process_json_proto [10:38:47]json parsed OK: [10:38:47]protocol is kg_v1.0 [10:38:47]action value=close_receipt [10:38:47]process_action close_receipt [10:38:47]cmd_close_receipt [10:38:47]MH_GetDate [10:38:47]Write to MH i2c: F0 00 00 E9 2D 05 [10:38:47]Write i2c OK [10:38:47]MH_I2C_Read... [10:38:47]Read from MH i2c: F0 [10:38:47]MH_I2C_Read... [10:38:47]Read from MH i2c: F0 09 00 [10:38:47]MH_I2C_Read... [10:38:47]Read from MH i2c: F0 09 00 E9 2D 00 BB 69 1F 67 22 05 6E 64 B1 [10:38:47]GetLastDocTimeStamp 1730111688 [10:38:47]current date 1730111931 [10:38:47]FM_GetShiftState [10:38:47]SAM_PROTO_GetShiftState [10:38:47]wFMCommunicate request_size=4 [10:38:47]MH_SAM_APDU [10:38:47]CAPDU: 80 13 01 00 [10:38:47]Write to MH i2c: E2 08 00 EA 2D 80 13 01 00 00 00 00 00 94 [10:38:47]Write i2c OK [10:38:47]MH_I2C_Read... [10:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:47]Read from MH i2c: E2 [10:38:47]MH_I2C_Read... [10:38:47]Read from MH i2c: E2 0E 00 [10:38:47]MH_I2C_Read... [10:38:47]Read from MH i2c: E2 0E 00 EA 2D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E4 [10:38:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:38:47]wFMCommunicate OK [10:38:47]SAM_PROTO_GetShiftState done [10:38:47]FM_GetShiftState done [10:38:47]opened in 1730075620 [10:38:47]opened+sec_in_day 1730162020 [10:38:47]quantity*price = 49037 [10:38:47]sum+1 = 49039 [10:38:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 490.00 Внесено: 490.00 СДАЧА: 0.00 НСП 1% : 4.34 НДС 12% : 52.08 Наличными: 490.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 60 28.10.2024 10:38 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192512 ФПД: 16893159414027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T103851&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192512&fm=16893159414027&tin=02508201610067®Number=0000000000091776&sum=49000 [10:38:48]StoreToDocumentArchive [10:38:48]shift 543 fd 192512 [10:38:48]save to /storage/0543/doc_00192512 [10:38:48]save last doc name /storage/0543/doc_00192512 to /storage/kkm_last_doc_name [10:38:48]save OK [10:38:48]Clear old archive folders... [10:38:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:48]tlvbuf is B6F1CB10 [10:38:48]SAM_PROTO_ClearQueue [10:38:48]wFMCommunicate request_size=4 [10:38:48]MH_SAM_APDU [10:38:48]CAPDU: 80 09 00 00 [10:38:48]Write to MH i2c: E2 08 00 F7 2D 80 09 00 00 00 00 00 00 96 [10:38:48]Write i2c OK [10:38:48]MH_I2C_Read... [10:38:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:48]Read from MH i2c: E2 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 03 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 03 00 F7 2D 00 90 00 98 [10:38:48]RAPDU: 90 00 [10:38:48]wFMCommunicate OK [10:38:48]SAM_PROTO_ClearQueue done [10:38:48]KKMCreateOFDPacket [10:38:48]OFDProtocolAddRootSTLVToBuf [10:38:48]FM_MakeSignedData [10:38:48]FM_MakeSignedData [10:38:48]SAM_PROTO_SignData [10:38:48]wFMCommunicate request_size=4 [10:38:48]MH_SAM_APDU [10:38:48]CAPDU: 80 0D 01 02 [10:38:48]Write to MH i2c: E2 08 00 F8 2D 80 0D 01 02 00 00 00 00 9E [10:38:48]Write i2c OK [10:38:48]MH_I2C_Read... [10:38:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:48]Read from MH i2c: E2 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 03 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 03 00 F8 2D 00 90 00 99 [10:38:48]RAPDU: 90 00 [10:38:48]wFMCommunicate OK [10:38:48]wFMCommunicate request_size=255 [10:38:48]MH_SAM_APDU [10:38:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 BB 69 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 F0 02 00 35 04 06 00 0F [10:38:48]Write to MH i2c: E2 02 01 F9 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 BB 69 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 F0 02 00 35 04 06 00 0F 00 00 69 [10:38:48]Write i2c OK [10:38:48]MH_I2C_Read... [10:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:48]Read from MH i2c: E2 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 03 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 03 00 F9 2D 00 90 00 9A [10:38:48]RAPDU: 90 00 [10:38:48]wFMCommunicate OK [10:38:48]wFMCommunicate request_size=10 [10:38:48]MH_SAM_APDU [10:38:48]CAPDU: 80 0D 02 02 05 5D 3E C4 19 0B [10:38:48]Write to MH i2c: E2 0D 00 FA 2D 80 0D 02 02 05 00 5D 3E C4 19 0B 00 00 2E [10:38:48]Write i2c OK [10:38:48]MH_I2C_Read... [10:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:48]Read from MH i2c: E2 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 03 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 03 00 FA 2D 00 90 00 9B [10:38:48]RAPDU: 90 00 [10:38:48]wFMCommunicate OK [10:38:48]wFMCommunicate request_size=4 [10:38:48]MH_SAM_APDU [10:38:48]CAPDU: 80 0D 03 02 [10:38:48]Write to MH i2c: E2 08 00 FB 2D 80 0D 03 02 00 00 00 00 A3 [10:38:48]Write i2c OK [10:38:48]MH_I2C_Read... [10:38:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:48]Read from MH i2c: E2 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 0B 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 0B 00 FB 2D 00 BA FB CB 27 C5 30 6D B4 90 00 61 [10:38:48]RAPDU: BA FB CB 27 C5 30 6D B4 90 00 [10:38:48]wFMCommunicate OK [10:38:48]SAM_PROTO_SignData done [10:38:48]FM_MakeSignedData done [10:38:48]CreateOFDProtocolMessage [10:38:48]wFMCommunicate request_size=4 [10:38:48]MH_SAM_APDU [10:38:48]CAPDU: 80 11 00 00 [10:38:48]Write to MH i2c: E2 08 00 FC 2D 80 11 00 00 00 00 00 00 A3 [10:38:48]Write i2c OK [10:38:48]MH_I2C_Read... [10:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:48]Read from MH i2c: E2 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 17 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 17 00 FC 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F6 [10:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:38:48]wFMCommunicate OK [10:38:48]CreateOFDProtocolMessage done [10:38:48]OFDSenderStorePacket 192512 [10:38:48]StoreOFDPacket docnum=192512 [10:38:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AD DD 07 01 3A 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 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 BB 69 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 F0 02 00 35 04 06 00 0F 5D 3E C4 19 0B BA FB CB 27 C5 30 6D B4 [10:38:48]CheckFolder [10:38:48]dirname=/storage/ofd_packets [10:38:48]CheckFolder done [10:38:48]ProducePacketName [10:38:48]name=ofd_packets/00192512 [10:38:48]NVStorageSaveData ofd_packets/00192512 [10:38:48]File name is /storage/ofd_packets/00192512 [10:38:48]Write 301 bytes [10:38:48]NVStorageSaveData done [10:38:48]OFDSenderStorePacket done [10:38:48]KKMCreateOFDPacket done [10:38:48]NVStorageSaveData kkm_last_timestamp [10:38:48]File name is /storage/kkm_last_timestamp [10:38:48]Write 4 bytes [10:38:48]NVStorageSaveData done [10:38:48]ExternCall_PrintAddStr [10:38:48]wPrintStart [10:38:48]Write to MH i2c: 01 00 00 FD 2D 2A [10:38:48]Write i2c OK [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: 01 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: 01 07 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: 01 07 00 FD 2D 00 00 00 00 00 FF 0F 3F [10:38:48]RasterBufferAndPrint [10:38:48]line Счет N : (1)31827 [10:38:48]line ИНН: 02508201610067 [10:38:48]line Контрольно-Кассовый Чек [10:38:48]line ПРОДАЖА [10:38:48]line ТРК (МРК, ГНК) : 12 [10:38:48]line Товар: 2710124130 [10:38:48]line Аи-92-К-5 [10:38:48]line 7.330 * 66.90 [10:38:48]line = 490.38 [10:38:48]line НДС 12% НСП 1% [10:38:48]line > о реализуемом товаре [10:38:48]line ОКРУГЛЕНИЕ: -0.38 [10:38:48]line ИТОГО: 490.00 [10:38:48]line Внесено: 490.00 [10:38:48]line СДАЧА: 0.00 [10:38:48]line НСП 1% : 4.34 [10:38:48]line НДС 12% : 52.08 [10:38:48]line Наличными: 490.00 [10:38:48]line Безнал.: 0.00 [10:38:48]line Место: АЗС № 170 "Партнер Нефть" [10:38:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:38:48]line СНО: Общий режим [10:38:48]line Чек 60 28.10.2024 10:38 [10:38:48]line Смена: 543 ФФД: 1.0 [10:38:48]line ЗНМ: 0300000110 [10:38:48]line РНМ: 0000000000091776 [10:38:48]line Версия ККМ: 001 [10:38:48]line ФМ: 0000000000871754 [10:38:48]line ФД: 192512 [10:38:48]line ФПД: 16893159414027 [10:38:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T103851&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192512&fm=16893159414027&tin=02508201610067®Number=0000000000091776&sum=49000 [10:38:49]OFD Sender: Processing packet 192512 [packets to send 75, broken 74] [10:38:49]ProducePacketName [10:38:49]name=ofd_packets/00192512 [10:38:49]OFD Sender: To server: pG, [10:38:49]CommunicateWithHost lk.salyk.kg:30040 [10:38:49]ConnectInit lk.salyk.kg [10:38:49]written 0, free lines is 4095 [10:38:49]Connected sock=10 [10:38:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AD DD 07 01 3A 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 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 BB 69 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 F0 02 00 35 04 06 00 0F 5D 3E C4 19 0B BA FB CB 27 C5 30 6D B4 [10:38:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C0 E6 47 00 4B 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 F0 02 00 F4 03 04 00 80 0E 1F 67 B6 04 01 00 00 85 77 9D EF 79 9B D7 A2 [10:38:49]CommunicateWithHost err = 0 [10:38:49]CheckOFDResponse [10:38:49]1017 (14) - 77093643461234 [10:38:49]1041 (16) - 0000000000871754 [10:38:49]1040 (4) - 192512 [10:38:49]1012 (4) - 28.10.2024 04:09 [10:38:49]1206 (1) - 0 [10:38:49]OFD Sender: Remove packet 192512 [10:38:49]ProducePacketName [10:38:49]name=ofd_packets/00192512 [10:38:49]NVStorageDeleteData [10:38:49]Write to MH i2c: 01 00 00 28 2E 56 [10:38:49]Write i2c OK [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: 01 [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: 01 07 00 [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: 01 07 00 28 2E 00 00 00 00 00 A7 0C 10 [10:38:49]RasterBufferAndPrint [10:38:49]line [10:38:49]line [10:38:49]line [10:38:49]line [10:38:49]line [10:38:49]written 0, free lines is 3245 [10:38:49]MH_Cut [10:38:49]Write to MH i2c: D1 01 00 2F 2E 01 2F [10:38:49]Write i2c OK [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: D1 [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: D1 01 00 [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: D1 01 00 2F 2E 00 2E [10:38:49]Write to MH i2c: 01 00 00 30 2E 5E [10:38:49]Write i2c OK [10:38:49]MH_I2C_Read... [10:38:49]OFD Sender: No OFD packet to send [10:38:50]*** Cut start [10:38:50]*** Partial cut [10:38:50]*** CUTSNS_PIN = 1 [10:38:50]*** CUTSNS_PIN = 0 [10:38:50]*** Brake cut motor [10:38:51]Read from MH i2c: 01 [10:38:51]MH_I2C_Read... [10:38:51]*** Stop cut motor [10:38:51]*** Cut end [10:38:51]Read from MH i2c: 01 07 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: 01 07 00 30 2E 00 00 00 00 00 FF 0F 73 [10:38:51]process_action close_receipt done [10:38:51]requested_data is exist [10:38:51]produce_requested_data [10:38:51]requested_item fm.sn is exist - process it [10:38:51]wFMCommunicate request_size=4 [10:38:51]MH_SAM_APDU [10:38:51]CAPDU: 80 11 00 00 [10:38:51]Write to MH i2c: E2 08 00 31 2E 80 11 00 00 00 00 00 00 D9 [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:51]Read from MH i2c: E2 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 17 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 17 00 31 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [10:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:38:51]wFMCommunicate OK [10:38:51]requested_item fd.num is exist - process it [10:38:51]SAM_PROTO_GetFieldsCounters [10:38:51]wFMCommunicate request_size=4 [10:38:51]MH_SAM_APDU [10:38:51]CAPDU: 80 13 00 00 [10:38:51]Write to MH i2c: E2 08 00 32 2E 80 13 00 00 00 00 00 00 DC [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:51]Read from MH i2c: E2 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 62 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 62 00 32 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 00 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [10:38:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 00 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:51]wFMCommunicate OK [10:38:51]SAM_PROTO_GetFieldsCounters done [10:38:51]requested_item shift.num is exist - process it [10:38:51]requested_item shift.opened is exist - process it [10:38:51]req_shift_opened [10:38:51]FM_GetShiftState [10:38:51]SAM_PROTO_GetShiftState [10:38:51]wFMCommunicate request_size=4 [10:38:51]MH_SAM_APDU [10:38:51]CAPDU: 80 13 01 00 [10:38:51]Write to MH i2c: E2 08 00 33 2E 80 13 01 00 00 00 00 00 DE [10:38:51]Write i2c OK [10:38:51]MH_I2C_Read... [10:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:51]Read from MH i2c: E2 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 0E 00 [10:38:51]MH_I2C_Read... [10:38:51]Read from MH i2c: E2 0E 00 33 2E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2E [10:38:51]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:38:51]wFMCommunicate OK [10:38:51]SAM_PROTO_GetShiftState done [10:38:51]FM_GetShiftState done [10:38:51]req_shift_opened done [10:38:51]requested_item shift.open_date is exist - process it [10:38:51]req_shift_open_date [10:38:51]req_shift_open_date done [10:38:51]produce_requested_data done [10:38:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192512,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:38:51]process_action_free close_receipt [10:38:51]json_value_free [10:38:51]json_value_free done [10:38:51]process_json_proto returns [10:38:51]Send response to host [10:38:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192512,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:38:51]free response buf [10:38:51]execute_script done [10:38:51]execute_script returns [10:38:51]free content buf [10:38:51]Sock 7.Close socket [10:38:51]Sock 7.Thread stoped [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:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:02]accept exits with 9 [10:45:02]New connection [10:45:02]New thread 3066563940 created [10:45:02]Thread 3066707300 joined [10:45:02]Waiting for new connection... [10:45:02] Sock 9.Parse request [10:45:02]Sock 9.Check first char [10:45:02]Sock 9.First char is OK [10:45:02]request: POST /json_proto HTTP/1.0 [10:45:02]Method: POST [10:45:02]URL: /json_proto [10:45:02]Method is POST - this is cgi request [10:45:02]url: /json_proto [10:45:02]query_string will be loaded in cgi processing [10:45:02]execute_cgi json_proto POST (null) [10:45:02]execute_cgi path=json_proto method=POST [10:45:02]POST find Content-Length [10:45:02]Host: 172.17.63.131:8080 [10:45:02]Content-Length: 676 [10:45:02]Content-Type: application/json [10:45:02] [10:45:02]POST finish read [10:45:02]Found Content-Length = 676 [10:45:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:02]execute_script... [10:45:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:02]POST & json_proto [10:45:02]process_json_proto [10:45:02]json parsed OK: [10:45:02]protocol is kg_v1.0 [10:45:02]action value=close_receipt [10:45:02]process_action close_receipt [10:45:02]cmd_close_receipt [10:45:02]MH_GetDate [10:45:02]Write to MH i2c: F0 00 00 34 2E 51 [10:45:02]Write i2c OK [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: F0 [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: F0 09 00 [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: F0 09 00 34 2E 00 33 6B 1F 67 22 05 6E 64 77 [10:45:02]GetLastDocTimeStamp 1730111931 [10:45:02]current date 1730112307 [10:45:02]FM_GetShiftState [10:45:02]SAM_PROTO_GetShiftState [10:45:02]wFMCommunicate request_size=4 [10:45:02]MH_SAM_APDU [10:45:02]CAPDU: 80 13 01 00 [10:45:02]Write to MH i2c: E2 08 00 35 2E 80 13 01 00 00 00 00 00 E0 [10:45:02]Write i2c OK [10:45:02]MH_I2C_Read... [10:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:02]Read from MH i2c: E2 [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: E2 0E 00 [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: E2 0E 00 35 2E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 30 [10:45:02]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:45:02]wFMCommunicate OK [10:45:02]SAM_PROTO_GetShiftState done [10:45:02]FM_GetShiftState done [10:45:02]opened in 1730075620 [10:45:02]opened+sec_in_day 1730162020 [10:45:02]quantity*price = 34052 [10:45:02]sum+1 = 34053 [10:45:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 61 28.10.2024 10:45 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192513 ФПД: 100053691376384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T104507&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192513&fm=100053691376384&tin=02508201610067®Number=0000000000091776&sum=34000 [10:45:03]StoreToDocumentArchive [10:45:03]shift 543 fd 192513 [10:45:03]save to /storage/0543/doc_00192513 [10:45:03]save last doc name /storage/0543/doc_00192513 to /storage/kkm_last_doc_name [10:45:03]save OK [10:45:03]Clear old archive folders... [10:45:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:03]tlvbuf is 01A50620 [10:45:03]SAM_PROTO_ClearQueue [10:45:03]wFMCommunicate request_size=4 [10:45:03]MH_SAM_APDU [10:45:03]CAPDU: 80 09 00 00 [10:45:03]Write to MH i2c: E2 08 00 42 2E 80 09 00 00 00 00 00 00 E2 [10:45:03]Write i2c OK [10:45:03]MH_I2C_Read... [10:45:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:03]Read from MH i2c: E2 [10:45:03]MH_I2C_Read... [10:45:03]Read from MH i2c: E2 03 00 [10:45:03]MH_I2C_Read... [10:45:03]Read from MH i2c: E2 03 00 42 2E 00 90 00 E4 [10:45:03]RAPDU: 90 00 [10:45:03]wFMCommunicate OK [10:45:03]SAM_PROTO_ClearQueue done [10:45:03]KKMCreateOFDPacket [10:45:03]OFDProtocolAddRootSTLVToBuf [10:45:03]FM_MakeSignedData [10:45:03]FM_MakeSignedData [10:45:03]SAM_PROTO_SignData [10:45:03]wFMCommunicate request_size=4 [10:45:03]MH_SAM_APDU [10:45:03]CAPDU: 80 0D 01 02 [10:45:03]Write to MH i2c: E2 08 00 43 2E 80 0D 01 02 00 00 00 00 EA [10:45:03]Write i2c OK [10:45:03]MH_I2C_Read... [10:45:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:03]Read from MH i2c: E2 [10:45:03]MH_I2C_Read... [10:45:03]Read from MH i2c: E2 03 00 [10:45:03]MH_I2C_Read... [10:45:03]Read from MH i2c: E2 03 00 43 2E 00 90 00 E5 [10:45:03]RAPDU: 90 00 [10:45:03]wFMCommunicate OK [10:45:03]wFMCommunicate request_size=255 [10:45:03]MH_SAM_APDU [10:45:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 33 6B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 F0 02 00 35 04 06 00 5A [10:45:04]Write to MH i2c: E2 02 01 44 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 33 6B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 F0 02 00 35 04 06 00 5A 00 00 86 [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:04]Read from MH i2c: E2 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 03 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 03 00 44 2E 00 90 00 E6 [10:45:04]RAPDU: 90 00 [10:45:04]wFMCommunicate OK [10:45:04]wFMCommunicate request_size=10 [10:45:04]MH_SAM_APDU [10:45:04]CAPDU: 80 0D 02 02 05 FF 90 BB A3 00 [10:45:04]Write to MH i2c: E2 0D 00 45 2E 80 0D 02 02 05 00 FF 90 BB A3 00 00 00 E4 [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:04]Read from MH i2c: E2 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 03 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 03 00 45 2E 00 90 00 E7 [10:45:04]RAPDU: 90 00 [10:45:04]wFMCommunicate OK [10:45:04]wFMCommunicate request_size=4 [10:45:04]MH_SAM_APDU [10:45:04]CAPDU: 80 0D 03 02 [10:45:04]Write to MH i2c: E2 08 00 46 2E 80 0D 03 02 00 00 00 00 EF [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:04]Read from MH i2c: E2 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 0B 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 0B 00 46 2E 00 95 48 FA 9C 2D 05 AB 97 90 00 D7 [10:45:04]RAPDU: 95 48 FA 9C 2D 05 AB 97 90 00 [10:45:04]wFMCommunicate OK [10:45:04]SAM_PROTO_SignData done [10:45:04]FM_MakeSignedData done [10:45:04]CreateOFDProtocolMessage [10:45:04]wFMCommunicate request_size=4 [10:45:04]MH_SAM_APDU [10:45:04]CAPDU: 80 11 00 00 [10:45:04]Write to MH i2c: E2 08 00 47 2E 80 11 00 00 00 00 00 00 EF [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:04]Read from MH i2c: E2 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 17 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 17 00 47 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 42 [10:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:45:04]wFMCommunicate OK [10:45:04]CreateOFDProtocolMessage done [10:45:04]OFDSenderStorePacket 192513 [10:45:04]StoreOFDPacket docnum=192513 [10:45:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 54 D1 07 01 80 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 33 6B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 F0 02 00 35 04 06 00 5A FF 90 BB A3 00 95 48 FA 9C 2D 05 AB 97 [10:45:04]CheckFolder [10:45:04]dirname=/storage/ofd_packets [10:45:04]CheckFolder done [10:45:04]ProducePacketName [10:45:04]name=ofd_packets/00192513 [10:45:04]NVStorageSaveData ofd_packets/00192513 [10:45:04]File name is /storage/ofd_packets/00192513 [10:45:04]Write 301 bytes [10:45:04]NVStorageSaveData done [10:45:04]OFDSenderStorePacket done [10:45:04]KKMCreateOFDPacket done [10:45:04]NVStorageSaveData kkm_last_timestamp [10:45:04]File name is /storage/kkm_last_timestamp [10:45:04]Write 4 bytes [10:45:04]NVStorageSaveData done [10:45:04]OFD Sender: Processing packet 192513 [packets to send 75, broken 74] [10:45:04]ProducePacketName [10:45:04]name=ofd_packets/00192513 [10:45:04]OFD Sender: To server: pG, [10:45:04]CommunicateWithHost lk.salyk.kg:30040 [10:45:04]ConnectInit lk.salyk.kg [10:45:04]ExternCall_PrintAddStr [10:45:04]wPrintStart [10:45:04]Write to MH i2c: 01 00 00 48 2E 76 [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: 01 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: 01 07 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: 01 07 00 48 2E 00 00 00 00 00 FF 0F 8B [10:45:04]RasterBufferAndPrint [10:45:04]line Счет N : (1)31828 [10:45:04]line ИНН: 02508201610067 [10:45:04]line Контрольно-Кассовый Чек [10:45:04]line ПРОДАЖА [10:45:04]line ТРК (МРК, ГНК) : 12 [10:45:04]line Товар: 2710124130 [10:45:04]line Аи-92-К-5 [10:45:04]line 5.090 * 66.90 [10:45:04]line = 340.52 [10:45:04]line НДС 12% НСП 1% [10:45:04]line > о реализуемом товаре [10:45:04]line ОКРУГЛЕНИЕ: -0.52 [10:45:04]line ИТОГО: 340.00 [10:45:04]line Внесено: 340.00 [10:45:04]line СДАЧА: 0.00 [10:45:04]line НСП 1% : 3.01 [10:45:04]line НДС 12% : 36.16 [10:45:04]line Наличными: 340.00 [10:45:04]line Безнал.: 0.00 [10:45:04]line Место: АЗС № 170 "Партнер Нефть" [10:45:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:45:04]line СНО: Общий режим [10:45:04]line Чек 61 28.10.2024 10:45 [10:45:04]line Смена: 543 ФФД: 1.0 [10:45:04]line ЗНМ: 0300000110 [10:45:04]line РНМ: 0000000000091776 [10:45:04]line Версия ККМ: 001 [10:45:04]line ФМ: 0000000000871754 [10:45:04]line ФД: 192513 [10:45:04]line ФПД: 100053691376384 [10:45:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T104507&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192513&fm=100053691376384&tin=02508201610067®Number=0000000000091776&sum=34000 [10:45:04]Connected sock=11 [10:45:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 54 D1 07 01 80 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 33 6B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 F0 02 00 35 04 06 00 5A FF 90 BB A3 00 95 48 FA 9C 2D 05 AB 97 [10:45:04]written 0, free lines is 4095 [10:45:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3F 10 47 00 0A BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 F0 02 00 F4 03 04 00 F7 0F 1F 67 B6 04 01 00 00 DB E4 6E 2A 91 08 8E 54 [10:45:04]CommunicateWithHost err = 0 [10:45:04]CheckOFDResponse [10:45:04]1017 (14) - 77093643461234 [10:45:04]1041 (16) - 0000000000871754 [10:45:04]1040 (4) - 192513 [10:45:04]1012 (4) - 28.10.2024 04:15 [10:45:04]1206 (1) - 0 [10:45:04]OFD Sender: Remove packet 192513 [10:45:04]ProducePacketName [10:45:04]name=ofd_packets/00192513 [10:45:04]NVStorageDeleteData [10:45:05]Write to MH i2c: 01 00 00 73 2E A1 [10:45:05]Write i2c OK [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: 01 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: 01 07 00 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: 01 07 00 73 2E 00 00 00 00 00 9D 0C 51 [10:45:05]RasterBufferAndPrint [10:45:05]line [10:45:05]line [10:45:05]line [10:45:05]line [10:45:05]line [10:45:05]written 0, free lines is 3235 [10:45:05]MH_Cut [10:45:05]Write to MH i2c: D1 01 00 7A 2E 01 7A [10:45:05]Write i2c OK [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: D1 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: D1 01 00 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: D1 01 00 7A 2E 00 79 [10:45:05]Write to MH i2c: 01 00 00 7B 2E A9 [10:45:05]Write i2c OK [10:45:05]MH_I2C_Read... [10:45:05]OFD Sender: No OFD packet to send [10:45:06]*** Cut start [10:45:06]*** Partial cut [10:45:06]*** CUTSNS_PIN = 1 [10:45:06]*** CUTSNS_PIN = 0 [10:45:06]*** Brake cut motor [10:45:06]Read from MH i2c: 01 [10:45:06]MH_I2C_Read... [10:45:06]*** Stop cut motor [10:45:06]*** Cut end [10:45:06]Read from MH i2c: 01 07 00 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: 01 07 00 7B 2E 00 00 00 00 00 FF 0F BE [10:45:06]process_action close_receipt done [10:45:06]requested_data is exist [10:45:06]produce_requested_data [10:45:06]requested_item fm.sn is exist - process it [10:45:06]wFMCommunicate request_size=4 [10:45:06]MH_SAM_APDU [10:45:06]CAPDU: 80 11 00 00 [10:45:06]Write to MH i2c: E2 08 00 7C 2E 80 11 00 00 00 00 00 00 24 [10:45:06]Write i2c OK [10:45:06]MH_I2C_Read... [10:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:06]Read from MH i2c: E2 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 17 00 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 17 00 7C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 77 [10:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:45:06]wFMCommunicate OK [10:45:06]requested_item fd.num is exist - process it [10:45:06]SAM_PROTO_GetFieldsCounters [10:45:06]wFMCommunicate request_size=4 [10:45:06]MH_SAM_APDU [10:45:06]CAPDU: 80 13 00 00 [10:45:06]Write to MH i2c: E2 08 00 7D 2E 80 13 00 00 00 00 00 00 27 [10:45:06]Write i2c OK [10:45:06]MH_I2C_Read... [10:45:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:06]Read from MH i2c: E2 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 62 00 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 62 00 7D 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 01 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [10:45:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 01 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:06]wFMCommunicate OK [10:45:06]SAM_PROTO_GetFieldsCounters done [10:45:06]requested_item shift.num is exist - process it [10:45:06]requested_item shift.opened is exist - process it [10:45:06]req_shift_opened [10:45:06]FM_GetShiftState [10:45:06]SAM_PROTO_GetShiftState [10:45:06]wFMCommunicate request_size=4 [10:45:06]MH_SAM_APDU [10:45:06]CAPDU: 80 13 01 00 [10:45:06]Write to MH i2c: E2 08 00 7E 2E 80 13 01 00 00 00 00 00 29 [10:45:06]Write i2c OK [10:45:06]MH_I2C_Read... [10:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:07]Read from MH i2c: E2 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: E2 0E 00 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: E2 0E 00 7E 2E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 79 [10:45:07]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:45:07]wFMCommunicate OK [10:45:07]SAM_PROTO_GetShiftState done [10:45:07]FM_GetShiftState done [10:45:07]req_shift_opened done [10:45:07]requested_item shift.open_date is exist - process it [10:45:07]req_shift_open_date [10:45:07]req_shift_open_date done [10:45:07]produce_requested_data done [10:45:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192513,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:45:07]process_action_free close_receipt [10:45:07]json_value_free [10:45:07]json_value_free done [10:45:07]process_json_proto returns [10:45:07]Send response to host [10:45:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192513,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:45:07]free response buf [10:45:07]execute_script done [10:45:07]execute_script returns [10:45:07]free content buf [10:45:07]Sock 9.Close socket [10:45:07]Sock 9.Thread stoped [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:06]accept exits with 7 [10:48:06]New connection [10:48:06]New thread 3066707300 created [10:48:06]Thread 3066563940 joined [10:48:06]Waiting for new connection... [10:48:06] Sock 7.Parse request [10:48:06]Sock 7.Check first char [10:48:06]Sock 7.First char is OK [10:48:06]request: POST /json_proto HTTP/1.0 [10:48:06]Method: POST [10:48:06]URL: /json_proto [10:48:06]Method is POST - this is cgi request [10:48:06]url: /json_proto [10:48:06]query_string will be loaded in cgi processing [10:48:06]execute_cgi json_proto POST (null) [10:48:06]execute_cgi path=json_proto method=POST [10:48:06]POST find Content-Length [10:48:06]Host: 172.17.63.131:8080 [10:48:06]Content-Length: 676 [10:48:06]Content-Type: application/json [10:48:06] [10:48:06]POST finish read [10:48:06]Found Content-Length = 676 [10:48:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:06]execute_script... [10:48:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:06]POST & json_proto [10:48:06]process_json_proto [10:48:06]json parsed OK: [10:48:06]protocol is kg_v1.0 [10:48:06]action value=close_receipt [10:48:06]process_action close_receipt [10:48:06]cmd_close_receipt [10:48:06]MH_GetDate [10:48:06]Write to MH i2c: F0 00 00 7F 2E 9C [10:48:06]Write i2c OK [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: F0 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: F0 09 00 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: F0 09 00 7F 2E 00 EB 6B 1F 67 22 05 6E 64 7A [10:48:06]GetLastDocTimeStamp 1730112307 [10:48:06]current date 1730112491 [10:48:06]FM_GetShiftState [10:48:06]SAM_PROTO_GetShiftState [10:48:06]wFMCommunicate request_size=4 [10:48:06]MH_SAM_APDU [10:48:06]CAPDU: 80 13 01 00 [10:48:06]Write to MH i2c: E2 08 00 80 2E 80 13 01 00 00 00 00 00 2B [10:48:06]Write i2c OK [10:48:06]MH_I2C_Read... [10:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:06]Read from MH i2c: E2 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: E2 0E 00 [10:48:06]MH_I2C_Read... [10:48:06]Read from MH i2c: E2 0E 00 80 2E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 7B [10:48:06]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:48:06]wFMCommunicate OK [10:48:06]SAM_PROTO_GetShiftState done [10:48:06]FM_GetShiftState done [10:48:06]opened in 1730075620 [10:48:06]opened+sec_in_day 1730162020 [10:48:06]quantity*price = 45023 [10:48:06]sum+1 = 45025 [10:48:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 62 28.10.2024 10:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192514 ФПД: 118080984528410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T104811&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192514&fm=118080984528410&tin=02508201610067®Number=0000000000091776&sum=45000 [10:48:08]StoreToDocumentArchive [10:48:08]shift 543 fd 192514 [10:48:08]save to /storage/0543/doc_00192514 [10:48:08]save last doc name /storage/0543/doc_00192514 to /storage/kkm_last_doc_name [10:48:08]save OK [10:48:08]Clear old archive folders... [10:48:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:08]tlvbuf is 0197B960 [10:48:08]SAM_PROTO_ClearQueue [10:48:08]wFMCommunicate request_size=4 [10:48:08]MH_SAM_APDU [10:48:08]CAPDU: 80 09 00 00 [10:48:08]Write to MH i2c: E2 08 00 8D 2E 80 09 00 00 00 00 00 00 2D [10:48:08]Write i2c OK [10:48:08]MH_I2C_Read... [10:48:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:08]Read from MH i2c: E2 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: E2 03 00 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: E2 03 00 8D 2E 00 90 00 2F [10:48:08]RAPDU: 90 00 [10:48:08]wFMCommunicate OK [10:48:08]SAM_PROTO_ClearQueue done [10:48:08]KKMCreateOFDPacket [10:48:08]OFDProtocolAddRootSTLVToBuf [10:48:08]FM_MakeSignedData [10:48:08]FM_MakeSignedData [10:48:08]SAM_PROTO_SignData [10:48:08]wFMCommunicate request_size=4 [10:48:08]MH_SAM_APDU [10:48:08]CAPDU: 80 0D 01 02 [10:48:08]Write to MH i2c: E2 08 00 8E 2E 80 0D 01 02 00 00 00 00 35 [10:48:08]Write i2c OK [10:48:08]MH_I2C_Read... [10:48:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:08]Read from MH i2c: E2 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: E2 03 00 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: E2 03 00 8E 2E 00 90 00 30 [10:48:08]RAPDU: 90 00 [10:48:08]wFMCommunicate OK [10:48:08]wFMCommunicate request_size=255 [10:48:08]MH_SAM_APDU [10:48:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 EB 6B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 F0 02 00 35 04 06 00 6B [10:48:08]Write to MH i2c: E2 02 01 8F 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 EB 6B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 F0 02 00 35 04 06 00 6B 00 00 49 [10:48:08]Write i2c OK [10:48:08]MH_I2C_Read... [10:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:08]Read from MH i2c: E2 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: E2 03 00 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: E2 03 00 8F 2E 00 90 00 31 [10:48:08]RAPDU: 90 00 [10:48:08]wFMCommunicate OK [10:48:08]wFMCommunicate request_size=10 [10:48:08]MH_SAM_APDU [10:48:08]CAPDU: 80 0D 02 02 05 64 DF 23 36 1A [10:48:08]Write to MH i2c: E2 0D 00 90 2E 80 0D 02 02 05 00 64 DF 23 36 1A 00 00 F8 [10:48:08]Write i2c OK [10:48:08]MH_I2C_Read... [10:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:08]Read from MH i2c: E2 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: E2 03 00 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: E2 03 00 90 2E 00 90 00 32 [10:48:08]RAPDU: 90 00 [10:48:08]wFMCommunicate OK [10:48:08]wFMCommunicate request_size=4 [10:48:08]MH_SAM_APDU [10:48:08]CAPDU: 80 0D 03 02 [10:48:08]Write to MH i2c: E2 08 00 91 2E 80 0D 03 02 00 00 00 00 3A [10:48:08]Write i2c OK [10:48:08]MH_I2C_Read... [10:48:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:08]Read from MH i2c: E2 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: E2 0B 00 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: E2 0B 00 91 2E 00 01 6D 80 AD 1A B7 CD ED 90 00 61 [10:48:08]RAPDU: 01 6D 80 AD 1A B7 CD ED 90 00 [10:48:08]wFMCommunicate OK [10:48:08]SAM_PROTO_SignData done [10:48:08]FM_MakeSignedData done [10:48:08]CreateOFDProtocolMessage [10:48:08]wFMCommunicate request_size=4 [10:48:08]MH_SAM_APDU [10:48:08]CAPDU: 80 11 00 00 [10:48:08]Write to MH i2c: E2 08 00 92 2E 80 11 00 00 00 00 00 00 3A [10:48:08]Write i2c OK [10:48:08]MH_I2C_Read... [10:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:08]Read from MH i2c: E2 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: E2 17 00 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: E2 17 00 92 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8D [10:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:48:08]wFMCommunicate OK [10:48:08]CreateOFDProtocolMessage done [10:48:08]OFDSenderStorePacket 192514 [10:48:08]StoreOFDPacket docnum=192514 [10:48:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AE C9 07 01 BA 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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 EB 6B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 F0 02 00 35 04 06 00 6B 64 DF 23 36 1A 01 6D 80 AD 1A B7 CD ED [10:48:08]CheckFolder [10:48:08]dirname=/storage/ofd_packets [10:48:08]CheckFolder done [10:48:08]ProducePacketName [10:48:08]name=ofd_packets/00192514 [10:48:08]NVStorageSaveData ofd_packets/00192514 [10:48:08]File name is /storage/ofd_packets/00192514 [10:48:08]Write 301 bytes [10:48:08]NVStorageSaveData done [10:48:08]OFDSenderStorePacket done [10:48:08]KKMCreateOFDPacket done [10:48:08]NVStorageSaveData kkm_last_timestamp [10:48:08]File name is /storage/kkm_last_timestamp [10:48:08]Write 4 bytes [10:48:08]NVStorageSaveData done [10:48:08]ExternCall_PrintAddStr [10:48:08]wPrintStart [10:48:08]Write to MH i2c: 01 00 00 93 2E C1 [10:48:08]Write i2c OK [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: 01 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: 01 07 00 [10:48:08]MH_I2C_Read... [10:48:08]Read from MH i2c: 01 07 00 93 2E 00 00 00 00 00 FF 0F D6 [10:48:08]RasterBufferAndPrint [10:48:08]line Счет N : (1)31829 [10:48:08]line ИНН: 02508201610067 [10:48:08]line Контрольно-Кассовый Чек [10:48:08]line ПРОДАЖА [10:48:08]line ТРК (МРК, ГНК) : 21 [10:48:08]line Товар: 2710124130 [10:48:08]line Аи-92-К-5 [10:48:08]line 6.730 * 66.90 [10:48:08]line = 450.24 [10:48:08]line НДС 12% НСП 1% [10:48:08]line > о реализуемом товаре [10:48:08]line ОКРУГЛЕНИЕ: -0.24 [10:48:08]line ИТОГО: 450.00 [10:48:08]line Внесено: 450.00 [10:48:08]line СДАЧА: 0.00 [10:48:08]line НСП 1% : 3.98 [10:48:08]line НДС 12% : 47.81 [10:48:08]line Наличными: 450.00 [10:48:08]line Безнал.: 0.00 [10:48:08]line Место: АЗС № 170 "Партнер Нефть" [10:48:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:48:08]line СНО: Общий режим [10:48:08]line Чек 62 28.10.2024 10:48 [10:48:08]line Смена: 543 ФФД: 1.0 [10:48:08]line ЗНМ: 0300000110 [10:48:08]line РНМ: 0000000000091776 [10:48:08]line Версия ККМ: 001 [10:48:08]line ФМ: 0000000000871754 [10:48:08]line ФД: 192514 [10:48:08]line ФПД: 118080984528410 [10:48:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T104811&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192514&fm=118080984528410&tin=02508201610067®Number=0000000000091776&sum=45000 [10:48:08]OFD Sender: Processing packet 192514 [packets to send 75, broken 74] [10:48:08]ProducePacketName [10:48:08]name=ofd_packets/00192514 [10:48:08]OFD Sender: To server: pG, [10:48:08]CommunicateWithHost lk.salyk.kg:30040 [10:48:08]ConnectInit lk.salyk.kg [10:48:08]written 0, free lines is 4095 [10:48:09]Connected sock=10 [10:48:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AE C9 07 01 BA 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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 EB 6B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 F0 02 00 35 04 06 00 6B 64 DF 23 36 1A 01 6D 80 AD 1A B7 CD ED [10:48:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0F E3 47 00 3A BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 F0 02 00 F4 03 04 00 B0 10 1F 67 B6 04 01 00 00 89 63 46 B1 89 2B 34 30 [10:48:09]CommunicateWithHost err = 0 [10:48:09]CheckOFDResponse [10:48:09]1017 (14) - 77093643461234 [10:48:09]1041 (16) - 0000000000871754 [10:48:09]1040 (4) - 192514 [10:48:09]1012 (4) - 28.10.2024 04:18 [10:48:09]1206 (1) - 0 [10:48:09]OFD Sender: Remove packet 192514 [10:48:09]ProducePacketName [10:48:09]name=ofd_packets/00192514 [10:48:09]NVStorageDeleteData [10:48:09]Write to MH i2c: 01 00 00 BE 2E EC [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: 01 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: 01 07 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: 01 07 00 BE 2E 00 00 00 00 00 A7 0C A6 [10:48:09]RasterBufferAndPrint [10:48:09]line [10:48:09]line [10:48:09]line [10:48:09]line [10:48:09]line [10:48:09]written 0, free lines is 3242 [10:48:09]MH_Cut [10:48:09]Write to MH i2c: D1 01 00 C5 2E 01 C5 [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: D1 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: D1 01 00 [10:48:09]MH_I2C_Read... [10:48:09]Read from MH i2c: D1 01 00 C5 2E 00 C4 [10:48:09]Write to MH i2c: 01 00 00 C6 2E F4 [10:48:09]Write i2c OK [10:48:09]MH_I2C_Read... [10:48:09]OFD Sender: No OFD packet to send [10:48:10]*** Cut start [10:48:10]*** Partial cut [10:48:10]*** CUTSNS_PIN = 1 [10:48:10]*** CUTSNS_PIN = 0 [10:48:10]*** Brake cut motor [10:48:10]Read from MH i2c: 01 [10:48:10]MH_I2C_Read... [10:48:10]*** Stop cut motor [10:48:10]*** Cut end [10:48:10]Read from MH i2c: 01 07 00 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: 01 07 00 C6 2E 00 00 00 00 00 FF 0F 09 [10:48:10]process_action close_receipt done [10:48:10]requested_data is exist [10:48:10]produce_requested_data [10:48:10]requested_item fm.sn is exist - process it [10:48:10]wFMCommunicate request_size=4 [10:48:10]MH_SAM_APDU [10:48:10]CAPDU: 80 11 00 00 [10:48:10]Write to MH i2c: E2 08 00 C7 2E 80 11 00 00 00 00 00 00 6F [10:48:10]Write i2c OK [10:48:10]MH_I2C_Read... [10:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:10]Read from MH i2c: E2 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 17 00 [10:48:10]MH_I2C_Read... [10:48:10]Read from MH i2c: E2 17 00 C7 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C2 [10:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:48:10]wFMCommunicate OK [10:48:10]requested_item fd.num is exist - process it [10:48:10]SAM_PROTO_GetFieldsCounters [10:48:10]wFMCommunicate request_size=4 [10:48:10]MH_SAM_APDU [10:48:10]CAPDU: 80 13 00 00 [10:48:10]Write to MH i2c: E2 08 00 C8 2E 80 13 00 00 00 00 00 00 72 [10:48:10]Write i2c OK [10:48:10]MH_I2C_Read... [10:48:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:11]Read from MH i2c: E2 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: E2 62 00 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: E2 62 00 C8 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 02 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [10:48:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 02 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:11]wFMCommunicate OK [10:48:11]SAM_PROTO_GetFieldsCounters done [10:48:11]requested_item shift.num is exist - process it [10:48:11]requested_item shift.opened is exist - process it [10:48:11]req_shift_opened [10:48:11]FM_GetShiftState [10:48:11]SAM_PROTO_GetShiftState [10:48:11]wFMCommunicate request_size=4 [10:48:11]MH_SAM_APDU [10:48:11]CAPDU: 80 13 01 00 [10:48:11]Write to MH i2c: E2 08 00 C9 2E 80 13 01 00 00 00 00 00 74 [10:48:11]Write i2c OK [10:48:11]MH_I2C_Read... [10:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:11]Read from MH i2c: E2 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: E2 0E 00 [10:48:11]MH_I2C_Read... [10:48:11]Read from MH i2c: E2 0E 00 C9 2E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C4 [10:48:11]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:48:11]wFMCommunicate OK [10:48:11]SAM_PROTO_GetShiftState done [10:48:11]FM_GetShiftState done [10:48:11]req_shift_opened done [10:48:11]requested_item shift.open_date is exist - process it [10:48:11]req_shift_open_date [10:48:11]req_shift_open_date done [10:48:11]produce_requested_data done [10:48:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192514,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:48:11]process_action_free close_receipt [10:48:11]json_value_free [10:48:11]json_value_free done [10:48:11]process_json_proto returns [10:48:11]Send response to host [10:48:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192514,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:48:11]free response buf [10:48:11]execute_script done [10:48:11]execute_script returns [10:48:11]free content buf [10:48:11]Sock 7.Close socket [10:48:11]Sock 7.Thread stoped [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:28]accept exits with 9 [10:48:28]New connection [10:48:28]New thread 3066563940 created [10:48:28]Thread 3066707300 joined [10:48:28]Waiting for new connection... [10:48:28] Sock 9.Parse request [10:48:28]Sock 9.Check first char [10:48:28]Sock 9.First char is OK [10:48:28]request: POST /json_proto HTTP/1.0 [10:48:28]Method: POST [10:48:28]URL: /json_proto [10:48:28]Method is POST - this is cgi request [10:48:28]url: /json_proto [10:48:28]query_string will be loaded in cgi processing [10:48:28]execute_cgi json_proto POST (null) [10:48:28]execute_cgi path=json_proto method=POST [10:48:28]POST find Content-Length [10:48:28]Host: 172.17.63.131:8080 [10:48:28]Content-Length: 676 [10:48:28]Content-Type: application/json [10:48:28] [10:48:28]POST finish read [10:48:28]Found Content-Length = 676 [10:48:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:28]execute_script... [10:48: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)31830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:28]POST & json_proto [10:48:28]process_json_proto [10:48:28]json parsed OK: [10:48:28]protocol is kg_v1.0 [10:48:28]action value=close_receipt [10:48:28]process_action close_receipt [10:48:28]cmd_close_receipt [10:48:28]MH_GetDate [10:48:28]Write to MH i2c: F0 00 00 CA 2E E7 [10:48:28]Write i2c OK [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: F0 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: F0 09 00 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: F0 09 00 CA 2E 00 01 6C 1F 67 22 05 6E 64 DC [10:48:28]GetLastDocTimeStamp 1730112491 [10:48:28]current date 1730112513 [10:48:28]FM_GetShiftState [10:48:28]SAM_PROTO_GetShiftState [10:48:28]wFMCommunicate request_size=4 [10:48:28]MH_SAM_APDU [10:48:28]CAPDU: 80 13 01 00 [10:48:28]Write to MH i2c: E2 08 00 CB 2E 80 13 01 00 00 00 00 00 76 [10:48:28]Write i2c OK [10:48:28]MH_I2C_Read... [10:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:28]Read from MH i2c: E2 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: E2 0E 00 [10:48:28]MH_I2C_Read... [10:48:28]Read from MH i2c: E2 0E 00 CB 2E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C6 [10:48:28]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:48:28]wFMCommunicate OK [10:48:28]SAM_PROTO_GetShiftState done [10:48:28]FM_GetShiftState done [10:48:28]opened in 1730075620 [10:48:28]opened+sec_in_day 1730162020 [10:48:28]quantity*price = 50041 [10:48:28]sum+1 = 50042 [10:48:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 63 28.10.2024 10:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192515 ФПД: 196713494960016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T104833&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192515&fm=196713494960016&tin=02508201610067®Number=0000000000091776&sum=50000 [10:48:29]StoreToDocumentArchive [10:48:29]shift 543 fd 192515 [10:48:29]save to /storage/0543/doc_00192515 [10:48:29]save last doc name /storage/0543/doc_00192515 to /storage/kkm_last_doc_name [10:48:29]save OK [10:48:29]Clear old archive folders... [10:48:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:29]tlvbuf is 0196B100 [10:48:29]SAM_PROTO_ClearQueue [10:48:29]wFMCommunicate request_size=4 [10:48:29]MH_SAM_APDU [10:48:29]CAPDU: 80 09 00 00 [10:48:29]Write to MH i2c: E2 08 00 D8 2E 80 09 00 00 00 00 00 00 78 [10:48:29]Write i2c OK [10:48:29]MH_I2C_Read... [10:48:29]OFD Sender: No OFD packet to send [10:48:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:29]Read from MH i2c: E2 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 03 00 [10:48:29]MH_I2C_Read... [10:48:29]Read from MH i2c: E2 03 00 D8 2E 00 90 00 7A [10:48:29]RAPDU: 90 00 [10:48:29]wFMCommunicate OK [10:48:29]SAM_PROTO_ClearQueue done [10:48:29]KKMCreateOFDPacket [10:48:29]OFDProtocolAddRootSTLVToBuf [10:48:29]FM_MakeSignedData [10:48:29]FM_MakeSignedData [10:48:29]SAM_PROTO_SignData [10:48:29]wFMCommunicate request_size=4 [10:48:29]MH_SAM_APDU [10:48:29]CAPDU: 80 0D 01 02 [10:48:29]Write to MH i2c: E2 08 00 D9 2E 80 0D 01 02 00 00 00 00 80 [10:48:29]Write i2c OK [10:48:29]MH_I2C_Read... [10:48:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:30]Read from MH i2c: E2 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: E2 03 00 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: E2 03 00 D9 2E 00 90 00 7B [10:48:30]RAPDU: 90 00 [10:48:30]wFMCommunicate OK [10:48:30]wFMCommunicate request_size=255 [10:48:30]MH_SAM_APDU [10:48:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 01 6C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 F0 02 00 35 04 06 00 B2 [10:48:30]Write to MH i2c: E2 02 01 DA 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 01 6C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 F0 02 00 35 04 06 00 B2 00 00 0E [10:48:30]Write i2c OK [10:48:30]MH_I2C_Read... [10:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:30]Read from MH i2c: E2 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: E2 03 00 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: E2 03 00 DA 2E 00 90 00 7C [10:48:30]RAPDU: 90 00 [10:48:30]wFMCommunicate OK [10:48:30]wFMCommunicate request_size=10 [10:48:30]MH_SAM_APDU [10:48:30]CAPDU: 80 0D 02 02 05 E8 ED FD 57 90 [10:48:30]Write to MH i2c: E2 0D 00 DB 2E 80 0D 02 02 05 00 E8 ED FD 57 90 00 00 46 [10:48:30]Write i2c OK [10:48:30]MH_I2C_Read... [10:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:30]Read from MH i2c: E2 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: E2 03 00 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: E2 03 00 DB 2E 00 90 00 7D [10:48:30]RAPDU: 90 00 [10:48:30]wFMCommunicate OK [10:48:30]wFMCommunicate request_size=4 [10:48:30]MH_SAM_APDU [10:48:30]CAPDU: 80 0D 03 02 [10:48:30]Write to MH i2c: E2 08 00 DC 2E 80 0D 03 02 00 00 00 00 85 [10:48:30]Write i2c OK [10:48:30]MH_I2C_Read... [10:48:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:30]Read from MH i2c: E2 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: E2 0B 00 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: E2 0B 00 DC 2E 00 61 ED 73 82 8D 1B 9B 04 90 00 10 [10:48:30]RAPDU: 61 ED 73 82 8D 1B 9B 04 90 00 [10:48:30]wFMCommunicate OK [10:48:30]SAM_PROTO_SignData done [10:48:30]FM_MakeSignedData done [10:48:30]CreateOFDProtocolMessage [10:48:30]wFMCommunicate request_size=4 [10:48:30]MH_SAM_APDU [10:48:30]CAPDU: 80 11 00 00 [10:48:30]Write to MH i2c: E2 08 00 DD 2E 80 11 00 00 00 00 00 00 85 [10:48:30]Write i2c OK [10:48:30]MH_I2C_Read... [10:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:30]Read from MH i2c: E2 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: E2 17 00 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: E2 17 00 DD 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D8 [10:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:48:30]wFMCommunicate OK [10:48:30]CreateOFDProtocolMessage done [10:48:30]OFDSenderStorePacket 192515 [10:48:30]StoreOFDPacket docnum=192515 [10:48:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F8 D2 07 01 9C BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 01 6C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 F0 02 00 35 04 06 00 B2 E8 ED FD 57 90 61 ED 73 82 8D 1B 9B 04 [10:48:30]CheckFolder [10:48:30]dirname=/storage/ofd_packets [10:48:30]CheckFolder done [10:48:30]ProducePacketName [10:48:30]name=ofd_packets/00192515 [10:48:30]NVStorageSaveData ofd_packets/00192515 [10:48:30]File name is /storage/ofd_packets/00192515 [10:48:30]Write 301 bytes [10:48:30]NVStorageSaveData done [10:48:30]OFDSenderStorePacket done [10:48:30]KKMCreateOFDPacket done [10:48:30]NVStorageSaveData kkm_last_timestamp [10:48:30]File name is /storage/kkm_last_timestamp [10:48:30]Write 4 bytes [10:48:30]NVStorageSaveData done [10:48:30]ExternCall_PrintAddStr [10:48:30]wPrintStart [10:48:30]Write to MH i2c: 01 00 00 DE 2E 0C [10:48:30]Write i2c OK [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: 01 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: 01 07 00 [10:48:30]MH_I2C_Read... [10:48:30]Read from MH i2c: 01 07 00 DE 2E 00 00 00 00 00 FF 0F 21 [10:48:30]RasterBufferAndPrint [10:48:30]line Счет N : (1)31830 [10:48:30]line ИНН: 02508201610067 [10:48:30]line Контрольно-Кассовый Чек [10:48:30]line ПРОДАЖА [10:48:30]line ТРК (МРК, ГНК) : 12 [10:48:30]line Товар: 2710124130 [10:48:30]line Аи-92-К-5 [10:48:30]line 7.480 * 66.90 [10:48:30]line = 500.41 [10:48:30]line НДС 12% НСП 1% [10:48:30]line > о реализуемом товаре [10:48:30]line ОКРУГЛЕНИЕ: -0.41 [10:48:30]line ИТОГО: 500.00 [10:48:30]line Внесено: 500.00 [10:48:30]line СДАЧА: 0.00 [10:48:30]line НСП 1% : 4.43 [10:48:30]line НДС 12% : 53.14 [10:48:30]line Наличными: 500.00 [10:48:30]line Безнал.: 0.00 [10:48:30]line Место: АЗС № 170 "Партнер Нефть" [10:48:30]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:48:30]line СНО: Общий режим [10:48:30]line Чек 63 28.10.2024 10:48 [10:48:30]line Смена: 543 ФФД: 1.0 [10:48:30]line ЗНМ: 0300000110 [10:48:30]line РНМ: 0000000000091776 [10:48:30]line Версия ККМ: 001 [10:48:30]line ФМ: 0000000000871754 [10:48:30]line ФД: 192515 [10:48:30]line ФПД: 196713494960016 [10:48:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T104833&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192515&fm=196713494960016&tin=02508201610067®Number=0000000000091776&sum=50000 [10:48:30]OFD Sender: Processing packet 192515 [packets to send 75, broken 74] [10:48:30]ProducePacketName [10:48:30]name=ofd_packets/00192515 [10:48:30]OFD Sender: To server: pG, [10:48:30]CommunicateWithHost lk.salyk.kg:30040 [10:48:30]ConnectInit lk.salyk.kg [10:48:30]written 0, free lines is 4095 [10:48:30]Connected sock=10 [10:48:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F8 D2 07 01 9C BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 01 6C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 F0 02 00 35 04 06 00 B2 E8 ED FD 57 90 61 ED 73 82 8D 1B 9B 04 [10:48:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BB 29 47 00 C7 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 F0 02 00 F4 03 04 00 C5 10 1F 67 B6 04 01 00 00 3A C6 FB C4 52 5A 29 8A [10:48:31]CommunicateWithHost err = 0 [10:48:31]CheckOFDResponse [10:48:31]1017 (14) - 77093643461234 [10:48:31]1041 (16) - 0000000000871754 [10:48:31]1040 (4) - 192515 [10:48:31]1012 (4) - 28.10.2024 04:19 [10:48:31]1206 (1) - 0 [10:48:31]OFD Sender: Remove packet 192515 [10:48:31]ProducePacketName [10:48:31]name=ofd_packets/00192515 [10:48:31]NVStorageDeleteData [10:48:31]Write to MH i2c: 01 00 00 09 2F 38 [10:48:31]Write i2c OK [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: 01 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: 01 07 00 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: 01 07 00 09 2F 00 00 00 00 00 9D 0C E8 [10:48:31]RasterBufferAndPrint [10:48:31]line [10:48:31]line [10:48:31]line [10:48:31]line [10:48:31]line [10:48:31]written 0, free lines is 3236 [10:48:31]MH_Cut [10:48:31]Write to MH i2c: D1 01 00 10 2F 01 11 [10:48:31]Write i2c OK [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: D1 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: D1 01 00 [10:48:31]MH_I2C_Read... [10:48:31]Read from MH i2c: D1 01 00 10 2F 00 10 [10:48:31]Write to MH i2c: 01 00 00 11 2F 40 [10:48:31]Write i2c OK [10:48:31]MH_I2C_Read... [10:48:31]OFD Sender: No OFD packet to send [10:48:32]*** Cut start [10:48:32]*** Partial cut [10:48:32]*** CUTSNS_PIN = 1 [10:48:32]*** CUTSNS_PIN = 0 [10:48:32]*** Brake cut motor [10:48:32]Read from MH i2c: 01 [10:48:32]MH_I2C_Read... [10:48:32]*** Stop cut motor [10:48:32]*** Cut end [10:48:32]Read from MH i2c: 01 07 00 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: 01 07 00 11 2F 00 00 00 00 00 FF 0F 55 [10:48:32]process_action close_receipt done [10:48:32]requested_data is exist [10:48:32]produce_requested_data [10:48:32]requested_item fm.sn is exist - process it [10:48:32]wFMCommunicate request_size=4 [10:48:32]MH_SAM_APDU [10:48:32]CAPDU: 80 11 00 00 [10:48:32]Write to MH i2c: E2 08 00 12 2F 80 11 00 00 00 00 00 00 BB [10:48:32]Write i2c OK [10:48:32]MH_I2C_Read... [10:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:32]Read from MH i2c: E2 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 17 00 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 17 00 12 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0E [10:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:48:32]wFMCommunicate OK [10:48:32]requested_item fd.num is exist - process it [10:48:32]SAM_PROTO_GetFieldsCounters [10:48:32]wFMCommunicate request_size=4 [10:48:32]MH_SAM_APDU [10:48:32]CAPDU: 80 13 00 00 [10:48:32]Write to MH i2c: E2 08 00 13 2F 80 13 00 00 00 00 00 00 BE [10:48:32]Write i2c OK [10:48:32]MH_I2C_Read... [10:48:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:32]Read from MH i2c: E2 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 62 00 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 62 00 13 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 03 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [10:48:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 03 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:32]wFMCommunicate OK [10:48:32]SAM_PROTO_GetFieldsCounters done [10:48:32]requested_item shift.num is exist - process it [10:48:32]requested_item shift.opened is exist - process it [10:48:32]req_shift_opened [10:48:32]FM_GetShiftState [10:48:32]SAM_PROTO_GetShiftState [10:48:32]wFMCommunicate request_size=4 [10:48:32]MH_SAM_APDU [10:48:32]CAPDU: 80 13 01 00 [10:48:32]Write to MH i2c: E2 08 00 14 2F 80 13 01 00 00 00 00 00 C0 [10:48:32]Write i2c OK [10:48:32]MH_I2C_Read... [10:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:32]Read from MH i2c: E2 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 0E 00 [10:48:32]MH_I2C_Read... [10:48:32]Read from MH i2c: E2 0E 00 14 2F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 10 [10:48:32]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:48:32]wFMCommunicate OK [10:48:32]SAM_PROTO_GetShiftState done [10:48:32]FM_GetShiftState done [10:48:32]req_shift_opened done [10:48:32]requested_item shift.open_date is exist - process it [10:48:32]req_shift_open_date [10:48:32]req_shift_open_date done [10:48:32]produce_requested_data done [10:48:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192515,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:48:32]process_action_free close_receipt [10:48:32]json_value_free [10:48:32]json_value_free done [10:48:32]process_json_proto returns [10:48:32]Send response to host [10:48:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192515,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:48:32]free response buf [10:48:32]execute_script done [10:48:32]execute_script returns [10:48:32]free content buf [10:48:32]Sock 9.Close socket [10:48:32]Sock 9.Thread stoped [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:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]accept exits with 7 [10:51:06]New connection [10:51:06]New thread 3066707300 created [10:51:06]Thread 3066563940 joined [10:51:06]Waiting for new connection... [10:51:06] Sock 7.Parse request [10:51:06]Sock 7.Check first char [10:51:06]Sock 7.First char is OK [10:51:06]request: POST /json_proto HTTP/1.0 [10:51:06]Method: POST [10:51:06]URL: /json_proto [10:51:06]Method is POST - this is cgi request [10:51:06]url: /json_proto [10:51:06]query_string will be loaded in cgi processing [10:51:06]execute_cgi json_proto POST (null) [10:51:06]execute_cgi path=json_proto method=POST [10:51:06]POST find Content-Length [10:51:06]Host: 172.17.63.131:8080 [10:51:06]Content-Length: 681 [10:51:06]Content-Type: application/json [10:51:06] [10:51:06]POST finish read [10:51:06]Found Content-Length = 681 [10:51:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:06]execute_script... [10:51:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:06]POST & json_proto [10:51:06]process_json_proto [10:51:06]json parsed OK: [10:51:06]protocol is kg_v1.0 [10:51:06]action value=close_receipt [10:51:06]process_action close_receipt [10:51:06]cmd_close_receipt [10:51:06]MH_GetDate [10:51:06]Write to MH i2c: F0 00 00 15 2F 33 [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: F0 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: F0 09 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: F0 09 00 15 2F 00 9E 6C 1F 67 22 05 6E 64 C5 [10:51:06]GetLastDocTimeStamp 1730112513 [10:51:06]current date 1730112670 [10:51:06]FM_GetShiftState [10:51:06]SAM_PROTO_GetShiftState [10:51:06]wFMCommunicate request_size=4 [10:51:06]MH_SAM_APDU [10:51:06]CAPDU: 80 13 01 00 [10:51:06]Write to MH i2c: E2 08 00 16 2F 80 13 01 00 00 00 00 00 C2 [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:06]Read from MH i2c: E2 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: E2 0E 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: E2 0E 00 16 2F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 12 [10:51:06]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:51:06]wFMCommunicate OK [10:51:06]SAM_PROTO_GetShiftState done [10:51:06]FM_GetShiftState done [10:51:06]opened in 1730075620 [10:51:06]opened+sec_in_day 1730162020 [10:51:06]quantity*price = 100015 [10:51:06]sum+1 = 100017 [10:51:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 64 28.10.2024 10:51 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192516 ФПД: 119601786749513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T105110&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192516&fm=119601786749513&tin=02508201610067®Number=0000000000091776&sum=100000 [10:51:07]StoreToDocumentArchive [10:51:07]shift 543 fd 192516 [10:51:07]save to /storage/0543/doc_00192516 [10:51:07]save last doc name /storage/0543/doc_00192516 to /storage/kkm_last_doc_name [10:51:07]save OK [10:51:07]Clear old archive folders... [10:51:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:07]tlvbuf is B6F198C0 [10:51:07]SAM_PROTO_ClearQueue [10:51:07]wFMCommunicate request_size=4 [10:51:07]MH_SAM_APDU [10:51:07]CAPDU: 80 09 00 00 [10:51:07]Write to MH i2c: E2 08 00 23 2F 80 09 00 00 00 00 00 00 C4 [10:51:07]Write i2c OK [10:51:07]MH_I2C_Read... [10:51:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:07]Read from MH i2c: E2 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 03 00 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 03 00 23 2F 00 90 00 C6 [10:51:07]RAPDU: 90 00 [10:51:07]wFMCommunicate OK [10:51:07]SAM_PROTO_ClearQueue done [10:51:07]KKMCreateOFDPacket [10:51:07]OFDProtocolAddRootSTLVToBuf [10:51:07]FM_MakeSignedData [10:51:07]FM_MakeSignedData [10:51:07]SAM_PROTO_SignData [10:51:07]wFMCommunicate request_size=4 [10:51:07]MH_SAM_APDU [10:51:07]CAPDU: 80 0D 01 02 [10:51:07]Write to MH i2c: E2 08 00 24 2F 80 0D 01 02 00 00 00 00 CC [10:51:07]Write i2c OK [10:51:07]MH_I2C_Read... [10:51:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:07]Read from MH i2c: E2 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 03 00 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 03 00 24 2F 00 90 00 C7 [10:51:07]RAPDU: 90 00 [10:51:07]wFMCommunicate OK [10:51:07]wFMCommunicate request_size=255 [10:51:07]MH_SAM_APDU [10:51:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 9E 6C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 F0 02 00 35 04 06 00 6C [10:51:07]Write to MH i2c: E2 02 01 25 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 9E 6C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 F0 02 00 35 04 06 00 6C 00 00 AD [10:51:07]Write i2c OK [10:51:07]MH_I2C_Read... [10:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:07]Read from MH i2c: E2 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 03 00 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 03 00 25 2F 00 90 00 C8 [10:51:07]RAPDU: 90 00 [10:51:07]wFMCommunicate OK [10:51:07]wFMCommunicate request_size=10 [10:51:07]MH_SAM_APDU [10:51:07]CAPDU: 80 0D 02 02 05 C6 F6 03 82 49 [10:51:07]Write to MH i2c: E2 0D 00 26 2F 80 0D 02 02 05 00 C6 F6 03 82 49 00 00 63 [10:51:07]Write i2c OK [10:51:07]MH_I2C_Read... [10:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:07]Read from MH i2c: E2 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 03 00 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 03 00 26 2F 00 90 00 C9 [10:51:07]RAPDU: 90 00 [10:51:07]wFMCommunicate OK [10:51:07]wFMCommunicate request_size=4 [10:51:07]MH_SAM_APDU [10:51:07]CAPDU: 80 0D 03 02 [10:51:07]Write to MH i2c: E2 08 00 27 2F 80 0D 03 02 00 00 00 00 D1 [10:51:07]Write i2c OK [10:51:07]MH_I2C_Read... [10:51:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:07]Read from MH i2c: E2 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 0B 00 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 0B 00 27 2F 00 E0 32 64 A0 88 34 41 4D 90 00 32 [10:51:07]RAPDU: E0 32 64 A0 88 34 41 4D 90 00 [10:51:07]wFMCommunicate OK [10:51:07]SAM_PROTO_SignData done [10:51:07]FM_MakeSignedData done [10:51:07]CreateOFDProtocolMessage [10:51:07]wFMCommunicate request_size=4 [10:51:07]MH_SAM_APDU [10:51:07]CAPDU: 80 11 00 00 [10:51:07]Write to MH i2c: E2 08 00 28 2F 80 11 00 00 00 00 00 00 D1 [10:51:07]Write i2c OK [10:51:07]MH_I2C_Read... [10:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:07]Read from MH i2c: E2 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 17 00 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: E2 17 00 28 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [10:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:51:07]wFMCommunicate OK [10:51:07]CreateOFDProtocolMessage done [10:51:07]OFDSenderStorePacket 192516 [10:51:07]StoreOFDPacket docnum=192516 [10:51:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 70 22 07 01 13 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 9E 6C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 F0 02 00 35 04 06 00 6C C6 F6 03 82 49 E0 32 64 A0 88 34 41 4D [10:51:07]CheckFolder [10:51:07]dirname=/storage/ofd_packets [10:51:07]CheckFolder done [10:51:07]ProducePacketName [10:51:07]name=ofd_packets/00192516 [10:51:07]NVStorageSaveData ofd_packets/00192516 [10:51:07]File name is /storage/ofd_packets/00192516 [10:51:07]Write 301 bytes [10:51:07]NVStorageSaveData done [10:51:07]OFDSenderStorePacket done [10:51:07]KKMCreateOFDPacket done [10:51:07]NVStorageSaveData kkm_last_timestamp [10:51:07]File name is /storage/kkm_last_timestamp [10:51:07]Write 4 bytes [10:51:07]NVStorageSaveData done [10:51:07]OFD Sender: Processing packet 192516 [packets to send 75, broken 74] [10:51:07]ProducePacketName [10:51:07]name=ofd_packets/00192516 [10:51:07]OFD Sender: To server: pG, [10:51:07]CommunicateWithHost lk.salyk.kg:30040 [10:51:07]ConnectInit lk.salyk.kg [10:51:07]ExternCall_PrintAddStr [10:51:07]wPrintStart [10:51:07]Write to MH i2c: 01 00 00 29 2F 58 [10:51:07]Write i2c OK [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: 01 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: 01 07 00 [10:51:07]MH_I2C_Read... [10:51:07]Read from MH i2c: 01 07 00 29 2F 00 00 00 00 00 FF 0F 6D [10:51:07]RasterBufferAndPrint [10:51:07]line Счет N : (1)31831 [10:51:07]line ИНН: 02508201610067 [10:51:07]line Контрольно-Кассовый Чек [10:51:07]line ПРОДАЖА [10:51:07]line ТРК (МРК, ГНК) : 21 [10:51:07]line Товар: 2710124130 [10:51:07]line Аи-92-К-5 [10:51:07]line 14.950 * 66.90 [10:51:07]line = 1000.16 [10:51:07]line НДС 12% НСП 1% [10:51:07]line > о реализуемом товаре [10:51:07]line ОКРУГЛЕНИЕ: -0.16 [10:51:07]line ИТОГО: 1000.00 [10:51:07]line Внесено: 1000.00 [10:51:07]line СДАЧА: 0.00 [10:51:07]line НСП 1% : 8.85 [10:51:07]line НДС 12% : 106.21 [10:51:07]line Наличными: 1000.00 [10:51:07]line Безнал.: 0.00 [10:51:07]line Место: АЗС № 170 "Партнер Нефть" [10:51:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:51:07]line СНО: Общий режим [10:51:07]line Чек 64 28.10.2024 10:51 [10:51:07]line Смена: 543 ФФД: 1.0 [10:51:07]line ЗНМ: 0300000110 [10:51:07]line РНМ: 0000000000091776 [10:51:07]line Версия ККМ: 001 [10:51:07]line ФМ: 0000000000871754 [10:51:07]line ФД: 192516 [10:51:07]line ФПД: 119601786749513 [10:51:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T105110&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192516&fm=119601786749513&tin=02508201610067®Number=0000000000091776&sum=100000 [10:51:08]Connected sock=11 [10:51:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 70 22 07 01 13 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 9E 6C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 F0 02 00 35 04 06 00 6C C6 F6 03 82 49 E0 32 64 A0 88 34 41 4D [10:51:08]written 0, free lines is 4095 [10:51:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 04 18 47 00 FC A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 F0 02 00 F4 03 04 00 63 11 1F 67 B6 04 01 00 00 4B BD FC 0C 49 87 88 EF [10:51:08]CommunicateWithHost err = 0 [10:51:08]CheckOFDResponse [10:51:08]1017 (14) - 77093643461234 [10:51:08]1041 (16) - 0000000000871754 [10:51:08]1040 (4) - 192516 [10:51:08]1012 (4) - 28.10.2024 04:21 [10:51:08]1206 (1) - 0 [10:51:08]OFD Sender: Remove packet 192516 [10:51:08]ProducePacketName [10:51:08]name=ofd_packets/00192516 [10:51:08]NVStorageDeleteData [10:51:08]Write to MH i2c: 01 00 00 54 2F 83 [10:51:08]Write i2c OK [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: 01 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: 01 07 00 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: 01 07 00 54 2F 00 00 00 00 00 A4 0C 3A [10:51:08]RasterBufferAndPrint [10:51:08]line [10:51:08]line [10:51:08]line [10:51:08]line [10:51:08]line [10:51:08]written 0, free lines is 3243 [10:51:08]MH_Cut [10:51:08]Write to MH i2c: D1 01 00 5B 2F 01 5C [10:51:08]Write i2c OK [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: D1 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: D1 01 00 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: D1 01 00 5B 2F 00 5B [10:51:08]Write to MH i2c: 01 00 00 5C 2F 8B [10:51:08]Write i2c OK [10:51:08]MH_I2C_Read... [10:51:08]OFD Sender: No OFD packet to send [10:51:09]*** Cut start [10:51:09]*** Partial cut [10:51:09]*** CUTSNS_PIN = 1 [10:51:09]*** CUTSNS_PIN = 0 [10:51:09]*** Brake cut motor [10:51:10]Read from MH i2c: 01 [10:51:10]MH_I2C_Read... [10:51:10]*** Stop cut motor [10:51:10]*** Cut end [10:51:10]Read from MH i2c: 01 07 00 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: 01 07 00 5C 2F 00 00 00 00 00 FF 0F A0 [10:51:10]process_action close_receipt done [10:51:10]requested_data is exist [10:51:10]produce_requested_data [10:51:10]requested_item fm.sn is exist - process it [10:51:10]wFMCommunicate request_size=4 [10:51:10]MH_SAM_APDU [10:51:10]CAPDU: 80 11 00 00 [10:51:10]Write to MH i2c: E2 08 00 5D 2F 80 11 00 00 00 00 00 00 06 [10:51:10]Write i2c OK [10:51:10]MH_I2C_Read... [10:51:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:10]Read from MH i2c: E2 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: E2 17 00 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: E2 17 00 5D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 59 [10:51:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:51:10]wFMCommunicate OK [10:51:10]requested_item fd.num is exist - process it [10:51:10]SAM_PROTO_GetFieldsCounters [10:51:10]wFMCommunicate request_size=4 [10:51:10]MH_SAM_APDU [10:51:10]CAPDU: 80 13 00 00 [10:51:10]Write to MH i2c: E2 08 00 5E 2F 80 13 00 00 00 00 00 00 09 [10:51:10]Write i2c OK [10:51:10]MH_I2C_Read... [10:51:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:10]Read from MH i2c: E2 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: E2 62 00 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: E2 62 00 5E 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [10:51:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:10]wFMCommunicate OK [10:51:10]SAM_PROTO_GetFieldsCounters done [10:51:10]requested_item shift.num is exist - process it [10:51:10]requested_item shift.opened is exist - process it [10:51:10]req_shift_opened [10:51:10]FM_GetShiftState [10:51:10]SAM_PROTO_GetShiftState [10:51:10]wFMCommunicate request_size=4 [10:51:10]MH_SAM_APDU [10:51:10]CAPDU: 80 13 01 00 [10:51:10]Write to MH i2c: E2 08 00 5F 2F 80 13 01 00 00 00 00 00 0B [10:51:10]Write i2c OK [10:51:10]MH_I2C_Read... [10:51:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:10]Read from MH i2c: E2 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: E2 0E 00 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: E2 0E 00 5F 2F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 5B [10:51:10]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:51:10]wFMCommunicate OK [10:51:10]SAM_PROTO_GetShiftState done [10:51:10]FM_GetShiftState done [10:51:10]req_shift_opened done [10:51:10]requested_item shift.open_date is exist - process it [10:51:10]req_shift_open_date [10:51:10]req_shift_open_date done [10:51:10]produce_requested_data done [10:51:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192516,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:51:10]process_action_free close_receipt [10:51:10]json_value_free [10:51:10]json_value_free done [10:51:10]process_json_proto returns [10:51:10]Send response to host [10:51:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192516,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:51:10]free response buf [10:51:10]execute_script done [10:51:10]execute_script returns [10:51:10]free content buf [10:51:10]Sock 7.Close socket [10:51:10]Sock 7.Thread stoped [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:17]accept exits with 9 [10:53:17]New connection [10:53:17]New thread 3066563940 created [10:53:17]Thread 3066707300 joined [10:53:17]Waiting for new connection... [10:53:17] Sock 9.Parse request [10:53:17]Sock 9.Check first char [10:53:17]Sock 9.First char is OK [10:53:17]request: POST /json_proto HTTP/1.0 [10:53:17]Method: POST [10:53:17]URL: /json_proto [10:53:17]Method is POST - this is cgi request [10:53:17]url: /json_proto [10:53:17]query_string will be loaded in cgi processing [10:53:17]execute_cgi json_proto POST (null) [10:53:17]execute_cgi path=json_proto method=POST [10:53:17]POST find Content-Length [10:53:17]Host: 172.17.63.131:8080 [10:53:17]Content-Length: 215 [10:53:17]Content-Type: application/json [10:53:17] [10:53:17]POST finish read [10:53:17]Found Content-Length = 215 [10:53:17]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:53:17]execute_script... [10:53:17]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:53:17]POST & json_proto [10:53:17]process_json_proto [10:53:17]json parsed OK: [10:53:17]protocol is kg_v1.0 [10:53:17]action value=get_value [10:53:17]process_action get_value [10:53:17]cmd_get_value [10:53:17]process_action get_value done [10:53:17]requested_data is exist [10:53:17]produce_requested_data [10:53:17]requested_item kkm.sn is exist - process it [10:53:17]requested_item kkm.ver is exist - process it [10:53:17]requested_item fm.sn is exist - process it [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 11 00 00 [10:53:17]Write to MH i2c: E2 08 00 60 2F 80 11 00 00 00 00 00 00 09 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 17 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 17 00 60 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [10:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:53:17]wFMCommunicate OK [10:53:17]requested_item fd.num is exist - process it [10:53:17]SAM_PROTO_GetFieldsCounters [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 13 00 00 [10:53:17]Write to MH i2c: E2 08 00 61 2F 80 13 00 00 00 00 00 00 0C [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 62 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 62 00 61 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [10:53:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:17]wFMCommunicate OK [10:53:17]SAM_PROTO_GetFieldsCounters done [10:53:17]requested_item shift.num is exist - process it [10:53:17]requested_item shift.opened is exist - process it [10:53:17]req_shift_opened [10:53:17]FM_GetShiftState [10:53:17]SAM_PROTO_GetShiftState [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 13 01 00 [10:53:17]Write to MH i2c: E2 08 00 62 2F 80 13 01 00 00 00 00 00 0E [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 0E 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 0E 00 62 2F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 5E [10:53:17]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:53:17]wFMCommunicate OK [10:53:17]SAM_PROTO_GetShiftState done [10:53:17]FM_GetShiftState done [10:53:17]req_shift_opened done [10:53:17]requested_item shift.open_date is exist - process it [10:53:17]req_shift_open_date [10:53:17]req_shift_open_date done [10:53:17]produce_requested_data done [10:53:17]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192516,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:53:17]process_action_free get_value [10:53:17]json_value_free [10:53:17]json_value_free done [10:53:17]process_json_proto returns [10:53:17]Send response to host [10:53:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192516,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:53:17]free response buf [10:53:17]execute_script done [10:53:17]execute_script returns [10:53:17]free content buf [10:53:17]Sock 9.Close socket [10:53:17]Sock 9.Thread stoped [10:53:17]accept exits with 7 [10:53:17]New connection [10:53:17]New thread 3066707300 created [10:53:17]Thread 3066563940 joined [10:53:17]Waiting for new connection... [10:53:17] Sock 7.Parse request [10:53:17]Sock 7.Check first char [10:53:17]Sock 7.First char is OK [10:53:17]request: POST /json_proto HTTP/1.0 [10:53:17]Method: POST [10:53:17]URL: /json_proto [10:53:17]Method is POST - this is cgi request [10:53:17]url: /json_proto [10:53:17]query_string will be loaded in cgi processing [10:53:17]execute_cgi json_proto POST (null) [10:53:17]execute_cgi path=json_proto method=POST [10:53:17]POST find Content-Length [10:53:17]Host: 172.17.63.131:8080 [10:53:17]Content-Length: 331 [10:53:17]Content-Type: application/json [10:53:17] [10:53:17]POST finish read [10:53:17]Found Content-Length = 331 [10:53:17]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:53:17]execute_script... [10:53:17]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:53:17]POST & json_proto [10:53:17]process_json_proto [10:53:17]json parsed OK: [10:53:17]protocol is kg_v1.0 [10:53:17]action value=get_value [10:53:17]process_action get_value [10:53:17]cmd_get_value [10:53:17]process_action get_value done [10:53:17]requested_data is exist [10:53:17]produce_requested_data [10:53:17]requested_item fm.sale.total is exist - process it [10:53:17]SAM_PROTO_GetFMData [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 13 03 00 [10:53:17]Write to MH i2c: E2 08 00 63 2F 80 13 03 00 00 00 00 00 11 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:53:18]Read from MH i2c: E2 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 FD 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 FD 00 63 2F 00 C1 04 85 04 BD 04 6E 04 04 00 C6 EB 02 00 69 04 A3 00 6F 04 04 00 BC EB 02 00 B1 04 05 00 1B 0B 6E B7 03 70 04 05 00 30 02 1D 8A 03 72 04 04 00 EB 08 51 2D 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 30 41 13 65 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 E6 18 6C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 44 [10:53:18]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 C6 EB 02 00 69 04 A3 00 6F 04 04 00 BC EB 02 00 B1 04 05 00 1B 0B 6E B7 03 70 04 05 00 30 02 1D 8A 03 72 04 04 00 EB 08 51 2D 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 30 41 13 65 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 E6 18 6C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [10:53:18]wFMCommunicate OK [10:53:18]wFMCommunicate request_size=4 [10:53:18]MH_SAM_APDU [10:53:18]CAPDU: 80 17 00 00 [10:53:18]Write to MH i2c: E2 08 00 64 2F 80 17 00 00 00 00 00 00 13 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:53:18]Read from MH i2c: E2 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 FD 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 FD 00 64 2F 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 24 [10:53:18]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:53:18]wFMCommunicate OK [10:53:18]wFMCommunicate request_size=4 [10:53:18]MH_SAM_APDU [10:53:18]CAPDU: 80 17 00 00 [10:53:18]Write to MH i2c: E2 08 00 65 2F 80 17 00 00 00 00 00 00 14 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:53:18]Read from MH i2c: E2 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 FD 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 FD 00 65 2F 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B4 [10:53:18]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:53:18]wFMCommunicate OK [10:53:18]wFMCommunicate request_size=4 [10:53:18]MH_SAM_APDU [10:53:18]CAPDU: 80 17 00 00 [10:53:18]Write to MH i2c: E2 08 00 66 2F 80 17 00 00 00 00 00 00 15 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:53:18]Read from MH i2c: E2 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 FD 00 [10:53:18]MH_I2C_Read... [10:53:18]OFD Sender: No OFD packet to send [10:53:18]Read from MH i2c: E2 FD 00 66 2F 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 9A [10:53:18]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [10:53:18]wFMCommunicate OK [10:53:18]wFMCommunicate request_size=4 [10:53:18]MH_SAM_APDU [10:53:18]CAPDU: 80 17 00 00 [10:53:18]Write to MH i2c: E2 08 00 67 2F 80 17 00 00 00 00 00 00 16 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 DE 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 DE 00 67 2F 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F5 [10:53:19]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:53:19]wFMCommunicate OK [10:53:19]SAM_PROTO_GetFMData done [10:53:19]requested_item fm.sale_refund.total is exist - process it [10:53:19]requested_item fm.buy.total is exist - process it [10:53:19]requested_item shift.sale.total is exist - process it [10:53:19]SAM_PROTO_GetShiftData [10:53:19]wFMCommunicate request_size=4 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 13 02 00 [10:53:19]Write to MH i2c: E2 08 00 68 2F 80 13 02 00 00 00 00 00 15 [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:53:19]Read from MH i2c: E2 FD 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 FD 00 68 2F 00 AE 04 AA 04 AA 04 6E 04 04 00 40 00 00 00 69 04 9B 00 6F 04 04 00 40 00 00 00 B1 04 03 00 D7 91 44 70 04 03 00 84 82 3A 72 04 03 00 53 0F 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 C1 48 07 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 65 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BE [10:53:19]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 40 00 00 00 69 04 9B 00 6F 04 04 00 40 00 00 00 B1 04 03 00 D7 91 44 70 04 03 00 84 82 3A 72 04 03 00 53 0F 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 C1 48 07 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 65 9B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:53:19]wFMCommunicate OK [10:53:19]wFMCommunicate request_size=4 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 17 00 00 [10:53:19]Write to MH i2c: E2 08 00 69 2F 80 17 00 00 00 00 00 00 18 [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 FD 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 FD 00 69 2F 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 3A [10:53:19]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:53:19]wFMCommunicate OK [10:53:19]wFMCommunicate request_size=4 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 17 00 00 [10:53:19]Write to MH i2c: E2 08 00 6A 2F 80 17 00 00 00 00 00 00 19 [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:53:20]Read from MH i2c: E2 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 FD 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 FD 00 6A 2F 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D0 [10:53:20]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:53:20]wFMCommunicate OK [10:53:20]wFMCommunicate request_size=4 [10:53:20]MH_SAM_APDU [10:53:20]CAPDU: 80 17 00 00 [10:53:20]Write to MH i2c: E2 08 00 6B 2F 80 17 00 00 00 00 00 00 1A [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:53:20]Read from MH i2c: E2 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 FD 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 FD 00 6B 2F 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 8C [10:53:20]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:53:20]wFMCommunicate OK [10:53:20]wFMCommunicate request_size=4 [10:53:20]MH_SAM_APDU [10:53:20]CAPDU: 80 17 00 00 [10:53:20]Write to MH i2c: E2 08 00 6C 2F 80 17 00 00 00 00 00 00 1B [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:53:20]Read from MH i2c: E2 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 CB 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 CB 00 6C 2F 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 04 [10:53:20]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:53:20]wFMCommunicate OK [10:53:20]SAM_PROTO_GetShiftData done [10:53:20]requested_item shift.sale.total_cash is exist - process it [10:53:20]requested_item shift.sale_refund.total is exist - process it [10:53:20]requested_item shift.sale_refund.total_cash is exist - process it [10:53:20]requested_item shift.buy.total is exist - process it [10:53:20]requested_item shift.buy.total_cash is exist - process it [10:53:20]produce_requested_data done [10:53:20]produce_requested_data return {"fm.sale.total":159623442.19,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":44937.83,"shift.sale.total_cash":38345.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:53:20]process_action_free get_value [10:53:20]json_value_free [10:53:20]json_value_free done [10:53:20]process_json_proto returns [10:53:20]Send response to host [10:53:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159623442.19,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":44937.83,"shift.sale.total_cash":38345.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:53:20]free response buf [10:53:20]execute_script done [10:53:20]execute_script returns [10:53:20]free content buf [10:53:20]Sock 7.Close socket [10:53:20]Sock 7.Thread stoped [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:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:11]accept exits with 9 [10:54:11]New connection [10:54:11]New thread 3066563940 created [10:54:11]Thread 3066707300 joined [10:54:11]Waiting for new connection... [10:54:11] Sock 9.Parse request [10:54:11]Sock 9.Check first char [10:54:11]Sock 9.First char is OK [10:54:11]request: POST /json_proto HTTP/1.0 [10:54:11]Method: POST [10:54:11]URL: /json_proto [10:54:11]Method is POST - this is cgi request [10:54:11]url: /json_proto [10:54:11]query_string will be loaded in cgi processing [10:54:11]execute_cgi json_proto POST (null) [10:54:11]execute_cgi path=json_proto method=POST [10:54:11]POST find Content-Length [10:54:11]Host: 172.17.63.131:8080 [10:54:11]Content-Length: 1187 [10:54:11]Content-Type: application/json [10:54:11] [10:54:11]POST finish read [10:54:11]Found Content-Length = 1187 [10:54:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 170\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)31832\u000A28.10.2024 10:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.480 x 66.90\u000A\u0418\u0422\u041E\u0413: 500.41\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:11]execute_script... [10:54:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 170\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)31832\u000A28.10.2024 10:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.480 x 66.90\u000A\u0418\u0422\u041E\u0413: 500.41\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:11]POST & json_proto [10:54:11]process_json_proto [10:54:11]json parsed OK: [10:54:11]protocol is kg_v1.0 [10:54:11]action value=print_text [10:54:11]process_action print_text [10:54:11]cmd_print_text [10:54:11]ExternCall_PrintAddStr [10:54:11]wPrintStart [10:54:11]Write to MH i2c: 01 00 00 6D 2F 9C [10:54:11]Write i2c OK [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: 01 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: 01 07 00 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: 01 07 00 6D 2F 00 00 00 00 00 FF 0F B1 [10:54:11]RasterBufferAndPrint [10:54:11]line *****ТОВАРНЫЙ ЧЕК***** [10:54:11]line АЗС 170 [10:54:11]line Партнер нефть [10:54:11]line 02508201610067 [10:54:11]line Кассир : Курбанов М. [10:54:11]line Счет N : (1)31832 [10:54:11]line 28.10.2024 10:21 [10:54:11]line ПРОДАЖА [10:54:11]line ТРК (МРК, ГНК): 12 [10:54:11]line Вид ГСМ : 2710124130 [10:54:11]line Аи-92-К-5 [10:54:11]line 7.480 x 66.90 [10:54:11]line ИТОГ: 500.41 [10:54:11]line Тип оплаты: Технологический отпуск: [10:54:11]line ______________________ [10:54:11]line (подпись) [10:54:11]written 0, free lines is 4095 [10:54:11]Write to MH i2c: 01 00 00 80 2F AF [10:54:11]Write i2c OK [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: 01 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: 01 07 00 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: 01 07 00 80 2F 00 00 00 00 00 29 0E ED [10:54:11]RasterBufferAndPrint [10:54:11]line [10:54:11]line [10:54:11]line [10:54:11]line [10:54:11]line [10:54:11]written 0, free lines is 3626 [10:54:11]MH_Cut [10:54:11]Write to MH i2c: D1 01 00 87 2F 01 88 [10:54:11]Write i2c OK [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: D1 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: D1 01 00 [10:54:11]MH_I2C_Read... [10:54:11]Read from MH i2c: D1 01 00 87 2F 00 87 [10:54:11]Write to MH i2c: 01 00 00 88 2F B7 [10:54:11]Write i2c OK [10:54:11]MH_I2C_Read... [10:54:12]*** Cut start [10:54:12]*** Partial cut [10:54:12]*** CUTSNS_PIN = 1 [10:54:12]*** CUTSNS_PIN = 0 [10:54:12]*** Brake cut motor [10:54:12]Read from MH i2c: 01 [10:54:12]MH_I2C_Read... [10:54:12]*** Stop cut motor [10:54:12]*** Cut end [10:54:12]Read from MH i2c: 01 07 00 [10:54:12]MH_I2C_Read... [10:54:13]Read from MH i2c: 01 07 00 88 2F 00 00 00 00 00 FF 0F CC [10:54:13]process_action print_text done [10:54:13]requested_data is exist [10:54:13]produce_requested_data [10:54:13]requested_item fm.sn is exist - process it [10:54:13]wFMCommunicate request_size=4 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 11 00 00 [10:54:13]Write to MH i2c: E2 08 00 89 2F 80 11 00 00 00 00 00 00 32 [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 17 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 17 00 89 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 85 [10:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:54:13]wFMCommunicate OK [10:54:13]requested_item fd.num is exist - process it [10:54:13]SAM_PROTO_GetFieldsCounters [10:54:13]wFMCommunicate request_size=4 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 13 00 00 [10:54:13]Write to MH i2c: E2 08 00 8A 2F 80 13 00 00 00 00 00 00 35 [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 62 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 62 00 8A 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [10:54:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:13]wFMCommunicate OK [10:54:13]SAM_PROTO_GetFieldsCounters done [10:54:13]requested_item shift.num is exist - process it [10:54:13]requested_item shift.opened is exist - process it [10:54:13]req_shift_opened [10:54:13]FM_GetShiftState [10:54:13]SAM_PROTO_GetShiftState [10:54:13]wFMCommunicate request_size=4 [10:54:13]MH_SAM_APDU [10:54:13]CAPDU: 80 13 01 00 [10:54:13]Write to MH i2c: E2 08 00 8B 2F 80 13 01 00 00 00 00 00 37 [10:54:13]Write i2c OK [10:54:13]MH_I2C_Read... [10:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:13]Read from MH i2c: E2 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 0E 00 [10:54:13]MH_I2C_Read... [10:54:13]Read from MH i2c: E2 0E 00 8B 2F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 87 [10:54:13]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:54:13]wFMCommunicate OK [10:54:13]SAM_PROTO_GetShiftState done [10:54:13]FM_GetShiftState done [10:54:13]req_shift_opened done [10:54:13]requested_item shift.open_date is exist - process it [10:54:13]req_shift_open_date [10:54:13]req_shift_open_date done [10:54:13]produce_requested_data done [10:54:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192516,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:54:13]process_action_free print_text [10:54:13]json_value_free [10:54:13]json_value_free done [10:54:13]process_json_proto returns [10:54:13]Send response to host [10:54:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192516,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:54:13]free response buf [10:54:13]execute_script done [10:54:13]execute_script returns [10:54:13]free content buf [10:54:13]Sock 9.Close socket [10:54:13]Sock 9.Thread stoped [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:11]accept exits with 7 [10:59:11]New connection [10:59:11]New thread 3066707300 created [10:59:11]Thread 3066563940 joined [10:59:11]Waiting for new connection... [10:59:11] Sock 7.Parse request [10:59:11]Sock 7.Check first char [10:59:11]Sock 7.First char is OK [10:59:11]request: POST /json_proto HTTP/1.0 [10:59:11]Method: POST [10:59:11]URL: /json_proto [10:59:11]Method is POST - this is cgi request [10:59:11]url: /json_proto [10:59:11]query_string will be loaded in cgi processing [10:59:11]execute_cgi json_proto POST (null) [10:59:11]execute_cgi path=json_proto method=POST [10:59:11]POST find Content-Length [10:59:11]Host: 172.17.63.131:8080 [10:59:11]Content-Length: 1187 [10:59:11]Content-Type: application/json [10:59:11] [10:59:11]POST finish read [10:59:11]Found Content-Length = 1187 [10:59:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 170\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)31833\u000A28.10.2024 10:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 4.490 x 66.90\u000A\u0418\u0422\u041E\u0413: 300.38\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:11]execute_script... [10:59:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 170\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)31833\u000A28.10.2024 10:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 4.490 x 66.90\u000A\u0418\u0422\u041E\u0413: 300.38\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:11]POST & json_proto [10:59:11]process_json_proto [10:59:11]json parsed OK: [10:59:11]protocol is kg_v1.0 [10:59:11]action value=print_text [10:59:11]process_action print_text [10:59:11]cmd_print_text [10:59:11]ExternCall_PrintAddStr [10:59:11]wPrintStart [10:59:11]Write to MH i2c: 01 00 00 8C 2F BB [10:59:11]Write i2c OK [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: 01 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: 01 07 00 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: 01 07 00 8C 2F 00 00 00 00 00 FF 0F D0 [10:59:11]RasterBufferAndPrint [10:59:11]line *****ТОВАРНЫЙ ЧЕК***** [10:59:11]line АЗС 170 [10:59:11]line Партнер нефть [10:59:11]line 02508201610067 [10:59:11]line Кассир : Курбанов М. [10:59:11]line Счет N : (1)31833 [10:59:11]line 28.10.2024 10:26 [10:59:11]line ПРОДАЖА [10:59:11]line ТРК (МРК, ГНК): 21 [10:59:11]line Вид ГСМ : 2710124130 [10:59:11]line Аи-92-К-5 [10:59:11]line 4.490 x 66.90 [10:59:11]line ИТОГ: 300.38 [10:59:11]line Тип оплаты: Технологический отпуск: [10:59:11]line ______________________ [10:59:11]line (подпись) [10:59:11]written 0, free lines is 4095 [10:59:11]Write to MH i2c: 01 00 00 9F 2F CE [10:59:11]Write i2c OK [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: 01 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: 01 07 00 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: 01 07 00 9F 2F 00 00 00 00 00 2A 0E 0D [10:59:11]RasterBufferAndPrint [10:59:11]line [10:59:11]line [10:59:11]line [10:59:11]line [10:59:11]line [10:59:11]written 0, free lines is 3627 [10:59:11]MH_Cut [10:59:11]Write to MH i2c: D1 01 00 A6 2F 01 A7 [10:59:11]Write i2c OK [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: D1 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: D1 01 00 [10:59:11]MH_I2C_Read... [10:59:11]Read from MH i2c: D1 01 00 A6 2F 00 A6 [10:59:11]Write to MH i2c: 01 00 00 A7 2F D6 [10:59:11]Write i2c OK [10:59:11]MH_I2C_Read... [10:59:12]*** Cut start [10:59:12]*** Partial cut [10:59:12]*** CUTSNS_PIN = 1 [10:59:12]*** CUTSNS_PIN = 0 [10:59:12]*** Brake cut motor [10:59:12]Read from MH i2c: 01 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: 01 07 00 [10:59:12]MH_I2C_Read... [10:59:12]*** Stop cut motor [10:59:12]*** Cut end [10:59:12]Read from MH i2c: 01 07 00 A7 2F 00 00 00 00 00 FF 0F EB [10:59:12]process_action print_text done [10:59:12]requested_data is exist [10:59:12]produce_requested_data [10:59:12]requested_item fm.sn is exist - process it [10:59:12]wFMCommunicate request_size=4 [10:59:12]MH_SAM_APDU [10:59:12]CAPDU: 80 11 00 00 [10:59:12]Write to MH i2c: E2 08 00 A8 2F 80 11 00 00 00 00 00 00 51 [10:59:12]Write i2c OK [10:59:12]MH_I2C_Read... [10:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:12]Read from MH i2c: E2 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: E2 17 00 [10:59:12]MH_I2C_Read... [10:59:12]Read from MH i2c: E2 17 00 A8 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A4 [10:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:59:12]wFMCommunicate OK [10:59:12]requested_item fd.num is exist - process it [10:59:12]SAM_PROTO_GetFieldsCounters [10:59:12]wFMCommunicate request_size=4 [10:59:12]MH_SAM_APDU [10:59:12]CAPDU: 80 13 00 00 [10:59:12]Write to MH i2c: E2 08 00 A9 2F 80 13 00 00 00 00 00 00 54 [10:59:12]Write i2c OK [10:59:12]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 62 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 62 00 A9 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [10:59:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:13]wFMCommunicate OK [10:59:13]SAM_PROTO_GetFieldsCounters done [10:59:13]requested_item shift.num is exist - process it [10:59:13]requested_item shift.opened is exist - process it [10:59:13]req_shift_opened [10:59:13]FM_GetShiftState [10:59:13]SAM_PROTO_GetShiftState [10:59:13]wFMCommunicate request_size=4 [10:59:13]MH_SAM_APDU [10:59:13]CAPDU: 80 13 01 00 [10:59:13]Write to MH i2c: E2 08 00 AA 2F 80 13 01 00 00 00 00 00 56 [10:59:13]Write i2c OK [10:59:13]MH_I2C_Read... [10:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:13]Read from MH i2c: E2 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 0E 00 [10:59:13]MH_I2C_Read... [10:59:13]Read from MH i2c: E2 0E 00 AA 2F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A6 [10:59:13]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:59:13]wFMCommunicate OK [10:59:13]SAM_PROTO_GetShiftState done [10:59:13]FM_GetShiftState done [10:59:13]req_shift_opened done [10:59:13]requested_item shift.open_date is exist - process it [10:59:13]req_shift_open_date [10:59:13]req_shift_open_date done [10:59:13]produce_requested_data done [10:59:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192516,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:59:13]process_action_free print_text [10:59:13]json_value_free [10:59:13]json_value_free done [10:59:13]process_json_proto returns [10:59:13]Send response to host [10:59:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192516,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:59:13]free response buf [10:59:13]execute_script done [10:59:13]execute_script returns [10:59:13]free content buf [10:59:13]Sock 7.Close socket [10:59:13]Sock 7.Thread stoped [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:32]accept exits with 9 [10:59:32]New connection [10:59:32]New thread 3066563940 created [10:59:32]Thread 3066707300 joined [10:59:32]Waiting for new connection... [10:59:32] Sock 9.Parse request [10:59:32]Sock 9.Check first char [10:59:32]Sock 9.First char is OK [10:59:32]request: POST /json_proto HTTP/1.0 [10:59:32]Method: POST [10:59:32]URL: /json_proto [10:59:32]Method is POST - this is cgi request [10:59:32]url: /json_proto [10:59:32]query_string will be loaded in cgi processing [10:59:32]execute_cgi json_proto POST (null) [10:59:32]execute_cgi path=json_proto method=POST [10:59:32]POST find Content-Length [10:59:32]Host: 172.17.63.131:8080 [10:59:32]Content-Length: 1187 [10:59:32]Content-Type: application/json [10:59:32] [10:59:32]POST finish read [10:59:32]Found Content-Length = 1187 [10:59:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 170\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)31834\u000A28.10.2024 10:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.480 x 66.90\u000A\u0418\u0422\u041E\u0413: 500.41\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:32]execute_script... [10:59:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 170\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)31834\u000A28.10.2024 10:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.480 x 66.90\u000A\u0418\u0422\u041E\u0413: 500.41\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:32]POST & json_proto [10:59:32]process_json_proto [10:59:32]json parsed OK: [10:59:32]protocol is kg_v1.0 [10:59:32]action value=print_text [10:59:32]process_action print_text [10:59:32]cmd_print_text [10:59:32]ExternCall_PrintAddStr [10:59:32]wPrintStart [10:59:32]Write to MH i2c: 01 00 00 AB 2F DA [10:59:32]Write i2c OK [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: 01 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: 01 07 00 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: 01 07 00 AB 2F 00 00 00 00 00 FF 0F EF [10:59:32]RasterBufferAndPrint [10:59:32]line *****ТОВАРНЫЙ ЧЕК***** [10:59:32]line АЗС 170 [10:59:32]line Партнер нефть [10:59:32]line 02508201610067 [10:59:32]line Кассир : Курбанов М. [10:59:32]line Счет N : (1)31834 [10:59:32]line 28.10.2024 10:27 [10:59:32]line ПРОДАЖА [10:59:32]line ТРК (МРК, ГНК): 12 [10:59:32]line Вид ГСМ : 2710124130 [10:59:32]line Аи-92-К-5 [10:59:32]line 7.480 x 66.90 [10:59:32]line ИТОГ: 500.41 [10:59:32]line Тип оплаты: Технологический отпуск: [10:59:32]line ______________________ [10:59:32]line (подпись) [10:59:32]written 0, free lines is 4095 [10:59:32]Write to MH i2c: 01 00 00 BE 2F ED [10:59:32]Write i2c OK [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: 01 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: 01 07 00 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: 01 07 00 BE 2F 00 00 00 00 00 29 0E 2B [10:59:32]RasterBufferAndPrint [10:59:32]line [10:59:32]line [10:59:32]line [10:59:32]line [10:59:32]line [10:59:32]written 0, free lines is 3626 [10:59:32]MH_Cut [10:59:32]Write to MH i2c: D1 01 00 C5 2F 01 C6 [10:59:32]Write i2c OK [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: D1 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: D1 01 00 [10:59:32]MH_I2C_Read... [10:59:32]Read from MH i2c: D1 01 00 C5 2F 00 C5 [10:59:32]Write to MH i2c: 01 00 00 C6 2F F5 [10:59:32]Write i2c OK [10:59:32]MH_I2C_Read... [10:59:33]*** Cut start [10:59:33]*** Partial cut [10:59:33]*** CUTSNS_PIN = 1 [10:59:33]*** CUTSNS_PIN = 0 [10:59:33]*** Brake cut motor [10:59:34]Read from MH i2c: 01 [10:59:34]MH_I2C_Read... [10:59:34]Read from MH i2c: 01 07 00 [10:59:34]MH_I2C_Read... [10:59:34]*** Stop cut motor [10:59:34]*** Cut end [10:59:34]Read from MH i2c: 01 07 00 C6 2F 00 00 00 00 00 FF 0F 0A [10:59:34]process_action print_text done [10:59:34]requested_data is exist [10:59:34]produce_requested_data [10:59:34]requested_item fm.sn is exist - process it [10:59:34]wFMCommunicate request_size=4 [10:59:34]MH_SAM_APDU [10:59:34]CAPDU: 80 11 00 00 [10:59:34]Write to MH i2c: E2 08 00 C7 2F 80 11 00 00 00 00 00 00 70 [10:59:34]Write i2c OK [10:59:34]MH_I2C_Read... [10:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:34]Read from MH i2c: E2 [10:59:34]MH_I2C_Read... [10:59:34]Read from MH i2c: E2 17 00 [10:59:34]MH_I2C_Read... [10:59:34]Read from MH i2c: E2 17 00 C7 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [10:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:59:34]wFMCommunicate OK [10:59:34]requested_item fd.num is exist - process it [10:59:34]SAM_PROTO_GetFieldsCounters [10:59:34]wFMCommunicate request_size=4 [10:59:34]MH_SAM_APDU [10:59:34]CAPDU: 80 13 00 00 [10:59:34]Write to MH i2c: E2 08 00 C8 2F 80 13 00 00 00 00 00 00 73 [10:59:34]Write i2c OK [10:59:34]MH_I2C_Read... [10:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:34]Read from MH i2c: E2 [10:59:34]MH_I2C_Read... [10:59:34]Read from MH i2c: E2 62 00 [10:59:34]MH_I2C_Read... [10:59:34]Read from MH i2c: E2 62 00 C8 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [10:59:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:34]wFMCommunicate OK [10:59:34]SAM_PROTO_GetFieldsCounters done [10:59:34]requested_item shift.num is exist - process it [10:59:34]requested_item shift.opened is exist - process it [10:59:34]req_shift_opened [10:59:34]FM_GetShiftState [10:59:34]SAM_PROTO_GetShiftState [10:59:34]wFMCommunicate request_size=4 [10:59:34]MH_SAM_APDU [10:59:34]CAPDU: 80 13 01 00 [10:59:34]Write to MH i2c: E2 08 00 C9 2F 80 13 01 00 00 00 00 00 75 [10:59:34]Write i2c OK [10:59:34]MH_I2C_Read... [10:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:34]Read from MH i2c: E2 [10:59:34]MH_I2C_Read... [10:59:34]Read from MH i2c: E2 0E 00 [10:59:34]MH_I2C_Read... [10:59:34]Read from MH i2c: E2 0E 00 C9 2F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C5 [10:59:34]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [10:59:34]wFMCommunicate OK [10:59:34]SAM_PROTO_GetShiftState done [10:59:34]FM_GetShiftState done [10:59:34]req_shift_opened done [10:59:34]requested_item shift.open_date is exist - process it [10:59:34]req_shift_open_date [10:59:34]req_shift_open_date done [10:59:34]produce_requested_data done [10:59:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192516,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [10:59:34]process_action_free print_text [10:59:34]json_value_free [10:59:34]json_value_free done [10:59:34]process_json_proto returns [10:59:34]Send response to host [10:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192516,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [10:59:34]free response buf [10:59:34]execute_script done [10:59:34]execute_script returns [10:59:34]free content buf [10:59:34]Sock 9.Close socket [10:59:34]Sock 9.Thread stoped [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:40]int [10:59:40]Write to MH i2c: 01 00 00 CA 2F F9 [10:59:40]*** FLAG_PRN_PAP1 set [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: 01 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: 01 07 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: 01 07 00 CA 2F 00 01 00 00 00 FF 0F 0F [10:59:40]state=0 [10:59:40]No paper [10:59:40]int [10:59:40]Write to MH i2c: 01 00 00 CB 2F FA [10:59:40]*** FLAG_PRN_PAP2 set [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: 01 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: 01 07 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: 01 07 00 CB 2F 00 03 00 00 00 FF 0F 12 [10:59:40]state=0 [10:59:40]No paper [10:59:40]Cover opened [10:59:44]OFD Sender: No OFD packet to send [10:59:45]Write to MH i2c: 01 00 00 CC 2F FB [10:59:45]Write i2c OK [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: 01 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: 01 07 00 [10:59:45]MH_I2C_Read... [10:59:45]Read from MH i2c: 01 07 00 CC 2F 00 03 00 00 00 FF 0F 13 [10:59:45]state=3 [10:59:45]No paper [10:59:45]Cover opened [10:59:49]OFD Sender: No OFD packet to send [10:59:50]Write to MH i2c: 01 00 00 CD 2F FC [10:59:50]Write i2c OK [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: 01 [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: 01 07 00 [10:59:50]MH_I2C_Read... [10:59:50]Read from MH i2c: 01 07 00 CD 2F 00 03 00 00 00 FF 0F 14 [10:59:50]state=3 [10:59:50]No paper [10:59:50]Cover opened [10:59:53]int [10:59:53]Write to MH i2c: 01 00 00 CE 2F FD [10:59:53]Write i2c OK [10:59:53]MH_I2C_Read... [10:59:53]Read from MH i2c: 01 [10:59:53]MH_I2C_Read... [10:59:53]Read from MH i2c: 01 07 00 [10:59:53]MH_I2C_Read... [10:59:53]*** FLAG_PRN_PAP2 reset [10:59:53]*** FLAG_PRN_PAP1 reset [10:59:53]Read from MH i2c: 01 07 00 CE 2F 00 00 00 00 00 FF 0F 12 [10:59:53]state=3 [10:59:53]Cover closed [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:45]accept exits with 7 [11:00:45]New connection [11:00:45]New thread 3066707300 created [11:00:45]Thread 3066563940 joined [11:00:45]Waiting for new connection... [11:00:45] Sock 7.Parse request [11:00:45]Sock 7.Check first char [11:00:45]Sock 7.First char is OK [11:00:45]request: POST /json_proto HTTP/1.0 [11:00:45]Method: POST [11:00:45]URL: /json_proto [11:00:45]Method is POST - this is cgi request [11:00:45]url: /json_proto [11:00:45]query_string will be loaded in cgi processing [11:00:45]execute_cgi json_proto POST (null) [11:00:45]execute_cgi path=json_proto method=POST [11:00:45]POST find Content-Length [11:00:45]Host: 172.17.63.131:8080 [11:00:45]Content-Length: 676 [11:00:45]Content-Type: application/json [11:00:45] [11:00:45]POST finish read [11:00:45]Found Content-Length = 676 [11:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:45]execute_script... [11:00:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:45]POST & json_proto [11:00:45]process_json_proto [11:00:45]json parsed OK: [11:00:45]protocol is kg_v1.0 [11:00:45]action value=close_receipt [11:00:45]process_action close_receipt [11:00:45]cmd_close_receipt [11:00:45]MH_GetDate [11:00:45]Write to MH i2c: F0 00 00 CF 2F ED [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: F0 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: F0 09 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: F0 09 00 CF 2F 00 E2 6E 1F 67 22 05 6E 64 C5 [11:00:45]GetLastDocTimeStamp 1730112670 [11:00:45]current date 1730113250 [11:00:45]FM_GetShiftState [11:00:45]SAM_PROTO_GetShiftState [11:00:45]wFMCommunicate request_size=4 [11:00:45]MH_SAM_APDU [11:00:45]CAPDU: 80 13 01 00 [11:00:45]Write to MH i2c: E2 08 00 D0 2F 80 13 01 00 00 00 00 00 7C [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:45]Read from MH i2c: E2 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 0E 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: E2 0E 00 D0 2F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CC [11:00:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:00:45]wFMCommunicate OK [11:00:45]SAM_PROTO_GetShiftState done [11:00:45]FM_GetShiftState done [11:00:45]opened in 1730075620 [11:00:45]opened+sec_in_day 1730162020 [11:00:45]quantity*price = 30038 [11:00:45]sum+1 = 30039 [11:00:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 65 28.10.2024 11:00 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192517 ФПД: 156324755639362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T110050&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192517&fm=156324755639362&tin=02508201610067®Number=0000000000091776&sum=30000 [11:00:46]StoreToDocumentArchive [11:00:46]shift 543 fd 192517 [11:00:46]save to /storage/0543/doc_00192517 [11:00:46]save last doc name /storage/0543/doc_00192517 to /storage/kkm_last_doc_name [11:00:46]save OK [11:00:46]Clear old archive folders... [11:00:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:46]tlvbuf is 01A66590 [11:00:46]SAM_PROTO_ClearQueue [11:00:46]wFMCommunicate request_size=4 [11:00:46]MH_SAM_APDU [11:00:46]CAPDU: 80 09 00 00 [11:00:46]Write to MH i2c: E2 08 00 DD 2F 80 09 00 00 00 00 00 00 7E [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:46]Read from MH i2c: E2 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 DD 2F 00 90 00 80 [11:00:46]RAPDU: 90 00 [11:00:46]wFMCommunicate OK [11:00:46]SAM_PROTO_ClearQueue done [11:00:46]KKMCreateOFDPacket [11:00:46]OFDProtocolAddRootSTLVToBuf [11:00:46]FM_MakeSignedData [11:00:46]FM_MakeSignedData [11:00:46]SAM_PROTO_SignData [11:00:46]wFMCommunicate request_size=4 [11:00:46]MH_SAM_APDU [11:00:46]CAPDU: 80 0D 01 02 [11:00:46]Write to MH i2c: E2 08 00 DE 2F 80 0D 01 02 00 00 00 00 86 [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:46]Read from MH i2c: E2 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 DE 2F 00 90 00 81 [11:00:46]RAPDU: 90 00 [11:00:46]wFMCommunicate OK [11:00:46]wFMCommunicate request_size=255 [11:00:46]MH_SAM_APDU [11:00:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E2 6E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 F0 02 00 35 04 06 00 8E [11:00:46]Write to MH i2c: E2 02 01 DF 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E2 6E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 F0 02 00 35 04 06 00 8E 00 00 CB [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:46]Read from MH i2c: E2 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 DF 2F 00 90 00 82 [11:00:46]RAPDU: 90 00 [11:00:46]wFMCommunicate OK [11:00:46]wFMCommunicate request_size=10 [11:00:46]MH_SAM_APDU [11:00:46]CAPDU: 80 0D 02 02 05 2D 31 87 8C 42 [11:00:46]Write to MH i2c: E2 0D 00 E0 2F 80 0D 02 02 05 00 2D 31 87 8C 42 00 00 46 [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:46]Read from MH i2c: E2 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 03 00 E0 2F 00 90 00 83 [11:00:46]RAPDU: 90 00 [11:00:46]wFMCommunicate OK [11:00:46]wFMCommunicate request_size=4 [11:00:46]MH_SAM_APDU [11:00:46]CAPDU: 80 0D 03 02 [11:00:46]Write to MH i2c: E2 08 00 E1 2F 80 0D 03 02 00 00 00 00 8B [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:47]Read from MH i2c: E2 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 0B 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 0B 00 E1 2F 00 E1 EB EE 7C 8A 5A 34 61 90 00 3B [11:00:47]RAPDU: E1 EB EE 7C 8A 5A 34 61 90 00 [11:00:47]wFMCommunicate OK [11:00:47]SAM_PROTO_SignData done [11:00:47]FM_MakeSignedData done [11:00:47]CreateOFDProtocolMessage [11:00:47]wFMCommunicate request_size=4 [11:00:47]MH_SAM_APDU [11:00:47]CAPDU: 80 11 00 00 [11:00:47]Write to MH i2c: E2 08 00 E2 2F 80 11 00 00 00 00 00 00 8B [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:47]Read from MH i2c: E2 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 17 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: E2 17 00 E2 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DE [11:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:00:47]wFMCommunicate OK [11:00:47]CreateOFDProtocolMessage done [11:00:47]OFDSenderStorePacket 192517 [11:00:47]StoreOFDPacket docnum=192517 [11:00:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1C EB 07 01 00 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E2 6E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 F0 02 00 35 04 06 00 8E 2D 31 87 8C 42 E1 EB EE 7C 8A 5A 34 61 [11:00:47]CheckFolder [11:00:47]dirname=/storage/ofd_packets [11:00:47]CheckFolder done [11:00:47]ProducePacketName [11:00:47]name=ofd_packets/00192517 [11:00:47]NVStorageSaveData ofd_packets/00192517 [11:00:47]File name is /storage/ofd_packets/00192517 [11:00:47]Write 301 bytes [11:00:47]NVStorageSaveData done [11:00:47]OFDSenderStorePacket done [11:00:47]KKMCreateOFDPacket done [11:00:47]NVStorageSaveData kkm_last_timestamp [11:00:47]File name is /storage/kkm_last_timestamp [11:00:47]Write 4 bytes [11:00:47]NVStorageSaveData done [11:00:47]OFD Sender: Processing packet 192517 [packets to send 75, broken 74] [11:00:47]ProducePacketName [11:00:47]name=ofd_packets/00192517 [11:00:47]OFD Sender: To server: pG, [11:00:47]CommunicateWithHost lk.salyk.kg:30040 [11:00:47]ConnectInit lk.salyk.kg [11:00:47]ExternCall_PrintAddStr [11:00:47]wPrintStart [11:00:47]Write to MH i2c: 01 00 00 E3 2F 12 [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 07 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 07 00 E3 2F 00 00 00 00 00 FF 0F 27 [11:00:47]RasterBufferAndPrint [11:00:47]line Счет N : (1)31835 [11:00:47]line ИНН: 02508201610067 [11:00:47]line Контрольно-Кассовый Чек [11:00:47]line ПРОДАЖА [11:00:47]line ТРК (МРК, ГНК) : 12 [11:00:47]line Товар: 2710124130 [11:00:47]line Аи-92-К-5 [11:00:47]line 4.490 * 66.90 [11:00:47]line = 300.38 [11:00:47]line НДС 12% НСП 1% [11:00:47]line > о реализуемом товаре [11:00:47]line ОКРУГЛЕНИЕ: -0.38 [11:00:47]line ИТОГО: 300.00 [11:00:47]line Внесено: 300.00 [11:00:47]line СДАЧА: 0.00 [11:00:47]line НСП 1% : 2.66 [11:00:47]line НДС 12% : 31.90 [11:00:47]line Наличными: 300.00 [11:00:47]line Безнал.: 0.00 [11:00:47]line Место: АЗС № 170 "Партнер Нефть" [11:00:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:00:47]line СНО: Общий режим [11:00:47]line Чек 65 28.10.2024 11:00 [11:00:47]line Смена: 543 ФФД: 1.0 [11:00:47]line ЗНМ: 0300000110 [11:00:47]line РНМ: 0000000000091776 [11:00:47]line Версия ККМ: 001 [11:00:47]line ФМ: 0000000000871754 [11:00:47]line ФД: 192517 [11:00:47]line ФПД: 156324755639362 [11:00:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T110050&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192517&fm=156324755639362&tin=02508201610067®Number=0000000000091776&sum=30000 [11:00:47]written 0, free lines is 4095 [11:00:47]Connected sock=11 [11:00:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1C EB 07 01 00 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E2 6E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 F0 02 00 35 04 06 00 8E 2D 31 87 8C 42 E1 EB EE 7C 8A 5A 34 61 [11:00:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C0 F1 47 00 D4 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 F0 02 00 F4 03 04 00 A6 13 1F 67 B6 04 01 00 00 D0 44 1A 7A ED E3 05 68 [11:00:47]CommunicateWithHost err = 0 [11:00:47]CheckOFDResponse [11:00:47]1017 (14) - 77093643461234 [11:00:47]1041 (16) - 0000000000871754 [11:00:47]1040 (4) - 192517 [11:00:47]1012 (4) - 28.10.2024 04:31 [11:00:47]1206 (1) - 0 [11:00:47]OFD Sender: Remove packet 192517 [11:00:47]ProducePacketName [11:00:47]name=ofd_packets/00192517 [11:00:47]NVStorageDeleteData [11:00:47]Write to MH i2c: 01 00 00 0E 30 3E [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 07 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: 01 07 00 0E 30 00 00 00 00 00 A3 0C F4 [11:00:47]RasterBufferAndPrint [11:00:47]line [11:00:47]line [11:00:47]line [11:00:47]line [11:00:47]line [11:00:47]written 0, free lines is 3241 [11:00:47]MH_Cut [11:00:47]Write to MH i2c: D1 01 00 15 30 01 17 [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: D1 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: D1 01 00 [11:00:47]MH_I2C_Read... [11:00:47]Read from MH i2c: D1 01 00 15 30 00 16 [11:00:47]Write to MH i2c: 01 00 00 16 30 46 [11:00:47]Write i2c OK [11:00:47]MH_I2C_Read... [11:00:47]OFD Sender: No OFD packet to send [11:00:48]*** Cut start [11:00:48]*** Partial cut [11:00:48]*** CUTSNS_PIN = 1 [11:00:48]*** CUTSNS_PIN = 0 [11:00:48]*** Brake cut motor [11:00:49]Read from MH i2c: 01 [11:00:49]MH_I2C_Read... [11:00:49]*** Stop cut motor [11:00:49]*** Cut end [11:00:49]Read from MH i2c: 01 07 00 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: 01 07 00 16 30 00 00 00 00 00 FF 0F 5B [11:00:49]process_action close_receipt done [11:00:49]requested_data is exist [11:00:49]produce_requested_data [11:00:49]requested_item fm.sn is exist - process it [11:00:49]wFMCommunicate request_size=4 [11:00:49]MH_SAM_APDU [11:00:49]CAPDU: 80 11 00 00 [11:00:49]Write to MH i2c: E2 08 00 17 30 80 11 00 00 00 00 00 00 C1 [11:00:49]Write i2c OK [11:00:49]MH_I2C_Read... [11:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:49]Read from MH i2c: E2 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: E2 17 00 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: E2 17 00 17 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 14 [11:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:00:49]wFMCommunicate OK [11:00:49]requested_item fd.num is exist - process it [11:00:49]SAM_PROTO_GetFieldsCounters [11:00:49]wFMCommunicate request_size=4 [11:00:49]MH_SAM_APDU [11:00:49]CAPDU: 80 13 00 00 [11:00:49]Write to MH i2c: E2 08 00 18 30 80 13 00 00 00 00 00 00 C4 [11:00:49]Write i2c OK [11:00:49]MH_I2C_Read... [11:00:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:49]Read from MH i2c: E2 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: E2 62 00 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: E2 62 00 18 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [11:00:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:49]wFMCommunicate OK [11:00:49]SAM_PROTO_GetFieldsCounters done [11:00:49]requested_item shift.num is exist - process it [11:00:49]requested_item shift.opened is exist - process it [11:00:49]req_shift_opened [11:00:49]FM_GetShiftState [11:00:49]SAM_PROTO_GetShiftState [11:00:49]wFMCommunicate request_size=4 [11:00:49]MH_SAM_APDU [11:00:49]CAPDU: 80 13 01 00 [11:00:49]Write to MH i2c: E2 08 00 19 30 80 13 01 00 00 00 00 00 C6 [11:00:49]Write i2c OK [11:00:49]MH_I2C_Read... [11:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:49]Read from MH i2c: E2 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: E2 0E 00 [11:00:49]MH_I2C_Read... [11:00:49]Read from MH i2c: E2 0E 00 19 30 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 16 [11:00:49]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:00:49]wFMCommunicate OK [11:00:49]SAM_PROTO_GetShiftState done [11:00:49]FM_GetShiftState done [11:00:49]req_shift_opened done [11:00:49]requested_item shift.open_date is exist - process it [11:00:49]req_shift_open_date [11:00:49]req_shift_open_date done [11:00:49]produce_requested_data done [11:00:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192517,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:00:49]process_action_free close_receipt [11:00:49]json_value_free [11:00:49]json_value_free done [11:00:49]process_json_proto returns [11:00:49]Send response to host [11:00:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192517,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:00:49]free response buf [11:00:49]execute_script done [11:00:49]execute_script returns [11:00:49]free content buf [11:00:49]Sock 7.Close socket [11:00:49]Sock 7.Thread stoped [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]accept exits with 9 [11:02:22]New connection [11:02:22]New thread 3066563940 created [11:02:22]Thread 3066707300 joined [11:02:22]Waiting for new connection... [11:02:22] Sock 9.Parse request [11:02:22]Sock 9.Check first char [11:02:22]Sock 9.First char is OK [11:02:22]request: POST /json_proto HTTP/1.0 [11:02:22]Method: POST [11:02:22]URL: /json_proto [11:02:22]Method is POST - this is cgi request [11:02:22]url: /json_proto [11:02:22]query_string will be loaded in cgi processing [11:02:22]execute_cgi json_proto POST (null) [11:02:22]execute_cgi path=json_proto method=POST [11:02:22]POST find Content-Length [11:02:22]Host: 172.17.63.131:8080 [11:02:22]Content-Length: 1188 [11:02:22]Content-Type: application/json [11:02:22] [11:02:22]POST finish read [11:02:22]Found Content-Length = 1188 [11:02:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 170\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)31836\u000A28.10.2024 10:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 11.960 x 66.90\u000A\u0418\u0422\u041E\u0413: 800.12\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:22]execute_script... [11:02:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 170\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)31836\u000A28.10.2024 10:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 11.960 x 66.90\u000A\u0418\u0422\u041E\u0413: 800.12\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:22]POST & json_proto [11:02:22]process_json_proto [11:02:22]json parsed OK: [11:02:22]protocol is kg_v1.0 [11:02:22]action value=print_text [11:02:22]process_action print_text [11:02:22]cmd_print_text [11:02:22]ExternCall_PrintAddStr [11:02:22]wPrintStart [11:02:22]Write to MH i2c: 01 00 00 1A 30 4A [11:02:22]Write i2c OK [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 07 00 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 07 00 1A 30 00 00 00 00 00 FF 0F 5F [11:02:22]RasterBufferAndPrint [11:02:22]line *****ТОВАРНЫЙ ЧЕК***** [11:02:22]line АЗС 170 [11:02:22]line Партнер нефть [11:02:22]line 02508201610067 [11:02:22]line Кассир : Курбанов М. [11:02:22]line Счет N : (1)31836 [11:02:22]line 28.10.2024 10:29 [11:02:22]line ПРОДАЖА [11:02:22]line ТРК (МРК, ГНК): 12 [11:02:22]line Вид ГСМ : 2710124130 [11:02:22]line Аи-92-К-5 [11:02:22]line 11.960 x 66.90 [11:02:22]line ИТОГ: 800.12 [11:02:22]line Тип оплаты: Технологический отпуск: [11:02:22]line ______________________ [11:02:22]line (подпись) [11:02:22]written 0, free lines is 4095 [11:02:22]Write to MH i2c: 01 00 00 2D 30 5D [11:02:22]Write i2c OK [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 07 00 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: 01 07 00 2D 30 00 00 00 00 00 2A 0E 9C [11:02:22]RasterBufferAndPrint [11:02:22]line [11:02:22]line [11:02:22]line [11:02:22]line [11:02:22]line [11:02:22]written 0, free lines is 3627 [11:02:22]MH_Cut [11:02:22]Write to MH i2c: D1 01 00 34 30 01 36 [11:02:22]Write i2c OK [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: D1 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: D1 01 00 [11:02:22]MH_I2C_Read... [11:02:22]Read from MH i2c: D1 01 00 34 30 00 35 [11:02:22]Write to MH i2c: 01 00 00 35 30 65 [11:02:22]Write i2c OK [11:02:22]MH_I2C_Read... [11:02:22]OFD Sender: No OFD packet to send [11:02:23]*** Cut start [11:02:23]*** Partial cut [11:02:23]*** CUTSNS_PIN = 1 [11:02:23]*** CUTSNS_PIN = 0 [11:02:23]*** Brake cut motor [11:02:23]Read from MH i2c: 01 [11:02:23]MH_I2C_Read... [11:02:23]*** Stop cut motor [11:02:23]*** Cut end [11:02:23]Read from MH i2c: 01 07 00 [11:02:23]MH_I2C_Read... [11:02:23]Read from MH i2c: 01 07 00 35 30 00 00 00 00 00 FF 0F 7A [11:02:23]process_action print_text done [11:02:23]requested_data is exist [11:02:23]produce_requested_data [11:02:23]requested_item fm.sn is exist - process it [11:02:23]wFMCommunicate request_size=4 [11:02:23]MH_SAM_APDU [11:02:23]CAPDU: 80 11 00 00 [11:02:23]Write to MH i2c: E2 08 00 36 30 80 11 00 00 00 00 00 00 E0 [11:02:23]Write i2c OK [11:02:23]MH_I2C_Read... [11:02:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:23]Read from MH i2c: E2 [11:02:23]MH_I2C_Read... [11:02:23]Read from MH i2c: E2 17 00 [11:02:23]MH_I2C_Read... [11:02:23]Read from MH i2c: E2 17 00 36 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 33 [11:02:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:02:23]wFMCommunicate OK [11:02:23]requested_item fd.num is exist - process it [11:02:23]SAM_PROTO_GetFieldsCounters [11:02:23]wFMCommunicate request_size=4 [11:02:23]MH_SAM_APDU [11:02:23]CAPDU: 80 13 00 00 [11:02:23]Write to MH i2c: E2 08 00 37 30 80 13 00 00 00 00 00 00 E3 [11:02:23]Write i2c OK [11:02:23]MH_I2C_Read... [11:02:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:24]Read from MH i2c: E2 [11:02:24]MH_I2C_Read... [11:02:24]Read from MH i2c: E2 62 00 [11:02:24]MH_I2C_Read... [11:02:24]Read from MH i2c: E2 62 00 37 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [11:02:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:24]wFMCommunicate OK [11:02:24]SAM_PROTO_GetFieldsCounters done [11:02:24]requested_item shift.num is exist - process it [11:02:24]requested_item shift.opened is exist - process it [11:02:24]req_shift_opened [11:02:24]FM_GetShiftState [11:02:24]SAM_PROTO_GetShiftState [11:02:24]wFMCommunicate request_size=4 [11:02:24]MH_SAM_APDU [11:02:24]CAPDU: 80 13 01 00 [11:02:24]Write to MH i2c: E2 08 00 38 30 80 13 01 00 00 00 00 00 E5 [11:02:24]Write i2c OK [11:02:24]MH_I2C_Read... [11:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:24]Read from MH i2c: E2 [11:02:24]MH_I2C_Read... [11:02:24]Read from MH i2c: E2 0E 00 [11:02:24]MH_I2C_Read... [11:02:24]Read from MH i2c: E2 0E 00 38 30 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 35 [11:02:24]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:02:24]wFMCommunicate OK [11:02:24]SAM_PROTO_GetShiftState done [11:02:24]FM_GetShiftState done [11:02:24]req_shift_opened done [11:02:24]requested_item shift.open_date is exist - process it [11:02:24]req_shift_open_date [11:02:24]req_shift_open_date done [11:02:24]produce_requested_data done [11:02:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192517,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:02:24]process_action_free print_text [11:02:24]json_value_free [11:02:24]json_value_free done [11:02:24]process_json_proto returns [11:02:24]Send response to host [11:02:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192517,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:02:24]free response buf [11:02:24]execute_script done [11:02:24]execute_script returns [11:02:24]free content buf [11:02:24]Sock 9.Close socket [11:02:24]Sock 9.Thread stoped [11:02:27]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:23]accept exits with 7 [11:04:23]New connection [11:04:23]New thread 3066707300 created [11:04:23]Thread 3066563940 joined [11:04:23]Waiting for new connection... [11:04:23] Sock 7.Parse request [11:04:23]Sock 7.Check first char [11:04:23]Sock 7.First char is OK [11:04:23]request: POST /json_proto HTTP/1.0 [11:04:23]Method: POST [11:04:23]URL: /json_proto [11:04:23]Method is POST - this is cgi request [11:04:23]url: /json_proto [11:04:23]query_string will be loaded in cgi processing [11:04:23]execute_cgi json_proto POST (null) [11:04:23]execute_cgi path=json_proto method=POST [11:04:23]POST find Content-Length [11:04:23]Host: 172.17.63.131:8080 [11:04:23]Content-Length: 1187 [11:04:23]Content-Type: application/json [11:04:23] [11:04:23]POST finish read [11:04:23]Found Content-Length = 1187 [11:04:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 170\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)31837\u000A28.10.2024 10:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.480 x 66.90\u000A\u0418\u0422\u041E\u0413: 500.41\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:23]execute_script... [11:04:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 170\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)31837\u000A28.10.2024 10:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.480 x 66.90\u000A\u0418\u0422\u041E\u0413: 500.41\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:23]POST & json_proto [11:04:23]process_json_proto [11:04:23]json parsed OK: [11:04:23]protocol is kg_v1.0 [11:04:23]action value=print_text [11:04:23]process_action print_text [11:04:23]cmd_print_text [11:04:23]ExternCall_PrintAddStr [11:04:23]wPrintStart [11:04:23]Write to MH i2c: 01 00 00 39 30 69 [11:04:23]Write i2c OK [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: 01 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: 01 07 00 [11:04:23]MH_I2C_Read... [11:04:23]Read from MH i2c: 01 07 00 39 30 00 00 00 00 00 FF 0F 7E [11:04:23]RasterBufferAndPrint [11:04:23]line *****ТОВАРНЫЙ ЧЕК***** [11:04:23]line АЗС 170 [11:04:23]line Партнер нефть [11:04:23]line 02508201610067 [11:04:23]line Кассир : Курбанов М. [11:04:23]line Счет N : (1)31837 [11:04:23]line 28.10.2024 10:31 [11:04:23]line ПРОДАЖА [11:04:23]line ТРК (МРК, ГНК): 12 [11:04:23]line Вид ГСМ : 2710124130 [11:04:23]line Аи-92-К-5 [11:04:23]line 7.480 x 66.90 [11:04:23]line ИТОГ: 500.41 [11:04:23]line Тип оплаты: Технологический отпуск: [11:04:23]line ______________________ [11:04:23]line (подпись) [11:04:23]written 0, free lines is 4095 [11:04:24]Write to MH i2c: 01 00 00 4C 30 7C [11:04:24]Write i2c OK [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: 01 [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: 01 07 00 [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: 01 07 00 4C 30 00 00 00 00 00 28 0E B9 [11:04:24]RasterBufferAndPrint [11:04:24]line [11:04:24]line [11:04:24]line [11:04:24]line [11:04:24]line [11:04:24]written 0, free lines is 3626 [11:04:24]MH_Cut [11:04:24]Write to MH i2c: D1 01 00 53 30 01 55 [11:04:24]Write i2c OK [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: D1 [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: D1 01 00 [11:04:24]MH_I2C_Read... [11:04:24]Read from MH i2c: D1 01 00 53 30 00 54 [11:04:24]Write to MH i2c: 01 00 00 54 30 84 [11:04:24]Write i2c OK [11:04:24]MH_I2C_Read... [11:04:24]*** Cut start [11:04:24]*** Partial cut [11:04:24]*** CUTSNS_PIN = 1 [11:04:24]*** CUTSNS_PIN = 0 [11:04:24]*** Brake cut motor [11:04:25]Read from MH i2c: 01 [11:04:25]MH_I2C_Read... [11:04:25]*** Stop cut motor [11:04:25]*** Cut end [11:04:25]Read from MH i2c: 01 07 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: 01 07 00 54 30 00 00 00 00 00 FF 0F 99 [11:04:25]process_action print_text done [11:04:25]requested_data is exist [11:04:25]produce_requested_data [11:04:25]requested_item fm.sn is exist - process it [11:04:25]wFMCommunicate request_size=4 [11:04:25]MH_SAM_APDU [11:04:25]CAPDU: 80 11 00 00 [11:04:25]Write to MH i2c: E2 08 00 55 30 80 11 00 00 00 00 00 00 FF [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:25]Read from MH i2c: E2 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 17 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 17 00 55 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 52 [11:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:04:25]wFMCommunicate OK [11:04:25]requested_item fd.num is exist - process it [11:04:25]SAM_PROTO_GetFieldsCounters [11:04:25]wFMCommunicate request_size=4 [11:04:25]MH_SAM_APDU [11:04:25]CAPDU: 80 13 00 00 [11:04:25]Write to MH i2c: E2 08 00 56 30 80 13 00 00 00 00 00 00 02 [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:25]Read from MH i2c: E2 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 62 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 62 00 56 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [11:04:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:25]wFMCommunicate OK [11:04:25]SAM_PROTO_GetFieldsCounters done [11:04:25]requested_item shift.num is exist - process it [11:04:25]requested_item shift.opened is exist - process it [11:04:25]req_shift_opened [11:04:25]FM_GetShiftState [11:04:25]SAM_PROTO_GetShiftState [11:04:25]wFMCommunicate request_size=4 [11:04:25]MH_SAM_APDU [11:04:25]CAPDU: 80 13 01 00 [11:04:25]Write to MH i2c: E2 08 00 57 30 80 13 01 00 00 00 00 00 04 [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:25]Read from MH i2c: E2 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 0E 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 0E 00 57 30 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 54 [11:04:25]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:04:25]wFMCommunicate OK [11:04:25]SAM_PROTO_GetShiftState done [11:04:25]FM_GetShiftState done [11:04:25]req_shift_opened done [11:04:25]requested_item shift.open_date is exist - process it [11:04:25]req_shift_open_date [11:04:25]req_shift_open_date done [11:04:25]produce_requested_data done [11:04:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192517,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:04:25]process_action_free print_text [11:04:25]json_value_free [11:04:25]json_value_free done [11:04:25]process_json_proto returns [11:04:25]Send response to host [11:04:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192517,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:04:25]free response buf [11:04:25]execute_script done [11:04:25]execute_script returns [11:04:25]free content buf [11:04:25]Sock 7.Close socket [11:04:25]Sock 7.Thread stoped [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:08]OFD Sender: No OFD packet to send [11:06:13]OFD Sender: No OFD packet to send [11:06:18]OFD Sender: No OFD packet to send [11:06:20]accept exits with 9 [11:06:20]New connection [11:06:20]New thread 3066563940 created [11:06:20]Thread 3066707300 joined [11:06:20]Waiting for new connection... [11:06:20] Sock 9.Parse request [11:06:20]Sock 9.Check first char [11:06:20]Sock 9.First char is OK [11:06:20]request: POST /json_proto HTTP/1.0 [11:06:20]Method: POST [11:06:20]URL: /json_proto [11:06:20]Method is POST - this is cgi request [11:06:20]url: /json_proto [11:06:20]query_string will be loaded in cgi processing [11:06:20]execute_cgi json_proto POST (null) [11:06:20]execute_cgi path=json_proto method=POST [11:06:20]POST find Content-Length [11:06:20]Host: 172.17.63.131:8080 [11:06:20]Content-Length: 215 [11:06:20]Content-Type: application/json [11:06:20] [11:06:20]POST finish read [11:06:20]Found Content-Length = 215 [11:06:20]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" ] } } [11:06:20]execute_script... [11:06:20]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" ] } } [11:06:20]POST & json_proto [11:06:20]process_json_proto [11:06:20]json parsed OK: [11:06:20]protocol is kg_v1.0 [11:06:20]action value=get_value [11:06:20]process_action get_value [11:06:20]cmd_get_value [11:06:20]process_action get_value done [11:06:20]requested_data is exist [11:06:20]produce_requested_data [11:06:20]requested_item kkm.sn is exist - process it [11:06:20]requested_item kkm.ver is exist - process it [11:06:20]requested_item fm.sn is exist - process it [11:06:20]wFMCommunicate request_size=4 [11:06:20]MH_SAM_APDU [11:06:20]CAPDU: 80 11 00 00 [11:06:20]Write to MH i2c: E2 08 00 58 30 80 11 00 00 00 00 00 00 02 [11:06:20]Write i2c OK [11:06:20]MH_I2C_Read... [11:06:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:20]Read from MH i2c: E2 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: E2 17 00 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: E2 17 00 58 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 55 [11:06:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:06:20]wFMCommunicate OK [11:06:20]requested_item fd.num is exist - process it [11:06:20]SAM_PROTO_GetFieldsCounters [11:06:20]wFMCommunicate request_size=4 [11:06:20]MH_SAM_APDU [11:06:20]CAPDU: 80 13 00 00 [11:06:20]Write to MH i2c: E2 08 00 59 30 80 13 00 00 00 00 00 00 05 [11:06:20]Write i2c OK [11:06:20]MH_I2C_Read... [11:06:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:20]Read from MH i2c: E2 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: E2 62 00 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: E2 62 00 59 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [11:06:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:20]wFMCommunicate OK [11:06:20]SAM_PROTO_GetFieldsCounters done [11:06:20]requested_item shift.num is exist - process it [11:06:20]requested_item shift.opened is exist - process it [11:06:20]req_shift_opened [11:06:20]FM_GetShiftState [11:06:20]SAM_PROTO_GetShiftState [11:06:20]wFMCommunicate request_size=4 [11:06:20]MH_SAM_APDU [11:06:20]CAPDU: 80 13 01 00 [11:06:20]Write to MH i2c: E2 08 00 5A 30 80 13 01 00 00 00 00 00 07 [11:06:20]Write i2c OK [11:06:20]MH_I2C_Read... [11:06:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:20]Read from MH i2c: E2 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: E2 0E 00 [11:06:20]MH_I2C_Read... [11:06:20]Read from MH i2c: E2 0E 00 5A 30 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 57 [11:06:20]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:06:20]wFMCommunicate OK [11:06:20]SAM_PROTO_GetShiftState done [11:06:20]FM_GetShiftState done [11:06:20]req_shift_opened done [11:06:20]requested_item shift.open_date is exist - process it [11:06:20]req_shift_open_date [11:06:20]req_shift_open_date done [11:06:20]produce_requested_data done [11:06:20]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192517,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:06:20]process_action_free get_value [11:06:20]json_value_free [11:06:20]json_value_free done [11:06:20]process_json_proto returns [11:06:20]Send response to host [11:06:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192517,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:06:20]free response buf [11:06:20]execute_script done [11:06:20]execute_script returns [11:06:20]free content buf [11:06:20]Sock 9.Close socket [11:06:20]Sock 9.Thread stoped [11:06:20]accept exits with 7 [11:06:20]New connection [11:06:20]New thread 3066707300 created [11:06:20]Thread 3066563940 joined [11:06:20]Waiting for new connection... [11:06:20] Sock 7.Parse request [11:06:20]Sock 7.Check first char [11:06:20]Sock 7.First char is OK [11:06:20]request: POST /json_proto HTTP/1.0 [11:06:20]Method: POST [11:06:20]URL: /json_proto [11:06:20]Method is POST - this is cgi request [11:06:20]url: /json_proto [11:06:20]query_string will be loaded in cgi processing [11:06:20]execute_cgi json_proto POST (null) [11:06:20]execute_cgi path=json_proto method=POST [11:06:20]POST find Content-Length [11:06:20]Host: 172.17.63.131:8080 [11:06:20]Content-Length: 331 [11:06:20]Content-Type: application/json [11:06:20] [11:06:20]POST finish read [11:06:20]Found Content-Length = 331 [11:06:20]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" ] } } [11:06:20]execute_script... [11:06:20]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" ] } } [11:06:20]POST & json_proto [11:06:20]process_json_proto [11:06:20]json parsed OK: [11:06:20]protocol is kg_v1.0 [11:06:20]action value=get_value [11:06:20]process_action get_value [11:06:20]cmd_get_value [11:06:20]process_action get_value done [11:06:20]requested_data is exist [11:06:20]produce_requested_data [11:06:20]requested_item fm.sale.total is exist - process it [11:06:20]SAM_PROTO_GetFMData [11:06:20]wFMCommunicate request_size=4 [11:06:20]MH_SAM_APDU [11:06:20]CAPDU: 80 13 03 00 [11:06:20]Write to MH i2c: E2 08 00 5B 30 80 13 03 00 00 00 00 00 0A [11:06:20]Write i2c OK [11:06:20]MH_I2C_Read... [11:06:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:06:21]Read from MH i2c: E2 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: E2 FD 00 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: E2 FD 00 5B 30 00 C1 04 85 04 BD 04 6E 04 04 00 C7 EB 02 00 69 04 A3 00 6F 04 04 00 BD EB 02 00 B1 04 05 00 4B 80 6E B7 03 70 04 05 00 60 77 1D 8A 03 72 04 04 00 EB 08 51 2D 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 A6 4D 13 65 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 F0 19 6C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 16 [11:06:21]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 C7 EB 02 00 69 04 A3 00 6F 04 04 00 BD EB 02 00 B1 04 05 00 4B 80 6E B7 03 70 04 05 00 60 77 1D 8A 03 72 04 04 00 EB 08 51 2D 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 A6 4D 13 65 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 F0 19 6C 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [11:06:21]wFMCommunicate OK [11:06:21]wFMCommunicate request_size=4 [11:06:21]MH_SAM_APDU [11:06:21]CAPDU: 80 17 00 00 [11:06:21]Write to MH i2c: E2 08 00 5C 30 80 17 00 00 00 00 00 00 0C [11:06:21]Write i2c OK [11:06:21]MH_I2C_Read... [11:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:06:21]Read from MH i2c: E2 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: E2 FD 00 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: E2 FD 00 5C 30 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1D [11:06:21]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:06:21]wFMCommunicate OK [11:06:21]wFMCommunicate request_size=4 [11:06:21]MH_SAM_APDU [11:06:21]CAPDU: 80 17 00 00 [11:06:21]Write to MH i2c: E2 08 00 5D 30 80 17 00 00 00 00 00 00 0D [11:06:21]Write i2c OK [11:06:21]MH_I2C_Read... [11:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:06:21]Read from MH i2c: E2 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: E2 FD 00 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: E2 FD 00 5D 30 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AD [11:06:21]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:06:21]wFMCommunicate OK [11:06:21]wFMCommunicate request_size=4 [11:06:21]MH_SAM_APDU [11:06:21]CAPDU: 80 17 00 00 [11:06:21]Write to MH i2c: E2 08 00 5E 30 80 17 00 00 00 00 00 00 0E [11:06:21]Write i2c OK [11:06:21]MH_I2C_Read... [11:06:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:06:21]Read from MH i2c: E2 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: E2 FD 00 [11:06:21]MH_I2C_Read... [11:06:21]Read from MH i2c: E2 FD 00 5E 30 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 93 [11:06:21]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [11:06:21]wFMCommunicate OK [11:06:21]wFMCommunicate request_size=4 [11:06:21]MH_SAM_APDU [11:06:21]CAPDU: 80 17 00 00 [11:06:21]Write to MH i2c: E2 08 00 5F 30 80 17 00 00 00 00 00 00 0F [11:06:21]Write i2c OK [11:06:21]MH_I2C_Read... [11:06:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [11:06:22]Read from MH i2c: E2 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: E2 DE 00 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: E2 DE 00 5F 30 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EE [11:06:22]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:06:22]wFMCommunicate OK [11:06:22]SAM_PROTO_GetFMData done [11:06:22]requested_item fm.sale_refund.total is exist - process it [11:06:22]requested_item fm.buy.total is exist - process it [11:06:22]requested_item shift.sale.total is exist - process it [11:06:22]SAM_PROTO_GetShiftData [11:06:22]wFMCommunicate request_size=4 [11:06:22]MH_SAM_APDU [11:06:22]CAPDU: 80 13 02 00 [11:06:22]Write to MH i2c: E2 08 00 60 30 80 13 02 00 00 00 00 00 0E [11:06:22]Write i2c OK [11:06:22]MH_I2C_Read... [11:06:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:06:22]Read from MH i2c: E2 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: E2 FD 00 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: E2 FD 00 60 30 00 AE 04 AA 04 AA 04 6E 04 04 00 41 00 00 00 69 04 9B 00 6F 04 04 00 41 00 00 00 B1 04 03 00 07 07 45 70 04 03 00 B4 F7 3A 72 04 03 00 53 0F 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 37 55 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6F 9C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 93 [11:06:22]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 41 00 00 00 69 04 9B 00 6F 04 04 00 41 00 00 00 B1 04 03 00 07 07 45 70 04 03 00 B4 F7 3A 72 04 03 00 53 0F 0A 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 37 55 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6F 9C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:06:22]wFMCommunicate OK [11:06:22]wFMCommunicate request_size=4 [11:06:22]MH_SAM_APDU [11:06:22]CAPDU: 80 17 00 00 [11:06:22]Write to MH i2c: E2 08 00 61 30 80 17 00 00 00 00 00 00 11 [11:06:22]Write i2c OK [11:06:22]MH_I2C_Read... [11:06:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:06:22]Read from MH i2c: E2 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: E2 FD 00 [11:06:22]MH_I2C_Read... [11:06:22]Read from MH i2c: E2 FD 00 61 30 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 33 [11:06:22]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 [11:06:22]wFMCommunicate OK [11:06:22]wFMCommunicate request_size=4 [11:06:22]MH_SAM_APDU [11:06:22]CAPDU: 80 17 00 00 [11:06:22]Write to MH i2c: E2 08 00 62 30 80 17 00 00 00 00 00 00 12 [11:06:22]Write i2c OK [11:06:22]MH_I2C_Read... [11:06:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:06:23]Read from MH i2c: E2 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: E2 FD 00 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: E2 FD 00 62 30 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C9 [11:06:23]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 [11:06:23]wFMCommunicate OK [11:06:23]wFMCommunicate request_size=4 [11:06:23]MH_SAM_APDU [11:06:23]CAPDU: 80 17 00 00 [11:06:23]Write to MH i2c: E2 08 00 63 30 80 17 00 00 00 00 00 00 13 [11:06:23]Write i2c OK [11:06:23]MH_I2C_Read... [11:06:23]OFD Sender: No OFD packet to send [11:06:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:06:23]Read from MH i2c: E2 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: E2 FD 00 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: E2 FD 00 63 30 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 85 [11:06:23]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 [11:06:23]wFMCommunicate OK [11:06:23]wFMCommunicate request_size=4 [11:06:23]MH_SAM_APDU [11:06:23]CAPDU: 80 17 00 00 [11:06:23]Write to MH i2c: E2 08 00 64 30 80 17 00 00 00 00 00 00 14 [11:06:23]Write i2c OK [11:06:23]MH_I2C_Read... [11:06:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [11:06:23]Read from MH i2c: E2 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: E2 CB 00 [11:06:23]MH_I2C_Read... [11:06:23]Read from MH i2c: E2 CB 00 64 30 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 FD [11:06:23]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 [11:06:23]wFMCommunicate OK [11:06:23]SAM_PROTO_GetShiftData done [11:06:23]requested_item shift.sale.total_cash is exist - process it [11:06:23]requested_item shift.sale_refund.total is exist - process it [11:06:23]requested_item shift.sale_refund.total_cash is exist - process it [11:06:23]requested_item shift.buy.total is exist - process it [11:06:23]requested_item shift.buy.total_cash is exist - process it [11:06:23]produce_requested_data done [11:06:23]produce_requested_data return {"fm.sale.total":159623742.19,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":45237.83,"shift.sale.total_cash":38645.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} [11:06:23]process_action_free get_value [11:06:23]json_value_free [11:06:23]json_value_free done [11:06:23]process_json_proto returns [11:06:23]Send response to host [11:06:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159623742.19,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":45237.83,"shift.sale.total_cash":38645.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}}} [11:06:23]free response buf [11:06:23]execute_script done [11:06:23]execute_script returns [11:06:23]free content buf [11:06:23]Sock 7.Close socket [11:06:23]Sock 7.Thread stoped [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:52]accept exits with 9 [11:10:52]New connection [11:10:52]New thread 3066563940 created [11:10:52]Thread 3066707300 joined [11:10:52]Waiting for new connection... [11:10:52] Sock 9.Parse request [11:10:52]Sock 9.Check first char [11:10:52]Sock 9.First char is OK [11:10:52]request: POST /json_proto HTTP/1.0 [11:10:52]Method: POST [11:10:52]URL: /json_proto [11:10:52]Method is POST - this is cgi request [11:10:52]url: /json_proto [11:10:52]query_string will be loaded in cgi processing [11:10:52]execute_cgi json_proto POST (null) [11:10:52]execute_cgi path=json_proto method=POST [11:10:52]POST find Content-Length [11:10:52]Host: 172.17.63.131:8080 [11:10:52]Content-Length: 676 [11:10:52]Content-Type: application/json [11:10:52] [11:10:52]POST finish read [11:10:52]Found Content-Length = 676 [11:10:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:52]execute_script... [11:10: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)31838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:52]POST & json_proto [11:10:52]process_json_proto [11:10:52]json parsed OK: [11:10:52]protocol is kg_v1.0 [11:10:52]action value=close_receipt [11:10:52]process_action close_receipt [11:10:52]cmd_close_receipt [11:10:52]MH_GetDate [11:10:52]Write to MH i2c: F0 00 00 65 30 84 [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: F0 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: F0 09 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: F0 09 00 65 30 00 41 71 1F 67 22 05 6E 64 BE [11:10:52]GetLastDocTimeStamp 1730113250 [11:10:52]current date 1730113857 [11:10:52]FM_GetShiftState [11:10:52]SAM_PROTO_GetShiftState [11:10:52]wFMCommunicate request_size=4 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 13 01 00 [11:10:52]Write to MH i2c: E2 08 00 66 30 80 13 01 00 00 00 00 00 13 [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:52]Read from MH i2c: E2 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 0E 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 0E 00 66 30 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 63 [11:10:52]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:10:52]wFMCommunicate OK [11:10:52]SAM_PROTO_GetShiftState done [11:10:52]FM_GetShiftState done [11:10:52]opened in 1730075620 [11:10:52]opened+sec_in_day 1730162020 [11:10:52]quantity*price = 50041 [11:10:52]sum+1 = 50042 [11:10:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 66 28.10.2024 11:10 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192518 ФПД: 276187931202636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T111057&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192518&fm=276187931202636&tin=02508201610067®Number=0000000000091776&sum=50000 [11:10:53]StoreToDocumentArchive [11:10:53]shift 543 fd 192518 [11:10:53]save to /storage/0543/doc_00192518 [11:10:53]save last doc name /storage/0543/doc_00192518 to /storage/kkm_last_doc_name [11:10:53]save OK [11:10:53]Clear old archive folders... [11:10:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:53]tlvbuf is 019F4E10 [11:10:53]SAM_PROTO_ClearQueue [11:10:53]wFMCommunicate request_size=4 [11:10:53]MH_SAM_APDU [11:10:53]CAPDU: 80 09 00 00 [11:10:53]Write to MH i2c: E2 08 00 73 30 80 09 00 00 00 00 00 00 15 [11:10:53]Write i2c OK [11:10:53]MH_I2C_Read... [11:10:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:53]Read from MH i2c: E2 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: E2 03 00 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: E2 03 00 73 30 00 90 00 17 [11:10:53]RAPDU: 90 00 [11:10:53]wFMCommunicate OK [11:10:53]SAM_PROTO_ClearQueue done [11:10:53]KKMCreateOFDPacket [11:10:53]OFDProtocolAddRootSTLVToBuf [11:10:53]FM_MakeSignedData [11:10:53]FM_MakeSignedData [11:10:53]SAM_PROTO_SignData [11:10:53]wFMCommunicate request_size=4 [11:10:53]MH_SAM_APDU [11:10:53]CAPDU: 80 0D 01 02 [11:10:53]Write to MH i2c: E2 08 00 74 30 80 0D 01 02 00 00 00 00 1D [11:10:53]Write i2c OK [11:10:53]MH_I2C_Read... [11:10:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:53]Read from MH i2c: E2 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: E2 03 00 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: E2 03 00 74 30 00 90 00 18 [11:10:53]RAPDU: 90 00 [11:10:53]wFMCommunicate OK [11:10:53]wFMCommunicate request_size=255 [11:10:53]MH_SAM_APDU [11:10: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 41 71 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 F0 02 00 35 04 06 00 FB [11:10:53]Write to MH i2c: E2 02 01 75 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 41 71 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 F0 02 00 35 04 06 00 FB 00 00 3F [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:54]Read from MH i2c: E2 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 03 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 03 00 75 30 00 90 00 19 [11:10:54]RAPDU: 90 00 [11:10:54]wFMCommunicate OK [11:10:54]wFMCommunicate request_size=10 [11:10:54]MH_SAM_APDU [11:10:54]CAPDU: 80 0D 02 02 05 31 03 87 D4 4C [11:10:54]Write to MH i2c: E2 0D 00 76 30 80 0D 02 02 05 00 31 03 87 D4 4C 00 00 05 [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:54]Read from MH i2c: E2 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 03 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 03 00 76 30 00 90 00 1A [11:10:54]RAPDU: 90 00 [11:10:54]wFMCommunicate OK [11:10:54]wFMCommunicate request_size=4 [11:10:54]MH_SAM_APDU [11:10:54]CAPDU: 80 0D 03 02 [11:10:54]Write to MH i2c: E2 08 00 77 30 80 0D 03 02 00 00 00 00 22 [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:54]Read from MH i2c: E2 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 0B 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 0B 00 77 30 00 70 34 08 A3 F6 D0 AB C3 90 00 A6 [11:10:54]RAPDU: 70 34 08 A3 F6 D0 AB C3 90 00 [11:10:54]wFMCommunicate OK [11:10:54]SAM_PROTO_SignData done [11:10:54]FM_MakeSignedData done [11:10:54]CreateOFDProtocolMessage [11:10:54]wFMCommunicate request_size=4 [11:10:54]MH_SAM_APDU [11:10:54]CAPDU: 80 11 00 00 [11:10:54]Write to MH i2c: E2 08 00 78 30 80 11 00 00 00 00 00 00 22 [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:54]Read from MH i2c: E2 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 17 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 17 00 78 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 75 [11:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:10:54]wFMCommunicate OK [11:10:54]CreateOFDProtocolMessage done [11:10:54]OFDSenderStorePacket 192518 [11:10:54]StoreOFDPacket docnum=192518 [11:10:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 73 FC 07 01 CE 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 41 71 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 F0 02 00 35 04 06 00 FB 31 03 87 D4 4C 70 34 08 A3 F6 D0 AB C3 [11:10:54]CheckFolder [11:10:54]dirname=/storage/ofd_packets [11:10:54]CheckFolder done [11:10:54]ProducePacketName [11:10:54]name=ofd_packets/00192518 [11:10:54]NVStorageSaveData ofd_packets/00192518 [11:10:54]File name is /storage/ofd_packets/00192518 [11:10:54]Write 301 bytes [11:10:54]NVStorageSaveData done [11:10:54]OFDSenderStorePacket done [11:10:54]KKMCreateOFDPacket done [11:10:54]NVStorageSaveData kkm_last_timestamp [11:10:54]File name is /storage/kkm_last_timestamp [11:10:54]Write 4 bytes [11:10:54]NVStorageSaveData done [11:10:54]OFD Sender: Processing packet 192518 [packets to send 75, broken 74] [11:10:54]ProducePacketName [11:10:54]name=ofd_packets/00192518 [11:10:54]OFD Sender: To server: pG, [11:10:54]CommunicateWithHost lk.salyk.kg:30040 [11:10:54]ConnectInit lk.salyk.kg [11:10:54]ExternCall_PrintAddStr [11:10:54]wPrintStart [11:10:54]Write to MH i2c: 01 00 00 79 30 A9 [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: 01 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: 01 07 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: 01 07 00 79 30 00 00 00 00 00 FF 0F BE [11:10:54]RasterBufferAndPrint [11:10:54]line Счет N : (1)31838 [11:10:54]line ИНН: 02508201610067 [11:10:54]line Контрольно-Кассовый Чек [11:10:54]line ПРОДАЖА [11:10:54]line ТРК (МРК, ГНК) : 21 [11:10:54]line Товар: 2710124130 [11:10:54]line Аи-92-К-5 [11:10:54]line 7.480 * 66.90 [11:10:54]line = 500.41 [11:10:54]line НДС 12% НСП 1% [11:10:54]line > о реализуемом товаре [11:10:54]line ОКРУГЛЕНИЕ: -0.41 [11:10:54]line ИТОГО: 500.00 [11:10:54]line Внесено: 500.00 [11:10:54]line СДАЧА: 0.00 [11:10:54]line НСП 1% : 4.43 [11:10:54]line НДС 12% : 53.14 [11:10:54]line Наличными: 500.00 [11:10:54]line Безнал.: 0.00 [11:10:54]line Место: АЗС № 170 "Партнер Нефть" [11:10:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:10:54]line СНО: Общий режим [11:10:54]line Чек 66 28.10.2024 11:10 [11:10:54]line Смена: 543 ФФД: 1.0 [11:10:54]line ЗНМ: 0300000110 [11:10:54]line РНМ: 0000000000091776 [11:10:54]line Версия ККМ: 001 [11:10:54]line ФМ: 0000000000871754 [11:10:54]line ФД: 192518 [11:10:54]line ФПД: 276187931202636 [11:10:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T111057&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192518&fm=276187931202636&tin=02508201610067®Number=0000000000091776&sum=50000 [11:10:54]Connected sock=6 [11:10:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 73 FC 07 01 CE 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 41 71 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 F0 02 00 35 04 06 00 FB 31 03 87 D4 4C 70 34 08 A3 F6 D0 AB C3 [11:10:54]written 0, free lines is 4095 [11:10:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E1 49 47 00 40 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 F0 02 00 F4 03 04 00 05 16 1F 67 B6 04 01 00 00 FD F9 9F 0D 16 75 FE 6B [11:10:54]CommunicateWithHost err = 0 [11:10:54]CheckOFDResponse [11:10:54]1017 (14) - 77093643461234 [11:10:54]1041 (16) - 0000000000871754 [11:10:54]1040 (4) - 192518 [11:10:54]1012 (4) - 28.10.2024 04:41 [11:10:54]1206 (1) - 0 [11:10:54]OFD Sender: Remove packet 192518 [11:10:54]ProducePacketName [11:10:54]name=ofd_packets/00192518 [11:10:54]NVStorageDeleteData [11:10:55]Write to MH i2c: 01 00 00 A4 30 D4 [11:10:55]Write i2c OK [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: 01 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: 01 07 00 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: 01 07 00 A4 30 00 00 00 00 00 9B 0C 82 [11:10:55]RasterBufferAndPrint [11:10:55]line [11:10:55]line [11:10:55]line [11:10:55]line [11:10:55]line [11:10:55]written 0, free lines is 3233 [11:10:55]MH_Cut [11:10:55]Write to MH i2c: D1 01 00 AB 30 01 AD [11:10:55]Write i2c OK [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: D1 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: D1 01 00 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: D1 01 00 AB 30 00 AC [11:10:55]Write to MH i2c: 01 00 00 AC 30 DC [11:10:55]Write i2c OK [11:10:55]MH_I2C_Read... [11:10:55]OFD Sender: No OFD packet to send [11:10:56]*** Cut start [11:10:56]*** Partial cut [11:10:56]*** CUTSNS_PIN = 1 [11:10:56]*** CUTSNS_PIN = 0 [11:10:56]*** Brake cut motor [11:10:56]Read from MH i2c: 01 [11:10:56]MH_I2C_Read... [11:10:56]*** Stop cut motor [11:10:56]*** Cut end [11:10:56]Read from MH i2c: 01 07 00 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: 01 07 00 AC 30 00 00 00 00 00 FF 0F F1 [11:10:56]process_action close_receipt done [11:10:56]requested_data is exist [11:10:56]produce_requested_data [11:10:56]requested_item fm.sn is exist - process it [11:10:56]wFMCommunicate request_size=4 [11:10:56]MH_SAM_APDU [11:10:56]CAPDU: 80 11 00 00 [11:10:56]Write to MH i2c: E2 08 00 AD 30 80 11 00 00 00 00 00 00 57 [11:10:56]Write i2c OK [11:10:56]MH_I2C_Read... [11:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:56]Read from MH i2c: E2 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 17 00 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 17 00 AD 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AA [11:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:10:56]wFMCommunicate OK [11:10:56]requested_item fd.num is exist - process it [11:10:56]SAM_PROTO_GetFieldsCounters [11:10:56]wFMCommunicate request_size=4 [11:10:56]MH_SAM_APDU [11:10:56]CAPDU: 80 13 00 00 [11:10:56]Write to MH i2c: E2 08 00 AE 30 80 13 00 00 00 00 00 00 5A [11:10:56]Write i2c OK [11:10:56]MH_I2C_Read... [11:10:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:56]Read from MH i2c: E2 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 62 00 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 62 00 AE 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 06 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [11: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 06 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:56]wFMCommunicate OK [11:10:56]SAM_PROTO_GetFieldsCounters done [11:10:56]requested_item shift.num is exist - process it [11:10:56]requested_item shift.opened is exist - process it [11:10:56]req_shift_opened [11:10:56]FM_GetShiftState [11:10:56]SAM_PROTO_GetShiftState [11:10:56]wFMCommunicate request_size=4 [11:10:56]MH_SAM_APDU [11:10:56]CAPDU: 80 13 01 00 [11:10:56]Write to MH i2c: E2 08 00 AF 30 80 13 01 00 00 00 00 00 5C [11:10:56]Write i2c OK [11:10:56]MH_I2C_Read... [11:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:57]Read from MH i2c: E2 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 0E 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 0E 00 AF 30 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 AC [11:10:57]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:10:57]wFMCommunicate OK [11:10:57]SAM_PROTO_GetShiftState done [11:10:57]FM_GetShiftState done [11:10:57]req_shift_opened done [11:10:57]requested_item shift.open_date is exist - process it [11:10:57]req_shift_open_date [11:10:57]req_shift_open_date done [11:10:57]produce_requested_data done [11:10:57]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192518,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:10:57]process_action_free close_receipt [11:10:57]json_value_free [11:10:57]json_value_free done [11:10:57]process_json_proto returns [11:10:57]Send response to host [11:10:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192518,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:10:57]free response buf [11:10:57]execute_script done [11:10:57]execute_script returns [11:10:57]free content buf [11:10:57]Sock 9.Close socket [11:10:57]Sock 9.Thread stoped [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:03]accept exits with 7 [11:13:03]New connection [11:13:03]New thread 3066707300 created [11:13:03]Thread 3066563940 joined [11:13:03]Waiting for new connection... [11:13:03] Sock 7.Parse request [11:13:03]Sock 7.Check first char [11:13:03]Sock 7.First char is OK [11:13:03]request: POST /json_proto HTTP/1.0 [11:13:03]Method: POST [11:13:03]URL: /json_proto [11:13:03]Method is POST - this is cgi request [11:13:03]url: /json_proto [11:13:03]query_string will be loaded in cgi processing [11:13:03]execute_cgi json_proto POST (null) [11:13:03]execute_cgi path=json_proto method=POST [11:13:03]POST find Content-Length [11:13:03]Host: 172.17.63.131:8080 [11:13:03]Content-Length: 676 [11:13:03]Content-Type: application/json [11:13:03] [11:13:03]POST finish read [11:13:03]Found Content-Length = 676 [11:13:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:03]execute_script... [11:13:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:03]POST & json_proto [11:13:03]process_json_proto [11:13:03]json parsed OK: [11:13:03]protocol is kg_v1.0 [11:13:03]action value=close_receipt [11:13:03]process_action close_receipt [11:13:03]cmd_close_receipt [11:13:03]MH_GetDate [11:13:03]Write to MH i2c: F0 00 00 B0 30 CF [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: F0 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: F0 09 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: F0 09 00 B0 30 00 C4 71 1F 67 22 05 6E 64 8C [11:13:03]GetLastDocTimeStamp 1730113857 [11:13:03]current date 1730113988 [11:13:03]FM_GetShiftState [11:13:03]SAM_PROTO_GetShiftState [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 13 01 00 [11:13:03]Write to MH i2c: E2 08 00 B1 30 80 13 01 00 00 00 00 00 5E [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:04]Read from MH i2c: E2 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 0E 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 0E 00 B1 30 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 AE [11:13:04]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:13:04]wFMCommunicate OK [11:13:04]SAM_PROTO_GetShiftState done [11:13:04]FM_GetShiftState done [11:13:04]opened in 1730075620 [11:13:04]opened+sec_in_day 1730162020 [11:13:04]quantity*price = 50041 [11:13:04]sum+1 = 50042 [11:13:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 67 28.10.2024 11:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192519 ФПД: 38876781585491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T111308&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192519&fm=38876781585491&tin=02508201610067®Number=0000000000091776&sum=50000 [11:13:05]StoreToDocumentArchive [11:13:05]shift 543 fd 192519 [11:13:05]save to /storage/0543/doc_00192519 [11:13:05]save last doc name /storage/0543/doc_00192519 to /storage/kkm_last_doc_name [11:13:05]save OK [11:13:05]Clear old archive folders... [11:13:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:05]tlvbuf is 0196A740 [11:13:05]SAM_PROTO_ClearQueue [11:13:05]wFMCommunicate request_size=4 [11:13:05]MH_SAM_APDU [11:13:05]CAPDU: 80 09 00 00 [11:13:05]Write to MH i2c: E2 08 00 BE 30 80 09 00 00 00 00 00 00 60 [11:13:05]Write i2c OK [11:13:05]MH_I2C_Read... [11:13:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:05]Read from MH i2c: E2 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 03 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 03 00 BE 30 00 90 00 62 [11:13:05]RAPDU: 90 00 [11:13:05]wFMCommunicate OK [11:13:05]SAM_PROTO_ClearQueue done [11:13:05]KKMCreateOFDPacket [11:13:05]OFDProtocolAddRootSTLVToBuf [11:13:05]FM_MakeSignedData [11:13:05]FM_MakeSignedData [11:13:05]SAM_PROTO_SignData [11:13:05]wFMCommunicate request_size=4 [11:13:05]MH_SAM_APDU [11:13:05]CAPDU: 80 0D 01 02 [11:13:05]Write to MH i2c: E2 08 00 BF 30 80 0D 01 02 00 00 00 00 68 [11:13:05]Write i2c OK [11:13:05]MH_I2C_Read... [11:13:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:05]Read from MH i2c: E2 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 03 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 03 00 BF 30 00 90 00 63 [11:13:05]RAPDU: 90 00 [11:13:05]wFMCommunicate OK [11:13:05]wFMCommunicate request_size=255 [11:13:05]MH_SAM_APDU [11:13:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C4 71 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 F0 02 00 35 04 06 00 23 [11:13:05]Write to MH i2c: E2 02 01 C0 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C4 71 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 F0 02 00 35 04 06 00 23 00 00 37 [11:13:05]Write i2c OK [11:13:05]MH_I2C_Read... [11:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:05]Read from MH i2c: E2 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 03 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 03 00 C0 30 00 90 00 64 [11:13:05]RAPDU: 90 00 [11:13:05]wFMCommunicate OK [11:13:05]wFMCommunicate request_size=10 [11:13:05]MH_SAM_APDU [11:13:05]CAPDU: 80 0D 02 02 05 5B B4 C1 A4 53 [11:13:05]Write to MH i2c: E2 0D 00 C1 30 80 0D 02 02 05 00 5B B4 C1 A4 53 00 00 3C [11:13:05]Write i2c OK [11:13:05]MH_I2C_Read... [11:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:05]Read from MH i2c: E2 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 03 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 03 00 C1 30 00 90 00 65 [11:13:05]RAPDU: 90 00 [11:13:05]wFMCommunicate OK [11:13:05]wFMCommunicate request_size=4 [11:13:05]MH_SAM_APDU [11:13:05]CAPDU: 80 0D 03 02 [11:13:05]Write to MH i2c: E2 08 00 C2 30 80 0D 03 02 00 00 00 00 6D [11:13:05]Write i2c OK [11:13:05]MH_I2C_Read... [11:13:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:05]Read from MH i2c: E2 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 0B 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 0B 00 C2 30 00 34 89 33 A6 BA 5B 74 7A 90 00 07 [11:13:05]RAPDU: 34 89 33 A6 BA 5B 74 7A 90 00 [11:13:05]wFMCommunicate OK [11:13:05]SAM_PROTO_SignData done [11:13:05]FM_MakeSignedData done [11:13:05]CreateOFDProtocolMessage [11:13:05]wFMCommunicate request_size=4 [11:13:05]MH_SAM_APDU [11:13:05]CAPDU: 80 11 00 00 [11:13:05]Write to MH i2c: E2 08 00 C3 30 80 11 00 00 00 00 00 00 6D [11:13:05]Write i2c OK [11:13:05]MH_I2C_Read... [11:13:05]OFD Sender: No OFD packet to send [11:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:05]Read from MH i2c: E2 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 17 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: E2 17 00 C3 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C0 [11:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:13:05]wFMCommunicate OK [11:13:05]CreateOFDProtocolMessage done [11:13:05]OFDSenderStorePacket 192519 [11:13:05]StoreOFDPacket docnum=192519 [11:13:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7E 49 07 01 0B CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C4 71 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 F0 02 00 35 04 06 00 23 5B B4 C1 A4 53 34 89 33 A6 BA 5B 74 7A [11:13:05]CheckFolder [11:13:05]dirname=/storage/ofd_packets [11:13:05]CheckFolder done [11:13:05]ProducePacketName [11:13:05]name=ofd_packets/00192519 [11:13:05]NVStorageSaveData ofd_packets/00192519 [11:13:05]File name is /storage/ofd_packets/00192519 [11:13:05]Write 301 bytes [11:13:05]NVStorageSaveData done [11:13:05]OFDSenderStorePacket done [11:13:05]KKMCreateOFDPacket done [11:13:05]NVStorageSaveData kkm_last_timestamp [11:13:05]File name is /storage/kkm_last_timestamp [11:13:05]Write 4 bytes [11:13:05]NVStorageSaveData done [11:13:05]ExternCall_PrintAddStr [11:13:05]wPrintStart [11:13:05]Write to MH i2c: 01 00 00 C4 30 F4 [11:13:05]Write i2c OK [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: 01 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: 01 07 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: 01 07 00 C4 30 00 00 00 00 00 FF 0F 09 [11:13:05]RasterBufferAndPrint [11:13:05]line Счет N : (1)31839 [11:13:05]line ИНН: 02508201610067 [11:13:05]line Контрольно-Кассовый Чек [11:13:05]line ПРОДАЖА [11:13:05]line ТРК (МРК, ГНК) : 21 [11:13:05]line Товар: 2710124130 [11:13:05]line Аи-92-К-5 [11:13:05]line 7.480 * 66.90 [11:13:05]line = 500.41 [11:13:05]line НДС 12% НСП 1% [11:13:05]line > о реализуемом товаре [11:13:05]line ОКРУГЛЕНИЕ: -0.41 [11:13:05]line ИТОГО: 500.00 [11:13:05]line Внесено: 500.00 [11:13:05]line СДАЧА: 0.00 [11:13:05]line НСП 1% : 4.43 [11:13:05]line НДС 12% : 53.14 [11:13:05]line Наличными: 500.00 [11:13:05]line Безнал.: 0.00 [11:13:05]line Место: АЗС № 170 "Партнер Нефть" [11:13:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:13:05]line СНО: Общий режим [11:13:05]line Чек 67 28.10.2024 11:13 [11:13:05]line Смена: 543 ФФД: 1.0 [11:13:05]line ЗНМ: 0300000110 [11:13:05]line РНМ: 0000000000091776 [11:13:05]line Версия ККМ: 001 [11:13:05]line ФМ: 0000000000871754 [11:13:05]line ФД: 192519 [11:13:05]line ФПД: 38876781585491 [11:13:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T111308&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192519&fm=38876781585491&tin=02508201610067®Number=0000000000091776&sum=50000 [11:13:05]OFD Sender: Processing packet 192519 [packets to send 75, broken 74] [11:13:05]ProducePacketName [11:13:05]name=ofd_packets/00192519 [11:13:05]OFD Sender: To server: pG, [11:13:05]CommunicateWithHost lk.salyk.kg:30040 [11:13:05]ConnectInit lk.salyk.kg [11:13:05]written 0, free lines is 4095 [11:13:05]Connected sock=10 [11:13:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7E 49 07 01 0B CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C4 71 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 F0 02 00 35 04 06 00 23 5B B4 C1 A4 53 34 89 33 A6 BA 5B 74 7A [11:13:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C3 0B 47 00 7C 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 F0 02 00 F4 03 04 00 89 16 1F 67 B6 04 01 00 00 CF 74 E8 AE 5D 90 E2 0B [11:13:06]CommunicateWithHost err = 0 [11:13:06]CheckOFDResponse [11:13:06]1017 (14) - 77093643461234 [11:13:06]1041 (16) - 0000000000871754 [11:13:06]1040 (4) - 192519 [11:13:06]1012 (4) - 28.10.2024 04:43 [11:13:06]1206 (1) - 0 [11:13:06]OFD Sender: Remove packet 192519 [11:13:06]ProducePacketName [11:13:06]name=ofd_packets/00192519 [11:13:06]NVStorageDeleteData [11:13:06]Write to MH i2c: 01 00 00 EF 30 1F [11:13:06]Write i2c OK [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: 01 [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: 01 07 00 [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: 01 07 00 EF 30 00 00 00 00 00 AB 0C DD [11:13:06]RasterBufferAndPrint [11:13:06]line [11:13:06]line [11:13:06]line [11:13:06]line [11:13:06]line [11:13:06]written 0, free lines is 3248 [11:13:06]MH_Cut [11:13:06]Write to MH i2c: D1 01 00 F6 30 01 F8 [11:13:06]Write i2c OK [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: D1 [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: D1 01 00 [11:13:06]MH_I2C_Read... [11:13:06]Read from MH i2c: D1 01 00 F6 30 00 F7 [11:13:06]Write to MH i2c: 01 00 00 F7 30 27 [11:13:06]Write i2c OK [11:13:06]MH_I2C_Read... [11:13:06]OFD Sender: No OFD packet to send [11:13:07]*** Cut start [11:13:07]*** Partial cut [11:13:07]*** CUTSNS_PIN = 1 [11:13:07]*** CUTSNS_PIN = 0 [11:13:07]*** Brake cut motor [11:13:07]Read from MH i2c: 01 [11:13:07]MH_I2C_Read... [11:13:07]*** Stop cut motor [11:13:07]*** Cut end [11:13:07]Read from MH i2c: 01 07 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: 01 07 00 F7 30 00 00 00 00 00 FF 0F 3C [11:13:07]process_action close_receipt done [11:13:07]requested_data is exist [11:13:07]produce_requested_data [11:13:07]requested_item fm.sn is exist - process it [11:13:07]wFMCommunicate request_size=4 [11:13:07]MH_SAM_APDU [11:13:07]CAPDU: 80 11 00 00 [11:13:07]Write to MH i2c: E2 08 00 F8 30 80 11 00 00 00 00 00 00 A2 [11:13:07]Write i2c OK [11:13:07]MH_I2C_Read... [11:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:07]Read from MH i2c: E2 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 17 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 17 00 F8 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F5 [11:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:13:07]wFMCommunicate OK [11:13:07]requested_item fd.num is exist - process it [11:13:07]SAM_PROTO_GetFieldsCounters [11:13:07]wFMCommunicate request_size=4 [11:13:07]MH_SAM_APDU [11:13:07]CAPDU: 80 13 00 00 [11:13:07]Write to MH i2c: E2 08 00 F9 30 80 13 00 00 00 00 00 00 A5 [11:13:07]Write i2c OK [11:13:07]MH_I2C_Read... [11:13:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:07]Read from MH i2c: E2 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 62 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 62 00 F9 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 07 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [11:13:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 07 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:07]wFMCommunicate OK [11:13:07]SAM_PROTO_GetFieldsCounters done [11:13:07]requested_item shift.num is exist - process it [11:13:07]requested_item shift.opened is exist - process it [11:13:07]req_shift_opened [11:13:07]FM_GetShiftState [11:13:07]SAM_PROTO_GetShiftState [11:13:07]wFMCommunicate request_size=4 [11:13:07]MH_SAM_APDU [11:13:07]CAPDU: 80 13 01 00 [11:13:07]Write to MH i2c: E2 08 00 FA 30 80 13 01 00 00 00 00 00 A7 [11:13:07]Write i2c OK [11:13:07]MH_I2C_Read... [11:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:07]Read from MH i2c: E2 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 0E 00 [11:13:07]MH_I2C_Read... [11:13:07]Read from MH i2c: E2 0E 00 FA 30 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F7 [11:13:07]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:13:07]wFMCommunicate OK [11:13:07]SAM_PROTO_GetShiftState done [11:13:07]FM_GetShiftState done [11:13:07]req_shift_opened done [11:13:07]requested_item shift.open_date is exist - process it [11:13:07]req_shift_open_date [11:13:07]req_shift_open_date done [11:13:07]produce_requested_data done [11:13:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192519,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:13:07]process_action_free close_receipt [11:13:07]json_value_free [11:13:07]json_value_free done [11:13:07]process_json_proto returns [11:13:07]Send response to host [11:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192519,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:13:07]free response buf [11:13:07]execute_script done [11:13:07]execute_script returns [11:13:07]free content buf [11:13:07]Sock 7.Close socket [11:13:07]Sock 7.Thread stoped [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:41]accept exits with 9 [11:13:41]New connection [11:13:41]New thread 3066563940 created [11:13:41]Thread 3066707300 joined [11:13:41]Waiting for new connection... [11:13:41] Sock 9.Parse request [11:13:41]Sock 9.Check first char [11:13:41]Sock 9.First char is OK [11:13:41]request: POST /json_proto HTTP/1.0 [11:13:41]Method: POST [11:13:41]URL: /json_proto [11:13:41]Method is POST - this is cgi request [11:13:41]url: /json_proto [11:13:41]query_string will be loaded in cgi processing [11:13:41]execute_cgi json_proto POST (null) [11:13:41]execute_cgi path=json_proto method=POST [11:13:41]POST find Content-Length [11:13:41]Host: 172.17.63.131:8080 [11:13:41]Content-Length: 676 [11:13:41]Content-Type: application/json [11:13:41] [11:13:41]POST finish read [11:13:41]Found Content-Length = 676 [11:13:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:41]execute_script... [11:13:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:41]POST & json_proto [11:13:41]process_json_proto [11:13:41]json parsed OK: [11:13:41]protocol is kg_v1.0 [11:13:41]action value=close_receipt [11:13:41]process_action close_receipt [11:13:41]cmd_close_receipt [11:13:41]MH_GetDate [11:13:41]Write to MH i2c: F0 00 00 FB 30 1A [11:13:41]Write i2c OK [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: F0 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: F0 09 00 [11:13:41]MH_I2C_Read... [11:13:41]Read from MH i2c: F0 09 00 FB 30 00 EA 71 1F 67 22 05 6E 64 FD [11:13:41]GetLastDocTimeStamp 1730113988 [11:13:41]current date 1730114026 [11:13:41]FM_GetShiftState [11:13:41]SAM_PROTO_GetShiftState [11:13:41]wFMCommunicate request_size=4 [11:13:41]MH_SAM_APDU [11:13:41]CAPDU: 80 13 01 00 [11:13:41]Write to MH i2c: E2 08 00 FC 30 80 13 01 00 00 00 00 00 A9 [11:13:41]Write i2c OK [11:13:41]MH_I2C_Read... [11:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:42]Read from MH i2c: E2 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 0E 00 [11:13:42]MH_I2C_Read... [11:13:42]Read from MH i2c: E2 0E 00 FC 30 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F9 [11:13:42]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:13:42]wFMCommunicate OK [11:13:42]SAM_PROTO_GetShiftState done [11:13:42]FM_GetShiftState done [11:13:42]opened in 1730075620 [11:13:42]opened+sec_in_day 1730162020 [11:13:42]quantity*price = 50041 [11:13:42]sum+1 = 50042 [11:13:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 68 28.10.2024 11:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192520 ФПД: 58378388143195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T111346&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192520&fm=58378388143195&tin=02508201610067®Number=0000000000091776&sum=50000 [11:13:43]StoreToDocumentArchive [11:13:43]shift 543 fd 192520 [11:13:43]save to /storage/0543/doc_00192520 [11:13:43]save last doc name /storage/0543/doc_00192520 to /storage/kkm_last_doc_name [11:13:43]save OK [11:13:43]Clear old archive folders... [11:13:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:43]tlvbuf is B6E9EBA0 [11:13:43]SAM_PROTO_ClearQueue [11:13:43]wFMCommunicate request_size=4 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 09 00 00 [11:13:43]Write to MH i2c: E2 08 00 09 31 80 09 00 00 00 00 00 00 AC [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:43]Read from MH i2c: E2 03 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 09 31 00 90 00 AE [11:13:43]RAPDU: 90 00 [11:13:43]wFMCommunicate OK [11:13:43]SAM_PROTO_ClearQueue done [11:13:43]KKMCreateOFDPacket [11:13:43]OFDProtocolAddRootSTLVToBuf [11:13:43]FM_MakeSignedData [11:13:43]FM_MakeSignedData [11:13:43]SAM_PROTO_SignData [11:13:43]wFMCommunicate request_size=4 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 0D 01 02 [11:13:43]Write to MH i2c: E2 08 00 0A 31 80 0D 01 02 00 00 00 00 B4 [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 0A 31 00 90 00 AF [11:13:43]RAPDU: 90 00 [11:13:43]wFMCommunicate OK [11:13:43]wFMCommunicate request_size=255 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 EA 71 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 F0 02 00 35 04 06 00 35 [11:13:43]Write to MH i2c: E2 02 01 0B 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 EA 71 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 F0 02 00 35 04 06 00 35 00 00 BD [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 0B 31 00 90 00 B0 [11:13:43]RAPDU: 90 00 [11:13:43]wFMCommunicate OK [11:13:43]wFMCommunicate request_size=10 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 0D 02 02 05 18 47 16 7C 5B [11:13:43]Write to MH i2c: E2 0D 00 0C 31 80 0D 02 02 05 00 18 47 16 7C 5B 00 00 0D [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 03 00 0C 31 00 90 00 B1 [11:13:43]RAPDU: 90 00 [11:13:43]wFMCommunicate OK [11:13:43]wFMCommunicate request_size=4 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 0D 03 02 [11:13:43]Write to MH i2c: E2 08 00 0D 31 80 0D 03 02 00 00 00 00 B9 [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 0B 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 0B 00 0D 31 00 C4 0D B4 86 E6 B7 9A 9F 90 00 9B [11:13:43]RAPDU: C4 0D B4 86 E6 B7 9A 9F 90 00 [11:13:43]wFMCommunicate OK [11:13:43]SAM_PROTO_SignData done [11:13:43]FM_MakeSignedData done [11:13:43]CreateOFDProtocolMessage [11:13:43]wFMCommunicate request_size=4 [11:13:43]MH_SAM_APDU [11:13:43]CAPDU: 80 11 00 00 [11:13:43]Write to MH i2c: E2 08 00 0E 31 80 11 00 00 00 00 00 00 B9 [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:43]Read from MH i2c: E2 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 17 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: E2 17 00 0E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0C [11:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:13:43]wFMCommunicate OK [11:13:43]CreateOFDProtocolMessage done [11:13:43]OFDSenderStorePacket 192520 [11:13:43]StoreOFDPacket docnum=192520 [11:13:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2C CF 07 01 48 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 EA 71 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 F0 02 00 35 04 06 00 35 18 47 16 7C 5B C4 0D B4 86 E6 B7 9A 9F [11:13:43]CheckFolder [11:13:43]dirname=/storage/ofd_packets [11:13:43]CheckFolder done [11:13:43]ProducePacketName [11:13:43]name=ofd_packets/00192520 [11:13:43]NVStorageSaveData ofd_packets/00192520 [11:13:43]File name is /storage/ofd_packets/00192520 [11:13:43]Write 301 bytes [11:13:43]NVStorageSaveData done [11:13:43]OFDSenderStorePacket done [11:13:43]KKMCreateOFDPacket done [11:13:43]NVStorageSaveData kkm_last_timestamp [11:13:43]File name is /storage/kkm_last_timestamp [11:13:43]Write 4 bytes [11:13:43]NVStorageSaveData done [11:13:43]ExternCall_PrintAddStr [11:13:43]wPrintStart [11:13:43]Write to MH i2c: 01 00 00 0F 31 40 [11:13:43]Write i2c OK [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: 01 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: 01 07 00 [11:13:43]MH_I2C_Read... [11:13:43]Read from MH i2c: 01 07 00 0F 31 00 00 00 00 00 FF 0F 55 [11:13:43]RasterBufferAndPrint [11:13:43]line Счет N : (1)31840 [11:13:43]line ИНН: 02508201610067 [11:13:43]line Контрольно-Кассовый Чек [11:13:43]line ПРОДАЖА [11:13:43]line ТРК (МРК, ГНК) : 12 [11:13:43]line Товар: 2710124130 [11:13:43]line Аи-92-К-5 [11:13:43]line 7.480 * 66.90 [11:13:43]line = 500.41 [11:13:43]line НДС 12% НСП 1% [11:13:43]line > о реализуемом товаре [11:13:43]line ОКРУГЛЕНИЕ: -0.41 [11:13:43]line ИТОГО: 500.00 [11:13:43]line Внесено: 500.00 [11:13:43]line СДАЧА: 0.00 [11:13:43]line НСП 1% : 4.43 [11:13:43]line НДС 12% : 53.14 [11:13:43]line Наличными: 500.00 [11:13:43]line Безнал.: 0.00 [11:13:43]line Место: АЗС № 170 "Партнер Нефть" [11:13:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:13:43]line СНО: Общий режим [11:13:43]line Чек 68 28.10.2024 11:13 [11:13:43]line Смена: 543 ФФД: 1.0 [11:13:43]line ЗНМ: 0300000110 [11:13:43]line РНМ: 0000000000091776 [11:13:43]line Версия ККМ: 001 [11:13:43]line ФМ: 0000000000871754 [11:13:43]line ФД: 192520 [11:13:43]line ФПД: 58378388143195 [11:13:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T111346&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192520&fm=58378388143195&tin=02508201610067®Number=0000000000091776&sum=50000 [11:13:44]OFD Sender: Processing packet 192520 [packets to send 75, broken 74] [11:13:44]ProducePacketName [11:13:44]name=ofd_packets/00192520 [11:13:44]OFD Sender: To server: pG, [11:13:44]CommunicateWithHost lk.salyk.kg:30040 [11:13:44]ConnectInit lk.salyk.kg [11:13:44]written 0, free lines is 4095 [11:13:44]Connected sock=7 [11:13:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2C CF 07 01 48 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 EA 71 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 F0 02 00 35 04 06 00 35 18 47 16 7C 5B C4 0D B4 86 E6 B7 9A 9F [11:13:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B0 8E 47 00 E8 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 F0 02 00 F4 03 04 00 AF 16 1F 67 B6 04 01 00 00 D5 3F 39 81 75 25 36 E3 [11:13:44]CommunicateWithHost err = 0 [11:13:44]CheckOFDResponse [11:13:44]1017 (14) - 77093643461234 [11:13:44]1041 (16) - 0000000000871754 [11:13:44]1040 (4) - 192520 [11:13:44]1012 (4) - 28.10.2024 04:44 [11:13:44]1206 (1) - 0 [11:13:44]OFD Sender: Remove packet 192520 [11:13:44]ProducePacketName [11:13:44]name=ofd_packets/00192520 [11:13:44]NVStorageDeleteData [11:13:44]Write to MH i2c: 01 00 00 3A 31 6B [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: 01 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: 01 07 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: 01 07 00 3A 31 00 00 00 00 00 9C 0C 1A [11:13:44]RasterBufferAndPrint [11:13:44]line [11:13:44]line [11:13:44]line [11:13:44]line [11:13:44]line [11:13:44]written 0, free lines is 3236 [11:13:44]MH_Cut [11:13:44]Write to MH i2c: D1 01 00 41 31 01 44 [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: D1 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: D1 01 00 [11:13:44]MH_I2C_Read... [11:13:44]Read from MH i2c: D1 01 00 41 31 00 43 [11:13:44]Write to MH i2c: 01 00 00 42 31 73 [11:13:44]Write i2c OK [11:13:44]MH_I2C_Read... [11:13:44]OFD Sender: No OFD packet to send [11:13:45]*** Cut start [11:13:45]*** Partial cut [11:13:45]*** CUTSNS_PIN = 1 [11:13:45]*** CUTSNS_PIN = 0 [11:13:45]*** Brake cut motor [11:13:45]Read from MH i2c: 01 [11:13:45]MH_I2C_Read... [11:13:45]*** Stop cut motor [11:13:45]*** Cut end [11:13:45]Read from MH i2c: 01 07 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 07 00 42 31 00 00 00 00 00 FF 0F 88 [11:13:45]process_action close_receipt done [11:13:45]requested_data is exist [11:13:45]produce_requested_data [11:13:45]requested_item fm.sn is exist - process it [11:13:45]wFMCommunicate request_size=4 [11:13:45]MH_SAM_APDU [11:13:45]CAPDU: 80 11 00 00 [11:13:45]Write to MH i2c: E2 08 00 43 31 80 11 00 00 00 00 00 00 EE [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:46]Read from MH i2c: E2 [11:13:46]MH_I2C_Read... [11:13:46]Read from MH i2c: E2 17 00 [11:13:46]MH_I2C_Read... [11:13:46]Read from MH i2c: E2 17 00 43 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 41 [11:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:13:46]wFMCommunicate OK [11:13:46]requested_item fd.num is exist - process it [11:13:46]SAM_PROTO_GetFieldsCounters [11:13:46]wFMCommunicate request_size=4 [11:13:46]MH_SAM_APDU [11:13:46]CAPDU: 80 13 00 00 [11:13:46]Write to MH i2c: E2 08 00 44 31 80 13 00 00 00 00 00 00 F1 [11:13:46]Write i2c OK [11:13:46]MH_I2C_Read... [11:13:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:46]Read from MH i2c: E2 [11:13:46]MH_I2C_Read... [11:13:46]Read from MH i2c: E2 62 00 [11:13:46]MH_I2C_Read... [11:13:46]Read from MH i2c: E2 62 00 44 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 08 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [11:13:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 08 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:46]wFMCommunicate OK [11:13:46]SAM_PROTO_GetFieldsCounters done [11:13:46]requested_item shift.num is exist - process it [11:13:46]requested_item shift.opened is exist - process it [11:13:46]req_shift_opened [11:13:46]FM_GetShiftState [11:13:46]SAM_PROTO_GetShiftState [11:13:46]wFMCommunicate request_size=4 [11:13:46]MH_SAM_APDU [11:13:46]CAPDU: 80 13 01 00 [11:13:46]Write to MH i2c: E2 08 00 45 31 80 13 01 00 00 00 00 00 F3 [11:13:46]Write i2c OK [11:13:46]MH_I2C_Read... [11:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:46]Read from MH i2c: E2 [11:13:46]MH_I2C_Read... [11:13:46]Read from MH i2c: E2 0E 00 [11:13:46]MH_I2C_Read... [11:13:46]Read from MH i2c: E2 0E 00 45 31 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 43 [11:13:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:13:46]wFMCommunicate OK [11:13:46]SAM_PROTO_GetShiftState done [11:13:46]FM_GetShiftState done [11:13:46]req_shift_opened done [11:13:46]requested_item shift.open_date is exist - process it [11:13:46]req_shift_open_date [11:13:46]req_shift_open_date done [11:13:46]produce_requested_data done [11:13:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192520,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:13:46]process_action_free close_receipt [11:13:46]json_value_free [11:13:46]json_value_free done [11:13:46]process_json_proto returns [11:13:46]Send response to host [11:13:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192520,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:13:46]free response buf [11:13:46]execute_script done [11:13:46]execute_script returns [11:13:46]free content buf [11:13:46]Sock 9.Close socket [11:13:46]Sock 9.Thread stoped [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:28]accept exits with 10 [11:18:28]New connection [11:18:28]New thread 3066707300 created [11:18:28]Thread 3066563940 joined [11:18:28]Waiting for new connection... [11:18:28] Sock 10.Parse request [11:18:28]Sock 10.Check first char [11:18:28]Sock 10.First char is OK [11:18:28]request: POST /json_proto HTTP/1.0 [11:18:28]Method: POST [11:18:28]URL: /json_proto [11:18:28]Method is POST - this is cgi request [11:18:28]url: /json_proto [11:18:28]query_string will be loaded in cgi processing [11:18:28]execute_cgi json_proto POST (null) [11:18:28]execute_cgi path=json_proto method=POST [11:18:28]POST find Content-Length [11:18:28]Host: 172.17.63.131:8080 [11:18:28]Content-Length: 681 [11:18:28]Content-Type: application/json [11:18:28] [11:18:28]POST finish read [11:18:28]Found Content-Length = 681 [11:18:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:28]execute_script... [11:18:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:28]POST & json_proto [11:18:28]process_json_proto [11:18:28]json parsed OK: [11:18:28]protocol is kg_v1.0 [11:18:28]action value=close_receipt [11:18:28]process_action close_receipt [11:18:28]cmd_close_receipt [11:18:28]MH_GetDate [11:18:28]Write to MH i2c: F0 00 00 46 31 66 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: F0 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: F0 09 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: F0 09 00 46 31 00 09 73 1F 67 22 05 6E 64 6A [11:18:28]GetLastDocTimeStamp 1730114026 [11:18:28]current date 1730114313 [11:18:28]FM_GetShiftState [11:18:28]SAM_PROTO_GetShiftState [11:18:28]wFMCommunicate request_size=4 [11:18:28]MH_SAM_APDU [11:18:28]CAPDU: 80 13 01 00 [11:18:28]Write to MH i2c: E2 08 00 47 31 80 13 01 00 00 00 00 00 F5 [11:18:28]Write i2c OK [11:18:28]MH_I2C_Read... [11:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:28]Read from MH i2c: E2 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 0E 00 [11:18:28]MH_I2C_Read... [11:18:28]Read from MH i2c: E2 0E 00 47 31 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 45 [11:18:28]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:18:28]wFMCommunicate OK [11:18:28]SAM_PROTO_GetShiftState done [11:18:28]FM_GetShiftState done [11:18:28]opened in 1730075620 [11:18:28]opened+sec_in_day 1730162020 [11:18:28]quantity*price = 100015 [11:18:28]sum+1 = 100017 [11:18:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 69 28.10.2024 11:18 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192521 ФПД: 179813758066672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T111833&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192521&fm=179813758066672&tin=02508201610067®Number=0000000000091776&sum=100000 [11:18:29]StoreToDocumentArchive [11:18:29]shift 543 fd 192521 [11:18:29]save to /storage/0543/doc_00192521 [11:18:29]save last doc name /storage/0543/doc_00192521 to /storage/kkm_last_doc_name [11:18:29]save OK [11:18:29]Clear old archive folders... [11:18:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:29]tlvbuf is 019C3870 [11:18:29]SAM_PROTO_ClearQueue [11:18:29]wFMCommunicate request_size=4 [11:18:29]MH_SAM_APDU [11:18:29]CAPDU: 80 09 00 00 [11:18:29]Write to MH i2c: E2 08 00 54 31 80 09 00 00 00 00 00 00 F7 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:29]Read from MH i2c: E2 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 54 31 00 90 00 F9 [11:18:29]RAPDU: 90 00 [11:18:29]wFMCommunicate OK [11:18:29]SAM_PROTO_ClearQueue done [11:18:29]KKMCreateOFDPacket [11:18:29]OFDProtocolAddRootSTLVToBuf [11:18:29]FM_MakeSignedData [11:18:29]FM_MakeSignedData [11:18:29]SAM_PROTO_SignData [11:18:29]wFMCommunicate request_size=4 [11:18:29]MH_SAM_APDU [11:18:29]CAPDU: 80 0D 01 02 [11:18:29]Write to MH i2c: E2 08 00 55 31 80 0D 01 02 00 00 00 00 FF [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:29]Read from MH i2c: E2 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 55 31 00 90 00 FA [11:18:29]RAPDU: 90 00 [11:18:29]wFMCommunicate OK [11:18:29]wFMCommunicate request_size=255 [11:18:29]MH_SAM_APDU [11:18:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 09 73 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 F0 02 00 35 04 06 00 A3 [11:18:29]Write to MH i2c: E2 02 01 56 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 09 73 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 F0 02 00 35 04 06 00 A3 00 00 93 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:29]Read from MH i2c: E2 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 56 31 00 90 00 FB [11:18:29]RAPDU: 90 00 [11:18:29]wFMCommunicate OK [11:18:29]wFMCommunicate request_size=10 [11:18:29]MH_SAM_APDU [11:18:29]CAPDU: 80 0D 02 02 05 8A 27 2C DF F0 [11:18:29]Write to MH i2c: E2 0D 00 57 31 80 0D 02 02 05 00 8A 27 2C DF F0 00 00 B8 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:29]Read from MH i2c: E2 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 03 00 57 31 00 90 00 FC [11:18:29]RAPDU: 90 00 [11:18:29]wFMCommunicate OK [11:18:29]wFMCommunicate request_size=4 [11:18:29]MH_SAM_APDU [11:18:29]CAPDU: 80 0D 03 02 [11:18:29]Write to MH i2c: E2 08 00 58 31 80 0D 03 02 00 00 00 00 04 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:29]Read from MH i2c: E2 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 0B 00 [11:18:29]MH_I2C_Read... [11:18:29]Read from MH i2c: E2 0B 00 58 31 00 70 52 DD 12 64 D7 8E 6A 90 00 E9 [11:18:29]RAPDU: 70 52 DD 12 64 D7 8E 6A 90 00 [11:18:29]wFMCommunicate OK [11:18:29]SAM_PROTO_SignData done [11:18:29]FM_MakeSignedData done [11:18:29]CreateOFDProtocolMessage [11:18:29]wFMCommunicate request_size=4 [11:18:29]MH_SAM_APDU [11:18:29]CAPDU: 80 11 00 00 [11:18:29]Write to MH i2c: E2 08 00 59 31 80 11 00 00 00 00 00 00 04 [11:18:29]Write i2c OK [11:18:29]MH_I2C_Read... [11:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:30]Read from MH i2c: E2 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: E2 17 00 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: E2 17 00 59 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 57 [11:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:18:30]wFMCommunicate OK [11:18:30]CreateOFDProtocolMessage done [11:18:30]OFDSenderStorePacket 192521 [11:18:30]StoreOFDPacket docnum=192521 [11:18:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB 2F 07 01 C6 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 09 73 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 F0 02 00 35 04 06 00 A3 8A 27 2C DF F0 70 52 DD 12 64 D7 8E 6A [11:18:30]CheckFolder [11:18:30]dirname=/storage/ofd_packets [11:18:30]CheckFolder done [11:18:30]ProducePacketName [11:18:30]name=ofd_packets/00192521 [11:18:30]NVStorageSaveData ofd_packets/00192521 [11:18:30]File name is /storage/ofd_packets/00192521 [11:18:30]Write 301 bytes [11:18:30]NVStorageSaveData done [11:18:30]OFDSenderStorePacket done [11:18:30]KKMCreateOFDPacket done [11:18:30]NVStorageSaveData kkm_last_timestamp [11:18:30]File name is /storage/kkm_last_timestamp [11:18:30]Write 4 bytes [11:18:30]NVStorageSaveData done [11:18:30]OFD Sender: Processing packet 192521 [packets to send 75, broken 74] [11:18:30]ProducePacketName [11:18:30]name=ofd_packets/00192521 [11:18:30]OFD Sender: To server: pG, [11:18:30]CommunicateWithHost lk.salyk.kg:30040 [11:18:30]ConnectInit lk.salyk.kg [11:18:30]ExternCall_PrintAddStr [11:18:30]wPrintStart [11:18:30]Write to MH i2c: 01 00 00 5A 31 8B [11:18:30]Write i2c OK [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: 01 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: 01 07 00 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: 01 07 00 5A 31 00 00 00 00 00 FF 0F A0 [11:18:30]RasterBufferAndPrint [11:18:30]line Счет N : (1)31841 [11:18:30]line ИНН: 02508201610067 [11:18:30]line Контрольно-Кассовый Чек [11:18:30]line ПРОДАЖА [11:18:30]line ТРК (МРК, ГНК) : 12 [11:18:30]line Товар: 2710124130 [11:18:30]line Аи-92-К-5 [11:18:30]line 14.950 * 66.90 [11:18:30]line = 1000.16 [11:18:30]line НДС 12% НСП 1% [11:18:30]line > о реализуемом товаре [11:18:30]line ОКРУГЛЕНИЕ: -0.16 [11:18:30]line ИТОГО: 1000.00 [11:18:30]line Внесено: 1000.00 [11:18:30]line СДАЧА: 0.00 [11:18:30]line НСП 1% : 8.85 [11:18:30]line НДС 12% : 106.21 [11:18:30]line Наличными: 1000.00 [11:18:30]line Безнал.: 0.00 [11:18:30]line Место: АЗС № 170 "Партнер Нефть" [11:18:30]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:18:30]line СНО: Общий режим [11:18:30]line Чек 69 28.10.2024 11:18 [11:18:30]line Смена: 543 ФФД: 1.0 [11:18:30]line ЗНМ: 0300000110 [11:18:30]line РНМ: 0000000000091776 [11:18:30]line Версия ККМ: 001 [11:18:30]line ФМ: 0000000000871754 [11:18:30]line ФД: 192521 [11:18:30]line ФПД: 179813758066672 [11:18:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T111833&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192521&fm=179813758066672&tin=02508201610067®Number=0000000000091776&sum=100000 [11:18:30]Connected sock=11 [11:18:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB 2F 07 01 C6 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 09 73 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 F0 02 00 35 04 06 00 A3 8A 27 2C DF F0 70 52 DD 12 64 D7 8E 6A [11:18:30]written 0, free lines is 4095 [11:18:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F5 91 47 00 9D 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 F0 02 00 F4 03 04 00 CD 17 1F 67 B6 04 01 00 00 1B 7D 88 17 EB 6B 1E 00 [11:18:30]CommunicateWithHost err = 0 [11:18:30]CheckOFDResponse [11:18:30]1017 (14) - 77093643461234 [11:18:30]1041 (16) - 0000000000871754 [11:18:30]1040 (4) - 192521 [11:18:30]1012 (4) - 28.10.2024 04:49 [11:18:30]1206 (1) - 0 [11:18:30]OFD Sender: Remove packet 192521 [11:18:30]ProducePacketName [11:18:30]name=ofd_packets/00192521 [11:18:30]NVStorageDeleteData [11:18:30]Write to MH i2c: 01 00 00 85 31 B6 [11:18:30]Write i2c OK [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: 01 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: 01 07 00 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: 01 07 00 85 31 00 00 00 00 00 A3 0C 6C [11:18:30]RasterBufferAndPrint [11:18:30]line [11:18:30]line [11:18:30]line [11:18:30]line [11:18:30]line [11:18:30]written 0, free lines is 3240 [11:18:30]MH_Cut [11:18:30]Write to MH i2c: D1 01 00 8C 31 01 8F [11:18:30]Write i2c OK [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: D1 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: D1 01 00 [11:18:30]MH_I2C_Read... [11:18:30]Read from MH i2c: D1 01 00 8C 31 00 8E [11:18:30]Write to MH i2c: 01 00 00 8D 31 BE [11:18:30]Write i2c OK [11:18:30]MH_I2C_Read... [11:18:31]OFD Sender: No OFD packet to send [11:18:31]*** Cut start [11:18:31]*** Partial cut [11:18:31]*** CUTSNS_PIN = 1 [11:18:31]*** CUTSNS_PIN = 0 [11:18:31]*** Brake cut motor [11:18:32]Read from MH i2c: 01 [11:18:32]MH_I2C_Read... [11:18:32]*** Stop cut motor [11:18:32]*** Cut end [11:18:32]Read from MH i2c: 01 07 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: 01 07 00 8D 31 00 00 00 00 00 FF 0F D3 [11:18:32]process_action close_receipt done [11:18:32]requested_data is exist [11:18:32]produce_requested_data [11:18:32]requested_item fm.sn is exist - process it [11:18:32]wFMCommunicate request_size=4 [11:18:32]MH_SAM_APDU [11:18:32]CAPDU: 80 11 00 00 [11:18:32]Write to MH i2c: E2 08 00 8E 31 80 11 00 00 00 00 00 00 39 [11:18:32]Write i2c OK [11:18:32]MH_I2C_Read... [11:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:32]Read from MH i2c: E2 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 17 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 17 00 8E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8C [11:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:18:32]wFMCommunicate OK [11:18:32]requested_item fd.num is exist - process it [11:18:32]SAM_PROTO_GetFieldsCounters [11:18:32]wFMCommunicate request_size=4 [11:18:32]MH_SAM_APDU [11:18:32]CAPDU: 80 13 00 00 [11:18:32]Write to MH i2c: E2 08 00 8F 31 80 13 00 00 00 00 00 00 3C [11:18:32]Write i2c OK [11:18:32]MH_I2C_Read... [11:18:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:32]Read from MH i2c: E2 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 62 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 62 00 8F 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 09 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [11:18:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 09 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:32]wFMCommunicate OK [11:18:32]SAM_PROTO_GetFieldsCounters done [11:18:32]requested_item shift.num is exist - process it [11:18:32]requested_item shift.opened is exist - process it [11:18:32]req_shift_opened [11:18:32]FM_GetShiftState [11:18:32]SAM_PROTO_GetShiftState [11:18:32]wFMCommunicate request_size=4 [11:18:32]MH_SAM_APDU [11:18:32]CAPDU: 80 13 01 00 [11:18:32]Write to MH i2c: E2 08 00 90 31 80 13 01 00 00 00 00 00 3E [11:18:32]Write i2c OK [11:18:32]MH_I2C_Read... [11:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:32]Read from MH i2c: E2 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 0E 00 [11:18:32]MH_I2C_Read... [11:18:32]Read from MH i2c: E2 0E 00 90 31 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 8E [11:18:32]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:18:32]wFMCommunicate OK [11:18:32]SAM_PROTO_GetShiftState done [11:18:32]FM_GetShiftState done [11:18:32]req_shift_opened done [11:18:32]requested_item shift.open_date is exist - process it [11:18:32]req_shift_open_date [11:18:32]req_shift_open_date done [11:18:32]produce_requested_data done [11:18:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192521,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:18:32]process_action_free close_receipt [11:18:32]json_value_free [11:18:32]json_value_free done [11:18:32]process_json_proto returns [11:18:32]Send response to host [11:18:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192521,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:18:32]free response buf [11:18:32]execute_script done [11:18:32]execute_script returns [11:18:32]free content buf [11:18:32]Sock 10.Close socket [11:18:32]Sock 10.Thread stoped [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:38]accept exits with 7 [11:23:38]New connection [11:23:38]New thread 3066563940 created [11:23:38]Thread 3066707300 joined [11:23:38]Waiting for new connection... [11:23:38] Sock 7.Parse request [11:23:38]Sock 7.Check first char [11:23:38]Sock 7.First char is OK [11:23:38]request: POST /json_proto HTTP/1.0 [11:23:38]Method: POST [11:23:38]URL: /json_proto [11:23:38]Method is POST - this is cgi request [11:23:38]url: /json_proto [11:23:38]query_string will be loaded in cgi processing [11:23:38]execute_cgi json_proto POST (null) [11:23:38]execute_cgi path=json_proto method=POST [11:23:38]POST find Content-Length [11:23:38]Host: 172.17.63.131:8080 [11:23:38]Content-Length: 676 [11:23:38]Content-Type: application/json [11:23:38] [11:23:38]POST finish read [11:23:38]Found Content-Length = 676 [11:23:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:38]execute_script... [11:23:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:38]POST & json_proto [11:23:38]process_json_proto [11:23:38]json parsed OK: [11:23:38]protocol is kg_v1.0 [11:23:38]action value=close_receipt [11:23:38]process_action close_receipt [11:23:38]cmd_close_receipt [11:23:38]MH_GetDate [11:23:38]Write to MH i2c: F0 00 00 91 31 B1 [11:23:38]Write i2c OK [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: F0 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: F0 09 00 [11:23:38]MH_I2C_Read... [11:23:38]Read from MH i2c: F0 09 00 91 31 00 3F 74 1F 67 22 05 6E 64 EC [11:23:38]GetLastDocTimeStamp 1730114313 [11:23:38]current date 1730114623 [11:23:38]FM_GetShiftState [11:23:38]SAM_PROTO_GetShiftState [11:23:38]wFMCommunicate request_size=4 [11:23:38]MH_SAM_APDU [11:23:38]CAPDU: 80 13 01 00 [11:23:38]Write to MH i2c: E2 08 00 92 31 80 13 01 00 00 00 00 00 40 [11:23:38]Write i2c OK [11:23:38]MH_I2C_Read... [11:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:39]Read from MH i2c: E2 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 0E 00 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 0E 00 92 31 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 90 [11:23:39]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:23:39]wFMCommunicate OK [11:23:39]SAM_PROTO_GetShiftState done [11:23:39]FM_GetShiftState done [11:23:39]opened in 1730075620 [11:23:39]opened+sec_in_day 1730162020 [11:23:39]quantity*price = 20003 [11:23:39]sum+1 = 20004 [11:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 70 28.10.2024 11:23 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192522 ФПД: 151188792085345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112343&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192522&fm=151188792085345&tin=02508201610067®Number=0000000000091776&sum=20000 [11:23:40]StoreToDocumentArchive [11:23:40]shift 543 fd 192522 [11:23:40]save to /storage/0543/doc_00192522 [11:23:40]save last doc name /storage/0543/doc_00192522 to /storage/kkm_last_doc_name [11:23:40]save OK [11:23:40]Clear old archive folders... [11:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:40]tlvbuf is 019F4490 [11:23:40]SAM_PROTO_ClearQueue [11:23:40]wFMCommunicate request_size=4 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 09 00 00 [11:23:40]Write to MH i2c: E2 08 00 9F 31 80 09 00 00 00 00 00 00 42 [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 9F 31 00 90 00 44 [11:23:40]RAPDU: 90 00 [11:23:40]wFMCommunicate OK [11:23:40]SAM_PROTO_ClearQueue done [11:23:40]KKMCreateOFDPacket [11:23:40]OFDProtocolAddRootSTLVToBuf [11:23:40]FM_MakeSignedData [11:23:40]FM_MakeSignedData [11:23:40]SAM_PROTO_SignData [11:23:40]wFMCommunicate request_size=4 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 0D 01 02 [11:23:40]Write to MH i2c: E2 08 00 A0 31 80 0D 01 02 00 00 00 00 4A [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 A0 31 00 90 00 45 [11:23:40]RAPDU: 90 00 [11:23:40]wFMCommunicate OK [11:23:40]wFMCommunicate request_size=255 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 3F 74 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A F0 02 00 35 04 06 00 89 [11:23:40]Write to MH i2c: E2 02 01 A1 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 3F 74 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A F0 02 00 35 04 06 00 89 00 00 C5 [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 A1 31 00 90 00 46 [11:23:40]RAPDU: 90 00 [11:23:40]wFMCommunicate OK [11:23:40]wFMCommunicate request_size=10 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 0D 02 02 05 81 62 3F 0B 61 [11:23:40]Write to MH i2c: E2 0D 00 A2 31 80 0D 02 02 05 00 81 62 3F 0B 61 00 00 E5 [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 A2 31 00 90 00 47 [11:23:40]RAPDU: 90 00 [11:23:40]wFMCommunicate OK [11:23:40]wFMCommunicate request_size=4 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 0D 03 02 [11:23:40]Write to MH i2c: E2 08 00 A3 31 80 0D 03 02 00 00 00 00 4F [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 0B 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 0B 00 A3 31 00 A5 0F 15 C3 C3 C9 C5 94 90 00 C1 [11:23:40]RAPDU: A5 0F 15 C3 C3 C9 C5 94 90 00 [11:23:40]wFMCommunicate OK [11:23:40]SAM_PROTO_SignData done [11:23:40]FM_MakeSignedData done [11:23:40]CreateOFDProtocolMessage [11:23:40]wFMCommunicate request_size=4 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 11 00 00 [11:23:40]Write to MH i2c: E2 08 00 A4 31 80 11 00 00 00 00 00 00 4F [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 17 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 17 00 A4 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A2 [11:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:23:40]wFMCommunicate OK [11:23:40]CreateOFDProtocolMessage done [11:23:40]OFDSenderStorePacket 192522 [11:23:40]StoreOFDPacket docnum=192522 [11:23:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E1 4C 07 01 91 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 3F 74 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A F0 02 00 35 04 06 00 89 81 62 3F 0B 61 A5 0F 15 C3 C3 C9 C5 94 [11:23:40]CheckFolder [11:23:40]dirname=/storage/ofd_packets [11:23:40]CheckFolder done [11:23:40]ProducePacketName [11:23:40]name=ofd_packets/00192522 [11:23:40]NVStorageSaveData ofd_packets/00192522 [11:23:40]File name is /storage/ofd_packets/00192522 [11:23:40]Write 301 bytes [11:23:40]NVStorageSaveData done [11:23:40]OFDSenderStorePacket done [11:23:40]KKMCreateOFDPacket done [11:23:40]NVStorageSaveData kkm_last_timestamp [11:23:40]File name is /storage/kkm_last_timestamp [11:23:40]Write 4 bytes [11:23:40]NVStorageSaveData done [11:23:40]ExternCall_PrintAddStr [11:23:40]wPrintStart [11:23:40]Write to MH i2c: 01 00 00 A5 31 D6 [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: 01 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: 01 07 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: 01 07 00 A5 31 00 00 00 00 00 FF 0F EB [11:23:40]RasterBufferAndPrint [11:23:40]line Счет N : (1)31842 [11:23:40]line ИНН: 02508201610067 [11:23:40]line Контрольно-Кассовый Чек [11:23:40]line ПРОДАЖА [11:23:40]line ТРК (МРК, ГНК) : 12 [11:23:40]line Товар: 2710124130 [11:23:40]line Аи-92-К-5 [11:23:40]line 2.990 * 66.90 [11:23:40]line = 200.03 [11:23:40]line НДС 12% НСП 1% [11:23:40]line > о реализуемом товаре [11:23:40]line ОКРУГЛЕНИЕ: -0.03 [11:23:40]line ИТОГО: 200.00 [11:23:40]line Внесено: 200.00 [11:23:40]line СДАЧА: 0.00 [11:23:40]line НСП 1% : 1.77 [11:23:40]line НДС 12% : 21.24 [11:23:40]line Наличными: 200.00 [11:23:40]line Безнал.: 0.00 [11:23:40]line Место: АЗС № 170 "Партнер Нефть" [11:23:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:23:40]line СНО: Общий режим [11:23:40]line Чек 70 28.10.2024 11:23 [11:23:40]line Смена: 543 ФФД: 1.0 [11:23:40]line ЗНМ: 0300000110 [11:23:40]line РНМ: 0000000000091776 [11:23:40]line Версия ККМ: 001 [11:23:40]line ФМ: 0000000000871754 [11:23:40]line ФД: 192522 [11:23:40]line ФПД: 151188792085345 [11:23:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112343&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192522&fm=151188792085345&tin=02508201610067®Number=0000000000091776&sum=20000 [11:23:41]OFD Sender: Processing packet 192522 [packets to send 75, broken 74] [11:23:41]ProducePacketName [11:23:41]name=ofd_packets/00192522 [11:23:41]OFD Sender: To server: pG, [11:23:41]CommunicateWithHost lk.salyk.kg:30040 [11:23:41]ConnectInit lk.salyk.kg [11:23:41]written 0, free lines is 4095 [11:23:41]Connected sock=10 [11:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E1 4C 07 01 91 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 3F 74 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A F0 02 00 35 04 06 00 89 81 62 3F 0B 61 A5 0F 15 C3 C3 C9 C5 94 [11:23:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 15 E2 47 00 22 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A F0 02 00 F4 03 04 00 04 19 1F 67 B6 04 01 00 00 51 D8 4D 70 E5 B1 22 4D [11:23:41]CommunicateWithHost err = 0 [11:23:41]CheckOFDResponse [11:23:41]1017 (14) - 77093643461234 [11:23:41]1041 (16) - 0000000000871754 [11:23:41]1040 (4) - 192522 [11:23:41]1012 (4) - 28.10.2024 04:54 [11:23:41]1206 (1) - 0 [11:23:41]OFD Sender: Remove packet 192522 [11:23:41]ProducePacketName [11:23:41]name=ofd_packets/00192522 [11:23:41]NVStorageDeleteData [11:23:41]Write to MH i2c: 01 00 00 D0 31 01 [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 07 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 07 00 D0 31 00 00 00 00 00 A0 0C B4 [11:23:41]RasterBufferAndPrint [11:23:41]line [11:23:41]line [11:23:41]line [11:23:41]line [11:23:41]line [11:23:41]written 0, free lines is 3237 [11:23:41]MH_Cut [11:23:41]Write to MH i2c: D1 01 00 D7 31 01 DA [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: D1 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: D1 01 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: D1 01 00 D7 31 00 D9 [11:23:41]Write to MH i2c: 01 00 00 D8 31 09 [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]OFD Sender: No OFD packet to send [11:23:42]*** Cut start [11:23:42]*** Partial cut [11:23:42]*** CUTSNS_PIN = 1 [11:23:42]*** CUTSNS_PIN = 0 [11:23:42]*** Brake cut motor [11:23:42]Read from MH i2c: 01 [11:23:42]MH_I2C_Read... [11:23:42]*** Stop cut motor [11:23:42]*** Cut end [11:23:42]Read from MH i2c: 01 07 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: 01 07 00 D8 31 00 00 00 00 00 FF 0F 1E [11:23:42]process_action close_receipt done [11:23:42]requested_data is exist [11:23:42]produce_requested_data [11:23:42]requested_item fm.sn is exist - process it [11:23:42]wFMCommunicate request_size=4 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 11 00 00 [11:23:42]Write to MH i2c: E2 08 00 D9 31 80 11 00 00 00 00 00 00 84 [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:43]Read from MH i2c: E2 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 17 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 17 00 D9 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D7 [11:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:23:43]wFMCommunicate OK [11:23:43]requested_item fd.num is exist - process it [11:23:43]SAM_PROTO_GetFieldsCounters [11:23:43]wFMCommunicate request_size=4 [11:23:43]MH_SAM_APDU [11:23:43]CAPDU: 80 13 00 00 [11:23:43]Write to MH i2c: E2 08 00 DA 31 80 13 00 00 00 00 00 00 87 [11:23:43]Write i2c OK [11:23:43]MH_I2C_Read... [11:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:43]Read from MH i2c: E2 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 62 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 62 00 DA 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [11:23:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:43]wFMCommunicate OK [11:23:43]SAM_PROTO_GetFieldsCounters done [11:23:43]requested_item shift.num is exist - process it [11:23:43]requested_item shift.opened is exist - process it [11:23:43]req_shift_opened [11:23:43]FM_GetShiftState [11:23:43]SAM_PROTO_GetShiftState [11:23:43]wFMCommunicate request_size=4 [11:23:43]MH_SAM_APDU [11:23:43]CAPDU: 80 13 01 00 [11:23:43]Write to MH i2c: E2 08 00 DB 31 80 13 01 00 00 00 00 00 89 [11:23:43]Write i2c OK [11:23:43]MH_I2C_Read... [11:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:43]Read from MH i2c: E2 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 0E 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 0E 00 DB 31 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D9 [11:23:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:23:43]wFMCommunicate OK [11:23:43]SAM_PROTO_GetShiftState done [11:23:43]FM_GetShiftState done [11:23:43]req_shift_opened done [11:23:43]requested_item shift.open_date is exist - process it [11:23:43]req_shift_open_date [11:23:43]req_shift_open_date done [11:23:43]produce_requested_data done [11:23:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192522,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:23:43]process_action_free close_receipt [11:23:43]json_value_free [11:23:43]json_value_free done [11:23:43]process_json_proto returns [11:23:43]Send response to host [11:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192522,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:23:43]free response buf [11:23:43]execute_script done [11:23:43]execute_script returns [11:23:43]free content buf [11:23:43]Sock 7.Close socket [11:23:43]Sock 7.Thread stoped [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:25]accept exits with 9 [11:24:25]New connection [11:24:25]New thread 3066707300 created [11:24:25]Thread 3066563940 joined [11:24:25]Waiting for new connection... [11:24:25] Sock 9.Parse request [11:24:25]Sock 9.Check first char [11:24:25]Sock 9.First char is OK [11:24:25]request: POST /json_proto HTTP/1.0 [11:24:25]Method: POST [11:24:25]URL: /json_proto [11:24:25]Method is POST - this is cgi request [11:24:25]url: /json_proto [11:24:25]query_string will be loaded in cgi processing [11:24:25]execute_cgi json_proto POST (null) [11:24:25]execute_cgi path=json_proto method=POST [11:24:25]POST find Content-Length [11:24:25]Host: 172.17.63.131:8080 [11:24:25]Content-Length: 676 [11:24:25]Content-Type: application/json [11:24:25] [11:24:25]POST finish read [11:24:25]Found Content-Length = 676 [11:24:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:25]execute_script... [11:24:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:25]POST & json_proto [11:24:25]process_json_proto [11:24:25]json parsed OK: [11:24:25]protocol is kg_v1.0 [11:24:25]action value=close_receipt [11:24:25]process_action close_receipt [11:24:25]cmd_close_receipt [11:24:25]MH_GetDate [11:24:25]Write to MH i2c: F0 00 00 DC 31 FC [11:24:25]Write i2c OK [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: F0 [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: F0 09 00 [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: F0 09 00 DC 31 00 6E 74 1F 67 22 05 6E 64 66 [11:24:25]GetLastDocTimeStamp 1730114623 [11:24:25]current date 1730114670 [11:24:25]FM_GetShiftState [11:24:25]SAM_PROTO_GetShiftState [11:24:25]wFMCommunicate request_size=4 [11:24:25]MH_SAM_APDU [11:24:25]CAPDU: 80 13 01 00 [11:24:25]Write to MH i2c: E2 08 00 DD 31 80 13 01 00 00 00 00 00 8B [11:24:25]Write i2c OK [11:24:25]MH_I2C_Read... [11:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:25]Read from MH i2c: E2 [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: E2 0E 00 [11:24:25]MH_I2C_Read... [11:24:25]Read from MH i2c: E2 0E 00 DD 31 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DB [11:24:25]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:24:25]wFMCommunicate OK [11:24:25]SAM_PROTO_GetShiftState done [11:24:25]FM_GetShiftState done [11:24:25]opened in 1730075620 [11:24:25]opened+sec_in_day 1730162020 [11:24:25]quantity*price = 20003 [11:24:25]sum+1 = 20004 [11:24:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 71 28.10.2024 11:24 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192523 ФПД: 47920225614533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112430&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192523&fm=47920225614533&tin=02508201610067®Number=0000000000091776&sum=20000 [11:24:26]StoreToDocumentArchive [11:24:26]shift 543 fd 192523 [11:24:26]save to /storage/0543/doc_00192523 [11:24:26]save last doc name /storage/0543/doc_00192523 to /storage/kkm_last_doc_name [11:24:26]save OK [11:24:26]Clear old archive folders... [11:24:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:26]tlvbuf is 01991890 [11:24:26]SAM_PROTO_ClearQueue [11:24:26]wFMCommunicate request_size=4 [11:24:26]MH_SAM_APDU [11:24:26]CAPDU: 80 09 00 00 [11:24:26]Write to MH i2c: E2 08 00 EA 31 80 09 00 00 00 00 00 00 8D [11:24:26]Write i2c OK [11:24:26]MH_I2C_Read... [11:24:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:27]Read from MH i2c: E2 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 03 00 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 03 00 EA 31 00 90 00 8F [11:24:27]RAPDU: 90 00 [11:24:27]wFMCommunicate OK [11:24:27]SAM_PROTO_ClearQueue done [11:24:27]KKMCreateOFDPacket [11:24:27]OFDProtocolAddRootSTLVToBuf [11:24:27]FM_MakeSignedData [11:24:27]FM_MakeSignedData [11:24:27]SAM_PROTO_SignData [11:24:27]wFMCommunicate request_size=4 [11:24:27]MH_SAM_APDU [11:24:27]CAPDU: 80 0D 01 02 [11:24:27]Write to MH i2c: E2 08 00 EB 31 80 0D 01 02 00 00 00 00 95 [11:24:27]Write i2c OK [11:24:27]MH_I2C_Read... [11:24:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:27]Read from MH i2c: E2 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 03 00 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 03 00 EB 31 00 90 00 90 [11:24:27]RAPDU: 90 00 [11:24:27]wFMCommunicate OK [11:24:27]wFMCommunicate request_size=255 [11:24:27]MH_SAM_APDU [11:24:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 6E 74 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B F0 02 00 35 04 06 00 2B [11:24:27]Write to MH i2c: E2 02 01 EC 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 6E 74 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B F0 02 00 35 04 06 00 2B 00 00 E3 [11:24:27]Write i2c OK [11:24:27]MH_I2C_Read... [11:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:27]Read from MH i2c: E2 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 03 00 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 03 00 EC 31 00 90 00 91 [11:24:27]RAPDU: 90 00 [11:24:27]wFMCommunicate OK [11:24:27]wFMCommunicate request_size=10 [11:24:27]MH_SAM_APDU [11:24:27]CAPDU: 80 0D 02 02 05 95 4C 06 7A C5 [11:24:27]Write to MH i2c: E2 0D 00 ED 31 80 0D 02 02 05 00 95 4C 06 7A C5 00 00 C8 [11:24:27]Write i2c OK [11:24:27]MH_I2C_Read... [11:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:27]Read from MH i2c: E2 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 03 00 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 03 00 ED 31 00 90 00 92 [11:24:27]RAPDU: 90 00 [11:24:27]wFMCommunicate OK [11:24:27]wFMCommunicate request_size=4 [11:24:27]MH_SAM_APDU [11:24:27]CAPDU: 80 0D 03 02 [11:24:27]Write to MH i2c: E2 08 00 EE 31 80 0D 03 02 00 00 00 00 9A [11:24:27]Write i2c OK [11:24:27]MH_I2C_Read... [11:24:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:27]Read from MH i2c: E2 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 0B 00 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 0B 00 EE 31 00 66 B9 25 9D 41 40 5D A6 90 00 00 [11:24:27]RAPDU: 66 B9 25 9D 41 40 5D A6 90 00 [11:24:27]wFMCommunicate OK [11:24:27]SAM_PROTO_SignData done [11:24:27]FM_MakeSignedData done [11:24:27]CreateOFDProtocolMessage [11:24:27]wFMCommunicate request_size=4 [11:24:27]MH_SAM_APDU [11:24:27]CAPDU: 80 11 00 00 [11:24:27]Write to MH i2c: E2 08 00 EF 31 80 11 00 00 00 00 00 00 9A [11:24:27]Write i2c OK [11:24:27]MH_I2C_Read... [11:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:27]Read from MH i2c: E2 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 17 00 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: E2 17 00 EF 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 ED [11:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:24:27]wFMCommunicate OK [11:24:27]CreateOFDProtocolMessage done [11:24:27]OFDSenderStorePacket 192523 [11:24:27]StoreOFDPacket docnum=192523 [11:24:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 45 E1 07 01 7A 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 6E 74 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B F0 02 00 35 04 06 00 2B 95 4C 06 7A C5 66 B9 25 9D 41 40 5D A6 [11:24:27]CheckFolder [11:24:27]dirname=/storage/ofd_packets [11:24:27]CheckFolder done [11:24:27]ProducePacketName [11:24:27]name=ofd_packets/00192523 [11:24:27]NVStorageSaveData ofd_packets/00192523 [11:24:27]File name is /storage/ofd_packets/00192523 [11:24:27]Write 301 bytes [11:24:27]NVStorageSaveData done [11:24:27]OFDSenderStorePacket done [11:24:27]KKMCreateOFDPacket done [11:24:27]NVStorageSaveData kkm_last_timestamp [11:24:27]File name is /storage/kkm_last_timestamp [11:24:27]Write 4 bytes [11:24:27]NVStorageSaveData done [11:24:27]ExternCall_PrintAddStr [11:24:27]wPrintStart [11:24:27]Write to MH i2c: 01 00 00 F0 31 21 [11:24:27]Write i2c OK [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: 01 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: 01 07 00 [11:24:27]MH_I2C_Read... [11:24:27]Read from MH i2c: 01 07 00 F0 31 00 00 00 00 00 FF 0F 36 [11:24:27]RasterBufferAndPrint [11:24:27]line Счет N : (1)31843 [11:24:27]line ИНН: 02508201610067 [11:24:27]line Контрольно-Кассовый Чек [11:24:27]line ПРОДАЖА [11:24:27]line ТРК (МРК, ГНК) : 21 [11:24:27]line Товар: 2710124130 [11:24:27]line Аи-92-К-5 [11:24:27]line 2.990 * 66.90 [11:24:27]line = 200.03 [11:24:27]line НДС 12% НСП 1% [11:24:27]line > о реализуемом товаре [11:24:27]line ОКРУГЛЕНИЕ: -0.03 [11:24:27]line ИТОГО: 200.00 [11:24:27]line Внесено: 200.00 [11:24:27]line СДАЧА: 0.00 [11:24:27]line НСП 1% : 1.77 [11:24:27]line НДС 12% : 21.24 [11:24:27]line Наличными: 200.00 [11:24:27]line Безнал.: 0.00 [11:24:27]line Место: АЗС № 170 "Партнер Нефть" [11:24:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:24:27]line СНО: Общий режим [11:24:27]line Чек 71 28.10.2024 11:24 [11:24:27]line Смена: 543 ФФД: 1.0 [11:24:27]line ЗНМ: 0300000110 [11:24:27]line РНМ: 0000000000091776 [11:24:27]line Версия ККМ: 001 [11:24:27]line ФМ: 0000000000871754 [11:24:27]line ФД: 192523 [11:24:27]line ФПД: 47920225614533 [11:24:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112430&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192523&fm=47920225614533&tin=02508201610067®Number=0000000000091776&sum=20000 [11:24:27]OFD Sender: Processing packet 192523 [packets to send 75, broken 74] [11:24:27]ProducePacketName [11:24:27]name=ofd_packets/00192523 [11:24:27]OFD Sender: To server: pG, [11:24:27]CommunicateWithHost lk.salyk.kg:30040 [11:24:27]ConnectInit lk.salyk.kg [11:24:27]written 0, free lines is 4095 [11:24:27]Connected sock=10 [11:24:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 45 E1 07 01 7A 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 6E 74 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B F0 02 00 35 04 06 00 2B 95 4C 06 7A C5 66 B9 25 9D 41 40 5D A6 [11:24:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AB F6 47 00 2E 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B F0 02 00 F4 03 04 00 33 19 1F 67 B6 04 01 00 00 1F E5 16 35 90 91 A4 92 [11:24:28]CommunicateWithHost err = 0 [11:24:28]CheckOFDResponse [11:24:28]1017 (14) - 77093643461234 [11:24:28]1041 (16) - 0000000000871754 [11:24:28]1040 (4) - 192523 [11:24:28]1012 (4) - 28.10.2024 04:55 [11:24:28]1206 (1) - 0 [11:24:28]OFD Sender: Remove packet 192523 [11:24:28]ProducePacketName [11:24:28]name=ofd_packets/00192523 [11:24:28]NVStorageDeleteData [11:24:28]Write to MH i2c: 01 00 00 1B 32 4D [11:24:28]Write i2c OK [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: 01 [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: 01 07 00 [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: 01 07 00 1B 32 00 00 00 00 00 A5 0C 05 [11:24:28]RasterBufferAndPrint [11:24:28]line [11:24:28]line [11:24:28]line [11:24:28]line [11:24:28]line [11:24:28]written 0, free lines is 3242 [11:24:28]MH_Cut [11:24:28]Write to MH i2c: D1 01 00 22 32 01 26 [11:24:28]Write i2c OK [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: D1 [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: D1 01 00 [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: D1 01 00 22 32 00 25 [11:24:28]Write to MH i2c: 01 00 00 23 32 55 [11:24:28]Write i2c OK [11:24:28]MH_I2C_Read... [11:24:28]OFD Sender: No OFD packet to send [11:24:29]*** Cut start [11:24:29]*** Partial cut [11:24:29]*** CUTSNS_PIN = 1 [11:24:29]*** CUTSNS_PIN = 0 [11:24:29]*** Brake cut motor [11:24:29]Read from MH i2c: 01 [11:24:29]MH_I2C_Read... [11:24:29]*** Stop cut motor [11:24:29]*** Cut end [11:24:29]Read from MH i2c: 01 07 00 [11:24:29]MH_I2C_Read... [11:24:29]Read from MH i2c: 01 07 00 23 32 00 00 00 00 00 FF 0F 6A [11:24:29]process_action close_receipt done [11:24:29]requested_data is exist [11:24:29]produce_requested_data [11:24:29]requested_item fm.sn is exist - process it [11:24:29]wFMCommunicate request_size=4 [11:24:29]MH_SAM_APDU [11:24:29]CAPDU: 80 11 00 00 [11:24:29]Write to MH i2c: E2 08 00 24 32 80 11 00 00 00 00 00 00 D0 [11:24:29]Write i2c OK [11:24:29]MH_I2C_Read... [11:24:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:29]Read from MH i2c: E2 [11:24:29]MH_I2C_Read... [11:24:29]Read from MH i2c: E2 17 00 [11:24:29]MH_I2C_Read... [11:24:29]Read from MH i2c: E2 17 00 24 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 23 [11:24:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:24:29]wFMCommunicate OK [11:24:29]requested_item fd.num is exist - process it [11:24:29]SAM_PROTO_GetFieldsCounters [11:24:29]wFMCommunicate request_size=4 [11:24:29]MH_SAM_APDU [11:24:29]CAPDU: 80 13 00 00 [11:24:29]Write to MH i2c: E2 08 00 25 32 80 13 00 00 00 00 00 00 D3 [11:24:29]Write i2c OK [11:24:29]MH_I2C_Read... [11:24:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:29]Read from MH i2c: E2 [11:24:29]MH_I2C_Read... [11:24:29]Read from MH i2c: E2 62 00 [11:24:29]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 62 00 25 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [11:24:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:30]wFMCommunicate OK [11:24:30]SAM_PROTO_GetFieldsCounters done [11:24:30]requested_item shift.num is exist - process it [11:24:30]requested_item shift.opened is exist - process it [11:24:30]req_shift_opened [11:24:30]FM_GetShiftState [11:24:30]SAM_PROTO_GetShiftState [11:24:30]wFMCommunicate request_size=4 [11:24:30]MH_SAM_APDU [11:24:30]CAPDU: 80 13 01 00 [11:24:30]Write to MH i2c: E2 08 00 26 32 80 13 01 00 00 00 00 00 D5 [11:24:30]Write i2c OK [11:24:30]MH_I2C_Read... [11:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:30]Read from MH i2c: E2 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 0E 00 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 0E 00 26 32 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 25 [11:24:30]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:24:30]wFMCommunicate OK [11:24:30]SAM_PROTO_GetShiftState done [11:24:30]FM_GetShiftState done [11:24:30]req_shift_opened done [11:24:30]requested_item shift.open_date is exist - process it [11:24:30]req_shift_open_date [11:24:30]req_shift_open_date done [11:24:30]produce_requested_data done [11:24:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192523,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:24:30]process_action_free close_receipt [11:24:30]json_value_free [11:24:30]json_value_free done [11:24:30]process_json_proto returns [11:24:30]Send response to host [11:24:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192523,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:24:30]free response buf [11:24:30]execute_script done [11:24:30]execute_script returns [11:24:30]free content buf [11:24:30]Sock 9.Close socket [11:24:30]Sock 9.Thread stoped [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [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:24:58]accept exits with 7 [11:24:58]New connection [11:24:58]New thread 3066563940 created [11:24:58]Thread 3066707300 joined [11:24:58]Waiting for new connection... [11:24:58] Sock 7.Parse request [11:24:58]Sock 7.Check first char [11:24:58]Sock 7.First char is OK [11:24:58]request: POST /json_proto HTTP/1.0 [11:24:58]Method: POST [11:24:58]URL: /json_proto [11:24:58]Method is POST - this is cgi request [11:24:58]url: /json_proto [11:24:58]query_string will be loaded in cgi processing [11:24:58]execute_cgi json_proto POST (null) [11:24:58]execute_cgi path=json_proto method=POST [11:24:58]POST find Content-Length [11:24:58]Host: 172.17.63.131:8080 [11:24:58]Content-Length: 672 [11:24:58]Content-Type: application/json [11:24:58] [11:24:58]POST finish read [11:24:58]Found Content-Length = 672 [11:24:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.050, "sum" : 70.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:58]execute_script... [11:24: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)31844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.050, "sum" : 70.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:58]POST & json_proto [11:24:58]process_json_proto [11:24:58]json parsed OK: [11:24:58]protocol is kg_v1.0 [11:24:58]action value=close_receipt [11:24:58]process_action close_receipt [11:24:58]cmd_close_receipt [11:24:58]MH_GetDate [11:24:58]Write to MH i2c: F0 00 00 27 32 48 [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: F0 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: F0 09 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: F0 09 00 27 32 00 8F 74 1F 67 22 05 6E 64 D3 [11:24:58]GetLastDocTimeStamp 1730114670 [11:24:58]current date 1730114703 [11:24:58]FM_GetShiftState [11:24:58]SAM_PROTO_GetShiftState [11:24:58]wFMCommunicate request_size=4 [11:24:58]MH_SAM_APDU [11:24:58]CAPDU: 80 13 01 00 [11:24:58]Write to MH i2c: E2 08 00 28 32 80 13 01 00 00 00 00 00 D7 [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:58]Read from MH i2c: E2 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 0E 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: E2 0E 00 28 32 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 27 [11:24:58]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:24:58]wFMCommunicate OK [11:24:58]SAM_PROTO_GetShiftState done [11:24:58]FM_GetShiftState done [11:24:58]opened in 1730075620 [11:24:58]opened+sec_in_day 1730162020 [11:24:58]quantity*price = 7024 [11:24:58]sum+1 = 7026 [11:24:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 70.00 Внесено: 70.00 СДАЧА: 0.00 НСП 1% : 0.62 НДС 12% : 7.46 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 72 28.10.2024 11:25 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192524 ФПД: 26187673049462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112503&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192524&fm=26187673049462&tin=02508201610067®Number=0000000000091776&sum=7000 [11:24:59]StoreToDocumentArchive [11:24:59]shift 543 fd 192524 [11:24:59]save to /storage/0543/doc_00192524 [11:24:59]save last doc name /storage/0543/doc_00192524 to /storage/kkm_last_doc_name [11:24:59]save OK [11:24:59]Clear old archive folders... [11:24:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:59]tlvbuf is 019AEE70 [11:24:59]SAM_PROTO_ClearQueue [11:24:59]wFMCommunicate request_size=4 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 09 00 00 [11:24:59]Write to MH i2c: E2 08 00 35 32 80 09 00 00 00 00 00 00 D9 [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 35 32 00 90 00 DB [11:25:00]RAPDU: 90 00 [11:25:00]wFMCommunicate OK [11:25:00]SAM_PROTO_ClearQueue done [11:25:00]KKMCreateOFDPacket [11:25:00]OFDProtocolAddRootSTLVToBuf [11:25:00]FM_MakeSignedData [11:25:00]FM_MakeSignedData [11:25:00]SAM_PROTO_SignData [11:25:00]wFMCommunicate request_size=4 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 0D 01 02 [11:25:00]Write to MH i2c: E2 08 00 36 32 80 0D 01 02 00 00 00 00 E1 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 36 32 00 90 00 DC [11:25:00]RAPDU: 90 00 [11:25:00]wFMCommunicate OK [11:25:00]wFMCommunicate request_size=255 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 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 EA 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 48 00 00 00 F4 03 04 00 8F 74 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C F0 02 00 35 04 06 00 17 [11:25:00]Write to MH i2c: E2 02 01 37 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 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 EA 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 48 00 00 00 F4 03 04 00 8F 74 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C F0 02 00 35 04 06 00 17 00 00 ED [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 37 32 00 90 00 DD [11:25:00]RAPDU: 90 00 [11:25:00]wFMCommunicate OK [11:25:00]wFMCommunicate request_size=10 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 0D 02 02 05 D1 4A F3 19 76 [11:25:00]Write to MH i2c: E2 0D 00 38 32 80 0D 02 02 05 00 D1 4A F3 19 76 00 00 8B [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 03 00 38 32 00 90 00 DE [11:25:00]RAPDU: 90 00 [11:25:00]wFMCommunicate OK [11:25:00]wFMCommunicate request_size=4 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 0D 03 02 [11:25:00]Write to MH i2c: E2 08 00 39 32 80 0D 03 02 00 00 00 00 E6 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 0B 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 0B 00 39 32 00 01 B2 BF 72 10 06 75 6B 90 00 C1 [11:25:00]RAPDU: 01 B2 BF 72 10 06 75 6B 90 00 [11:25:00]wFMCommunicate OK [11:25:00]SAM_PROTO_SignData done [11:25:00]FM_MakeSignedData done [11:25:00]CreateOFDProtocolMessage [11:25:00]wFMCommunicate request_size=4 [11:25:00]MH_SAM_APDU [11:25:00]CAPDU: 80 11 00 00 [11:25:00]Write to MH i2c: E2 08 00 3A 32 80 11 00 00 00 00 00 00 E6 [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:00]Read from MH i2c: E2 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 17 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: E2 17 00 3A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 39 [11:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:25:00]wFMCommunicate OK [11:25:00]CreateOFDProtocolMessage done [11:25:00]OFDSenderStorePacket 192524 [11:25:00]StoreOFDPacket docnum=192524 [11:25:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 6E 07 01 1D 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 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 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 EA 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 48 00 00 00 F4 03 04 00 8F 74 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C F0 02 00 35 04 06 00 17 D1 4A F3 19 76 01 B2 BF 72 10 06 75 6B [11:25:00]CheckFolder [11:25:00]dirname=/storage/ofd_packets [11:25:00]CheckFolder done [11:25:00]ProducePacketName [11:25:00]name=ofd_packets/00192524 [11:25:00]NVStorageSaveData ofd_packets/00192524 [11:25:00]File name is /storage/ofd_packets/00192524 [11:25:00]Write 301 bytes [11:25:00]NVStorageSaveData done [11:25:00]OFDSenderStorePacket done [11:25:00]KKMCreateOFDPacket done [11:25:00]NVStorageSaveData kkm_last_timestamp [11:25:00]File name is /storage/kkm_last_timestamp [11:25:00]Write 4 bytes [11:25:00]NVStorageSaveData done [11:25:00]OFD Sender: Processing packet 192524 [packets to send 75, broken 74] [11:25:00]ProducePacketName [11:25:00]name=ofd_packets/00192524 [11:25:00]OFD Sender: To server: pG, [11:25:00]CommunicateWithHost lk.salyk.kg:30040 [11:25:00]ConnectInit lk.salyk.kg [11:25:00]ExternCall_PrintAddStr [11:25:00]wPrintStart [11:25:00]Write to MH i2c: 01 00 00 3B 32 6D [11:25:00]Write i2c OK [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 07 00 [11:25:00]MH_I2C_Read... [11:25:00]Read from MH i2c: 01 07 00 3B 32 00 00 00 00 00 FF 0F 82 [11:25:00]RasterBufferAndPrint [11:25:00]line Счет N : (1)31844 [11:25:00]line ИНН: 02508201610067 [11:25:00]line Контрольно-Кассовый Чек [11:25:00]line ПРОДАЖА [11:25:00]line ТРК (МРК, ГНК) : 21 [11:25:00]line Товар: 2710124130 [11:25:00]line Аи-92-К-5 [11:25:00]line 1.050 * 66.90 [11:25:00]line = 70.25 [11:25:00]line НДС 12% НСП 1% [11:25:00]line > о реализуемом товаре [11:25:00]line ОКРУГЛЕНИЕ: -0.25 [11:25:00]line ИТОГО: 70.00 [11:25:00]line Внесено: 70.00 [11:25:00]line СДАЧА: 0.00 [11:25:00]line НСП 1% : 0.62 [11:25:00]line НДС 12% : 7.46 [11:25:00]line Наличными: 70.00 [11:25:00]line Безнал.: 0.00 [11:25:00]line Место: АЗС № 170 "Партнер Нефть" [11:25:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:25:00]line СНО: Общий режим [11:25:00]line Чек 72 28.10.2024 11:25 [11:25:00]line Смена: 543 ФФД: 1.0 [11:25:00]line ЗНМ: 0300000110 [11:25:00]line РНМ: 0000000000091776 [11:25:00]line Версия ККМ: 001 [11:25:00]line ФМ: 0000000000871754 [11:25:00]line ФД: 192524 [11:25:00]line ФПД: 26187673049462 [11:25:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112503&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192524&fm=26187673049462&tin=02508201610067®Number=0000000000091776&sum=7000 [11:25:00]written 0, free lines is 4095 [11:25:00]Connected sock=11 [11:25:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 6E 07 01 1D 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 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 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 EA 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 48 00 00 00 F4 03 04 00 8F 74 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C F0 02 00 35 04 06 00 17 D1 4A F3 19 76 01 B2 BF 72 10 06 75 6B [11:25:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 57 74 47 00 1D B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C F0 02 00 F4 03 04 00 54 19 1F 67 B6 04 01 00 00 9B 5D 4C F0 20 AF EF 02 [11:25:01]CommunicateWithHost err = 0 [11:25:01]CheckOFDResponse [11:25:01]1017 (14) - 77093643461234 [11:25:01]1041 (16) - 0000000000871754 [11:25:01]1040 (4) - 192524 [11:25:01]1012 (4) - 28.10.2024 04:55 [11:25:01]1206 (1) - 0 [11:25:01]OFD Sender: Remove packet 192524 [11:25:01]ProducePacketName [11:25:01]name=ofd_packets/00192524 [11:25:01]NVStorageDeleteData [11:25:01]Write to MH i2c: 01 00 00 66 32 98 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: 01 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: 01 07 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: 01 07 00 66 32 00 00 00 00 00 A0 0C 4B [11:25:01]RasterBufferAndPrint [11:25:01]line [11:25:01]line [11:25:01]line [11:25:01]line [11:25:01]line [11:25:01]written 0, free lines is 3239 [11:25:01]MH_Cut [11:25:01]Write to MH i2c: D1 01 00 6D 32 01 71 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: D1 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: D1 01 00 [11:25:01]MH_I2C_Read... [11:25:01]Read from MH i2c: D1 01 00 6D 32 00 70 [11:25:01]Write to MH i2c: 01 00 00 6E 32 A0 [11:25:01]Write i2c OK [11:25:01]MH_I2C_Read... [11:25:01]OFD Sender: No OFD packet to send [11:25:02]*** Cut start [11:25:02]*** Partial cut [11:25:02]*** CUTSNS_PIN = 1 [11:25:02]*** CUTSNS_PIN = 0 [11:25:02]*** Brake cut motor [11:25:02]Read from MH i2c: 01 [11:25:02]MH_I2C_Read... [11:25:02]*** Stop cut motor [11:25:02]*** Cut end [11:25:02]Read from MH i2c: 01 07 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: 01 07 00 6E 32 00 00 00 00 00 FF 0F B5 [11:25:02]process_action close_receipt done [11:25:02]requested_data is exist [11:25:02]produce_requested_data [11:25:02]requested_item fm.sn is exist - process it [11:25:02]wFMCommunicate request_size=4 [11:25:02]MH_SAM_APDU [11:25:02]CAPDU: 80 11 00 00 [11:25:02]Write to MH i2c: E2 08 00 6F 32 80 11 00 00 00 00 00 00 1B [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:02]Read from MH i2c: E2 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 17 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 17 00 6F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6E [11:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:25:02]wFMCommunicate OK [11:25:02]requested_item fd.num is exist - process it [11:25:02]SAM_PROTO_GetFieldsCounters [11:25:02]wFMCommunicate request_size=4 [11:25:02]MH_SAM_APDU [11:25:02]CAPDU: 80 13 00 00 [11:25:02]Write to MH i2c: E2 08 00 70 32 80 13 00 00 00 00 00 00 1E [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:02]Read from MH i2c: E2 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 62 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 62 00 70 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [11:25:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:02]wFMCommunicate OK [11:25:02]SAM_PROTO_GetFieldsCounters done [11:25:02]requested_item shift.num is exist - process it [11:25:02]requested_item shift.opened is exist - process it [11:25:02]req_shift_opened [11:25:02]FM_GetShiftState [11:25:02]SAM_PROTO_GetShiftState [11:25:02]wFMCommunicate request_size=4 [11:25:02]MH_SAM_APDU [11:25:02]CAPDU: 80 13 01 00 [11:25:02]Write to MH i2c: E2 08 00 71 32 80 13 01 00 00 00 00 00 20 [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:02]Read from MH i2c: E2 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 0E 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 0E 00 71 32 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 70 [11:25:02]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:25:02]wFMCommunicate OK [11:25:02]SAM_PROTO_GetShiftState done [11:25:02]FM_GetShiftState done [11:25:02]req_shift_opened done [11:25:02]requested_item shift.open_date is exist - process it [11:25:02]req_shift_open_date [11:25:02]req_shift_open_date done [11:25:02]produce_requested_data done [11:25:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192524,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:25:02]process_action_free close_receipt [11:25:02]json_value_free [11:25:02]json_value_free done [11:25:03]process_json_proto returns [11:25:03]Send response to host [11:25:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192524,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:25:03]free response buf [11:25:03]execute_script done [11:25:03]execute_script returns [11:25:03]free content buf [11:25:03]Sock 7.Close socket [11:25:03]Sock 7.Thread stoped [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:12]accept exits with 9 [11:28:12]New connection [11:28:12]New thread 3066707300 created [11:28:12]Thread 3066563940 joined [11:28:12]Waiting for new connection... [11:28:12] Sock 9.Parse request [11:28:12]Sock 9.Check first char [11:28:12]Sock 9.First char is OK [11:28:12]request: POST /json_proto HTTP/1.0 [11:28:12]Method: POST [11:28:12]URL: /json_proto [11:28:12]Method is POST - this is cgi request [11:28:12]url: /json_proto [11:28:12]query_string will be loaded in cgi processing [11:28:12]execute_cgi json_proto POST (null) [11:28:12]execute_cgi path=json_proto method=POST [11:28:12]POST find Content-Length [11:28:12]Host: 172.17.63.131:8080 [11:28:12]Content-Length: 983 [11:28:12]Content-Type: application/json [11:28:12] [11:28:12]POST finish read [11:28:12]Found Content-Length = 983 [11:28:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.190, "sum" : 1989.52, "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 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.19 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1989.00, "payments": [ { "type": 0, "sum" : 1989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:12]execute_script... [11:28: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)31845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.190, "sum" : 1989.52, "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 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.19 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1989.00, "payments": [ { "type": 0, "sum" : 1989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:12]POST & json_proto [11:28:12]process_json_proto [11:28:12]json parsed OK: [11:28:12]protocol is kg_v1.0 [11:28:12]action value=close_receipt [11:28:12]process_action close_receipt [11:28:12]cmd_close_receipt [11:28:12]MH_GetDate [11:28:12]Write to MH i2c: F0 00 00 72 32 93 [11:28:12]Write i2c OK [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: F0 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: F0 09 00 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: F0 09 00 72 32 00 51 75 1F 67 22 05 6E 64 E1 [11:28:12]GetLastDocTimeStamp 1730114703 [11:28:12]current date 1730114897 [11:28:12]FM_GetShiftState [11:28:12]SAM_PROTO_GetShiftState [11:28:12]wFMCommunicate request_size=4 [11:28:12]MH_SAM_APDU [11:28:12]CAPDU: 80 13 01 00 [11:28:12]Write to MH i2c: E2 08 00 73 32 80 13 01 00 00 00 00 00 22 [11:28:12]Write i2c OK [11:28:12]MH_I2C_Read... [11:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:12]Read from MH i2c: E2 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 0E 00 [11:28:12]MH_I2C_Read... [11:28:12]Read from MH i2c: E2 0E 00 73 32 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 72 [11:28:12]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:28:12]wFMCommunicate OK [11:28:12]SAM_PROTO_GetShiftState done [11:28:12]FM_GetShiftState done [11:28:12]opened in 1730075620 [11:28:12]opened+sec_in_day 1730162020 [11:28:12]quantity*price = 198952 [11:28:12]sum+1 = 198953 [11:28:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 1989.00 Внесено: 2000.00 СДАЧА: 11.00 НСП 1% : 17.61 НДС 12% : 211.28 Наличными: 1989.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 73 28.10.2024 11:28 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 30.19 сом ФМ: 0000000000871754 ФД: 192525 ФПД: 86719999900341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112817&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192525&fm=86719999900341&tin=02508201610067®Number=0000000000091776&sum=198900 [11:28:13]StoreToDocumentArchive [11:28:13]shift 543 fd 192525 [11:28:13]save to /storage/0543/doc_00192525 [11:28:13]save last doc name /storage/0543/doc_00192525 to /storage/kkm_last_doc_name [11:28:13]save OK [11:28:13]Clear old archive folders... [11:28:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:13]tlvbuf is 01A87FC0 [11:28:13]SAM_PROTO_ClearQueue [11:28:13]wFMCommunicate request_size=4 [11:28:13]MH_SAM_APDU [11:28:13]CAPDU: 80 09 00 00 [11:28:13]Write to MH i2c: E2 08 00 80 32 80 09 00 00 00 00 00 00 24 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:13]Read from MH i2c: E2 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 80 32 00 90 00 26 [11:28:13]RAPDU: 90 00 [11:28:13]wFMCommunicate OK [11:28:13]SAM_PROTO_ClearQueue done [11:28:13]KKMCreateOFDPacket [11:28:13]OFDProtocolAddRootSTLVToBuf [11:28:13]FM_MakeSignedData [11:28:13]FM_MakeSignedData [11:28:13]SAM_PROTO_SignData [11:28:13]wFMCommunicate request_size=4 [11:28:13]MH_SAM_APDU [11:28:13]CAPDU: 80 0D 01 02 [11:28:13]Write to MH i2c: E2 08 00 81 32 80 0D 01 02 00 00 00 00 2C [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:13]Read from MH i2c: E2 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: E2 03 00 81 32 00 90 00 27 [11:28:13]RAPDU: 90 00 [11:28:13]wFMCommunicate OK [11:28:13]wFMCommunicate request_size=255 [11:28:13]MH_SAM_APDU [11:28: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 EE 75 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 28 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 08 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 52 00 00 00 00 07 04 06 00 F4 08 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 51 75 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D F0 02 00 35 04 06 00 4E [11:28:13]Write to MH i2c: E2 02 01 82 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 28 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 08 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 52 00 00 00 00 07 04 06 00 F4 08 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 51 75 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D F0 02 00 35 04 06 00 4E 00 00 6B [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 03 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 03 00 82 32 00 90 00 28 [11:28:14]RAPDU: 90 00 [11:28:14]wFMCommunicate OK [11:28:14]wFMCommunicate request_size=10 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 0D 02 02 05 DF 12 C9 FA B5 [11:28:14]Write to MH i2c: E2 0D 00 83 32 80 0D 02 02 05 00 DF 12 C9 FA B5 00 00 A2 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 03 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 03 00 83 32 00 90 00 29 [11:28:14]RAPDU: 90 00 [11:28:14]wFMCommunicate OK [11:28:14]wFMCommunicate request_size=4 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 0D 03 02 [11:28:14]Write to MH i2c: E2 08 00 84 32 80 0D 03 02 00 00 00 00 31 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 0B 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 0B 00 84 32 00 5F 6E C2 70 63 BF EE A2 90 00 E3 [11:28:14]RAPDU: 5F 6E C2 70 63 BF EE A2 90 00 [11:28:14]wFMCommunicate OK [11:28:14]SAM_PROTO_SignData done [11:28:14]FM_MakeSignedData done [11:28:14]CreateOFDProtocolMessage [11:28:14]wFMCommunicate request_size=4 [11:28:14]MH_SAM_APDU [11:28:14]CAPDU: 80 11 00 00 [11:28:14]Write to MH i2c: E2 08 00 85 32 80 11 00 00 00 00 00 00 31 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:14]Read from MH i2c: E2 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 17 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: E2 17 00 85 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 84 [11:28:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:28:14]wFMCommunicate OK [11:28:14]CreateOFDProtocolMessage done [11:28:14]OFDSenderStorePacket 192525 [11:28:14]StoreOFDPacket docnum=192525 [11:28:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0E B2 07 01 BF 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 28 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 08 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 52 00 00 00 00 07 04 06 00 F4 08 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 51 75 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D F0 02 00 35 04 06 00 4E DF 12 C9 FA B5 5F 6E C2 70 63 BF EE A2 [11:28:14]CheckFolder [11:28:14]dirname=/storage/ofd_packets [11:28:14]CheckFolder done [11:28:14]ProducePacketName [11:28:14]name=ofd_packets/00192525 [11:28:14]NVStorageSaveData ofd_packets/00192525 [11:28:14]File name is /storage/ofd_packets/00192525 [11:28:14]Write 301 bytes [11:28:14]NVStorageSaveData done [11:28:14]OFDSenderStorePacket done [11:28:14]KKMCreateOFDPacket done [11:28:14]NVStorageSaveData kkm_last_timestamp [11:28:14]File name is /storage/kkm_last_timestamp [11:28:14]Write 4 bytes [11:28:14]NVStorageSaveData done [11:28:14]ExternCall_PrintAddStr [11:28:14]wPrintStart [11:28:14]Write to MH i2c: 01 00 00 86 32 B8 [11:28:14]Write i2c OK [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: 01 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: 01 07 00 [11:28:14]MH_I2C_Read... [11:28:14]Read from MH i2c: 01 07 00 86 32 00 00 00 00 00 FF 0F CD [11:28:14]RasterBufferAndPrint [11:28:14]line Счет N : (1)31845 [11:28:14]line ИНН: 02508201610067 [11:28:14]line Контрольно-Кассовый Чек [11:28:14]line ПРОДАЖА [11:28:14]line ТРК (МРК, ГНК) : 12 [11:28:14]line Товар: 2710124130 [11:28:14]line Аи-92-К-5 [11:28:14]line 30.190 * 65.90 [11:28:14]line = 1989.52 [11:28:14]line НДС 12% НСП 1% [11:28:14]line > о реализуемом товаре [11:28:14]line ОКРУГЛЕНИЕ: -0.52 [11:28:14]line ИТОГО: 1989.00 [11:28:14]line Внесено: 2000.00 [11:28:14]line СДАЧА: 11.00 [11:28:14]line НСП 1% : 17.61 [11:28:14]line НДС 12% : 211.28 [11:28:14]line Наличными: 1989.00 [11:28:14]line Безнал.: 0.00 [11:28:14]line Место: АЗС № 170 "Партнер Нефть" [11:28:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:28:14]line СНО: Общий режим [11:28:14]line Чек 73 28.10.2024 11:28 [11:28:14]line Смена: 543 ФФД: 1.0 [11:28:14]line ЗНМ: 0300000110 [11:28:14]line РНМ: 0000000000091776 [11:28:14]line Версия ККМ: 001 [11:28:14]line [11:28:14]line Дисконтная программа [11:28:14]line АИ-92 [11:28:14]line номер 170 [11:28:14]line сэкономлено 30.19 сом [11:28:14]line ФМ: 0000000000871754 [11:28:14]line ФД: 192525 [11:28:14]line ФПД: 86719999900341 [11:28:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112817&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192525&fm=86719999900341&tin=02508201610067®Number=0000000000091776&sum=198900 [11:28:14]OFD Sender: Processing packet 192525 [packets to send 75, broken 74] [11:28:14]ProducePacketName [11:28:14]name=ofd_packets/00192525 [11:28:14]OFD Sender: To server: pG, [11:28:14]CommunicateWithHost lk.salyk.kg:30040 [11:28:14]ConnectInit lk.salyk.kg [11:28:14]written 0, free lines is 4095 [11:28:14]Connected sock=10 [11:28:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0E B2 07 01 BF 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 28 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 08 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 52 00 00 00 00 07 04 06 00 F4 08 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 51 75 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D F0 02 00 35 04 06 00 4E DF 12 C9 FA B5 5F 6E C2 70 63 BF EE A2 [11:28:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EE BA 47 00 1B F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D F0 02 00 F4 03 04 00 15 1A 1F 67 B6 04 01 00 00 D2 76 FC 85 7E 74 8E 18 [11:28:14]CommunicateWithHost err = 0 [11:28:14]CheckOFDResponse [11:28:14]1017 (14) - 77093643461234 [11:28:14]1041 (16) - 0000000000871754 [11:28:14]1040 (4) - 192525 [11:28:14]1012 (4) - 28.10.2024 04:59 [11:28:14]1206 (1) - 0 [11:28:14]OFD Sender: Remove packet 192525 [11:28:14]ProducePacketName [11:28:14]name=ofd_packets/00192525 [11:28:14]NVStorageDeleteData [11:28:15]Write to MH i2c: 01 00 00 B6 32 E8 [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: 01 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: 01 07 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: 01 07 00 B6 32 00 00 00 00 00 54 0C 4F [11:28:15]RasterBufferAndPrint [11:28:15]line [11:28:15]line [11:28:15]line [11:28:15]line [11:28:15]line [11:28:15]written 0, free lines is 3161 [11:28:15]MH_Cut [11:28:15]Write to MH i2c: D1 01 00 BD 32 01 C1 [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: D1 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: D1 01 00 [11:28:15]MH_I2C_Read... [11:28:15]Read from MH i2c: D1 01 00 BD 32 00 C0 [11:28:15]Write to MH i2c: 01 00 00 BE 32 F0 [11:28:15]Write i2c OK [11:28:15]MH_I2C_Read... [11:28:15]OFD Sender: No OFD packet to send [11:28:16]*** Cut start [11:28:16]*** Partial cut [11:28:16]*** CUTSNS_PIN = 1 [11:28:16]*** CUTSNS_PIN = 0 [11:28:16]*** Brake cut motor [11:28:16]Read from MH i2c: 01 [11:28:16]MH_I2C_Read... [11:28:16]*** Stop cut motor [11:28:16]*** Cut end [11:28:16]Read from MH i2c: 01 07 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: 01 07 00 BE 32 00 00 00 00 00 FF 0F 05 [11:28:16]process_action close_receipt done [11:28:16]requested_data is exist [11:28:16]produce_requested_data [11:28:16]requested_item fm.sn is exist - process it [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 11 00 00 [11:28:16]Write to MH i2c: E2 08 00 BF 32 80 11 00 00 00 00 00 00 6B [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 17 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 17 00 BF 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BE [11:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:28:16]wFMCommunicate OK [11:28:16]requested_item fd.num is exist - process it [11:28:16]SAM_PROTO_GetFieldsCounters [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 13 00 00 [11:28:16]Write to MH i2c: E2 08 00 C0 32 80 13 00 00 00 00 00 00 6E [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 62 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 62 00 C0 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [11:28:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_GetFieldsCounters done [11:28:16]requested_item shift.num is exist - process it [11:28:16]requested_item shift.opened is exist - process it [11:28:16]req_shift_opened [11:28:16]FM_GetShiftState [11:28:16]SAM_PROTO_GetShiftState [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 13 01 00 [11:28:16]Write to MH i2c: E2 08 00 C1 32 80 13 01 00 00 00 00 00 70 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0E 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0E 00 C1 32 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C0 [11:28:16]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_GetShiftState done [11:28:16]FM_GetShiftState done [11:28:16]req_shift_opened done [11:28:16]requested_item shift.open_date is exist - process it [11:28:16]req_shift_open_date [11:28:16]req_shift_open_date done [11:28:16]produce_requested_data done [11:28:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192525,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:28:16]process_action_free close_receipt [11:28:16]json_value_free [11:28:16]json_value_free done [11:28:16]process_json_proto returns [11:28:16]Send response to host [11:28:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192525,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:28:16]free response buf [11:28:16]execute_script done [11:28:16]execute_script returns [11:28:16]free content buf [11:28:16]Sock 9.Close socket [11:28:16]Sock 9.Thread stoped [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:46]accept exits with 7 [11:29:46]New connection [11:29:46]New thread 3066563940 created [11:29:46]Thread 3066707300 joined [11:29:46]Waiting for new connection... [11:29:46] Sock 7.Parse request [11:29:46]Sock 7.Check first char [11:29:46]Sock 7.First char is OK [11:29:46]request: POST /json_proto HTTP/1.0 [11:29:46]Method: POST [11:29:46]URL: /json_proto [11:29:46]Method is POST - this is cgi request [11:29:46]url: /json_proto [11:29:46]query_string will be loaded in cgi processing [11:29:46]execute_cgi json_proto POST (null) [11:29:46]execute_cgi path=json_proto method=POST [11:29:46]POST find Content-Length [11:29:46]Host: 172.17.63.131:8080 [11:29:46]Content-Length: 678 [11:29:46]Content-Type: application/json [11:29:46] [11:29:46]POST finish read [11:29:46]Found Content-Length = 678 [11:29:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 30.190, "sum" : 2300.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2300.00, "payments": [ { "type": 0, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:46]execute_script... [11:29: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)31846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 30.190, "sum" : 2300.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2300.00, "total" : 2300.00, "payments": [ { "type": 0, "sum" : 2300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:46]POST & json_proto [11:29:46]process_json_proto [11:29:46]json parsed OK: [11:29:46]protocol is kg_v1.0 [11:29:46]action value=close_receipt [11:29:46]process_action close_receipt [11:29:46]cmd_close_receipt [11:29:46]MH_GetDate [11:29:46]Write to MH i2c: F0 00 00 C2 32 E3 [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: F0 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: F0 09 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: F0 09 00 C2 32 00 AE 75 1F 67 22 05 6E 64 8E [11:29:46]GetLastDocTimeStamp 1730114897 [11:29:46]current date 1730114990 [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 C3 32 80 13 01 00 00 00 00 00 72 [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 C3 32 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C2 [11:29:46]RAPDU: 09 00 01 E4 DB 1E 67 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]opened in 1730075620 [11:29:46]opened+sec_in_day 1730162020 [11:29:46]quantity*price = 230047 [11:29:46]sum+1 = 230049 [11:29:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 2300.00 Внесено: 2300.00 СДАЧА: 0.00 НСП 1% : 20.36 НДС 12% : 244.30 Наличными: 2300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 74 28.10.2024 11:29 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192526 ФПД: 3026962562825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112951&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192526&fm=3026962562825&tin=02508201610067®Number=0000000000091776&sum=230000 [11:29:47]StoreToDocumentArchive [11:29:47]shift 543 fd 192526 [11:29:47]save to /storage/0543/doc_00192526 [11:29:47]save last doc name /storage/0543/doc_00192526 to /storage/kkm_last_doc_name [11:29:47]save OK [11:29:47]Clear old archive folders... [11:29:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:29:47]tlvbuf is 019C32F0 [11:29:47]SAM_PROTO_ClearQueue [11:29:47]wFMCommunicate request_size=4 [11:29:47]MH_SAM_APDU [11:29:47]CAPDU: 80 09 00 00 [11:29:47]Write to MH i2c: E2 08 00 D0 32 80 09 00 00 00 00 00 00 74 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:47]Read from MH i2c: E2 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 03 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 03 00 D0 32 00 90 00 76 [11:29:47]RAPDU: 90 00 [11:29:47]wFMCommunicate OK [11:29:47]SAM_PROTO_ClearQueue done [11:29:47]KKMCreateOFDPacket [11:29:47]OFDProtocolAddRootSTLVToBuf [11:29:47]FM_MakeSignedData [11:29:47]FM_MakeSignedData [11:29:47]SAM_PROTO_SignData [11:29:47]wFMCommunicate request_size=4 [11:29:47]MH_SAM_APDU [11:29:47]CAPDU: 80 0D 01 02 [11:29:47]Write to MH i2c: E2 08 00 D1 32 80 0D 01 02 00 00 00 00 7C [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:47]Read from MH i2c: E2 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 03 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 03 00 D1 32 00 90 00 77 [11:29:47]RAPDU: 90 00 [11:29:47]wFMCommunicate OK [11:29:47]wFMCommunicate request_size=255 [11:29:47]MH_SAM_APDU [11:29:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 70 82 03 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 AF 75 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E F0 02 00 35 04 06 00 02 C0 C5 07 [11:29:47]Write to MH i2c: E2 02 01 D2 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 70 82 03 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 AF 75 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E F0 02 00 35 04 06 00 02 C0 C5 07 00 00 9C [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:47]Read from MH i2c: E2 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 03 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 03 00 D2 32 00 90 00 78 [11:29:47]RAPDU: 90 00 [11:29:47]wFMCommunicate OK [11:29:47]wFMCommunicate request_size=7 [11:29:47]MH_SAM_APDU [11:29:47]CAPDU: 80 0D 02 02 02 3F 09 [11:29:47]Write to MH i2c: E2 0A 00 D3 32 80 0D 02 02 02 00 3F 09 00 00 CB [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:47]Read from MH i2c: E2 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 03 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 03 00 D3 32 00 90 00 79 [11:29:47]RAPDU: 90 00 [11:29:47]wFMCommunicate OK [11:29:47]wFMCommunicate request_size=4 [11:29:47]MH_SAM_APDU [11:29:47]CAPDU: 80 0D 03 02 [11:29:47]Write to MH i2c: E2 08 00 D4 32 80 0D 03 02 00 00 00 00 81 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:47]Read from MH i2c: E2 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 0B 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 0B 00 D4 32 00 C7 EB 11 D0 67 41 68 1A 90 00 3F [11:29:47]RAPDU: C7 EB 11 D0 67 41 68 1A 90 00 [11:29:47]wFMCommunicate OK [11:29:47]SAM_PROTO_SignData done [11:29:47]FM_MakeSignedData done [11:29:47]CreateOFDProtocolMessage [11:29:47]wFMCommunicate request_size=4 [11:29:47]MH_SAM_APDU [11:29:47]CAPDU: 80 11 00 00 [11:29:47]Write to MH i2c: E2 08 00 D5 32 80 11 00 00 00 00 00 00 81 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:47]Read from MH i2c: E2 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 17 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 17 00 D5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D4 [11:29:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:29:47]wFMCommunicate OK [11:29:47]CreateOFDProtocolMessage done [11:29:47]OFDSenderStorePacket 192526 [11:29:47]StoreOFDPacket docnum=192526 [11:29:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DC 22 04 01 29 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 70 82 03 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 AF 75 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E F0 02 00 35 04 06 00 02 C0 C5 07 3F 09 C7 EB 11 D0 67 41 68 1A [11:29:47]CheckFolder [11:29:47]dirname=/storage/ofd_packets [11:29:47]CheckFolder done [11:29:47]ProducePacketName [11:29:47]name=ofd_packets/00192526 [11:29:47]NVStorageSaveData ofd_packets/00192526 [11:29:47]File name is /storage/ofd_packets/00192526 [11:29:47]Write 298 bytes [11:29:47]NVStorageSaveData done [11:29:47]OFDSenderStorePacket done [11:29:47]KKMCreateOFDPacket done [11:29:47]NVStorageSaveData kkm_last_timestamp [11:29:47]File name is /storage/kkm_last_timestamp [11:29:47]Write 4 bytes [11:29:47]NVStorageSaveData done [11:29:47]ExternCall_PrintAddStr [11:29:47]wPrintStart [11:29:47]Write to MH i2c: 01 00 00 D6 32 08 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 07 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 07 00 D6 32 00 00 00 00 00 FF 0F 1D [11:29:47]RasterBufferAndPrint [11:29:47]line Счет N : (1)31846 [11:29:47]line ИНН: 02508201610067 [11:29:47]line Контрольно-Кассовый Чек [11:29:47]line ПРОДАЖА [11:29:47]line ТРК (МРК, ГНК) : 11 [11:29:47]line Товар: 2710194210 [11:29:47]line ДТ-К-5 [11:29:47]line 30.190 * 76.20 [11:29:47]line = 2300.48 [11:29:47]line НДС 12% НСП 1% [11:29:47]line > о реализуемом товаре [11:29:47]line ОКРУГЛЕНИЕ: -0.48 [11:29:47]line ИТОГО: 2300.00 [11:29:47]line Внесено: 2300.00 [11:29:47]line СДАЧА: 0.00 [11:29:47]line НСП 1% : 20.36 [11:29:47]line НДС 12% : 244.30 [11:29:47]line Наличными: 2300.00 [11:29:47]line Безнал.: 0.00 [11:29:47]line Место: АЗС № 170 "Партнер Нефть" [11:29:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:29:47]line СНО: Общий режим [11:29:47]line Чек 74 28.10.2024 11:29 [11:29:47]line Смена: 543 ФФД: 1.0 [11:29:47]line ЗНМ: 0300000110 [11:29:47]line РНМ: 0000000000091776 [11:29:47]line Версия ККМ: 001 [11:29:47]line ФМ: 0000000000871754 [11:29:47]line ФД: 192526 [11:29:47]line ФПД: 3026962562825 [11:29:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112951&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192526&fm=3026962562825&tin=02508201610067®Number=0000000000091776&sum=230000 [11:29:48]OFD Sender: Processing packet 192526 [packets to send 75, broken 74] [11:29:48]ProducePacketName [11:29:48]name=ofd_packets/00192526 [11:29:48]OFD Sender: To server: pG, [11:29:48]CommunicateWithHost lk.salyk.kg:30040 [11:29:48]ConnectInit lk.salyk.kg [11:29:48]written 0, free lines is 4095 [11:29:48]Connected sock=10 [11:29:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DC 22 04 01 29 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 75 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 82 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 82 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 5F 00 00 00 00 07 04 06 00 70 82 03 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 AF 75 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E F0 02 00 35 04 06 00 02 C0 C5 07 3F 09 C7 EB 11 D0 67 41 68 1A [11:29:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9B C0 47 00 B2 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E F0 02 00 F4 03 04 00 73 1A 1F 67 B6 04 01 00 00 C4 22 11 7E 92 B2 92 0B [11:29:48]CommunicateWithHost err = 0 [11:29:48]CheckOFDResponse [11:29:48]1017 (14) - 77093643461234 [11:29:48]1041 (16) - 0000000000871754 [11:29:48]1040 (4) - 192526 [11:29:48]1012 (4) - 28.10.2024 05:00 [11:29:48]1206 (1) - 0 [11:29:48]OFD Sender: Remove packet 192526 [11:29:48]ProducePacketName [11:29:48]name=ofd_packets/00192526 [11:29:48]NVStorageDeleteData [11:29:48]Write to MH i2c: 01 00 00 01 33 34 [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: 01 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: 01 07 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: 01 07 00 01 33 00 00 00 00 00 AF 0C F6 [11:29:48]RasterBufferAndPrint [11:29:48]line [11:29:48]line [11:29:48]line [11:29:48]line [11:29:48]line [11:29:48]written 0, free lines is 3253 [11:29:48]MH_Cut [11:29:48]Write to MH i2c: D1 01 00 08 33 01 0D [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: D1 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: D1 01 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: D1 01 00 08 33 00 0C [11:29:48]Write to MH i2c: 01 00 00 09 33 3C [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]OFD Sender: No OFD packet to send [11:29:49]*** Cut start [11:29:49]*** Partial cut [11:29:49]*** CUTSNS_PIN = 1 [11:29:49]*** CUTSNS_PIN = 0 [11:29:49]*** Brake cut motor [11:29:49]Read from MH i2c: 01 [11:29:49]MH_I2C_Read... [11:29:49]*** Stop cut motor [11:29:49]*** Cut end [11:29:49]Read from MH i2c: 01 07 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: 01 07 00 09 33 00 00 00 00 00 FF 0F 51 [11:29:49]process_action close_receipt done [11:29:49]requested_data is exist [11:29:49]produce_requested_data [11:29:49]requested_item fm.sn is exist - process it [11:29:49]wFMCommunicate request_size=4 [11:29:49]MH_SAM_APDU [11:29:49]CAPDU: 80 11 00 00 [11:29:49]Write to MH i2c: E2 08 00 0A 33 80 11 00 00 00 00 00 00 B7 [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:50]Read from MH i2c: E2 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 17 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 17 00 0A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [11:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:29:50]wFMCommunicate OK [11:29:50]requested_item fd.num is exist - process it [11:29:50]SAM_PROTO_GetFieldsCounters [11:29:50]wFMCommunicate request_size=4 [11:29:50]MH_SAM_APDU [11:29:50]CAPDU: 80 13 00 00 [11:29:50]Write to MH i2c: E2 08 00 0B 33 80 13 00 00 00 00 00 00 BA [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:50]Read from MH i2c: E2 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 62 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 62 00 0B 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [11:29:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:50]wFMCommunicate OK [11:29:50]SAM_PROTO_GetFieldsCounters done [11:29:50]requested_item shift.num is exist - process it [11:29:50]requested_item shift.opened is exist - process it [11:29:50]req_shift_opened [11:29:50]FM_GetShiftState [11:29:50]SAM_PROTO_GetShiftState [11:29:50]wFMCommunicate request_size=4 [11:29:50]MH_SAM_APDU [11:29:50]CAPDU: 80 13 01 00 [11:29:50]Write to MH i2c: E2 08 00 0C 33 80 13 01 00 00 00 00 00 BC [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:50]Read from MH i2c: E2 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 0E 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 0E 00 0C 33 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0C [11:29:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:29:50]wFMCommunicate OK [11:29:50]SAM_PROTO_GetShiftState done [11:29:50]FM_GetShiftState done [11:29:50]req_shift_opened done [11:29:50]requested_item shift.open_date is exist - process it [11:29:50]req_shift_open_date [11:29:50]req_shift_open_date done [11:29:50]produce_requested_data done [11:29:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192526,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:29:50]process_action_free close_receipt [11:29:50]json_value_free [11:29:50]json_value_free done [11:29:50]process_json_proto returns [11:29:50]Send response to host [11:29:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192526,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:29:50]free response buf [11:29:50]execute_script done [11:29:50]execute_script returns [11:29:50]free content buf [11:29:50]Sock 7.Close socket [11:29:50]Sock 7.Thread stoped [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:26]accept exits with 9 [11:37:26]New connection [11:37:26]New thread 3066707300 created [11:37:26]Thread 3066563940 joined [11:37:26]Waiting for new connection... [11:37:26] Sock 9.Parse request [11:37:26]Sock 9.Check first char [11:37:26]Sock 9.First char is OK [11:37:26]request: POST /json_proto HTTP/1.0 [11:37:26]Method: POST [11:37:26]URL: /json_proto [11:37:26]Method is POST - this is cgi request [11:37:26]url: /json_proto [11:37:26]query_string will be loaded in cgi processing [11:37:26]execute_cgi json_proto POST (null) [11:37:26]execute_cgi path=json_proto method=POST [11:37:26]POST find Content-Length [11:37:26]Host: 172.17.63.131:8080 [11:37:26]Content-Length: 676 [11:37:26]Content-Type: application/json [11:37:26] [11:37:26]POST finish read [11:37:26]Found Content-Length = 676 [11:37:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:26]execute_script... [11:37: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)31847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:26]POST & json_proto [11:37:26]process_json_proto [11:37:26]json parsed OK: [11:37:26]protocol is kg_v1.0 [11:37:26]action value=close_receipt [11:37:26]process_action close_receipt [11:37:26]cmd_close_receipt [11:37:26]MH_GetDate [11:37:26]Write to MH i2c: F0 00 00 0D 33 2F [11:37:26]Write i2c OK [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: F0 [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: F0 09 00 [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: F0 09 00 0D 33 00 7B 77 1F 67 22 05 6E 64 A9 [11:37:26]GetLastDocTimeStamp 1730114991 [11:37:26]current date 1730115451 [11:37:26]FM_GetShiftState [11:37:26]SAM_PROTO_GetShiftState [11:37:26]wFMCommunicate request_size=4 [11:37:26]MH_SAM_APDU [11:37:26]CAPDU: 80 13 01 00 [11:37:26]Write to MH i2c: E2 08 00 0E 33 80 13 01 00 00 00 00 00 BE [11:37:26]Write i2c OK [11:37:26]MH_I2C_Read... [11:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:26]Read from MH i2c: E2 [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: E2 0E 00 [11:37:26]MH_I2C_Read... [11:37:26]Read from MH i2c: E2 0E 00 0E 33 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0E [11:37:26]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:37:26]wFMCommunicate OK [11:37:26]SAM_PROTO_GetShiftState done [11:37:26]FM_GetShiftState done [11:37:26]opened in 1730075620 [11:37:26]opened+sec_in_day 1730162020 [11:37:26]quantity*price = 50041 [11:37:26]sum+1 = 50042 [11:37:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 75 28.10.2024 11:37 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192527 ФПД: 94597936433319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T113731&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192527&fm=94597936433319&tin=02508201610067®Number=0000000000091776&sum=50000 [11:37:27]StoreToDocumentArchive [11:37:27]shift 543 fd 192527 [11:37:27]save to /storage/0543/doc_00192527 [11:37:27]save last doc name /storage/0543/doc_00192527 to /storage/kkm_last_doc_name [11:37:27]save OK [11:37:27]Clear old archive folders... [11:37:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:27]tlvbuf is B6F199E0 [11:37:27]SAM_PROTO_ClearQueue [11:37:27]wFMCommunicate request_size=4 [11:37:27]MH_SAM_APDU [11:37:27]CAPDU: 80 09 00 00 [11:37:27]Write to MH i2c: E2 08 00 1B 33 80 09 00 00 00 00 00 00 C0 [11:37:27]Write i2c OK [11:37:27]MH_I2C_Read... [11:37:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:27]Read from MH i2c: E2 [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: E2 03 00 [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: E2 03 00 1B 33 00 90 00 C2 [11:37:27]RAPDU: 90 00 [11:37:27]wFMCommunicate OK [11:37:27]SAM_PROTO_ClearQueue done [11:37:27]KKMCreateOFDPacket [11:37:27]OFDProtocolAddRootSTLVToBuf [11:37:27]FM_MakeSignedData [11:37:27]FM_MakeSignedData [11:37:27]SAM_PROTO_SignData [11:37:27]wFMCommunicate request_size=4 [11:37:27]MH_SAM_APDU [11:37:27]CAPDU: 80 0D 01 02 [11:37:27]Write to MH i2c: E2 08 00 1C 33 80 0D 01 02 00 00 00 00 C8 [11:37:27]Write i2c OK [11:37:27]MH_I2C_Read... [11:37:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:28]Read from MH i2c: E2 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 03 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 03 00 1C 33 00 90 00 C3 [11:37:28]RAPDU: 90 00 [11:37:28]wFMCommunicate OK [11:37:28]wFMCommunicate request_size=255 [11:37:28]MH_SAM_APDU [11:37: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 7B 77 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F F0 02 00 35 04 06 00 56 [11:37:28]Write to MH i2c: E2 02 01 1D 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 7B 77 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F F0 02 00 35 04 06 00 56 00 00 97 [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:28]Read from MH i2c: E2 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 03 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 03 00 1D 33 00 90 00 C4 [11:37:28]RAPDU: 90 00 [11:37:28]wFMCommunicate OK [11:37:28]wFMCommunicate request_size=10 [11:37:28]MH_SAM_APDU [11:37:28]CAPDU: 80 0D 02 02 05 09 4C 65 C8 A7 [11:37:28]Write to MH i2c: E2 0D 00 1E 33 80 0D 02 02 05 00 09 4C 65 C8 A7 00 00 FE [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:28]Read from MH i2c: E2 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 03 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 03 00 1E 33 00 90 00 C5 [11:37:28]RAPDU: 90 00 [11:37:28]wFMCommunicate OK [11:37:28]wFMCommunicate request_size=4 [11:37:28]MH_SAM_APDU [11:37:28]CAPDU: 80 0D 03 02 [11:37:28]Write to MH i2c: E2 08 00 1F 33 80 0D 03 02 00 00 00 00 CD [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:28]Read from MH i2c: E2 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 0B 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 0B 00 1F 33 00 DC E8 F7 63 5C 50 23 8B 90 00 46 [11:37:28]RAPDU: DC E8 F7 63 5C 50 23 8B 90 00 [11:37:28]wFMCommunicate OK [11:37:28]SAM_PROTO_SignData done [11:37:28]FM_MakeSignedData done [11:37:28]CreateOFDProtocolMessage [11:37:28]wFMCommunicate request_size=4 [11:37:28]MH_SAM_APDU [11:37:28]CAPDU: 80 11 00 00 [11:37:28]Write to MH i2c: E2 08 00 20 33 80 11 00 00 00 00 00 00 CD [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:28]Read from MH i2c: E2 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 17 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 17 00 20 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [11:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:37:28]wFMCommunicate OK [11:37:28]CreateOFDProtocolMessage done [11:37:28]OFDSenderStorePacket 192527 [11:37:28]StoreOFDPacket docnum=192527 [11:37:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 92 8B 07 01 F8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 7B 77 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F F0 02 00 35 04 06 00 56 09 4C 65 C8 A7 DC E8 F7 63 5C 50 23 8B [11:37:28]CheckFolder [11:37:28]dirname=/storage/ofd_packets [11:37:28]CheckFolder done [11:37:28]ProducePacketName [11:37:28]name=ofd_packets/00192527 [11:37:28]NVStorageSaveData ofd_packets/00192527 [11:37:28]File name is /storage/ofd_packets/00192527 [11:37:28]Write 301 bytes [11:37:28]NVStorageSaveData done [11:37:28]OFDSenderStorePacket done [11:37:28]KKMCreateOFDPacket done [11:37:28]NVStorageSaveData kkm_last_timestamp [11:37:28]File name is /storage/kkm_last_timestamp [11:37:28]Write 4 bytes [11:37:28]NVStorageSaveData done [11:37:28]ExternCall_PrintAddStr [11:37:28]wPrintStart [11:37:28]Write to MH i2c: 01 00 00 21 33 54 [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: 01 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: 01 07 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: 01 07 00 21 33 00 00 00 00 00 FF 0F 69 [11:37:28]RasterBufferAndPrint [11:37:28]line Счет N : (1)31847 [11:37:28]line ИНН: 02508201610067 [11:37:28]line Контрольно-Кассовый Чек [11:37:28]line ПРОДАЖА [11:37:28]line ТРК (МРК, ГНК) : 21 [11:37:28]line Товар: 2710124130 [11:37:28]line Аи-92-К-5 [11:37:28]line 7.480 * 66.90 [11:37:28]line = 500.41 [11:37:28]line НДС 12% НСП 1% [11:37:28]line > о реализуемом товаре [11:37:28]line ОКРУГЛЕНИЕ: -0.41 [11:37:28]line ИТОГО: 500.00 [11:37:28]line Внесено: 500.00 [11:37:28]line СДАЧА: 0.00 [11:37:28]line НСП 1% : 4.43 [11:37:28]line НДС 12% : 53.14 [11:37:28]line Наличными: 500.00 [11:37:28]line Безнал.: 0.00 [11:37:28]line Место: АЗС № 170 "Партнер Нефть" [11:37:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:37:28]line СНО: Общий режим [11:37:28]line Чек 75 28.10.2024 11:37 [11:37:28]line Смена: 543 ФФД: 1.0 [11:37:28]line ЗНМ: 0300000110 [11:37:28]line РНМ: 0000000000091776 [11:37:28]line Версия ККМ: 001 [11:37:28]line ФМ: 0000000000871754 [11:37:28]line ФД: 192527 [11:37:28]line ФПД: 94597936433319 [11:37:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T113731&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192527&fm=94597936433319&tin=02508201610067®Number=0000000000091776&sum=50000 [11:37:28]OFD Sender: Processing packet 192527 [packets to send 75, broken 74] [11:37:28]ProducePacketName [11:37:28]name=ofd_packets/00192527 [11:37:28]OFD Sender: To server: pG, [11:37:28]CommunicateWithHost lk.salyk.kg:30040 [11:37:28]ConnectInit lk.salyk.kg [11:37:28]written 0, free lines is 4095 [11:37:28]Connected sock=10 [11:37:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 92 8B 07 01 F8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 7B 77 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F F0 02 00 35 04 06 00 56 09 4C 65 C8 A7 DC E8 F7 63 5C 50 23 8B [11:37:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E3 48 47 00 92 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F F0 02 00 F4 03 04 00 40 1C 1F 67 B6 04 01 00 00 C3 8F 33 87 B4 E0 36 7A [11:37:29]CommunicateWithHost err = 0 [11:37:29]CheckOFDResponse [11:37:29]1017 (14) - 77093643461234 [11:37:29]1041 (16) - 0000000000871754 [11:37:29]1040 (4) - 192527 [11:37:29]1012 (4) - 28.10.2024 05:08 [11:37:29]1206 (1) - 0 [11:37:29]OFD Sender: Remove packet 192527 [11:37:29]ProducePacketName [11:37:29]name=ofd_packets/00192527 [11:37:29]NVStorageDeleteData [11:37:29]Write to MH i2c: 01 00 00 4C 33 7F [11:37:29]Write i2c OK [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: 01 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: 01 07 00 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: 01 07 00 4C 33 00 00 00 00 00 A5 0C 37 [11:37:29]RasterBufferAndPrint [11:37:29]line [11:37:29]line [11:37:29]line [11:37:29]line [11:37:29]line [11:37:29]written 0, free lines is 3242 [11:37:29]MH_Cut [11:37:29]Write to MH i2c: D1 01 00 53 33 01 58 [11:37:29]Write i2c OK [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: D1 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: D1 01 00 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: D1 01 00 53 33 00 57 [11:37:29]Write to MH i2c: 01 00 00 54 33 87 [11:37:29]Write i2c OK [11:37:29]MH_I2C_Read... [11:37:29]OFD Sender: No OFD packet to send [11:37:30]*** Cut start [11:37:30]*** Partial cut [11:37:30]*** CUTSNS_PIN = 1 [11:37:30]*** CUTSNS_PIN = 0 [11:37:30]*** Brake cut motor [11:37:30]Read from MH i2c: 01 [11:37:30]MH_I2C_Read... [11:37:30]*** Stop cut motor [11:37:30]*** Cut end [11:37:30]Read from MH i2c: 01 07 00 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: 01 07 00 54 33 00 00 00 00 00 FF 0F 9C [11:37:30]process_action close_receipt done [11:37:30]requested_data is exist [11:37:30]produce_requested_data [11:37:30]requested_item fm.sn is exist - process it [11:37:30]wFMCommunicate request_size=4 [11:37:30]MH_SAM_APDU [11:37:30]CAPDU: 80 11 00 00 [11:37:30]Write to MH i2c: E2 08 00 55 33 80 11 00 00 00 00 00 00 02 [11:37:30]Write i2c OK [11:37:30]MH_I2C_Read... [11:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:30]Read from MH i2c: E2 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: E2 17 00 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: E2 17 00 55 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 55 [11:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:37:30]wFMCommunicate OK [11:37:30]requested_item fd.num is exist - process it [11:37:30]SAM_PROTO_GetFieldsCounters [11:37:30]wFMCommunicate request_size=4 [11:37:30]MH_SAM_APDU [11:37:30]CAPDU: 80 13 00 00 [11:37:30]Write to MH i2c: E2 08 00 56 33 80 13 00 00 00 00 00 00 05 [11:37:30]Write i2c OK [11:37:30]MH_I2C_Read... [11:37:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:30]Read from MH i2c: E2 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: E2 62 00 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: E2 62 00 56 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [11:37:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:30]wFMCommunicate OK [11:37:30]SAM_PROTO_GetFieldsCounters done [11:37:30]requested_item shift.num is exist - process it [11:37:30]requested_item shift.opened is exist - process it [11:37:30]req_shift_opened [11:37:30]FM_GetShiftState [11:37:30]SAM_PROTO_GetShiftState [11:37:30]wFMCommunicate request_size=4 [11:37:30]MH_SAM_APDU [11:37:30]CAPDU: 80 13 01 00 [11:37:30]Write to MH i2c: E2 08 00 57 33 80 13 01 00 00 00 00 00 07 [11:37:30]Write i2c OK [11:37:30]MH_I2C_Read... [11:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:30]Read from MH i2c: E2 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: E2 0E 00 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: E2 0E 00 57 33 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 57 [11:37:30]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:37:30]wFMCommunicate OK [11:37:30]SAM_PROTO_GetShiftState done [11:37:30]FM_GetShiftState done [11:37:30]req_shift_opened done [11:37:30]requested_item shift.open_date is exist - process it [11:37:30]req_shift_open_date [11:37:30]req_shift_open_date done [11:37:30]produce_requested_data done [11:37:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192527,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:37:30]process_action_free close_receipt [11:37:30]json_value_free [11:37:30]json_value_free done [11:37:30]process_json_proto returns [11:37:30]Send response to host [11:37:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192527,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:37:30]free response buf [11:37:30]execute_script done [11:37:30]execute_script returns [11:37:30]free content buf [11:37:30]Sock 9.Close socket [11:37:30]Sock 9.Thread stoped [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39: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:50]accept exits with 7 [11:39:50]New connection [11:39:50]New thread 3066563940 created [11:39:50]Thread 3066707300 joined [11:39:50]Waiting for new connection... [11:39:50] Sock 7.Parse request [11:39:50]Sock 7.Check first char [11:39:50]Sock 7.First char is OK [11:39:50]request: POST /json_proto HTTP/1.0 [11:39:50]Method: POST [11:39:50]URL: /json_proto [11:39:50]Method is POST - this is cgi request [11:39:50]url: /json_proto [11:39:50]query_string will be loaded in cgi processing [11:39:50]execute_cgi json_proto POST (null) [11:39:50]execute_cgi path=json_proto method=POST [11:39:50]POST find Content-Length [11:39:50]Host: 172.17.63.131:8080 [11:39:50]Content-Length: 678 [11:39:50]Content-Type: application/json [11:39:50] [11:39:50]POST finish read [11:39:50]Found Content-Length = 678 [11:39:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:50]execute_script... [11:39:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:50]POST & json_proto [11:39:50]process_json_proto [11:39:50]json parsed OK: [11:39:50]protocol is kg_v1.0 [11:39:50]action value=close_receipt [11:39:50]process_action close_receipt [11:39:50]cmd_close_receipt [11:39:50]MH_GetDate [11:39:50]Write to MH i2c: F0 00 00 58 33 7A [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: F0 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: F0 09 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: F0 09 00 58 33 00 0B 78 1F 67 22 05 6E 64 85 [11:39:50]GetLastDocTimeStamp 1730115451 [11:39:50]current date 1730115595 [11:39:50]FM_GetShiftState [11:39:50]SAM_PROTO_GetShiftState [11:39:50]wFMCommunicate request_size=4 [11:39:50]MH_SAM_APDU [11:39:50]CAPDU: 80 13 01 00 [11:39:50]Write to MH i2c: E2 08 00 59 33 80 13 01 00 00 00 00 00 09 [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:50]Read from MH i2c: E2 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 0E 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: E2 0E 00 59 33 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 59 [11:39:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:39:50]wFMCommunicate OK [11:39:50]SAM_PROTO_GetShiftState done [11:39:50]FM_GetShiftState done [11:39:50]opened in 1730075620 [11:39:50]opened+sec_in_day 1730162020 [11:39:50]quantity*price = 150037 [11:39:50]sum+1 = 150039 [11:39:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 76 28.10.2024 11:39 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192528 ФПД: 197574956682432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T113955&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192528&fm=197574956682432&tin=02508201610067®Number=0000000000091776&sum=150000 [11:39:51]StoreToDocumentArchive [11:39:51]shift 543 fd 192528 [11:39:51]save to /storage/0543/doc_00192528 [11:39:51]save last doc name /storage/0543/doc_00192528 to /storage/kkm_last_doc_name [11:39:51]save OK [11:39:51]Clear old archive folders... [11:39:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:39:51]tlvbuf is 019EE620 [11:39:51]SAM_PROTO_ClearQueue [11:39:51]wFMCommunicate request_size=4 [11:39:51]MH_SAM_APDU [11:39:51]CAPDU: 80 09 00 00 [11:39:51]Write to MH i2c: E2 08 00 66 33 80 09 00 00 00 00 00 00 0B [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:51]Read from MH i2c: E2 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 03 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 03 00 66 33 00 90 00 0D [11:39:51]RAPDU: 90 00 [11:39:51]wFMCommunicate OK [11:39:51]SAM_PROTO_ClearQueue done [11:39:51]KKMCreateOFDPacket [11:39:51]OFDProtocolAddRootSTLVToBuf [11:39:51]FM_MakeSignedData [11:39:51]FM_MakeSignedData [11:39:51]SAM_PROTO_SignData [11:39:51]wFMCommunicate request_size=4 [11:39:51]MH_SAM_APDU [11:39:51]CAPDU: 80 0D 01 02 [11:39:51]Write to MH i2c: E2 08 00 67 33 80 0D 01 02 00 00 00 00 13 [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:51]Read from MH i2c: E2 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 03 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 03 00 67 33 00 90 00 0E [11:39:51]RAPDU: 90 00 [11:39:51]wFMCommunicate OK [11:39:51]wFMCommunicate request_size=255 [11:39:51]MH_SAM_APDU [11:39:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 0B 78 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 F0 02 00 35 04 06 00 B3 B1 81 1C [11:39:51]Write to MH i2c: E2 02 01 68 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 0B 78 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 F0 02 00 35 04 06 00 B3 B1 81 1C 00 00 8D [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:51]Read from MH i2c: E2 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 03 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 03 00 68 33 00 90 00 0F [11:39:51]RAPDU: 90 00 [11:39:51]wFMCommunicate OK [11:39:51]wFMCommunicate request_size=7 [11:39:51]MH_SAM_APDU [11:39:51]CAPDU: 80 0D 02 02 02 0C C0 [11:39:51]Write to MH i2c: E2 0A 00 69 33 80 0D 02 02 02 00 0C C0 00 00 E6 [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:51]Read from MH i2c: E2 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 03 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 03 00 69 33 00 90 00 10 [11:39:51]RAPDU: 90 00 [11:39:51]wFMCommunicate OK [11:39:51]wFMCommunicate request_size=4 [11:39:51]MH_SAM_APDU [11:39:51]CAPDU: 80 0D 03 02 [11:39:51]Write to MH i2c: E2 08 00 6A 33 80 0D 03 02 00 00 00 00 18 [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:52]Read from MH i2c: E2 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: E2 0B 00 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: E2 0B 00 6A 33 00 50 52 21 47 63 43 CD F0 90 00 86 [11:39:52]RAPDU: 50 52 21 47 63 43 CD F0 90 00 [11:39:52]wFMCommunicate OK [11:39:52]SAM_PROTO_SignData done [11:39:52]FM_MakeSignedData done [11:39:52]CreateOFDProtocolMessage [11:39:52]wFMCommunicate request_size=4 [11:39:52]MH_SAM_APDU [11:39:52]CAPDU: 80 11 00 00 [11:39:52]Write to MH i2c: E2 08 00 6B 33 80 11 00 00 00 00 00 00 18 [11:39:52]Write i2c OK [11:39:52]MH_I2C_Read... [11:39:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:52]Read from MH i2c: E2 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: E2 17 00 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: E2 17 00 6B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6B [11:39:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:39:52]wFMCommunicate OK [11:39:52]CreateOFDProtocolMessage done [11:39:52]OFDSenderStorePacket 192528 [11:39:52]StoreOFDPacket docnum=192528 [11:39:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B1 C7 04 01 78 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 0B 78 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 F0 02 00 35 04 06 00 B3 B1 81 1C 0C C0 50 52 21 47 63 43 CD F0 [11:39:52]CheckFolder [11:39:52]dirname=/storage/ofd_packets [11:39:52]CheckFolder done [11:39:52]ProducePacketName [11:39:52]name=ofd_packets/00192528 [11:39:52]NVStorageSaveData ofd_packets/00192528 [11:39:52]File name is /storage/ofd_packets/00192528 [11:39:52]Write 298 bytes [11:39:52]NVStorageSaveData done [11:39:52]OFDSenderStorePacket done [11:39:52]KKMCreateOFDPacket done [11:39:52]NVStorageSaveData kkm_last_timestamp [11:39:52]File name is /storage/kkm_last_timestamp [11:39:52]Write 4 bytes [11:39:52]NVStorageSaveData done [11:39:52]ExternCall_PrintAddStr [11:39:52]wPrintStart [11:39:52]Write to MH i2c: 01 00 00 6C 33 9F [11:39:52]Write i2c OK [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: 01 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: 01 07 00 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: 01 07 00 6C 33 00 00 00 00 00 FF 0F B4 [11:39:52]RasterBufferAndPrint [11:39:52]line Счет N : (1)31848 [11:39:52]line ИНН: 02508201610067 [11:39:52]line Контрольно-Кассовый Чек [11:39:52]line ПРОДАЖА [11:39:52]line ТРК (МРК, ГНК) : 11 [11:39:52]line Товар: 2710194210 [11:39:52]line ДТ-К-5 [11:39:52]line 19.690 * 76.20 [11:39:52]line = 1500.38 [11:39:52]line НДС 12% НСП 1% [11:39:52]line > о реализуемом товаре [11:39:52]line ОКРУГЛЕНИЕ: -0.38 [11:39:52]line ИТОГО: 1500.00 [11:39:52]line Внесено: 1500.00 [11:39:52]line СДАЧА: 0.00 [11:39:52]line НСП 1% : 13.28 [11:39:52]line НДС 12% : 159.33 [11:39:52]line Наличными: 1500.00 [11:39:52]line Безнал.: 0.00 [11:39:52]line Место: АЗС № 170 "Партнер Нефть" [11:39:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:39:52]line СНО: Общий режим [11:39:52]line Чек 76 28.10.2024 11:39 [11:39:52]line Смена: 543 ФФД: 1.0 [11:39:52]line ЗНМ: 0300000110 [11:39:52]line РНМ: 0000000000091776 [11:39:52]line Версия ККМ: 001 [11:39:52]line ФМ: 0000000000871754 [11:39:52]line ФД: 192528 [11:39:52]line ФПД: 197574956682432 [11:39:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T113955&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192528&fm=197574956682432&tin=02508201610067®Number=0000000000091776&sum=150000 [11:39:52]OFD Sender: Processing packet 192528 [packets to send 75, broken 74] [11:39:52]ProducePacketName [11:39:52]name=ofd_packets/00192528 [11:39:52]OFD Sender: To server: pG, [11:39:52]CommunicateWithHost lk.salyk.kg:30040 [11:39:52]ConnectInit lk.salyk.kg [11:39:52]written 0, free lines is 4095 [11:39:52]Connected sock=10 [11:39:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B1 C7 04 01 78 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 0B 78 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 F0 02 00 35 04 06 00 B3 B1 81 1C 0C C0 50 52 21 47 63 43 CD F0 [11:39:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A5 CE 47 00 63 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 F0 02 00 F4 03 04 00 CF 1C 1F 67 B6 04 01 00 00 00 A0 39 C3 3D F3 00 A3 [11:39:52]CommunicateWithHost err = 0 [11:39:52]CheckOFDResponse [11:39:52]1017 (14) - 77093643461234 [11:39:52]1041 (16) - 0000000000871754 [11:39:52]1040 (4) - 192528 [11:39:52]1012 (4) - 28.10.2024 05:10 [11:39:52]1206 (1) - 0 [11:39:52]OFD Sender: Remove packet 192528 [11:39:52]ProducePacketName [11:39:52]name=ofd_packets/00192528 [11:39:52]NVStorageDeleteData [11:39:52]Write to MH i2c: 01 00 00 97 33 CA [11:39:52]Write i2c OK [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: 01 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: 01 07 00 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: 01 07 00 97 33 00 00 00 00 00 AB 0C 88 [11:39:52]RasterBufferAndPrint [11:39:52]line [11:39:52]line [11:39:52]line [11:39:52]line [11:39:52]line [11:39:52]written 0, free lines is 3249 [11:39:52]MH_Cut [11:39:52]Write to MH i2c: D1 01 00 9E 33 01 A3 [11:39:52]Write i2c OK [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: D1 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: D1 01 00 [11:39:52]MH_I2C_Read... [11:39:52]Read from MH i2c: D1 01 00 9E 33 00 A2 [11:39:52]Write to MH i2c: 01 00 00 9F 33 D2 [11:39:52]Write i2c OK [11:39:52]MH_I2C_Read... [11:39:53]OFD Sender: No OFD packet to send [11:39:53]*** Cut start [11:39:53]*** Partial cut [11:39:53]*** CUTSNS_PIN = 1 [11:39:53]*** CUTSNS_PIN = 0 [11:39:53]*** Brake cut motor [11:39:54]Read from MH i2c: 01 [11:39:54]MH_I2C_Read... [11:39:54]*** Stop cut motor [11:39:54]*** Cut end [11:39:54]Read from MH i2c: 01 07 00 [11:39:54]MH_I2C_Read... [11:39:54]Read from MH i2c: 01 07 00 9F 33 00 00 00 00 00 FF 0F E7 [11:39:54]process_action close_receipt done [11:39:54]requested_data is exist [11:39:54]produce_requested_data [11:39:54]requested_item fm.sn is exist - process it [11:39:54]wFMCommunicate request_size=4 [11:39:54]MH_SAM_APDU [11:39:54]CAPDU: 80 11 00 00 [11:39:54]Write to MH i2c: E2 08 00 A0 33 80 11 00 00 00 00 00 00 4D [11:39:54]Write i2c OK [11:39:54]MH_I2C_Read... [11:39:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:54]Read from MH i2c: E2 [11:39:54]MH_I2C_Read... [11:39:54]Read from MH i2c: E2 17 00 [11:39:54]MH_I2C_Read... [11:39:54]Read from MH i2c: E2 17 00 A0 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A0 [11:39:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:39:54]wFMCommunicate OK [11:39:54]requested_item fd.num is exist - process it [11:39:54]SAM_PROTO_GetFieldsCounters [11:39:54]wFMCommunicate request_size=4 [11:39:54]MH_SAM_APDU [11:39:54]CAPDU: 80 13 00 00 [11:39:54]Write to MH i2c: E2 08 00 A1 33 80 13 00 00 00 00 00 00 50 [11:39:54]Write i2c OK [11:39:54]MH_I2C_Read... [11:39:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:54]Read from MH i2c: E2 [11:39:54]MH_I2C_Read... [11:39:54]Read from MH i2c: E2 62 00 [11:39:54]MH_I2C_Read... [11:39:54]Read from MH i2c: E2 62 00 A1 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 10 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [11:39:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 10 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:54]wFMCommunicate OK [11:39:54]SAM_PROTO_GetFieldsCounters done [11:39:54]requested_item shift.num is exist - process it [11:39:54]requested_item shift.opened is exist - process it [11:39:54]req_shift_opened [11:39:54]FM_GetShiftState [11:39:54]SAM_PROTO_GetShiftState [11:39:54]wFMCommunicate request_size=4 [11:39:54]MH_SAM_APDU [11:39:54]CAPDU: 80 13 01 00 [11:39:54]Write to MH i2c: E2 08 00 A2 33 80 13 01 00 00 00 00 00 52 [11:39:54]Write i2c OK [11:39:54]MH_I2C_Read... [11:39:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:54]Read from MH i2c: E2 [11:39:54]MH_I2C_Read... [11:39:54]Read from MH i2c: E2 0E 00 [11:39:54]MH_I2C_Read... [11:39:54]Read from MH i2c: E2 0E 00 A2 33 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A2 [11:39:54]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:39:54]wFMCommunicate OK [11:39:54]SAM_PROTO_GetShiftState done [11:39:54]FM_GetShiftState done [11:39:54]req_shift_opened done [11:39:54]requested_item shift.open_date is exist - process it [11:39:54]req_shift_open_date [11:39:54]req_shift_open_date done [11:39:54]produce_requested_data done [11:39:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192528,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:39:54]process_action_free close_receipt [11:39:54]json_value_free [11:39:54]json_value_free done [11:39:54]process_json_proto returns [11:39:54]Send response to host [11:39:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192528,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:39:54]free response buf [11:39:54]execute_script done [11:39:54]execute_script returns [11:39:54]free content buf [11:39:54]Sock 7.Close socket [11:39:54]Sock 7.Thread stoped [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:46]accept exits with 9 [11:41:46]New connection [11:41:46]New thread 3066707300 created [11:41:46]Thread 3066563940 joined [11:41:46]Waiting for new connection... [11:41:46] Sock 9.Parse request [11:41:46]Sock 9.Check first char [11:41:46]Sock 9.First char is OK [11:41:46]request: POST /json_proto HTTP/1.0 [11:41:46]Method: POST [11:41:46]URL: /json_proto [11:41:46]Method is POST - this is cgi request [11:41:46]url: /json_proto [11:41:46]query_string will be loaded in cgi processing [11:41:46]execute_cgi json_proto POST (null) [11:41:46]execute_cgi path=json_proto method=POST [11:41:46]POST find Content-Length [11:41:46]Host: 172.17.63.131:8080 [11:41:46]Content-Length: 676 [11:41:46]Content-Type: application/json [11:41:46] [11:41:46]POST finish read [11:41:46]Found Content-Length = 676 [11:41:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:46]execute_script... [11:41: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)31849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:46]POST & json_proto [11:41:46]process_json_proto [11:41:46]json parsed OK: [11:41:46]protocol is kg_v1.0 [11:41:46]action value=close_receipt [11:41:46]process_action close_receipt [11:41:46]cmd_close_receipt [11:41:46]MH_GetDate [11:41:46]Write to MH i2c: F0 00 00 A3 33 C5 [11:41:46]Write i2c OK [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: F0 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: F0 09 00 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: F0 09 00 A3 33 00 7F 78 1F 67 22 05 6E 64 44 [11:41:46]GetLastDocTimeStamp 1730115595 [11:41:46]current date 1730115711 [11:41:46]FM_GetShiftState [11:41:46]SAM_PROTO_GetShiftState [11:41:46]wFMCommunicate request_size=4 [11:41:46]MH_SAM_APDU [11:41:46]CAPDU: 80 13 01 00 [11:41:46]Write to MH i2c: E2 08 00 A4 33 80 13 01 00 00 00 00 00 54 [11:41:46]Write i2c OK [11:41:46]MH_I2C_Read... [11:41:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:46]Read from MH i2c: E2 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: E2 0E 00 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: E2 0E 00 A4 33 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A4 [11:41:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:41:46]wFMCommunicate OK [11:41:46]SAM_PROTO_GetShiftState done [11:41:46]FM_GetShiftState done [11:41:46]opened in 1730075620 [11:41:46]opened+sec_in_day 1730162020 [11:41:46]quantity*price = 50041 [11:41:46]sum+1 = 50042 [11:41:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 77 28.10.2024 11:41 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192529 ФПД: 182221121314226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114151&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192529&fm=182221121314226&tin=02508201610067®Number=0000000000091776&sum=50000 [11:41:47]StoreToDocumentArchive [11:41:47]shift 543 fd 192529 [11:41:47]save to /storage/0543/doc_00192529 [11:41:47]save last doc name /storage/0543/doc_00192529 to /storage/kkm_last_doc_name [11:41:47]save OK [11:41:47]Clear old archive folders... [11:41:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:47]tlvbuf is B6E9EBA0 [11:41:47]SAM_PROTO_ClearQueue [11:41:47]wFMCommunicate request_size=4 [11:41:47]MH_SAM_APDU [11:41:47]CAPDU: 80 09 00 00 [11:41:47]Write to MH i2c: E2 08 00 B1 33 80 09 00 00 00 00 00 00 56 [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:47]Read from MH i2c: E2 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 03 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 03 00 B1 33 00 90 00 58 [11:41:47]RAPDU: 90 00 [11:41:47]wFMCommunicate OK [11:41:47]SAM_PROTO_ClearQueue done [11:41:47]KKMCreateOFDPacket [11:41:47]OFDProtocolAddRootSTLVToBuf [11:41:47]FM_MakeSignedData [11:41:47]FM_MakeSignedData [11:41:47]SAM_PROTO_SignData [11:41:47]wFMCommunicate request_size=4 [11:41:47]MH_SAM_APDU [11:41:47]CAPDU: 80 0D 01 02 [11:41:47]Write to MH i2c: E2 08 00 B2 33 80 0D 01 02 00 00 00 00 5E [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:47]Read from MH i2c: E2 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 03 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 03 00 B2 33 00 90 00 59 [11:41:47]RAPDU: 90 00 [11:41:47]wFMCommunicate OK [11:41:47]wFMCommunicate request_size=255 [11:41:47]MH_SAM_APDU [11:41:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 7F 78 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 F0 02 00 35 04 06 00 A5 [11:41:47]Write to MH i2c: E2 02 01 B3 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 7F 78 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 F0 02 00 35 04 06 00 A5 00 00 85 [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:47]Read from MH i2c: E2 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 03 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 03 00 B3 33 00 90 00 5A [11:41:47]RAPDU: 90 00 [11:41:47]wFMCommunicate OK [11:41:47]wFMCommunicate request_size=10 [11:41:47]MH_SAM_APDU [11:41:47]CAPDU: 80 0D 02 02 05 BA A9 34 DD B2 [11:41:47]Write to MH i2c: E2 0D 00 B4 33 80 0D 02 02 05 00 BA A9 34 DD B2 00 00 91 [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:47]Read from MH i2c: E2 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 03 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 03 00 B4 33 00 90 00 5B [11:41:47]RAPDU: 90 00 [11:41:47]wFMCommunicate OK [11:41:47]wFMCommunicate request_size=4 [11:41:47]MH_SAM_APDU [11:41:47]CAPDU: 80 0D 03 02 [11:41:47]Write to MH i2c: E2 08 00 B5 33 80 0D 03 02 00 00 00 00 63 [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:47]Read from MH i2c: E2 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 0B 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 0B 00 B5 33 00 ED 36 CE 7A C8 84 B0 41 90 00 0C [11:41:47]RAPDU: ED 36 CE 7A C8 84 B0 41 90 00 [11:41:47]wFMCommunicate OK [11:41:47]SAM_PROTO_SignData done [11:41:47]FM_MakeSignedData done [11:41:47]CreateOFDProtocolMessage [11:41:47]wFMCommunicate request_size=4 [11:41:47]MH_SAM_APDU [11:41:47]CAPDU: 80 11 00 00 [11:41:47]Write to MH i2c: E2 08 00 B6 33 80 11 00 00 00 00 00 00 63 [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:47]Read from MH i2c: E2 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 17 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 17 00 B6 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B6 [11:41:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:41:47]wFMCommunicate OK [11:41:47]CreateOFDProtocolMessage done [11:41:47]OFDSenderStorePacket 192529 [11:41:47]StoreOFDPacket docnum=192529 [11:41:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7F AF 07 01 94 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 7F 78 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 F0 02 00 35 04 06 00 A5 BA A9 34 DD B2 ED 36 CE 7A C8 84 B0 41 [11:41:47]CheckFolder [11:41:47]dirname=/storage/ofd_packets [11:41:47]CheckFolder done [11:41:47]ProducePacketName [11:41:47]name=ofd_packets/00192529 [11:41:47]NVStorageSaveData ofd_packets/00192529 [11:41:47]File name is /storage/ofd_packets/00192529 [11:41:47]Write 301 bytes [11:41:47]NVStorageSaveData done [11:41:47]OFDSenderStorePacket done [11:41:47]KKMCreateOFDPacket done [11:41:47]NVStorageSaveData kkm_last_timestamp [11:41:47]File name is /storage/kkm_last_timestamp [11:41:47]Write 4 bytes [11:41:47]NVStorageSaveData done [11:41:47]ExternCall_PrintAddStr [11:41:47]wPrintStart [11:41:47]Write to MH i2c: 01 00 00 B7 33 EA [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: 01 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: 01 07 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: 01 07 00 B7 33 00 00 00 00 00 FF 0F FF [11:41:47]RasterBufferAndPrint [11:41:47]line Счет N : (1)31849 [11:41:47]line ИНН: 02508201610067 [11:41:47]line Контрольно-Кассовый Чек [11:41:47]line ПРОДАЖА [11:41:47]line ТРК (МРК, ГНК) : 21 [11:41:47]line Товар: 2710124130 [11:41:47]line Аи-92-К-5 [11:41:47]line 7.480 * 66.90 [11:41:47]line = 500.41 [11:41:47]line НДС 12% НСП 1% [11:41:47]line > о реализуемом товаре [11:41:47]line ОКРУГЛЕНИЕ: -0.41 [11:41:47]line ИТОГО: 500.00 [11:41:47]line Внесено: 500.00 [11:41:47]line СДАЧА: 0.00 [11:41:47]line НСП 1% : 4.43 [11:41:47]line НДС 12% : 53.14 [11:41:47]line Наличными: 500.00 [11:41:48]line Безнал.: 0.00 [11:41:48]line Место: АЗС № 170 "Партнер Нефть" [11:41:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:41:48]line СНО: Общий режим [11:41:48]line Чек 77 28.10.2024 11:41 [11:41:48]line Смена: 543 ФФД: 1.0 [11:41:48]line ЗНМ: 0300000110 [11:41:48]line РНМ: 0000000000091776 [11:41:48]line Версия ККМ: 001 [11:41:48]line ФМ: 0000000000871754 [11:41:48]line ФД: 192529 [11:41:48]line ФПД: 182221121314226 [11:41:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114151&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192529&fm=182221121314226&tin=02508201610067®Number=0000000000091776&sum=50000 [11:41:48]OFD Sender: Processing packet 192529 [packets to send 75, broken 74] [11:41:48]ProducePacketName [11:41:48]name=ofd_packets/00192529 [11:41:48]OFD Sender: To server: pG, [11:41:48]CommunicateWithHost lk.salyk.kg:30040 [11:41:48]ConnectInit lk.salyk.kg [11:41:48]written 0, free lines is 4095 [11:41:48]Connected sock=10 [11:41:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7F AF 07 01 94 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 7F 78 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 F0 02 00 35 04 06 00 A5 BA A9 34 DD B2 ED 36 CE 7A C8 84 B0 41 [11:41:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 92 CF 47 00 03 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 F0 02 00 F4 03 04 00 43 1D 1F 67 B6 04 01 00 00 45 BE 21 C2 FC 89 71 13 [11:41:48]CommunicateWithHost err = 0 [11:41:48]CheckOFDResponse [11:41:48]1017 (14) - 77093643461234 [11:41:48]1041 (16) - 0000000000871754 [11:41:48]1040 (4) - 192529 [11:41:48]1012 (4) - 28.10.2024 05:12 [11:41:48]1206 (1) - 0 [11:41:48]OFD Sender: Remove packet 192529 [11:41:48]ProducePacketName [11:41:48]name=ofd_packets/00192529 [11:41:48]NVStorageDeleteData [11:41:48]Write to MH i2c: 01 00 00 E2 33 15 [11:41:48]Write i2c OK [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: 01 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: 01 07 00 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: 01 07 00 E2 33 00 00 00 00 00 AA 0C D2 [11:41:48]RasterBufferAndPrint [11:41:48]line [11:41:48]line [11:41:48]line [11:41:48]line [11:41:48]line [11:41:48]written 0, free lines is 3248 [11:41:48]MH_Cut [11:41:48]Write to MH i2c: D1 01 00 E9 33 01 EE [11:41:48]Write i2c OK [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: D1 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: D1 01 00 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: D1 01 00 E9 33 00 ED [11:41:48]Write to MH i2c: 01 00 00 EA 33 1D [11:41:48]Write i2c OK [11:41:48]MH_I2C_Read... [11:41:49]OFD Sender: No OFD packet to send [11:41:49]*** Cut start [11:41:49]*** Partial cut [11:41:49]*** CUTSNS_PIN = 1 [11:41:49]*** CUTSNS_PIN = 0 [11:41:49]*** Brake cut motor [11:41:50]Read from MH i2c: 01 [11:41:50]MH_I2C_Read... [11:41:50]*** Stop cut motor [11:41:50]*** Cut end [11:41:50]Read from MH i2c: 01 07 00 [11:41:50]MH_I2C_Read... [11:41:50]Read from MH i2c: 01 07 00 EA 33 00 00 00 00 00 FF 0F 32 [11:41:50]process_action close_receipt done [11:41:50]requested_data is exist [11:41:50]produce_requested_data [11:41:50]requested_item fm.sn is exist - process it [11:41:50]wFMCommunicate request_size=4 [11:41:50]MH_SAM_APDU [11:41:50]CAPDU: 80 11 00 00 [11:41:50]Write to MH i2c: E2 08 00 EB 33 80 11 00 00 00 00 00 00 98 [11:41:50]Write i2c OK [11:41:50]MH_I2C_Read... [11:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:50]Read from MH i2c: E2 [11:41:50]MH_I2C_Read... [11:41:50]Read from MH i2c: E2 17 00 [11:41:50]MH_I2C_Read... [11:41:50]Read from MH i2c: E2 17 00 EB 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EB [11:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:41:50]wFMCommunicate OK [11:41:50]requested_item fd.num is exist - process it [11:41:50]SAM_PROTO_GetFieldsCounters [11:41:50]wFMCommunicate request_size=4 [11:41:50]MH_SAM_APDU [11:41:50]CAPDU: 80 13 00 00 [11:41:50]Write to MH i2c: E2 08 00 EC 33 80 13 00 00 00 00 00 00 9B [11:41:50]Write i2c OK [11:41:50]MH_I2C_Read... [11:41:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:50]Read from MH i2c: E2 [11:41:50]MH_I2C_Read... [11:41:50]Read from MH i2c: E2 62 00 [11:41:50]MH_I2C_Read... [11:41:50]Read from MH i2c: E2 62 00 EC 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 11 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [11:41:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 11 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:50]wFMCommunicate OK [11:41:50]SAM_PROTO_GetFieldsCounters done [11:41:50]requested_item shift.num is exist - process it [11:41:50]requested_item shift.opened is exist - process it [11:41:50]req_shift_opened [11:41:50]FM_GetShiftState [11:41:50]SAM_PROTO_GetShiftState [11:41:50]wFMCommunicate request_size=4 [11:41:50]MH_SAM_APDU [11:41:50]CAPDU: 80 13 01 00 [11:41:50]Write to MH i2c: E2 08 00 ED 33 80 13 01 00 00 00 00 00 9D [11:41:50]Write i2c OK [11:41:50]MH_I2C_Read... [11:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:50]Read from MH i2c: E2 [11:41:50]MH_I2C_Read... [11:41:50]Read from MH i2c: E2 0E 00 [11:41:50]MH_I2C_Read... [11:41:50]Read from MH i2c: E2 0E 00 ED 33 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 ED [11:41:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:41:50]wFMCommunicate OK [11:41:50]SAM_PROTO_GetShiftState done [11:41:50]FM_GetShiftState done [11:41:50]req_shift_opened done [11:41:50]requested_item shift.open_date is exist - process it [11:41:50]req_shift_open_date [11:41:50]req_shift_open_date done [11:41:50]produce_requested_data done [11:41:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192529,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:41:50]process_action_free close_receipt [11:41:50]json_value_free [11:41:50]json_value_free done [11:41:50]process_json_proto returns [11:41:50]Send response to host [11:41:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192529,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:41:50]free response buf [11:41:50]execute_script done [11:41:50]execute_script returns [11:41:50]free content buf [11:41:50]Sock 9.Close socket [11:41:50]Sock 9.Thread stoped [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:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:37]accept exits with 7 [11:42:37]New connection [11:42:37]New thread 3066563940 created [11:42:37]Thread 3066707300 joined [11:42:37]Waiting for new connection... [11:42:37] Sock 7.Parse request [11:42:37]Sock 7.Check first char [11:42:37]Sock 7.First char is OK [11:42:37]request: POST /json_proto HTTP/1.0 [11:42:37]Method: POST [11:42:37]URL: /json_proto [11:42:37]Method is POST - this is cgi request [11:42:37]url: /json_proto [11:42:37]query_string will be loaded in cgi processing [11:42:37]execute_cgi json_proto POST (null) [11:42:37]execute_cgi path=json_proto method=POST [11:42:37]POST find Content-Length [11:42:37]Host: 172.17.63.131:8080 [11:42:37]Content-Length: 676 [11:42:37]Content-Type: application/json [11:42:37] [11:42:37]POST finish read [11:42:37]Found Content-Length = 676 [11:42:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:37]execute_script... [11:42:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:37]POST & json_proto [11:42:37]process_json_proto [11:42:37]json parsed OK: [11:42:37]protocol is kg_v1.0 [11:42:37]action value=close_receipt [11:42:37]process_action close_receipt [11:42:37]cmd_close_receipt [11:42:37]MH_GetDate [11:42:37]Write to MH i2c: F0 00 00 EE 33 10 [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: F0 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: F0 09 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: F0 09 00 EE 33 00 B2 78 1F 67 22 05 6E 64 C2 [11:42:37]GetLastDocTimeStamp 1730115711 [11:42:37]current date 1730115762 [11:42:37]FM_GetShiftState [11:42:37]SAM_PROTO_GetShiftState [11:42:37]wFMCommunicate request_size=4 [11:42:37]MH_SAM_APDU [11:42:37]CAPDU: 80 13 01 00 [11:42:37]Write to MH i2c: E2 08 00 EF 33 80 13 01 00 00 00 00 00 9F [11:42:37]Write i2c OK [11:42:37]MH_I2C_Read... [11:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:37]Read from MH i2c: E2 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: E2 0E 00 [11:42:37]MH_I2C_Read... [11:42:37]Read from MH i2c: E2 0E 00 EF 33 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EF [11:42:37]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:42:37]wFMCommunicate OK [11:42:37]SAM_PROTO_GetShiftState done [11:42:37]FM_GetShiftState done [11:42:37]opened in 1730075620 [11:42:37]opened+sec_in_day 1730162020 [11:42:37]quantity*price = 40006 [11:42:37]sum+1 = 40007 [11:42:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 78 28.10.2024 11:42 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192530 ФПД: 37379124825454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114242&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192530&fm=37379124825454&tin=02508201610067®Number=0000000000091776&sum=40000 [11:42:39]StoreToDocumentArchive [11:42:39]shift 543 fd 192530 [11:42:39]save to /storage/0543/doc_00192530 [11:42:39]save last doc name /storage/0543/doc_00192530 to /storage/kkm_last_doc_name [11:42:39]save OK [11:42:39]Clear old archive folders... [11:42:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:39]tlvbuf is 01999390 [11:42:39]SAM_PROTO_ClearQueue [11:42:39]wFMCommunicate request_size=4 [11:42:39]MH_SAM_APDU [11:42:39]CAPDU: 80 09 00 00 [11:42:39]Write to MH i2c: E2 08 00 FC 33 80 09 00 00 00 00 00 00 A1 [11:42:39]Write i2c OK [11:42:39]MH_I2C_Read... [11:42:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:39]Read from MH i2c: E2 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: E2 03 00 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: E2 03 00 FC 33 00 90 00 A3 [11:42:39]RAPDU: 90 00 [11:42:39]wFMCommunicate OK [11:42:39]SAM_PROTO_ClearQueue done [11:42:39]KKMCreateOFDPacket [11:42:39]OFDProtocolAddRootSTLVToBuf [11:42:39]FM_MakeSignedData [11:42:39]FM_MakeSignedData [11:42:39]SAM_PROTO_SignData [11:42:39]wFMCommunicate request_size=4 [11:42:39]MH_SAM_APDU [11:42:39]CAPDU: 80 0D 01 02 [11:42:39]Write to MH i2c: E2 08 00 FD 33 80 0D 01 02 00 00 00 00 A9 [11:42:39]Write i2c OK [11:42:39]MH_I2C_Read... [11:42:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:39]Read from MH i2c: E2 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: E2 03 00 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: E2 03 00 FD 33 00 90 00 A4 [11:42:39]RAPDU: 90 00 [11:42:39]wFMCommunicate OK [11:42:39]wFMCommunicate request_size=255 [11:42:39]MH_SAM_APDU [11:42: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B2 78 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 F0 02 00 35 04 06 00 21 [11:42:39]Write to MH i2c: E2 02 01 FE 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B2 78 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 F0 02 00 35 04 06 00 21 00 00 50 [11:42:39]Write i2c OK [11:42:39]MH_I2C_Read... [11:42:39]OFD Sender: No OFD packet to send [11:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:39]Read from MH i2c: E2 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: E2 03 00 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: E2 03 00 FE 33 00 90 00 A5 [11:42:39]RAPDU: 90 00 [11:42:39]wFMCommunicate OK [11:42:39]wFMCommunicate request_size=10 [11:42:39]MH_SAM_APDU [11:42:39]CAPDU: 80 0D 02 02 05 FF 01 75 0D 6E [11:42:39]Write to MH i2c: E2 0D 00 FF 33 80 0D 02 02 05 00 FF 01 75 0D 6E 00 00 A6 [11:42:39]Write i2c OK [11:42:39]MH_I2C_Read... [11:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:39]Read from MH i2c: E2 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: E2 03 00 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: E2 03 00 FF 33 00 90 00 A6 [11:42:39]RAPDU: 90 00 [11:42:39]wFMCommunicate OK [11:42:39]wFMCommunicate request_size=4 [11:42:39]MH_SAM_APDU [11:42:39]CAPDU: 80 0D 03 02 [11:42:39]Write to MH i2c: E2 08 00 00 34 80 0D 03 02 00 00 00 00 AF [11:42:39]Write i2c OK [11:42:39]MH_I2C_Read... [11:42:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:39]Read from MH i2c: E2 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: E2 0B 00 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: E2 0B 00 00 34 00 1F 8A 93 54 16 41 52 FC 90 00 E5 [11:42:39]RAPDU: 1F 8A 93 54 16 41 52 FC 90 00 [11:42:39]wFMCommunicate OK [11:42:39]SAM_PROTO_SignData done [11:42:39]FM_MakeSignedData done [11:42:39]CreateOFDProtocolMessage [11:42:39]wFMCommunicate request_size=4 [11:42:39]MH_SAM_APDU [11:42:39]CAPDU: 80 11 00 00 [11:42:39]Write to MH i2c: E2 08 00 01 34 80 11 00 00 00 00 00 00 AF [11:42:39]Write i2c OK [11:42:39]MH_I2C_Read... [11:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:39]Read from MH i2c: E2 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: E2 17 00 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: E2 17 00 01 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 02 [11:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:42:39]wFMCommunicate OK [11:42:39]CreateOFDProtocolMessage done [11:42:39]OFDSenderStorePacket 192530 [11:42:39]StoreOFDPacket docnum=192530 [11:42:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7D 91 07 01 EA AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B2 78 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 F0 02 00 35 04 06 00 21 FF 01 75 0D 6E 1F 8A 93 54 16 41 52 FC [11:42:39]CheckFolder [11:42:39]dirname=/storage/ofd_packets [11:42:39]CheckFolder done [11:42:39]ProducePacketName [11:42:39]name=ofd_packets/00192530 [11:42:39]NVStorageSaveData ofd_packets/00192530 [11:42:39]File name is /storage/ofd_packets/00192530 [11:42:39]Write 301 bytes [11:42:39]NVStorageSaveData done [11:42:39]OFDSenderStorePacket done [11:42:39]KKMCreateOFDPacket done [11:42:39]NVStorageSaveData kkm_last_timestamp [11:42:39]File name is /storage/kkm_last_timestamp [11:42:39]Write 4 bytes [11:42:39]NVStorageSaveData done [11:42:39]ExternCall_PrintAddStr [11:42:39]wPrintStart [11:42:39]Write to MH i2c: 01 00 00 02 34 36 [11:42:39]Write i2c OK [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: 01 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: 01 07 00 [11:42:39]MH_I2C_Read... [11:42:39]Read from MH i2c: 01 07 00 02 34 00 00 00 00 00 FF 0F 4B [11:42:39]RasterBufferAndPrint [11:42:39]line Счет N : (1)31850 [11:42:39]line ИНН: 02508201610067 [11:42:39]line Контрольно-Кассовый Чек [11:42:39]line ПРОДАЖА [11:42:39]line ТРК (МРК, ГНК) : 12 [11:42:39]line Товар: 2710124130 [11:42:39]line Аи-92-К-5 [11:42:39]line 5.980 * 66.90 [11:42:39]line = 400.06 [11:42:39]line НДС 12% НСП 1% [11:42:39]line > о реализуемом товаре [11:42:39]line ОКРУГЛЕНИЕ: -0.06 [11:42:39]line ИТОГО: 400.00 [11:42:39]line Внесено: 400.00 [11:42:39]line СДАЧА: 0.00 [11:42:39]line НСП 1% : 3.54 [11:42:39]line НДС 12% : 42.48 [11:42:39]line Наличными: 400.00 [11:42:39]line Безнал.: 0.00 [11:42:39]line Место: АЗС № 170 "Партнер Нефть" [11:42:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:42:39]line СНО: Общий режим [11:42:39]line Чек 78 28.10.2024 11:42 [11:42:39]line Смена: 543 ФФД: 1.0 [11:42:39]line ЗНМ: 0300000110 [11:42:39]line РНМ: 0000000000091776 [11:42:39]line Версия ККМ: 001 [11:42:39]line ФМ: 0000000000871754 [11:42:39]line ФД: 192530 [11:42:39]line ФПД: 37379124825454 [11:42:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114242&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192530&fm=37379124825454&tin=02508201610067®Number=0000000000091776&sum=40000 [11:42:39]OFD Sender: Processing packet 192530 [packets to send 75, broken 74] [11:42:39]ProducePacketName [11:42:39]name=ofd_packets/00192530 [11:42:39]OFD Sender: To server: pG, [11:42:39]CommunicateWithHost lk.salyk.kg:30040 [11:42:39]ConnectInit lk.salyk.kg [11:42:39]written 0, free lines is 4095 [11:42:40]Connected sock=10 [11:42:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7D 91 07 01 EA AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B2 78 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 F0 02 00 35 04 06 00 21 FF 01 75 0D 6E 1F 8A 93 54 16 41 52 FC [11:42:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 72 9B 47 00 4F 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 F0 02 00 F4 03 04 00 77 1D 1F 67 B6 04 01 00 00 C5 3F F1 49 6E 8E 96 A3 [11:42:40]CommunicateWithHost err = 0 [11:42:40]CheckOFDResponse [11:42:40]1017 (14) - 77093643461234 [11:42:40]1041 (16) - 0000000000871754 [11:42:40]1040 (4) - 192530 [11:42:40]1012 (4) - 28.10.2024 05:13 [11:42:40]1206 (1) - 0 [11:42:40]OFD Sender: Remove packet 192530 [11:42:40]ProducePacketName [11:42:40]name=ofd_packets/00192530 [11:42:40]NVStorageDeleteData [11:42:40]Write to MH i2c: 01 00 00 2D 34 61 [11:42:40]Write i2c OK [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: 01 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: 01 07 00 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: 01 07 00 2D 34 00 00 00 00 00 A5 0C 19 [11:42:40]RasterBufferAndPrint [11:42:40]line [11:42:40]line [11:42:40]line [11:42:40]line [11:42:40]line [11:42:40]written 0, free lines is 3242 [11:42:40]MH_Cut [11:42:40]Write to MH i2c: D1 01 00 34 34 01 3A [11:42:40]Write i2c OK [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: D1 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: D1 01 00 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: D1 01 00 34 34 00 39 [11:42:40]Write to MH i2c: 01 00 00 35 34 69 [11:42:40]Write i2c OK [11:42:40]MH_I2C_Read... [11:42:40]OFD Sender: No OFD packet to send [11:42:41]*** Cut start [11:42:41]*** Partial cut [11:42:41]*** CUTSNS_PIN = 1 [11:42:41]*** CUTSNS_PIN = 0 [11:42:41]*** Brake cut motor [11:42:41]Read from MH i2c: 01 [11:42:41]MH_I2C_Read... [11:42:41]*** Stop cut motor [11:42:41]*** Cut end [11:42:41]Read from MH i2c: 01 07 00 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: 01 07 00 35 34 00 00 00 00 00 FF 0F 7E [11:42:41]process_action close_receipt done [11:42:41]requested_data is exist [11:42:41]produce_requested_data [11:42:41]requested_item fm.sn is exist - process it [11:42:41]wFMCommunicate request_size=4 [11:42:41]MH_SAM_APDU [11:42:41]CAPDU: 80 11 00 00 [11:42:41]Write to MH i2c: E2 08 00 36 34 80 11 00 00 00 00 00 00 E4 [11:42:41]Write i2c OK [11:42:41]MH_I2C_Read... [11:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:41]Read from MH i2c: E2 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 17 00 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: E2 17 00 36 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 37 [11:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:42:41]wFMCommunicate OK [11:42:41]requested_item fd.num is exist - process it [11:42:41]SAM_PROTO_GetFieldsCounters [11:42:41]wFMCommunicate request_size=4 [11:42:41]MH_SAM_APDU [11:42:41]CAPDU: 80 13 00 00 [11:42:41]Write to MH i2c: E2 08 00 37 34 80 13 00 00 00 00 00 00 E7 [11:42:41]Write i2c OK [11:42:41]MH_I2C_Read... [11:42:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:42]Read from MH i2c: E2 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: E2 62 00 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: E2 62 00 37 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 12 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [11:42:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 12 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:42]wFMCommunicate OK [11:42:42]SAM_PROTO_GetFieldsCounters done [11:42:42]requested_item shift.num is exist - process it [11:42:42]requested_item shift.opened is exist - process it [11:42:42]req_shift_opened [11:42:42]FM_GetShiftState [11:42:42]SAM_PROTO_GetShiftState [11:42:42]wFMCommunicate request_size=4 [11:42:42]MH_SAM_APDU [11:42:42]CAPDU: 80 13 01 00 [11:42:42]Write to MH i2c: E2 08 00 38 34 80 13 01 00 00 00 00 00 E9 [11:42:42]Write i2c OK [11:42:42]MH_I2C_Read... [11:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:42]Read from MH i2c: E2 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: E2 0E 00 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: E2 0E 00 38 34 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 39 [11:42:42]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:42:42]wFMCommunicate OK [11:42:42]SAM_PROTO_GetShiftState done [11:42:42]FM_GetShiftState done [11:42:42]req_shift_opened done [11:42:42]requested_item shift.open_date is exist - process it [11:42:42]req_shift_open_date [11:42:42]req_shift_open_date done [11:42:42]produce_requested_data done [11:42:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192530,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:42:42]process_action_free close_receipt [11:42:42]json_value_free [11:42:42]json_value_free done [11:42:42]process_json_proto returns [11:42:42]Send response to host [11:42:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192530,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:42:42]free response buf [11:42:42]execute_script done [11:42:42]execute_script returns [11:42:42]free content buf [11:42:42]Sock 7.Close socket [11:42:42]Sock 7.Thread stoped [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:27]accept exits with 9 [11:45:27]New connection [11:45:27]New thread 3066707300 created [11:45:27]Thread 3066563940 joined [11:45:27]Waiting for new connection... [11:45:27] Sock 9.Parse request [11:45:27]Sock 9.Check first char [11:45:27]Sock 9.First char is OK [11:45:27]request: POST /json_proto HTTP/1.0 [11:45:27]Method: POST [11:45:27]URL: /json_proto [11:45:27]Method is POST - this is cgi request [11:45:27]url: /json_proto [11:45:27]query_string will be loaded in cgi processing [11:45:27]execute_cgi json_proto POST (null) [11:45:27]execute_cgi path=json_proto method=POST [11:45:27]POST find Content-Length [11:45:27]Host: 172.17.63.131:8080 [11:45:27]Content-Length: 676 [11:45:27]Content-Type: application/json [11:45:27] [11:45:27]POST finish read [11:45:27]Found Content-Length = 676 [11:45:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:27]execute_script... [11:45: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)31851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:27]POST & json_proto [11:45:27]process_json_proto [11:45:27]json parsed OK: [11:45:27]protocol is kg_v1.0 [11:45:27]action value=close_receipt [11:45:27]process_action close_receipt [11:45:27]cmd_close_receipt [11:45:27]MH_GetDate [11:45:27]Write to MH i2c: F0 00 00 39 34 5C [11:45:27]Write i2c OK [11:45:27]MH_I2C_Read... [11:45:27]Read from MH i2c: F0 [11:45:27]MH_I2C_Read... [11:45:27]Read from MH i2c: F0 09 00 [11:45:27]MH_I2C_Read... [11:45:27]Read from MH i2c: F0 09 00 39 34 00 5C 79 1F 67 22 05 6E 64 B9 [11:45:27]GetLastDocTimeStamp 1730115762 [11:45:27]current date 1730115932 [11:45:27]FM_GetShiftState [11:45:27]SAM_PROTO_GetShiftState [11:45:27]wFMCommunicate request_size=4 [11:45:27]MH_SAM_APDU [11:45:27]CAPDU: 80 13 01 00 [11:45:27]Write to MH i2c: E2 08 00 3A 34 80 13 01 00 00 00 00 00 EB [11:45:27]Write i2c OK [11:45:27]MH_I2C_Read... [11:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:27]Read from MH i2c: E2 [11:45:27]MH_I2C_Read... [11:45:27]Read from MH i2c: E2 0E 00 [11:45:27]MH_I2C_Read... [11:45:27]Read from MH i2c: E2 0E 00 3A 34 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3B [11:45:27]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:45:27]wFMCommunicate OK [11:45:27]SAM_PROTO_GetShiftState done [11:45:27]FM_GetShiftState done [11:45:27]opened in 1730075620 [11:45:27]opened+sec_in_day 1730162020 [11:45:27]quantity*price = 20003 [11:45:27]sum+1 = 20004 [11:45:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 79 28.10.2024 11:45 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192531 ФПД: 251652919635374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114532&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192531&fm=251652919635374&tin=02508201610067®Number=0000000000091776&sum=20000 [11:45:28]StoreToDocumentArchive [11:45:28]shift 543 fd 192531 [11:45:28]save to /storage/0543/doc_00192531 [11:45:28]save last doc name /storage/0543/doc_00192531 to /storage/kkm_last_doc_name [11:45:28]save OK [11:45:28]Clear old archive folders... [11:45:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:28]tlvbuf is 01A779C0 [11:45:28]SAM_PROTO_ClearQueue [11:45:28]wFMCommunicate request_size=4 [11:45:28]MH_SAM_APDU [11:45:28]CAPDU: 80 09 00 00 [11:45:28]Write to MH i2c: E2 08 00 47 34 80 09 00 00 00 00 00 00 ED [11:45:28]Write i2c OK [11:45:28]MH_I2C_Read... [11:45:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:28]Read from MH i2c: E2 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: E2 03 00 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: E2 03 00 47 34 00 90 00 EF [11:45:28]RAPDU: 90 00 [11:45:28]wFMCommunicate OK [11:45:28]SAM_PROTO_ClearQueue done [11:45:28]KKMCreateOFDPacket [11:45:28]OFDProtocolAddRootSTLVToBuf [11:45:28]FM_MakeSignedData [11:45:28]FM_MakeSignedData [11:45:28]SAM_PROTO_SignData [11:45:28]wFMCommunicate request_size=4 [11:45:28]MH_SAM_APDU [11:45:28]CAPDU: 80 0D 01 02 [11:45:28]Write to MH i2c: E2 08 00 48 34 80 0D 01 02 00 00 00 00 F5 [11:45:28]Write i2c OK [11:45:28]MH_I2C_Read... [11:45:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:28]Read from MH i2c: E2 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: E2 03 00 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: E2 03 00 48 34 00 90 00 F0 [11:45:28]RAPDU: 90 00 [11:45:28]wFMCommunicate OK [11:45:28]wFMCommunicate request_size=255 [11:45:28]MH_SAM_APDU [11:45: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5C 79 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 F0 02 00 35 04 06 00 E4 [11:45:28]Write to MH i2c: E2 02 01 49 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5C 79 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 F0 02 00 35 04 06 00 E4 00 00 FF [11:45:28]Write i2c OK [11:45:28]MH_I2C_Read... [11:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:28]Read from MH i2c: E2 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: E2 03 00 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: E2 03 00 49 34 00 90 00 F1 [11:45:28]RAPDU: 90 00 [11:45:28]wFMCommunicate OK [11:45:28]wFMCommunicate request_size=10 [11:45:28]MH_SAM_APDU [11:45:28]CAPDU: 80 0D 02 02 05 E0 82 E1 AD AE [11:45:28]Write to MH i2c: E2 0D 00 4A 34 80 0D 02 02 05 00 E0 82 E1 AD AE 00 00 A0 [11:45:28]Write i2c OK [11:45:28]MH_I2C_Read... [11:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:28]Read from MH i2c: E2 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: E2 03 00 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: E2 03 00 4A 34 00 90 00 F2 [11:45:28]RAPDU: 90 00 [11:45:28]wFMCommunicate OK [11:45:28]wFMCommunicate request_size=4 [11:45:28]MH_SAM_APDU [11:45:28]CAPDU: 80 0D 03 02 [11:45:28]Write to MH i2c: E2 08 00 4B 34 80 0D 03 02 00 00 00 00 FA [11:45:28]Write i2c OK [11:45:28]MH_I2C_Read... [11:45:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:28]Read from MH i2c: E2 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: E2 0B 00 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: E2 0B 00 4B 34 00 78 76 3A 09 13 4E 40 91 90 00 5E [11:45:28]RAPDU: 78 76 3A 09 13 4E 40 91 90 00 [11:45:28]wFMCommunicate OK [11:45:28]SAM_PROTO_SignData done [11:45:28]FM_MakeSignedData done [11:45:28]CreateOFDProtocolMessage [11:45:28]wFMCommunicate request_size=4 [11:45:28]MH_SAM_APDU [11:45:28]CAPDU: 80 11 00 00 [11:45:28]Write to MH i2c: E2 08 00 4C 34 80 11 00 00 00 00 00 00 FA [11:45:28]Write i2c OK [11:45:28]MH_I2C_Read... [11:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:28]Read from MH i2c: E2 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: E2 17 00 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: E2 17 00 4C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4D [11:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:45:28]wFMCommunicate OK [11:45:28]CreateOFDProtocolMessage done [11:45:28]OFDSenderStorePacket 192531 [11:45:28]StoreOFDPacket docnum=192531 [11:45:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AB 3C 07 01 5B 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5C 79 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 F0 02 00 35 04 06 00 E4 E0 82 E1 AD AE 78 76 3A 09 13 4E 40 91 [11:45:28]CheckFolder [11:45:28]dirname=/storage/ofd_packets [11:45:28]CheckFolder done [11:45:28]ProducePacketName [11:45:28]name=ofd_packets/00192531 [11:45:28]NVStorageSaveData ofd_packets/00192531 [11:45:28]File name is /storage/ofd_packets/00192531 [11:45:28]Write 301 bytes [11:45:28]NVStorageSaveData done [11:45:28]OFDSenderStorePacket done [11:45:28]KKMCreateOFDPacket done [11:45:28]NVStorageSaveData kkm_last_timestamp [11:45:28]File name is /storage/kkm_last_timestamp [11:45:28]Write 4 bytes [11:45:28]NVStorageSaveData done [11:45:28]ExternCall_PrintAddStr [11:45:28]wPrintStart [11:45:28]Write to MH i2c: 01 00 00 4D 34 81 [11:45:28]Write i2c OK [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: 01 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: 01 07 00 [11:45:28]MH_I2C_Read... [11:45:28]Read from MH i2c: 01 07 00 4D 34 00 00 00 00 00 FF 0F 96 [11:45:28]RasterBufferAndPrint [11:45:28]line Счет N : (1)31851 [11:45:28]line ИНН: 02508201610067 [11:45:28]line Контрольно-Кассовый Чек [11:45:28]line ПРОДАЖА [11:45:28]line ТРК (МРК, ГНК) : 12 [11:45:28]line Товар: 2710124130 [11:45:28]line Аи-92-К-5 [11:45:28]line 2.990 * 66.90 [11:45:28]line = 200.03 [11:45:28]line НДС 12% НСП 1% [11:45:28]line > о реализуемом товаре [11:45:28]line ОКРУГЛЕНИЕ: -0.03 [11:45:28]line ИТОГО: 200.00 [11:45:28]line Внесено: 200.00 [11:45:28]line СДАЧА: 0.00 [11:45:28]line НСП 1% : 1.77 [11:45:28]line НДС 12% : 21.24 [11:45:28]line Наличными: 200.00 [11:45:28]line Безнал.: 0.00 [11:45:28]line Место: АЗС № 170 "Партнер Нефть" [11:45:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:45:28]line СНО: Общий режим [11:45:28]line Чек 79 28.10.2024 11:45 [11:45:28]line Смена: 543 ФФД: 1.0 [11:45:28]line ЗНМ: 0300000110 [11:45:28]line РНМ: 0000000000091776 [11:45:28]line Версия ККМ: 001 [11:45:28]line ФМ: 0000000000871754 [11:45:28]line ФД: 192531 [11:45:28]line ФПД: 251652919635374 [11:45:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114532&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192531&fm=251652919635374&tin=02508201610067®Number=0000000000091776&sum=20000 [11:45:29]OFD Sender: Processing packet 192531 [packets to send 75, broken 74] [11:45:29]ProducePacketName [11:45:29]name=ofd_packets/00192531 [11:45:29]OFD Sender: To server: pG, [11:45:29]CommunicateWithHost lk.salyk.kg:30040 [11:45:29]ConnectInit lk.salyk.kg [11:45:29]written 0, free lines is 4095 [11:45:29]Connected sock=11 [11:45:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AB 3C 07 01 5B 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 5C 79 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 F0 02 00 35 04 06 00 E4 E0 82 E1 AD AE 78 76 3A 09 13 4E 40 91 [11:45:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EA 8D 47 00 60 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 F0 02 00 F4 03 04 00 20 1E 1F 67 B6 04 01 00 00 DA 34 B1 65 B4 7A 0A 5B [11:45:29]CommunicateWithHost err = 0 [11:45:29]CheckOFDResponse [11:45:29]1017 (14) - 77093643461234 [11:45:29]1041 (16) - 0000000000871754 [11:45:29]1040 (4) - 192531 [11:45:29]1012 (4) - 28.10.2024 05:16 [11:45:29]1206 (1) - 0 [11:45:29]OFD Sender: Remove packet 192531 [11:45:29]ProducePacketName [11:45:29]name=ofd_packets/00192531 [11:45:29]NVStorageDeleteData [11:45:29]Write to MH i2c: 01 00 00 78 34 AC [11:45:29]Write i2c OK [11:45:29]MH_I2C_Read... [11:45:29]Read from MH i2c: 01 [11:45:29]MH_I2C_Read... [11:45:29]Read from MH i2c: 01 07 00 [11:45:29]MH_I2C_Read... [11:45:29]Read from MH i2c: 01 07 00 78 34 00 00 00 00 00 A5 0C 64 [11:45:29]RasterBufferAndPrint [11:45:29]line [11:45:29]line [11:45:29]line [11:45:29]line [11:45:29]line [11:45:29]written 0, free lines is 3242 [11:45:29]MH_Cut [11:45:29]Write to MH i2c: D1 01 00 7F 34 01 85 [11:45:29]Write i2c OK [11:45:29]MH_I2C_Read... [11:45:29]Read from MH i2c: D1 [11:45:29]MH_I2C_Read... [11:45:29]Read from MH i2c: D1 01 00 [11:45:29]MH_I2C_Read... [11:45:29]Read from MH i2c: D1 01 00 7F 34 00 84 [11:45:29]Write to MH i2c: 01 00 00 80 34 B4 [11:45:29]Write i2c OK [11:45:29]MH_I2C_Read... [11:45:30]OFD Sender: No OFD packet to send [11:45:30]*** Cut start [11:45:30]*** Partial cut [11:45:30]*** CUTSNS_PIN = 1 [11:45:30]*** CUTSNS_PIN = 0 [11:45:30]*** Brake cut motor [11:45:31]Read from MH i2c: 01 [11:45:31]MH_I2C_Read... [11:45:31]*** Stop cut motor [11:45:31]*** Cut end [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 80 34 00 00 00 00 00 FF 0F C9 [11:45:31]process_action close_receipt done [11:45:31]requested_data is exist [11:45:31]produce_requested_data [11:45:31]requested_item fm.sn is exist - process it [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 81 34 80 11 00 00 00 00 00 00 2F [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 81 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 82 [11:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:45:31]wFMCommunicate OK [11:45:31]requested_item fd.num is exist - process it [11:45:31]SAM_PROTO_GetFieldsCounters [11:45:31]wFMCommunicate request_size=4 [11:45:31]MH_SAM_APDU [11:45:31]CAPDU: 80 13 00 00 [11:45:31]Write to MH i2c: E2 08 00 82 34 80 13 00 00 00 00 00 00 32 [11:45:31]Write i2c OK [11:45:31]MH_I2C_Read... [11:45:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:31]Read from MH i2c: E2 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: E2 62 00 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: E2 62 00 82 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 13 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [11:45:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 13 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:31]wFMCommunicate OK [11:45:31]SAM_PROTO_GetFieldsCounters done [11:45:31]requested_item shift.num is exist - process it [11:45:31]requested_item shift.opened is exist - process it [11:45:31]req_shift_opened [11:45:31]FM_GetShiftState [11:45:31]SAM_PROTO_GetShiftState [11:45:31]wFMCommunicate request_size=4 [11:45:31]MH_SAM_APDU [11:45:31]CAPDU: 80 13 01 00 [11:45:31]Write to MH i2c: E2 08 00 83 34 80 13 01 00 00 00 00 00 34 [11:45:31]Write i2c OK [11:45:31]MH_I2C_Read... [11:45:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:31]Read from MH i2c: E2 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: E2 0E 00 [11:45:31]MH_I2C_Read... [11:45:31]Read from MH i2c: E2 0E 00 83 34 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 84 [11:45:31]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:45:31]wFMCommunicate OK [11:45:31]SAM_PROTO_GetShiftState done [11:45:31]FM_GetShiftState done [11:45:31]req_shift_opened done [11:45:31]requested_item shift.open_date is exist - process it [11:45:31]req_shift_open_date [11:45:31]req_shift_open_date done [11:45:31]produce_requested_data done [11:45:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192531,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:45:31]process_action_free close_receipt [11:45:31]json_value_free [11:45:31]json_value_free done [11:45:31]process_json_proto returns [11:45:31]Send response to host [11:45:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192531,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:45:31]free response buf [11:45:31]execute_script done [11:45:31]execute_script returns [11:45:31]free content buf [11:45:31]Sock 9.Close socket [11:45:31]Sock 9.Thread stoped [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:34]ConnectInit Can't connect to host [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:47]accept exits with 10 [11:46:47]New connection [11:46:47]New thread 3066563940 created [11:46:47]Thread 3066707300 joined [11:46:47]Waiting for new connection... [11:46:47] Sock 10.Parse request [11:46:47]Sock 10.Check first char [11:46:47]Sock 10.First char is OK [11:46:47]request: POST /json_proto HTTP/1.0 [11:46:47]Method: POST [11:46:47]URL: /json_proto [11:46:47]Method is POST - this is cgi request [11:46:47]url: /json_proto [11:46:47]query_string will be loaded in cgi processing [11:46:47]execute_cgi json_proto POST (null) [11:46:47]execute_cgi path=json_proto method=POST [11:46:47]POST find Content-Length [11:46:47]Host: 172.17.63.131:8080 [11:46:47]Content-Length: 676 [11:46:47]Content-Type: application/json [11:46:47] [11:46:47]POST finish read [11:46:47]Found Content-Length = 676 [11:46:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:47]execute_script... [11:46:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:47]POST & json_proto [11:46:47]process_json_proto [11:46:47]json parsed OK: [11:46:47]protocol is kg_v1.0 [11:46:47]action value=close_receipt [11:46:47]process_action close_receipt [11:46:47]cmd_close_receipt [11:46:47]MH_GetDate [11:46:47]Write to MH i2c: F0 00 00 84 34 A7 [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: F0 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: F0 09 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: F0 09 00 84 34 00 AC 79 1F 67 22 05 6E 64 54 [11:46:47]GetLastDocTimeStamp 1730115932 [11:46:47]current date 1730116012 [11:46:47]FM_GetShiftState [11:46:47]SAM_PROTO_GetShiftState [11:46:47]wFMCommunicate request_size=4 [11:46:47]MH_SAM_APDU [11:46:47]CAPDU: 80 13 01 00 [11:46:47]Write to MH i2c: E2 08 00 85 34 80 13 01 00 00 00 00 00 36 [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 0E 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 0E 00 85 34 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 86 [11:46:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:46:47]wFMCommunicate OK [11:46:47]SAM_PROTO_GetShiftState done [11:46:47]FM_GetShiftState done [11:46:47]opened in 1730075620 [11:46:47]opened+sec_in_day 1730162020 [11:46:47]quantity*price = 60009 [11:46:47]sum+1 = 60010 [11:46:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 80 28.10.2024 11:46 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192532 ФПД: 271113282862808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114652&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192532&fm=271113282862808&tin=02508201610067®Number=0000000000091776&sum=60000 [11:46:48]StoreToDocumentArchive [11:46:48]shift 543 fd 192532 [11:46:48]save to /storage/0543/doc_00192532 [11:46:48]save last doc name /storage/0543/doc_00192532 to /storage/kkm_last_doc_name [11:46:48]save OK [11:46:48]Clear old archive folders... [11:46:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:48]tlvbuf is 01A508B0 [11:46:48]SAM_PROTO_ClearQueue [11:46:48]wFMCommunicate request_size=4 [11:46:48]MH_SAM_APDU [11:46:48]CAPDU: 80 09 00 00 [11:46:48]Write to MH i2c: E2 08 00 92 34 80 09 00 00 00 00 00 00 38 [11:46:48]Write i2c OK [11:46:48]MH_I2C_Read... [11:46:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:48]Read from MH i2c: E2 [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: E2 03 00 [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: E2 03 00 92 34 00 90 00 3A [11:46:48]RAPDU: 90 00 [11:46:48]wFMCommunicate OK [11:46:48]SAM_PROTO_ClearQueue done [11:46:48]KKMCreateOFDPacket [11:46:48]OFDProtocolAddRootSTLVToBuf [11:46:48]FM_MakeSignedData [11:46:48]FM_MakeSignedData [11:46:48]SAM_PROTO_SignData [11:46:48]wFMCommunicate request_size=4 [11:46:48]MH_SAM_APDU [11:46:48]CAPDU: 80 0D 01 02 [11:46:48]Write to MH i2c: E2 08 00 93 34 80 0D 01 02 00 00 00 00 40 [11:46:48]Write i2c OK [11:46:48]MH_I2C_Read... [11:46:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:48]Read from MH i2c: E2 [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: E2 03 00 [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: E2 03 00 93 34 00 90 00 3B [11:46:48]RAPDU: 90 00 [11:46:48]wFMCommunicate OK [11:46:48]wFMCommunicate request_size=255 [11:46:48]MH_SAM_APDU [11:46:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 AC 79 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 F0 02 00 35 04 06 00 F6 [11:46:48]Write to MH i2c: E2 02 01 94 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 AC 79 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 F0 02 00 35 04 06 00 F6 00 00 C9 [11:46:48]Write i2c OK [11:46:48]MH_I2C_Read... [11:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:49]Read from MH i2c: E2 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 03 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 03 00 94 34 00 90 00 3C [11:46:49]RAPDU: 90 00 [11:46:49]wFMCommunicate OK [11:46:49]wFMCommunicate request_size=10 [11:46:49]MH_SAM_APDU [11:46:49]CAPDU: 80 0D 02 02 05 93 7A EB 3E D8 [11:46:49]Write to MH i2c: E2 0D 00 95 34 80 0D 02 02 05 00 93 7A EB 3E D8 00 00 5B [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:49]Read from MH i2c: E2 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 03 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 03 00 95 34 00 90 00 3D [11:46:49]RAPDU: 90 00 [11:46:49]wFMCommunicate OK [11:46:49]wFMCommunicate request_size=4 [11:46:49]MH_SAM_APDU [11:46:49]CAPDU: 80 0D 03 02 [11:46:49]Write to MH i2c: E2 08 00 96 34 80 0D 03 02 00 00 00 00 45 [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:49]Read from MH i2c: E2 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 0B 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 0B 00 96 34 00 5F EE 88 A4 04 38 EC 25 90 00 0C [11:46:49]RAPDU: 5F EE 88 A4 04 38 EC 25 90 00 [11:46:49]wFMCommunicate OK [11:46:49]SAM_PROTO_SignData done [11:46:49]FM_MakeSignedData done [11:46:49]CreateOFDProtocolMessage [11:46:49]wFMCommunicate request_size=4 [11:46:49]MH_SAM_APDU [11:46:49]CAPDU: 80 11 00 00 [11:46:49]Write to MH i2c: E2 08 00 97 34 80 11 00 00 00 00 00 00 45 [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:49]Read from MH i2c: E2 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 17 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 17 00 97 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 98 [11:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:46:49]wFMCommunicate OK [11:46:49]CreateOFDProtocolMessage done [11:46:49]OFDSenderStorePacket 192532 [11:46:49]StoreOFDPacket docnum=192532 [11:46:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 FD 07 01 89 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 AC 79 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 F0 02 00 35 04 06 00 F6 93 7A EB 3E D8 5F EE 88 A4 04 38 EC 25 [11:46:49]CheckFolder [11:46:49]dirname=/storage/ofd_packets [11:46:49]CheckFolder done [11:46:49]ProducePacketName [11:46:49]name=ofd_packets/00192532 [11:46:49]NVStorageSaveData ofd_packets/00192532 [11:46:49]File name is /storage/ofd_packets/00192532 [11:46:49]Write 301 bytes [11:46:49]NVStorageSaveData done [11:46:49]OFDSenderStorePacket done [11:46:49]KKMCreateOFDPacket done [11:46:49]NVStorageSaveData kkm_last_timestamp [11:46:49]File name is /storage/kkm_last_timestamp [11:46:49]Write 4 bytes [11:46:49]NVStorageSaveData done [11:46:49]ExternCall_PrintAddStr [11:46:49]wPrintStart [11:46:49]Write to MH i2c: 01 00 00 98 34 CC [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: 01 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: 01 07 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: 01 07 00 98 34 00 00 00 00 00 FF 0F E1 [11:46:49]RasterBufferAndPrint [11:46:49]line Счет N : (1)31852 [11:46:49]line ИНН: 02508201610067 [11:46:49]line Контрольно-Кассовый Чек [11:46:49]line ПРОДАЖА [11:46:49]line ТРК (МРК, ГНК) : 21 [11:46:49]line Товар: 2710124130 [11:46:49]line Аи-92-К-5 [11:46:49]line 8.970 * 66.90 [11:46:49]line = 600.09 [11:46:49]line НДС 12% НСП 1% [11:46:49]line > о реализуемом товаре [11:46:49]line ОКРУГЛЕНИЕ: -0.09 [11:46:49]line ИТОГО: 600.00 [11:46:49]line Внесено: 600.00 [11:46:49]line СДАЧА: 0.00 [11:46:49]line НСП 1% : 5.31 [11:46:49]line НДС 12% : 63.73 [11:46:49]line Наличными: 600.00 [11:46:49]line Безнал.: 0.00 [11:46:49]line Место: АЗС № 170 "Партнер Нефть" [11:46:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:46:49]line СНО: Общий режим [11:46:49]line Чек 80 28.10.2024 11:46 [11:46:49]line Смена: 543 ФФД: 1.0 [11:46:49]line ЗНМ: 0300000110 [11:46:49]line РНМ: 0000000000091776 [11:46:49]line Версия ККМ: 001 [11:46:49]line ФМ: 0000000000871754 [11:46:49]line ФД: 192532 [11:46:49]line ФПД: 271113282862808 [11:46:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114652&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192532&fm=271113282862808&tin=02508201610067®Number=0000000000091776&sum=60000 [11:46:49]written 0, free lines is 4095 [11:46:49]OFD Sender: Processing packet 192532 [packets to send 75, broken 74] [11:46:49]ProducePacketName [11:46:49]name=ofd_packets/00192532 [11:46:49]OFD Sender: To server: pG, [11:46:49]CommunicateWithHost lk.salyk.kg:30040 [11:46:49]ConnectInit lk.salyk.kg [11:46:49]Connected sock=9 [11:46:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 FD 07 01 89 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 AC 79 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 F0 02 00 35 04 06 00 F6 93 7A EB 3E D8 5F EE 88 A4 04 38 EC 25 [11:46:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F7 BB 47 00 A7 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 F0 02 00 F4 03 04 00 70 1E 1F 67 B6 04 01 00 00 68 B8 2D 64 A9 E4 EF 55 [11:46:49]CommunicateWithHost err = 0 [11:46:49]CheckOFDResponse [11:46:49]1017 (14) - 77093643461234 [11:46:49]1041 (16) - 0000000000871754 [11:46:49]1040 (4) - 192532 [11:46:49]1012 (4) - 28.10.2024 05:17 [11:46:49]1206 (1) - 0 [11:46:49]OFD Sender: Remove packet 192532 [11:46:49]ProducePacketName [11:46:49]name=ofd_packets/00192532 [11:46:49]NVStorageDeleteData [11:46:49]Write to MH i2c: 01 00 00 C3 34 F7 [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: 01 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: 01 07 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: 01 07 00 C3 34 00 00 00 00 00 B3 0C BD [11:46:49]RasterBufferAndPrint [11:46:49]line [11:46:49]line [11:46:49]line [11:46:49]line [11:46:49]line [11:46:49]written 0, free lines is 3261 [11:46:49]MH_Cut [11:46:49]Write to MH i2c: D1 01 00 CA 34 01 D0 [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: D1 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: D1 01 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: D1 01 00 CA 34 00 CF [11:46:49]Write to MH i2c: 01 00 00 CB 34 FF [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:50]OFD Sender: No OFD packet to send [11:46:50]*** Cut start [11:46:50]*** Partial cut [11:46:50]*** CUTSNS_PIN = 1 [11:46:50]*** CUTSNS_PIN = 0 [11:46:50]*** Brake cut motor [11:46:51]Read from MH i2c: 01 [11:46:51]MH_I2C_Read... [11:46:51]*** Stop cut motor [11:46:51]*** Cut end [11:46:51]Read from MH i2c: 01 07 00 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: 01 07 00 CB 34 00 00 00 00 00 FF 0F 14 [11:46:51]process_action close_receipt done [11:46:51]requested_data is exist [11:46:51]produce_requested_data [11:46:51]requested_item fm.sn is exist - process it [11:46:51]wFMCommunicate request_size=4 [11:46:51]MH_SAM_APDU [11:46:51]CAPDU: 80 11 00 00 [11:46:51]Write to MH i2c: E2 08 00 CC 34 80 11 00 00 00 00 00 00 7A [11:46:51]Write i2c OK [11:46:51]MH_I2C_Read... [11:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:51]Read from MH i2c: E2 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: E2 17 00 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: E2 17 00 CC 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CD [11:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:46:51]wFMCommunicate OK [11:46:51]requested_item fd.num is exist - process it [11:46:51]SAM_PROTO_GetFieldsCounters [11:46:51]wFMCommunicate request_size=4 [11:46:51]MH_SAM_APDU [11:46:51]CAPDU: 80 13 00 00 [11:46:51]Write to MH i2c: E2 08 00 CD 34 80 13 00 00 00 00 00 00 7D [11:46:51]Write i2c OK [11:46:51]MH_I2C_Read... [11:46:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:51]Read from MH i2c: E2 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: E2 62 00 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: E2 62 00 CD 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 14 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [11:46:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 14 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:51]wFMCommunicate OK [11:46:51]SAM_PROTO_GetFieldsCounters done [11:46:51]requested_item shift.num is exist - process it [11:46:51]requested_item shift.opened is exist - process it [11:46:51]req_shift_opened [11:46:51]FM_GetShiftState [11:46:51]SAM_PROTO_GetShiftState [11:46:51]wFMCommunicate request_size=4 [11:46:51]MH_SAM_APDU [11:46:51]CAPDU: 80 13 01 00 [11:46:51]Write to MH i2c: E2 08 00 CE 34 80 13 01 00 00 00 00 00 7F [11:46:51]Write i2c OK [11:46:51]MH_I2C_Read... [11:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:51]Read from MH i2c: E2 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: E2 0E 00 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: E2 0E 00 CE 34 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CF [11:46:51]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:46:51]wFMCommunicate OK [11:46:51]SAM_PROTO_GetShiftState done [11:46:51]FM_GetShiftState done [11:46:51]req_shift_opened done [11:46:51]requested_item shift.open_date is exist - process it [11:46:51]req_shift_open_date [11:46:51]req_shift_open_date done [11:46:51]produce_requested_data done [11:46:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192532,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:46:51]process_action_free close_receipt [11:46:51]json_value_free [11:46:51]json_value_free done [11:46:51]process_json_proto returns [11:46:51]Send response to host [11:46:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192532,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:46:51]free response buf [11:46:51]execute_script done [11:46:51]execute_script returns [11:46:51]free content buf [11:46:51]Sock 10.Close socket [11:46:51]Sock 10.Thread stoped [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:20]OFD Sender: No OFD packet to send [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:03]accept exits with 7 [11:51:03]New connection [11:51:03]New thread 3066707300 created [11:51:03]Thread 3066563940 joined [11:51:03]Waiting for new connection... [11:51:03] Sock 7.Parse request [11:51:03]Sock 7.Check first char [11:51:03]Sock 7.First char is OK [11:51:03]request: POST /json_proto HTTP/1.0 [11:51:03]Method: POST [11:51:03]URL: /json_proto [11:51:03]Method is POST - this is cgi request [11:51:03]url: /json_proto [11:51:03]query_string will be loaded in cgi processing [11:51:03]execute_cgi json_proto POST (null) [11:51:03]execute_cgi path=json_proto method=POST [11:51:03]POST find Content-Length [11:51:03]Host: 172.17.63.131:8080 [11:51:03]Content-Length: 676 [11:51:03]Content-Type: application/json [11:51:03] [11:51:03]POST finish read [11:51:03]Found Content-Length = 676 [11:51:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:03]execute_script... [11:51: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)31853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:03]POST & json_proto [11:51:03]process_json_proto [11:51:03]json parsed OK: [11:51:03]protocol is kg_v1.0 [11:51:03]action value=close_receipt [11:51:03]process_action close_receipt [11:51:03]cmd_close_receipt [11:51:03]MH_GetDate [11:51:03]Write to MH i2c: F0 00 00 CF 34 F2 [11:51:03]Write i2c OK [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: F0 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: F0 09 00 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: F0 09 00 CF 34 00 AC 7A 1F 67 22 05 6E 64 A0 [11:51:03]GetLastDocTimeStamp 1730116012 [11:51:03]current date 1730116268 [11:51:03]FM_GetShiftState [11:51:03]SAM_PROTO_GetShiftState [11:51:03]wFMCommunicate request_size=4 [11:51:03]MH_SAM_APDU [11:51:03]CAPDU: 80 13 01 00 [11:51:03]Write to MH i2c: E2 08 00 D0 34 80 13 01 00 00 00 00 00 81 [11:51:03]Write i2c OK [11:51:03]MH_I2C_Read... [11:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:03]Read from MH i2c: E2 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: E2 0E 00 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: E2 0E 00 D0 34 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D1 [11:51:03]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:51:03]wFMCommunicate OK [11:51:03]SAM_PROTO_GetShiftState done [11:51:03]FM_GetShiftState done [11:51:03]opened in 1730075620 [11:51:03]opened+sec_in_day 1730162020 [11:51:03]quantity*price = 20003 [11:51:03]sum+1 = 20004 [11:51:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 81 28.10.2024 11:51 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192533 ФПД: 245569712275670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T115108&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192533&fm=245569712275670&tin=02508201610067®Number=0000000000091776&sum=20000 [11:51:04]StoreToDocumentArchive [11:51:04]shift 543 fd 192533 [11:51:04]save to /storage/0543/doc_00192533 [11:51:04]save last doc name /storage/0543/doc_00192533 to /storage/kkm_last_doc_name [11:51:04]save OK [11:51:04]Clear old archive folders... [11:51:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:04]tlvbuf is 01986520 [11:51:04]SAM_PROTO_ClearQueue [11:51:04]wFMCommunicate request_size=4 [11:51:04]MH_SAM_APDU [11:51:04]CAPDU: 80 09 00 00 [11:51:04]Write to MH i2c: E2 08 00 DD 34 80 09 00 00 00 00 00 00 83 [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:04]Read from MH i2c: E2 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 03 00 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 03 00 DD 34 00 90 00 85 [11:51:04]RAPDU: 90 00 [11:51:04]wFMCommunicate OK [11:51:04]SAM_PROTO_ClearQueue done [11:51:04]KKMCreateOFDPacket [11:51:04]OFDProtocolAddRootSTLVToBuf [11:51:04]FM_MakeSignedData [11:51:04]FM_MakeSignedData [11:51:04]SAM_PROTO_SignData [11:51:04]wFMCommunicate request_size=4 [11:51:04]MH_SAM_APDU [11:51:04]CAPDU: 80 0D 01 02 [11:51:04]Write to MH i2c: E2 08 00 DE 34 80 0D 01 02 00 00 00 00 8B [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:04]Read from MH i2c: E2 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 03 00 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 03 00 DE 34 00 90 00 86 [11:51:04]RAPDU: 90 00 [11:51:04]wFMCommunicate OK [11:51:04]wFMCommunicate request_size=255 [11:51:04]MH_SAM_APDU [11:51:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 AC 7A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 F0 02 00 35 04 06 00 DF [11:51:04]Write to MH i2c: E2 02 01 DF 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 AC 7A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 F0 02 00 35 04 06 00 DF 00 00 E5 [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 [11:51:04]MH_I2C_Read... [11:51:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:04]Read from MH i2c: E2 03 00 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 03 00 DF 34 00 90 00 87 [11:51:04]RAPDU: 90 00 [11:51:04]wFMCommunicate OK [11:51:04]wFMCommunicate request_size=10 [11:51:04]MH_SAM_APDU [11:51:04]CAPDU: 80 0D 02 02 05 58 27 77 C0 D6 [11:51:04]Write to MH i2c: E2 0D 00 E0 34 80 0D 02 02 05 00 58 27 77 C0 D6 00 00 24 [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:04]Read from MH i2c: E2 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 03 00 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 03 00 E0 34 00 90 00 88 [11:51:04]RAPDU: 90 00 [11:51:04]wFMCommunicate OK [11:51:04]wFMCommunicate request_size=4 [11:51:04]MH_SAM_APDU [11:51:04]CAPDU: 80 0D 03 02 [11:51:04]Write to MH i2c: E2 08 00 E1 34 80 0D 03 02 00 00 00 00 90 [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:04]Read from MH i2c: E2 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 0B 00 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 0B 00 E1 34 00 17 AE 1E C8 4A C0 7A 18 90 00 D8 [11:51:04]RAPDU: 17 AE 1E C8 4A C0 7A 18 90 00 [11:51:04]wFMCommunicate OK [11:51:04]SAM_PROTO_SignData done [11:51:04]FM_MakeSignedData done [11:51:04]CreateOFDProtocolMessage [11:51:04]wFMCommunicate request_size=4 [11:51:04]MH_SAM_APDU [11:51:04]CAPDU: 80 11 00 00 [11:51:04]Write to MH i2c: E2 08 00 E2 34 80 11 00 00 00 00 00 00 90 [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:04]Read from MH i2c: E2 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 17 00 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 17 00 E2 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E3 [11:51:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:51:04]wFMCommunicate OK [11:51:04]CreateOFDProtocolMessage done [11:51:04]OFDSenderStorePacket 192533 [11:51:04]StoreOFDPacket docnum=192533 [11:51:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 75 7B 07 01 DC 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 AC 7A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 F0 02 00 35 04 06 00 DF 58 27 77 C0 D6 17 AE 1E C8 4A C0 7A 18 [11:51:04]CheckFolder [11:51:04]dirname=/storage/ofd_packets [11:51:04]CheckFolder done [11:51:04]ProducePacketName [11:51:04]name=ofd_packets/00192533 [11:51:04]NVStorageSaveData ofd_packets/00192533 [11:51:04]File name is /storage/ofd_packets/00192533 [11:51:04]Write 301 bytes [11:51:04]NVStorageSaveData done [11:51:04]OFDSenderStorePacket done [11:51:04]KKMCreateOFDPacket done [11:51:04]NVStorageSaveData kkm_last_timestamp [11:51:04]File name is /storage/kkm_last_timestamp [11:51:04]Write 4 bytes [11:51:04]NVStorageSaveData done [11:51:04]ExternCall_PrintAddStr [11:51:04]wPrintStart [11:51:04]Write to MH i2c: 01 00 00 E3 34 17 [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: 01 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: 01 07 00 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: 01 07 00 E3 34 00 00 00 00 00 FF 0F 2C [11:51:04]RasterBufferAndPrint [11:51:04]line Счет N : (1)31853 [11:51:04]line ИНН: 02508201610067 [11:51:04]line Контрольно-Кассовый Чек [11:51:04]line ПРОДАЖА [11:51:04]line ТРК (МРК, ГНК) : 12 [11:51:04]line Товар: 2710124130 [11:51:04]line Аи-92-К-5 [11:51:04]line 2.990 * 66.90 [11:51:04]line = 200.03 [11:51:04]line НДС 12% НСП 1% [11:51:04]line > о реализуемом товаре [11:51:04]line ОКРУГЛЕНИЕ: -0.03 [11:51:04]line ИТОГО: 200.00 [11:51:04]line Внесено: 200.00 [11:51:04]line СДАЧА: 0.00 [11:51:04]line НСП 1% : 1.77 [11:51:04]line НДС 12% : 21.24 [11:51:04]line Наличными: 200.00 [11:51:04]line Безнал.: 0.00 [11:51:04]line Место: АЗС № 170 "Партнер Нефть" [11:51:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:51:04]line СНО: Общий режим [11:51:04]line Чек 81 28.10.2024 11:51 [11:51:04]line Смена: 543 ФФД: 1.0 [11:51:04]line ЗНМ: 0300000110 [11:51:04]line РНМ: 0000000000091776 [11:51:04]line Версия ККМ: 001 [11:51:04]line ФМ: 0000000000871754 [11:51:04]line ФД: 192533 [11:51:04]line ФПД: 245569712275670 [11:51:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T115108&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192533&fm=245569712275670&tin=02508201610067®Number=0000000000091776&sum=20000 [11:51:05]OFD Sender: Processing packet 192533 [packets to send 75, broken 74] [11:51:05]ProducePacketName [11:51:05]name=ofd_packets/00192533 [11:51:05]OFD Sender: To server: pG, [11:51:05]CommunicateWithHost lk.salyk.kg:30040 [11:51:05]ConnectInit lk.salyk.kg [11:51:05]written 0, free lines is 4095 [11:51:05]Connected sock=10 [11:51:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 75 7B 07 01 DC 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 AC 7A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 F0 02 00 35 04 06 00 DF 58 27 77 C0 D6 17 AE 1E C8 4A C0 7A 18 [11:51:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 92 6A 47 00 77 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 F0 02 00 F4 03 04 00 70 1F 1F 67 B6 04 01 00 00 84 0C F7 36 47 29 94 5B [11:51:05]CommunicateWithHost err = 0 [11:51:05]CheckOFDResponse [11:51:05]1017 (14) - 77093643461234 [11:51:05]1041 (16) - 0000000000871754 [11:51:05]1040 (4) - 192533 [11:51:05]1012 (4) - 28.10.2024 05:21 [11:51:05]1206 (1) - 0 [11:51:05]OFD Sender: Remove packet 192533 [11:51:05]ProducePacketName [11:51:05]name=ofd_packets/00192533 [11:51:05]NVStorageDeleteData [11:51:05]Write to MH i2c: 01 00 00 0E 35 43 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: 01 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: 01 07 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: 01 07 00 0E 35 00 00 00 00 00 A7 0C FD [11:51:05]RasterBufferAndPrint [11:51:05]line [11:51:05]line [11:51:05]line [11:51:05]line [11:51:05]line [11:51:05]written 0, free lines is 3242 [11:51:05]MH_Cut [11:51:05]Write to MH i2c: D1 01 00 15 35 01 1C [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: D1 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: D1 01 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: D1 01 00 15 35 00 1B [11:51:05]Write to MH i2c: 01 00 00 16 35 4B [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]OFD Sender: No OFD packet to send [11:51:06]*** Cut start [11:51:06]*** Partial cut [11:51:06]*** CUTSNS_PIN = 1 [11:51:06]*** CUTSNS_PIN = 0 [11:51:06]*** Brake cut motor [11:51:07]Read from MH i2c: 01 [11:51:07]MH_I2C_Read... [11:51:07]*** Stop cut motor [11:51:07]*** Cut end [11:51:07]Read from MH i2c: 01 07 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: 01 07 00 16 35 00 00 00 00 00 FF 0F 60 [11:51:07]process_action close_receipt done [11:51:07]requested_data is exist [11:51:07]produce_requested_data [11:51:07]requested_item fm.sn is exist - process it [11:51:07]wFMCommunicate request_size=4 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 11 00 00 [11:51:07]Write to MH i2c: E2 08 00 17 35 80 11 00 00 00 00 00 00 C6 [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 17 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 17 00 17 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 19 [11:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:51:07]wFMCommunicate OK [11:51:07]requested_item fd.num is exist - process it [11:51:07]SAM_PROTO_GetFieldsCounters [11:51:07]wFMCommunicate request_size=4 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 13 00 00 [11:51:07]Write to MH i2c: E2 08 00 18 35 80 13 00 00 00 00 00 00 C9 [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 62 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 62 00 18 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 15 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [11:51:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 15 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:07]wFMCommunicate OK [11:51:07]SAM_PROTO_GetFieldsCounters done [11:51:07]requested_item shift.num is exist - process it [11:51:07]requested_item shift.opened is exist - process it [11:51:07]req_shift_opened [11:51:07]FM_GetShiftState [11:51:07]SAM_PROTO_GetShiftState [11:51:07]wFMCommunicate request_size=4 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 13 01 00 [11:51:07]Write to MH i2c: E2 08 00 19 35 80 13 01 00 00 00 00 00 CB [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 0E 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 0E 00 19 35 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1B [11:51:07]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:51:07]wFMCommunicate OK [11:51:07]SAM_PROTO_GetShiftState done [11:51:07]FM_GetShiftState done [11:51:07]req_shift_opened done [11:51:07]requested_item shift.open_date is exist - process it [11:51:07]req_shift_open_date [11:51:07]req_shift_open_date done [11:51:07]produce_requested_data done [11:51:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192533,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:51:07]process_action_free close_receipt [11:51:07]json_value_free [11:51:07]json_value_free done [11:51:07]process_json_proto returns [11:51:07]Send response to host [11:51:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192533,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:51:07]free response buf [11:51:07]execute_script done [11:51:07]execute_script returns [11:51:07]free content buf [11:51:07]Sock 7.Close socket [11:51:07]Sock 7.Thread stoped [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:02]accept exits with 9 [11:57:02]New connection [11:57:02]New thread 3066563940 created [11:57:02]Thread 3066707300 joined [11:57:02]Waiting for new connection... [11:57:02] Sock 9.Parse request [11:57:02]Sock 9.Check first char [11:57:02]Sock 9.First char is OK [11:57:02]request: POST /json_proto HTTP/1.0 [11:57:02]Method: POST [11:57:02]URL: /json_proto [11:57:02]Method is POST - this is cgi request [11:57:02]url: /json_proto [11:57:02]query_string will be loaded in cgi processing [11:57:02]execute_cgi json_proto POST (null) [11:57:02]execute_cgi path=json_proto method=POST [11:57:02]POST find Content-Length [11:57:02]Host: 172.17.63.131:8080 [11:57:02]Content-Length: 676 [11:57:02]Content-Type: application/json [11:57:02] [11:57:02]POST finish read [11:57:02]Found Content-Length = 676 [11:57:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:02]execute_script... [11:57:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:02]POST & json_proto [11:57:02]process_json_proto [11:57:02]json parsed OK: [11:57:02]protocol is kg_v1.0 [11:57:02]action value=close_receipt [11:57:02]process_action close_receipt [11:57:02]cmd_close_receipt [11:57:02]MH_GetDate [11:57:02]Write to MH i2c: F0 00 00 1A 35 3E [11:57:02]Write i2c OK [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: F0 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: F0 09 00 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: F0 09 00 1A 35 00 13 7C 1F 67 22 05 6E 64 55 [11:57:02]GetLastDocTimeStamp 1730116268 [11:57:02]current date 1730116627 [11:57:02]FM_GetShiftState [11:57:02]SAM_PROTO_GetShiftState [11:57:02]wFMCommunicate request_size=4 [11:57:02]MH_SAM_APDU [11:57:02]CAPDU: 80 13 01 00 [11:57:02]Write to MH i2c: E2 08 00 1B 35 80 13 01 00 00 00 00 00 CD [11:57:02]Write i2c OK [11:57:02]MH_I2C_Read... [11:57:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:02]Read from MH i2c: E2 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: E2 0E 00 [11:57:02]MH_I2C_Read... [11:57:02]Read from MH i2c: E2 0E 00 1B 35 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1D [11:57:02]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [11:57:02]wFMCommunicate OK [11:57:02]SAM_PROTO_GetShiftState done [11:57:02]FM_GetShiftState done [11:57:02]opened in 1730075620 [11:57:02]opened+sec_in_day 1730162020 [11:57:02]quantity*price = 20003 [11:57:02]sum+1 = 20004 [11:57:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 82 28.10.2024 11:57 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192534 ФПД: 267261431799752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T115707&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192534&fm=267261431799752&tin=02508201610067®Number=0000000000091776&sum=20000 [11:57:04]StoreToDocumentArchive [11:57:04]shift 543 fd 192534 [11:57:04]save to /storage/0543/doc_00192534 [11:57:04]save last doc name /storage/0543/doc_00192534 to /storage/kkm_last_doc_name [11:57:04]save OK [11:57:04]Clear old archive folders... [11:57:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:04]tlvbuf is B6E9ED10 [11:57:04]SAM_PROTO_ClearQueue [11:57:04]wFMCommunicate request_size=4 [11:57:04]MH_SAM_APDU [11:57:04]CAPDU: 80 09 00 00 [11:57:04]Write to MH i2c: E2 08 00 28 35 80 09 00 00 00 00 00 00 CF [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:04]Read from MH i2c: E2 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 28 35 00 90 00 D1 [11:57:04]RAPDU: 90 00 [11:57:04]wFMCommunicate OK [11:57:04]SAM_PROTO_ClearQueue done [11:57:04]KKMCreateOFDPacket [11:57:04]OFDProtocolAddRootSTLVToBuf [11:57:04]FM_MakeSignedData [11:57:04]FM_MakeSignedData [11:57:04]SAM_PROTO_SignData [11:57:04]wFMCommunicate request_size=4 [11:57:04]MH_SAM_APDU [11:57:04]CAPDU: 80 0D 01 02 [11:57:04]Write to MH i2c: E2 08 00 29 35 80 0D 01 02 00 00 00 00 D7 [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:04]Read from MH i2c: E2 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 29 35 00 90 00 D2 [11:57:04]RAPDU: 90 00 [11:57:04]wFMCommunicate OK [11:57:04]wFMCommunicate request_size=255 [11:57:04]MH_SAM_APDU [11:57:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 13 7C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 F0 02 00 35 04 06 00 F3 [11:57:04]Write to MH i2c: E2 02 01 2A 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 13 7C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 F0 02 00 35 04 06 00 F3 00 00 B0 [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:04]Read from MH i2c: E2 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 2A 35 00 90 00 D3 [11:57:04]RAPDU: 90 00 [11:57:04]wFMCommunicate OK [11:57:04]wFMCommunicate request_size=10 [11:57:04]MH_SAM_APDU [11:57:04]CAPDU: 80 0D 02 02 05 12 A6 B4 5F C8 [11:57:04]Write to MH i2c: E2 0D 00 2B 35 80 0D 02 02 05 00 12 A6 B4 5F C8 00 00 77 [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:04]Read from MH i2c: E2 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 2B 35 00 90 00 D4 [11:57:04]RAPDU: 90 00 [11:57:04]wFMCommunicate OK [11:57:04]wFMCommunicate request_size=4 [11:57:04]MH_SAM_APDU [11:57:04]CAPDU: 80 0D 03 02 [11:57:04]Write to MH i2c: E2 08 00 2C 35 80 0D 03 02 00 00 00 00 DC [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:04]Read from MH i2c: E2 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 0B 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 0B 00 2C 35 00 A1 77 F9 57 83 22 D7 C6 90 00 87 [11:57:04]RAPDU: A1 77 F9 57 83 22 D7 C6 90 00 [11:57:04]wFMCommunicate OK [11:57:04]SAM_PROTO_SignData done [11:57:04]FM_MakeSignedData done [11:57:04]CreateOFDProtocolMessage [11:57:04]wFMCommunicate request_size=4 [11:57:04]MH_SAM_APDU [11:57:04]CAPDU: 80 11 00 00 [11:57:04]Write to MH i2c: E2 08 00 2D 35 80 11 00 00 00 00 00 00 DC [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:04]Read from MH i2c: E2 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 17 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 17 00 2D 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2F [11:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:57:04]wFMCommunicate OK [11:57:04]CreateOFDProtocolMessage done [11:57:04]OFDSenderStorePacket 192534 [11:57:04]StoreOFDPacket docnum=192534 [11:57:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0A E0 07 01 22 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 13 7C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 F0 02 00 35 04 06 00 F3 12 A6 B4 5F C8 A1 77 F9 57 83 22 D7 C6 [11:57:04]CheckFolder [11:57:04]dirname=/storage/ofd_packets [11:57:04]CheckFolder done [11:57:04]ProducePacketName [11:57:04]name=ofd_packets/00192534 [11:57:04]NVStorageSaveData ofd_packets/00192534 [11:57:04]File name is /storage/ofd_packets/00192534 [11:57:04]Write 301 bytes [11:57:04]NVStorageSaveData done [11:57:04]OFDSenderStorePacket done [11:57:04]KKMCreateOFDPacket done [11:57:04]NVStorageSaveData kkm_last_timestamp [11:57:04]File name is /storage/kkm_last_timestamp [11:57:04]Write 4 bytes [11:57:04]NVStorageSaveData done [11:57:04]ExternCall_PrintAddStr [11:57:04]wPrintStart [11:57:04]Write to MH i2c: 01 00 00 2E 35 63 [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: 01 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: 01 07 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: 01 07 00 2E 35 00 00 00 00 00 FF 0F 78 [11:57:04]RasterBufferAndPrint [11:57:04]line Счет N : (1)31854 [11:57:04]line ИНН: 02508201610067 [11:57:04]line Контрольно-Кассовый Чек [11:57:04]line ПРОДАЖА [11:57:04]line ТРК (МРК, ГНК) : 21 [11:57:04]line Товар: 2710124130 [11:57:04]line Аи-92-К-5 [11:57:04]line 2.990 * 66.90 [11:57:04]line = 200.03 [11:57:04]line НДС 12% НСП 1% [11:57:04]line > о реализуемом товаре [11:57:04]line ОКРУГЛЕНИЕ: -0.03 [11:57:04]line ИТОГО: 200.00 [11:57:04]line Внесено: 200.00 [11:57:04]line СДАЧА: 0.00 [11:57:04]line НСП 1% : 1.77 [11:57:04]line НДС 12% : 21.24 [11:57:04]line Наличными: 200.00 [11:57:04]line Безнал.: 0.00 [11:57:04]line Место: АЗС № 170 "Партнер Нефть" [11:57:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:57:04]line СНО: Общий режим [11:57:04]line Чек 82 28.10.2024 11:57 [11:57:04]line Смена: 543 ФФД: 1.0 [11:57:04]line ЗНМ: 0300000110 [11:57:04]line РНМ: 0000000000091776 [11:57:04]line Версия ККМ: 001 [11:57:04]line ФМ: 0000000000871754 [11:57:04]line ФД: 192534 [11:57:04]line ФПД: 267261431799752 [11:57:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T115707&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192534&fm=267261431799752&tin=02508201610067®Number=0000000000091776&sum=20000 [11:57:04]OFD Sender: Processing packet 192534 [packets to send 75, broken 74] [11:57:04]ProducePacketName [11:57:04]name=ofd_packets/00192534 [11:57:04]OFD Sender: To server: pG, [11:57:04]CommunicateWithHost lk.salyk.kg:30040 [11:57:04]ConnectInit lk.salyk.kg [11:57:04]written 0, free lines is 4095 [11:57:05]Connected sock=10 [11:57:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0A E0 07 01 22 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 13 7C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 F0 02 00 35 04 06 00 F3 12 A6 B4 5F C8 A1 77 F9 57 83 22 D7 C6 [11:57:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2A A5 47 00 62 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 F0 02 00 F4 03 04 00 D8 20 1F 67 B6 04 01 00 00 E4 F0 22 1C 5A 06 5F 72 [11:57:05]CommunicateWithHost err = 0 [11:57:05]CheckOFDResponse [11:57:05]1017 (14) - 77093643461234 [11:57:05]1041 (16) - 0000000000871754 [11:57:05]1040 (4) - 192534 [11:57:05]1012 (4) - 28.10.2024 05:27 [11:57:05]1206 (1) - 0 [11:57:05]OFD Sender: Remove packet 192534 [11:57:05]ProducePacketName [11:57:05]name=ofd_packets/00192534 [11:57:05]NVStorageDeleteData [11:57:05]Write to MH i2c: 01 00 00 59 35 8E [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: 01 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: 01 07 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: 01 07 00 59 35 00 00 00 00 00 AA 0C 4B [11:57:05]RasterBufferAndPrint [11:57:05]line [11:57:05]line [11:57:05]line [11:57:05]line [11:57:05]line [11:57:05]written 0, free lines is 3246 [11:57:05]MH_Cut [11:57:05]Write to MH i2c: D1 01 00 60 35 01 67 [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: D1 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: D1 01 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: D1 01 00 60 35 00 66 [11:57:05]Write to MH i2c: 01 00 00 61 35 96 [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]OFD Sender: No OFD packet to send [11:57:06]*** Cut start [11:57:06]*** Partial cut [11:57:06]*** CUTSNS_PIN = 1 [11:57:06]*** CUTSNS_PIN = 0 [11:57:06]*** Brake cut motor [11:57:06]Read from MH i2c: 01 [11:57:06]MH_I2C_Read... [11:57:06]*** Stop cut motor [11:57:06]*** Cut end [11:57:06]Read from MH i2c: 01 07 00 [11:57:06]MH_I2C_Read... [11:57:06]Read from MH i2c: 01 07 00 61 35 00 00 00 00 00 FF 0F AB [11:57:06]process_action close_receipt done [11:57:06]requested_data is exist [11:57:06]produce_requested_data [11:57:06]requested_item fm.sn is exist - process it [11:57:06]wFMCommunicate request_size=4 [11:57:06]MH_SAM_APDU [11:57:06]CAPDU: 80 11 00 00 [11:57:06]Write to MH i2c: E2 08 00 62 35 80 11 00 00 00 00 00 00 11 [11:57:06]Write i2c OK [11:57:06]MH_I2C_Read... [11:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:06]Read from MH i2c: E2 [11:57:06]MH_I2C_Read... [11:57:06]Read from MH i2c: E2 17 00 [11:57:06]MH_I2C_Read... [11:57:06]Read from MH i2c: E2 17 00 62 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 64 [11:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:57:06]wFMCommunicate OK [11:57:06]requested_item fd.num is exist - process it [11:57:06]SAM_PROTO_GetFieldsCounters [11:57:06]wFMCommunicate request_size=4 [11:57:06]MH_SAM_APDU [11:57:06]CAPDU: 80 13 00 00 [11:57:06]Write to MH i2c: E2 08 00 63 35 80 13 00 00 00 00 00 00 14 [11:57:06]Write i2c OK [11:57:06]MH_I2C_Read... [11:57:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:07]Read from MH i2c: E2 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: E2 62 00 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: E2 62 00 63 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 16 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [11:57:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 16 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:07]wFMCommunicate OK [11:57:07]SAM_PROTO_GetFieldsCounters done [11:57:07]requested_item shift.num is exist - process it [11:57:07]requested_item shift.opened is exist - process it [11:57:07]req_shift_opened [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 64 35 80 13 01 00 00 00 00 00 16 [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 64 35 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 66 [11:57:07]RAPDU: 09 00 01 E4 DB 1E 67 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]req_shift_opened done [11:57:07]requested_item shift.open_date is exist - process it [11:57:07]req_shift_open_date [11:57:07]req_shift_open_date done [11:57:07]produce_requested_data done [11:57:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192534,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [11:57:07]process_action_free close_receipt [11:57:07]json_value_free [11:57:07]json_value_free done [11:57:07]process_json_proto returns [11:57:07]Send response to host [11:57:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192534,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [11:57:07]free response buf [11:57:07]execute_script done [11:57:07]execute_script returns [11:57:07]free content buf [11:57:07]Sock 9.Close socket [11:57:07]Sock 9.Thread stoped [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59: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:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:31]OFD Sender: No OFD packet to send [12:04:36]OFD Sender: No OFD packet to send [12:04:41]OFD Sender: No OFD packet to send [12:04:46]OFD Sender: No OFD packet to send [12:04:51]OFD Sender: No OFD packet to send [12:04:56]OFD Sender: No OFD packet to send [12:05:01]OFD Sender: No OFD packet to send [12:05:06]OFD Sender: No OFD packet to send [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:18]accept exits with 7 [12:05:18]New connection [12:05:18]New thread 3066707300 created [12:05:18]Thread 3066563940 joined [12:05:18]Waiting for new connection... [12:05:18] Sock 7.Parse request [12:05:18]Sock 7.Check first char [12:05:18]Sock 7.First char is OK [12:05:18]request: POST /json_proto HTTP/1.0 [12:05:18]Method: POST [12:05:18]URL: /json_proto [12:05:18]Method is POST - this is cgi request [12:05:18]url: /json_proto [12:05:18]query_string will be loaded in cgi processing [12:05:18]execute_cgi json_proto POST (null) [12:05:18]execute_cgi path=json_proto method=POST [12:05:18]POST find Content-Length [12:05:18]Host: 172.17.63.131:8080 [12:05:18]Content-Length: 681 [12:05:18]Content-Type: application/json [12:05:18] [12:05:18]POST finish read [12:05:18]Found Content-Length = 681 [12:05:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:18]execute_script... [12:05:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:18]POST & json_proto [12:05:18]process_json_proto [12:05:18]json parsed OK: [12:05:18]protocol is kg_v1.0 [12:05:18]action value=close_receipt [12:05:18]process_action close_receipt [12:05:18]cmd_close_receipt [12:05:18]MH_GetDate [12:05:18]Write to MH i2c: F0 00 00 65 35 89 [12:05:18]Write i2c OK [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: F0 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: F0 09 00 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: F0 09 00 65 35 00 03 7E 1F 67 22 05 6E 64 92 [12:05:18]GetLastDocTimeStamp 1730116627 [12:05:18]current date 1730117123 [12:05:18]FM_GetShiftState [12:05:18]SAM_PROTO_GetShiftState [12:05:18]wFMCommunicate request_size=4 [12:05:18]MH_SAM_APDU [12:05:18]CAPDU: 80 13 01 00 [12:05:18]Write to MH i2c: E2 08 00 66 35 80 13 01 00 00 00 00 00 18 [12:05:18]Write i2c OK [12:05:18]MH_I2C_Read... [12:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:18]Read from MH i2c: E2 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: E2 0E 00 [12:05:18]MH_I2C_Read... [12:05:18]Read from MH i2c: E2 0E 00 66 35 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 68 [12:05:18]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:05:18]wFMCommunicate OK [12:05:18]SAM_PROTO_GetShiftState done [12:05:18]FM_GetShiftState done [12:05:18]opened in 1730075620 [12:05:18]opened+sec_in_day 1730162020 [12:05:18]quantity*price = 130053 [12:05:18]sum+1 = 130055 [12:05:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 83 28.10.2024 12:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192535 ФПД: 207546927066296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120523&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192535&fm=207546927066296&tin=02508201610067®Number=0000000000091776&sum=130000 [12:05:19]StoreToDocumentArchive [12:05:19]shift 543 fd 192535 [12:05:19]save to /storage/0543/doc_00192535 [12:05:19]save last doc name /storage/0543/doc_00192535 to /storage/kkm_last_doc_name [12:05:19]save OK [12:05:19]Clear old archive folders... [12:05:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:19]tlvbuf is 019F4A10 [12:05:19]SAM_PROTO_ClearQueue [12:05:19]wFMCommunicate request_size=4 [12:05:19]MH_SAM_APDU [12:05:19]CAPDU: 80 09 00 00 [12:05:19]Write to MH i2c: E2 08 00 73 35 80 09 00 00 00 00 00 00 1A [12:05:19]Write i2c OK [12:05:19]MH_I2C_Read... [12:05:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:19]Read from MH i2c: E2 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 03 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 03 00 73 35 00 90 00 1C [12:05:19]RAPDU: 90 00 [12:05:19]wFMCommunicate OK [12:05:19]SAM_PROTO_ClearQueue done [12:05:19]KKMCreateOFDPacket [12:05:19]OFDProtocolAddRootSTLVToBuf [12:05:19]FM_MakeSignedData [12:05:19]FM_MakeSignedData [12:05:19]SAM_PROTO_SignData [12:05:19]wFMCommunicate request_size=4 [12:05:19]MH_SAM_APDU [12:05:19]CAPDU: 80 0D 01 02 [12:05:19]Write to MH i2c: E2 08 00 74 35 80 0D 01 02 00 00 00 00 22 [12:05:19]Write i2c OK [12:05:19]MH_I2C_Read... [12:05:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:19]Read from MH i2c: E2 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 03 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 03 00 74 35 00 90 00 1D [12:05:19]RAPDU: 90 00 [12:05:19]wFMCommunicate OK [12:05:19]wFMCommunicate request_size=255 [12:05:19]MH_SAM_APDU [12:05:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 03 7E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 F0 02 00 35 04 06 00 BC [12:05:19]Write to MH i2c: E2 02 01 75 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 03 7E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 F0 02 00 35 04 06 00 BC 00 00 2E [12:05:19]Write i2c OK [12:05:19]MH_I2C_Read... [12:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:19]Read from MH i2c: E2 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 03 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 03 00 75 35 00 90 00 1E [12:05:19]RAPDU: 90 00 [12:05:19]wFMCommunicate OK [12:05:19]wFMCommunicate request_size=10 [12:05:19]MH_SAM_APDU [12:05:19]CAPDU: 80 0D 02 02 05 C3 48 DC AC B8 [12:05:19]Write to MH i2c: E2 0D 00 76 35 80 0D 02 02 05 00 C3 48 DC AC B8 00 00 7A [12:05:19]Write i2c OK [12:05:19]MH_I2C_Read... [12:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:19]Read from MH i2c: E2 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 03 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 03 00 76 35 00 90 00 1F [12:05:19]RAPDU: 90 00 [12:05:19]wFMCommunicate OK [12:05:19]wFMCommunicate request_size=4 [12:05:19]MH_SAM_APDU [12:05:19]CAPDU: 80 0D 03 02 [12:05:19]Write to MH i2c: E2 08 00 77 35 80 0D 03 02 00 00 00 00 27 [12:05:19]Write i2c OK [12:05:19]MH_I2C_Read... [12:05:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:19]Read from MH i2c: E2 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 0B 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 0B 00 77 35 00 A1 A9 DF BB C0 98 91 0A 90 00 FF [12:05:19]RAPDU: A1 A9 DF BB C0 98 91 0A 90 00 [12:05:19]wFMCommunicate OK [12:05:19]SAM_PROTO_SignData done [12:05:19]FM_MakeSignedData done [12:05:19]CreateOFDProtocolMessage [12:05:19]wFMCommunicate request_size=4 [12:05:19]MH_SAM_APDU [12:05:19]CAPDU: 80 11 00 00 [12:05:19]Write to MH i2c: E2 08 00 78 35 80 11 00 00 00 00 00 00 27 [12:05:19]Write i2c OK [12:05:19]MH_I2C_Read... [12:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:19]Read from MH i2c: E2 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 17 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: E2 17 00 78 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7A [12:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:05:19]wFMCommunicate OK [12:05:19]CreateOFDProtocolMessage done [12:05:19]OFDSenderStorePacket 192535 [12:05:19]StoreOFDPacket docnum=192535 [12:05:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 02 9C 07 01 A7 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 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 03 7E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 F0 02 00 35 04 06 00 BC C3 48 DC AC B8 A1 A9 DF BB C0 98 91 0A [12:05:19]CheckFolder [12:05:19]dirname=/storage/ofd_packets [12:05:19]CheckFolder done [12:05:19]ProducePacketName [12:05:19]name=ofd_packets/00192535 [12:05:19]NVStorageSaveData ofd_packets/00192535 [12:05:19]File name is /storage/ofd_packets/00192535 [12:05:19]Write 301 bytes [12:05:19]NVStorageSaveData done [12:05:19]OFDSenderStorePacket done [12:05:19]KKMCreateOFDPacket done [12:05:19]NVStorageSaveData kkm_last_timestamp [12:05:19]File name is /storage/kkm_last_timestamp [12:05:19]Write 4 bytes [12:05:19]NVStorageSaveData done [12:05:19]ExternCall_PrintAddStr [12:05:19]wPrintStart [12:05:19]Write to MH i2c: 01 00 00 79 35 AE [12:05:19]Write i2c OK [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: 01 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: 01 07 00 [12:05:19]MH_I2C_Read... [12:05:19]Read from MH i2c: 01 07 00 79 35 00 00 00 00 00 FF 0F C3 [12:05:19]RasterBufferAndPrint [12:05:19]line Счет N : (1)31855 [12:05:19]line ИНН: 02508201610067 [12:05:19]line Контрольно-Кассовый Чек [12:05:19]line ПРОДАЖА [12:05:19]line ТРК (МРК, ГНК) : 21 [12:05:19]line Товар: 2710124130 [12:05:19]line Аи-92-К-5 [12:05:19]line 19.440 * 66.90 [12:05:19]line = 1300.54 [12:05:19]line НДС 12% НСП 1% [12:05:19]line > о реализуемом товаре [12:05:19]line ОКРУГЛЕНИЕ: -0.54 [12:05:19]line ИТОГО: 1300.00 [12:05:19]line Внесено: 1300.00 [12:05:19]line СДАЧА: 0.00 [12:05:19]line НСП 1% : 11.51 [12:05:19]line НДС 12% : 138.11 [12:05:19]line Наличными: 1300.00 [12:05:19]line Безнал.: 0.00 [12:05:19]line Место: АЗС № 170 "Партнер Нефть" [12:05:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:05:19]line СНО: Общий режим [12:05:19]line Чек 83 28.10.2024 12:05 [12:05:19]line Смена: 543 ФФД: 1.0 [12:05:19]line ЗНМ: 0300000110 [12:05:19]line РНМ: 0000000000091776 [12:05:19]line Версия ККМ: 001 [12:05:19]line ФМ: 0000000000871754 [12:05:19]line ФД: 192535 [12:05:19]line ФПД: 207546927066296 [12:05:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120523&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192535&fm=207546927066296&tin=02508201610067®Number=0000000000091776&sum=130000 [12:05:19]written 0, free lines is 4095 [12:05:19]OFD Sender: Processing packet 192535 [packets to send 75, broken 74] [12:05:19]ProducePacketName [12:05:19]name=ofd_packets/00192535 [12:05:19]OFD Sender: To server: pG, [12:05:19]CommunicateWithHost lk.salyk.kg:30040 [12:05:20]ConnectInit lk.salyk.kg [12:05:20]Connected sock=10 [12:05:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 02 9C 07 01 A7 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 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 03 7E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 F0 02 00 35 04 06 00 BC C3 48 DC AC B8 A1 A9 DF BB C0 98 91 0A [12:05:20]Write to MH i2c: 01 00 00 A4 35 D9 [12:05:20]Write i2c OK [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: 01 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: 01 07 00 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: 01 07 00 A4 35 00 00 00 00 00 A8 0C 94 [12:05:20]RasterBufferAndPrint [12:05:20]line [12:05:20]line [12:05:20]line [12:05:20]line [12:05:20]line [12:05:20]written 0, free lines is 3245 [12:05:20]MH_Cut [12:05:20]Write to MH i2c: D1 01 00 AB 35 01 B2 [12:05:20]Write i2c OK [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: D1 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: D1 01 00 [12:05:20]MH_I2C_Read... [12:05:20]Read from MH i2c: D1 01 00 AB 35 00 B1 [12:05:20]Write to MH i2c: 01 00 00 AC 35 E1 [12:05:20]Write i2c OK [12:05:20]MH_I2C_Read... [12:05:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4F 00 47 00 01 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 F0 02 00 F4 03 04 00 C7 22 1F 67 B6 04 01 00 00 A1 08 99 37 4F E5 8E B4 [12:05:20]CommunicateWithHost err = 0 [12:05:20]CheckOFDResponse [12:05:20]1017 (14) - 77093643461234 [12:05:20]1041 (16) - 0000000000871754 [12:05:20]1040 (4) - 192535 [12:05:20]1012 (4) - 28.10.2024 05:36 [12:05:20]1206 (1) - 0 [12:05:20]OFD Sender: Remove packet 192535 [12:05:20]ProducePacketName [12:05:20]name=ofd_packets/00192535 [12:05:20]NVStorageDeleteData [12:05:21]OFD Sender: No OFD packet to send [12:05:21]*** Cut start [12:05:21]*** Partial cut [12:05:21]*** CUTSNS_PIN = 1 [12:05:21]*** CUTSNS_PIN = 0 [12:05:21]*** Brake cut motor [12:05:21]Read from MH i2c: 01 [12:05:21]MH_I2C_Read... [12:05:21]*** Stop cut motor [12:05:21]*** Cut end [12:05:21]Read from MH i2c: 01 07 00 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: 01 07 00 AC 35 00 00 00 00 00 FF 0F F6 [12:05:21]process_action close_receipt done [12:05:21]requested_data is exist [12:05:21]produce_requested_data [12:05:21]requested_item fm.sn is exist - process it [12:05:21]wFMCommunicate request_size=4 [12:05:21]MH_SAM_APDU [12:05:21]CAPDU: 80 11 00 00 [12:05:21]Write to MH i2c: E2 08 00 AD 35 80 11 00 00 00 00 00 00 5C [12:05:21]Write i2c OK [12:05:21]MH_I2C_Read... [12:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:21]Read from MH i2c: E2 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: E2 17 00 [12:05:21]MH_I2C_Read... [12:05:21]Read from MH i2c: E2 17 00 AD 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AF [12:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:05:21]wFMCommunicate OK [12:05:21]requested_item fd.num is exist - process it [12:05:21]SAM_PROTO_GetFieldsCounters [12:05:21]wFMCommunicate request_size=4 [12:05:21]MH_SAM_APDU [12:05:21]CAPDU: 80 13 00 00 [12:05:21]Write to MH i2c: E2 08 00 AE 35 80 13 00 00 00 00 00 00 5F [12:05:21]Write i2c OK [12:05:21]MH_I2C_Read... [12:05:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:22]Read from MH i2c: E2 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 62 00 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 62 00 AE 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 17 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [12:05:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 17 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:22]wFMCommunicate OK [12:05:22]SAM_PROTO_GetFieldsCounters done [12:05:22]requested_item shift.num is exist - process it [12:05:22]requested_item shift.opened is exist - process it [12:05:22]req_shift_opened [12:05:22]FM_GetShiftState [12:05:22]SAM_PROTO_GetShiftState [12:05:22]wFMCommunicate request_size=4 [12:05:22]MH_SAM_APDU [12:05:22]CAPDU: 80 13 01 00 [12:05:22]Write to MH i2c: E2 08 00 AF 35 80 13 01 00 00 00 00 00 61 [12:05:22]Write i2c OK [12:05:22]MH_I2C_Read... [12:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:22]Read from MH i2c: E2 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 0E 00 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 0E 00 AF 35 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B1 [12:05:22]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:05:22]wFMCommunicate OK [12:05:22]SAM_PROTO_GetShiftState done [12:05:22]FM_GetShiftState done [12:05:22]req_shift_opened done [12:05:22]requested_item shift.open_date is exist - process it [12:05:22]req_shift_open_date [12:05:22]req_shift_open_date done [12:05:22]produce_requested_data done [12:05:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192535,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:05:22]process_action_free close_receipt [12:05:22]json_value_free [12:05:22]json_value_free done [12:05:22]process_json_proto returns [12:05:22]Send response to host [12:05:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192535,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:05:22]free response buf [12:05:22]execute_script done [12:05:22]execute_script returns [12:05:22]free content buf [12:05:22]Sock 7.Close socket [12:05:22]Sock 7.Thread stoped [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:05:59]accept exits with 9 [12:05:59]New connection [12:05:59]New thread 3066563940 created [12:05:59]Thread 3066707300 joined [12:05:59]Waiting for new connection... [12:05:59] Sock 9.Parse request [12:05:59]Sock 9.Check first char [12:05:59]Sock 9.First char is OK [12:05:59]request: POST /json_proto HTTP/1.0 [12:05:59]Method: POST [12:05:59]URL: /json_proto [12:05:59]Method is POST - this is cgi request [12:05:59]url: /json_proto [12:05:59]query_string will be loaded in cgi processing [12:05:59]execute_cgi json_proto POST (null) [12:05:59]execute_cgi path=json_proto method=POST [12:05:59]POST find Content-Length [12:05:59]Host: 172.17.63.131:8080 [12:05:59]Content-Length: 681 [12:05:59]Content-Type: application/json [12:05:59] [12:05:59]POST finish read [12:05:59]Found Content-Length = 681 [12:05:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:59]execute_script... [12:05: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)31856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:59]POST & json_proto [12:05:59]process_json_proto [12:05:59]json parsed OK: [12:05:59]protocol is kg_v1.0 [12:05:59]action value=close_receipt [12:05:59]process_action close_receipt [12:05:59]cmd_close_receipt [12:05:59]MH_GetDate [12:05:59]Write to MH i2c: F0 00 00 B0 35 D4 [12:05:59]Write i2c OK [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: F0 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: F0 09 00 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: F0 09 00 B0 35 00 2C 7E 1F 67 22 05 6E 64 06 [12:05:59]GetLastDocTimeStamp 1730117123 [12:05:59]current date 1730117164 [12:05:59]FM_GetShiftState [12:05:59]SAM_PROTO_GetShiftState [12:05:59]wFMCommunicate request_size=4 [12:05:59]MH_SAM_APDU [12:05:59]CAPDU: 80 13 01 00 [12:05:59]Write to MH i2c: E2 08 00 B1 35 80 13 01 00 00 00 00 00 63 [12:05:59]Write i2c OK [12:05:59]MH_I2C_Read... [12:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:59]Read from MH i2c: E2 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: E2 0E 00 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: E2 0E 00 B1 35 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B3 [12:05:59]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:05:59]wFMCommunicate OK [12:05:59]SAM_PROTO_GetShiftState done [12:05:59]FM_GetShiftState done [12:05:59]opened in 1730075620 [12:05:59]opened+sec_in_day 1730162020 [12:05:59]quantity*price = 100015 [12:05:59]sum+1 = 100017 [12:05:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 84 28.10.2024 12:06 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192536 ФПД: 190620709202234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120604&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192536&fm=190620709202234&tin=02508201610067®Number=0000000000091776&sum=100000 [12:06:00]StoreToDocumentArchive [12:06:00]shift 543 fd 192536 [12:06:00]save to /storage/0543/doc_00192536 [12:06:00]save last doc name /storage/0543/doc_00192536 to /storage/kkm_last_doc_name [12:06:00]save OK [12:06:00]Clear old archive folders... [12:06:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:00]tlvbuf is 01A88940 [12:06:00]SAM_PROTO_ClearQueue [12:06:00]wFMCommunicate request_size=4 [12:06:00]MH_SAM_APDU [12:06:00]CAPDU: 80 09 00 00 [12:06:00]Write to MH i2c: E2 08 00 BE 35 80 09 00 00 00 00 00 00 65 [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 03 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 03 00 BE 35 00 90 00 67 [12:06:00]RAPDU: 90 00 [12:06:00]wFMCommunicate OK [12:06:00]SAM_PROTO_ClearQueue done [12:06:00]KKMCreateOFDPacket [12:06:00]OFDProtocolAddRootSTLVToBuf [12:06:00]FM_MakeSignedData [12:06:00]FM_MakeSignedData [12:06:00]SAM_PROTO_SignData [12:06:00]wFMCommunicate request_size=4 [12:06:00]MH_SAM_APDU [12:06:00]CAPDU: 80 0D 01 02 [12:06:00]Write to MH i2c: E2 08 00 BF 35 80 0D 01 02 00 00 00 00 6D [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 03 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 03 00 BF 35 00 90 00 68 [12:06:00]RAPDU: 90 00 [12:06:00]wFMCommunicate OK [12:06:00]wFMCommunicate request_size=255 [12:06:00]MH_SAM_APDU [12:06:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 2C 7E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 F0 02 00 35 04 06 00 AD [12:06:00]Write to MH i2c: E2 02 01 C0 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 2C 7E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 F0 02 00 35 04 06 00 AD 00 00 57 [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:01]Read from MH i2c: E2 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: E2 03 00 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: E2 03 00 C0 35 00 90 00 69 [12:06:01]RAPDU: 90 00 [12:06:01]wFMCommunicate OK [12:06:01]wFMCommunicate request_size=10 [12:06:01]MH_SAM_APDU [12:06:01]CAPDU: 80 0D 02 02 05 5E 57 A8 A9 3A [12:06:01]Write to MH i2c: E2 0D 00 C1 35 80 0D 02 02 05 00 5E 57 A8 A9 3A 00 00 BA [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:01]Read from MH i2c: E2 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: E2 03 00 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: E2 03 00 C1 35 00 90 00 6A [12:06:01]RAPDU: 90 00 [12:06:01]wFMCommunicate OK [12:06:01]wFMCommunicate request_size=4 [12:06:01]MH_SAM_APDU [12:06:01]CAPDU: 80 0D 03 02 [12:06:01]Write to MH i2c: E2 08 00 C2 35 80 0D 03 02 00 00 00 00 72 [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:01]OFD Sender: No OFD packet to send [12:06:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:01]Read from MH i2c: E2 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: E2 0B 00 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: E2 0B 00 C2 35 00 8F FF 2F 91 E8 1D DC 68 90 00 0A [12:06:01]RAPDU: 8F FF 2F 91 E8 1D DC 68 90 00 [12:06:01]wFMCommunicate OK [12:06:01]SAM_PROTO_SignData done [12:06:01]FM_MakeSignedData done [12:06:01]CreateOFDProtocolMessage [12:06:01]wFMCommunicate request_size=4 [12:06:01]MH_SAM_APDU [12:06:01]CAPDU: 80 11 00 00 [12:06:01]Write to MH i2c: E2 08 00 C3 35 80 11 00 00 00 00 00 00 72 [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:01]Read from MH i2c: E2 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: E2 17 00 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: E2 17 00 C3 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C5 [12:06:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:06:01]wFMCommunicate OK [12:06:01]CreateOFDProtocolMessage done [12:06:01]OFDSenderStorePacket 192536 [12:06:01]StoreOFDPacket docnum=192536 [12:06:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 59 F8 07 01 9E C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 2C 7E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 F0 02 00 35 04 06 00 AD 5E 57 A8 A9 3A 8F FF 2F 91 E8 1D DC 68 [12:06:01]CheckFolder [12:06:01]dirname=/storage/ofd_packets [12:06:01]CheckFolder done [12:06:01]ProducePacketName [12:06:01]name=ofd_packets/00192536 [12:06:01]NVStorageSaveData ofd_packets/00192536 [12:06:01]File name is /storage/ofd_packets/00192536 [12:06:01]Write 301 bytes [12:06:01]NVStorageSaveData done [12:06:01]OFDSenderStorePacket done [12:06:01]KKMCreateOFDPacket done [12:06:01]NVStorageSaveData kkm_last_timestamp [12:06:01]File name is /storage/kkm_last_timestamp [12:06:01]Write 4 bytes [12:06:01]NVStorageSaveData done [12:06:01]ExternCall_PrintAddStr [12:06:01]wPrintStart [12:06:01]Write to MH i2c: 01 00 00 C4 35 F9 [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: 01 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: 01 07 00 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: 01 07 00 C4 35 00 00 00 00 00 FF 0F 0E [12:06:01]RasterBufferAndPrint [12:06:01]line Счет N : (1)31856 [12:06:01]line ИНН: 02508201610067 [12:06:01]line Контрольно-Кассовый Чек [12:06:01]line ПРОДАЖА [12:06:01]line ТРК (МРК, ГНК) : 12 [12:06:01]line Товар: 2710124130 [12:06:01]line Аи-92-К-5 [12:06:01]line 14.950 * 66.90 [12:06:01]line = 1000.16 [12:06:01]line НДС 12% НСП 1% [12:06:01]line > о реализуемом товаре [12:06:01]line ОКРУГЛЕНИЕ: -0.16 [12:06:01]line ИТОГО: 1000.00 [12:06:01]line Внесено: 1000.00 [12:06:01]line СДАЧА: 0.00 [12:06:01]line НСП 1% : 8.85 [12:06:01]line НДС 12% : 106.21 [12:06:01]line Наличными: 1000.00 [12:06:01]line Безнал.: 0.00 [12:06:01]line Место: АЗС № 170 "Партнер Нефть" [12:06:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:06:01]line СНО: Общий режим [12:06:01]line Чек 84 28.10.2024 12:06 [12:06:01]line Смена: 543 ФФД: 1.0 [12:06:01]line ЗНМ: 0300000110 [12:06:01]line РНМ: 0000000000091776 [12:06:01]line Версия ККМ: 001 [12:06:01]line ФМ: 0000000000871754 [12:06:01]line ФД: 192536 [12:06:01]line ФПД: 190620709202234 [12:06:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120604&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192536&fm=190620709202234&tin=02508201610067®Number=0000000000091776&sum=100000 [12:06:01]OFD Sender: Processing packet 192536 [packets to send 75, broken 74] [12:06:01]ProducePacketName [12:06:01]name=ofd_packets/00192536 [12:06:01]OFD Sender: To server: pG, [12:06:01]CommunicateWithHost lk.salyk.kg:30040 [12:06:01]ConnectInit lk.salyk.kg [12:06:01]written 0, free lines is 4095 [12:06:01]Connected sock=10 [12:06:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 59 F8 07 01 9E C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 2C 7E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 F0 02 00 35 04 06 00 AD 5E 57 A8 A9 3A 8F FF 2F 91 E8 1D DC 68 [12:06:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5F EF 47 00 C2 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 F0 02 00 F4 03 04 00 F0 22 1F 67 B6 04 01 00 00 E6 F9 87 A5 D3 6D A4 D7 [12:06:01]CommunicateWithHost err = 0 [12:06:01]CheckOFDResponse [12:06:01]1017 (14) - 77093643461234 [12:06:01]1041 (16) - 0000000000871754 [12:06:01]1040 (4) - 192536 [12:06:01]1012 (4) - 28.10.2024 05:36 [12:06:01]1206 (1) - 0 [12:06:01]OFD Sender: Remove packet 192536 [12:06:01]ProducePacketName [12:06:01]name=ofd_packets/00192536 [12:06:01]NVStorageDeleteData [12:06:02]Write to MH i2c: 01 00 00 EF 35 24 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: 01 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: 01 07 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: 01 07 00 EF 35 00 00 00 00 00 A7 0C DE [12:06:02]RasterBufferAndPrint [12:06:02]line [12:06:02]line [12:06:02]line [12:06:02]line [12:06:02]line [12:06:02]written 0, free lines is 3245 [12:06:02]MH_Cut [12:06:02]Write to MH i2c: D1 01 00 F6 35 01 FD [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: D1 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: D1 01 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: D1 01 00 F6 35 00 FC [12:06:02]Write to MH i2c: 01 00 00 F7 35 2C [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]OFD Sender: No OFD packet to send [12:06:02]*** Cut start [12:06:02]*** Partial cut [12:06:02]*** CUTSNS_PIN = 1 [12:06:03]*** CUTSNS_PIN = 0 [12:06:03]*** Brake cut motor [12:06:03]Read from MH i2c: 01 [12:06:03]MH_I2C_Read... [12:06:03]*** Stop cut motor [12:06:03]*** Cut end [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 F7 35 00 00 00 00 00 FF 0F 41 [12:06:03]process_action close_receipt done [12:06:03]requested_data is exist [12:06:03]produce_requested_data [12:06:03]requested_item fm.sn is exist - process it [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 F8 35 80 11 00 00 00 00 00 00 A7 [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 F8 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FA [12:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:06:03]wFMCommunicate OK [12:06:03]requested_item fd.num is exist - process it [12:06:03]SAM_PROTO_GetFieldsCounters [12:06:03]wFMCommunicate request_size=4 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 13 00 00 [12:06:03]Write to MH i2c: E2 08 00 F9 35 80 13 00 00 00 00 00 00 AA [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 62 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 62 00 F9 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [12:06:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:03]wFMCommunicate OK [12:06:03]SAM_PROTO_GetFieldsCounters done [12:06:03]requested_item shift.num is exist - process it [12:06:03]requested_item shift.opened is exist - process it [12:06:03]req_shift_opened [12:06:03]FM_GetShiftState [12:06:03]SAM_PROTO_GetShiftState [12:06:03]wFMCommunicate request_size=4 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 13 01 00 [12:06:03]Write to MH i2c: E2 08 00 FA 35 80 13 01 00 00 00 00 00 AC [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 0E 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 0E 00 FA 35 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FC [12:06:03]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:06:03]wFMCommunicate OK [12:06:03]SAM_PROTO_GetShiftState done [12:06:03]FM_GetShiftState done [12:06:03]req_shift_opened done [12:06:03]requested_item shift.open_date is exist - process it [12:06:03]req_shift_open_date [12:06:03]req_shift_open_date done [12:06:03]produce_requested_data done [12:06:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192536,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:06:03]process_action_free close_receipt [12:06:03]json_value_free [12:06:03]json_value_free done [12:06:03]process_json_proto returns [12:06:03]Send response to host [12:06:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192536,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:06:03]free response buf [12:06:03]execute_script done [12:06:03]execute_script returns [12:06:03]free content buf [12:06:03]Sock 9.Close socket [12:06:03]Sock 9.Thread stoped [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:29]accept exits with 7 [12:06:29]New connection [12:06:29]New thread 3066707300 created [12:06:29]Thread 3066563940 joined [12:06:29]Waiting for new connection... [12:06:29] Sock 7.Parse request [12:06:29]Sock 7.Check first char [12:06:29]Sock 7.First char is OK [12:06:29]request: POST /json_proto HTTP/1.0 [12:06:29]Method: POST [12:06:29]URL: /json_proto [12:06:29]Method is POST - this is cgi request [12:06:29]url: /json_proto [12:06:29]query_string will be loaded in cgi processing [12:06:29]execute_cgi json_proto POST (null) [12:06:29]execute_cgi path=json_proto method=POST [12:06:29]POST find Content-Length [12:06:29]Host: 172.17.63.131:8080 [12:06:29]Content-Length: 676 [12:06:29]Content-Type: application/json [12:06:29] [12:06:29]POST finish read [12:06:29]Found Content-Length = 676 [12:06:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:29]execute_script... [12: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 : (1)31857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:29]POST & json_proto [12:06:29]process_json_proto [12:06:29]json parsed OK: [12:06:29]protocol is kg_v1.0 [12:06:29]action value=close_receipt [12:06:29]process_action close_receipt [12:06:29]cmd_close_receipt [12:06:29]MH_GetDate [12:06:29]Write to MH i2c: F0 00 00 FB 35 1F [12:06:29]Write i2c OK [12:06:29]MH_I2C_Read... [12:06:29]Read from MH i2c: F0 [12:06:29]MH_I2C_Read... [12:06:29]Read from MH i2c: F0 09 00 [12:06:29]MH_I2C_Read... [12:06:29]Read from MH i2c: F0 09 00 FB 35 00 4A 7E 1F 67 22 05 6E 64 6F [12:06:29]GetLastDocTimeStamp 1730117164 [12:06:29]current date 1730117194 [12:06:29]FM_GetShiftState [12:06:29]SAM_PROTO_GetShiftState [12:06:29]wFMCommunicate request_size=4 [12:06:29]MH_SAM_APDU [12:06:29]CAPDU: 80 13 01 00 [12:06:29]Write to MH i2c: E2 08 00 FC 35 80 13 01 00 00 00 00 00 AE [12:06:29]Write i2c OK [12:06:29]MH_I2C_Read... [12:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:29]Read from MH i2c: E2 [12:06:29]MH_I2C_Read... [12:06:29]Read from MH i2c: E2 0E 00 [12:06:29]MH_I2C_Read... [12:06:29]Read from MH i2c: E2 0E 00 FC 35 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FE [12:06:29]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:06:29]wFMCommunicate OK [12:06:29]SAM_PROTO_GetShiftState done [12:06:29]FM_GetShiftState done [12:06:29]opened in 1730075620 [12:06:29]opened+sec_in_day 1730162020 [12:06:29]quantity*price = 25020 [12:06:29]sum+1 = 25022 [12:06:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 85 28.10.2024 12:06 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192537 ФПД: 225406356441524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120634&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192537&fm=225406356441524&tin=02508201610067®Number=0000000000091776&sum=25000 [12:06:30]StoreToDocumentArchive [12:06:30]shift 543 fd 192537 [12:06:30]save to /storage/0543/doc_00192537 [12:06:30]save last doc name /storage/0543/doc_00192537 to /storage/kkm_last_doc_name [12:06:30]save OK [12:06:30]Clear old archive folders... [12:06:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:30]tlvbuf is 01991640 [12:06:30]SAM_PROTO_ClearQueue [12:06:30]wFMCommunicate request_size=4 [12:06:30]MH_SAM_APDU [12:06:30]CAPDU: 80 09 00 00 [12:06:30]Write to MH i2c: E2 08 00 09 36 80 09 00 00 00 00 00 00 B1 [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:30]Read from MH i2c: E2 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: E2 03 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: E2 03 00 09 36 00 90 00 B3 [12:06:30]RAPDU: 90 00 [12:06:30]wFMCommunicate OK [12:06:30]SAM_PROTO_ClearQueue done [12:06:30]KKMCreateOFDPacket [12:06:30]OFDProtocolAddRootSTLVToBuf [12:06:30]FM_MakeSignedData [12:06:30]FM_MakeSignedData [12:06:30]SAM_PROTO_SignData [12:06:30]wFMCommunicate request_size=4 [12:06:30]MH_SAM_APDU [12:06:30]CAPDU: 80 0D 01 02 [12:06:30]Write to MH i2c: E2 08 00 0A 36 80 0D 01 02 00 00 00 00 B9 [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:30]Read from MH i2c: E2 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: E2 03 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: E2 03 00 0A 36 00 90 00 B4 [12:06:30]RAPDU: 90 00 [12:06:30]wFMCommunicate OK [12:06:30]wFMCommunicate request_size=255 [12:06:30]MH_SAM_APDU [12:06: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 4A 7E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 F0 02 00 35 04 06 00 CD [12:06:30]Write to MH i2c: E2 02 01 0B 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 4A 7E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 F0 02 00 35 04 06 00 CD 00 00 C2 [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:30]Read from MH i2c: E2 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: E2 03 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: E2 03 00 0B 36 00 90 00 B5 [12:06:30]RAPDU: 90 00 [12:06:30]wFMCommunicate OK [12:06:30]wFMCommunicate request_size=10 [12:06:30]MH_SAM_APDU [12:06:30]CAPDU: 80 0D 02 02 05 01 81 CE 49 B4 [12:06:30]Write to MH i2c: E2 0D 00 0C 36 80 0D 02 02 05 00 01 81 CE 49 B4 00 00 13 [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:31]Read from MH i2c: E2 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 03 00 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 03 00 0C 36 00 90 00 B6 [12:06:31]RAPDU: 90 00 [12:06:31]wFMCommunicate OK [12:06:31]wFMCommunicate request_size=4 [12:06:31]MH_SAM_APDU [12:06:31]CAPDU: 80 0D 03 02 [12:06:31]Write to MH i2c: E2 08 00 0D 36 80 0D 03 02 00 00 00 00 BE [12:06:31]Write i2c OK [12:06:31]MH_I2C_Read... [12:06:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:31]Read from MH i2c: E2 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 0B 00 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 0B 00 0D 36 00 9B 6B 08 AB F7 B5 ED 30 90 00 41 [12:06:31]RAPDU: 9B 6B 08 AB F7 B5 ED 30 90 00 [12:06:31]wFMCommunicate OK [12:06:31]SAM_PROTO_SignData done [12:06:31]FM_MakeSignedData done [12:06:31]CreateOFDProtocolMessage [12:06:31]wFMCommunicate request_size=4 [12:06:31]MH_SAM_APDU [12:06:31]CAPDU: 80 11 00 00 [12:06:31]Write to MH i2c: E2 08 00 0E 36 80 11 00 00 00 00 00 00 BE [12:06:31]Write i2c OK [12:06:31]MH_I2C_Read... [12:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:31]Read from MH i2c: E2 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 17 00 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 17 00 0E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 11 [12:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:06:31]wFMCommunicate OK [12:06:31]CreateOFDProtocolMessage done [12:06:31]OFDSenderStorePacket 192537 [12:06:31]StoreOFDPacket docnum=192537 [12:06:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2B FB 07 01 5D 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 4A 7E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 F0 02 00 35 04 06 00 CD 01 81 CE 49 B4 9B 6B 08 AB F7 B5 ED 30 [12:06:31]CheckFolder [12:06:31]dirname=/storage/ofd_packets [12:06:31]CheckFolder done [12:06:31]ProducePacketName [12:06:31]name=ofd_packets/00192537 [12:06:31]NVStorageSaveData ofd_packets/00192537 [12:06:31]File name is /storage/ofd_packets/00192537 [12:06:31]Write 301 bytes [12:06:31]NVStorageSaveData done [12:06:31]OFDSenderStorePacket done [12:06:31]KKMCreateOFDPacket done [12:06:31]NVStorageSaveData kkm_last_timestamp [12:06:31]File name is /storage/kkm_last_timestamp [12:06:31]Write 4 bytes [12:06:31]NVStorageSaveData done [12:06:31]ExternCall_PrintAddStr [12:06:31]wPrintStart [12:06:31]Write to MH i2c: 01 00 00 0F 36 45 [12:06:31]Write i2c OK [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: 01 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: 01 07 00 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: 01 07 00 0F 36 00 00 00 00 00 FF 0F 5A [12:06:31]RasterBufferAndPrint [12:06:31]line Счет N : (1)31857 [12:06:31]line ИНН: 02508201610067 [12:06:31]line Контрольно-Кассовый Чек [12:06:31]line ПРОДАЖА [12:06:31]line ТРК (МРК, ГНК) : 12 [12:06:31]line Товар: 2710124130 [12:06:31]line Аи-92-К-5 [12:06:31]line 3.740 * 66.90 [12:06:31]line = 250.21 [12:06:31]line НДС 12% НСП 1% [12:06:31]line > о реализуемом товаре [12:06:31]line ОКРУГЛЕНИЕ: -0.21 [12:06:31]line ИТОГО: 250.00 [12:06:31]line Внесено: 250.00 [12:06:31]line СДАЧА: 0.00 [12:06:31]line НСП 1% : 2.21 [12:06:31]line НДС 12% : 26.57 [12:06:31]line Наличными: 250.00 [12:06:31]line Безнал.: 0.00 [12:06:31]line Место: АЗС № 170 "Партнер Нефть" [12:06:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:06:31]line СНО: Общий режим [12:06:31]line Чек 85 28.10.2024 12:06 [12:06:31]line Смена: 543 ФФД: 1.0 [12:06:31]line ЗНМ: 0300000110 [12:06:31]line РНМ: 0000000000091776 [12:06:31]line Версия ККМ: 001 [12:06:31]line ФМ: 0000000000871754 [12:06:31]line ФД: 192537 [12:06:31]line ФПД: 225406356441524 [12:06:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120634&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192537&fm=225406356441524&tin=02508201610067®Number=0000000000091776&sum=25000 [12:06:31]written 0, free lines is 4095 [12:06:31]OFD Sender: Processing packet 192537 [packets to send 75, broken 74] [12:06:31]ProducePacketName [12:06:31]name=ofd_packets/00192537 [12:06:31]OFD Sender: To server: pG, [12:06:31]CommunicateWithHost lk.salyk.kg:30040 [12:06:31]ConnectInit lk.salyk.kg [12:06:31]Connected sock=11 [12:06:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2B FB 07 01 5D 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 4A 7E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 F0 02 00 35 04 06 00 CD 01 81 CE 49 B4 9B 6B 08 AB F7 B5 ED 30 [12:06:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3A FB 47 00 BE 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 F0 02 00 F4 03 04 00 0E 23 1F 67 B6 04 01 00 00 9F 6B 5B 57 13 E9 20 89 [12:06:31]CommunicateWithHost err = 0 [12:06:31]CheckOFDResponse [12:06:31]1017 (14) - 77093643461234 [12:06:31]1041 (16) - 0000000000871754 [12:06:31]1040 (4) - 192537 [12:06:31]1012 (4) - 28.10.2024 05:37 [12:06:31]1206 (1) - 0 [12:06:31]OFD Sender: Remove packet 192537 [12:06:31]ProducePacketName [12:06:31]name=ofd_packets/00192537 [12:06:31]NVStorageDeleteData [12:06:31]Write to MH i2c: 01 00 00 3A 36 70 [12:06:31]Write i2c OK [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: 01 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: 01 07 00 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: 01 07 00 3A 36 00 00 00 00 00 B4 0C 37 [12:06:31]RasterBufferAndPrint [12:06:31]line [12:06:31]line [12:06:31]line [12:06:31]line [12:06:31]line [12:06:31]written 0, free lines is 3259 [12:06:31]MH_Cut [12:06:31]Write to MH i2c: D1 01 00 41 36 01 49 [12:06:31]Write i2c OK [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: D1 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: D1 01 00 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: D1 01 00 41 36 00 48 [12:06:31]Write to MH i2c: 01 00 00 42 36 78 [12:06:31]Write i2c OK [12:06:31]MH_I2C_Read... [12:06:31]OFD Sender: No OFD packet to send [12:06:32]*** Cut start [12:06:32]*** Partial cut [12:06:32]*** CUTSNS_PIN = 1 [12:06:32]*** CUTSNS_PIN = 0 [12:06:32]*** Brake cut motor [12:06:33]Read from MH i2c: 01 [12:06:33]MH_I2C_Read... [12:06:33]*** Stop cut motor [12:06:33]*** Cut end [12:06:33]Read from MH i2c: 01 07 00 [12:06:33]MH_I2C_Read... [12:06:33]Read from MH i2c: 01 07 00 42 36 00 00 00 00 00 FF 0F 8D [12:06:33]process_action close_receipt done [12:06:33]requested_data is exist [12:06:33]produce_requested_data [12:06:33]requested_item fm.sn is exist - process it [12:06:33]wFMCommunicate request_size=4 [12:06:33]MH_SAM_APDU [12:06:33]CAPDU: 80 11 00 00 [12:06:33]Write to MH i2c: E2 08 00 43 36 80 11 00 00 00 00 00 00 F3 [12:06:33]Write i2c OK [12:06:33]MH_I2C_Read... [12:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:33]Read from MH i2c: E2 [12:06:33]MH_I2C_Read... [12:06:33]Read from MH i2c: E2 17 00 [12:06:33]MH_I2C_Read... [12:06:33]Read from MH i2c: E2 17 00 43 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 46 [12:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:06:33]wFMCommunicate OK [12:06:33]requested_item fd.num is exist - process it [12:06:33]SAM_PROTO_GetFieldsCounters [12:06:33]wFMCommunicate request_size=4 [12:06:33]MH_SAM_APDU [12:06:33]CAPDU: 80 13 00 00 [12:06:33]Write to MH i2c: E2 08 00 44 36 80 13 00 00 00 00 00 00 F6 [12:06:33]Write i2c OK [12:06:33]MH_I2C_Read... [12:06:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:33]Read from MH i2c: E2 [12:06:33]MH_I2C_Read... [12:06:33]Read from MH i2c: E2 62 00 [12:06:33]MH_I2C_Read... [12:06:33]Read from MH i2c: E2 62 00 44 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 19 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [12:06:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 19 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:33]wFMCommunicate OK [12:06:33]SAM_PROTO_GetFieldsCounters done [12:06:33]requested_item shift.num is exist - process it [12:06:33]requested_item shift.opened is exist - process it [12:06:33]req_shift_opened [12:06:33]FM_GetShiftState [12:06:33]SAM_PROTO_GetShiftState [12:06:33]wFMCommunicate request_size=4 [12:06:33]MH_SAM_APDU [12:06:33]CAPDU: 80 13 01 00 [12:06:33]Write to MH i2c: E2 08 00 45 36 80 13 01 00 00 00 00 00 F8 [12:06:33]Write i2c OK [12:06:33]MH_I2C_Read... [12:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:33]Read from MH i2c: E2 [12:06:33]MH_I2C_Read... [12:06:33]Read from MH i2c: E2 0E 00 [12:06:33]MH_I2C_Read... [12:06:33]Read from MH i2c: E2 0E 00 45 36 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 48 [12:06:33]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:06:33]wFMCommunicate OK [12:06:33]SAM_PROTO_GetShiftState done [12:06:33]FM_GetShiftState done [12:06:33]req_shift_opened done [12:06:33]requested_item shift.open_date is exist - process it [12:06:33]req_shift_open_date [12:06:33]req_shift_open_date done [12:06:33]produce_requested_data done [12:06:33]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192537,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:06:33]process_action_free close_receipt [12:06:33]json_value_free [12:06:33]json_value_free done [12:06:33]process_json_proto returns [12:06:33]Send response to host [12:06:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192537,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:06:33]free response buf [12:06:33]execute_script done [12:06:33]execute_script returns [12:06:33]free content buf [12:06:33]Sock 7.Close socket [12:06:33]Sock 7.Thread stoped [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:09]accept exits with 9 [12:08:09]New connection [12:08:09]New thread 3066563940 created [12:08:09]Thread 3066707300 joined [12:08:09]Waiting for new connection... [12:08:09] Sock 9.Parse request [12:08:09]Sock 9.Check first char [12:08:09]Sock 9.First char is OK [12:08:09]request: POST /json_proto HTTP/1.0 [12:08:09]Method: POST [12:08:09]URL: /json_proto [12:08:09]Method is POST - this is cgi request [12:08:09]url: /json_proto [12:08:09]query_string will be loaded in cgi processing [12:08:09]execute_cgi json_proto POST (null) [12:08:09]execute_cgi path=json_proto method=POST [12:08:09]POST find Content-Length [12:08:09]Host: 172.17.63.131:8080 [12:08:09]Content-Length: 673 [12:08:09]Content-Type: application/json [12:08:09] [12:08:09]POST finish read [12:08:09]Found Content-Length = 673 [12:08:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:09]execute_script... [12:08: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)31858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:09]POST & json_proto [12:08:09]process_json_proto [12:08:09]json parsed OK: [12:08:09]protocol is kg_v1.0 [12:08:09]action value=close_receipt [12:08:09]process_action close_receipt [12:08:09]cmd_close_receipt [12:08:09]MH_GetDate [12:08:09]Write to MH i2c: F0 00 00 46 36 6B [12:08:09]Write i2c OK [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: F0 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: F0 09 00 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: F0 09 00 46 36 00 AE 7E 1F 67 22 05 6E 64 1F [12:08:09]GetLastDocTimeStamp 1730117194 [12:08:09]current date 1730117294 [12:08:09]FM_GetShiftState [12:08:09]SAM_PROTO_GetShiftState [12:08:09]wFMCommunicate request_size=4 [12:08:09]MH_SAM_APDU [12:08:09]CAPDU: 80 13 01 00 [12:08:09]Write to MH i2c: E2 08 00 47 36 80 13 01 00 00 00 00 00 FA [12:08:09]Write i2c OK [12:08:09]MH_I2C_Read... [12:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:09]Read from MH i2c: E2 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: E2 0E 00 [12:08:09]MH_I2C_Read... [12:08:09]Read from MH i2c: E2 0E 00 47 36 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 4A [12:08:09]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:08:09]wFMCommunicate OK [12:08:09]SAM_PROTO_GetShiftState done [12:08:09]FM_GetShiftState done [12:08:09]opened in 1730075620 [12:08:09]opened+sec_in_day 1730162020 [12:08:09]quantity*price = 50063 [12:08:09]sum+1 = 50064 [12:08:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 86 28.10.2024 12:08 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192538 ФПД: 116223826074790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120814&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192538&fm=116223826074790&tin=02508201610067®Number=0000000000091776&sum=50000 [12:08:10]StoreToDocumentArchive [12:08:10]shift 543 fd 192538 [12:08:10]save to /storage/0543/doc_00192538 [12:08:10]save last doc name /storage/0543/doc_00192538 to /storage/kkm_last_doc_name [12:08:10]save OK [12:08:10]Clear old archive folders... [12:08:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:08:10]tlvbuf is 01A39750 [12:08:10]SAM_PROTO_ClearQueue [12:08:10]wFMCommunicate request_size=4 [12:08:10]MH_SAM_APDU [12:08:10]CAPDU: 80 09 00 00 [12:08:10]Write to MH i2c: E2 08 00 54 36 80 09 00 00 00 00 00 00 FC [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:10]Read from MH i2c: E2 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 03 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 03 00 54 36 00 90 00 FE [12:08:10]RAPDU: 90 00 [12:08:10]wFMCommunicate OK [12:08:10]SAM_PROTO_ClearQueue done [12:08:10]KKMCreateOFDPacket [12:08:10]OFDProtocolAddRootSTLVToBuf [12:08:10]FM_MakeSignedData [12:08:10]FM_MakeSignedData [12:08:10]SAM_PROTO_SignData [12:08:10]wFMCommunicate request_size=4 [12:08:10]MH_SAM_APDU [12:08:10]CAPDU: 80 0D 01 02 [12:08:10]Write to MH i2c: E2 08 00 55 36 80 0D 01 02 00 00 00 00 04 [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:10]Read from MH i2c: E2 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 03 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 03 00 55 36 00 90 00 FF [12:08:10]RAPDU: 90 00 [12:08:10]wFMCommunicate OK [12:08:10]wFMCommunicate request_size=255 [12:08:10]MH_SAM_APDU [12:08:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 AE 7E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A F0 02 00 35 04 06 00 69 B4 77 DE [12:08:10]Write to MH i2c: E2 02 01 56 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 AE 7E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A F0 02 00 35 04 06 00 69 B4 77 DE 00 00 BD [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:10]Read from MH i2c: E2 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 03 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 03 00 56 36 00 90 00 00 [12:08:10]RAPDU: 90 00 [12:08:10]wFMCommunicate OK [12:08:10]wFMCommunicate request_size=7 [12:08:10]MH_SAM_APDU [12:08:10]CAPDU: 80 0D 02 02 02 1C A6 [12:08:10]Write to MH i2c: E2 0A 00 57 36 80 0D 02 02 02 00 1C A6 00 00 CD [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:10]Read from MH i2c: E2 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 03 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 03 00 57 36 00 90 00 01 [12:08:10]RAPDU: 90 00 [12:08:10]wFMCommunicate OK [12:08:10]wFMCommunicate request_size=4 [12:08:10]MH_SAM_APDU [12:08:10]CAPDU: 80 0D 03 02 [12:08:10]Write to MH i2c: E2 08 00 58 36 80 0D 03 02 00 00 00 00 09 [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:10]Read from MH i2c: E2 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 0B 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 0B 00 58 36 00 4B 81 F2 61 FD 13 49 06 90 00 88 [12:08:10]RAPDU: 4B 81 F2 61 FD 13 49 06 90 00 [12:08:10]wFMCommunicate OK [12:08:10]SAM_PROTO_SignData done [12:08:10]FM_MakeSignedData done [12:08:10]CreateOFDProtocolMessage [12:08:10]wFMCommunicate request_size=4 [12:08:10]MH_SAM_APDU [12:08:10]CAPDU: 80 11 00 00 [12:08:10]Write to MH i2c: E2 08 00 59 36 80 11 00 00 00 00 00 00 09 [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:10]Read from MH i2c: E2 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 17 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 17 00 59 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [12:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:08:10]wFMCommunicate OK [12:08:10]CreateOFDProtocolMessage done [12:08:10]OFDSenderStorePacket 192538 [12:08:10]StoreOFDPacket docnum=192538 [12:08:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F4 F3 04 01 30 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 AE 7E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A F0 02 00 35 04 06 00 69 B4 77 DE 1C A6 4B 81 F2 61 FD 13 49 06 [12:08:10]CheckFolder [12:08:10]dirname=/storage/ofd_packets [12:08:10]CheckFolder done [12:08:10]ProducePacketName [12:08:10]name=ofd_packets/00192538 [12:08:10]NVStorageSaveData ofd_packets/00192538 [12:08:10]File name is /storage/ofd_packets/00192538 [12:08:10]Write 298 bytes [12:08:10]NVStorageSaveData done [12:08:10]OFDSenderStorePacket done [12:08:10]KKMCreateOFDPacket done [12:08:10]NVStorageSaveData kkm_last_timestamp [12:08:10]File name is /storage/kkm_last_timestamp [12:08:10]Write 4 bytes [12:08:10]NVStorageSaveData done [12:08:10]ExternCall_PrintAddStr [12:08:10]wPrintStart [12:08:10]Write to MH i2c: 01 00 00 5A 36 90 [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: 01 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: 01 07 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: 01 07 00 5A 36 00 00 00 00 00 FF 0F A5 [12:08:10]RasterBufferAndPrint [12:08:10]line Счет N : (1)31858 [12:08:10]line ИНН: 02508201610067 [12:08:10]line Контрольно-Кассовый Чек [12:08:10]line ПРОДАЖА [12:08:10]line ТРК (МРК, ГНК) : 11 [12:08:10]line Товар: 2710194210 [12:08:10]line ДТ-К-5 [12:08:10]line 6.570 * 76.20 [12:08:10]line = 500.63 [12:08:10]line НДС 12% НСП 1% [12:08:10]line > о реализуемом товаре [12:08:10]line ОКРУГЛЕНИЕ: -0.63 [12:08:10]line ИТОГО: 500.00 [12:08:10]line Внесено: 500.00 [12:08:10]line СДАЧА: 0.00 [12:08:10]line НСП 1% : 4.43 [12:08:10]line НДС 12% : 53.16 [12:08:10]line Наличными: 500.00 [12:08:10]line Безнал.: 0.00 [12:08:10]line Место: АЗС № 170 "Партнер Нефть" [12:08:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:08:10]line СНО: Общий режим [12:08:10]line Чек 86 28.10.2024 12:08 [12:08:10]line Смена: 543 ФФД: 1.0 [12:08:10]line ЗНМ: 0300000110 [12:08:10]line РНМ: 0000000000091776 [12:08:10]line Версия ККМ: 001 [12:08:10]line ФМ: 0000000000871754 [12:08:10]line ФД: 192538 [12:08:10]line ФПД: 116223826074790 [12:08:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120814&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192538&fm=116223826074790&tin=02508201610067®Number=0000000000091776&sum=50000 [12:08:11]OFD Sender: Processing packet 192538 [packets to send 75, broken 74] [12:08:11]ProducePacketName [12:08:11]name=ofd_packets/00192538 [12:08:11]OFD Sender: To server: pG, [12:08:11]CommunicateWithHost lk.salyk.kg:30040 [12:08:11]ConnectInit lk.salyk.kg [12:08:11]written 0, free lines is 4095 [12:08:11]Connected sock=10 [12:08:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F4 F3 04 01 30 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 AE 7E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A F0 02 00 35 04 06 00 69 B4 77 DE 1C A6 4B 81 F2 61 FD 13 49 06 [12:08:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D0 B4 47 00 E9 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A F0 02 00 F4 03 04 00 72 23 1F 67 B6 04 01 00 00 13 AD C6 6B 0D 28 22 E7 [12:08:11]CommunicateWithHost err = 0 [12:08:11]CheckOFDResponse [12:08:11]1017 (14) - 77093643461234 [12:08:11]1041 (16) - 0000000000871754 [12:08:11]1040 (4) - 192538 [12:08:11]1012 (4) - 28.10.2024 05:38 [12:08:11]1206 (1) - 0 [12:08:11]OFD Sender: Remove packet 192538 [12:08:11]ProducePacketName [12:08:11]name=ofd_packets/00192538 [12:08:11]NVStorageDeleteData [12:08:11]Write to MH i2c: 01 00 00 85 36 BB [12:08:11]Write i2c OK [12:08:11]MH_I2C_Read... [12:08:11]Read from MH i2c: 01 [12:08:11]MH_I2C_Read... [12:08:11]Read from MH i2c: 01 07 00 [12:08:11]MH_I2C_Read... [12:08:11]Read from MH i2c: 01 07 00 85 36 00 00 00 00 00 A5 0C 73 [12:08:11]RasterBufferAndPrint [12:08:11]line [12:08:11]line [12:08:11]line [12:08:11]line [12:08:11]line [12:08:11]written 0, free lines is 3242 [12:08:11]MH_Cut [12:08:11]Write to MH i2c: D1 01 00 8C 36 01 94 [12:08:11]Write i2c OK [12:08:11]MH_I2C_Read... [12:08:11]Read from MH i2c: D1 [12:08:11]MH_I2C_Read... [12:08:11]Read from MH i2c: D1 01 00 [12:08:11]MH_I2C_Read... [12:08:11]Read from MH i2c: D1 01 00 8C 36 00 93 [12:08:11]Write to MH i2c: 01 00 00 8D 36 C3 [12:08:11]Write i2c OK [12:08:11]MH_I2C_Read... [12:08:12]OFD Sender: No OFD packet to send [12:08:12]*** Cut start [12:08:12]*** Partial cut [12:08:12]*** CUTSNS_PIN = 1 [12:08:12]*** CUTSNS_PIN = 0 [12:08:12]*** Brake cut motor [12:08:13]Read from MH i2c: 01 [12:08:13]MH_I2C_Read... [12:08:13]*** Stop cut motor [12:08:13]*** Cut end [12:08:13]Read from MH i2c: 01 07 00 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: 01 07 00 8D 36 00 00 00 00 00 FF 0F D8 [12:08:13]process_action close_receipt done [12:08:13]requested_data is exist [12:08:13]produce_requested_data [12:08:13]requested_item fm.sn is exist - process it [12:08:13]wFMCommunicate request_size=4 [12:08:13]MH_SAM_APDU [12:08:13]CAPDU: 80 11 00 00 [12:08:13]Write to MH i2c: E2 08 00 8E 36 80 11 00 00 00 00 00 00 3E [12:08:13]Write i2c OK [12:08:13]MH_I2C_Read... [12:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:13]Read from MH i2c: E2 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: E2 17 00 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: E2 17 00 8E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 91 [12:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:08:13]wFMCommunicate OK [12:08:13]requested_item fd.num is exist - process it [12:08:13]SAM_PROTO_GetFieldsCounters [12:08:13]wFMCommunicate request_size=4 [12:08:13]MH_SAM_APDU [12:08:13]CAPDU: 80 13 00 00 [12:08:13]Write to MH i2c: E2 08 00 8F 36 80 13 00 00 00 00 00 00 41 [12:08:13]Write i2c OK [12:08:13]MH_I2C_Read... [12:08:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:13]Read from MH i2c: E2 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: E2 62 00 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: E2 62 00 8F 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [12:08:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:13]wFMCommunicate OK [12:08:13]SAM_PROTO_GetFieldsCounters done [12:08:13]requested_item shift.num is exist - process it [12:08:13]requested_item shift.opened is exist - process it [12:08:13]req_shift_opened [12:08:13]FM_GetShiftState [12:08:13]SAM_PROTO_GetShiftState [12:08:13]wFMCommunicate request_size=4 [12:08:13]MH_SAM_APDU [12:08:13]CAPDU: 80 13 01 00 [12:08:13]Write to MH i2c: E2 08 00 90 36 80 13 01 00 00 00 00 00 43 [12:08:13]Write i2c OK [12:08:13]MH_I2C_Read... [12:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:13]Read from MH i2c: E2 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: E2 0E 00 [12:08:13]MH_I2C_Read... [12:08:13]Read from MH i2c: E2 0E 00 90 36 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 93 [12:08:13]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:08:13]wFMCommunicate OK [12:08:13]SAM_PROTO_GetShiftState done [12:08:13]FM_GetShiftState done [12:08:13]req_shift_opened done [12:08:13]requested_item shift.open_date is exist - process it [12:08:13]req_shift_open_date [12:08:13]req_shift_open_date done [12:08:13]produce_requested_data done [12:08:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192538,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:08:13]process_action_free close_receipt [12:08:13]json_value_free [12:08:13]json_value_free done [12:08:13]process_json_proto returns [12:08:13]Send response to host [12:08:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192538,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:08:13]free response buf [12:08:13]execute_script done [12:08:13]execute_script returns [12:08:13]free content buf [12:08:13]Sock 9.Close socket [12:08:13]Sock 9.Thread stoped [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:50]accept exits with 7 [12:14:50]New connection [12:14:50]New thread 3066707300 created [12:14:50]Thread 3066563940 joined [12:14:50]Waiting for new connection... [12:14:50] Sock 7.Parse request [12:14:50]Sock 7.Check first char [12:14:50]Sock 7.First char is OK [12:14:50]request: POST /json_proto HTTP/1.0 [12:14:50]Method: POST [12:14:50]URL: /json_proto [12:14:50]Method is POST - this is cgi request [12:14:50]url: /json_proto [12:14:50]query_string will be loaded in cgi processing [12:14:50]execute_cgi json_proto POST (null) [12:14:50]execute_cgi path=json_proto method=POST [12:14:50]POST find Content-Length [12:14:50]Host: 172.17.63.131:8080 [12:14:50]Content-Length: 676 [12:14:50]Content-Type: application/json [12:14:50] [12:14:50]POST finish read [12:14:50]Found Content-Length = 676 [12:14:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:50]execute_script... [12:14:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:50]POST & json_proto [12:14:50]process_json_proto [12:14:50]json parsed OK: [12:14:50]protocol is kg_v1.0 [12:14:50]action value=close_receipt [12:14:50]process_action close_receipt [12:14:50]cmd_close_receipt [12:14:50]MH_GetDate [12:14:50]Write to MH i2c: F0 00 00 91 36 B6 [12:14:50]Write i2c OK [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: F0 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: F0 09 00 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: F0 09 00 91 36 00 3F 80 1F 67 22 05 6E 64 FD [12:14:50]GetLastDocTimeStamp 1730117294 [12:14:50]current date 1730117695 [12:14:50]FM_GetShiftState [12:14:50]SAM_PROTO_GetShiftState [12:14:50]wFMCommunicate request_size=4 [12:14:50]MH_SAM_APDU [12:14:50]CAPDU: 80 13 01 00 [12:14:50]Write to MH i2c: E2 08 00 92 36 80 13 01 00 00 00 00 00 45 [12:14:50]Write i2c OK [12:14:50]MH_I2C_Read... [12:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:50]Read from MH i2c: E2 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: E2 0E 00 [12:14:50]MH_I2C_Read... [12:14:50]Read from MH i2c: E2 0E 00 92 36 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 95 [12:14:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:14:50]wFMCommunicate OK [12:14:50]SAM_PROTO_GetShiftState done [12:14:50]FM_GetShiftState done [12:14:50]opened in 1730075620 [12:14:50]opened+sec_in_day 1730162020 [12:14:50]quantity*price = 20003 [12:14:50]sum+1 = 20004 [12:14:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 87 28.10.2024 12:14 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192539 ФПД: 191428606707134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121456&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192539&fm=191428606707134&tin=02508201610067®Number=0000000000091776&sum=20000 [12:14:52]StoreToDocumentArchive [12:14:52]shift 543 fd 192539 [12:14:52]save to /storage/0543/doc_00192539 [12:14:52]save last doc name /storage/0543/doc_00192539 to /storage/kkm_last_doc_name [12:14:52]save OK [12:14:52]Clear old archive folders... [12:14:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:52]tlvbuf is 019C1430 [12:14:52]SAM_PROTO_ClearQueue [12:14:52]wFMCommunicate request_size=4 [12:14:52]MH_SAM_APDU [12:14:52]CAPDU: 80 09 00 00 [12:14:52]Write to MH i2c: E2 08 00 9F 36 80 09 00 00 00 00 00 00 47 [12:14:52]Write i2c OK [12:14:52]MH_I2C_Read... [12:14:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:52]Read from MH i2c: E2 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 03 00 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 03 00 9F 36 00 90 00 49 [12:14:52]RAPDU: 90 00 [12:14:52]wFMCommunicate OK [12:14:52]SAM_PROTO_ClearQueue done [12:14:52]KKMCreateOFDPacket [12:14:52]OFDProtocolAddRootSTLVToBuf [12:14:52]FM_MakeSignedData [12:14:52]FM_MakeSignedData [12:14:52]SAM_PROTO_SignData [12:14:52]wFMCommunicate request_size=4 [12:14:52]MH_SAM_APDU [12:14:52]CAPDU: 80 0D 01 02 [12:14:52]Write to MH i2c: E2 08 00 A0 36 80 0D 01 02 00 00 00 00 4F [12:14:52]Write i2c OK [12:14:52]MH_I2C_Read... [12:14:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:52]Read from MH i2c: E2 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 03 00 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 03 00 A0 36 00 90 00 4A [12:14:52]RAPDU: 90 00 [12:14:52]wFMCommunicate OK [12:14:52]wFMCommunicate request_size=255 [12:14:52]MH_SAM_APDU [12:14:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 40 80 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B F0 02 00 35 04 06 00 AE [12:14:52]Write to MH i2c: E2 02 01 A1 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 40 80 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B F0 02 00 35 04 06 00 AE 00 00 1E [12:14:52]Write i2c OK [12:14:52]MH_I2C_Read... [12:14:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:52]Read from MH i2c: E2 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 03 00 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 03 00 A1 36 00 90 00 4B [12:14:52]RAPDU: 90 00 [12:14:52]wFMCommunicate OK [12:14:52]wFMCommunicate request_size=10 [12:14:52]MH_SAM_APDU [12:14:52]CAPDU: 80 0D 02 02 05 1A 72 1A 45 BE [12:14:52]Write to MH i2c: E2 0D 00 A2 36 80 0D 02 02 05 00 1A 72 1A 45 BE 00 00 05 [12:14:52]Write i2c OK [12:14:52]MH_I2C_Read... [12:14:52]OFD Sender: No OFD packet to send [12:14:52]Read from MH i2c: E2 [12:14:52]MH_I2C_Read... [12:14:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:52]Read from MH i2c: E2 03 00 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 03 00 A2 36 00 90 00 4C [12:14:52]RAPDU: 90 00 [12:14:52]wFMCommunicate OK [12:14:52]wFMCommunicate request_size=4 [12:14:52]MH_SAM_APDU [12:14:52]CAPDU: 80 0D 03 02 [12:14:52]Write to MH i2c: E2 08 00 A3 36 80 0D 03 02 00 00 00 00 54 [12:14:52]Write i2c OK [12:14:52]MH_I2C_Read... [12:14:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:52]Read from MH i2c: E2 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 0B 00 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 0B 00 A3 36 00 8F 21 9D 98 C3 11 E1 77 90 00 66 [12:14:52]RAPDU: 8F 21 9D 98 C3 11 E1 77 90 00 [12:14:52]wFMCommunicate OK [12:14:52]SAM_PROTO_SignData done [12:14:52]FM_MakeSignedData done [12:14:52]CreateOFDProtocolMessage [12:14:52]wFMCommunicate request_size=4 [12:14:52]MH_SAM_APDU [12:14:52]CAPDU: 80 11 00 00 [12:14:52]Write to MH i2c: E2 08 00 A4 36 80 11 00 00 00 00 00 00 54 [12:14:52]Write i2c OK [12:14:52]MH_I2C_Read... [12:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:52]Read from MH i2c: E2 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 17 00 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: E2 17 00 A4 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A7 [12:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:14:52]wFMCommunicate OK [12:14:52]CreateOFDProtocolMessage done [12:14:52]OFDSenderStorePacket 192539 [12:14:52]StoreOFDPacket docnum=192539 [12:14:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1A E1 07 01 17 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 40 80 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B F0 02 00 35 04 06 00 AE 1A 72 1A 45 BE 8F 21 9D 98 C3 11 E1 77 [12:14:52]CheckFolder [12:14:52]dirname=/storage/ofd_packets [12:14:52]CheckFolder done [12:14:52]ProducePacketName [12:14:52]name=ofd_packets/00192539 [12:14:52]NVStorageSaveData ofd_packets/00192539 [12:14:52]File name is /storage/ofd_packets/00192539 [12:14:52]Write 301 bytes [12:14:52]NVStorageSaveData done [12:14:52]OFDSenderStorePacket done [12:14:52]KKMCreateOFDPacket done [12:14:52]NVStorageSaveData kkm_last_timestamp [12:14:52]File name is /storage/kkm_last_timestamp [12:14:52]Write 4 bytes [12:14:52]NVStorageSaveData done [12:14:52]ExternCall_PrintAddStr [12:14:52]wPrintStart [12:14:52]Write to MH i2c: 01 00 00 A5 36 DB [12:14:52]Write i2c OK [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: 01 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: 01 07 00 [12:14:52]MH_I2C_Read... [12:14:52]Read from MH i2c: 01 07 00 A5 36 00 00 00 00 00 FF 0F F0 [12:14:52]RasterBufferAndPrint [12:14:52]line Счет N : (1)31859 [12:14:52]line ИНН: 02508201610067 [12:14:52]line Контрольно-Кассовый Чек [12:14:52]line ПРОДАЖА [12:14:52]line ТРК (МРК, ГНК) : 21 [12:14:52]line Товар: 2710124130 [12:14:52]line Аи-92-К-5 [12:14:52]line 2.990 * 66.90 [12:14:52]line = 200.03 [12:14:52]line НДС 12% НСП 1% [12:14:52]line > о реализуемом товаре [12:14:52]line ОКРУГЛЕНИЕ: -0.03 [12:14:52]line ИТОГО: 200.00 [12:14:52]line Внесено: 200.00 [12:14:52]line СДАЧА: 0.00 [12:14:52]line НСП 1% : 1.77 [12:14:52]line НДС 12% : 21.24 [12:14:52]line Наличными: 200.00 [12:14:52]line Безнал.: 0.00 [12:14:52]line Место: АЗС № 170 "Партнер Нефть" [12:14:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:14:52]line СНО: Общий режим [12:14:52]line Чек 87 28.10.2024 12:14 [12:14:52]line Смена: 543 ФФД: 1.0 [12:14:52]line ЗНМ: 0300000110 [12:14:52]line РНМ: 0000000000091776 [12:14:52]line Версия ККМ: 001 [12:14:52]line ФМ: 0000000000871754 [12:14:52]line ФД: 192539 [12:14:52]line ФПД: 191428606707134 [12:14:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121456&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192539&fm=191428606707134&tin=02508201610067®Number=0000000000091776&sum=20000 [12:14:52]written 0, free lines is 4095 [12:14:52]OFD Sender: Processing packet 192539 [packets to send 75, broken 74] [12:14:52]ProducePacketName [12:14:52]name=ofd_packets/00192539 [12:14:52]OFD Sender: To server: pG, [12:14:52]CommunicateWithHost lk.salyk.kg:30040 [12:14:52]ConnectInit lk.salyk.kg [12:14:52]Connected sock=10 [12: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 31 37 35 34 0F 01 00 00 1A E1 07 01 17 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 40 80 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B F0 02 00 35 04 06 00 AE 1A 72 1A 45 BE 8F 21 9D 98 C3 11 E1 77 [12:14:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 01 EB 47 00 1B 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 31 37 35 34 10 04 04 00 1B F0 02 00 F4 03 04 00 03 25 1F 67 B6 04 01 00 00 8C D8 67 3E 34 D8 52 91 [12:14:52]CommunicateWithHost err = 0 [12:14:52]CheckOFDResponse [12:14:52]1017 (14) - 77093643461234 [12:14:52]1041 (16) - 0000000000871754 [12:14:52]1040 (4) - 192539 [12:14:52]1012 (4) - 28.10.2024 05:45 [12:14:52]1206 (1) - 0 [12:14:52]OFD Sender: Remove packet 192539 [12:14:52]ProducePacketName [12:14:52]name=ofd_packets/00192539 [12:14:52]NVStorageDeleteData [12:14:53]Write to MH i2c: 01 00 00 D0 36 06 [12:14:53]Write i2c OK [12:14:53]MH_I2C_Read... [12:14:53]Read from MH i2c: 01 [12:14:53]MH_I2C_Read... [12:14:53]Read from MH i2c: 01 07 00 [12:14:53]MH_I2C_Read... [12:14:53]Read from MH i2c: 01 07 00 D0 36 00 00 00 00 00 B2 0C CB [12:14:53]RasterBufferAndPrint [12:14:53]line [12:14:53]line [12:14:53]line [12:14:53]line [12:14:53]line [12:14:53]written 0, free lines is 3257 [12:14:53]MH_Cut [12:14:53]Write to MH i2c: D1 01 00 D7 36 01 DF [12:14:53]Write i2c OK [12:14:53]MH_I2C_Read... [12:14:53]Read from MH i2c: D1 [12:14:53]MH_I2C_Read... [12:14:53]Read from MH i2c: D1 01 00 [12:14:53]MH_I2C_Read... [12:14:53]Read from MH i2c: D1 01 00 D7 36 00 DE [12:14:53]Write to MH i2c: 01 00 00 D8 36 0E [12:14:53]Write i2c OK [12:14:53]MH_I2C_Read... [12:14:53]OFD Sender: No OFD packet to send [12:14:53]*** Cut start [12:14:53]*** Partial cut [12:14:53]*** CUTSNS_PIN = 1 [12:14:53]*** CUTSNS_PIN = 0 [12:14:54]*** Brake cut motor [12:14:54]Read from MH i2c: 01 [12:14:54]MH_I2C_Read... [12:14:54]*** Stop cut motor [12:14:54]*** Cut end [12:14:54]Read from MH i2c: 01 07 00 [12:14:54]MH_I2C_Read... [12:14:54]Read from MH i2c: 01 07 00 D8 36 00 00 00 00 00 FF 0F 23 [12:14:54]process_action close_receipt done [12:14:54]requested_data is exist [12:14:54]produce_requested_data [12:14:54]requested_item fm.sn is exist - process it [12:14:54]wFMCommunicate request_size=4 [12:14:54]MH_SAM_APDU [12:14:54]CAPDU: 80 11 00 00 [12:14:54]Write to MH i2c: E2 08 00 D9 36 80 11 00 00 00 00 00 00 89 [12:14:54]Write i2c OK [12:14:54]MH_I2C_Read... [12:14:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:54]Read from MH i2c: E2 [12:14:54]MH_I2C_Read... [12:14:54]Read from MH i2c: E2 17 00 [12:14:54]MH_I2C_Read... [12:14:54]Read from MH i2c: E2 17 00 D9 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DC [12:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:14:54]wFMCommunicate OK [12:14:54]requested_item fd.num is exist - process it [12:14:54]SAM_PROTO_GetFieldsCounters [12:14:54]wFMCommunicate request_size=4 [12:14:54]MH_SAM_APDU [12:14:54]CAPDU: 80 13 00 00 [12:14:54]Write to MH i2c: E2 08 00 DA 36 80 13 00 00 00 00 00 00 8C [12:14:54]Write i2c OK [12:14:54]MH_I2C_Read... [12:14:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:54]Read from MH i2c: E2 [12:14:54]MH_I2C_Read... [12:14:54]Read from MH i2c: E2 62 00 [12:14:54]MH_I2C_Read... [12:14:54]Read from MH i2c: E2 62 00 DA 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [12:14:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:54]wFMCommunicate OK [12:14:54]SAM_PROTO_GetFieldsCounters done [12:14:54]requested_item shift.num is exist - process it [12:14:54]requested_item shift.opened is exist - process it [12:14:54]req_shift_opened [12:14:54]FM_GetShiftState [12:14:54]SAM_PROTO_GetShiftState [12:14:54]wFMCommunicate request_size=4 [12:14:54]MH_SAM_APDU [12:14:54]CAPDU: 80 13 01 00 [12:14:54]Write to MH i2c: E2 08 00 DB 36 80 13 01 00 00 00 00 00 8E [12:14:54]Write i2c OK [12:14:54]MH_I2C_Read... [12:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:54]Read from MH i2c: E2 [12:14:54]MH_I2C_Read... [12:14:54]Read from MH i2c: E2 0E 00 [12:14:54]MH_I2C_Read... [12:14:54]Read from MH i2c: E2 0E 00 DB 36 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DE [12:14:54]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:14:54]wFMCommunicate OK [12:14:54]SAM_PROTO_GetShiftState done [12:14:54]FM_GetShiftState done [12:14:54]req_shift_opened done [12:14:54]requested_item shift.open_date is exist - process it [12:14:54]req_shift_open_date [12:14:54]req_shift_open_date done [12:14:54]produce_requested_data done [12:14:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192539,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:14:54]process_action_free close_receipt [12:14:54]json_value_free [12:14:54]json_value_free done [12:14:54]process_json_proto returns [12:14:54]Send response to host [12:14:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192539,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:14:54]free response buf [12:14:54]execute_script done [12:14:54]execute_script returns [12:14:54]free content buf [12:14:54]Sock 7.Close socket [12:14:54]Sock 7.Thread stoped [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:05]accept exits with 9 [12:16:05]New connection [12:16:05]New thread 3066563940 created [12:16:05]Thread 3066707300 joined [12:16:05]Waiting for new connection... [12:16:05] Sock 9.Parse request [12:16:05]Sock 9.Check first char [12:16:05]Sock 9.First char is OK [12:16:05]request: POST /json_proto HTTP/1.0 [12:16:05]Method: POST [12:16:05]URL: /json_proto [12:16:05]Method is POST - this is cgi request [12:16:05]url: /json_proto [12:16:05]query_string will be loaded in cgi processing [12:16:05]execute_cgi json_proto POST (null) [12:16:05]execute_cgi path=json_proto method=POST [12:16:05]POST find Content-Length [12:16:05]Host: 172.17.63.131:8080 [12:16:05]Content-Length: 681 [12:16:05]Content-Type: application/json [12:16:05] [12:16:05]POST finish read [12:16:05]Found Content-Length = 681 [12:16:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:05]execute_script... [12:16: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)31860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:05]POST & json_proto [12:16:05]process_json_proto [12:16:05]json parsed OK: [12:16:05]protocol is kg_v1.0 [12:16:05]action value=close_receipt [12:16:05]process_action close_receipt [12:16:05]cmd_close_receipt [12:16:05]MH_GetDate [12:16:05]Write to MH i2c: F0 00 00 DC 36 01 [12:16:05]Write i2c OK [12:16:05]MH_I2C_Read... [12:16:05]Read from MH i2c: F0 [12:16:05]MH_I2C_Read... [12:16:05]Read from MH i2c: F0 09 00 [12:16:05]MH_I2C_Read... [12:16:05]Read from MH i2c: F0 09 00 DC 36 00 8A 80 1F 67 22 05 6E 64 93 [12:16:05]GetLastDocTimeStamp 1730117696 [12:16:05]current date 1730117770 [12:16:05]FM_GetShiftState [12:16:05]SAM_PROTO_GetShiftState [12:16:05]wFMCommunicate request_size=4 [12:16:05]MH_SAM_APDU [12:16:05]CAPDU: 80 13 01 00 [12:16:05]Write to MH i2c: E2 08 00 DD 36 80 13 01 00 00 00 00 00 90 [12:16:05]Write i2c OK [12:16:05]MH_I2C_Read... [12:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:05]Read from MH i2c: E2 [12:16:05]MH_I2C_Read... [12:16:05]Read from MH i2c: E2 0E 00 [12:16:05]MH_I2C_Read... [12:16:05]Read from MH i2c: E2 0E 00 DD 36 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E0 [12:16:05]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:16:05]wFMCommunicate OK [12:16:05]SAM_PROTO_GetShiftState done [12:16:05]FM_GetShiftState done [12:16:05]opened in 1730075620 [12:16:05]opened+sec_in_day 1730162020 [12:16:05]quantity*price = 100015 [12:16:05]sum+1 = 100017 [12:16:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 88 28.10.2024 12:16 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192540 ФПД: 135756321334886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121610&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192540&fm=135756321334886&tin=02508201610067®Number=0000000000091776&sum=100000 [12:16:06]StoreToDocumentArchive [12:16:06]shift 543 fd 192540 [12:16:06]save to /storage/0543/doc_00192540 [12:16:06]save last doc name /storage/0543/doc_00192540 to /storage/kkm_last_doc_name [12:16:06]save OK [12:16:06]Clear old archive folders... [12:16:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:06]tlvbuf is 01A9B060 [12:16:06]SAM_PROTO_ClearQueue [12:16:06]wFMCommunicate request_size=4 [12:16:06]MH_SAM_APDU [12:16:06]CAPDU: 80 09 00 00 [12:16:06]Write to MH i2c: E2 08 00 EA 36 80 09 00 00 00 00 00 00 92 [12:16:06]Write i2c OK [12:16:06]MH_I2C_Read... [12:16:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:06]Read from MH i2c: E2 [12:16:06]MH_I2C_Read... [12:16:06]Read from MH i2c: E2 03 00 [12:16:06]MH_I2C_Read... [12:16:06]Read from MH i2c: E2 03 00 EA 36 00 90 00 94 [12:16:06]RAPDU: 90 00 [12:16:06]wFMCommunicate OK [12:16:06]SAM_PROTO_ClearQueue done [12:16:06]KKMCreateOFDPacket [12:16:06]OFDProtocolAddRootSTLVToBuf [12:16:06]FM_MakeSignedData [12:16:06]FM_MakeSignedData [12:16:06]SAM_PROTO_SignData [12:16:06]wFMCommunicate request_size=4 [12:16:06]MH_SAM_APDU [12:16:06]CAPDU: 80 0D 01 02 [12:16:06]Write to MH i2c: E2 08 00 EB 36 80 0D 01 02 00 00 00 00 9A [12:16:06]Write i2c OK [12:16:06]MH_I2C_Read... [12:16:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:06]Read from MH i2c: E2 [12:16:06]MH_I2C_Read... [12:16:06]Read from MH i2c: E2 03 00 [12:16:06]MH_I2C_Read... [12:16:06]Read from MH i2c: E2 03 00 EB 36 00 90 00 95 [12:16:06]RAPDU: 90 00 [12:16:06]wFMCommunicate OK [12:16:06]wFMCommunicate request_size=255 [12:16:06]MH_SAM_APDU [12:16:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 8A 80 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C F0 02 00 35 04 06 00 7B [12:16:06]Write to MH i2c: E2 02 01 EC 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 8A 80 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C F0 02 00 35 04 06 00 7B 00 00 BA [12:16:06]Write i2c OK [12:16:06]MH_I2C_Read... [12:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:06]Read from MH i2c: E2 [12:16:06]MH_I2C_Read... [12:16:06]Read from MH i2c: E2 03 00 [12:16:06]MH_I2C_Read... [12:16:06]Read from MH i2c: E2 03 00 EC 36 00 90 00 96 [12:16:06]RAPDU: 90 00 [12:16:06]wFMCommunicate OK [12:16:06]wFMCommunicate request_size=10 [12:16:06]MH_SAM_APDU [12:16:06]CAPDU: 80 0D 02 02 05 78 3B 4F 26 66 [12:16:06]Write to MH i2c: E2 0D 00 ED 36 80 0D 02 02 05 00 78 3B 4F 26 66 00 00 35 [12:16:06]Write i2c OK [12:16:06]MH_I2C_Read... [12:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:06]Read from MH i2c: E2 [12:16:06]MH_I2C_Read... [12:16:06]Read from MH i2c: E2 03 00 [12:16:06]MH_I2C_Read... [12:16:06]Read from MH i2c: E2 03 00 ED 36 00 90 00 97 [12:16:06]RAPDU: 90 00 [12:16:06]wFMCommunicate OK [12:16:06]wFMCommunicate request_size=4 [12:16:06]MH_SAM_APDU [12:16:06]CAPDU: 80 0D 03 02 [12:16:06]Write to MH i2c: E2 08 00 EE 36 80 0D 03 02 00 00 00 00 9F [12:16:06]Write i2c OK [12:16:06]MH_I2C_Read... [12:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:06]Read from MH i2c: E2 [12:16:06]MH_I2C_Read... [12:16:06]Read from MH i2c: E2 0B 00 [12:16:06]MH_I2C_Read... [12:16:06]Read from MH i2c: E2 0B 00 EE 36 00 9A 48 EA 82 C4 AE 46 A6 90 00 4C [12:16:06]RAPDU: 9A 48 EA 82 C4 AE 46 A6 90 00 [12:16:06]wFMCommunicate OK [12:16:06]SAM_PROTO_SignData done [12:16:06]FM_MakeSignedData done [12:16:06]CreateOFDProtocolMessage [12:16:06]wFMCommunicate request_size=4 [12:16:06]MH_SAM_APDU [12:16:06]CAPDU: 80 11 00 00 [12:16:06]Write to MH i2c: E2 08 00 EF 36 80 11 00 00 00 00 00 00 9F [12:16:06]Write i2c OK [12:16:06]MH_I2C_Read... [12:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:06]Read from MH i2c: E2 [12:16:06]MH_I2C_Read... [12:16:06]Read from MH i2c: E2 17 00 [12:16:06]MH_I2C_Read... [12:16:06]Read from MH i2c: E2 17 00 EF 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F2 [12:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:16:06]wFMCommunicate OK [12:16:06]CreateOFDProtocolMessage done [12:16:06]OFDSenderStorePacket 192540 [12:16:06]StoreOFDPacket docnum=192540 [12:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 D6 07 01 E2 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 8A 80 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C F0 02 00 35 04 06 00 7B 78 3B 4F 26 66 9A 48 EA 82 C4 AE 46 A6 [12:16:06]CheckFolder [12:16:06]dirname=/storage/ofd_packets [12:16:06]CheckFolder done [12:16:06]ProducePacketName [12:16:06]name=ofd_packets/00192540 [12:16:06]NVStorageSaveData ofd_packets/00192540 [12:16:06]File name is /storage/ofd_packets/00192540 [12:16:06]Write 301 bytes [12:16:06]NVStorageSaveData done [12:16:06]OFDSenderStorePacket done [12:16:06]KKMCreateOFDPacket done [12:16:06]NVStorageSaveData kkm_last_timestamp [12:16:06]File name is /storage/kkm_last_timestamp [12:16:06]Write 4 bytes [12:16:06]NVStorageSaveData done [12:16:06]OFD Sender: Processing packet 192540 [packets to send 75, broken 74] [12:16:06]ProducePacketName [12:16:06]name=ofd_packets/00192540 [12:16:06]OFD Sender: To server: pG, [12:16:06]CommunicateWithHost lk.salyk.kg:30040 [12:16:06]ConnectInit lk.salyk.kg [12:16:06]ExternCall_PrintAddStr [12:16:06]wPrintStart [12:16:06]Write to MH i2c: 01 00 00 F0 36 26 [12:16:06]Write i2c OK [12:16:06]MH_I2C_Read... [12:16:06]Read from MH i2c: 01 [12:16:06]MH_I2C_Read... [12:16:06]Read from MH i2c: 01 07 00 [12:16:06]MH_I2C_Read... [12:16:06]Read from MH i2c: 01 07 00 F0 36 00 00 00 00 00 FF 0F 3B [12:16:06]RasterBufferAndPrint [12:16:06]line Счет N : (1)31860 [12:16:06]line ИНН: 02508201610067 [12:16:06]line Контрольно-Кассовый Чек [12:16:06]line ПРОДАЖА [12:16:06]line ТРК (МРК, ГНК) : 12 [12:16:06]line Товар: 2710124130 [12:16:06]line Аи-92-К-5 [12:16:06]line 14.950 * 66.90 [12:16:06]line = 1000.16 [12:16:06]line НДС 12% НСП 1% [12:16:06]line > о реализуемом товаре [12:16:06]line ОКРУГЛЕНИЕ: -0.16 [12:16:06]line ИТОГО: 1000.00 [12:16:06]line Внесено: 1000.00 [12:16:06]line СДАЧА: 0.00 [12:16:06]line НСП 1% : 8.85 [12:16:06]line НДС 12% : 106.21 [12:16:06]line Наличными: 1000.00 [12:16:06]line Безнал.: 0.00 [12:16:06]line Место: АЗС № 170 "Партнер Нефть" [12:16:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:16:06]line СНО: Общий режим [12:16:06]line Чек 88 28.10.2024 12:16 [12:16:06]line Смена: 543 ФФД: 1.0 [12:16:06]line ЗНМ: 0300000110 [12:16:06]line РНМ: 0000000000091776 [12:16:06]line Версия ККМ: 001 [12:16:06]line ФМ: 0000000000871754 [12:16:06]line ФД: 192540 [12:16:06]line ФПД: 135756321334886 [12:16:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121610&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192540&fm=135756321334886&tin=02508201610067®Number=0000000000091776&sum=100000 [12:16:07]Connected sock=11 [12:16:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 D6 07 01 E2 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 8A 80 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C F0 02 00 35 04 06 00 7B 78 3B 4F 26 66 9A 48 EA 82 C4 AE 46 A6 [12:16:07]written 0, free lines is 4095 [12:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FB BD 47 00 FD 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C F0 02 00 F4 03 04 00 4E 25 1F 67 B6 04 01 00 00 23 4E B4 92 94 DA 19 D7 [12:16:07]CommunicateWithHost err = 0 [12:16:07]CheckOFDResponse [12:16:07]1017 (14) - 77093643461234 [12:16:07]1041 (16) - 0000000000871754 [12:16:07]1040 (4) - 192540 [12:16:07]1012 (4) - 28.10.2024 05:46 [12:16:07]1206 (1) - 0 [12:16:07]OFD Sender: Remove packet 192540 [12:16:07]ProducePacketName [12:16:07]name=ofd_packets/00192540 [12:16:07]NVStorageDeleteData [12:16:07]Write to MH i2c: 01 00 00 1B 37 52 [12:16:07]Write i2c OK [12:16:07]MH_I2C_Read... [12:16:07]Read from MH i2c: 01 [12:16:07]MH_I2C_Read... [12:16:07]Read from MH i2c: 01 07 00 [12:16:07]MH_I2C_Read... [12:16:07]Read from MH i2c: 01 07 00 1B 37 00 00 00 00 00 AB 0C 10 [12:16:07]RasterBufferAndPrint [12:16:07]line [12:16:07]line [12:16:07]line [12:16:07]line [12:16:07]line [12:16:07]written 0, free lines is 3249 [12:16:07]MH_Cut [12:16:07]Write to MH i2c: D1 01 00 22 37 01 2B [12:16:07]Write i2c OK [12:16:07]MH_I2C_Read... [12:16:07]Read from MH i2c: D1 [12:16:07]MH_I2C_Read... [12:16:07]Read from MH i2c: D1 01 00 [12:16:07]MH_I2C_Read... [12:16:07]Read from MH i2c: D1 01 00 22 37 00 2A [12:16:07]Write to MH i2c: 01 00 00 23 37 5A [12:16:07]Write i2c OK [12:16:07]MH_I2C_Read... [12:16:07]OFD Sender: No OFD packet to send [12:16:08]*** Cut start [12:16:08]*** Partial cut [12:16:08]*** CUTSNS_PIN = 1 [12:16:08]*** CUTSNS_PIN = 0 [12:16:08]*** Brake cut motor [12:16:09]Read from MH i2c: 01 [12:16:09]MH_I2C_Read... [12:16:09]*** Stop cut motor [12:16:09]*** Cut end [12:16:09]Read from MH i2c: 01 07 00 [12:16:09]MH_I2C_Read... [12:16:09]Read from MH i2c: 01 07 00 23 37 00 00 00 00 00 FF 0F 6F [12:16:09]process_action close_receipt done [12:16:09]requested_data is exist [12:16:09]produce_requested_data [12:16:09]requested_item fm.sn is exist - process it [12:16:09]wFMCommunicate request_size=4 [12:16:09]MH_SAM_APDU [12:16:09]CAPDU: 80 11 00 00 [12:16:09]Write to MH i2c: E2 08 00 24 37 80 11 00 00 00 00 00 00 D5 [12:16:09]Write i2c OK [12:16:09]MH_I2C_Read... [12:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:09]Read from MH i2c: E2 [12:16:09]MH_I2C_Read... [12:16:09]Read from MH i2c: E2 17 00 [12:16:09]MH_I2C_Read... [12:16:09]Read from MH i2c: E2 17 00 24 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 28 [12:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:16:09]wFMCommunicate OK [12:16:09]requested_item fd.num is exist - process it [12:16:09]SAM_PROTO_GetFieldsCounters [12:16:09]wFMCommunicate request_size=4 [12:16:09]MH_SAM_APDU [12:16:09]CAPDU: 80 13 00 00 [12:16:09]Write to MH i2c: E2 08 00 25 37 80 13 00 00 00 00 00 00 D8 [12:16:09]Write i2c OK [12:16:09]MH_I2C_Read... [12:16:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:09]Read from MH i2c: E2 [12:16:09]MH_I2C_Read... [12:16:09]Read from MH i2c: E2 62 00 [12:16:09]MH_I2C_Read... [12:16:09]Read from MH i2c: E2 62 00 25 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [12:16:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:09]wFMCommunicate OK [12:16:09]SAM_PROTO_GetFieldsCounters done [12:16:09]requested_item shift.num is exist - process it [12:16:09]requested_item shift.opened is exist - process it [12:16:09]req_shift_opened [12:16:09]FM_GetShiftState [12:16:09]SAM_PROTO_GetShiftState [12:16:09]wFMCommunicate request_size=4 [12:16:09]MH_SAM_APDU [12:16:09]CAPDU: 80 13 01 00 [12:16:09]Write to MH i2c: E2 08 00 26 37 80 13 01 00 00 00 00 00 DA [12:16:09]Write i2c OK [12:16:09]MH_I2C_Read... [12:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:09]Read from MH i2c: E2 [12:16:09]MH_I2C_Read... [12:16:09]Read from MH i2c: E2 0E 00 [12:16:09]MH_I2C_Read... [12:16:09]Read from MH i2c: E2 0E 00 26 37 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2A [12:16:09]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:16:09]wFMCommunicate OK [12:16:09]SAM_PROTO_GetShiftState done [12:16:09]FM_GetShiftState done [12:16:09]req_shift_opened done [12:16:09]requested_item shift.open_date is exist - process it [12:16:09]req_shift_open_date [12:16:09]req_shift_open_date done [12:16:09]produce_requested_data done [12:16:09]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192540,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:16:09]process_action_free close_receipt [12:16:09]json_value_free [12:16:09]json_value_free done [12:16:09]process_json_proto returns [12:16:09]Send response to host [12:16:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192540,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:16:09]free response buf [12:16:09]execute_script done [12:16:09]execute_script returns [12:16:09]free content buf [12:16:09]Sock 9.Close socket [12:16:09]Sock 9.Thread stoped [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:19]accept exits with 7 [12:17:19]New connection [12:17:19]New thread 3066707300 created [12:17:19]Thread 3066563940 joined [12:17:19]Waiting for new connection... [12:17:19] Sock 7.Parse request [12:17:19]Sock 7.Check first char [12:17:19]Sock 7.First char is OK [12:17:19]request: POST /json_proto HTTP/1.0 [12:17:19]Method: POST [12:17:19]URL: /json_proto [12:17:19]Method is POST - this is cgi request [12:17:19]url: /json_proto [12:17:19]query_string will be loaded in cgi processing [12:17:19]execute_cgi json_proto POST (null) [12:17:19]execute_cgi path=json_proto method=POST [12:17:19]POST find Content-Length [12:17:19]Host: 172.17.63.131:8080 [12:17:19]Content-Length: 676 [12:17:19]Content-Type: application/json [12:17:19] [12:17:19]POST finish read [12:17:19]Found Content-Length = 676 [12:17:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:19]execute_script... [12:17: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)31862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:19]POST & json_proto [12:17:19]process_json_proto [12:17:19]json parsed OK: [12:17:19]protocol is kg_v1.0 [12:17:19]action value=close_receipt [12:17:19]process_action close_receipt [12:17:19]cmd_close_receipt [12:17:19]MH_GetDate [12:17:19]Write to MH i2c: F0 00 00 27 37 4D [12:17:19]Write i2c OK [12:17:19]MH_I2C_Read... [12:17:19]Read from MH i2c: F0 [12:17:19]MH_I2C_Read... [12:17:19]Read from MH i2c: F0 09 00 [12:17:19]MH_I2C_Read... [12:17:19]Read from MH i2c: F0 09 00 27 37 00 D5 80 1F 67 22 05 6E 64 2A [12:17:19]GetLastDocTimeStamp 1730117770 [12:17:19]current date 1730117845 [12:17:19]FM_GetShiftState [12:17:19]SAM_PROTO_GetShiftState [12:17:19]wFMCommunicate request_size=4 [12:17:19]MH_SAM_APDU [12:17:19]CAPDU: 80 13 01 00 [12:17:19]Write to MH i2c: E2 08 00 28 37 80 13 01 00 00 00 00 00 DC [12:17:19]Write i2c OK [12:17:19]MH_I2C_Read... [12:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:19]Read from MH i2c: E2 [12:17:19]MH_I2C_Read... [12:17:19]Read from MH i2c: E2 0E 00 [12:17:19]MH_I2C_Read... [12:17:20]Read from MH i2c: E2 0E 00 28 37 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2C [12:17:20]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:17:20]wFMCommunicate OK [12:17:20]SAM_PROTO_GetShiftState done [12:17:20]FM_GetShiftState done [12:17:20]opened in 1730075620 [12:17:20]opened+sec_in_day 1730162020 [12:17:20]quantity*price = 10035 [12:17:20]sum+1 = 10036 [12:17:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 89 28.10.2024 12:17 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192541 ФПД: 269891576604046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121725&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192541&fm=269891576604046&tin=02508201610067®Number=0000000000091776&sum=10000 [12:17:21]StoreToDocumentArchive [12:17:21]shift 543 fd 192541 [12:17:21]save to /storage/0543/doc_00192541 [12:17:21]save last doc name /storage/0543/doc_00192541 to /storage/kkm_last_doc_name [12:17:21]save OK [12:17:21]Clear old archive folders... [12:17:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:21]tlvbuf is 019C35B0 [12:17:21]SAM_PROTO_ClearQueue [12:17:21]wFMCommunicate request_size=4 [12:17:21]MH_SAM_APDU [12:17:21]CAPDU: 80 09 00 00 [12:17:21]Write to MH i2c: E2 08 00 35 37 80 09 00 00 00 00 00 00 DE [12:17:21]Write i2c OK [12:17:21]MH_I2C_Read... [12:17:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:21]Read from MH i2c: E2 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 03 00 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 03 00 35 37 00 90 00 E0 [12:17:21]RAPDU: 90 00 [12:17:21]wFMCommunicate OK [12:17:21]SAM_PROTO_ClearQueue done [12:17:21]KKMCreateOFDPacket [12:17:21]OFDProtocolAddRootSTLVToBuf [12:17:21]FM_MakeSignedData [12:17:21]FM_MakeSignedData [12:17:21]SAM_PROTO_SignData [12:17:21]wFMCommunicate request_size=4 [12:17:21]MH_SAM_APDU [12:17:21]CAPDU: 80 0D 01 02 [12:17:21]Write to MH i2c: E2 08 00 36 37 80 0D 01 02 00 00 00 00 E6 [12:17:21]Write i2c OK [12:17:21]MH_I2C_Read... [12:17:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:21]Read from MH i2c: E2 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 03 00 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 03 00 36 37 00 90 00 E1 [12:17:21]RAPDU: 90 00 [12:17:21]wFMCommunicate OK [12:17:21]wFMCommunicate request_size=255 [12:17:21]MH_SAM_APDU [12:17:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D5 80 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D F0 02 00 35 04 06 00 F5 [12:17:21]Write to MH i2c: E2 02 01 37 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D5 80 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D F0 02 00 35 04 06 00 F5 00 00 BA [12:17:21]Write i2c OK [12:17:21]MH_I2C_Read... [12:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:21]Read from MH i2c: E2 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 03 00 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 03 00 37 37 00 90 00 E2 [12:17:21]RAPDU: 90 00 [12:17:21]wFMCommunicate OK [12:17:21]wFMCommunicate request_size=10 [12:17:21]MH_SAM_APDU [12:17:21]CAPDU: 80 0D 02 02 05 77 07 8D 25 8E [12:17:21]Write to MH i2c: E2 0D 00 38 37 80 0D 02 02 05 00 77 07 8D 25 8E 00 00 B1 [12:17:21]Write i2c OK [12:17:21]MH_I2C_Read... [12:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:21]Read from MH i2c: E2 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 03 00 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 03 00 38 37 00 90 00 E3 [12:17:21]RAPDU: 90 00 [12:17:21]wFMCommunicate OK [12:17:21]wFMCommunicate request_size=4 [12:17:21]MH_SAM_APDU [12:17:21]CAPDU: 80 0D 03 02 [12:17:21]Write to MH i2c: E2 08 00 39 37 80 0D 03 02 00 00 00 00 EB [12:17:21]Write i2c OK [12:17:21]MH_I2C_Read... [12:17:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:21]Read from MH i2c: E2 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 0B 00 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 0B 00 39 37 00 4B 0D 86 99 7D 01 7C 8D 90 00 EA [12:17:21]RAPDU: 4B 0D 86 99 7D 01 7C 8D 90 00 [12:17:21]wFMCommunicate OK [12:17:21]SAM_PROTO_SignData done [12:17:21]FM_MakeSignedData done [12:17:21]CreateOFDProtocolMessage [12:17:21]wFMCommunicate request_size=4 [12:17:21]MH_SAM_APDU [12:17:21]CAPDU: 80 11 00 00 [12:17:21]Write to MH i2c: E2 08 00 3A 37 80 11 00 00 00 00 00 00 EB [12:17:21]Write i2c OK [12:17:21]MH_I2C_Read... [12:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:21]Read from MH i2c: E2 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 17 00 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: E2 17 00 3A 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3E [12:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:17:21]wFMCommunicate OK [12:17:21]CreateOFDProtocolMessage done [12:17:21]OFDSenderStorePacket 192541 [12:17:21]StoreOFDPacket docnum=192541 [12:17:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 09 E0 07 01 D9 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D5 80 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D F0 02 00 35 04 06 00 F5 77 07 8D 25 8E 4B 0D 86 99 7D 01 7C 8D [12:17:21]CheckFolder [12:17:21]dirname=/storage/ofd_packets [12:17:21]CheckFolder done [12:17:21]ProducePacketName [12:17:21]name=ofd_packets/00192541 [12:17:21]NVStorageSaveData ofd_packets/00192541 [12:17:21]File name is /storage/ofd_packets/00192541 [12:17:21]Write 301 bytes [12:17:21]NVStorageSaveData done [12:17:21]OFDSenderStorePacket done [12:17:21]KKMCreateOFDPacket done [12:17:21]NVStorageSaveData kkm_last_timestamp [12:17:21]File name is /storage/kkm_last_timestamp [12:17:21]Write 4 bytes [12:17:21]NVStorageSaveData done [12:17:21]OFD Sender: Processing packet 192541 [packets to send 75, broken 74] [12:17:21]ProducePacketName [12:17:21]name=ofd_packets/00192541 [12:17:21]OFD Sender: To server: pG, [12:17:21]CommunicateWithHost lk.salyk.kg:30040 [12:17:21]ConnectInit lk.salyk.kg [12:17:21]ExternCall_PrintAddStr [12:17:21]wPrintStart [12:17:21]Write to MH i2c: 01 00 00 3B 37 72 [12:17:21]Write i2c OK [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: 01 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: 01 07 00 [12:17:21]MH_I2C_Read... [12:17:21]Read from MH i2c: 01 07 00 3B 37 00 00 00 00 00 FF 0F 87 [12:17:21]RasterBufferAndPrint [12:17:21]line Счет N : (1)31862 [12:17:21]line ИНН: 02508201610067 [12:17:21]line Контрольно-Кассовый Чек [12:17:21]line ПРОДАЖА [12:17:21]line ТРК (МРК, ГНК) : 21 [12:17:21]line Товар: 2710124130 [12:17:21]line Аи-92-К-5 [12:17:21]line 1.500 * 66.90 [12:17:21]line = 100.35 [12:17:21]line НДС 12% НСП 1% [12:17:21]line > о реализуемом товаре [12:17:21]line ОКРУГЛЕНИЕ: -0.35 [12:17:21]line ИТОГО: 100.00 [12:17:21]line Внесено: 100.00 [12:17:21]line СДАЧА: 0.00 [12:17:21]line НСП 1% : 0.89 [12:17:21]line НДС 12% : 10.66 [12:17:21]line Наличными: 100.00 [12:17:21]line Безнал.: 0.00 [12:17:21]line Место: АЗС № 170 "Партнер Нефть" [12:17:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:17:21]line СНО: Общий режим [12:17:21]line Чек 89 28.10.2024 12:17 [12:17:21]line Смена: 543 ФФД: 1.0 [12:17:21]line ЗНМ: 0300000110 [12:17:21]line РНМ: 0000000000091776 [12:17:21]line Версия ККМ: 001 [12:17:21]line ФМ: 0000000000871754 [12:17:21]line ФД: 192541 [12:17:21]line ФПД: 269891576604046 [12:17:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121725&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192541&fm=269891576604046&tin=02508201610067®Number=0000000000091776&sum=10000 [12:17:22]Connected sock=11 [12:17:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 09 E0 07 01 D9 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D5 80 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D F0 02 00 35 04 06 00 F5 77 07 8D 25 8E 4B 0D 86 99 7D 01 7C 8D [12:17:22]written 0, free lines is 4095 [12:17:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 07 0F 47 00 A2 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D F0 02 00 F4 03 04 00 99 25 1F 67 B6 04 01 00 00 F1 F8 81 58 D3 DA 6B FE [12:17:22]CommunicateWithHost err = 0 [12:17:22]CheckOFDResponse [12:17:22]1017 (14) - 77093643461234 [12:17:22]1041 (16) - 0000000000871754 [12:17:22]1040 (4) - 192541 [12:17:22]1012 (4) - 28.10.2024 05:48 [12:17:22]1206 (1) - 0 [12:17:22]OFD Sender: Remove packet 192541 [12:17:22]ProducePacketName [12:17:22]name=ofd_packets/00192541 [12:17:22]NVStorageDeleteData [12:17:22]Write to MH i2c: 01 00 00 66 37 9D [12:17:22]Write i2c OK [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: 01 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: 01 07 00 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: 01 07 00 66 37 00 00 00 00 00 AB 0C 5B [12:17:22]RasterBufferAndPrint [12:17:22]line [12:17:22]line [12:17:22]line [12:17:22]line [12:17:22]line [12:17:22]written 0, free lines is 3250 [12:17:22]MH_Cut [12:17:22]Write to MH i2c: D1 01 00 6D 37 01 76 [12:17:22]Write i2c OK [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: D1 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: D1 01 00 [12:17:22]MH_I2C_Read... [12:17:22]Read from MH i2c: D1 01 00 6D 37 00 75 [12:17:22]Write to MH i2c: 01 00 00 6E 37 A5 [12:17:22]Write i2c OK [12:17:22]MH_I2C_Read... [12:17:22]OFD Sender: No OFD packet to send [12:17:23]*** Cut start [12:17:23]*** Partial cut [12:17:23]*** CUTSNS_PIN = 1 [12:17:23]*** CUTSNS_PIN = 0 [12:17:23]*** Brake cut motor [12:17:23]Read from MH i2c: 01 [12:17:23]MH_I2C_Read... [12:17:23]*** Stop cut motor [12:17:23]*** Cut end [12:17:23]Read from MH i2c: 01 07 00 [12:17:23]MH_I2C_Read... [12:17:23]Read from MH i2c: 01 07 00 6E 37 00 00 00 00 00 FF 0F BA [12:17:23]process_action close_receipt done [12:17:23]requested_data is exist [12:17:23]produce_requested_data [12:17:23]requested_item fm.sn is exist - process it [12:17:23]wFMCommunicate request_size=4 [12:17:23]MH_SAM_APDU [12:17:23]CAPDU: 80 11 00 00 [12:17:23]Write to MH i2c: E2 08 00 6F 37 80 11 00 00 00 00 00 00 20 [12:17:23]Write i2c OK [12:17:23]MH_I2C_Read... [12:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:24]Read from MH i2c: E2 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 17 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 17 00 6F 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 73 [12:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:17:24]wFMCommunicate OK [12:17:24]requested_item fd.num is exist - process it [12:17:24]SAM_PROTO_GetFieldsCounters [12:17:24]wFMCommunicate request_size=4 [12:17:24]MH_SAM_APDU [12:17:24]CAPDU: 80 13 00 00 [12:17:24]Write to MH i2c: E2 08 00 70 37 80 13 00 00 00 00 00 00 23 [12:17:24]Write i2c OK [12:17:24]MH_I2C_Read... [12:17:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:24]Read from MH i2c: E2 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 62 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 62 00 70 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [12:17:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:24]wFMCommunicate OK [12:17:24]SAM_PROTO_GetFieldsCounters done [12:17:24]requested_item shift.num is exist - process it [12:17:24]requested_item shift.opened is exist - process it [12:17:24]req_shift_opened [12:17:24]FM_GetShiftState [12:17:24]SAM_PROTO_GetShiftState [12:17:24]wFMCommunicate request_size=4 [12:17:24]MH_SAM_APDU [12:17:24]CAPDU: 80 13 01 00 [12:17:24]Write to MH i2c: E2 08 00 71 37 80 13 01 00 00 00 00 00 25 [12:17:24]Write i2c OK [12:17:24]MH_I2C_Read... [12:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:24]Read from MH i2c: E2 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 0E 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 0E 00 71 37 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 75 [12:17:24]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:17:24]wFMCommunicate OK [12:17:24]SAM_PROTO_GetShiftState done [12:17:24]FM_GetShiftState done [12:17:24]req_shift_opened done [12:17:24]requested_item shift.open_date is exist - process it [12:17:24]req_shift_open_date [12:17:24]req_shift_open_date done [12:17:24]produce_requested_data done [12:17:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192541,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:17:24]process_action_free close_receipt [12:17:24]json_value_free [12:17:24]json_value_free done [12:17:24]process_json_proto returns [12:17:24]Send response to host [12:17:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192541,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:17:24]free response buf [12:17:24]execute_script done [12:17:24]execute_script returns [12:17:24]free content buf [12:17:24]Sock 7.Close socket [12:17:24]Sock 7.Thread stoped [12:17:27]OFD Sender: No OFD packet to send [12:17:29]accept exits with 9 [12:17:29]New connection [12:17:29]New thread 3066563940 created [12:17:29]Thread 3066707300 joined [12:17:29]Waiting for new connection... [12:17:29] Sock 9.Parse request [12:17:29]Sock 9.Check first char [12:17:29]Sock 9.First char is OK [12:17:29]request: POST /json_proto HTTP/1.0 [12:17:29]Method: POST [12:17:29]URL: /json_proto [12:17:29]Method is POST - this is cgi request [12:17:29]url: /json_proto [12:17:29]query_string will be loaded in cgi processing [12:17:29]execute_cgi json_proto POST (null) [12:17:29]execute_cgi path=json_proto method=POST [12:17:29]POST find Content-Length [12:17:29]Host: 172.17.63.131:8080 [12:17:29]Content-Length: 676 [12:17:29]Content-Type: application/json [12:17:29] [12:17:29]POST finish read [12:17:29]Found Content-Length = 676 [12:17:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:29]execute_script... [12:17: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)31861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:29]POST & json_proto [12:17:29]process_json_proto [12:17:29]json parsed OK: [12:17:29]protocol is kg_v1.0 [12:17:29]action value=close_receipt [12:17:29]process_action close_receipt [12:17:29]cmd_close_receipt [12:17:29]MH_GetDate [12:17:29]Write to MH i2c: F0 00 00 72 37 98 [12:17:29]Write i2c OK [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: F0 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: F0 09 00 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: F0 09 00 72 37 00 DE 80 1F 67 22 05 6E 64 7E [12:17:29]GetLastDocTimeStamp 1730117845 [12:17:29]current date 1730117854 [12:17:29]FM_GetShiftState [12:17:29]SAM_PROTO_GetShiftState [12:17:29]wFMCommunicate request_size=4 [12:17:29]MH_SAM_APDU [12:17:29]CAPDU: 80 13 01 00 [12:17:29]Write to MH i2c: E2 08 00 73 37 80 13 01 00 00 00 00 00 27 [12:17:29]Write i2c OK [12:17:29]MH_I2C_Read... [12:17:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:29]Read from MH i2c: E2 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: E2 0E 00 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: E2 0E 00 73 37 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 77 [12:17:29]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:17:29]wFMCommunicate OK [12:17:29]SAM_PROTO_GetShiftState done [12:17:29]FM_GetShiftState done [12:17:29]opened in 1730075620 [12:17:29]opened+sec_in_day 1730162020 [12:17:29]quantity*price = 50041 [12:17:29]sum+1 = 50042 [12:17:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 90 28.10.2024 12:17 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192542 ФПД: 125324305151380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121735&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192542&fm=125324305151380&tin=02508201610067®Number=0000000000091776&sum=50000 [12:17:30]StoreToDocumentArchive [12:17:30]shift 543 fd 192542 [12:17:30]save to /storage/0543/doc_00192542 [12:17:30]save last doc name /storage/0543/doc_00192542 to /storage/kkm_last_doc_name [12:17:30]save OK [12:17:30]Clear old archive folders... [12:17:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:31]tlvbuf is B6E850E0 [12:17:31]SAM_PROTO_ClearQueue [12:17:31]wFMCommunicate request_size=4 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 09 00 00 [12:17:31]Write to MH i2c: E2 08 00 80 37 80 09 00 00 00 00 00 00 29 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 80 37 00 90 00 2B [12:17:31]RAPDU: 90 00 [12:17:31]wFMCommunicate OK [12:17:31]SAM_PROTO_ClearQueue done [12:17:31]KKMCreateOFDPacket [12:17:31]OFDProtocolAddRootSTLVToBuf [12:17:31]FM_MakeSignedData [12:17:31]FM_MakeSignedData [12:17:31]SAM_PROTO_SignData [12:17:31]wFMCommunicate request_size=4 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 0D 01 02 [12:17:31]Write to MH i2c: E2 08 00 81 37 80 0D 01 02 00 00 00 00 31 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 81 37 00 90 00 2C [12:17:31]RAPDU: 90 00 [12:17:31]wFMCommunicate OK [12:17:31]wFMCommunicate request_size=255 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 DF 80 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E F0 02 00 35 04 06 00 71 [12:17:31]Write to MH i2c: E2 02 01 82 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 DF 80 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E F0 02 00 35 04 06 00 71 00 00 A6 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 82 37 00 90 00 2D [12:17:31]RAPDU: 90 00 [12:17:31]wFMCommunicate OK [12:17:31]wFMCommunicate request_size=10 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 0D 02 02 05 FB 56 B0 B5 94 [12:17:31]Write to MH i2c: E2 0D 00 83 37 80 0D 02 02 05 00 FB 56 B0 B5 94 00 00 88 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 83 37 00 90 00 2E [12:17:31]RAPDU: 90 00 [12:17:31]wFMCommunicate OK [12:17:31]wFMCommunicate request_size=4 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 0D 03 02 [12:17:31]Write to MH i2c: E2 08 00 84 37 80 0D 03 02 00 00 00 00 36 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 0B 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 0B 00 84 37 00 0B 2D 9B 70 BA B3 F3 FB 90 00 D5 [12:17:31]RAPDU: 0B 2D 9B 70 BA B3 F3 FB 90 00 [12:17:31]wFMCommunicate OK [12:17:31]SAM_PROTO_SignData done [12:17:31]FM_MakeSignedData done [12:17:31]CreateOFDProtocolMessage [12:17:31]wFMCommunicate request_size=4 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 11 00 00 [12:17:31]Write to MH i2c: E2 08 00 85 37 80 11 00 00 00 00 00 00 36 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 17 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 17 00 85 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 89 [12:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:17:31]wFMCommunicate OK [12:17:31]CreateOFDProtocolMessage done [12:17:31]OFDSenderStorePacket 192542 [12:17:31]StoreOFDPacket docnum=192542 [12:17:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 E6 07 01 B7 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 DF 80 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E F0 02 00 35 04 06 00 71 FB 56 B0 B5 94 0B 2D 9B 70 BA B3 F3 FB [12:17:31]CheckFolder [12:17:31]dirname=/storage/ofd_packets [12:17:31]CheckFolder done [12:17:31]ProducePacketName [12:17:31]name=ofd_packets/00192542 [12:17:31]NVStorageSaveData ofd_packets/00192542 [12:17:31]File name is /storage/ofd_packets/00192542 [12:17:31]Write 301 bytes [12:17:31]NVStorageSaveData done [12:17:31]OFDSenderStorePacket done [12:17:31]KKMCreateOFDPacket done [12:17:31]NVStorageSaveData kkm_last_timestamp [12:17:31]File name is /storage/kkm_last_timestamp [12:17:31]Write 4 bytes [12:17:31]NVStorageSaveData done [12:17:31]ExternCall_PrintAddStr [12:17:31]wPrintStart [12:17:31]Write to MH i2c: 01 00 00 86 37 BD [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 07 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 07 00 86 37 00 00 00 00 00 FF 0F D2 [12:17:31]RasterBufferAndPrint [12:17:31]line Счет N : (1)31861 [12:17:31]line ИНН: 02508201610067 [12:17:31]line Контрольно-Кассовый Чек [12:17:31]line ПРОДАЖА [12:17:31]line ТРК (МРК, ГНК) : 12 [12:17:31]line Товар: 2710124130 [12:17:31]line Аи-92-К-5 [12:17:31]line 7.480 * 66.90 [12:17:31]line = 500.41 [12:17:31]line НДС 12% НСП 1% [12:17:31]line > о реализуемом товаре [12:17:31]line ОКРУГЛЕНИЕ: -0.41 [12:17:31]line ИТОГО: 500.00 [12:17:31]line Внесено: 500.00 [12:17:31]line СДАЧА: 0.00 [12:17:31]line НСП 1% : 4.43 [12:17:31]line НДС 12% : 53.14 [12:17:31]line Наличными: 500.00 [12:17:31]line Безнал.: 0.00 [12:17:31]line Место: АЗС № 170 "Партнер Нефть" [12:17:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:17:31]line СНО: Общий режим [12:17:31]line Чек 90 28.10.2024 12:17 [12:17:31]line Смена: 543 ФФД: 1.0 [12:17:31]line ЗНМ: 0300000110 [12:17:31]line РНМ: 0000000000091776 [12:17:31]line Версия ККМ: 001 [12:17:31]line ФМ: 0000000000871754 [12:17:31]line ФД: 192542 [12:17:31]line ФПД: 125324305151380 [12:17:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121735&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192542&fm=125324305151380&tin=02508201610067®Number=0000000000091776&sum=50000 [12:17:31]OFD Sender: Processing packet 192542 [packets to send 75, broken 74] [12:17:31]ProducePacketName [12:17:31]name=ofd_packets/00192542 [12:17:31]OFD Sender: To server: pG, [12:17:31]CommunicateWithHost lk.salyk.kg:30040 [12:17:31]ConnectInit lk.salyk.kg [12:17:31]written 0, free lines is 4095 [12:17:31]Connected sock=10 [12:17:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 E6 07 01 B7 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 DF 80 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E F0 02 00 35 04 06 00 71 FB 56 B0 B5 94 0B 2D 9B 70 BA B3 F3 FB [12:17:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FF CD 47 00 8E 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E F0 02 00 F4 03 04 00 A3 25 1F 67 B6 04 01 00 00 98 4F 6C 35 D1 81 6D 38 [12:17:32]CommunicateWithHost err = 0 [12:17:32]CheckOFDResponse [12:17:32]1017 (14) - 77093643461234 [12:17:32]1041 (16) - 0000000000871754 [12:17:32]1040 (4) - 192542 [12:17:32]1012 (4) - 28.10.2024 05:48 [12:17:32]1206 (1) - 0 [12:17:32]OFD Sender: Remove packet 192542 [12:17:32]ProducePacketName [12:17:32]name=ofd_packets/00192542 [12:17:32]NVStorageDeleteData [12:17:32]Write to MH i2c: 01 00 00 B1 37 E8 [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: 01 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: 01 07 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: 01 07 00 B1 37 00 00 00 00 00 A8 0C A3 [12:17:32]RasterBufferAndPrint [12:17:32]line [12:17:32]line [12:17:32]line [12:17:32]line [12:17:32]line [12:17:32]written 0, free lines is 3248 [12:17:32]MH_Cut [12:17:32]Write to MH i2c: D1 01 00 B8 37 01 C1 [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: D1 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: D1 01 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: D1 01 00 B8 37 00 C0 [12:17:32]Write to MH i2c: 01 00 00 B9 37 F0 [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]OFD Sender: No OFD packet to send [12:17:33]*** Cut start [12:17:33]*** Partial cut [12:17:33]*** CUTSNS_PIN = 1 [12:17:33]*** CUTSNS_PIN = 0 [12:17:33]*** Brake cut motor [12:17:33]Read from MH i2c: 01 [12:17:33]MH_I2C_Read... [12:17:33]*** Stop cut motor [12:17:33]*** Cut end [12:17:33]Read from MH i2c: 01 07 00 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: 01 07 00 B9 37 00 00 00 00 00 FF 0F 05 [12:17:33]process_action close_receipt done [12:17:33]requested_data is exist [12:17:33]produce_requested_data [12:17:33]requested_item fm.sn is exist - process it [12:17:33]wFMCommunicate request_size=4 [12:17:33]MH_SAM_APDU [12:17:33]CAPDU: 80 11 00 00 [12:17:33]Write to MH i2c: E2 08 00 BA 37 80 11 00 00 00 00 00 00 6B [12:17:33]Write i2c OK [12:17:33]MH_I2C_Read... [12:17:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:33]Read from MH i2c: E2 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: E2 17 00 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: E2 17 00 BA 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BE [12:17:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:17:33]wFMCommunicate OK [12:17:33]requested_item fd.num is exist - process it [12:17:33]SAM_PROTO_GetFieldsCounters [12:17:33]wFMCommunicate request_size=4 [12:17:33]MH_SAM_APDU [12:17:33]CAPDU: 80 13 00 00 [12:17:33]Write to MH i2c: E2 08 00 BB 37 80 13 00 00 00 00 00 00 6E [12:17:33]Write i2c OK [12:17:33]MH_I2C_Read... [12:17:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:33]Read from MH i2c: E2 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: E2 62 00 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: E2 62 00 BB 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [12:17:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:33]wFMCommunicate OK [12:17:33]SAM_PROTO_GetFieldsCounters done [12:17:33]requested_item shift.num is exist - process it [12:17:33]requested_item shift.opened is exist - process it [12:17:33]req_shift_opened [12:17:33]FM_GetShiftState [12:17:33]SAM_PROTO_GetShiftState [12:17:33]wFMCommunicate request_size=4 [12:17:33]MH_SAM_APDU [12:17:33]CAPDU: 80 13 01 00 [12:17:33]Write to MH i2c: E2 08 00 BC 37 80 13 01 00 00 00 00 00 70 [12:17:33]Write i2c OK [12:17:33]MH_I2C_Read... [12:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:34]Read from MH i2c: E2 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 0E 00 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 0E 00 BC 37 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C0 [12:17:34]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:17:34]wFMCommunicate OK [12:17:34]SAM_PROTO_GetShiftState done [12:17:34]FM_GetShiftState done [12:17:34]req_shift_opened done [12:17:34]requested_item shift.open_date is exist - process it [12:17:34]req_shift_open_date [12:17:34]req_shift_open_date done [12:17:34]produce_requested_data done [12:17:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192542,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:17:34]process_action_free close_receipt [12:17:34]json_value_free [12:17:34]json_value_free done [12:17:34]process_json_proto returns [12:17:34]Send response to host [12:17:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192542,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:17:34]free response buf [12:17:34]execute_script done [12:17:34]execute_script returns [12:17:34]free content buf [12:17:34]Sock 9.Close socket [12:17:34]Sock 9.Thread stoped [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:26]accept exits with 7 [12:18:26]New connection [12:18:26]New thread 3066707300 created [12:18:26]Thread 3066563940 joined [12:18:26]Waiting for new connection... [12:18:26] Sock 7.Parse request [12:18:26]Sock 7.Check first char [12:18:26]Sock 7.First char is OK [12:18:26]request: POST /json_proto HTTP/1.0 [12:18:26]Method: POST [12:18:26]URL: /json_proto [12:18:26]Method is POST - this is cgi request [12:18:26]url: /json_proto [12:18:26]query_string will be loaded in cgi processing [12:18:26]execute_cgi json_proto POST (null) [12:18:26]execute_cgi path=json_proto method=POST [12:18:26]POST find Content-Length [12:18:26]Host: 172.17.63.131:8080 [12:18:26]Content-Length: 676 [12:18:26]Content-Type: application/json [12:18:26] [12:18:26]POST finish read [12:18:26]Found Content-Length = 676 [12:18:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:26]execute_script... [12:18: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)31863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:26]POST & json_proto [12:18:26]process_json_proto [12:18:26]json parsed OK: [12:18:26]protocol is kg_v1.0 [12:18:26]action value=close_receipt [12:18:26]process_action close_receipt [12:18:26]cmd_close_receipt [12:18:26]MH_GetDate [12:18:26]Write to MH i2c: F0 00 00 BD 37 E3 [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: F0 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: F0 09 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: F0 09 00 BD 37 00 17 81 1F 67 22 05 6E 64 03 [12:18:26]GetLastDocTimeStamp 1730117855 [12:18:26]current date 1730117911 [12:18:26]FM_GetShiftState [12:18:26]SAM_PROTO_GetShiftState [12:18:26]wFMCommunicate request_size=4 [12:18:26]MH_SAM_APDU [12:18:26]CAPDU: 80 13 01 00 [12:18:26]Write to MH i2c: E2 08 00 BE 37 80 13 01 00 00 00 00 00 72 [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:26]Read from MH i2c: E2 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 0E 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 0E 00 BE 37 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C2 [12:18:26]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:18:26]wFMCommunicate OK [12:18:26]SAM_PROTO_GetShiftState done [12:18:26]FM_GetShiftState done [12:18:26]opened in 1730075620 [12:18:26]opened+sec_in_day 1730162020 [12:18:26]quantity*price = 15052 [12:18:26]sum+1 = 15054 [12:18:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 91 28.10.2024 12:18 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192543 ФПД: 227315807584095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121831&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192543&fm=227315807584095&tin=02508201610067®Number=0000000000091776&sum=15000 [12:18:27]StoreToDocumentArchive [12:18:27]shift 543 fd 192543 [12:18:27]save to /storage/0543/doc_00192543 [12:18:27]save last doc name /storage/0543/doc_00192543 to /storage/kkm_last_doc_name [12:18:27]save OK [12:18:27]Clear old archive folders... [12:18:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:27]tlvbuf is 01991730 [12:18:27]SAM_PROTO_ClearQueue [12:18:27]wFMCommunicate request_size=4 [12:18:27]MH_SAM_APDU [12:18:27]CAPDU: 80 09 00 00 [12:18:27]Write to MH i2c: E2 08 00 CB 37 80 09 00 00 00 00 00 00 74 [12:18:27]Write i2c OK [12:18:27]MH_I2C_Read... [12:18:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:27]Read from MH i2c: E2 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 03 00 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 03 00 CB 37 00 90 00 76 [12:18:27]RAPDU: 90 00 [12:18:27]wFMCommunicate OK [12:18:27]SAM_PROTO_ClearQueue done [12:18:27]KKMCreateOFDPacket [12:18:27]OFDProtocolAddRootSTLVToBuf [12:18:27]FM_MakeSignedData [12:18:27]FM_MakeSignedData [12:18:27]SAM_PROTO_SignData [12:18:27]wFMCommunicate request_size=4 [12:18:27]MH_SAM_APDU [12:18:27]CAPDU: 80 0D 01 02 [12:18:27]Write to MH i2c: E2 08 00 CC 37 80 0D 01 02 00 00 00 00 7C [12:18:27]Write i2c OK [12:18:27]MH_I2C_Read... [12:18:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:28]Read from MH i2c: E2 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 03 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 03 00 CC 37 00 90 00 77 [12:18:28]RAPDU: 90 00 [12:18:28]wFMCommunicate OK [12:18:28]wFMCommunicate request_size=255 [12:18:28]MH_SAM_APDU [12:18: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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 17 81 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F F0 02 00 35 04 06 00 CE [12:18:28]Write to MH i2c: E2 02 01 CD 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 17 81 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F F0 02 00 35 04 06 00 CE 00 00 86 [12:18:28]Write i2c OK [12:18:28]MH_I2C_Read... [12:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:28]Read from MH i2c: E2 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 03 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 03 00 CD 37 00 90 00 78 [12:18:28]RAPDU: 90 00 [12:18:28]wFMCommunicate OK [12:18:28]wFMCommunicate request_size=10 [12:18:28]MH_SAM_APDU [12:18:28]CAPDU: 80 0D 02 02 05 BE 15 F6 7F 5F [12:18:28]Write to MH i2c: E2 0D 00 CE 37 80 0D 02 02 05 00 BE 15 F6 7F 5F 00 00 30 [12:18:28]Write i2c OK [12:18:28]MH_I2C_Read... [12:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:28]Read from MH i2c: E2 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 03 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 03 00 CE 37 00 90 00 79 [12:18:28]RAPDU: 90 00 [12:18:28]wFMCommunicate OK [12:18:28]wFMCommunicate request_size=4 [12:18:28]MH_SAM_APDU [12:18:28]CAPDU: 80 0D 03 02 [12:18:28]Write to MH i2c: E2 08 00 CF 37 80 0D 03 02 00 00 00 00 81 [12:18:28]Write i2c OK [12:18:28]MH_I2C_Read... [12:18:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:28]Read from MH i2c: E2 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 0B 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 0B 00 CF 37 00 1C 75 B6 8A 10 49 1B 6A 90 00 31 [12:18:28]RAPDU: 1C 75 B6 8A 10 49 1B 6A 90 00 [12:18:28]wFMCommunicate OK [12:18:28]SAM_PROTO_SignData done [12:18:28]FM_MakeSignedData done [12:18:28]CreateOFDProtocolMessage [12:18:28]wFMCommunicate request_size=4 [12:18:28]MH_SAM_APDU [12:18:28]CAPDU: 80 11 00 00 [12:18:28]Write to MH i2c: E2 08 00 D0 37 80 11 00 00 00 00 00 00 81 [12:18:28]Write i2c OK [12:18:28]MH_I2C_Read... [12:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:28]Read from MH i2c: E2 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 17 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 17 00 D0 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D4 [12:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:18:28]wFMCommunicate OK [12:18:28]CreateOFDProtocolMessage done [12:18:28]OFDSenderStorePacket 192543 [12:18:28]StoreOFDPacket docnum=192543 [12:18:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 85 66 07 01 45 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 17 81 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F F0 02 00 35 04 06 00 CE BE 15 F6 7F 5F 1C 75 B6 8A 10 49 1B 6A [12:18:28]CheckFolder [12:18:28]dirname=/storage/ofd_packets [12:18:28]CheckFolder done [12:18:28]ProducePacketName [12:18:28]name=ofd_packets/00192543 [12:18:28]NVStorageSaveData ofd_packets/00192543 [12:18:28]File name is /storage/ofd_packets/00192543 [12:18:28]Write 301 bytes [12:18:28]NVStorageSaveData done [12:18:28]OFDSenderStorePacket done [12:18:28]KKMCreateOFDPacket done [12:18:28]NVStorageSaveData kkm_last_timestamp [12:18:28]File name is /storage/kkm_last_timestamp [12:18:28]Write 4 bytes [12:18:28]NVStorageSaveData done [12:18:28]ExternCall_PrintAddStr [12:18:28]wPrintStart [12:18:28]Write to MH i2c: 01 00 00 D1 37 08 [12:18:28]Write i2c OK [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: 01 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: 01 07 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: 01 07 00 D1 37 00 00 00 00 00 FF 0F 1D [12:18:28]RasterBufferAndPrint [12:18:28]line Счет N : (1)31863 [12:18:28]line ИНН: 02508201610067 [12:18:28]line Контрольно-Кассовый Чек [12:18:28]line ПРОДАЖА [12:18:28]line ТРК (МРК, ГНК) : 21 [12:18:28]line Товар: 2710124130 [12:18:28]line Аи-92-К-5 [12:18:28]line 2.250 * 66.90 [12:18:28]line = 150.53 [12:18:28]line НДС 12% НСП 1% [12:18:28]line > о реализуемом товаре [12:18:28]line ОКРУГЛЕНИЕ: -0.53 [12:18:28]line ИТОГО: 150.00 [12:18:28]line Внесено: 150.00 [12:18:28]line СДАЧА: 0.00 [12:18:28]line НСП 1% : 1.33 [12:18:28]line НДС 12% : 15.98 [12:18:28]line Наличными: 150.00 [12:18:28]line Безнал.: 0.00 [12:18:28]line Место: АЗС № 170 "Партнер Нефть" [12:18:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:18:28]line СНО: Общий режим [12:18:28]line Чек 91 28.10.2024 12:18 [12:18:28]line Смена: 543 ФФД: 1.0 [12:18:28]line ЗНМ: 0300000110 [12:18:28]line РНМ: 0000000000091776 [12:18:28]line Версия ККМ: 001 [12:18:28]line ФМ: 0000000000871754 [12:18:28]line ФД: 192543 [12:18:28]line ФПД: 227315807584095 [12:18:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121831&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192543&fm=227315807584095&tin=02508201610067®Number=0000000000091776&sum=15000 [12:18:28]OFD Sender: Processing packet 192543 [packets to send 75, broken 74] [12:18:28]ProducePacketName [12:18:28]name=ofd_packets/00192543 [12:18:28]OFD Sender: To server: pG, [12:18:28]CommunicateWithHost lk.salyk.kg:30040 [12:18:28]ConnectInit lk.salyk.kg [12:18:28]written 0, free lines is 4095 [12:18:28]Connected sock=10 [12:18:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 85 66 07 01 45 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 17 81 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F F0 02 00 35 04 06 00 CE BE 15 F6 7F 5F 1C 75 B6 8A 10 49 1B 6A [12:18:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 59 7C 47 00 59 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F F0 02 00 F4 03 04 00 DC 25 1F 67 B6 04 01 00 00 14 75 F8 9B E5 4B 8E 31 [12:18:29]CommunicateWithHost err = 0 [12:18:29]CheckOFDResponse [12:18:29]1017 (14) - 77093643461234 [12:18:29]1041 (16) - 0000000000871754 [12:18:29]1040 (4) - 192543 [12:18:29]1012 (4) - 28.10.2024 05:49 [12:18:29]1206 (1) - 0 [12:18:29]OFD Sender: Remove packet 192543 [12:18:29]ProducePacketName [12:18:29]name=ofd_packets/00192543 [12:18:29]NVStorageDeleteData [12:18:29]Write to MH i2c: 01 00 00 FC 37 33 [12:18:29]Write i2c OK [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: 01 [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: 01 07 00 [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: 01 07 00 FC 37 00 00 00 00 00 AD 0C F3 [12:18:29]RasterBufferAndPrint [12:18:29]line [12:18:29]line [12:18:29]line [12:18:29]line [12:18:29]line [12:18:29]written 0, free lines is 3251 [12:18:29]MH_Cut [12:18:29]Write to MH i2c: D1 01 00 03 38 01 0D [12:18:29]Write i2c OK [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: D1 [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: D1 01 00 [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: D1 01 00 03 38 00 0C [12:18:29]Write to MH i2c: 01 00 00 04 38 3C [12:18:29]Write i2c OK [12:18:29]MH_I2C_Read... [12:18:29]OFD Sender: No OFD packet to send [12:18:30]*** Cut start [12:18:30]*** Partial cut [12:18:30]*** CUTSNS_PIN = 1 [12:18:30]*** CUTSNS_PIN = 0 [12:18:30]*** Brake cut motor [12:18:30]Read from MH i2c: 01 [12:18:30]MH_I2C_Read... [12:18:30]*** Stop cut motor [12:18:30]*** Cut end [12:18:30]Read from MH i2c: 01 07 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: 01 07 00 04 38 00 00 00 00 00 FF 0F 51 [12:18:30]process_action close_receipt done [12:18:30]requested_data is exist [12:18:30]produce_requested_data [12:18:30]requested_item fm.sn is exist - process it [12:18:30]wFMCommunicate request_size=4 [12:18:30]MH_SAM_APDU [12:18:30]CAPDU: 80 11 00 00 [12:18:30]Write to MH i2c: E2 08 00 05 38 80 11 00 00 00 00 00 00 B7 [12:18:30]Write i2c OK [12:18:30]MH_I2C_Read... [12:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:30]Read from MH i2c: E2 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 17 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 17 00 05 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [12:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:18:30]wFMCommunicate OK [12:18:30]requested_item fd.num is exist - process it [12:18:30]SAM_PROTO_GetFieldsCounters [12:18:30]wFMCommunicate request_size=4 [12:18:30]MH_SAM_APDU [12:18:30]CAPDU: 80 13 00 00 [12:18:30]Write to MH i2c: E2 08 00 06 38 80 13 00 00 00 00 00 00 BA [12:18:30]Write i2c OK [12:18:30]MH_I2C_Read... [12:18:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:30]Read from MH i2c: E2 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 62 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 62 00 06 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [12:18:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:30]wFMCommunicate OK [12:18:30]SAM_PROTO_GetFieldsCounters done [12:18:30]requested_item shift.num is exist - process it [12:18:30]requested_item shift.opened is exist - process it [12:18:30]req_shift_opened [12:18:30]FM_GetShiftState [12:18:30]SAM_PROTO_GetShiftState [12:18:30]wFMCommunicate request_size=4 [12:18:30]MH_SAM_APDU [12:18:30]CAPDU: 80 13 01 00 [12:18:30]Write to MH i2c: E2 08 00 07 38 80 13 01 00 00 00 00 00 BC [12:18:30]Write i2c OK [12:18:30]MH_I2C_Read... [12:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:30]Read from MH i2c: E2 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 0E 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 0E 00 07 38 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0C [12:18:30]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:18:30]wFMCommunicate OK [12:18:30]SAM_PROTO_GetShiftState done [12:18:30]FM_GetShiftState done [12:18:30]req_shift_opened done [12:18:30]requested_item shift.open_date is exist - process it [12:18:30]req_shift_open_date [12:18:30]req_shift_open_date done [12:18:30]produce_requested_data done [12:18:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192543,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:18:30]process_action_free close_receipt [12:18:30]json_value_free [12:18:30]json_value_free done [12:18:30]process_json_proto returns [12:18:30]Send response to host [12:18:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192543,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:18:30]free response buf [12:18:30]execute_script done [12:18:30]execute_script returns [12:18:30]free content buf [12:18:30]Sock 7.Close socket [12:18:30]Sock 7.Thread stoped [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [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:58]accept exits with 9 [12:23:58]New connection [12:23:58]New thread 3066563940 created [12:23:58]Thread 3066707300 joined [12:23:58]Waiting for new connection... [12:23:58] Sock 9.Parse request [12:23:58]Sock 9.Check first char [12:23:58]Sock 9.First char is OK [12:23:58]request: POST /json_proto HTTP/1.0 [12:23:58]Method: POST [12:23:58]URL: /json_proto [12:23:58]Method is POST - this is cgi request [12:23:58]url: /json_proto [12:23:58]query_string will be loaded in cgi processing [12:23:58]execute_cgi json_proto POST (null) [12:23:58]execute_cgi path=json_proto method=POST [12:23:58]POST find Content-Length [12:23:58]Host: 172.17.63.131:8080 [12:23:58]Content-Length: 673 [12:23:58]Content-Type: application/json [12:23:58] [12:23:58]POST finish read [12:23:58]Found Content-Length = 673 [12:23:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:58]execute_script... [12:23: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)31864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:58]POST & json_proto [12:23:58]process_json_proto [12:23:58]json parsed OK: [12:23:58]protocol is kg_v1.0 [12:23:58]action value=close_receipt [12:23:58]process_action close_receipt [12:23:58]cmd_close_receipt [12:23:58]MH_GetDate [12:23:58]Write to MH i2c: F0 00 00 08 38 2F [12:23:58]Write i2c OK [12:23:58]MH_I2C_Read... [12:23:58]Read from MH i2c: F0 [12:23:58]MH_I2C_Read... [12:23:58]Read from MH i2c: F0 09 00 [12:23:58]MH_I2C_Read... [12:23:58]Read from MH i2c: F0 09 00 08 38 00 63 82 1F 67 22 05 6E 64 9C [12:23:58]GetLastDocTimeStamp 1730117911 [12:23:58]current date 1730118243 [12:23:58]FM_GetShiftState [12:23:58]SAM_PROTO_GetShiftState [12:23:58]wFMCommunicate request_size=4 [12:23:58]MH_SAM_APDU [12:23:58]CAPDU: 80 13 01 00 [12:23:58]Write to MH i2c: E2 08 00 09 38 80 13 01 00 00 00 00 00 BE [12:23:58]Write i2c OK [12:23:58]MH_I2C_Read... [12:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:58]Read from MH i2c: E2 [12:23:58]MH_I2C_Read... [12:23:58]Read from MH i2c: E2 0E 00 [12:23:58]MH_I2C_Read... [12:23:58]Read from MH i2c: E2 0E 00 09 38 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0E [12:23:58]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:23:58]wFMCommunicate OK [12:23:58]SAM_PROTO_GetShiftState done [12:23:58]FM_GetShiftState done [12:23:58]opened in 1730075620 [12:23:58]opened+sec_in_day 1730162020 [12:23:58]quantity*price = 20040 [12:23:58]sum+1 = 20042 [12:23:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 92 28.10.2024 12:24 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192544 ФПД: 38620553687181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122403&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192544&fm=38620553687181&tin=02508201610067®Number=0000000000091776&sum=20000 [12:23:59]StoreToDocumentArchive [12:23:59]shift 543 fd 192544 [12:23:59]save to /storage/0543/doc_00192544 [12:23:59]save last doc name /storage/0543/doc_00192544 to /storage/kkm_last_doc_name [12:23:59]save OK [12:23:59]Clear old archive folders... [12:23:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:23:59]tlvbuf is 019D5090 [12:23:59]SAM_PROTO_ClearQueue [12:23:59]wFMCommunicate request_size=4 [12:23:59]MH_SAM_APDU [12:23:59]CAPDU: 80 09 00 00 [12:23:59]Write to MH i2c: E2 08 00 16 38 80 09 00 00 00 00 00 00 C0 [12:23:59]Write i2c OK [12:23:59]MH_I2C_Read... [12:23:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:59]Read from MH i2c: E2 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 03 00 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 03 00 16 38 00 90 00 C2 [12:23:59]RAPDU: 90 00 [12:23:59]wFMCommunicate OK [12:23:59]SAM_PROTO_ClearQueue done [12:23:59]KKMCreateOFDPacket [12:23:59]OFDProtocolAddRootSTLVToBuf [12:23:59]FM_MakeSignedData [12:23:59]FM_MakeSignedData [12:23:59]SAM_PROTO_SignData [12:23:59]wFMCommunicate request_size=4 [12:23:59]MH_SAM_APDU [12:23:59]CAPDU: 80 0D 01 02 [12:23:59]Write to MH i2c: E2 08 00 17 38 80 0D 01 02 00 00 00 00 C8 [12:23:59]Write i2c OK [12:23:59]MH_I2C_Read... [12:23:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:59]Read from MH i2c: E2 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 03 00 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 03 00 17 38 00 90 00 C3 [12:23:59]RAPDU: 90 00 [12:23:59]wFMCommunicate OK [12:23:59]wFMCommunicate request_size=255 [12:23:59]MH_SAM_APDU [12:23:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 63 82 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 F0 02 00 35 04 06 00 23 20 0C 62 [12:23:59]Write to MH i2c: E2 02 01 18 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 63 82 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 F0 02 00 35 04 06 00 23 20 0C 62 00 00 82 [12:23:59]Write i2c OK [12:23:59]MH_I2C_Read... [12:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:59]Read from MH i2c: E2 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 03 00 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 03 00 18 38 00 90 00 C4 [12:23:59]RAPDU: 90 00 [12:23:59]wFMCommunicate OK [12:23:59]wFMCommunicate request_size=7 [12:23:59]MH_SAM_APDU [12:23:59]CAPDU: 80 0D 02 02 02 30 8D [12:23:59]Write to MH i2c: E2 0A 00 19 38 80 0D 02 02 02 00 30 8D 00 00 8C [12:23:59]Write i2c OK [12:23:59]MH_I2C_Read... [12:23:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:59]Read from MH i2c: E2 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 03 00 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 03 00 19 38 00 90 00 C5 [12:23:59]RAPDU: 90 00 [12:23:59]wFMCommunicate OK [12:23:59]wFMCommunicate request_size=4 [12:23:59]MH_SAM_APDU [12:23:59]CAPDU: 80 0D 03 02 [12:23:59]Write to MH i2c: E2 08 00 1A 38 80 0D 03 02 00 00 00 00 CD [12:23:59]Write i2c OK [12:23:59]MH_I2C_Read... [12:23:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:59]Read from MH i2c: E2 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 0B 00 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 0B 00 1A 38 00 62 37 CB 97 69 E2 70 59 90 00 DD [12:23:59]RAPDU: 62 37 CB 97 69 E2 70 59 90 00 [12:23:59]wFMCommunicate OK [12:23:59]SAM_PROTO_SignData done [12:23:59]FM_MakeSignedData done [12:23:59]CreateOFDProtocolMessage [12:23:59]wFMCommunicate request_size=4 [12:23:59]MH_SAM_APDU [12:23:59]CAPDU: 80 11 00 00 [12:23:59]Write to MH i2c: E2 08 00 1B 38 80 11 00 00 00 00 00 00 CD [12:23:59]Write i2c OK [12:23:59]MH_I2C_Read... [12:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:59]Read from MH i2c: E2 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 17 00 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 17 00 1B 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [12:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:23:59]wFMCommunicate OK [12:23:59]CreateOFDProtocolMessage done [12:23:59]OFDSenderStorePacket 192544 [12:23:59]StoreOFDPacket docnum=192544 [12:23:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 AE A5 04 01 2F BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 63 82 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 F0 02 00 35 04 06 00 23 20 0C 62 30 8D 62 37 CB 97 69 E2 70 59 [12:23:59]CheckFolder [12:23:59]dirname=/storage/ofd_packets [12:23:59]CheckFolder done [12:23:59]ProducePacketName [12:23:59]name=ofd_packets/00192544 [12:23:59]NVStorageSaveData ofd_packets/00192544 [12:23:59]File name is /storage/ofd_packets/00192544 [12:23:59]Write 298 bytes [12:23:59]NVStorageSaveData done [12:23:59]OFDSenderStorePacket done [12:23:59]KKMCreateOFDPacket done [12:23:59]NVStorageSaveData kkm_last_timestamp [12:23:59]File name is /storage/kkm_last_timestamp [12:23:59]Write 4 bytes [12:23:59]NVStorageSaveData done [12:23:59]ExternCall_PrintAddStr [12:23:59]wPrintStart [12:23:59]Write to MH i2c: 01 00 00 1C 38 54 [12:23:59]Write i2c OK [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: 01 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: 01 07 00 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: 01 07 00 1C 38 00 00 00 00 00 FF 0F 69 [12:23:59]RasterBufferAndPrint [12:23:59]line Счет N : (1)31864 [12:23:59]line ИНН: 02508201610067 [12:23:59]line Контрольно-Кассовый Чек [12:23:59]line ПРОДАЖА [12:23:59]line ТРК (МРК, ГНК) : 11 [12:23:59]line Товар: 2710194210 [12:23:59]line ДТ-К-5 [12:23:59]line 2.630 * 76.20 [12:23:59]line = 200.41 [12:23:59]line НДС 12% НСП 1% [12:23:59]line > о реализуемом товаре [12:23:59]line ОКРУГЛЕНИЕ: -0.41 [12:23:59]line ИТОГО: 200.00 [12:23:59]line Внесено: 200.00 [12:23:59]line СДАЧА: 0.00 [12:23:59]line НСП 1% : 1.77 [12:23:59]line НДС 12% : 21.28 [12:23:59]line Наличными: 200.00 [12:23:59]line Безнал.: 0.00 [12:23:59]line Место: АЗС № 170 "Партнер Нефть" [12:23:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:23:59]line СНО: Общий режим [12:23:59]line Чек 92 28.10.2024 12:24 [12:23:59]line Смена: 543 ФФД: 1.0 [12:23:59]line ЗНМ: 0300000110 [12:23:59]line РНМ: 0000000000091776 [12:23:59]line Версия ККМ: 001 [12:23:59]line ФМ: 0000000000871754 [12:23:59]line ФД: 192544 [12:23:59]line ФПД: 38620553687181 [12:24:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122403&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192544&fm=38620553687181&tin=02508201610067®Number=0000000000091776&sum=20000 [12:24:00]OFD Sender: Processing packet 192544 [packets to send 75, broken 74] [12:24:00]ProducePacketName [12:24:00]name=ofd_packets/00192544 [12:24:00]OFD Sender: To server: pG, [12:24:00]CommunicateWithHost lk.salyk.kg:30040 [12:24:00]ConnectInit lk.salyk.kg [12:24:00]written 0, free lines is 4095 [12:24:00]Connected sock=11 [12:24:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 AE A5 04 01 2F BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 63 82 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 F0 02 00 35 04 06 00 23 20 0C 62 30 8D 62 37 CB 97 69 E2 70 59 [12:24:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F7 5A 47 00 69 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 31 37 35 34 10 04 04 00 20 F0 02 00 F4 03 04 00 27 27 1F 67 B6 04 01 00 00 D5 0B F7 8F 96 FB 7B 25 [12:24:00]CommunicateWithHost err = 0 [12:24:00]CheckOFDResponse [12:24:00]1017 (14) - 77093643461234 [12:24:00]1041 (16) - 0000000000871754 [12:24:00]1040 (4) - 192544 [12:24:00]1012 (4) - 28.10.2024 05:54 [12:24:00]1206 (1) - 0 [12:24:00]OFD Sender: Remove packet 192544 [12:24:00]ProducePacketName [12:24:00]name=ofd_packets/00192544 [12:24:00]NVStorageDeleteData [12:24:00]Write to MH i2c: 01 00 00 47 38 7F [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: 01 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: 01 07 00 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: 01 07 00 47 38 00 00 00 00 00 B4 0C 46 [12:24:00]RasterBufferAndPrint [12:24:00]line [12:24:00]line [12:24:00]line [12:24:00]line [12:24:00]line [12:24:00]written 0, free lines is 3258 [12:24:00]MH_Cut [12:24:00]Write to MH i2c: D1 01 00 4E 38 01 58 [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: D1 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: D1 01 00 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: D1 01 00 4E 38 00 57 [12:24:00]Write to MH i2c: 01 00 00 4F 38 87 [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:00]OFD Sender: No OFD packet to send [12:24:01]*** Cut start [12:24:01]*** Partial cut [12:24:01]*** CUTSNS_PIN = 1 [12:24:01]*** CUTSNS_PIN = 0 [12:24:01]*** Brake cut motor [12:24:02]Read from MH i2c: 01 [12:24:02]MH_I2C_Read... [12:24:02]*** Stop cut motor [12:24:02]*** Cut end [12:24:02]Read from MH i2c: 01 07 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: 01 07 00 4F 38 00 00 00 00 00 FF 0F 9C [12:24:02]process_action close_receipt done [12:24:02]requested_data is exist [12:24:02]produce_requested_data [12:24:02]requested_item fm.sn is exist - process it [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 11 00 00 [12:24:02]Write to MH i2c: E2 08 00 50 38 80 11 00 00 00 00 00 00 02 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 17 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 17 00 50 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 55 [12:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:24:02]wFMCommunicate OK [12:24:02]requested_item fd.num is exist - process it [12:24:02]SAM_PROTO_GetFieldsCounters [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 13 00 00 [12:24:02]Write to MH i2c: E2 08 00 51 38 80 13 00 00 00 00 00 00 05 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 62 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 62 00 51 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 20 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [12:24:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 20 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:02]wFMCommunicate OK [12:24:02]SAM_PROTO_GetFieldsCounters done [12:24:02]requested_item shift.num is exist - process it [12:24:02]requested_item shift.opened is exist - process it [12:24:02]req_shift_opened [12:24:02]FM_GetShiftState [12:24:02]SAM_PROTO_GetShiftState [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 13 01 00 [12:24:02]Write to MH i2c: E2 08 00 52 38 80 13 01 00 00 00 00 00 07 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 0E 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 0E 00 52 38 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 57 [12:24:02]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:24:02]wFMCommunicate OK [12:24:02]SAM_PROTO_GetShiftState done [12:24:02]FM_GetShiftState done [12:24:02]req_shift_opened done [12:24:02]requested_item shift.open_date is exist - process it [12:24:02]req_shift_open_date [12:24:02]req_shift_open_date done [12:24:02]produce_requested_data done [12:24:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192544,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:24:02]process_action_free close_receipt [12:24:02]json_value_free [12:24:02]json_value_free done [12:24:02]process_json_proto returns [12:24:02]Send response to host [12:24:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192544,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:24:02]free response buf [12:24:02]execute_script done [12:24:02]execute_script returns [12:24:02]free content buf [12:24:02]Sock 9.Close socket [12:24:02]Sock 9.Thread stoped [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:48]ConnectInit Can't connect to host [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:26]accept exits with 10 [12:25:26]New connection [12:25:26]New thread 3066707300 created [12:25:26]Thread 3066563940 joined [12:25:26]Waiting for new connection... [12:25:26] Sock 10.Parse request [12:25:26]Sock 10.Check first char [12:25:26]Sock 10.First char is OK [12:25:26]request: POST /json_proto HTTP/1.0 [12:25:26]Method: POST [12:25:26]URL: /json_proto [12:25:26]Method is POST - this is cgi request [12:25:26]url: /json_proto [12:25:26]query_string will be loaded in cgi processing [12:25:26]execute_cgi json_proto POST (null) [12:25:26]execute_cgi path=json_proto method=POST [12:25:26]POST find Content-Length [12:25:26]Host: 172.17.63.131:8080 [12:25:26]Content-Length: 676 [12:25:26]Content-Type: application/json [12:25:26] [12:25:26]POST finish read [12:25:26]Found Content-Length = 676 [12:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:26]execute_script... [12:25: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)31866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:26]POST & json_proto [12:25:26]process_json_proto [12:25:26]json parsed OK: [12:25:26]protocol is kg_v1.0 [12:25:26]action value=close_receipt [12:25:26]process_action close_receipt [12:25:26]cmd_close_receipt [12:25:26]MH_GetDate [12:25:26]Write to MH i2c: F0 00 00 53 38 7A [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: F0 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: F0 09 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: F0 09 00 53 38 00 BB 82 1F 67 22 05 6E 64 3F [12:25:26]GetLastDocTimeStamp 1730118243 [12:25:26]current date 1730118331 [12:25:26]FM_GetShiftState [12:25:26]SAM_PROTO_GetShiftState [12:25:26]wFMCommunicate request_size=4 [12:25:26]MH_SAM_APDU [12:25:26]CAPDU: 80 13 01 00 [12:25:26]Write to MH i2c: E2 08 00 54 38 80 13 01 00 00 00 00 00 09 [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:26]Read from MH i2c: E2 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 0E 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 0E 00 54 38 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 59 [12:25:26]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:25:26]wFMCommunicate OK [12:25:26]SAM_PROTO_GetShiftState done [12:25:26]FM_GetShiftState done [12:25:26]opened in 1730075620 [12:25:26]opened+sec_in_day 1730162020 [12:25:26]quantity*price = 50041 [12:25:26]sum+1 = 50042 [12:25:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 93 28.10.2024 12:25 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192545 ФПД: 239111850281261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122531&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192545&fm=239111850281261&tin=02508201610067®Number=0000000000091776&sum=50000 [12:25:27]StoreToDocumentArchive [12:25:27]shift 543 fd 192545 [12:25:27]save to /storage/0543/doc_00192545 [12:25:27]save last doc name /storage/0543/doc_00192545 to /storage/kkm_last_doc_name [12:25:27]save OK [12:25:27]Clear old archive folders... [12:25:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:27]tlvbuf is 019B6740 [12:25:27]SAM_PROTO_ClearQueue [12:25:27]wFMCommunicate request_size=4 [12:25:27]MH_SAM_APDU [12:25:27]CAPDU: 80 09 00 00 [12:25:27]Write to MH i2c: E2 08 00 61 38 80 09 00 00 00 00 00 00 0B [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:27]Read from MH i2c: E2 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 03 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 03 00 61 38 00 90 00 0D [12:25:27]RAPDU: 90 00 [12:25:27]wFMCommunicate OK [12:25:27]SAM_PROTO_ClearQueue done [12:25:27]KKMCreateOFDPacket [12:25:27]OFDProtocolAddRootSTLVToBuf [12:25:27]FM_MakeSignedData [12:25:27]FM_MakeSignedData [12:25:27]SAM_PROTO_SignData [12:25:27]wFMCommunicate request_size=4 [12:25:27]MH_SAM_APDU [12:25:27]CAPDU: 80 0D 01 02 [12:25:27]Write to MH i2c: E2 08 00 62 38 80 0D 01 02 00 00 00 00 13 [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:27]Read from MH i2c: E2 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 03 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 03 00 62 38 00 90 00 0E [12:25:27]RAPDU: 90 00 [12:25:27]wFMCommunicate OK [12:25:27]wFMCommunicate request_size=255 [12:25:27]MH_SAM_APDU [12:25:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 BB 82 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 F0 02 00 35 04 06 00 D9 [12:25:27]Write to MH i2c: E2 02 01 63 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 BB 82 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 F0 02 00 35 04 06 00 D9 00 00 D4 [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:27]Read from MH i2c: E2 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 03 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 03 00 63 38 00 90 00 0F [12:25:27]RAPDU: 90 00 [12:25:27]wFMCommunicate OK [12:25:27]wFMCommunicate request_size=10 [12:25:27]MH_SAM_APDU [12:25:27]CAPDU: 80 0D 02 02 05 78 90 E5 C9 2D [12:25:27]Write to MH i2c: E2 0D 00 64 38 80 0D 02 02 05 00 78 90 E5 C9 2D 00 00 03 [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:27]Read from MH i2c: E2 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 03 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 03 00 64 38 00 90 00 10 [12:25:27]RAPDU: 90 00 [12:25:27]wFMCommunicate OK [12:25:27]wFMCommunicate request_size=4 [12:25:27]MH_SAM_APDU [12:25:27]CAPDU: 80 0D 03 02 [12:25:27]Write to MH i2c: E2 08 00 65 38 80 0D 03 02 00 00 00 00 18 [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:27]Read from MH i2c: E2 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 0B 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 0B 00 65 38 00 D1 5A C2 DE CC CF EE 1D 90 00 8A [12:25:27]RAPDU: D1 5A C2 DE CC CF EE 1D 90 00 [12:25:27]wFMCommunicate OK [12:25:27]SAM_PROTO_SignData done [12:25:27]FM_MakeSignedData done [12:25:27]CreateOFDProtocolMessage [12:25:27]wFMCommunicate request_size=4 [12:25:27]MH_SAM_APDU [12:25:27]CAPDU: 80 11 00 00 [12:25:27]Write to MH i2c: E2 08 00 66 38 80 11 00 00 00 00 00 00 18 [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:27]Read from MH i2c: E2 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 17 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: E2 17 00 66 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6B [12:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:25:27]wFMCommunicate OK [12:25:27]CreateOFDProtocolMessage done [12:25:27]OFDSenderStorePacket 192545 [12:25:27]StoreOFDPacket docnum=192545 [12:25:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 16 90 07 01 78 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 BB 82 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 F0 02 00 35 04 06 00 D9 78 90 E5 C9 2D D1 5A C2 DE CC CF EE 1D [12:25:27]CheckFolder [12:25:27]dirname=/storage/ofd_packets [12:25:27]CheckFolder done [12:25:27]ProducePacketName [12:25:27]name=ofd_packets/00192545 [12:25:27]NVStorageSaveData ofd_packets/00192545 [12:25:27]File name is /storage/ofd_packets/00192545 [12:25:27]Write 301 bytes [12:25:27]NVStorageSaveData done [12:25:27]OFDSenderStorePacket done [12:25:27]KKMCreateOFDPacket done [12:25:27]NVStorageSaveData kkm_last_timestamp [12:25:27]File name is /storage/kkm_last_timestamp [12:25:27]Write 4 bytes [12:25:27]NVStorageSaveData done [12:25:27]ExternCall_PrintAddStr [12:25:27]wPrintStart [12:25:27]Write to MH i2c: 01 00 00 67 38 9F [12:25:27]Write i2c OK [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: 01 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: 01 07 00 [12:25:27]MH_I2C_Read... [12:25:27]Read from MH i2c: 01 07 00 67 38 00 00 00 00 00 FF 0F B4 [12:25:27]RasterBufferAndPrint [12:25:27]line Счет N : (1)31866 [12:25:27]line ИНН: 02508201610067 [12:25:27]line Контрольно-Кассовый Чек [12:25:27]line ПРОДАЖА [12:25:27]line ТРК (МРК, ГНК) : 12 [12:25:27]line Товар: 2710124130 [12:25:27]line Аи-92-К-5 [12:25:27]line 7.480 * 66.90 [12:25:27]line = 500.41 [12:25:27]line НДС 12% НСП 1% [12:25:27]line > о реализуемом товаре [12:25:27]line ОКРУГЛЕНИЕ: -0.41 [12:25:27]line ИТОГО: 500.00 [12:25:27]line Внесено: 500.00 [12:25:27]line СДАЧА: 0.00 [12:25:27]line НСП 1% : 4.43 [12:25:27]line НДС 12% : 53.14 [12:25:27]line Наличными: 500.00 [12:25:27]line Безнал.: 0.00 [12:25:27]line Место: АЗС № 170 "Партнер Нефть" [12:25:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:25:27]line СНО: Общий режим [12:25:27]line Чек 93 28.10.2024 12:25 [12:25:27]line Смена: 543 ФФД: 1.0 [12:25:27]line ЗНМ: 0300000110 [12:25:27]line РНМ: 0000000000091776 [12:25:27]line Версия ККМ: 001 [12:25:27]line ФМ: 0000000000871754 [12:25:27]line ФД: 192545 [12:25:27]line ФПД: 239111850281261 [12:25:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122531&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192545&fm=239111850281261&tin=02508201610067®Number=0000000000091776&sum=50000 [12:25:28]OFD Sender: Processing packet 192545 [packets to send 75, broken 74] [12:25:28]ProducePacketName [12:25:28]name=ofd_packets/00192545 [12:25:28]OFD Sender: To server: pG, [12:25:28]CommunicateWithHost lk.salyk.kg:30040 [12:25:28]ConnectInit lk.salyk.kg [12:25:28]written 0, free lines is 4095 [12:25:28]Connected sock=11 [12:25:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 16 90 07 01 78 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 BB 82 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 F0 02 00 35 04 06 00 D9 78 90 E5 C9 2D D1 5A C2 DE CC CF EE 1D [12:25:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D9 FF 47 00 A4 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 F0 02 00 F4 03 04 00 7F 27 1F 67 B6 04 01 00 00 65 14 E1 ED 65 63 34 05 [12:25:28]CommunicateWithHost err = 0 [12:25:28]CheckOFDResponse [12:25:28]1017 (14) - 77093643461234 [12:25:28]1041 (16) - 0000000000871754 [12:25:28]1040 (4) - 192545 [12:25:28]1012 (4) - 28.10.2024 05:56 [12:25:28]1206 (1) - 0 [12:25:28]OFD Sender: Remove packet 192545 [12:25:28]ProducePacketName [12:25:28]name=ofd_packets/00192545 [12:25:28]NVStorageDeleteData [12:25:28]Write to MH i2c: 01 00 00 92 38 CA [12:25:28]Write i2c OK [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: 01 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: 01 07 00 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: 01 07 00 92 38 00 00 00 00 00 A5 0C 82 [12:25:28]RasterBufferAndPrint [12:25:28]line [12:25:28]line [12:25:28]line [12:25:28]line [12:25:28]line [12:25:28]written 0, free lines is 3246 [12:25:28]MH_Cut [12:25:28]Write to MH i2c: D1 01 00 99 38 01 A3 [12:25:28]Write i2c OK [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: D1 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: D1 01 00 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: D1 01 00 99 38 00 A2 [12:25:28]Write to MH i2c: 01 00 00 9A 38 D2 [12:25:28]Write i2c OK [12:25:28]MH_I2C_Read... [12:25:29]OFD Sender: No OFD packet to send [12:25:29]*** Cut start [12:25:29]*** Partial cut [12:25:29]*** CUTSNS_PIN = 1 [12:25:29]*** CUTSNS_PIN = 0 [12:25:29]*** Brake cut motor [12:25:30]Read from MH i2c: 01 [12:25:30]MH_I2C_Read... [12:25:30]*** Stop cut motor [12:25:30]*** Cut end [12:25:30]Read from MH i2c: 01 07 00 [12:25:30]MH_I2C_Read... [12:25:30]Read from MH i2c: 01 07 00 9A 38 00 00 00 00 00 FF 0F E7 [12:25:30]process_action close_receipt done [12:25:30]requested_data is exist [12:25:30]produce_requested_data [12:25:30]requested_item fm.sn is exist - process it [12:25:30]wFMCommunicate request_size=4 [12:25:30]MH_SAM_APDU [12:25:30]CAPDU: 80 11 00 00 [12:25:30]Write to MH i2c: E2 08 00 9B 38 80 11 00 00 00 00 00 00 4D [12:25:30]Write i2c OK [12:25:30]MH_I2C_Read... [12:25:30]Read from MH i2c: E2 [12:25:30]MH_I2C_Read... [12:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:30]Read from MH i2c: E2 17 00 [12:25:30]MH_I2C_Read... [12:25:30]Read from MH i2c: E2 17 00 9B 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A0 [12:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:25:30]wFMCommunicate OK [12:25:30]requested_item fd.num is exist - process it [12:25:30]SAM_PROTO_GetFieldsCounters [12:25:30]wFMCommunicate request_size=4 [12:25:30]MH_SAM_APDU [12:25:30]CAPDU: 80 13 00 00 [12:25:30]Write to MH i2c: E2 08 00 9C 38 80 13 00 00 00 00 00 00 50 [12:25:30]Write i2c OK [12:25:30]MH_I2C_Read... [12:25:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:30]Read from MH i2c: E2 [12:25:30]MH_I2C_Read... [12:25:30]Read from MH i2c: E2 62 00 [12:25:30]MH_I2C_Read... [12:25:30]Read from MH i2c: E2 62 00 9C 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 21 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [12:25:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 21 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:30]wFMCommunicate OK [12:25:30]SAM_PROTO_GetFieldsCounters done [12:25:30]requested_item shift.num is exist - process it [12:25:30]requested_item shift.opened is exist - process it [12:25:30]req_shift_opened [12:25:30]FM_GetShiftState [12:25:30]SAM_PROTO_GetShiftState [12:25:30]wFMCommunicate request_size=4 [12:25:30]MH_SAM_APDU [12:25:30]CAPDU: 80 13 01 00 [12:25:30]Write to MH i2c: E2 08 00 9D 38 80 13 01 00 00 00 00 00 52 [12:25:30]Write i2c OK [12:25:30]MH_I2C_Read... [12:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:30]Read from MH i2c: E2 [12:25:30]MH_I2C_Read... [12:25:30]Read from MH i2c: E2 0E 00 [12:25:30]MH_I2C_Read... [12:25:30]Read from MH i2c: E2 0E 00 9D 38 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A2 [12:25:30]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:25:30]wFMCommunicate OK [12:25:30]SAM_PROTO_GetShiftState done [12:25:30]FM_GetShiftState done [12:25:30]req_shift_opened done [12:25:30]requested_item shift.open_date is exist - process it [12:25:30]req_shift_open_date [12:25:30]req_shift_open_date done [12:25:30]produce_requested_data done [12:25:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192545,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:25:30]process_action_free close_receipt [12:25:30]json_value_free [12:25:30]json_value_free done [12:25:30]process_json_proto returns [12:25:30]Send response to host [12:25:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192545,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:25:30]free response buf [12:25:30]execute_script done [12:25:30]execute_script returns [12:25:30]free content buf [12:25:30]Sock 10.Close socket [12:25:30]Sock 10.Thread stoped [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:55]accept exits with 9 [12:25:55]New connection [12:25:55]New thread 3066563940 created [12:25:55]Thread 3066707300 joined [12:25:55]Waiting for new connection... [12:25:55] Sock 9.Parse request [12:25:55]Sock 9.Check first char [12:25:55]Sock 9.First char is OK [12:25:55]request: POST /json_proto HTTP/1.0 [12:25:55]Method: POST [12:25:55]URL: /json_proto [12:25:55]Method is POST - this is cgi request [12:25:55]url: /json_proto [12:25:55]query_string will be loaded in cgi processing [12:25:55]execute_cgi json_proto POST (null) [12:25:55]execute_cgi path=json_proto method=POST [12:25:55]POST find Content-Length [12:25:55]Host: 172.17.63.131:8080 [12:25:55]Content-Length: 673 [12:25:55]Content-Type: application/json [12:25:55] [12:25:55]POST finish read [12:25:55]Found Content-Length = 673 [12:25:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:55]execute_script... [12:25:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:55]POST & json_proto [12:25:55]process_json_proto [12:25:55]json parsed OK: [12:25:55]protocol is kg_v1.0 [12:25:55]action value=close_receipt [12:25:55]process_action close_receipt [12:25:55]cmd_close_receipt [12:25:55]MH_GetDate [12:25:55]Write to MH i2c: F0 00 00 9E 38 C5 [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: F0 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: F0 09 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: F0 09 00 9E 38 00 D8 82 1F 67 22 05 6E 64 A7 [12:25:55]GetLastDocTimeStamp 1730118331 [12:25:55]current date 1730118360 [12:25:55]FM_GetShiftState [12:25:55]SAM_PROTO_GetShiftState [12:25:55]wFMCommunicate request_size=4 [12:25:55]MH_SAM_APDU [12:25:55]CAPDU: 80 13 01 00 [12:25:55]Write to MH i2c: E2 08 00 9F 38 80 13 01 00 00 00 00 00 54 [12:25:55]Write i2c OK [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 [12:25:55]MH_I2C_Read... [12:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:55]Read from MH i2c: E2 0E 00 [12:25:55]MH_I2C_Read... [12:25:55]Read from MH i2c: E2 0E 00 9F 38 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A4 [12:25:55]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:25:55]wFMCommunicate OK [12:25:55]SAM_PROTO_GetShiftState done [12:25:55]FM_GetShiftState done [12:25:55]opened in 1730075620 [12:25:55]opened+sec_in_day 1730162020 [12:25:55]quantity*price = 50063 [12:25:55]sum+1 = 50064 [12:25:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 94 28.10.2024 12:26 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192546 ФПД: 219502138169621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122600&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192546&fm=219502138169621&tin=02508201610067®Number=0000000000091776&sum=50000 [12:25:56]StoreToDocumentArchive [12:25:56]shift 543 fd 192546 [12:25:56]save to /storage/0543/doc_00192546 [12:25:56]save last doc name /storage/0543/doc_00192546 to /storage/kkm_last_doc_name [12:25:56]save OK [12:25:56]Clear old archive folders... [12:25:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:25:56]tlvbuf is 019D7CA0 [12:25:56]SAM_PROTO_ClearQueue [12:25:56]wFMCommunicate request_size=4 [12:25:56]MH_SAM_APDU [12:25:56]CAPDU: 80 09 00 00 [12:25:56]Write to MH i2c: E2 08 00 AC 38 80 09 00 00 00 00 00 00 56 [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:56]Read from MH i2c: E2 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 03 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 03 00 AC 38 00 90 00 58 [12:25:56]RAPDU: 90 00 [12:25:56]wFMCommunicate OK [12:25:56]SAM_PROTO_ClearQueue done [12:25:56]KKMCreateOFDPacket [12:25:56]OFDProtocolAddRootSTLVToBuf [12:25:56]FM_MakeSignedData [12:25:56]FM_MakeSignedData [12:25:56]SAM_PROTO_SignData [12:25:56]wFMCommunicate request_size=4 [12:25:56]MH_SAM_APDU [12:25:56]CAPDU: 80 0D 01 02 [12:25:56]Write to MH i2c: E2 08 00 AD 38 80 0D 01 02 00 00 00 00 5E [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:56]Read from MH i2c: E2 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 03 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 03 00 AD 38 00 90 00 59 [12:25:56]RAPDU: 90 00 [12:25:56]wFMCommunicate OK [12:25:56]wFMCommunicate request_size=255 [12:25:56]MH_SAM_APDU [12:25:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 D8 82 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 F0 02 00 35 04 06 00 C7 A2 D2 F9 [12:25:56]Write to MH i2c: E2 02 01 AE 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 D8 82 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 F0 02 00 35 04 06 00 C7 A2 D2 F9 00 00 17 [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:56]Read from MH i2c: E2 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 03 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 03 00 AE 38 00 90 00 5A [12:25:56]RAPDU: 90 00 [12:25:56]wFMCommunicate OK [12:25:56]wFMCommunicate request_size=7 [12:25:56]MH_SAM_APDU [12:25:56]CAPDU: 80 0D 02 02 02 19 15 [12:25:56]Write to MH i2c: E2 0A 00 AF 38 80 0D 02 02 02 00 19 15 00 00 93 [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:56]Read from MH i2c: E2 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 03 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 03 00 AF 38 00 90 00 5B [12:25:56]RAPDU: 90 00 [12:25:56]wFMCommunicate OK [12:25:56]wFMCommunicate request_size=4 [12:25:56]MH_SAM_APDU [12:25:56]CAPDU: 80 0D 03 02 [12:25:56]Write to MH i2c: E2 08 00 B0 38 80 0D 03 02 00 00 00 00 63 [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:56]Read from MH i2c: E2 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 0B 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 0B 00 B0 38 00 33 71 3D E6 8F 1C BF A7 90 00 3C [12:25:56]RAPDU: 33 71 3D E6 8F 1C BF A7 90 00 [12:25:56]wFMCommunicate OK [12:25:56]SAM_PROTO_SignData done [12:25:56]FM_MakeSignedData done [12:25:56]CreateOFDProtocolMessage [12:25:56]wFMCommunicate request_size=4 [12:25:56]MH_SAM_APDU [12:25:56]CAPDU: 80 11 00 00 [12:25:56]Write to MH i2c: E2 08 00 B1 38 80 11 00 00 00 00 00 00 63 [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:56]Read from MH i2c: E2 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 17 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: E2 17 00 B1 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B6 [12:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:25:56]wFMCommunicate OK [12:25:56]CreateOFDProtocolMessage done [12:25:56]OFDSenderStorePacket 192546 [12:25:56]StoreOFDPacket docnum=192546 [12:25:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BA 39 04 01 1F 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 D8 82 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 F0 02 00 35 04 06 00 C7 A2 D2 F9 19 15 33 71 3D E6 8F 1C BF A7 [12:25:56]CheckFolder [12:25:56]dirname=/storage/ofd_packets [12:25:56]CheckFolder done [12:25:56]ProducePacketName [12:25:56]name=ofd_packets/00192546 [12:25:56]NVStorageSaveData ofd_packets/00192546 [12:25:56]File name is /storage/ofd_packets/00192546 [12:25:56]Write 298 bytes [12:25:56]NVStorageSaveData done [12:25:56]OFDSenderStorePacket done [12:25:56]KKMCreateOFDPacket done [12:25:56]NVStorageSaveData kkm_last_timestamp [12:25:56]File name is /storage/kkm_last_timestamp [12:25:56]Write 4 bytes [12:25:56]NVStorageSaveData done [12:25:56]ExternCall_PrintAddStr [12:25:56]wPrintStart [12:25:56]Write to MH i2c: 01 00 00 B2 38 EA [12:25:56]Write i2c OK [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: 01 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: 01 07 00 [12:25:56]MH_I2C_Read... [12:25:56]Read from MH i2c: 01 07 00 B2 38 00 00 00 00 00 FF 0F FF [12:25:56]RasterBufferAndPrint [12:25:56]line Счет N : (1)31865 [12:25:56]line ИНН: 02508201610067 [12:25:56]line Контрольно-Кассовый Чек [12:25:56]line ПРОДАЖА [12:25:56]line ТРК (МРК, ГНК) : 11 [12:25:56]line Товар: 2710194210 [12:25:56]line ДТ-К-5 [12:25:56]line 6.570 * 76.20 [12:25:56]line = 500.63 [12:25:56]line НДС 12% НСП 1% [12:25:56]line > о реализуемом товаре [12:25:56]line ОКРУГЛЕНИЕ: -0.63 [12:25:56]line ИТОГО: 500.00 [12:25:56]line Внесено: 500.00 [12:25:56]line СДАЧА: 0.00 [12:25:56]line НСП 1% : 4.43 [12:25:56]line НДС 12% : 53.16 [12:25:56]line Наличными: 500.00 [12:25:56]line Безнал.: 0.00 [12:25:56]line Место: АЗС № 170 "Партнер Нефть" [12:25:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:25:56]line СНО: Общий режим [12:25:56]line Чек 94 28.10.2024 12:26 [12:25:56]line Смена: 543 ФФД: 1.0 [12:25:56]line ЗНМ: 0300000110 [12:25:56]line РНМ: 0000000000091776 [12:25:56]line Версия ККМ: 001 [12:25:56]line ФМ: 0000000000871754 [12:25:56]line ФД: 192546 [12:25:56]line ФПД: 219502138169621 [12:25:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122600&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192546&fm=219502138169621&tin=02508201610067®Number=0000000000091776&sum=50000 [12:25:56]written 0, free lines is 4095 [12:25:56]OFD Sender: Processing packet 192546 [packets to send 75, broken 74] [12:25:56]ProducePacketName [12:25:56]name=ofd_packets/00192546 [12:25:56]OFD Sender: To server: pG, [12:25:56]CommunicateWithHost lk.salyk.kg:30040 [12:25:56]ConnectInit lk.salyk.kg [12:25:57]Connected sock=11 [12:25:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BA 39 04 01 1F 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 D8 82 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 F0 02 00 35 04 06 00 C7 A2 D2 F9 19 15 33 71 3D E6 8F 1C BF A7 [12:25:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 88 D9 47 00 C2 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 F0 02 00 F4 03 04 00 9C 27 1F 67 B6 04 01 00 00 A9 DA A9 BB 70 E9 E1 46 [12:25:57]CommunicateWithHost err = 0 [12:25:57]CheckOFDResponse [12:25:57]1017 (14) - 77093643461234 [12:25:57]1041 (16) - 0000000000871754 [12:25:57]1040 (4) - 192546 [12:25:57]1012 (4) - 28.10.2024 05:56 [12:25:57]1206 (1) - 0 [12:25:57]OFD Sender: Remove packet 192546 [12:25:57]ProducePacketName [12:25:57]name=ofd_packets/00192546 [12:25:57]NVStorageDeleteData [12:25:57]Write to MH i2c: 01 00 00 DD 38 15 [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: 01 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: 01 07 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: 01 07 00 DD 38 00 00 00 00 00 AA 0C D2 [12:25:57]RasterBufferAndPrint [12:25:57]line [12:25:57]line [12:25:57]line [12:25:57]line [12:25:57]line [12:25:57]written 0, free lines is 3255 [12:25:57]MH_Cut [12:25:57]Write to MH i2c: D1 01 00 E4 38 01 EE [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: D1 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: D1 01 00 [12:25:57]MH_I2C_Read... [12:25:57]Read from MH i2c: D1 01 00 E4 38 00 ED [12:25:57]Write to MH i2c: 01 00 00 E5 38 1D [12:25:57]Write i2c OK [12:25:57]MH_I2C_Read... [12:25:57]OFD Sender: No OFD packet to send [12:25:58]*** Cut start [12:25:58]*** Partial cut [12:25:58]*** CUTSNS_PIN = 1 [12:25:58]*** CUTSNS_PIN = 0 [12:25:58]*** Brake cut motor [12:25:58]Read from MH i2c: 01 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: 01 07 00 [12:25:58]MH_I2C_Read... [12:25:58]*** Stop cut motor [12:25:58]Read from MH i2c: 01 07 00 E5 38 00 00 00 00 00 FF 0F 32 [12:25:58]process_action close_receipt done [12:25:58]requested_data is exist [12:25:58]produce_requested_data [12:25:58]requested_item fm.sn is exist - process it [12:25:58]wFMCommunicate request_size=4 [12:25:58]MH_SAM_APDU [12:25:58]CAPDU: 80 11 00 00 [12:25:58]Write to MH i2c: E2 08 00 E6 38 80 11 00 00 00 00 00 00 98 [12:25:58]*** Cut end [12:25:58]Write i2c OK [12:25:58]MH_I2C_Read... [12:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:58]Read from MH i2c: E2 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 17 00 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 17 00 E6 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EB [12:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:25:58]wFMCommunicate OK [12:25:58]requested_item fd.num is exist - process it [12:25:58]SAM_PROTO_GetFieldsCounters [12:25:58]wFMCommunicate request_size=4 [12:25:58]MH_SAM_APDU [12:25:58]CAPDU: 80 13 00 00 [12:25:58]Write to MH i2c: E2 08 00 E7 38 80 13 00 00 00 00 00 00 9B [12:25:58]Write i2c OK [12:25:58]MH_I2C_Read... [12:25:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:58]Read from MH i2c: E2 [12:25:58]MH_I2C_Read... [12:25:58]Read from MH i2c: E2 62 00 [12:25:58]MH_I2C_Read... [12:25:59]Read from MH i2c: E2 62 00 E7 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 22 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [12:25:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 22 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:59]wFMCommunicate OK [12:25:59]SAM_PROTO_GetFieldsCounters done [12:25:59]requested_item shift.num is exist - process it [12:25:59]requested_item shift.opened is exist - process it [12:25:59]req_shift_opened [12:25:59]FM_GetShiftState [12:25:59]SAM_PROTO_GetShiftState [12:25:59]wFMCommunicate request_size=4 [12:25:59]MH_SAM_APDU [12:25:59]CAPDU: 80 13 01 00 [12:25:59]Write to MH i2c: E2 08 00 E8 38 80 13 01 00 00 00 00 00 9D [12:25:59]Write i2c OK [12:25:59]MH_I2C_Read... [12:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:59]Read from MH i2c: E2 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: E2 0E 00 [12:25:59]MH_I2C_Read... [12:25:59]Read from MH i2c: E2 0E 00 E8 38 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 ED [12:25:59]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:25:59]wFMCommunicate OK [12:25:59]SAM_PROTO_GetShiftState done [12:25:59]FM_GetShiftState done [12:25:59]req_shift_opened done [12:25:59]requested_item shift.open_date is exist - process it [12:25:59]req_shift_open_date [12:25:59]req_shift_open_date done [12:25:59]produce_requested_data done [12:25:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192546,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:25:59]process_action_free close_receipt [12:25:59]json_value_free [12:25:59]json_value_free done [12:25:59]process_json_proto returns [12:25:59]Send response to host [12:25:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192546,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:25:59]free response buf [12:25:59]execute_script done [12:25:59]execute_script returns [12:25:59]free content buf [12:25:59]Sock 9.Close socket [12:25:59]Sock 9.Thread stoped [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [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:51]accept exits with 10 [12:31:51]New connection [12:31:51]New thread 3066707300 created [12:31:51]Thread 3066563940 joined [12:31:51]Waiting for new connection... [12:31:51] Sock 10.Parse request [12:31:51]Sock 10.Check first char [12:31:51]Sock 10.First char is OK [12:31:51]request: POST /json_proto HTTP/1.0 [12:31:51]Method: POST [12:31:51]URL: /json_proto [12:31:51]Method is POST - this is cgi request [12:31:51]url: /json_proto [12:31:51]query_string will be loaded in cgi processing [12:31:51]execute_cgi json_proto POST (null) [12:31:51]execute_cgi path=json_proto method=POST [12:31:51]POST find Content-Length [12:31:51]Host: 172.17.63.131:8080 [12:31:51]Content-Length: 681 [12:31:51]Content-Type: application/json [12:31:51] [12:31:51]POST finish read [12:31:51]Found Content-Length = 681 [12:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:51]execute_script... [12:31: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)31867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:51]POST & json_proto [12:31:51]process_json_proto [12:31:51]json parsed OK: [12:31:51]protocol is kg_v1.0 [12:31:51]action value=close_receipt [12:31:51]process_action close_receipt [12:31:51]cmd_close_receipt [12:31:51]MH_GetDate [12:31:51]Write to MH i2c: F0 00 00 E9 38 10 [12:31:51]Write i2c OK [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: F0 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: F0 09 00 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: F0 09 00 E9 38 00 3D 84 1F 67 22 05 6E 64 59 [12:31:51]GetLastDocTimeStamp 1730118360 [12:31:51]current date 1730118717 [12:31:51]FM_GetShiftState [12:31:51]SAM_PROTO_GetShiftState [12:31:51]wFMCommunicate request_size=4 [12:31:51]MH_SAM_APDU [12:31:51]CAPDU: 80 13 01 00 [12:31:51]Write to MH i2c: E2 08 00 EA 38 80 13 01 00 00 00 00 00 9F [12:31:51]Write i2c OK [12:31:51]MH_I2C_Read... [12:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:51]Read from MH i2c: E2 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: E2 0E 00 [12:31:51]MH_I2C_Read... [12:31:51]Read from MH i2c: E2 0E 00 EA 38 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EF [12:31:51]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:31:51]wFMCommunicate OK [12:31:51]SAM_PROTO_GetShiftState done [12:31:51]FM_GetShiftState done [12:31:51]opened in 1730075620 [12:31:51]opened+sec_in_day 1730162020 [12:31:51]quantity*price = 100015 [12:31:51]sum+1 = 100017 [12:31:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 95 28.10.2024 12:31 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192547 ФПД: 66960609826561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192547&fm=66960609826561&tin=02508201610067®Number=0000000000091776&sum=100000 [12:31:52]StoreToDocumentArchive [12:31:52]shift 543 fd 192547 [12:31:52]save to /storage/0543/doc_00192547 [12:31:52]save last doc name /storage/0543/doc_00192547 to /storage/kkm_last_doc_name [12:31:52]save OK [12:31:52]Clear old archive folders... [12:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:52]tlvbuf is 01AAD720 [12:31:52]SAM_PROTO_ClearQueue [12:31:52]wFMCommunicate request_size=4 [12:31:52]MH_SAM_APDU [12:31:52]CAPDU: 80 09 00 00 [12:31:52]Write to MH i2c: E2 08 00 F7 38 80 09 00 00 00 00 00 00 A1 [12:31:52]Write i2c OK [12:31:52]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 [12:31:53]MH_I2C_Read... [12:31:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:53]Read from MH i2c: E2 03 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 03 00 F7 38 00 90 00 A3 [12:31:53]RAPDU: 90 00 [12:31:53]wFMCommunicate OK [12:31:53]SAM_PROTO_ClearQueue done [12:31:53]KKMCreateOFDPacket [12:31:53]OFDProtocolAddRootSTLVToBuf [12:31:53]FM_MakeSignedData [12:31:53]FM_MakeSignedData [12:31:53]SAM_PROTO_SignData [12:31:53]wFMCommunicate request_size=4 [12:31:53]MH_SAM_APDU [12:31:53]CAPDU: 80 0D 01 02 [12:31:53]Write to MH i2c: E2 08 00 F8 38 80 0D 01 02 00 00 00 00 A9 [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:53]Read from MH i2c: E2 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 03 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 03 00 F8 38 00 90 00 A4 [12:31:53]RAPDU: 90 00 [12:31:53]wFMCommunicate OK [12:31:53]wFMCommunicate request_size=255 [12:31:53]MH_SAM_APDU [12:31:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 3D 84 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 F0 02 00 35 04 06 00 3C [12:31:53]Write to MH i2c: E2 02 01 F9 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 3D 84 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 F0 02 00 35 04 06 00 3C 00 00 4F [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]OFD Sender: No OFD packet to send [12:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:53]Read from MH i2c: E2 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 03 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 03 00 F9 38 00 90 00 A5 [12:31:53]RAPDU: 90 00 [12:31:53]wFMCommunicate OK [12:31:53]wFMCommunicate request_size=10 [12:31:53]MH_SAM_APDU [12:31:53]CAPDU: 80 0D 02 02 05 E6 7B 5C D7 01 [12:31:53]Write to MH i2c: E2 0D 00 FA 38 80 0D 02 02 05 00 E6 7B 5C D7 01 00 00 4B [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:53]Read from MH i2c: E2 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 03 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 03 00 FA 38 00 90 00 A6 [12:31:53]RAPDU: 90 00 [12:31:53]wFMCommunicate OK [12:31:53]wFMCommunicate request_size=4 [12:31:53]MH_SAM_APDU [12:31:53]CAPDU: 80 0D 03 02 [12:31:53]Write to MH i2c: E2 08 00 FB 38 80 0D 03 02 00 00 00 00 AE [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:53]Read from MH i2c: E2 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 0B 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 0B 00 FB 38 00 0C BD 2E 9A BB 04 F8 0C 90 00 03 [12:31:53]RAPDU: 0C BD 2E 9A BB 04 F8 0C 90 00 [12:31:53]wFMCommunicate OK [12:31:53]SAM_PROTO_SignData done [12:31:53]FM_MakeSignedData done [12:31:53]CreateOFDProtocolMessage [12:31:53]wFMCommunicate request_size=4 [12:31:53]MH_SAM_APDU [12:31:53]CAPDU: 80 11 00 00 [12:31:53]Write to MH i2c: E2 08 00 FC 38 80 11 00 00 00 00 00 00 AE [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:53]Read from MH i2c: E2 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 17 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: E2 17 00 FC 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 01 [12:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:31:53]wFMCommunicate OK [12:31:53]CreateOFDProtocolMessage done [12:31:53]OFDSenderStorePacket 192547 [12:31:53]StoreOFDPacket docnum=192547 [12:31:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 78 85 07 01 15 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 3D 84 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 F0 02 00 35 04 06 00 3C E6 7B 5C D7 01 0C BD 2E 9A BB 04 F8 0C [12:31:53]CheckFolder [12:31:53]dirname=/storage/ofd_packets [12:31:53]CheckFolder done [12:31:53]ProducePacketName [12:31:53]name=ofd_packets/00192547 [12:31:53]NVStorageSaveData ofd_packets/00192547 [12:31:53]File name is /storage/ofd_packets/00192547 [12:31:53]Write 301 bytes [12:31:53]NVStorageSaveData done [12:31:53]OFDSenderStorePacket done [12:31:53]KKMCreateOFDPacket done [12:31:53]NVStorageSaveData kkm_last_timestamp [12:31:53]File name is /storage/kkm_last_timestamp [12:31:53]Write 4 bytes [12:31:53]NVStorageSaveData done [12:31:53]ExternCall_PrintAddStr [12:31:53]wPrintStart [12:31:53]Write to MH i2c: 01 00 00 FD 38 35 [12:31:53]Write i2c OK [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: 01 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: 01 07 00 [12:31:53]MH_I2C_Read... [12:31:53]Read from MH i2c: 01 07 00 FD 38 00 00 00 00 00 FF 0F 4A [12:31:53]RasterBufferAndPrint [12:31:53]line Счет N : (1)31867 [12:31:53]line ИНН: 02508201610067 [12:31:53]line Контрольно-Кассовый Чек [12:31:53]line ПРОДАЖА [12:31:53]line ТРК (МРК, ГНК) : 21 [12:31:53]line Товар: 2710124130 [12:31:53]line Аи-92-К-5 [12:31:53]line 14.950 * 66.90 [12:31:53]line = 1000.16 [12:31:53]line НДС 12% НСП 1% [12:31:53]line > о реализуемом товаре [12:31:53]line ОКРУГЛЕНИЕ: -0.16 [12:31:53]line ИТОГО: 1000.00 [12:31:53]line Внесено: 1000.00 [12:31:53]line СДАЧА: 0.00 [12:31:53]line НСП 1% : 8.85 [12:31:53]line НДС 12% : 106.21 [12:31:53]line Наличными: 1000.00 [12:31:53]line Безнал.: 0.00 [12:31:53]line Место: АЗС № 170 "Партнер Нефть" [12:31:53]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:31:53]line СНО: Общий режим [12:31:53]line Чек 95 28.10.2024 12:31 [12:31:53]line Смена: 543 ФФД: 1.0 [12:31:53]line ЗНМ: 0300000110 [12:31:53]line РНМ: 0000000000091776 [12:31:53]line Версия ККМ: 001 [12:31:53]line ФМ: 0000000000871754 [12:31:53]line ФД: 192547 [12:31:53]line ФПД: 66960609826561 [12:31:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192547&fm=66960609826561&tin=02508201610067®Number=0000000000091776&sum=100000 [12:31:53]OFD Sender: Processing packet 192547 [packets to send 75, broken 74] [12:31:53]ProducePacketName [12:31:53]name=ofd_packets/00192547 [12:31:53]OFD Sender: To server: pG, [12:31:53]CommunicateWithHost lk.salyk.kg:30040 [12:31:53]ConnectInit lk.salyk.kg [12:31:53]written 0, free lines is 4095 [12:31:53]Connected sock=9 [12:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 78 85 07 01 15 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 3D 84 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 F0 02 00 35 04 06 00 3C E6 7B 5C D7 01 0C BD 2E 9A BB 04 F8 0C [12:31:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AD 36 47 00 D6 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 F0 02 00 F4 03 04 00 01 29 1F 67 B6 04 01 00 00 FC 58 41 FF 3B 25 75 23 [12:31:54]CommunicateWithHost err = 0 [12:31:54]CheckOFDResponse [12:31:54]1017 (14) - 77093643461234 [12:31:54]1041 (16) - 0000000000871754 [12:31:54]1040 (4) - 192547 [12:31:54]1012 (4) - 28.10.2024 06:02 [12:31:54]1206 (1) - 0 [12:31:54]OFD Sender: Remove packet 192547 [12:31:54]ProducePacketName [12:31:54]name=ofd_packets/00192547 [12:31:54]NVStorageDeleteData [12:31:54]Write to MH i2c: 01 00 00 28 39 61 [12:31:54]Write i2c OK [12:31:54]MH_I2C_Read... [12:31:54]Read from MH i2c: 01 [12:31:54]MH_I2C_Read... [12:31:54]Read from MH i2c: 01 07 00 [12:31:54]MH_I2C_Read... [12:31:54]Read from MH i2c: 01 07 00 28 39 00 00 00 00 00 BA 0C 2E [12:31:54]RasterBufferAndPrint [12:31:54]line [12:31:54]line [12:31:54]line [12:31:54]line [12:31:54]line [12:31:54]written 0, free lines is 3265 [12:31:54]MH_Cut [12:31:54]Write to MH i2c: D1 01 00 2F 39 01 3A [12:31:54]Write i2c OK [12:31:54]MH_I2C_Read... [12:31:54]Read from MH i2c: D1 [12:31:54]MH_I2C_Read... [12:31:54]Read from MH i2c: D1 01 00 [12:31:54]MH_I2C_Read... [12:31:54]Read from MH i2c: D1 01 00 2F 39 00 39 [12:31:54]Write to MH i2c: 01 00 00 30 39 69 [12:31:54]Write i2c OK [12:31:54]MH_I2C_Read... [12:31:54]OFD Sender: No OFD packet to send [12:31:55]*** Cut start [12:31:55]*** Partial cut [12:31:55]*** CUTSNS_PIN = 1 [12:31:55]*** CUTSNS_PIN = 0 [12:31:55]*** Brake cut motor [12:31:55]Read from MH i2c: 01 [12:31:55]MH_I2C_Read... [12:31:55]*** Stop cut motor [12:31:55]*** Cut end [12:31:55]Read from MH i2c: 01 07 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: 01 07 00 30 39 00 00 00 00 00 FF 0F 7E [12:31:55]process_action close_receipt done [12:31:55]requested_data is exist [12:31:55]produce_requested_data [12:31:55]requested_item fm.sn is exist - process it [12:31:55]wFMCommunicate request_size=4 [12:31:55]MH_SAM_APDU [12:31:55]CAPDU: 80 11 00 00 [12:31:55]Write to MH i2c: E2 08 00 31 39 80 11 00 00 00 00 00 00 E4 [12:31:55]Write i2c OK [12:31:55]MH_I2C_Read... [12:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:55]Read from MH i2c: E2 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 17 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 17 00 31 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 37 [12:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:31:55]wFMCommunicate OK [12:31:55]requested_item fd.num is exist - process it [12:31:55]SAM_PROTO_GetFieldsCounters [12:31:55]wFMCommunicate request_size=4 [12:31:55]MH_SAM_APDU [12:31:55]CAPDU: 80 13 00 00 [12:31:55]Write to MH i2c: E2 08 00 32 39 80 13 00 00 00 00 00 00 E7 [12:31:55]Write i2c OK [12:31:55]MH_I2C_Read... [12:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:55]Read from MH i2c: E2 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 62 00 [12:31:55]MH_I2C_Read... [12:31:55]Read from MH i2c: E2 62 00 32 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 23 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [12:31:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 23 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:55]wFMCommunicate OK [12:31:55]SAM_PROTO_GetFieldsCounters done [12:31:55]requested_item shift.num is exist - process it [12:31:55]requested_item shift.opened is exist - process it [12:31:55]req_shift_opened [12:31:55]FM_GetShiftState [12:31:55]SAM_PROTO_GetShiftState [12:31:55]wFMCommunicate request_size=4 [12:31:55]MH_SAM_APDU [12:31:55]CAPDU: 80 13 01 00 [12:31:55]Write to MH i2c: E2 08 00 33 39 80 13 01 00 00 00 00 00 E9 [12:31:55]Write i2c OK [12:31:55]MH_I2C_Read... [12:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:56]Read from MH i2c: E2 [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: E2 0E 00 [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: E2 0E 00 33 39 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 39 [12:31:56]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:31:56]wFMCommunicate OK [12:31:56]SAM_PROTO_GetShiftState done [12:31:56]FM_GetShiftState done [12:31:56]req_shift_opened done [12:31:56]requested_item shift.open_date is exist - process it [12:31:56]req_shift_open_date [12:31:56]req_shift_open_date done [12:31:56]produce_requested_data done [12:31:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192547,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:31:56]process_action_free close_receipt [12:31:56]json_value_free [12:31:56]json_value_free done [12:31:56]process_json_proto returns [12:31:56]Send response to host [12:31:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192547,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:31:56]free response buf [12:31:56]execute_script done [12:31:56]execute_script returns [12:31:56]free content buf [12:31:56]Sock 10.Close socket [12:31:56]Sock 10.Thread stoped [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:42]accept exits with 7 [12:32:42]New connection [12:32:42]New thread 3066563940 created [12:32:42]Thread 3066707300 joined [12:32:42]Waiting for new connection... [12:32:42] Sock 7.Parse request [12:32:42]Sock 7.Check first char [12:32:42]Sock 7.First char is OK [12:32:42]request: POST /json_proto HTTP/1.0 [12:32:42]Method: POST [12:32:42]URL: /json_proto [12:32:42]Method is POST - this is cgi request [12:32:42]url: /json_proto [12:32:42]query_string will be loaded in cgi processing [12:32:42]execute_cgi json_proto POST (null) [12:32:42]execute_cgi path=json_proto method=POST [12:32:42]POST find Content-Length [12:32:42]Host: 172.17.63.131:8080 [12:32:42]Content-Length: 677 [12:32:42]Content-Type: application/json [12:32:42] [12:32:42]POST finish read [12:32:42]Found Content-Length = 677 [12:32:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:42]execute_script... [12:32: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)31868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:42]POST & json_proto [12:32:42]process_json_proto [12:32:42]json parsed OK: [12:32:42]protocol is kg_v1.0 [12:32:42]action value=close_receipt [12:32:42]process_action close_receipt [12:32:42]cmd_close_receipt [12:32:42]MH_GetDate [12:32:42]Write to MH i2c: F0 00 00 34 39 5C [12:32:42]Write i2c OK [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: F0 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: F0 09 00 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: F0 09 00 34 39 00 6F 84 1F 67 22 05 6E 64 D7 [12:32:42]GetLastDocTimeStamp 1730118717 [12:32:42]current date 1730118767 [12:32:42]FM_GetShiftState [12:32:42]SAM_PROTO_GetShiftState [12:32:42]wFMCommunicate request_size=4 [12:32:42]MH_SAM_APDU [12:32:42]CAPDU: 80 13 01 00 [12:32:42]Write to MH i2c: E2 08 00 35 39 80 13 01 00 00 00 00 00 EB [12:32:42]Write i2c OK [12:32:42]MH_I2C_Read... [12:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:42]Read from MH i2c: E2 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: E2 0E 00 [12:32:42]MH_I2C_Read... [12:32:42]Read from MH i2c: E2 0E 00 35 39 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3B [12:32:42]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:32:42]wFMCommunicate OK [12:32:42]SAM_PROTO_GetShiftState done [12:32:42]FM_GetShiftState done [12:32:42]opened in 1730075620 [12:32:42]opened+sec_in_day 1730162020 [12:32:42]quantity*price = 90047 [12:32:42]sum+1 = 90048 [12:32:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 96 28.10.2024 12:32 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192548 ФПД: 55671486417559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123247&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192548&fm=55671486417559&tin=02508201610067®Number=0000000000091776&sum=90000 [12:32:43]StoreToDocumentArchive [12:32:43]shift 543 fd 192548 [12:32:43]save to /storage/0543/doc_00192548 [12:32:43]save last doc name /storage/0543/doc_00192548 to /storage/kkm_last_doc_name [12:32:43]save OK [12:32:43]Clear old archive folders... [12:32:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:43]tlvbuf is 01990F20 [12:32:43]SAM_PROTO_ClearQueue [12:32:43]wFMCommunicate request_size=4 [12:32:43]MH_SAM_APDU [12:32:43]CAPDU: 80 09 00 00 [12:32:43]Write to MH i2c: E2 08 00 42 39 80 09 00 00 00 00 00 00 ED [12:32:43]Write i2c OK [12:32:43]MH_I2C_Read... [12:32:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:43]Read from MH i2c: E2 [12:32:43]MH_I2C_Read... [12:32:43]Read from MH i2c: E2 03 00 [12:32:43]MH_I2C_Read... [12:32:43]Read from MH i2c: E2 03 00 42 39 00 90 00 EF [12:32:43]RAPDU: 90 00 [12:32:43]wFMCommunicate OK [12:32:43]SAM_PROTO_ClearQueue done [12:32:43]KKMCreateOFDPacket [12:32:43]OFDProtocolAddRootSTLVToBuf [12:32:43]FM_MakeSignedData [12:32:43]FM_MakeSignedData [12:32:43]SAM_PROTO_SignData [12:32:43]wFMCommunicate request_size=4 [12:32:43]MH_SAM_APDU [12:32:43]CAPDU: 80 0D 01 02 [12:32:43]Write to MH i2c: E2 08 00 43 39 80 0D 01 02 00 00 00 00 F5 [12:32:43]Write i2c OK [12:32:43]MH_I2C_Read... [12:32:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:43]Read from MH i2c: E2 [12:32:43]MH_I2C_Read... [12:32:43]Read from MH i2c: E2 03 00 [12:32:43]MH_I2C_Read... [12:32:43]Read from MH i2c: E2 03 00 43 39 00 90 00 F0 [12:32:43]RAPDU: 90 00 [12:32:43]wFMCommunicate OK [12:32:43]wFMCommunicate request_size=255 [12:32:43]MH_SAM_APDU [12:32: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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 6F 84 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 F0 02 00 35 04 06 00 32 [12:32:43]Write to MH i2c: E2 02 01 44 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 6F 84 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 F0 02 00 35 04 06 00 32 00 00 E8 [12:32:43]Write i2c OK [12:32:43]MH_I2C_Read... [12:32:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:44]Read from MH i2c: E2 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: E2 03 00 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: E2 03 00 44 39 00 90 00 F1 [12:32:44]RAPDU: 90 00 [12:32:44]wFMCommunicate OK [12:32:44]wFMCommunicate request_size=10 [12:32:44]MH_SAM_APDU [12:32:44]CAPDU: 80 0D 02 02 05 A2 07 2C 0A 97 [12:32:44]Write to MH i2c: E2 0D 00 45 39 80 0D 02 02 05 00 A2 07 2C 0A 97 00 00 78 [12:32:44]Write i2c OK [12:32:44]MH_I2C_Read... [12:32:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:44]Read from MH i2c: E2 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: E2 03 00 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: E2 03 00 45 39 00 90 00 F2 [12:32:44]RAPDU: 90 00 [12:32:44]wFMCommunicate OK [12:32:44]wFMCommunicate request_size=4 [12:32:44]MH_SAM_APDU [12:32:44]CAPDU: 80 0D 03 02 [12:32:44]Write to MH i2c: E2 08 00 46 39 80 0D 03 02 00 00 00 00 FA [12:32:44]Write i2c OK [12:32:44]MH_I2C_Read... [12:32:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:44]Read from MH i2c: E2 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: E2 0B 00 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: E2 0B 00 46 39 00 1B 68 09 B4 00 14 91 41 90 00 21 [12:32:44]RAPDU: 1B 68 09 B4 00 14 91 41 90 00 [12:32:44]wFMCommunicate OK [12:32:44]SAM_PROTO_SignData done [12:32:44]FM_MakeSignedData done [12:32:44]CreateOFDProtocolMessage [12:32:44]wFMCommunicate request_size=4 [12:32:44]MH_SAM_APDU [12:32:44]CAPDU: 80 11 00 00 [12:32:44]Write to MH i2c: E2 08 00 47 39 80 11 00 00 00 00 00 00 FA [12:32:44]Write i2c OK [12:32:44]MH_I2C_Read... [12:32:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:44]Read from MH i2c: E2 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: E2 17 00 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: E2 17 00 47 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4D [12:32:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:32:44]wFMCommunicate OK [12:32:44]CreateOFDProtocolMessage done [12:32:44]OFDSenderStorePacket 192548 [12:32:44]StoreOFDPacket docnum=192548 [12:32:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 21 6E 07 01 F6 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 6F 84 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 F0 02 00 35 04 06 00 32 A2 07 2C 0A 97 1B 68 09 B4 00 14 91 41 [12:32:44]CheckFolder [12:32:44]dirname=/storage/ofd_packets [12:32:44]CheckFolder done [12:32:44]ProducePacketName [12:32:44]name=ofd_packets/00192548 [12:32:44]NVStorageSaveData ofd_packets/00192548 [12:32:44]File name is /storage/ofd_packets/00192548 [12:32:44]Write 301 bytes [12:32:44]NVStorageSaveData done [12:32:44]OFDSenderStorePacket done [12:32:44]KKMCreateOFDPacket done [12:32:44]NVStorageSaveData kkm_last_timestamp [12:32:44]File name is /storage/kkm_last_timestamp [12:32:44]Write 4 bytes [12:32:44]NVStorageSaveData done [12:32:44]ExternCall_PrintAddStr [12:32:44]wPrintStart [12:32:44]Write to MH i2c: 01 00 00 48 39 81 [12:32:44]Write i2c OK [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: 01 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: 01 07 00 [12:32:44]MH_I2C_Read... [12:32:44]Read from MH i2c: 01 07 00 48 39 00 00 00 00 00 FF 0F 96 [12:32:44]RasterBufferAndPrint [12:32:44]line Счет N : (1)31868 [12:32:44]line ИНН: 02508201610067 [12:32:44]line Контрольно-Кассовый Чек [12:32:44]line ПРОДАЖА [12:32:44]line ТРК (МРК, ГНК) : 21 [12:32:44]line Товар: 2710124130 [12:32:44]line Аи-92-К-5 [12:32:44]line 13.460 * 66.90 [12:32:44]line = 900.47 [12:32:44]line НДС 12% НСП 1% [12:32:44]line > о реализуемом товаре [12:32:44]line ОКРУГЛЕНИЕ: -0.47 [12:32:44]line ИТОГО: 900.00 [12:32:44]line Внесено: 900.00 [12:32:44]line СДАЧА: 0.00 [12:32:44]line НСП 1% : 7.97 [12:32:44]line НДС 12% : 95.62 [12:32:44]line Наличными: 900.00 [12:32:44]line Безнал.: 0.00 [12:32:44]line Место: АЗС № 170 "Партнер Нефть" [12:32:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:32:44]line СНО: Общий режим [12:32:44]line Чек 96 28.10.2024 12:32 [12:32:44]line Смена: 543 ФФД: 1.0 [12:32:44]line ЗНМ: 0300000110 [12:32:44]line РНМ: 0000000000091776 [12:32:44]line Версия ККМ: 001 [12:32:44]line ФМ: 0000000000871754 [12:32:44]line ФД: 192548 [12:32:44]line ФПД: 55671486417559 [12:32:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123247&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192548&fm=55671486417559&tin=02508201610067®Number=0000000000091776&sum=90000 [12:32:44]OFD Sender: Processing packet 192548 [packets to send 75, broken 74] [12:32:44]ProducePacketName [12:32:44]name=ofd_packets/00192548 [12:32:44]OFD Sender: To server: pG, [12:32:44]CommunicateWithHost lk.salyk.kg:30040 [12:32:44]ConnectInit lk.salyk.kg [12:32:44]written 0, free lines is 4095 [12:32:44]Connected sock=9 [12:32:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 21 6E 07 01 F6 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 6F 84 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 F0 02 00 35 04 06 00 32 A2 07 2C 0A 97 1B 68 09 B4 00 14 91 41 [12:32:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BC DB 47 00 B4 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 F0 02 00 F4 03 04 00 34 29 1F 67 B6 04 01 00 00 15 4B 8F 4A B2 F6 48 9F [12:32:45]CommunicateWithHost err = 0 [12:32:45]CheckOFDResponse [12:32:45]1017 (14) - 77093643461234 [12:32:45]1041 (16) - 0000000000871754 [12:32:45]1040 (4) - 192548 [12:32:45]1012 (4) - 28.10.2024 06:03 [12:32:45]1206 (1) - 0 [12:32:45]OFD Sender: Remove packet 192548 [12:32:45]ProducePacketName [12:32:45]name=ofd_packets/00192548 [12:32:45]NVStorageDeleteData [12:32:45]Write to MH i2c: 01 00 00 73 39 AC [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: 01 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: 01 07 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: 01 07 00 73 39 00 00 00 00 00 A7 0C 66 [12:32:45]RasterBufferAndPrint [12:32:45]line [12:32:45]line [12:32:45]line [12:32:45]line [12:32:45]line [12:32:45]written 0, free lines is 3245 [12:32:45]MH_Cut [12:32:45]Write to MH i2c: D1 01 00 7A 39 01 85 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: D1 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: D1 01 00 [12:32:45]MH_I2C_Read... [12:32:45]Read from MH i2c: D1 01 00 7A 39 00 84 [12:32:45]Write to MH i2c: 01 00 00 7B 39 B4 [12:32:45]Write i2c OK [12:32:45]MH_I2C_Read... [12:32:45]OFD Sender: No OFD packet to send [12:32:45]*** Cut start [12:32:45]*** Partial cut [12:32:45]*** CUTSNS_PIN = 1 [12:32:46]*** CUTSNS_PIN = 0 [12:32:46]*** Brake cut motor [12:32:46]Read from MH i2c: 01 [12:32:46]MH_I2C_Read... [12:32:46]*** Stop cut motor [12:32:46]*** Cut end [12:32:46]Read from MH i2c: 01 07 00 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: 01 07 00 7B 39 00 00 00 00 00 FF 0F C9 [12:32:46]process_action close_receipt done [12:32:46]requested_data is exist [12:32:46]produce_requested_data [12:32:46]requested_item fm.sn is exist - process it [12:32:46]wFMCommunicate request_size=4 [12:32:46]MH_SAM_APDU [12:32:46]CAPDU: 80 11 00 00 [12:32:46]Write to MH i2c: E2 08 00 7C 39 80 11 00 00 00 00 00 00 2F [12:32:46]Write i2c OK [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: E2 [12:32:46]MH_I2C_Read... [12:32:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:46]Read from MH i2c: E2 17 00 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: E2 17 00 7C 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 82 [12:32:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:32:46]wFMCommunicate OK [12:32:46]requested_item fd.num is exist - process it [12:32:46]SAM_PROTO_GetFieldsCounters [12:32:46]wFMCommunicate request_size=4 [12:32:46]MH_SAM_APDU [12:32:46]CAPDU: 80 13 00 00 [12:32:46]Write to MH i2c: E2 08 00 7D 39 80 13 00 00 00 00 00 00 32 [12:32:46]Write i2c OK [12:32:46]MH_I2C_Read... [12:32:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:46]Read from MH i2c: E2 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: E2 62 00 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: E2 62 00 7D 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 24 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [12:32:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 24 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:46]wFMCommunicate OK [12:32:46]SAM_PROTO_GetFieldsCounters done [12:32:46]requested_item shift.num is exist - process it [12:32:46]requested_item shift.opened is exist - process it [12:32:46]req_shift_opened [12:32:46]FM_GetShiftState [12:32:46]SAM_PROTO_GetShiftState [12:32:46]wFMCommunicate request_size=4 [12:32:46]MH_SAM_APDU [12:32:46]CAPDU: 80 13 01 00 [12:32:46]Write to MH i2c: E2 08 00 7E 39 80 13 01 00 00 00 00 00 34 [12:32:46]Write i2c OK [12:32:46]MH_I2C_Read... [12:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:46]Read from MH i2c: E2 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: E2 0E 00 [12:32:46]MH_I2C_Read... [12:32:46]Read from MH i2c: E2 0E 00 7E 39 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 84 [12:32:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:32:46]wFMCommunicate OK [12:32:46]SAM_PROTO_GetShiftState done [12:32:46]FM_GetShiftState done [12:32:46]req_shift_opened done [12:32:46]requested_item shift.open_date is exist - process it [12:32:46]req_shift_open_date [12:32:46]req_shift_open_date done [12:32:46]produce_requested_data done [12:32:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192548,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:32:46]process_action_free close_receipt [12:32:46]json_value_free [12:32:46]json_value_free done [12:32:46]process_json_proto returns [12:32:46]Send response to host [12:32:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192548,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:32:46]free response buf [12:32:46]execute_script done [12:32:46]execute_script returns [12:32:46]free content buf [12:32:46]Sock 7.Close socket [12:32:46]Sock 7.Thread stoped [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:15]OFD Sender: No OFD packet to send [12:33:20]OFD Sender: No OFD packet to send [12:33:25]OFD Sender: No OFD packet to send [12:33:30]OFD Sender: No OFD packet to send [12:33:35]OFD Sender: No OFD packet to send [12:33:40]OFD Sender: No OFD packet to send [12:33:45]OFD Sender: No OFD packet to send [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:13]accept exits with 10 [12:34:13]New connection [12:34:13]New thread 3066707300 created [12:34:13]Thread 3066563940 joined [12:34:13]Waiting for new connection... [12:34:13] Sock 10.Parse request [12:34:13]Sock 10.Check first char [12:34:13]Sock 10.First char is OK [12:34:13]request: POST /json_proto HTTP/1.0 [12:34:13]Method: POST [12:34:13]URL: /json_proto [12:34:13]Method is POST - this is cgi request [12:34:13]url: /json_proto [12:34:13]query_string will be loaded in cgi processing [12:34:13]execute_cgi json_proto POST (null) [12:34:13]execute_cgi path=json_proto method=POST [12:34:13]POST find Content-Length [12:34:13]Host: 172.17.63.131:8080 [12:34:13]Content-Length: 676 [12:34:13]Content-Type: application/json [12:34:13] [12:34:13]POST finish read [12:34:13]Found Content-Length = 676 [12:34:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:13]execute_script... [12:34: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)31869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:13]POST & json_proto [12:34:13]process_json_proto [12:34:13]json parsed OK: [12:34:13]protocol is kg_v1.0 [12:34:13]action value=close_receipt [12:34:13]process_action close_receipt [12:34:13]cmd_close_receipt [12:34:13]MH_GetDate [12:34:13]Write to MH i2c: F0 00 00 7F 39 A7 [12:34:13]Write i2c OK [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: F0 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: F0 09 00 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: F0 09 00 7F 39 00 CA 84 1F 67 22 05 6E 64 7D [12:34:13]GetLastDocTimeStamp 1730118767 [12:34:13]current date 1730118858 [12:34:13]FM_GetShiftState [12:34:13]SAM_PROTO_GetShiftState [12:34:13]wFMCommunicate request_size=4 [12:34:13]MH_SAM_APDU [12:34:13]CAPDU: 80 13 01 00 [12:34:13]Write to MH i2c: E2 08 00 80 39 80 13 01 00 00 00 00 00 36 [12:34:13]Write i2c OK [12:34:13]MH_I2C_Read... [12:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:13]Read from MH i2c: E2 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 0E 00 [12:34:13]MH_I2C_Read... [12:34:13]Read from MH i2c: E2 0E 00 80 39 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 86 [12:34:13]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:34:13]wFMCommunicate OK [12:34:13]SAM_PROTO_GetShiftState done [12:34:13]FM_GetShiftState done [12:34:13]opened in 1730075620 [12:34:13]opened+sec_in_day 1730162020 [12:34:13]quantity*price = 50041 [12:34:13]sum+1 = 50042 [12:34:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 97 28.10.2024 12:34 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192549 ФПД: 79764832917130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123419&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192549&fm=79764832917130&tin=02508201610067®Number=0000000000091776&sum=50000 [12:34:14]StoreToDocumentArchive [12:34:14]shift 543 fd 192549 [12:34:14]save to /storage/0543/doc_00192549 [12:34:14]save last doc name /storage/0543/doc_00192549 to /storage/kkm_last_doc_name [12:34:14]save OK [12:34:14]Clear old archive folders... [12:34:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:14]tlvbuf is 01A87F70 [12:34:14]SAM_PROTO_ClearQueue [12:34:14]wFMCommunicate request_size=4 [12:34:14]MH_SAM_APDU [12:34:14]CAPDU: 80 09 00 00 [12:34:14]Write to MH i2c: E2 08 00 8D 39 80 09 00 00 00 00 00 00 38 [12:34:14]Write i2c OK [12:34:14]MH_I2C_Read... [12:34:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:14]Read from MH i2c: E2 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: E2 03 00 [12:34:14]MH_I2C_Read... [12:34:14]Read from MH i2c: E2 03 00 8D 39 00 90 00 3A [12:34:14]RAPDU: 90 00 [12:34:14]wFMCommunicate OK [12:34:14]SAM_PROTO_ClearQueue done [12:34:14]KKMCreateOFDPacket [12:34:14]OFDProtocolAddRootSTLVToBuf [12:34:14]FM_MakeSignedData [12:34:14]FM_MakeSignedData [12:34:14]SAM_PROTO_SignData [12:34:14]wFMCommunicate request_size=4 [12:34:14]MH_SAM_APDU [12:34:14]CAPDU: 80 0D 01 02 [12:34:14]Write to MH i2c: E2 08 00 8E 39 80 0D 01 02 00 00 00 00 40 [12:34:14]Write i2c OK [12:34:14]MH_I2C_Read... [12:34:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:15]Read from MH i2c: E2 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 03 00 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 03 00 8E 39 00 90 00 3B [12:34:15]RAPDU: 90 00 [12:34:15]wFMCommunicate OK [12:34:15]wFMCommunicate request_size=255 [12:34:15]MH_SAM_APDU [12:34:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CB 84 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 F0 02 00 35 04 06 00 48 [12:34:15]Write to MH i2c: E2 02 01 8F 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CB 84 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 F0 02 00 35 04 06 00 48 00 00 8A [12:34:15]Write i2c OK [12:34:15]MH_I2C_Read... [12:34:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:15]Read from MH i2c: E2 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 03 00 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 03 00 8F 39 00 90 00 3C [12:34:15]RAPDU: 90 00 [12:34:15]wFMCommunicate OK [12:34:15]wFMCommunicate request_size=10 [12:34:15]MH_SAM_APDU [12:34:15]CAPDU: 80 0D 02 02 05 8B B2 88 16 8A [12:34:15]Write to MH i2c: E2 0D 00 90 39 80 0D 02 02 05 00 8B B2 88 16 8A 00 00 B2 [12:34:15]Write i2c OK [12:34:15]MH_I2C_Read... [12:34:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:15]Read from MH i2c: E2 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 03 00 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 03 00 90 39 00 90 00 3D [12:34:15]RAPDU: 90 00 [12:34:15]wFMCommunicate OK [12:34:15]wFMCommunicate request_size=4 [12:34:15]MH_SAM_APDU [12:34:15]CAPDU: 80 0D 03 02 [12:34:15]Write to MH i2c: E2 08 00 91 39 80 0D 03 02 00 00 00 00 45 [12:34:15]Write i2c OK [12:34:15]MH_I2C_Read... [12:34:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:15]Read from MH i2c: E2 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 0B 00 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 0B 00 91 39 00 68 CF 5A 16 4E 18 E3 0D 90 00 43 [12:34:15]RAPDU: 68 CF 5A 16 4E 18 E3 0D 90 00 [12:34:15]wFMCommunicate OK [12:34:15]SAM_PROTO_SignData done [12:34:15]FM_MakeSignedData done [12:34:15]CreateOFDProtocolMessage [12:34:15]wFMCommunicate request_size=4 [12:34:15]MH_SAM_APDU [12:34:15]CAPDU: 80 11 00 00 [12:34:15]Write to MH i2c: E2 08 00 92 39 80 11 00 00 00 00 00 00 45 [12:34:15]Write i2c OK [12:34:15]MH_I2C_Read... [12:34:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:15]Read from MH i2c: E2 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 17 00 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: E2 17 00 92 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 98 [12:34:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:34:15]wFMCommunicate OK [12:34:15]CreateOFDProtocolMessage done [12:34:15]OFDSenderStorePacket 192549 [12:34:15]StoreOFDPacket docnum=192549 [12:34:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 E6 07 01 B1 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CB 84 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 F0 02 00 35 04 06 00 48 8B B2 88 16 8A 68 CF 5A 16 4E 18 E3 0D [12:34:15]CheckFolder [12:34:15]dirname=/storage/ofd_packets [12:34:15]CheckFolder done [12:34:15]ProducePacketName [12:34:15]name=ofd_packets/00192549 [12:34:15]NVStorageSaveData ofd_packets/00192549 [12:34:15]File name is /storage/ofd_packets/00192549 [12:34:15]Write 301 bytes [12:34:15]NVStorageSaveData done [12:34:15]OFDSenderStorePacket done [12:34:15]KKMCreateOFDPacket done [12:34:15]NVStorageSaveData kkm_last_timestamp [12:34:15]File name is /storage/kkm_last_timestamp [12:34:15]Write 4 bytes [12:34:15]NVStorageSaveData done [12:34:15]ExternCall_PrintAddStr [12:34:15]wPrintStart [12:34:15]Write to MH i2c: 01 00 00 93 39 CC [12:34:15]Write i2c OK [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: 01 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: 01 07 00 [12:34:15]MH_I2C_Read... [12:34:15]Read from MH i2c: 01 07 00 93 39 00 00 00 00 00 FF 0F E1 [12:34:15]RasterBufferAndPrint [12:34:15]line Счет N : (1)31869 [12:34:15]line ИНН: 02508201610067 [12:34:15]line Контрольно-Кассовый Чек [12:34:15]line ПРОДАЖА [12:34:15]line ТРК (МРК, ГНК) : 12 [12:34:15]line Товар: 2710124130 [12:34:15]line Аи-92-К-5 [12:34:15]line 7.480 * 66.90 [12:34:15]line = 500.41 [12:34:15]line НДС 12% НСП 1% [12:34:15]line > о реализуемом товаре [12:34:15]line ОКРУГЛЕНИЕ: -0.41 [12:34:15]line ИТОГО: 500.00 [12:34:15]line Внесено: 500.00 [12:34:15]line СДАЧА: 0.00 [12:34:15]line НСП 1% : 4.43 [12:34:15]line НДС 12% : 53.14 [12:34:15]line Наличными: 500.00 [12:34:15]line Безнал.: 0.00 [12:34:15]line Место: АЗС № 170 "Партнер Нефть" [12:34:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:34:15]line СНО: Общий режим [12:34:15]line Чек 97 28.10.2024 12:34 [12:34:15]line Смена: 543 ФФД: 1.0 [12:34:15]line ЗНМ: 0300000110 [12:34:15]line РНМ: 0000000000091776 [12:34:15]line Версия ККМ: 001 [12:34:15]line ФМ: 0000000000871754 [12:34:15]line ФД: 192549 [12:34:15]line ФПД: 79764832917130 [12:34:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123419&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192549&fm=79764832917130&tin=02508201610067®Number=0000000000091776&sum=50000 [12:34:15]OFD Sender: Processing packet 192549 [packets to send 75, broken 74] [12:34:15]ProducePacketName [12:34:15]name=ofd_packets/00192549 [12:34:15]OFD Sender: To server: pG, [12:34:15]CommunicateWithHost lk.salyk.kg:30040 [12:34:15]ConnectInit lk.salyk.kg [12:34:15]written 0, free lines is 4095 [12:34:15]Connected sock=9 [12:34:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 E6 07 01 B1 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CB 84 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 F0 02 00 35 04 06 00 48 8B B2 88 16 8A 68 CF 5A 16 4E 18 E3 0D [12:34:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AC 1C 47 00 2D 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 31 37 35 34 10 04 04 00 25 F0 02 00 F4 03 04 00 8F 29 1F 67 B6 04 01 00 00 59 86 5D 95 5F 9E 54 4D [12:34:16]CommunicateWithHost err = 0 [12:34:16]CheckOFDResponse [12:34:16]1017 (14) - 77093643461234 [12:34:16]1041 (16) - 0000000000871754 [12:34:16]1040 (4) - 192549 [12:34:16]1012 (4) - 28.10.2024 06:05 [12:34:16]1206 (1) - 0 [12:34:16]OFD Sender: Remove packet 192549 [12:34:16]ProducePacketName [12:34:16]name=ofd_packets/00192549 [12:34:16]NVStorageDeleteData [12:34:16]Write to MH i2c: 01 00 00 BE 39 F7 [12:34:16]Write i2c OK [12:34:16]MH_I2C_Read... [12:34:16]Read from MH i2c: 01 [12:34:16]MH_I2C_Read... [12:34:16]Read from MH i2c: 01 07 00 [12:34:16]MH_I2C_Read... [12:34:16]Read from MH i2c: 01 07 00 BE 39 00 00 00 00 00 AA 0C B4 [12:34:16]RasterBufferAndPrint [12:34:16]line [12:34:16]line [12:34:16]line [12:34:16]line [12:34:16]line [12:34:16]written 0, free lines is 3248 [12:34:16]MH_Cut [12:34:16]Write to MH i2c: D1 01 00 C5 39 01 D0 [12:34:16]Write i2c OK [12:34:16]MH_I2C_Read... [12:34:16]Read from MH i2c: D1 [12:34:16]MH_I2C_Read... [12:34:16]Read from MH i2c: D1 01 00 [12:34:16]MH_I2C_Read... [12:34:16]Read from MH i2c: D1 01 00 C5 39 00 CF [12:34:16]Write to MH i2c: 01 00 00 C6 39 FF [12:34:16]Write i2c OK [12:34:16]MH_I2C_Read... [12:34:16]OFD Sender: No OFD packet to send [12:34:17]*** Cut start [12:34:17]*** Partial cut [12:34:17]*** CUTSNS_PIN = 1 [12:34:17]*** CUTSNS_PIN = 0 [12:34:17]*** Brake cut motor [12:34:17]Read from MH i2c: 01 [12:34:17]MH_I2C_Read... [12:34:17]*** Stop cut motor [12:34:17]*** Cut end [12:34:17]Read from MH i2c: 01 07 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: 01 07 00 C6 39 00 00 00 00 00 FF 0F 14 [12:34:17]process_action close_receipt done [12:34:17]requested_data is exist [12:34:17]produce_requested_data [12:34:17]requested_item fm.sn is exist - process it [12:34:17]wFMCommunicate request_size=4 [12:34:17]MH_SAM_APDU [12:34:17]CAPDU: 80 11 00 00 [12:34:17]Write to MH i2c: E2 08 00 C7 39 80 11 00 00 00 00 00 00 7A [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:17]Read from MH i2c: E2 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 17 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 17 00 C7 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CD [12:34:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:34:17]wFMCommunicate OK [12:34:17]requested_item fd.num is exist - process it [12:34:17]SAM_PROTO_GetFieldsCounters [12:34:17]wFMCommunicate request_size=4 [12:34:17]MH_SAM_APDU [12:34:17]CAPDU: 80 13 00 00 [12:34:17]Write to MH i2c: E2 08 00 C8 39 80 13 00 00 00 00 00 00 7D [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:17]Read from MH i2c: E2 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 62 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 62 00 C8 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 25 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [12:34:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 25 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:17]wFMCommunicate OK [12:34:17]SAM_PROTO_GetFieldsCounters done [12:34:17]requested_item shift.num is exist - process it [12:34:17]requested_item shift.opened is exist - process it [12:34:17]req_shift_opened [12:34:17]FM_GetShiftState [12:34:17]SAM_PROTO_GetShiftState [12:34:17]wFMCommunicate request_size=4 [12:34:17]MH_SAM_APDU [12:34:17]CAPDU: 80 13 01 00 [12:34:17]Write to MH i2c: E2 08 00 C9 39 80 13 01 00 00 00 00 00 7F [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:17]Read from MH i2c: E2 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 0E 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 0E 00 C9 39 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CF [12:34:17]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:34:17]wFMCommunicate OK [12:34:17]SAM_PROTO_GetShiftState done [12:34:17]FM_GetShiftState done [12:34:17]req_shift_opened done [12:34:17]requested_item shift.open_date is exist - process it [12:34:17]req_shift_open_date [12:34:17]req_shift_open_date done [12:34:17]produce_requested_data done [12:34:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192549,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:34:17]process_action_free close_receipt [12:34:17]json_value_free [12:34:17]json_value_free done [12:34:17]process_json_proto returns [12:34:17]Send response to host [12:34:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192549,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:34:17]free response buf [12:34:17]execute_script done [12:34:17]execute_script returns [12:34:17]free content buf [12:34:17]Sock 10.Close socket [12:34:17]Sock 10.Thread stoped [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:51]accept exits with 7 [12:34:51]New connection [12:34:51]New thread 3066563940 created [12:34:51]Thread 3066707300 joined [12:34:51]Waiting for new connection... [12:34:51] Sock 7.Parse request [12:34:51]Sock 7.Check first char [12:34:51]Sock 7.First char is OK [12:34:51]request: POST /json_proto HTTP/1.0 [12:34:51]Method: POST [12:34:51]URL: /json_proto [12:34:51]Method is POST - this is cgi request [12:34:51]url: /json_proto [12:34:51]query_string will be loaded in cgi processing [12:34:51]execute_cgi json_proto POST (null) [12:34:51]execute_cgi path=json_proto method=POST [12:34:51]POST find Content-Length [12:34:51]Host: 172.17.63.131:8080 [12:34:51]Content-Length: 676 [12:34:51]Content-Type: application/json [12:34:51] [12:34:51]POST finish read [12:34:51]Found Content-Length = 676 [12:34:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:51]execute_script... [12:34: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)31870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:51]POST & json_proto [12:34:51]process_json_proto [12:34:51]json parsed OK: [12:34:51]protocol is kg_v1.0 [12:34:51]action value=close_receipt [12:34:51]process_action close_receipt [12:34:51]cmd_close_receipt [12:34:51]MH_GetDate [12:34:51]Write to MH i2c: F0 00 00 CA 39 F2 [12:34:51]Write i2c OK [12:34:51]MH_I2C_Read... [12:34:51]Read from MH i2c: F0 [12:34:51]MH_I2C_Read... [12:34:51]Read from MH i2c: F0 09 00 [12:34:51]MH_I2C_Read... [12:34:51]Read from MH i2c: F0 09 00 CA 39 00 F1 84 1F 67 22 05 6E 64 EF [12:34:51]GetLastDocTimeStamp 1730118859 [12:34:51]current date 1730118897 [12:34:51]FM_GetShiftState [12:34:51]SAM_PROTO_GetShiftState [12:34:51]wFMCommunicate request_size=4 [12:34:51]MH_SAM_APDU [12:34:51]CAPDU: 80 13 01 00 [12:34:51]Write to MH i2c: E2 08 00 CB 39 80 13 01 00 00 00 00 00 81 [12:34:51]Write i2c OK [12:34:51]MH_I2C_Read... [12:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:52]Read from MH i2c: E2 [12:34:52]MH_I2C_Read... [12:34:52]Read from MH i2c: E2 0E 00 [12:34:52]MH_I2C_Read... [12:34:52]Read from MH i2c: E2 0E 00 CB 39 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D1 [12:34:52]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:34:52]wFMCommunicate OK [12:34:52]SAM_PROTO_GetShiftState done [12:34:52]FM_GetShiftState done [12:34:52]opened in 1730075620 [12:34:52]opened+sec_in_day 1730162020 [12:34:52]quantity*price = 10035 [12:34:52]sum+1 = 10036 [12:34:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 98 28.10.2024 12:34 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192550 ФПД: 259545101253719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123457&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192550&fm=259545101253719&tin=02508201610067®Number=0000000000091776&sum=10000 [12:34:53]StoreToDocumentArchive [12:34:53]shift 543 fd 192550 [12:34:53]save to /storage/0543/doc_00192550 [12:34:53]save last doc name /storage/0543/doc_00192550 to /storage/kkm_last_doc_name [12:34:53]save OK [12:34:53]Clear old archive folders... [12:34:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:53]tlvbuf is 019D4B20 [12:34:53]SAM_PROTO_ClearQueue [12:34:53]wFMCommunicate request_size=4 [12:34:53]MH_SAM_APDU [12:34:53]CAPDU: 80 09 00 00 [12:34:53]Write to MH i2c: E2 08 00 D8 39 80 09 00 00 00 00 00 00 83 [12:34:53]Write i2c OK [12:34:53]MH_I2C_Read... [12:34:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:53]Read from MH i2c: E2 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 03 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 03 00 D8 39 00 90 00 85 [12:34:53]RAPDU: 90 00 [12:34:53]wFMCommunicate OK [12:34:53]SAM_PROTO_ClearQueue done [12:34:53]KKMCreateOFDPacket [12:34:53]OFDProtocolAddRootSTLVToBuf [12:34:53]FM_MakeSignedData [12:34:53]FM_MakeSignedData [12:34:53]SAM_PROTO_SignData [12:34:53]wFMCommunicate request_size=4 [12:34:53]MH_SAM_APDU [12:34:53]CAPDU: 80 0D 01 02 [12:34:53]Write to MH i2c: E2 08 00 D9 39 80 0D 01 02 00 00 00 00 8B [12:34:53]Write i2c OK [12:34:53]MH_I2C_Read... [12:34:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:53]Read from MH i2c: E2 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 03 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 03 00 D9 39 00 90 00 86 [12:34:53]RAPDU: 90 00 [12:34:53]wFMCommunicate OK [12:34:53]wFMCommunicate request_size=255 [12:34:53]MH_SAM_APDU [12:34: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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F1 84 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 F0 02 00 35 04 06 00 EC [12:34:53]Write to MH i2c: E2 02 01 DA 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F1 84 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 F0 02 00 35 04 06 00 EC 00 00 88 [12:34:53]Write i2c OK [12:34:53]MH_I2C_Read... [12:34:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:53]Read from MH i2c: E2 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 03 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 03 00 DA 39 00 90 00 87 [12:34:53]RAPDU: 90 00 [12:34:53]wFMCommunicate OK [12:34:53]wFMCommunicate request_size=10 [12:34:53]MH_SAM_APDU [12:34:53]CAPDU: 80 0D 02 02 05 0E 0D 90 3C 57 [12:34:53]Write to MH i2c: E2 0D 00 DB 39 80 0D 02 02 05 00 0E 0D 90 3C 57 00 00 D6 [12:34:53]Write i2c OK [12:34:53]MH_I2C_Read... [12:34:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:53]Read from MH i2c: E2 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 03 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 03 00 DB 39 00 90 00 88 [12:34:53]RAPDU: 90 00 [12:34:53]wFMCommunicate OK [12:34:53]wFMCommunicate request_size=4 [12:34:53]MH_SAM_APDU [12:34:53]CAPDU: 80 0D 03 02 [12:34:53]Write to MH i2c: E2 08 00 DC 39 80 0D 03 02 00 00 00 00 90 [12:34:53]Write i2c OK [12:34:53]MH_I2C_Read... [12:34:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:53]Read from MH i2c: E2 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 0B 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 0B 00 DC 39 00 3C 3C 72 91 DA 74 A4 28 90 00 26 [12:34:53]RAPDU: 3C 3C 72 91 DA 74 A4 28 90 00 [12:34:53]wFMCommunicate OK [12:34:53]SAM_PROTO_SignData done [12:34:53]FM_MakeSignedData done [12:34:53]CreateOFDProtocolMessage [12:34:53]wFMCommunicate request_size=4 [12:34:53]MH_SAM_APDU [12:34:53]CAPDU: 80 11 00 00 [12:34:53]Write to MH i2c: E2 08 00 DD 39 80 11 00 00 00 00 00 00 90 [12:34:53]Write i2c OK [12:34:53]MH_I2C_Read... [12:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:53]Read from MH i2c: E2 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 17 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 17 00 DD 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E3 [12:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:34:53]wFMCommunicate OK [12:34:53]CreateOFDProtocolMessage done [12:34:53]OFDSenderStorePacket 192550 [12:34:53]StoreOFDPacket docnum=192550 [12:34:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 48 67 07 01 D3 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F1 84 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 F0 02 00 35 04 06 00 EC 0E 0D 90 3C 57 3C 3C 72 91 DA 74 A4 28 [12:34:53]CheckFolder [12:34:53]dirname=/storage/ofd_packets [12:34:53]CheckFolder done [12:34:53]ProducePacketName [12:34:53]name=ofd_packets/00192550 [12:34:53]NVStorageSaveData ofd_packets/00192550 [12:34:53]File name is /storage/ofd_packets/00192550 [12:34:53]Write 301 bytes [12:34:53]NVStorageSaveData done [12:34:53]OFDSenderStorePacket done [12:34:53]KKMCreateOFDPacket done [12:34:53]NVStorageSaveData kkm_last_timestamp [12:34:53]File name is /storage/kkm_last_timestamp [12:34:53]Write 4 bytes [12:34:53]NVStorageSaveData done [12:34:53]ExternCall_PrintAddStr [12:34:53]wPrintStart [12:34:53]Write to MH i2c: 01 00 00 DE 39 17 [12:34:53]Write i2c OK [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: 01 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: 01 07 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: 01 07 00 DE 39 00 00 00 00 00 FF 0F 2C [12:34:53]RasterBufferAndPrint [12:34:53]line Счет N : (1)31870 [12:34:53]line ИНН: 02508201610067 [12:34:53]line Контрольно-Кассовый Чек [12:34:53]line ПРОДАЖА [12:34:53]line ТРК (МРК, ГНК) : 21 [12:34:53]line Товар: 2710124130 [12:34:53]line Аи-92-К-5 [12:34:53]line 1.500 * 66.90 [12:34:53]line = 100.35 [12:34:53]line НДС 12% НСП 1% [12:34:53]line > о реализуемом товаре [12:34:53]line ОКРУГЛЕНИЕ: -0.35 [12:34:53]line ИТОГО: 100.00 [12:34:53]line Внесено: 100.00 [12:34:53]line СДАЧА: 0.00 [12:34:53]line НСП 1% : 0.89 [12:34:53]line НДС 12% : 10.66 [12:34:53]line Наличными: 100.00 [12:34:53]line Безнал.: 0.00 [12:34:53]line Место: АЗС № 170 "Партнер Нефть" [12:34:53]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:34:53]line СНО: Общий режим [12:34:53]line Чек 98 28.10.2024 12:34 [12:34:53]line Смена: 543 ФФД: 1.0 [12:34:53]line ЗНМ: 0300000110 [12:34:53]line РНМ: 0000000000091776 [12:34:53]line Версия ККМ: 001 [12:34:53]line ФМ: 0000000000871754 [12:34:53]line ФД: 192550 [12:34:53]line ФПД: 259545101253719 [12:34:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123457&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192550&fm=259545101253719&tin=02508201610067®Number=0000000000091776&sum=10000 [12:34:54]OFD Sender: Processing packet 192550 [packets to send 75, broken 74] [12:34:54]ProducePacketName [12:34:54]name=ofd_packets/00192550 [12:34:54]OFD Sender: To server: pG, [12:34:54]CommunicateWithHost lk.salyk.kg:30040 [12:34:54]ConnectInit lk.salyk.kg [12:34:54]written 0, free lines is 4095 [12:34:54]Connected sock=10 [12:34:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 48 67 07 01 D3 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F1 84 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 F0 02 00 35 04 06 00 EC 0E 0D 90 3C 57 3C 3C 72 91 DA 74 A4 28 [12:34:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 74 38 47 00 B8 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 F0 02 00 F4 03 04 00 B5 29 1F 67 B6 04 01 00 00 03 B0 5B F9 97 20 5C 45 [12:34:54]CommunicateWithHost err = 0 [12:34:54]CheckOFDResponse [12:34:54]1017 (14) - 77093643461234 [12:34:54]1041 (16) - 0000000000871754 [12:34:54]1040 (4) - 192550 [12:34:54]1012 (4) - 28.10.2024 06:05 [12:34:54]1206 (1) - 0 [12:34:54]OFD Sender: Remove packet 192550 [12:34:54]ProducePacketName [12:34:54]name=ofd_packets/00192550 [12:34:54]NVStorageDeleteData [12:34:54]Write to MH i2c: 01 00 00 09 3A 43 [12:34:54]Write i2c OK [12:34:54]MH_I2C_Read... [12:34:54]Read from MH i2c: 01 [12:34:54]MH_I2C_Read... [12:34:54]Read from MH i2c: 01 07 00 [12:34:54]MH_I2C_Read... [12:34:54]Read from MH i2c: 01 07 00 09 3A 00 00 00 00 00 A9 0C FF [12:34:54]RasterBufferAndPrint [12:34:54]line [12:34:54]line [12:34:54]line [12:34:54]line [12:34:54]line [12:34:54]written 0, free lines is 3247 [12:34:54]MH_Cut [12:34:54]Write to MH i2c: D1 01 00 10 3A 01 1C [12:34:54]Write i2c OK [12:34:54]MH_I2C_Read... [12:34:54]Read from MH i2c: D1 [12:34:54]MH_I2C_Read... [12:34:54]Read from MH i2c: D1 01 00 [12:34:54]MH_I2C_Read... [12:34:54]Read from MH i2c: D1 01 00 10 3A 00 1B [12:34:54]Write to MH i2c: 01 00 00 11 3A 4B [12:34:54]Write i2c OK [12:34:54]MH_I2C_Read... [12:34:54]OFD Sender: No OFD packet to send [12:34:55]*** Cut start [12:34:55]*** Partial cut [12:34:55]*** CUTSNS_PIN = 1 [12:34:55]*** CUTSNS_PIN = 0 [12:34:55]*** Brake cut motor [12:34:55]Read from MH i2c: 01 [12:34:55]MH_I2C_Read... [12:34:55]*** Stop cut motor [12:34:55]*** Cut end [12:34:55]Read from MH i2c: 01 07 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: 01 07 00 11 3A 00 00 00 00 00 FF 0F 60 [12:34:55]process_action close_receipt done [12:34:55]requested_data is exist [12:34:55]produce_requested_data [12:34:55]requested_item fm.sn is exist - process it [12:34:55]wFMCommunicate request_size=4 [12:34:55]MH_SAM_APDU [12:34:55]CAPDU: 80 11 00 00 [12:34:55]Write to MH i2c: E2 08 00 12 3A 80 11 00 00 00 00 00 00 C6 [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:55]Read from MH i2c: E2 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 17 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 17 00 12 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 19 [12:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:34:56]wFMCommunicate OK [12:34:56]requested_item fd.num is exist - process it [12:34:56]SAM_PROTO_GetFieldsCounters [12:34:56]wFMCommunicate request_size=4 [12:34:56]MH_SAM_APDU [12:34:56]CAPDU: 80 13 00 00 [12:34:56]Write to MH i2c: E2 08 00 13 3A 80 13 00 00 00 00 00 00 C9 [12:34:56]Write i2c OK [12:34:56]MH_I2C_Read... [12:34:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:56]Read from MH i2c: E2 [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: E2 62 00 [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: E2 62 00 13 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 26 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [12:34:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 26 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:56]wFMCommunicate OK [12:34:56]SAM_PROTO_GetFieldsCounters done [12:34:56]requested_item shift.num is exist - process it [12:34:56]requested_item shift.opened is exist - process it [12:34:56]req_shift_opened [12:34:56]FM_GetShiftState [12:34:56]SAM_PROTO_GetShiftState [12:34:56]wFMCommunicate request_size=4 [12:34:56]MH_SAM_APDU [12:34:56]CAPDU: 80 13 01 00 [12:34:56]Write to MH i2c: E2 08 00 14 3A 80 13 01 00 00 00 00 00 CB [12:34:56]Write i2c OK [12:34:56]MH_I2C_Read... [12:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:56]Read from MH i2c: E2 [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: E2 0E 00 [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: E2 0E 00 14 3A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1B [12:34:56]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:34:56]wFMCommunicate OK [12:34:56]SAM_PROTO_GetShiftState done [12:34:56]FM_GetShiftState done [12:34:56]req_shift_opened done [12:34:56]requested_item shift.open_date is exist - process it [12:34:56]req_shift_open_date [12:34:56]req_shift_open_date done [12:34:56]produce_requested_data done [12:34:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192550,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:34:56]process_action_free close_receipt [12:34:56]json_value_free [12:34:56]json_value_free done [12:34:56]process_json_proto returns [12:34:56]Send response to host [12:34:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192550,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:34:56]free response buf [12:34:56]execute_script done [12:34:56]execute_script returns [12:34:56]free content buf [12:34:56]Sock 7.Close socket [12:34:56]Sock 7.Thread stoped [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:21]accept exits with 9 [12:36:21]New connection [12:36:21]New thread 3066707300 created [12:36:21]Thread 3066563940 joined [12:36:21]Waiting for new connection... [12:36:21] Sock 9.Parse request [12:36:21]Sock 9.Check first char [12:36:21]Sock 9.First char is OK [12:36:21]request: POST /json_proto HTTP/1.0 [12:36:21]Method: POST [12:36:21]URL: /json_proto [12:36:21]Method is POST - this is cgi request [12:36:21]url: /json_proto [12:36:21]query_string will be loaded in cgi processing [12:36:21]execute_cgi json_proto POST (null) [12:36:21]execute_cgi path=json_proto method=POST [12:36:21]POST find Content-Length [12:36:21]Host: 172.17.63.131:8080 [12:36:21]Content-Length: 678 [12:36:21]Content-Type: application/json [12:36:21] [12:36:21]POST finish read [12:36:21]Found Content-Length = 678 [12:36:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:21]execute_script... [12:36: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)31871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:21]POST & json_proto [12:36:21]process_json_proto [12:36:21]json parsed OK: [12:36:21]protocol is kg_v1.0 [12:36:21]action value=close_receipt [12:36:21]process_action close_receipt [12:36:21]cmd_close_receipt [12:36:21]MH_GetDate [12:36:21]Write to MH i2c: F0 00 00 15 3A 3E [12:36:21]Write i2c OK [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: F0 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: F0 09 00 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: F0 09 00 15 3A 00 4A 85 1F 67 22 05 6E 64 95 [12:36:21]GetLastDocTimeStamp 1730118897 [12:36:21]current date 1730118986 [12:36:21]FM_GetShiftState [12:36:21]SAM_PROTO_GetShiftState [12:36:21]wFMCommunicate request_size=4 [12:36:21]MH_SAM_APDU [12:36:21]CAPDU: 80 13 01 00 [12:36:21]Write to MH i2c: E2 08 00 16 3A 80 13 01 00 00 00 00 00 CD [12:36:21]Write i2c OK [12:36:21]MH_I2C_Read... [12:36:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:21]Read from MH i2c: E2 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 0E 00 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 0E 00 16 3A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1D [12:36:21]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:36:21]wFMCommunicate OK [12:36:21]SAM_PROTO_GetShiftState done [12:36:21]FM_GetShiftState done [12:36:21]opened in 1730075620 [12:36:21]opened+sec_in_day 1730162020 [12:36:21]quantity*price = 100050 [12:36:21]sum+1 = 100052 [12:36:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 99 28.10.2024 12:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192551 ФПД: 140939712129823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123626&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192551&fm=140939712129823&tin=02508201610067®Number=0000000000091776&sum=100000 [12:36:22]StoreToDocumentArchive [12:36:22]shift 543 fd 192551 [12:36:22]save to /storage/0543/doc_00192551 [12:36:22]save last doc name /storage/0543/doc_00192551 to /storage/kkm_last_doc_name [12:36:22]save OK [12:36:22]Clear old archive folders... [12:36:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:36:22]tlvbuf is 01A38FE0 [12:36:22]SAM_PROTO_ClearQueue [12:36:22]wFMCommunicate request_size=4 [12:36:22]MH_SAM_APDU [12:36:22]CAPDU: 80 09 00 00 [12:36:22]Write to MH i2c: E2 08 00 23 3A 80 09 00 00 00 00 00 00 CF [12:36:22]Write i2c OK [12:36:22]MH_I2C_Read... [12:36:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:22]Read from MH i2c: E2 [12:36:22]MH_I2C_Read... [12:36:22]Read from MH i2c: E2 03 00 [12:36:22]MH_I2C_Read... [12:36:22]Read from MH i2c: E2 03 00 23 3A 00 90 00 D1 [12:36:22]RAPDU: 90 00 [12:36:22]wFMCommunicate OK [12:36:22]SAM_PROTO_ClearQueue done [12:36:22]KKMCreateOFDPacket [12:36:22]OFDProtocolAddRootSTLVToBuf [12:36:22]FM_MakeSignedData [12:36:22]FM_MakeSignedData [12:36:22]SAM_PROTO_SignData [12:36:22]wFMCommunicate request_size=4 [12:36:22]MH_SAM_APDU [12:36:22]CAPDU: 80 0D 01 02 [12:36:22]Write to MH i2c: E2 08 00 24 3A 80 0D 01 02 00 00 00 00 D7 [12:36:22]Write i2c OK [12:36:22]MH_I2C_Read... [12:36:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:22]Read from MH i2c: E2 [12:36:22]MH_I2C_Read... [12:36:22]Read from MH i2c: E2 03 00 [12:36:22]MH_I2C_Read... [12:36:22]Read from MH i2c: E2 03 00 24 3A 00 90 00 D2 [12:36:22]RAPDU: 90 00 [12:36:22]wFMCommunicate OK [12:36:22]wFMCommunicate request_size=255 [12:36:22]MH_SAM_APDU [12:36:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4A 85 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 F0 02 00 35 04 06 00 80 2F 15 79 [12:36:22]Write to MH i2c: E2 02 01 25 3A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4A 85 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 F0 02 00 35 04 06 00 80 2F 15 79 00 00 90 [12:36:22]Write i2c OK [12:36:22]MH_I2C_Read... [12:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:23]Read from MH i2c: E2 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 03 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 03 00 25 3A 00 90 00 D3 [12:36:23]RAPDU: 90 00 [12:36:23]wFMCommunicate OK [12:36:23]wFMCommunicate request_size=7 [12:36:23]MH_SAM_APDU [12:36:23]CAPDU: 80 0D 02 02 02 EB 1F [12:36:23]Write to MH i2c: E2 0A 00 26 3A 80 0D 02 02 02 00 EB 1F 00 00 E8 [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:23]Read from MH i2c: E2 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 03 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 03 00 26 3A 00 90 00 D4 [12:36:23]RAPDU: 90 00 [12:36:23]wFMCommunicate OK [12:36:23]wFMCommunicate request_size=4 [12:36:23]MH_SAM_APDU [12:36:23]CAPDU: 80 0D 03 02 [12:36:23]Write to MH i2c: E2 08 00 27 3A 80 0D 03 02 00 00 00 00 DC [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:23]Read from MH i2c: E2 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 0B 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 0B 00 27 3A 00 64 3C 0A 11 C2 FF 9B A8 90 00 9C [12:36:23]RAPDU: 64 3C 0A 11 C2 FF 9B A8 90 00 [12:36:23]wFMCommunicate OK [12:36:23]SAM_PROTO_SignData done [12:36:23]FM_MakeSignedData done [12:36:23]CreateOFDProtocolMessage [12:36:23]wFMCommunicate request_size=4 [12:36:23]MH_SAM_APDU [12:36:23]CAPDU: 80 11 00 00 [12:36:23]Write to MH i2c: E2 08 00 28 3A 80 11 00 00 00 00 00 00 DC [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:23]Read from MH i2c: E2 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 17 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 17 00 28 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2F [12:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:36:23]wFMCommunicate OK [12:36:23]CreateOFDProtocolMessage done [12:36:23]OFDSenderStorePacket 192551 [12:36:23]StoreOFDPacket docnum=192551 [12:36:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 8D 61 04 01 60 A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4A 85 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 F0 02 00 35 04 06 00 80 2F 15 79 EB 1F 64 3C 0A 11 C2 FF 9B A8 [12:36:23]CheckFolder [12:36:23]dirname=/storage/ofd_packets [12:36:23]CheckFolder done [12:36:23]ProducePacketName [12:36:23]name=ofd_packets/00192551 [12:36:23]NVStorageSaveData ofd_packets/00192551 [12:36:23]File name is /storage/ofd_packets/00192551 [12:36:23]Write 298 bytes [12:36:23]NVStorageSaveData done [12:36:23]OFDSenderStorePacket done [12:36:23]KKMCreateOFDPacket done [12:36:23]NVStorageSaveData kkm_last_timestamp [12:36:23]File name is /storage/kkm_last_timestamp [12:36:23]Write 4 bytes [12:36:23]NVStorageSaveData done [12:36:23]ExternCall_PrintAddStr [12:36:23]wPrintStart [12:36:23]Write to MH i2c: 01 00 00 29 3A 63 [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: 01 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: 01 07 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: 01 07 00 29 3A 00 00 00 00 00 FF 0F 78 [12:36:23]RasterBufferAndPrint [12:36:23]line Счет N : (1)31871 [12:36:23]line ИНН: 02508201610067 [12:36:23]line Контрольно-Кассовый Чек [12:36:23]line ПРОДАЖА [12:36:23]line ТРК (МРК, ГНК) : 11 [12:36:23]line Товар: 2710194210 [12:36:23]line ДТ-К-5 [12:36:23]line 13.130 * 76.20 [12:36:23]line = 1000.51 [12:36:23]line НДС 12% НСП 1% [12:36:23]line > о реализуемом товаре [12:36:23]line ОКРУГЛЕНИЕ: -0.51 [12:36:23]line ИТОГО: 1000.00 [12:36:23]line Внесено: 1000.00 [12:36:23]line СДАЧА: 0.00 [12:36:23]line НСП 1% : 8.85 [12:36:23]line НДС 12% : 106.25 [12:36:23]line Наличными: 1000.00 [12:36:23]line Безнал.: 0.00 [12:36:23]line Место: АЗС № 170 "Партнер Нефть" [12:36:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:36:23]line СНО: Общий режим [12:36:23]line Чек 99 28.10.2024 12:36 [12:36:23]line Смена: 543 ФФД: 1.0 [12:36:23]line ЗНМ: 0300000110 [12:36:23]line РНМ: 0000000000091776 [12:36:23]line Версия ККМ: 001 [12:36:23]line ФМ: 0000000000871754 [12:36:23]line ФД: 192551 [12:36:23]line ФПД: 140939712129823 [12:36:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123626&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192551&fm=140939712129823&tin=02508201610067®Number=0000000000091776&sum=100000 [12:36:23]OFD Sender: Processing packet 192551 [packets to send 75, broken 74] [12:36:23]ProducePacketName [12:36:23]name=ofd_packets/00192551 [12:36:23]OFD Sender: To server: pG, [12:36:23]CommunicateWithHost lk.salyk.kg:30040 [12:36:23]ConnectInit lk.salyk.kg [12:36:23]written 0, free lines is 4095 [12:36:23]Connected sock=10 [12:36:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 8D 61 04 01 60 A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4A 85 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 F0 02 00 35 04 06 00 80 2F 15 79 EB 1F 64 3C 0A 11 C2 FF 9B A8 [12:36:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 57 ED 47 00 7B 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 F0 02 00 F4 03 04 00 0F 2A 1F 67 B6 04 01 00 00 A5 33 AE 2B F7 DA C0 06 [12:36:23]CommunicateWithHost err = 0 [12:36:23]CheckOFDResponse [12:36:23]1017 (14) - 77093643461234 [12:36:23]1041 (16) - 0000000000871754 [12:36:23]1040 (4) - 192551 [12:36:23]1012 (4) - 28.10.2024 06:07 [12:36:23]1206 (1) - 0 [12:36:23]OFD Sender: Remove packet 192551 [12:36:23]ProducePacketName [12:36:23]name=ofd_packets/00192551 [12:36:23]NVStorageDeleteData [12:36:24]Write to MH i2c: 01 00 00 54 3A 8E [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: 01 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: 01 07 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: 01 07 00 54 3A 00 00 00 00 00 B5 0C 56 [12:36:24]RasterBufferAndPrint [12:36:24]line [12:36:24]line [12:36:24]line [12:36:24]line [12:36:24]line [12:36:24]written 0, free lines is 3258 [12:36:24]MH_Cut [12:36:24]Write to MH i2c: D1 01 00 5B 3A 01 67 [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: D1 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: D1 01 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: D1 01 00 5B 3A 00 66 [12:36:24]Write to MH i2c: 01 00 00 5C 3A 96 [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:24]OFD Sender: No OFD packet to send [12:36:24]*** Cut start [12:36:24]*** Partial cut [12:36:24]*** CUTSNS_PIN = 1 [12:36:25]*** CUTSNS_PIN = 0 [12:36:25]*** Brake cut motor [12:36:25]Read from MH i2c: 01 [12:36:25]MH_I2C_Read... [12:36:25]*** Stop cut motor [12:36:25]*** Cut end [12:36:25]Read from MH i2c: 01 07 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: 01 07 00 5C 3A 00 00 00 00 00 FF 0F AB [12:36:25]process_action close_receipt done [12:36:25]requested_data is exist [12:36:25]produce_requested_data [12:36:25]requested_item fm.sn is exist - process it [12:36:25]wFMCommunicate request_size=4 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 11 00 00 [12:36:25]Write to MH i2c: E2 08 00 5D 3A 80 11 00 00 00 00 00 00 11 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 17 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 17 00 5D 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 64 [12:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:36:25]wFMCommunicate OK [12:36:25]requested_item fd.num is exist - process it [12:36:25]SAM_PROTO_GetFieldsCounters [12:36:25]wFMCommunicate request_size=4 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 13 00 00 [12:36:25]Write to MH i2c: E2 08 00 5E 3A 80 13 00 00 00 00 00 00 14 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 62 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 62 00 5E 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 27 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [12:36:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 27 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:25]wFMCommunicate OK [12:36:25]SAM_PROTO_GetFieldsCounters done [12:36:25]requested_item shift.num is exist - process it [12:36:25]requested_item shift.opened is exist - process it [12:36:25]req_shift_opened [12:36:25]FM_GetShiftState [12:36:25]SAM_PROTO_GetShiftState [12:36:25]wFMCommunicate request_size=4 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 13 01 00 [12:36:25]Write to MH i2c: E2 08 00 5F 3A 80 13 01 00 00 00 00 00 16 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 0E 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 0E 00 5F 3A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 66 [12:36:25]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:36:25]wFMCommunicate OK [12:36:25]SAM_PROTO_GetShiftState done [12:36:25]FM_GetShiftState done [12:36:25]req_shift_opened done [12:36:25]requested_item shift.open_date is exist - process it [12:36:25]req_shift_open_date [12:36:25]req_shift_open_date done [12:36:25]produce_requested_data done [12:36:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192551,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:36:25]process_action_free close_receipt [12:36:25]json_value_free [12:36:25]json_value_free done [12:36:25]process_json_proto returns [12:36:25]Send response to host [12:36:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192551,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:36:25]free response buf [12:36:25]execute_script done [12:36:25]execute_script returns [12:36:25]free content buf [12:36:25]Sock 9.Close socket [12:36:25]Sock 9.Thread stoped [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:41]accept exits with 7 [12:37:41]New connection [12:37:41]New thread 3066563940 created [12:37:41]Thread 3066707300 joined [12:37:41]Waiting for new connection... [12:37:41] Sock 7.Parse request [12:37:41]Sock 7.Check first char [12:37:41]Sock 7.First char is OK [12:37:41]request: POST /json_proto HTTP/1.0 [12:37:41]Method: POST [12:37:41]URL: /json_proto [12:37:41]Method is POST - this is cgi request [12:37:41]url: /json_proto [12:37:41]query_string will be loaded in cgi processing [12:37:41]execute_cgi json_proto POST (null) [12:37:41]execute_cgi path=json_proto method=POST [12:37:41]POST find Content-Length [12:37:41]Host: 172.17.63.131:8080 [12:37:41]Content-Length: 681 [12:37:41]Content-Type: application/json [12:37:41] [12:37:41]POST finish read [12:37:41]Found Content-Length = 681 [12:37:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:41]execute_script... [12:37:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:41]POST & json_proto [12:37:41]process_json_proto [12:37:41]json parsed OK: [12:37:41]protocol is kg_v1.0 [12:37:41]action value=close_receipt [12:37:41]process_action close_receipt [12:37:41]cmd_close_receipt [12:37:41]MH_GetDate [12:37:41]Write to MH i2c: F0 00 00 60 3A 89 [12:37:41]Write i2c OK [12:37:41]MH_I2C_Read... [12:37:41]Read from MH i2c: F0 [12:37:41]MH_I2C_Read... [12:37:41]Read from MH i2c: F0 09 00 [12:37:41]MH_I2C_Read... [12:37:41]Read from MH i2c: F0 09 00 60 3A 00 9A 85 1F 67 22 05 6E 64 30 [12:37:41]GetLastDocTimeStamp 1730118986 [12:37:41]current date 1730119066 [12:37:41]FM_GetShiftState [12:37:41]SAM_PROTO_GetShiftState [12:37:41]wFMCommunicate request_size=4 [12:37:41]MH_SAM_APDU [12:37:41]CAPDU: 80 13 01 00 [12:37:41]Write to MH i2c: E2 08 00 61 3A 80 13 01 00 00 00 00 00 18 [12:37:41]Write i2c OK [12:37:41]MH_I2C_Read... [12:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:41]Read from MH i2c: E2 [12:37:41]MH_I2C_Read... [12:37:41]Read from MH i2c: E2 0E 00 [12:37:41]MH_I2C_Read... [12:37:41]Read from MH i2c: E2 0E 00 61 3A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 68 [12:37:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:37:41]wFMCommunicate OK [12:37:41]SAM_PROTO_GetShiftState done [12:37:41]FM_GetShiftState done [12:37:41]opened in 1730075620 [12:37:41]opened+sec_in_day 1730162020 [12:37:41]quantity*price = 100015 [12:37:41]sum+1 = 100017 [12:37:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 100 28.10.2024 12:37 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192552 ФПД: 77049315766822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123746&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192552&fm=77049315766822&tin=02508201610067®Number=0000000000091776&sum=100000 [12:37:42]StoreToDocumentArchive [12:37:42]shift 543 fd 192552 [12:37:42]save to /storage/0543/doc_00192552 [12:37:42]save last doc name /storage/0543/doc_00192552 to /storage/kkm_last_doc_name [12:37:42]save OK [12:37:42]Clear old archive folders... [12:37:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:42]tlvbuf is 019E45A0 [12:37:42]SAM_PROTO_ClearQueue [12:37:42]wFMCommunicate request_size=4 [12:37:42]MH_SAM_APDU [12:37:42]CAPDU: 80 09 00 00 [12:37:42]Write to MH i2c: E2 08 00 6E 3A 80 09 00 00 00 00 00 00 1A [12:37:42]Write i2c OK [12:37:42]MH_I2C_Read... [12:37:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:42]Read from MH i2c: E2 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: E2 03 00 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: E2 03 00 6E 3A 00 90 00 1C [12:37:42]RAPDU: 90 00 [12:37:42]wFMCommunicate OK [12:37:42]SAM_PROTO_ClearQueue done [12:37:42]KKMCreateOFDPacket [12:37:42]OFDProtocolAddRootSTLVToBuf [12:37:42]FM_MakeSignedData [12:37:42]FM_MakeSignedData [12:37:42]SAM_PROTO_SignData [12:37:42]wFMCommunicate request_size=4 [12:37:42]MH_SAM_APDU [12:37:42]CAPDU: 80 0D 01 02 [12:37:42]Write to MH i2c: E2 08 00 6F 3A 80 0D 01 02 00 00 00 00 22 [12:37:42]Write i2c OK [12:37:42]MH_I2C_Read... [12:37:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:42]Read from MH i2c: E2 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: E2 03 00 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: E2 03 00 6F 3A 00 90 00 1D [12:37:42]RAPDU: 90 00 [12:37:42]wFMCommunicate OK [12:37:42]wFMCommunicate request_size=255 [12:37:42]MH_SAM_APDU [12:37:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 9A 85 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 F0 02 00 35 04 06 00 46 [12:37:42]Write to MH i2c: E2 02 01 70 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9A 85 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 F0 02 00 35 04 06 00 46 00 00 3A [12:37:42]Write i2c OK [12:37:42]MH_I2C_Read... [12:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:42]Read from MH i2c: E2 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: E2 03 00 [12:37:42]MH_I2C_Read... [12:37:42]Read from MH i2c: E2 03 00 70 3A 00 90 00 1E [12:37:42]RAPDU: 90 00 [12:37:42]wFMCommunicate OK [12:37:42]wFMCommunicate request_size=10 [12:37:42]MH_SAM_APDU [12:37:42]CAPDU: 80 0D 02 02 05 13 71 18 B2 26 [12:37:42]Write to MH i2c: E2 0D 00 71 3A 80 0D 02 02 05 00 13 71 18 B2 26 00 00 A3 [12:37:42]Write i2c OK [12:37:42]MH_I2C_Read... [12:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:43]Read from MH i2c: E2 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: E2 03 00 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: E2 03 00 71 3A 00 90 00 1F [12:37:43]RAPDU: 90 00 [12:37:43]wFMCommunicate OK [12:37:43]wFMCommunicate request_size=4 [12:37:43]MH_SAM_APDU [12:37:43]CAPDU: 80 0D 03 02 [12:37:43]Write to MH i2c: E2 08 00 72 3A 80 0D 03 02 00 00 00 00 27 [12:37:43]Write i2c OK [12:37:43]MH_I2C_Read... [12:37:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:43]Read from MH i2c: E2 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: E2 0B 00 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: E2 0B 00 72 3A 00 44 AB 54 E5 45 88 4F 42 90 00 AE [12:37:43]RAPDU: 44 AB 54 E5 45 88 4F 42 90 00 [12:37:43]wFMCommunicate OK [12:37:43]SAM_PROTO_SignData done [12:37:43]FM_MakeSignedData done [12:37:43]CreateOFDProtocolMessage [12:37:43]wFMCommunicate request_size=4 [12:37:43]MH_SAM_APDU [12:37:43]CAPDU: 80 11 00 00 [12:37:43]Write to MH i2c: E2 08 00 73 3A 80 11 00 00 00 00 00 00 27 [12:37:43]Write i2c OK [12:37:43]MH_I2C_Read... [12:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:43]Read from MH i2c: E2 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: E2 17 00 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: E2 17 00 73 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7A [12:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:37:43]wFMCommunicate OK [12:37:43]CreateOFDProtocolMessage done [12:37:43]OFDSenderStorePacket 192552 [12:37:43]StoreOFDPacket docnum=192552 [12:37:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A0 0E 07 01 0B 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 9A 85 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 F0 02 00 35 04 06 00 46 13 71 18 B2 26 44 AB 54 E5 45 88 4F 42 [12:37:43]CheckFolder [12:37:43]dirname=/storage/ofd_packets [12:37:43]CheckFolder done [12:37:43]ProducePacketName [12:37:43]name=ofd_packets/00192552 [12:37:43]NVStorageSaveData ofd_packets/00192552 [12:37:43]File name is /storage/ofd_packets/00192552 [12:37:43]Write 301 bytes [12:37:43]NVStorageSaveData done [12:37:43]OFDSenderStorePacket done [12:37:43]KKMCreateOFDPacket done [12:37:43]NVStorageSaveData kkm_last_timestamp [12:37:43]File name is /storage/kkm_last_timestamp [12:37:43]Write 4 bytes [12:37:43]NVStorageSaveData done [12:37:43]ExternCall_PrintAddStr [12:37:43]wPrintStart [12:37:43]Write to MH i2c: 01 00 00 74 3A AE [12:37:43]Write i2c OK [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: 01 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: 01 07 00 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: 01 07 00 74 3A 00 00 00 00 00 FF 0F C3 [12:37:43]RasterBufferAndPrint [12:37:43]line Счет N : (1)31872 [12:37:43]line ИНН: 02508201610067 [12:37:43]line Контрольно-Кассовый Чек [12:37:43]line ПРОДАЖА [12:37:43]line ТРК (МРК, ГНК) : 12 [12:37:43]line Товар: 2710124130 [12:37:43]line Аи-92-К-5 [12:37:43]line 14.950 * 66.90 [12:37:43]line = 1000.16 [12:37:43]line НДС 12% НСП 1% [12:37:43]line > о реализуемом товаре [12:37:43]line ОКРУГЛЕНИЕ: -0.16 [12:37:43]line ИТОГО: 1000.00 [12:37:43]line Внесено: 1000.00 [12:37:43]line СДАЧА: 0.00 [12:37:43]line НСП 1% : 8.85 [12:37:43]line НДС 12% : 106.21 [12:37:43]line Наличными: 1000.00 [12:37:43]line Безнал.: 0.00 [12:37:43]line Место: АЗС № 170 "Партнер Нефть" [12:37:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:37:43]line СНО: Общий режим [12:37:43]line Чек 100 28.10.2024 12:37 [12:37:43]line Смена: 543 ФФД: 1.0 [12:37:43]line ЗНМ: 0300000110 [12:37:43]line РНМ: 0000000000091776 [12:37:43]line Версия ККМ: 001 [12:37:43]line ФМ: 0000000000871754 [12:37:43]line ФД: 192552 [12:37:43]line ФПД: 77049315766822 [12:37:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123746&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192552&fm=77049315766822&tin=02508201610067®Number=0000000000091776&sum=100000 [12:37:43]OFD Sender: Processing packet 192552 [packets to send 75, broken 74] [12:37:43]ProducePacketName [12:37:43]name=ofd_packets/00192552 [12:37:43]OFD Sender: To server: pG, [12:37:43]CommunicateWithHost lk.salyk.kg:30040 [12:37:43]ConnectInit lk.salyk.kg [12:37:43]written 0, free lines is 4095 [12:37:43]Connected sock=10 [12:37:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A0 0E 07 01 0B 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 9A 85 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 F0 02 00 35 04 06 00 46 13 71 18 B2 26 44 AB 54 E5 45 88 4F 42 [12:37:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C4 F5 47 00 52 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 F0 02 00 F4 03 04 00 5E 2A 1F 67 B6 04 01 00 00 02 99 37 2A F9 2A 42 DF [12:37:43]CommunicateWithHost err = 0 [12:37:43]CheckOFDResponse [12:37:43]1017 (14) - 77093643461234 [12:37:43]1041 (16) - 0000000000871754 [12:37:43]1040 (4) - 192552 [12:37:43]1012 (4) - 28.10.2024 06:08 [12:37:43]1206 (1) - 0 [12:37:43]OFD Sender: Remove packet 192552 [12:37:43]ProducePacketName [12:37:43]name=ofd_packets/00192552 [12:37:43]NVStorageDeleteData [12:37:43]Write to MH i2c: 01 00 00 9F 3A D9 [12:37:43]Write i2c OK [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: 01 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: 01 07 00 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: 01 07 00 9F 3A 00 00 00 00 00 B1 0C 9D [12:37:43]RasterBufferAndPrint [12:37:43]line [12:37:43]line [12:37:43]line [12:37:43]line [12:37:43]line [12:37:43]written 0, free lines is 3256 [12:37:43]MH_Cut [12:37:43]Write to MH i2c: D1 01 00 A6 3A 01 B2 [12:37:43]Write i2c OK [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: D1 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: D1 01 00 [12:37:43]MH_I2C_Read... [12:37:43]Read from MH i2c: D1 01 00 A6 3A 00 B1 [12:37:43]Write to MH i2c: 01 00 00 A7 3A E1 [12:37:43]Write i2c OK [12:37:43]MH_I2C_Read... [12:37:44]OFD Sender: No OFD packet to send [12:37:44]*** Cut start [12:37:44]*** Partial cut [12:37:44]*** CUTSNS_PIN = 1 [12:37:44]*** CUTSNS_PIN = 0 [12:37:45]*** Brake cut motor [12:37:45]Read from MH i2c: 01 [12:37:45]MH_I2C_Read... [12:37:45]*** Stop cut motor [12:37:45]*** Cut end [12:37:45]Read from MH i2c: 01 07 00 [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: 01 07 00 A7 3A 00 00 00 00 00 FF 0F F6 [12:37:45]process_action close_receipt done [12:37:45]requested_data is exist [12:37:45]produce_requested_data [12:37:45]requested_item fm.sn is exist - process it [12:37:45]wFMCommunicate request_size=4 [12:37:45]MH_SAM_APDU [12:37:45]CAPDU: 80 11 00 00 [12:37:45]Write to MH i2c: E2 08 00 A8 3A 80 11 00 00 00 00 00 00 5C [12:37:45]Write i2c OK [12:37:45]MH_I2C_Read... [12:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:45]Read from MH i2c: E2 [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: E2 17 00 [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: E2 17 00 A8 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AF [12:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:37:45]wFMCommunicate OK [12:37:45]requested_item fd.num is exist - process it [12:37:45]SAM_PROTO_GetFieldsCounters [12:37:45]wFMCommunicate request_size=4 [12:37:45]MH_SAM_APDU [12:37:45]CAPDU: 80 13 00 00 [12:37:45]Write to MH i2c: E2 08 00 A9 3A 80 13 00 00 00 00 00 00 5F [12:37:45]Write i2c OK [12:37:45]MH_I2C_Read... [12:37:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:45]Read from MH i2c: E2 [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: E2 62 00 [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: E2 62 00 A9 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 28 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [12:37:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 28 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:45]wFMCommunicate OK [12:37:45]SAM_PROTO_GetFieldsCounters done [12:37:45]requested_item shift.num is exist - process it [12:37:45]requested_item shift.opened is exist - process it [12:37:45]req_shift_opened [12:37:45]FM_GetShiftState [12:37:45]SAM_PROTO_GetShiftState [12:37:45]wFMCommunicate request_size=4 [12:37:45]MH_SAM_APDU [12:37:45]CAPDU: 80 13 01 00 [12:37:45]Write to MH i2c: E2 08 00 AA 3A 80 13 01 00 00 00 00 00 61 [12:37:45]Write i2c OK [12:37:45]MH_I2C_Read... [12:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:45]Read from MH i2c: E2 [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: E2 0E 00 [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: E2 0E 00 AA 3A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B1 [12:37:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:37:45]wFMCommunicate OK [12:37:45]SAM_PROTO_GetShiftState done [12:37:45]FM_GetShiftState done [12:37:45]req_shift_opened done [12:37:45]requested_item shift.open_date is exist - process it [12:37:45]req_shift_open_date [12:37:45]req_shift_open_date done [12:37:45]produce_requested_data done [12:37:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192552,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:37:45]process_action_free close_receipt [12:37:45]json_value_free [12:37:45]json_value_free done [12:37:45]process_json_proto returns [12:37:45]Send response to host [12:37:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192552,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:37:45]free response buf [12:37:45]execute_script done [12:37:45]execute_script returns [12:37:45]free content buf [12:37:45]Sock 7.Close socket [12:37:45]Sock 7.Thread stoped [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:10]accept exits with 9 [12:39:10]New connection [12:39:10]New thread 3066707300 created [12:39:10]Thread 3066563940 joined [12:39:10]Waiting for new connection... [12:39:10] Sock 9.Parse request [12:39:10]Sock 9.Check first char [12:39:10]Sock 9.First char is OK [12:39:10]request: POST /json_proto HTTP/1.0 [12:39:10]Method: POST [12:39:10]URL: /json_proto [12:39:10]Method is POST - this is cgi request [12:39:10]url: /json_proto [12:39:10]query_string will be loaded in cgi processing [12:39:10]execute_cgi json_proto POST (null) [12:39:10]execute_cgi path=json_proto method=POST [12:39:10]POST find Content-Length [12:39:10]Host: 172.17.63.131:8080 [12:39:10]Content-Length: 681 [12:39:10]Content-Type: application/json [12:39:10] [12:39:10]POST finish read [12:39:10]Found Content-Length = 681 [12:39:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:10]execute_script... [12:39: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)31873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:10]POST & json_proto [12:39:10]process_json_proto [12:39:10]json parsed OK: [12:39:10]protocol is kg_v1.0 [12:39:10]action value=close_receipt [12:39:10]process_action close_receipt [12:39:10]cmd_close_receipt [12:39:10]MH_GetDate [12:39:10]Write to MH i2c: F0 00 00 AB 3A D4 [12:39:10]Write i2c OK [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: F0 [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: F0 09 00 [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: F0 09 00 AB 3A 00 F3 85 1F 67 22 05 6E 64 D4 [12:39:10]GetLastDocTimeStamp 1730119066 [12:39:10]current date 1730119155 [12:39:10]FM_GetShiftState [12:39:10]SAM_PROTO_GetShiftState [12:39:10]wFMCommunicate request_size=4 [12:39:10]MH_SAM_APDU [12:39:10]CAPDU: 80 13 01 00 [12:39:10]Write to MH i2c: E2 08 00 AC 3A 80 13 01 00 00 00 00 00 63 [12:39:10]Write i2c OK [12:39:10]MH_I2C_Read... [12:39:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:10]Read from MH i2c: E2 [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: E2 0E 00 [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: E2 0E 00 AC 3A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B3 [12:39:10]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:39:10]wFMCommunicate OK [12:39:10]SAM_PROTO_GetShiftState done [12:39:10]FM_GetShiftState done [12:39:10]opened in 1730075620 [12:39:10]opened+sec_in_day 1730162020 [12:39:10]quantity*price = 100015 [12:39:10]sum+1 = 100017 [12:39:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 101 28.10.2024 12:39 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192553 ФПД: 117570722679613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123915&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192553&fm=117570722679613&tin=02508201610067®Number=0000000000091776&sum=100000 [12:39:11]StoreToDocumentArchive [12:39:11]shift 543 fd 192553 [12:39:11]save to /storage/0543/doc_00192553 [12:39:11]save last doc name /storage/0543/doc_00192553 to /storage/kkm_last_doc_name [12:39:11]save OK [12:39:11]Clear old archive folders... [12:39:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:11]tlvbuf is 01A9A910 [12:39:11]SAM_PROTO_ClearQueue [12:39:11]wFMCommunicate request_size=4 [12:39:11]MH_SAM_APDU [12:39:11]CAPDU: 80 09 00 00 [12:39:11]Write to MH i2c: E2 08 00 B9 3A 80 09 00 00 00 00 00 00 65 [12:39:11]Write i2c OK [12:39:11]MH_I2C_Read... [12:39:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:11]Read from MH i2c: E2 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: E2 03 00 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: E2 03 00 B9 3A 00 90 00 67 [12:39:11]RAPDU: 90 00 [12:39:11]wFMCommunicate OK [12:39:11]SAM_PROTO_ClearQueue done [12:39:11]KKMCreateOFDPacket [12:39:11]OFDProtocolAddRootSTLVToBuf [12:39:11]FM_MakeSignedData [12:39:11]FM_MakeSignedData [12:39:11]SAM_PROTO_SignData [12:39:11]wFMCommunicate request_size=4 [12:39:11]MH_SAM_APDU [12:39:11]CAPDU: 80 0D 01 02 [12:39:11]Write to MH i2c: E2 08 00 BA 3A 80 0D 01 02 00 00 00 00 6D [12:39:11]Write i2c OK [12:39:11]MH_I2C_Read... [12:39:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:11]Read from MH i2c: E2 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: E2 03 00 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: E2 03 00 BA 3A 00 90 00 68 [12:39:11]RAPDU: 90 00 [12:39:11]wFMCommunicate OK [12:39:11]wFMCommunicate request_size=255 [12:39:11]MH_SAM_APDU [12:39: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 F3 85 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 F0 02 00 35 04 06 00 6A [12:39:11]Write to MH i2c: E2 02 01 BB 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 65 00 00 00 F4 03 04 00 F3 85 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 F0 02 00 35 04 06 00 6A 00 00 04 [12:39:11]Write i2c OK [12:39:11]MH_I2C_Read... [12:39:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:12]Read from MH i2c: E2 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: E2 03 00 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: E2 03 00 BB 3A 00 90 00 69 [12:39:12]RAPDU: 90 00 [12:39:12]wFMCommunicate OK [12:39:12]wFMCommunicate request_size=10 [12:39:12]MH_SAM_APDU [12:39:12]CAPDU: 80 0D 02 02 05 EE 11 29 4B 3D [12:39:12]Write to MH i2c: E2 0D 00 BC 3A 80 0D 02 02 05 00 EE 11 29 4B 3D 00 00 2A [12:39:12]Write i2c OK [12:39:12]MH_I2C_Read... [12:39:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:12]Read from MH i2c: E2 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: E2 03 00 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: E2 03 00 BC 3A 00 90 00 6A [12:39:12]RAPDU: 90 00 [12:39:12]wFMCommunicate OK [12:39:12]wFMCommunicate request_size=4 [12:39:12]MH_SAM_APDU [12:39:12]CAPDU: 80 0D 03 02 [12:39:12]Write to MH i2c: E2 08 00 BD 3A 80 0D 03 02 00 00 00 00 72 [12:39:12]Write i2c OK [12:39:12]MH_I2C_Read... [12:39:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:12]Read from MH i2c: E2 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: E2 0B 00 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: E2 0B 00 BD 3A 00 5B 14 7E B0 2B 7F 2E F8 90 00 E0 [12:39:12]RAPDU: 5B 14 7E B0 2B 7F 2E F8 90 00 [12:39:12]wFMCommunicate OK [12:39:12]SAM_PROTO_SignData done [12:39:12]FM_MakeSignedData done [12:39:12]CreateOFDProtocolMessage [12:39:12]wFMCommunicate request_size=4 [12:39:12]MH_SAM_APDU [12:39:12]CAPDU: 80 11 00 00 [12:39:12]Write to MH i2c: E2 08 00 BE 3A 80 11 00 00 00 00 00 00 72 [12:39:12]Write i2c OK [12:39:12]MH_I2C_Read... [12:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:12]Read from MH i2c: E2 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: E2 17 00 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: E2 17 00 BE 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C5 [12:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:39:12]wFMCommunicate OK [12:39:12]CreateOFDProtocolMessage done [12:39:12]OFDSenderStorePacket 192553 [12:39:12]StoreOFDPacket docnum=192553 [12:39:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B7 38 07 01 B2 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 F3 85 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 F0 02 00 35 04 06 00 6A EE 11 29 4B 3D 5B 14 7E B0 2B 7F 2E F8 [12:39:12]CheckFolder [12:39:12]dirname=/storage/ofd_packets [12:39:12]CheckFolder done [12:39:12]ProducePacketName [12:39:12]name=ofd_packets/00192553 [12:39:12]NVStorageSaveData ofd_packets/00192553 [12:39:12]File name is /storage/ofd_packets/00192553 [12:39:12]Write 301 bytes [12:39:12]NVStorageSaveData done [12:39:12]OFDSenderStorePacket done [12:39:12]KKMCreateOFDPacket done [12:39:12]NVStorageSaveData kkm_last_timestamp [12:39:12]File name is /storage/kkm_last_timestamp [12:39:12]Write 4 bytes [12:39:12]NVStorageSaveData done [12:39:12]ExternCall_PrintAddStr [12:39:12]wPrintStart [12:39:12]Write to MH i2c: 01 00 00 BF 3A F9 [12:39:12]Write i2c OK [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: 01 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: 01 07 00 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: 01 07 00 BF 3A 00 00 00 00 00 FF 0F 0E [12:39:12]RasterBufferAndPrint [12:39:12]line Счет N : (1)31873 [12:39:12]line ИНН: 02508201610067 [12:39:12]line Контрольно-Кассовый Чек [12:39:12]line ПРОДАЖА [12:39:12]line ТРК (МРК, ГНК) : 21 [12:39:12]line Товар: 2710124130 [12:39:12]line Аи-92-К-5 [12:39:12]line 14.950 * 66.90 [12:39:12]line = 1000.16 [12:39:12]line НДС 12% НСП 1% [12:39:12]line > о реализуемом товаре [12:39:12]line ОКРУГЛЕНИЕ: -0.16 [12:39:12]line ИТОГО: 1000.00 [12:39:12]line Внесено: 1000.00 [12:39:12]line СДАЧА: 0.00 [12:39:12]line НСП 1% : 8.85 [12:39:12]line НДС 12% : 106.21 [12:39:12]line Наличными: 1000.00 [12:39:12]line Безнал.: 0.00 [12:39:12]line Место: АЗС № 170 "Партнер Нефть" [12:39:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:39:12]line СНО: Общий режим [12:39:12]line Чек 101 28.10.2024 12:39 [12:39:12]line Смена: 543 ФФД: 1.0 [12:39:12]line ЗНМ: 0300000110 [12:39:12]line РНМ: 0000000000091776 [12:39:12]line Версия ККМ: 001 [12:39:12]line ФМ: 0000000000871754 [12:39:12]line ФД: 192553 [12:39:12]line ФПД: 117570722679613 [12:39:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123915&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192553&fm=117570722679613&tin=02508201610067®Number=0000000000091776&sum=100000 [12:39:12]OFD Sender: Processing packet 192553 [packets to send 75, broken 74] [12:39:12]ProducePacketName [12:39:12]name=ofd_packets/00192553 [12:39:12]OFD Sender: To server: pG, [12:39:12]CommunicateWithHost lk.salyk.kg:30040 [12:39:12]ConnectInit lk.salyk.kg [12:39:12]written 0, free lines is 4095 [12:39:12]Connected sock=10 [12:39:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B7 38 07 01 B2 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 F3 85 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 F0 02 00 35 04 06 00 6A EE 11 29 4B 3D 5B 14 7E B0 2B 7F 2E F8 [12:39:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 05 94 47 00 87 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 F0 02 00 F4 03 04 00 B7 2A 1F 67 B6 04 01 00 00 3B F4 EC 1B 80 1B DC 11 [12:39:12]CommunicateWithHost err = 0 [12:39:12]CheckOFDResponse [12:39:12]1017 (14) - 77093643461234 [12:39:12]1041 (16) - 0000000000871754 [12:39:12]1040 (4) - 192553 [12:39:12]1012 (4) - 28.10.2024 06:09 [12:39:12]1206 (1) - 0 [12:39:12]OFD Sender: Remove packet 192553 [12:39:12]ProducePacketName [12:39:12]name=ofd_packets/00192553 [12:39:12]NVStorageDeleteData [12:39:12]Write to MH i2c: 01 00 00 EA 3A 24 [12:39:12]Write i2c OK [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: 01 [12:39:12]MH_I2C_Read... [12:39:13]Read from MH i2c: 01 07 00 [12:39:13]MH_I2C_Read... [12:39:13]Read from MH i2c: 01 07 00 EA 3A 00 00 00 00 00 A8 0C DF [12:39:13]RasterBufferAndPrint [12:39:13]line [12:39:13]line [12:39:13]line [12:39:13]line [12:39:13]line [12:39:13]written 0, free lines is 3245 [12:39:13]MH_Cut [12:39:13]Write to MH i2c: D1 01 00 F1 3A 01 FD [12:39:13]Write i2c OK [12:39:13]MH_I2C_Read... [12:39:13]Read from MH i2c: D1 [12:39:13]MH_I2C_Read... [12:39:13]Read from MH i2c: D1 01 00 [12:39:13]MH_I2C_Read... [12:39:13]Read from MH i2c: D1 01 00 F1 3A 00 FC [12:39:13]Write to MH i2c: 01 00 00 F2 3A 2C [12:39:13]Write i2c OK [12:39:13]MH_I2C_Read... [12:39:13]OFD Sender: No OFD packet to send [12:39:13]*** Cut start [12:39:13]*** Partial cut [12:39:13]*** CUTSNS_PIN = 1 [12:39:13]*** CUTSNS_PIN = 0 [12:39:14]*** Brake cut motor [12:39:14]Read from MH i2c: 01 [12:39:14]MH_I2C_Read... [12:39:14]*** Stop cut motor [12:39:14]*** Cut end [12:39:14]Read from MH i2c: 01 07 00 [12:39:14]MH_I2C_Read... [12:39:14]Read from MH i2c: 01 07 00 F2 3A 00 00 00 00 00 FF 0F 41 [12:39:14]process_action close_receipt done [12:39:14]requested_data is exist [12:39:14]produce_requested_data [12:39:14]requested_item fm.sn is exist - process it [12:39:14]wFMCommunicate request_size=4 [12:39:14]MH_SAM_APDU [12:39:14]CAPDU: 80 11 00 00 [12:39:14]Write to MH i2c: E2 08 00 F3 3A 80 11 00 00 00 00 00 00 A7 [12:39:14]Write i2c OK [12:39:14]MH_I2C_Read... [12:39:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:14]Read from MH i2c: E2 [12:39:14]MH_I2C_Read... [12:39:14]Read from MH i2c: E2 17 00 [12:39:14]MH_I2C_Read... [12:39:14]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 31 37 35 34 90 00 FA [12:39:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:39:14]wFMCommunicate OK [12:39:14]requested_item fd.num is exist - process it [12:39:14]SAM_PROTO_GetFieldsCounters [12:39:14]wFMCommunicate request_size=4 [12:39:14]MH_SAM_APDU [12:39:14]CAPDU: 80 13 00 00 [12:39:14]Write to MH i2c: E2 08 00 F4 3A 80 13 00 00 00 00 00 00 AA [12:39:14]Write i2c OK [12:39:14]MH_I2C_Read... [12:39:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:14]Read from MH i2c: E2 [12:39:14]MH_I2C_Read... [12:39:14]Read from MH i2c: E2 62 00 [12:39:14]MH_I2C_Read... [12:39:14]Read from MH i2c: E2 62 00 F4 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 29 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [12:39:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 29 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:14]wFMCommunicate OK [12:39:14]SAM_PROTO_GetFieldsCounters done [12:39:14]requested_item shift.num is exist - process it [12:39:14]requested_item shift.opened is exist - process it [12:39:14]req_shift_opened [12:39:14]FM_GetShiftState [12:39:14]SAM_PROTO_GetShiftState [12:39:14]wFMCommunicate request_size=4 [12:39:14]MH_SAM_APDU [12:39:14]CAPDU: 80 13 01 00 [12:39:14]Write to MH i2c: E2 08 00 F5 3A 80 13 01 00 00 00 00 00 AC [12:39:14]Write i2c OK [12:39:14]MH_I2C_Read... [12:39:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:14]Read from MH i2c: E2 [12:39:14]MH_I2C_Read... [12:39:14]Read from MH i2c: E2 0E 00 [12:39:14]MH_I2C_Read... [12:39:14]Read from MH i2c: E2 0E 00 F5 3A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FC [12:39:14]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:39:14]wFMCommunicate OK [12:39:14]SAM_PROTO_GetShiftState done [12:39:14]FM_GetShiftState done [12:39:14]req_shift_opened done [12:39:14]requested_item shift.open_date is exist - process it [12:39:14]req_shift_open_date [12:39:14]req_shift_open_date done [12:39:14]produce_requested_data done [12:39:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192553,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:39:14]process_action_free close_receipt [12:39:14]json_value_free [12:39:14]json_value_free done [12:39:14]process_json_proto returns [12:39:14]Send response to host [12:39:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192553,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:39:14]free response buf [12:39:14]execute_script done [12:39:14]execute_script returns [12:39:14]free content buf [12:39:14]Sock 9.Close socket [12:39:14]Sock 9.Thread stoped [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:39]accept exits with 7 [12:40:39]New connection [12:40:39]New thread 3066563940 created [12:40:39]Thread 3066707300 joined [12:40:39]Waiting for new connection... [12:40:39] Sock 7.Parse request [12:40:39]Sock 7.Check first char [12:40:39]Sock 7.First char is OK [12:40:39]request: POST /json_proto HTTP/1.0 [12:40:39]Method: POST [12:40:39]URL: /json_proto [12:40:39]Method is POST - this is cgi request [12:40:39]url: /json_proto [12:40:39]query_string will be loaded in cgi processing [12:40:39]execute_cgi json_proto POST (null) [12:40:39]execute_cgi path=json_proto method=POST [12:40:39]POST find Content-Length [12:40:39]Host: 172.17.63.131:8080 [12:40:39]Content-Length: 676 [12:40:39]Content-Type: application/json [12:40:39] [12:40:39]POST finish read [12:40:39]Found Content-Length = 676 [12:40:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:39]execute_script... [12:40:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:39]POST & json_proto [12:40:39]process_json_proto [12:40:39]json parsed OK: [12:40:39]protocol is kg_v1.0 [12:40:39]action value=close_receipt [12:40:39]process_action close_receipt [12:40:39]cmd_close_receipt [12:40:39]MH_GetDate [12:40:39]Write to MH i2c: F0 00 00 F6 3A 1F [12:40:39]Write i2c OK [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: F0 [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: F0 09 00 [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: F0 09 00 F6 3A 00 4C 86 1F 67 22 05 6E 64 79 [12:40:39]GetLastDocTimeStamp 1730119155 [12:40:39]current date 1730119244 [12:40:39]FM_GetShiftState [12:40:39]SAM_PROTO_GetShiftState [12:40:39]wFMCommunicate request_size=4 [12:40:39]MH_SAM_APDU [12:40:39]CAPDU: 80 13 01 00 [12:40:39]Write to MH i2c: E2 08 00 F7 3A 80 13 01 00 00 00 00 00 AE [12:40:39]Write i2c OK [12:40:39]MH_I2C_Read... [12:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:39]Read from MH i2c: E2 [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: E2 0E 00 [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: E2 0E 00 F7 3A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FE [12:40:39]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:40:39]wFMCommunicate OK [12:40:39]SAM_PROTO_GetShiftState done [12:40:39]FM_GetShiftState done [12:40:39]opened in 1730075620 [12:40:39]opened+sec_in_day 1730162020 [12:40:39]quantity*price = 37062 [12:40:39]sum+1 = 37064 [12:40:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.36 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 102 28.10.2024 12:40 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192554 ФПД: 132864319425249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124045&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192554&fm=132864319425249&tin=02508201610067®Number=0000000000091776&sum=37000 [12:40:40]StoreToDocumentArchive [12:40:40]shift 543 fd 192554 [12:40:40]save to /storage/0543/doc_00192554 [12:40:40]save last doc name /storage/0543/doc_00192554 to /storage/kkm_last_doc_name [12:40:40]save OK [12:40:40]Clear old archive folders... [12:40:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:40]tlvbuf is 01AD8B60 [12:40:40]SAM_PROTO_ClearQueue [12:40:40]wFMCommunicate request_size=4 [12:40:40]MH_SAM_APDU [12:40:40]CAPDU: 80 09 00 00 [12:40:40]Write to MH i2c: E2 08 00 04 3B 80 09 00 00 00 00 00 00 B1 [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:40]Read from MH i2c: E2 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 04 3B 00 90 00 B3 [12:40:40]RAPDU: 90 00 [12:40:40]wFMCommunicate OK [12:40:40]SAM_PROTO_ClearQueue done [12:40:40]KKMCreateOFDPacket [12:40:40]OFDProtocolAddRootSTLVToBuf [12:40:40]FM_MakeSignedData [12:40:40]FM_MakeSignedData [12:40:40]SAM_PROTO_SignData [12:40:40]wFMCommunicate request_size=4 [12:40:40]MH_SAM_APDU [12:40:40]CAPDU: 80 0D 01 02 [12:40:40]Write to MH i2c: E2 08 00 05 3B 80 0D 01 02 00 00 00 00 B9 [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:41]Read from MH i2c: E2 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 03 00 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 03 00 05 3B 00 90 00 B4 [12:40:41]RAPDU: 90 00 [12:40:41]wFMCommunicate OK [12:40:41]wFMCommunicate request_size=255 [12:40:41]MH_SAM_APDU [12:40:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 4D 86 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A F0 02 00 35 04 06 00 78 [12:40:41]Write to MH i2c: E2 02 01 06 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 4D 86 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A F0 02 00 35 04 06 00 78 00 00 70 [12:40:41]Write i2c OK [12:40:41]MH_I2C_Read... [12:40:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:41]Read from MH i2c: E2 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 03 00 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 03 00 06 3B 00 90 00 B5 [12:40:41]RAPDU: 90 00 [12:40:41]wFMCommunicate OK [12:40:41]wFMCommunicate request_size=10 [12:40:41]MH_SAM_APDU [12:40:41]CAPDU: 80 0D 02 02 05 D6 E2 90 0A E1 [12:40:41]Write to MH i2c: E2 0D 00 07 3B 80 0D 02 02 05 00 D6 E2 90 0A E1 00 00 F9 [12:40:41]Write i2c OK [12:40:41]MH_I2C_Read... [12:40:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:41]Read from MH i2c: E2 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 03 00 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 03 00 07 3B 00 90 00 B6 [12:40:41]RAPDU: 90 00 [12:40:41]wFMCommunicate OK [12:40:41]wFMCommunicate request_size=4 [12:40:41]MH_SAM_APDU [12:40:41]CAPDU: 80 0D 03 02 [12:40:41]Write to MH i2c: E2 08 00 08 3B 80 0D 03 02 00 00 00 00 BE [12:40:41]Write i2c OK [12:40:41]MH_I2C_Read... [12:40:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:41]Read from MH i2c: E2 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 0B 00 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 0B 00 08 3B 00 94 9A 1E CC D5 43 BC 2E 90 00 D9 [12:40:41]RAPDU: 94 9A 1E CC D5 43 BC 2E 90 00 [12:40:41]wFMCommunicate OK [12:40:41]SAM_PROTO_SignData done [12:40:41]FM_MakeSignedData done [12:40:41]CreateOFDProtocolMessage [12:40:41]wFMCommunicate request_size=4 [12:40:41]MH_SAM_APDU [12:40:41]CAPDU: 80 11 00 00 [12:40:41]Write to MH i2c: E2 08 00 09 3B 80 11 00 00 00 00 00 00 BE [12:40:41]Write i2c OK [12:40:41]MH_I2C_Read... [12:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:41]Read from MH i2c: E2 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 17 00 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 17 00 09 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 11 [12:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:40:41]wFMCommunicate OK [12:40:41]CreateOFDProtocolMessage done [12:40:41]OFDSenderStorePacket 192554 [12:40:41]StoreOFDPacket docnum=192554 [12:40:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 43 A0 07 01 E6 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 4D 86 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A F0 02 00 35 04 06 00 78 D6 E2 90 0A E1 94 9A 1E CC D5 43 BC 2E [12:40:41]CheckFolder [12:40:41]dirname=/storage/ofd_packets [12:40:41]CheckFolder done [12:40:41]ProducePacketName [12:40:41]name=ofd_packets/00192554 [12:40:41]NVStorageSaveData ofd_packets/00192554 [12:40:41]File name is /storage/ofd_packets/00192554 [12:40:41]Write 301 bytes [12:40:41]NVStorageSaveData done [12:40:41]OFDSenderStorePacket done [12:40:41]KKMCreateOFDPacket done [12:40:41]NVStorageSaveData kkm_last_timestamp [12:40:41]File name is /storage/kkm_last_timestamp [12:40:41]Write 4 bytes [12:40:41]NVStorageSaveData done [12:40:41]ExternCall_PrintAddStr [12:40:41]wPrintStart [12:40:41]Write to MH i2c: 01 00 00 0A 3B 45 [12:40:41]Write i2c OK [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: 01 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: 01 07 00 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: 01 07 00 0A 3B 00 00 00 00 00 FF 0F 5A [12:40:41]RasterBufferAndPrint [12:40:41]line Счет N : (1)31874 [12:40:41]line ИНН: 02508201610067 [12:40:41]line Контрольно-Кассовый Чек [12:40:41]line ПРОДАЖА [12:40:41]line ТРК (МРК, ГНК) : 12 [12:40:41]line Товар: 2710124130 [12:40:41]line Аи-92-К-5 [12:40:41]line 5.540 * 66.90 [12:40:41]line = 370.63 [12:40:41]line НДС 12% НСП 1% [12:40:41]line > о реализуемом товаре [12:40:41]line ОКРУГЛЕНИЕ: -0.63 [12:40:41]line ИТОГО: 370.00 [12:40:41]line Внесено: 370.00 [12:40:41]line СДАЧА: 0.00 [12:40:41]line НСП 1% : 3.28 [12:40:41]line НДС 12% : 39.36 [12:40:41]line Наличными: 370.00 [12:40:41]line Безнал.: 0.00 [12:40:41]line Место: АЗС № 170 "Партнер Нефть" [12:40:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:40:41]line СНО: Общий режим [12:40:41]line Чек 102 28.10.2024 12:40 [12:40:41]line Смена: 543 ФФД: 1.0 [12:40:41]line ЗНМ: 0300000110 [12:40:41]line РНМ: 0000000000091776 [12:40:41]line Версия ККМ: 001 [12:40:41]line ФМ: 0000000000871754 [12:40:41]line ФД: 192554 [12:40:41]line ФПД: 132864319425249 [12:40:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124045&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192554&fm=132864319425249&tin=02508201610067®Number=0000000000091776&sum=37000 [12:40:41]OFD Sender: Processing packet 192554 [packets to send 75, broken 74] [12:40:41]ProducePacketName [12:40:41]name=ofd_packets/00192554 [12:40:41]OFD Sender: To server: pG, [12:40:41]CommunicateWithHost lk.salyk.kg:30040 [12:40:41]ConnectInit lk.salyk.kg [12:40:41]written 0, free lines is 4095 [12:40:41]Connected sock=10 [12:40:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 43 A0 07 01 E6 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 4D 86 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A F0 02 00 35 04 06 00 78 D6 E2 90 0A E1 94 9A 1E CC D5 43 BC 2E [12:40:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6B 4B 47 00 17 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 31 37 35 34 10 04 04 00 2A F0 02 00 F4 03 04 00 11 2B 1F 67 B6 04 01 00 00 36 1C 4E 31 DC 85 23 A2 [12:40:42]CommunicateWithHost err = 0 [12:40:42]CheckOFDResponse [12:40:42]1017 (14) - 77093643461234 [12:40:42]1041 (16) - 0000000000871754 [12:40:42]1040 (4) - 192554 [12:40:42]1012 (4) - 28.10.2024 06:11 [12:40:42]1206 (1) - 0 [12:40:42]OFD Sender: Remove packet 192554 [12:40:42]ProducePacketName [12:40:42]name=ofd_packets/00192554 [12:40:42]NVStorageDeleteData [12:40:42]Write to MH i2c: 01 00 00 35 3B 70 [12:40:42]Write i2c OK [12:40:42]MH_I2C_Read... [12:40:42]Read from MH i2c: 01 [12:40:42]MH_I2C_Read... [12:40:42]Read from MH i2c: 01 07 00 [12:40:42]MH_I2C_Read... [12:40:42]Read from MH i2c: 01 07 00 35 3B 00 00 00 00 00 AB 0C 2E [12:40:42]RasterBufferAndPrint [12:40:42]line [12:40:42]line [12:40:42]line [12:40:42]line [12:40:42]line [12:40:42]written 0, free lines is 3250 [12:40:42]MH_Cut [12:40:42]Write to MH i2c: D1 01 00 3C 3B 01 49 [12:40:42]Write i2c OK [12:40:42]MH_I2C_Read... [12:40:42]Read from MH i2c: D1 [12:40:42]MH_I2C_Read... [12:40:42]Read from MH i2c: D1 01 00 [12:40:42]MH_I2C_Read... [12:40:42]Read from MH i2c: D1 01 00 3C 3B 00 48 [12:40:42]Write to MH i2c: 01 00 00 3D 3B 78 [12:40:42]Write i2c OK [12:40:42]MH_I2C_Read... [12:40:42]OFD Sender: No OFD packet to send [12:40:43]*** Cut start [12:40:43]*** Partial cut [12:40:43]*** CUTSNS_PIN = 1 [12:40:43]*** CUTSNS_PIN = 0 [12:40:43]*** Brake cut motor [12:40:43]Read from MH i2c: 01 [12:40:43]MH_I2C_Read... [12:40:43]*** Stop cut motor [12:40:43]*** Cut end [12:40:43]Read from MH i2c: 01 07 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: 01 07 00 3D 3B 00 00 00 00 00 FF 0F 8D [12:40:43]process_action close_receipt done [12:40:43]requested_data is exist [12:40:43]produce_requested_data [12:40:43]requested_item fm.sn is exist - process it [12:40:43]wFMCommunicate request_size=4 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 11 00 00 [12:40:43]Write to MH i2c: E2 08 00 3E 3B 80 11 00 00 00 00 00 00 F3 [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:43]Read from MH i2c: E2 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 17 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 17 00 3E 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 46 [12:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:40:43]wFMCommunicate OK [12:40:43]requested_item fd.num is exist - process it [12:40:43]SAM_PROTO_GetFieldsCounters [12:40:43]wFMCommunicate request_size=4 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 13 00 00 [12:40:43]Write to MH i2c: E2 08 00 3F 3B 80 13 00 00 00 00 00 00 F6 [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:43]Read from MH i2c: E2 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 62 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 62 00 3F 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [12:40:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:43]wFMCommunicate OK [12:40:43]SAM_PROTO_GetFieldsCounters done [12:40:43]requested_item shift.num is exist - process it [12:40:43]requested_item shift.opened is exist - process it [12:40:43]req_shift_opened [12:40:43]FM_GetShiftState [12:40:43]SAM_PROTO_GetShiftState [12:40:43]wFMCommunicate request_size=4 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 13 01 00 [12:40:43]Write to MH i2c: E2 08 00 40 3B 80 13 01 00 00 00 00 00 F8 [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:43]Read from MH i2c: E2 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 0E 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 0E 00 40 3B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 48 [12:40:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:40:43]wFMCommunicate OK [12:40:43]SAM_PROTO_GetShiftState done [12:40:43]FM_GetShiftState done [12:40:43]req_shift_opened done [12:40:43]requested_item shift.open_date is exist - process it [12:40:43]req_shift_open_date [12:40:43]req_shift_open_date done [12:40:43]produce_requested_data done [12:40:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192554,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:40:43]process_action_free close_receipt [12:40:43]json_value_free [12:40:43]json_value_free done [12:40:43]process_json_proto returns [12:40:43]Send response to host [12:40:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192554,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:40:43]free response buf [12:40:43]execute_script done [12:40:43]execute_script returns [12:40:43]free content buf [12:40:43]Sock 7.Close socket [12:40:43]Sock 7.Thread stoped [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:25]accept exits with 9 [12:41:25]New connection [12:41:25]New thread 3066707300 created [12:41:25]Thread 3066563940 joined [12:41:25]Waiting for new connection... [12:41:25] Sock 9.Parse request [12:41:25]Sock 9.Check first char [12:41:25]Sock 9.First char is OK [12:41:25]request: POST /json_proto HTTP/1.0 [12:41:25]Method: POST [12:41:25]URL: /json_proto [12:41:25]Method is POST - this is cgi request [12:41:25]url: /json_proto [12:41:25]query_string will be loaded in cgi processing [12:41:25]execute_cgi json_proto POST (null) [12:41:25]execute_cgi path=json_proto method=POST [12:41:25]POST find Content-Length [12:41:25]Host: 172.17.63.131:8080 [12:41:25]Content-Length: 862 [12:41:25]Content-Type: application/json [12:41:25] [12:41:25]POST finish read [12:41:25]Found Content-Length = 862 [12:41:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:25]execute_script... [12: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 : (1)31875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:25]POST & json_proto [12:41:25]process_json_proto [12:41:25]json parsed OK: [12:41:25]protocol is kg_v1.0 [12:41:25]action value=close_receipt [12:41:25]process_action close_receipt [12:41:25]cmd_close_receipt [12:41:25]MH_GetDate [12:41:25]Write to MH i2c: F0 00 00 41 3B 6B [12:41:25]Write i2c OK [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: F0 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: F0 09 00 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: F0 09 00 41 3B 00 7A 86 1F 67 22 05 6E 64 F3 [12:41:25]GetLastDocTimeStamp 1730119245 [12:41:25]current date 1730119290 [12:41:25]FM_GetShiftState [12:41:25]SAM_PROTO_GetShiftState [12:41:25]wFMCommunicate request_size=4 [12:41:25]MH_SAM_APDU [12:41:25]CAPDU: 80 13 01 00 [12:41:25]Write to MH i2c: E2 08 00 42 3B 80 13 01 00 00 00 00 00 FA [12:41:25]Write i2c OK [12:41:25]MH_I2C_Read... [12:41:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:25]Read from MH i2c: E2 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: E2 0E 00 [12:41:25]MH_I2C_Read... [12:41:25]Read from MH i2c: E2 0E 00 42 3B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 4A [12:41:25]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:41:25]wFMCommunicate OK [12:41:25]SAM_PROTO_GetShiftState done [12:41:25]FM_GetShiftState done [12:41:25]opened in 1730075620 [12:41:25]opened+sec_in_day 1730162020 [12:41:25]quantity*price = 50041 [12:41:25]sum+1 = 50042 [12:41:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 103 28.10.2024 12:41 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192555 ФПД: 184454950049946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124130&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192555&fm=184454950049946&tin=02508201610067®Number=0000000000091776&sum=50041 [12:41:26]StoreToDocumentArchive [12:41:26]shift 543 fd 192555 [12:41:26]save to /storage/0543/doc_00192555 [12:41:26]save last doc name /storage/0543/doc_00192555 to /storage/kkm_last_doc_name [12:41:26]save OK [12:41:26]Clear old archive folders... [12:41:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:26]tlvbuf is 01A00A60 [12:41:26]SAM_PROTO_ClearQueue [12:41:26]wFMCommunicate request_size=4 [12:41:26]MH_SAM_APDU [12:41:26]CAPDU: 80 09 00 00 [12:41:26]Write to MH i2c: E2 08 00 4F 3B 80 09 00 00 00 00 00 00 FC [12:41:26]Write i2c OK [12:41:26]MH_I2C_Read... [12:41:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:26]Read from MH i2c: E2 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: E2 03 00 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: E2 03 00 4F 3B 00 90 00 FE [12:41:26]RAPDU: 90 00 [12:41:26]wFMCommunicate OK [12:41:26]SAM_PROTO_ClearQueue done [12:41:26]KKMCreateOFDPacket [12:41:26]OFDProtocolAddRootSTLVToBuf [12:41:26]FM_MakeSignedData [12:41:26]FM_MakeSignedData [12:41:26]SAM_PROTO_SignData [12:41:26]wFMCommunicate request_size=4 [12:41:26]MH_SAM_APDU [12:41:26]CAPDU: 80 0D 01 02 [12:41:26]Write to MH i2c: E2 08 00 50 3B 80 0D 01 02 00 00 00 00 04 [12:41:26]Write i2c OK [12:41:26]MH_I2C_Read... [12:41:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:26]Read from MH i2c: E2 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: E2 03 00 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: E2 03 00 50 3B 00 90 00 FF [12:41:26]RAPDU: 90 00 [12:41:26]wFMCommunicate OK [12:41:26]wFMCommunicate request_size=255 [12:41:26]MH_SAM_APDU [12:41:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 7A 86 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B F0 02 00 35 04 06 00 A7 [12:41:26]Write to MH i2c: E2 02 01 51 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 7A 86 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B F0 02 00 35 04 06 00 A7 00 00 BC [12:41:26]Write i2c OK [12:41:26]MH_I2C_Read... [12:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:26]Read from MH i2c: E2 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: E2 03 00 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: E2 03 00 51 3B 00 90 00 00 [12:41:26]RAPDU: 90 00 [12:41:26]wFMCommunicate OK [12:41:26]wFMCommunicate request_size=10 [12:41:26]MH_SAM_APDU [12:41:26]CAPDU: 80 0D 02 02 05 C2 C3 C6 58 9A [12:41:26]Write to MH i2c: E2 0D 00 52 3B 80 0D 02 02 05 00 C2 C3 C6 58 9A 00 00 4E [12:41:26]Write i2c OK [12:41:26]MH_I2C_Read... [12:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:26]Read from MH i2c: E2 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: E2 03 00 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: E2 03 00 52 3B 00 90 00 01 [12:41:26]RAPDU: 90 00 [12:41:26]wFMCommunicate OK [12:41:26]wFMCommunicate request_size=4 [12:41:26]MH_SAM_APDU [12:41:26]CAPDU: 80 0D 03 02 [12:41:26]Write to MH i2c: E2 08 00 53 3B 80 0D 03 02 00 00 00 00 09 [12:41:26]Write i2c OK [12:41:26]MH_I2C_Read... [12:41:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:26]Read from MH i2c: E2 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: E2 0B 00 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: E2 0B 00 53 3B 00 90 5E 9E B2 38 95 AE 56 90 00 19 [12:41:26]RAPDU: 90 5E 9E B2 38 95 AE 56 90 00 [12:41:26]wFMCommunicate OK [12:41:26]SAM_PROTO_SignData done [12:41:26]FM_MakeSignedData done [12:41:26]CreateOFDProtocolMessage [12:41:26]wFMCommunicate request_size=4 [12:41:26]MH_SAM_APDU [12:41:26]CAPDU: 80 11 00 00 [12:41:26]Write to MH i2c: E2 08 00 54 3B 80 11 00 00 00 00 00 00 09 [12:41:26]Write i2c OK [12:41:26]MH_I2C_Read... [12:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:26]Read from MH i2c: E2 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: E2 17 00 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: E2 17 00 54 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [12:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:41:26]wFMCommunicate OK [12:41:26]CreateOFDProtocolMessage done [12:41:26]OFDSenderStorePacket 192555 [12:41:26]StoreOFDPacket docnum=192555 [12:41:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 69 F1 07 01 A9 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 7A 86 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B F0 02 00 35 04 06 00 A7 C2 C3 C6 58 9A 90 5E 9E B2 38 95 AE 56 [12:41:26]CheckFolder [12:41:26]dirname=/storage/ofd_packets [12:41:26]CheckFolder done [12:41:26]ProducePacketName [12:41:26]name=ofd_packets/00192555 [12:41:26]NVStorageSaveData ofd_packets/00192555 [12:41:26]File name is /storage/ofd_packets/00192555 [12:41:26]Write 301 bytes [12:41:26]NVStorageSaveData done [12:41:26]OFDSenderStorePacket done [12:41:26]KKMCreateOFDPacket done [12:41:26]NVStorageSaveData kkm_last_timestamp [12:41:26]File name is /storage/kkm_last_timestamp [12:41:26]Write 4 bytes [12:41:26]NVStorageSaveData done [12:41:26]ExternCall_PrintAddStr [12:41:26]wPrintStart [12:41:26]Write to MH i2c: 01 00 00 55 3B 90 [12:41:26]Write i2c OK [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: 01 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: 01 07 00 [12:41:26]MH_I2C_Read... [12:41:26]Read from MH i2c: 01 07 00 55 3B 00 00 00 00 00 FF 0F A5 [12:41:26]RasterBufferAndPrint [12:41:26]line Счет N : (1)31875 [12:41:26]line ИНН: 02508201610067 [12:41:26]line Контрольно-Кассовый Чек [12:41:26]line ПРОДАЖА [12:41:26]line ТРК (МРК, ГНК) : 12 [12:41:26]line Товар: 2710124130 [12:41:26]line Аи-92-К-5 [12:41:26]line 7.480 * 66.90 [12:41:26]line = 500.41 [12:41:26]line НДС 12% НСП 1% [12:41:26]line > о реализуемом товаре [12:41:26]line ИТОГО: 500.41 [12:41:26]line НСП 1% : 4.43 [12:41:26]line НДС 12% : 53.14 [12:41:26]line Наличными: 0.00 [12:41:26]line Безнал.: 500.41 [12:41:26]line Место: АЗС № 170 "Партнер Нефть" [12:41:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:41:26]line СНО: Общий режим [12:41:26]line Чек 103 28.10.2024 12:41 [12:41:26]line Смена: 543 ФФД: 1.0 [12:41:26]line ЗНМ: 0300000110 [12:41:26]line РНМ: 0000000000091776 [12:41:26]line Версия ККМ: 001 [12:41:26]line Платежная система: Кыргызкоммерцбанк [12:41:26]line ФМ: 0000000000871754 [12:41:26]line ФД: 192555 [12:41:26]line ФПД: 184454950049946 [12:41:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124130&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192555&fm=184454950049946&tin=02508201610067®Number=0000000000091776&sum=50041 [12:41:27]OFD Sender: Processing packet 192555 [packets to send 75, broken 74] [12:41:27]ProducePacketName [12:41:27]name=ofd_packets/00192555 [12:41:27]OFD Sender: To server: pG, [12:41:27]CommunicateWithHost lk.salyk.kg:30040 [12:41:27]ConnectInit lk.salyk.kg [12:41:27]written 0, free lines is 4095 [12:41:27]Connected sock=10 [12: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 31 37 35 34 0F 01 00 00 69 F1 07 01 A9 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 7A 86 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B F0 02 00 35 04 06 00 A7 C2 C3 C6 58 9A 90 5E 9E B2 38 95 AE 56 [12:41:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5E 5C 47 00 7C 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B F0 02 00 F4 03 04 00 3E 2B 1F 67 B6 04 01 00 00 F0 44 8B 0E F9 34 F7 28 [12:41:27]CommunicateWithHost err = 0 [12:41:27]CheckOFDResponse [12:41:27]1017 (14) - 77093643461234 [12:41:27]1041 (16) - 0000000000871754 [12:41:27]1040 (4) - 192555 [12:41:27]1012 (4) - 28.10.2024 06:12 [12:41:27]1206 (1) - 0 [12:41:27]OFD Sender: Remove packet 192555 [12:41:27]ProducePacketName [12:41:27]name=ofd_packets/00192555 [12:41:27]NVStorageDeleteData [12:41:27]Write to MH i2c: 01 00 00 7F 3B BA [12:41:27]Write i2c OK [12:41:27]MH_I2C_Read... [12:41:27]Read from MH i2c: 01 [12:41:27]MH_I2C_Read... [12:41:27]Read from MH i2c: 01 07 00 [12:41:27]MH_I2C_Read... [12:41:27]Read from MH i2c: 01 07 00 7F 3B 00 00 00 00 00 C1 0C 8E [12:41:27]RasterBufferAndPrint [12:41:27]line [12:41:27]line [12:41:27]line [12:41:27]line [12:41:27]line [12:41:27]written 0, free lines is 3271 [12:41:27]MH_Cut [12:41:27]Write to MH i2c: D1 01 00 86 3B 01 93 [12:41:27]Write i2c OK [12:41:27]MH_I2C_Read... [12:41:27]Read from MH i2c: D1 [12:41:27]MH_I2C_Read... [12:41:27]Read from MH i2c: D1 01 00 [12:41:27]MH_I2C_Read... [12:41:27]Read from MH i2c: D1 01 00 86 3B 00 92 [12:41:27]Write to MH i2c: 01 00 00 87 3B C2 [12:41:27]Write i2c OK [12:41:27]MH_I2C_Read... [12:41:28]OFD Sender: No OFD packet to send [12:41:28]*** Cut start [12:41:28]*** Partial cut [12:41:28]*** CUTSNS_PIN = 1 [12:41:28]*** CUTSNS_PIN = 0 [12:41:28]*** Brake cut motor [12:41:29]Read from MH i2c: 01 [12:41:29]MH_I2C_Read... [12:41:29]*** Stop cut motor [12:41:29]*** Cut end [12:41:29]Read from MH i2c: 01 07 00 [12:41:29]MH_I2C_Read... [12:41:29]Read from MH i2c: 01 07 00 87 3B 00 00 00 00 00 FF 0F D7 [12:41:29]process_action close_receipt done [12:41:29]requested_data is exist [12:41:29]produce_requested_data [12:41:29]requested_item fm.sn is exist - process it [12:41:29]wFMCommunicate request_size=4 [12:41:29]MH_SAM_APDU [12:41:29]CAPDU: 80 11 00 00 [12:41:29]Write to MH i2c: E2 08 00 88 3B 80 11 00 00 00 00 00 00 3D [12:41:29]Write i2c OK [12:41:29]MH_I2C_Read... [12:41:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:29]Read from MH i2c: E2 [12:41:29]MH_I2C_Read... [12:41:29]Read from MH i2c: E2 17 00 [12:41:29]MH_I2C_Read... [12:41:29]Read from MH i2c: E2 17 00 88 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 90 [12:41:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:41:29]wFMCommunicate OK [12:41:29]requested_item fd.num is exist - process it [12:41:29]SAM_PROTO_GetFieldsCounters [12:41:29]wFMCommunicate request_size=4 [12:41:29]MH_SAM_APDU [12:41:29]CAPDU: 80 13 00 00 [12:41:29]Write to MH i2c: E2 08 00 89 3B 80 13 00 00 00 00 00 00 40 [12:41:29]Write i2c OK [12:41:29]MH_I2C_Read... [12:41:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:29]Read from MH i2c: E2 [12:41:29]MH_I2C_Read... [12:41:29]Read from MH i2c: E2 62 00 [12:41:29]MH_I2C_Read... [12:41:29]Read from MH i2c: E2 62 00 89 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [12: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:41:29]wFMCommunicate OK [12:41:29]SAM_PROTO_GetFieldsCounters done [12:41:29]requested_item shift.num is exist - process it [12:41:29]requested_item shift.opened is exist - process it [12:41:29]req_shift_opened [12:41:29]FM_GetShiftState [12:41:29]SAM_PROTO_GetShiftState [12:41:29]wFMCommunicate request_size=4 [12:41:29]MH_SAM_APDU [12:41:29]CAPDU: 80 13 01 00 [12:41:29]Write to MH i2c: E2 08 00 8A 3B 80 13 01 00 00 00 00 00 42 [12:41:29]Write i2c OK [12:41:29]MH_I2C_Read... [12:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:29]Read from MH i2c: E2 [12:41:29]MH_I2C_Read... [12:41:29]Read from MH i2c: E2 0E 00 [12:41:29]MH_I2C_Read... [12:41:29]Read from MH i2c: E2 0E 00 8A 3B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 92 [12:41:29]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:41:29]wFMCommunicate OK [12:41:29]SAM_PROTO_GetShiftState done [12:41:29]FM_GetShiftState done [12:41:29]req_shift_opened done [12:41:29]requested_item shift.open_date is exist - process it [12:41:29]req_shift_open_date [12:41:29]req_shift_open_date done [12:41:29]produce_requested_data done [12:41:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192555,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:41:29]process_action_free close_receipt [12:41:29]json_value_free [12:41:29]json_value_free done [12:41:29]process_json_proto returns [12:41:29]Send response to host [12:41:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192555,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:41:29]free response buf [12:41:29]execute_script done [12:41:29]execute_script returns [12:41:29]free content buf [12:41:29]Sock 9.Close socket [12:41:29]Sock 9.Thread stoped [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:02]accept exits with 7 [12:44:02]New connection [12:44:02]New thread 3066563940 created [12:44:02]Thread 3066707300 joined [12:44:02]Waiting for new connection... [12:44:02] Sock 7.Parse request [12:44:02]Sock 7.Check first char [12:44:02]Sock 7.First char is OK [12:44:02]request: POST /json_proto HTTP/1.0 [12:44:02]Method: POST [12:44:02]URL: /json_proto [12:44:02]Method is POST - this is cgi request [12:44:02]url: /json_proto [12:44:02]query_string will be loaded in cgi processing [12:44:02]execute_cgi json_proto POST (null) [12:44:02]execute_cgi path=json_proto method=POST [12:44:02]POST find Content-Length [12:44:02]Host: 172.17.63.131:8080 [12:44:02]Content-Length: 676 [12:44:02]Content-Type: application/json [12:44:02] [12:44:02]POST finish read [12:44:02]Found Content-Length = 676 [12:44:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:02]execute_script... [12:44:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:02]POST & json_proto [12:44:02]process_json_proto [12:44:02]json parsed OK: [12:44:02]protocol is kg_v1.0 [12:44:02]action value=close_receipt [12:44:02]process_action close_receipt [12:44:02]cmd_close_receipt [12:44:02]MH_GetDate [12:44:02]Write to MH i2c: F0 00 00 8B 3B B5 [12:44:02]Write i2c OK [12:44:02]MH_I2C_Read... [12:44:02]Read from MH i2c: F0 [12:44:02]MH_I2C_Read... [12:44:02]Read from MH i2c: F0 09 00 [12:44:02]MH_I2C_Read... [12:44:02]Read from MH i2c: F0 09 00 8B 3B 00 17 87 1F 67 22 05 6E 64 DB [12:44:02]GetLastDocTimeStamp 1730119290 [12:44:02]current date 1730119447 [12:44:02]FM_GetShiftState [12:44:02]SAM_PROTO_GetShiftState [12:44:02]wFMCommunicate request_size=4 [12:44:02]MH_SAM_APDU [12:44:02]CAPDU: 80 13 01 00 [12:44:02]Write to MH i2c: E2 08 00 8C 3B 80 13 01 00 00 00 00 00 44 [12:44:02]Write i2c OK [12:44:02]MH_I2C_Read... [12:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:02]Read from MH i2c: E2 [12:44:02]MH_I2C_Read... [12:44:02]Read from MH i2c: E2 0E 00 [12:44:02]MH_I2C_Read... [12:44:02]Read from MH i2c: E2 0E 00 8C 3B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 94 [12:44:02]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:44:02]wFMCommunicate OK [12:44:02]SAM_PROTO_GetShiftState done [12:44:02]FM_GetShiftState done [12:44:02]opened in 1730075620 [12:44:02]opened+sec_in_day 1730162020 [12:44:02]quantity*price = 34052 [12:44:02]sum+1 = 34053 [12:44:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 104 28.10.2024 12:44 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192556 ФПД: 280213115578577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124407&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192556&fm=280213115578577&tin=02508201610067®Number=0000000000091776&sum=34000 [12:44:03]StoreToDocumentArchive [12:44:03]shift 543 fd 192556 [12:44:03]save to /storage/0543/doc_00192556 [12:44:03]save last doc name /storage/0543/doc_00192556 to /storage/kkm_last_doc_name [12:44:03]save OK [12:44:03]Clear old archive folders... [12:44:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:03]tlvbuf is B6D6C0D0 [12:44:03]SAM_PROTO_ClearQueue [12:44:03]wFMCommunicate request_size=4 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 09 00 00 [12:44:03]Write to MH i2c: E2 08 00 99 3B 80 09 00 00 00 00 00 00 46 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 99 3B 00 90 00 48 [12:44:03]RAPDU: 90 00 [12:44:03]wFMCommunicate OK [12:44:03]SAM_PROTO_ClearQueue done [12:44:03]KKMCreateOFDPacket [12:44:03]OFDProtocolAddRootSTLVToBuf [12:44:03]FM_MakeSignedData [12:44:03]FM_MakeSignedData [12:44:03]SAM_PROTO_SignData [12:44:03]wFMCommunicate request_size=4 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 0D 01 02 [12:44:03]Write to MH i2c: E2 08 00 9A 3B 80 0D 01 02 00 00 00 00 4E [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 9A 3B 00 90 00 49 [12:44:03]RAPDU: 90 00 [12:44:03]wFMCommunicate OK [12:44:03]wFMCommunicate request_size=255 [12:44:03]MH_SAM_APDU [12:44: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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 17 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C F0 02 00 35 04 06 00 FE [12:44:03]Write to MH i2c: E2 02 01 9B 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 17 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C F0 02 00 35 04 06 00 FE 00 00 E4 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 9B 3B 00 90 00 4A [12:44:03]RAPDU: 90 00 [12:44:03]wFMCommunicate OK [12:44:03]wFMCommunicate request_size=10 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 0D 02 02 05 DA 33 37 28 D1 [12:44:03]Write to MH i2c: E2 0D 00 9C 3B 80 0D 02 02 05 00 DA 33 37 28 D1 00 00 98 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 03 00 9C 3B 00 90 00 4B [12:44:03]RAPDU: 90 00 [12:44:03]wFMCommunicate OK [12:44:03]wFMCommunicate request_size=4 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 0D 03 02 [12:44:03]Write to MH i2c: E2 08 00 9D 3B 80 0D 03 02 00 00 00 00 53 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:04]Read from MH i2c: E2 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 0B 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 0B 00 9D 3B 00 83 62 A0 0D 8F CA 52 C6 90 00 57 [12:44:04]RAPDU: 83 62 A0 0D 8F CA 52 C6 90 00 [12:44:04]wFMCommunicate OK [12:44:04]SAM_PROTO_SignData done [12:44:04]FM_MakeSignedData done [12:44:04]CreateOFDProtocolMessage [12:44:04]wFMCommunicate request_size=4 [12:44:04]MH_SAM_APDU [12:44:04]CAPDU: 80 11 00 00 [12:44:04]Write to MH i2c: E2 08 00 9E 3B 80 11 00 00 00 00 00 00 53 [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:04]Read from MH i2c: E2 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 17 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: E2 17 00 9E 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [12:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:44:04]wFMCommunicate OK [12:44:04]CreateOFDProtocolMessage done [12:44:04]OFDSenderStorePacket 192556 [12:44:04]StoreOFDPacket docnum=192556 [12:44:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BA FA 07 01 5D 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 17 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C F0 02 00 35 04 06 00 FE DA 33 37 28 D1 83 62 A0 0D 8F CA 52 C6 [12:44:04]CheckFolder [12:44:04]dirname=/storage/ofd_packets [12:44:04]CheckFolder done [12:44:04]ProducePacketName [12:44:04]name=ofd_packets/00192556 [12:44:04]NVStorageSaveData ofd_packets/00192556 [12:44:04]File name is /storage/ofd_packets/00192556 [12:44:04]Write 301 bytes [12:44:04]NVStorageSaveData done [12:44:04]OFDSenderStorePacket done [12:44:04]KKMCreateOFDPacket done [12:44:04]NVStorageSaveData kkm_last_timestamp [12:44:04]File name is /storage/kkm_last_timestamp [12:44:04]Write 4 bytes [12:44:04]NVStorageSaveData done [12:44:04]ExternCall_PrintAddStr [12:44:04]wPrintStart [12:44:04]Write to MH i2c: 01 00 00 9F 3B DA [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: 01 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: 01 07 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: 01 07 00 9F 3B 00 00 00 00 00 FF 0F EF [12:44:04]RasterBufferAndPrint [12:44:04]line Счет N : (1)31876 [12:44:04]line ИНН: 02508201610067 [12:44:04]line Контрольно-Кассовый Чек [12:44:04]line ПРОДАЖА [12:44:04]line ТРК (МРК, ГНК) : 21 [12:44:04]line Товар: 2710124130 [12:44:04]line Аи-92-К-5 [12:44:04]line 5.090 * 66.90 [12:44:04]line = 340.52 [12:44:04]line НДС 12% НСП 1% [12:44:04]line > о реализуемом товаре [12:44:04]line ОКРУГЛЕНИЕ: -0.52 [12:44:04]line ИТОГО: 340.00 [12:44:04]line Внесено: 340.00 [12:44:04]line СДАЧА: 0.00 [12:44:04]line НСП 1% : 3.01 [12:44:04]line НДС 12% : 36.16 [12:44:04]line Наличными: 340.00 [12:44:04]line Безнал.: 0.00 [12:44:04]line Место: АЗС № 170 "Партнер Нефть" [12:44:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:44:04]line СНО: Общий режим [12:44:04]line Чек 104 28.10.2024 12:44 [12:44:04]line Смена: 543 ФФД: 1.0 [12:44:04]line ЗНМ: 0300000110 [12:44:04]line РНМ: 0000000000091776 [12:44:04]line Версия ККМ: 001 [12:44:04]line ФМ: 0000000000871754 [12:44:04]line ФД: 192556 [12:44:04]line ФПД: 280213115578577 [12:44:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124407&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192556&fm=280213115578577&tin=02508201610067®Number=0000000000091776&sum=34000 [12:44:04]OFD Sender: Processing packet 192556 [packets to send 75, broken 74] [12:44:04]ProducePacketName [12:44:04]name=ofd_packets/00192556 [12:44:04]OFD Sender: To server: pG, [12:44:04]CommunicateWithHost lk.salyk.kg:30040 [12:44:04]ConnectInit lk.salyk.kg [12:44:04]written 0, free lines is 4095 [12:44:04]Connected sock=10 [12:44:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BA FA 07 01 5D 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 17 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C F0 02 00 35 04 06 00 FE DA 33 37 28 D1 83 62 A0 0D 8F CA 52 C6 [12:44:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 46 24 47 00 7B 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C F0 02 00 F4 03 04 00 DB 2B 1F 67 B6 04 01 00 00 51 AF 76 14 4B 4B 1F 02 [12:44:04]CommunicateWithHost err = 0 [12:44:04]CheckOFDResponse [12:44:04]1017 (14) - 77093643461234 [12:44:04]1041 (16) - 0000000000871754 [12:44:04]1040 (4) - 192556 [12:44:04]1012 (4) - 28.10.2024 06:14 [12:44:04]1206 (1) - 0 [12:44:04]OFD Sender: Remove packet 192556 [12:44:04]ProducePacketName [12:44:04]name=ofd_packets/00192556 [12:44:04]NVStorageDeleteData [12:44:04]Write to MH i2c: 01 00 00 CA 3B 05 [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: 01 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: 01 07 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: 01 07 00 CA 3B 00 00 00 00 00 A7 0C BF [12:44:04]RasterBufferAndPrint [12:44:04]line [12:44:04]line [12:44:04]line [12:44:04]line [12:44:04]line [12:44:04]written 0, free lines is 3245 [12:44:04]MH_Cut [12:44:04]Write to MH i2c: D1 01 00 D1 3B 01 DE [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: D1 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: D1 01 00 [12:44:04]MH_I2C_Read... [12:44:04]Read from MH i2c: D1 01 00 D1 3B 00 DD [12:44:04]Write to MH i2c: 01 00 00 D2 3B 0D [12:44:04]Write i2c OK [12:44:04]MH_I2C_Read... [12:44:05]OFD Sender: No OFD packet to send [12:44:05]*** Cut start [12:44:05]*** Partial cut [12:44:05]*** CUTSNS_PIN = 1 [12:44:05]*** CUTSNS_PIN = 0 [12:44:05]*** Brake cut motor [12:44:06]Read from MH i2c: 01 [12:44:06]MH_I2C_Read... [12:44:06]*** Stop cut motor [12:44:06]*** Cut end [12:44:06]Read from MH i2c: 01 07 00 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: 01 07 00 D2 3B 00 00 00 00 00 FF 0F 22 [12:44:06]process_action close_receipt done [12:44:06]requested_data is exist [12:44:06]produce_requested_data [12:44:06]requested_item fm.sn is exist - process it [12:44:06]wFMCommunicate request_size=4 [12:44:06]MH_SAM_APDU [12:44:06]CAPDU: 80 11 00 00 [12:44:06]Write to MH i2c: E2 08 00 D3 3B 80 11 00 00 00 00 00 00 88 [12:44:06]Write i2c OK [12:44:06]MH_I2C_Read... [12:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:06]Read from MH i2c: E2 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 17 00 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 17 00 D3 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [12:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:44:06]wFMCommunicate OK [12:44:06]requested_item fd.num is exist - process it [12:44:06]SAM_PROTO_GetFieldsCounters [12:44:06]wFMCommunicate request_size=4 [12:44:06]MH_SAM_APDU [12:44:06]CAPDU: 80 13 00 00 [12:44:06]Write to MH i2c: E2 08 00 D4 3B 80 13 00 00 00 00 00 00 8B [12:44:06]Write i2c OK [12:44:06]MH_I2C_Read... [12:44:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:06]Read from MH i2c: E2 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 62 00 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 62 00 D4 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [12:44:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:06]wFMCommunicate OK [12:44:06]SAM_PROTO_GetFieldsCounters done [12:44:06]requested_item shift.num is exist - process it [12:44:06]requested_item shift.opened is exist - process it [12:44:06]req_shift_opened [12:44:06]FM_GetShiftState [12:44:06]SAM_PROTO_GetShiftState [12:44:06]wFMCommunicate request_size=4 [12:44:06]MH_SAM_APDU [12:44:06]CAPDU: 80 13 01 00 [12:44:06]Write to MH i2c: E2 08 00 D5 3B 80 13 01 00 00 00 00 00 8D [12:44:06]Write i2c OK [12:44:06]MH_I2C_Read... [12:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:06]Read from MH i2c: E2 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 0E 00 [12:44:06]MH_I2C_Read... [12:44:06]Read from MH i2c: E2 0E 00 D5 3B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DD [12:44:06]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:44:06]wFMCommunicate OK [12:44:06]SAM_PROTO_GetShiftState done [12:44:06]FM_GetShiftState done [12:44:06]req_shift_opened done [12:44:06]requested_item shift.open_date is exist - process it [12:44:06]req_shift_open_date [12:44:06]req_shift_open_date done [12:44:06]produce_requested_data done [12:44:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192556,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:44:06]process_action_free close_receipt [12:44:06]json_value_free [12:44:06]json_value_free done [12:44:06]process_json_proto returns [12:44:06]Send response to host [12:44:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192556,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:44:06]free response buf [12:44:06]execute_script done [12:44:06]execute_script returns [12:44:06]free content buf [12:44:06]Sock 7.Close socket [12:44:06]Sock 7.Thread stoped [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:44:58]accept exits with 9 [12:44:58]New connection [12:44:58]New thread 3066707300 created [12:44:58]Thread 3066563940 joined [12:44:58]Waiting for new connection... [12:44:58] Sock 9.Parse request [12:44:58]Sock 9.Check first char [12:44:58]Sock 9.First char is OK [12:44:58]request: POST /json_proto HTTP/1.0 [12:44:58]Method: POST [12:44:58]URL: /json_proto [12:44:58]Method is POST - this is cgi request [12:44:58]url: /json_proto [12:44:58]query_string will be loaded in cgi processing [12:44:58]execute_cgi json_proto POST (null) [12:44:58]execute_cgi path=json_proto method=POST [12:44:58]POST find Content-Length [12:44:58]Host: 172.17.63.131:8080 [12:44:58]Content-Length: 676 [12:44:58]Content-Type: application/json [12:44:58] [12:44:58]POST finish read [12:44:58]Found Content-Length = 676 [12:44:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:58]execute_script... [12:44: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)31877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:58]POST & json_proto [12:44:58]process_json_proto [12:44:58]json parsed OK: [12:44:58]protocol is kg_v1.0 [12:44:58]action value=close_receipt [12:44:58]process_action close_receipt [12:44:58]cmd_close_receipt [12:44:58]MH_GetDate [12:44:58]Write to MH i2c: F0 00 00 D6 3B 00 [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: F0 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: F0 09 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: F0 09 00 D6 3B 00 4F 87 1F 67 22 05 6E 64 5E [12:44:58]GetLastDocTimeStamp 1730119447 [12:44:58]current date 1730119503 [12:44:58]FM_GetShiftState [12:44:58]SAM_PROTO_GetShiftState [12:44:58]wFMCommunicate request_size=4 [12:44:58]MH_SAM_APDU [12:44:58]CAPDU: 80 13 01 00 [12:44:58]Write to MH i2c: E2 08 00 D7 3B 80 13 01 00 00 00 00 00 8F [12:44:58]Write i2c OK [12:44:58]MH_I2C_Read... [12:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:58]Read from MH i2c: E2 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 0E 00 [12:44:58]MH_I2C_Read... [12:44:58]Read from MH i2c: E2 0E 00 D7 3B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DF [12:44:58]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:44:58]wFMCommunicate OK [12:44:58]SAM_PROTO_GetShiftState done [12:44:58]FM_GetShiftState done [12:44:58]opened in 1730075620 [12:44:58]opened+sec_in_day 1730162020 [12:44:58]quantity*price = 25020 [12:44:58]sum+1 = 25022 [12:44:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 105 28.10.2024 12:45 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192557 ФПД: 269907098872803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124503&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192557&fm=269907098872803&tin=02508201610067®Number=0000000000091776&sum=25000 [12:44:59]StoreToDocumentArchive [12:44:59]shift 543 fd 192557 [12:44:59]save to /storage/0543/doc_00192557 [12:44:59]save last doc name /storage/0543/doc_00192557 to /storage/kkm_last_doc_name [12:44:59]save OK [12:44:59]Clear old archive folders... [12:44:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:59]tlvbuf is 0197B070 [12:44:59]SAM_PROTO_ClearQueue [12:44:59]wFMCommunicate request_size=4 [12:44:59]MH_SAM_APDU [12:44:59]CAPDU: 80 09 00 00 [12:44:59]Write to MH i2c: E2 08 00 E4 3B 80 09 00 00 00 00 00 00 91 [12:44:59]Write i2c OK [12:44:59]MH_I2C_Read... [12:44:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:59]Read from MH i2c: E2 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: E2 03 00 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: E2 03 00 E4 3B 00 90 00 93 [12:44:59]RAPDU: 90 00 [12:44:59]wFMCommunicate OK [12:44:59]SAM_PROTO_ClearQueue done [12:44:59]KKMCreateOFDPacket [12:44:59]OFDProtocolAddRootSTLVToBuf [12:44:59]FM_MakeSignedData [12:44:59]FM_MakeSignedData [12:44:59]SAM_PROTO_SignData [12:44:59]wFMCommunicate request_size=4 [12:44:59]MH_SAM_APDU [12:44:59]CAPDU: 80 0D 01 02 [12:44:59]Write to MH i2c: E2 08 00 E5 3B 80 0D 01 02 00 00 00 00 99 [12:44:59]Write i2c OK [12:44:59]MH_I2C_Read... [12:44:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:59]Read from MH i2c: E2 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: E2 03 00 [12:44:59]MH_I2C_Read... [12:44:59]Read from MH i2c: E2 03 00 E5 3B 00 90 00 94 [12:44:59]RAPDU: 90 00 [12:44:59]wFMCommunicate OK [12:44:59]wFMCommunicate request_size=255 [12:44:59]MH_SAM_APDU [12:44:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 4F 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D F0 02 00 35 04 06 00 F5 [12:44:59]Write to MH i2c: E2 02 01 E6 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 4F 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D F0 02 00 35 04 06 00 F5 00 00 00 [12:44:59]Write i2c OK [12:44:59]MH_I2C_Read... [12:44:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:59]Read from MH i2c: E2 [12:44:59]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 03 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 03 00 E6 3B 00 90 00 95 [12:45:00]RAPDU: 90 00 [12:45:00]wFMCommunicate OK [12:45:00]wFMCommunicate request_size=10 [12:45:00]MH_SAM_APDU [12:45:00]CAPDU: 80 0D 02 02 05 7A A4 C0 2B E3 [12:45:00]Write to MH i2c: E2 0D 00 E7 3B 80 0D 02 02 05 00 7A A4 C0 2B E3 00 00 92 [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:00]Read from MH i2c: E2 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 03 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 03 00 E7 3B 00 90 00 96 [12:45:00]RAPDU: 90 00 [12:45:00]wFMCommunicate OK [12:45:00]wFMCommunicate request_size=4 [12:45:00]MH_SAM_APDU [12:45:00]CAPDU: 80 0D 03 02 [12:45:00]Write to MH i2c: E2 08 00 E8 3B 80 0D 03 02 00 00 00 00 9E [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:00]Read from MH i2c: E2 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 0B 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 0B 00 E8 3B 00 B2 6C DD D7 3C CB 88 BA 90 00 BA [12:45:00]RAPDU: B2 6C DD D7 3C CB 88 BA 90 00 [12:45:00]wFMCommunicate OK [12:45:00]SAM_PROTO_SignData done [12:45:00]FM_MakeSignedData done [12:45:00]CreateOFDProtocolMessage [12:45:00]wFMCommunicate request_size=4 [12:45:00]MH_SAM_APDU [12:45:00]CAPDU: 80 11 00 00 [12:45:00]Write to MH i2c: E2 08 00 E9 3B 80 11 00 00 00 00 00 00 9E [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:00]Read from MH i2c: E2 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 17 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: E2 17 00 E9 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [12:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:45:00]wFMCommunicate OK [12:45:00]CreateOFDProtocolMessage done [12:45:00]OFDSenderStorePacket 192557 [12:45:00]StoreOFDPacket docnum=192557 [12:45:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8D AB 07 01 E3 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 4F 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D F0 02 00 35 04 06 00 F5 7A A4 C0 2B E3 B2 6C DD D7 3C CB 88 BA [12:45:00]CheckFolder [12:45:00]dirname=/storage/ofd_packets [12:45:00]CheckFolder done [12:45:00]ProducePacketName [12:45:00]name=ofd_packets/00192557 [12:45:00]NVStorageSaveData ofd_packets/00192557 [12:45:00]File name is /storage/ofd_packets/00192557 [12:45:00]Write 301 bytes [12:45:00]NVStorageSaveData done [12:45:00]OFDSenderStorePacket done [12:45:00]KKMCreateOFDPacket done [12:45:00]NVStorageSaveData kkm_last_timestamp [12:45:00]File name is /storage/kkm_last_timestamp [12:45:00]Write 4 bytes [12:45:00]NVStorageSaveData done [12:45:00]ExternCall_PrintAddStr [12:45:00]wPrintStart [12:45:00]Write to MH i2c: 01 00 00 EA 3B 25 [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: 01 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: 01 07 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: 01 07 00 EA 3B 00 00 00 00 00 FF 0F 3A [12:45:00]RasterBufferAndPrint [12:45:00]line Счет N : (1)31877 [12:45:00]line ИНН: 02508201610067 [12:45:00]line Контрольно-Кассовый Чек [12:45:00]line ПРОДАЖА [12:45:00]line ТРК (МРК, ГНК) : 21 [12:45:00]line Товар: 2710124130 [12:45:00]line Аи-92-К-5 [12:45:00]line 3.740 * 66.90 [12:45:00]line = 250.21 [12:45:00]line НДС 12% НСП 1% [12:45:00]line > о реализуемом товаре [12:45:00]line ОКРУГЛЕНИЕ: -0.21 [12:45:00]line ИТОГО: 250.00 [12:45:00]line Внесено: 250.00 [12:45:00]line СДАЧА: 0.00 [12:45:00]line НСП 1% : 2.21 [12:45:00]line НДС 12% : 26.57 [12:45:00]line Наличными: 250.00 [12:45:00]line Безнал.: 0.00 [12:45:00]line Место: АЗС № 170 "Партнер Нефть" [12:45:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:45:00]line СНО: Общий режим [12:45:00]line Чек 105 28.10.2024 12:45 [12:45:00]line Смена: 543 ФФД: 1.0 [12:45:00]line ЗНМ: 0300000110 [12:45:00]line РНМ: 0000000000091776 [12:45:00]line Версия ККМ: 001 [12:45:00]line ФМ: 0000000000871754 [12:45:00]line ФД: 192557 [12:45:00]line ФПД: 269907098872803 [12:45:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124503&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192557&fm=269907098872803&tin=02508201610067®Number=0000000000091776&sum=25000 [12:45:00]OFD Sender: Processing packet 192557 [packets to send 75, broken 74] [12:45:00]ProducePacketName [12:45:00]name=ofd_packets/00192557 [12:45:00]OFD Sender: To server: pG, [12:45:00]CommunicateWithHost lk.salyk.kg:30040 [12:45:00]ConnectInit lk.salyk.kg [12:45:00]written 0, free lines is 4095 [12:45:00]Connected sock=7 [12:45:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8D AB 07 01 E3 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 4F 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D F0 02 00 35 04 06 00 F5 7A A4 C0 2B E3 B2 6C DD D7 3C CB 88 BA [12:45:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CF DF 47 00 53 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D F0 02 00 F4 03 04 00 13 2C 1F 67 B6 04 01 00 00 13 D1 DB 46 79 BC 46 F3 [12:45:00]CommunicateWithHost err = 0 [12:45:00]CheckOFDResponse [12:45:00]1017 (14) - 77093643461234 [12:45:00]1041 (16) - 0000000000871754 [12:45:00]1040 (4) - 192557 [12:45:00]1012 (4) - 28.10.2024 06:15 [12:45:00]1206 (1) - 0 [12:45:00]OFD Sender: Remove packet 192557 [12:45:00]ProducePacketName [12:45:00]name=ofd_packets/00192557 [12:45:00]NVStorageDeleteData [12:45:00]Write to MH i2c: 01 00 00 15 3C 51 [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: 01 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: 01 07 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: 01 07 00 15 3C 00 00 00 00 00 C9 0C 2D [12:45:00]RasterBufferAndPrint [12:45:00]line [12:45:00]line [12:45:00]line [12:45:00]line [12:45:00]line [12:45:00]written 0, free lines is 3280 [12:45:00]MH_Cut [12:45:00]Write to MH i2c: D1 01 00 1C 3C 01 2A [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: D1 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: D1 01 00 [12:45:00]MH_I2C_Read... [12:45:00]Read from MH i2c: D1 01 00 1C 3C 00 29 [12:45:00]Write to MH i2c: 01 00 00 1D 3C 59 [12:45:00]Write i2c OK [12:45:00]MH_I2C_Read... [12:45:01]OFD Sender: No OFD packet to send [12:45:01]*** Cut start [12:45:01]*** Partial cut [12:45:01]*** CUTSNS_PIN = 1 [12:45:01]*** CUTSNS_PIN = 0 [12:45:02]*** Brake cut motor [12:45:02]Read from MH i2c: 01 [12:45:02]MH_I2C_Read... [12:45:02]*** Stop cut motor [12:45:02]*** Cut end [12:45:02]Read from MH i2c: 01 07 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: 01 07 00 1D 3C 00 00 00 00 00 FF 0F 6E [12:45:02]process_action close_receipt done [12:45:02]requested_data is exist [12:45:02]produce_requested_data [12:45:02]requested_item fm.sn is exist - process it [12:45:02]wFMCommunicate request_size=4 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 11 00 00 [12:45:02]Write to MH i2c: E2 08 00 1E 3C 80 11 00 00 00 00 00 00 D4 [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 17 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 17 00 1E 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 27 [12:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:45:02]wFMCommunicate OK [12:45:02]requested_item fd.num is exist - process it [12:45:02]SAM_PROTO_GetFieldsCounters [12:45:02]wFMCommunicate request_size=4 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 13 00 00 [12:45:02]Write to MH i2c: E2 08 00 1F 3C 80 13 00 00 00 00 00 00 D7 [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 62 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 62 00 1F 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [12:45:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:02]wFMCommunicate OK [12:45:02]SAM_PROTO_GetFieldsCounters done [12:45:02]requested_item shift.num is exist - process it [12:45:02]requested_item shift.opened is exist - process it [12:45:02]req_shift_opened [12:45:02]FM_GetShiftState [12:45:02]SAM_PROTO_GetShiftState [12:45:02]wFMCommunicate request_size=4 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 13 01 00 [12:45:02]Write to MH i2c: E2 08 00 20 3C 80 13 01 00 00 00 00 00 D9 [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 0E 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 0E 00 20 3C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 29 [12:45:02]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:45:02]wFMCommunicate OK [12:45:02]SAM_PROTO_GetShiftState done [12:45:02]FM_GetShiftState done [12:45:02]req_shift_opened done [12:45:02]requested_item shift.open_date is exist - process it [12:45:02]req_shift_open_date [12:45:02]req_shift_open_date done [12:45:02]produce_requested_data done [12:45:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192557,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:45:02]process_action_free close_receipt [12:45:02]json_value_free [12:45:02]json_value_free done [12:45:02]process_json_proto returns [12:45:02]Send response to host [12:45:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192557,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:45:02]free response buf [12:45:02]execute_script done [12:45:02]execute_script returns [12:45:02]free content buf [12:45:02]Sock 9.Close socket [12:45:02]Sock 9.Thread stoped [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:33]accept exits with 10 [12:45:33]New connection [12:45:33]New thread 3066563940 created [12:45:33]Thread 3066707300 joined [12:45:33]Waiting for new connection... [12:45:33] Sock 10.Parse request [12:45:33]Sock 10.Check first char [12:45:33]Sock 10.First char is OK [12:45:33]request: POST /json_proto HTTP/1.0 [12:45:33]Method: POST [12:45:33]URL: /json_proto [12:45:33]Method is POST - this is cgi request [12:45:33]url: /json_proto [12:45:33]query_string will be loaded in cgi processing [12:45:33]execute_cgi json_proto POST (null) [12:45:33]execute_cgi path=json_proto method=POST [12:45:33]POST find Content-Length [12:45:33]Host: 172.17.63.131:8080 [12:45:33]Content-Length: 676 [12:45:33]Content-Type: application/json [12:45:33] [12:45:33]POST finish read [12:45:33]Found Content-Length = 676 [12:45:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:33]execute_script... [12:45: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)31878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:33]POST & json_proto [12:45:33]process_json_proto [12:45:33]json parsed OK: [12:45:33]protocol is kg_v1.0 [12:45:33]action value=close_receipt [12:45:33]process_action close_receipt [12:45:33]cmd_close_receipt [12:45:33]MH_GetDate [12:45:33]Write to MH i2c: F0 00 00 21 3C 4C [12:45:33]Write i2c OK [12:45:33]MH_I2C_Read... [12:45:33]Read from MH i2c: F0 [12:45:33]MH_I2C_Read... [12:45:33]Read from MH i2c: F0 09 00 [12:45:33]MH_I2C_Read... [12:45:33]Read from MH i2c: F0 09 00 21 3C 00 72 87 1F 67 22 05 6E 64 CD [12:45:33]GetLastDocTimeStamp 1730119503 [12:45:33]current date 1730119538 [12:45:33]FM_GetShiftState [12:45:33]SAM_PROTO_GetShiftState [12:45:33]wFMCommunicate request_size=4 [12:45:33]MH_SAM_APDU [12:45:33]CAPDU: 80 13 01 00 [12:45:33]Write to MH i2c: E2 08 00 22 3C 80 13 01 00 00 00 00 00 DB [12:45:33]Write i2c OK [12:45:33]MH_I2C_Read... [12:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:33]Read from MH i2c: E2 [12:45:33]MH_I2C_Read... [12:45:33]Read from MH i2c: E2 0E 00 [12:45:33]MH_I2C_Read... [12:45:33]Read from MH i2c: E2 0E 00 22 3C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2B [12:45:33]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:45:33]wFMCommunicate OK [12:45:33]SAM_PROTO_GetShiftState done [12:45:33]FM_GetShiftState done [12:45:33]opened in 1730075620 [12:45:33]opened+sec_in_day 1730162020 [12:45:33]quantity*price = 50041 [12:45:33]sum+1 = 50042 [12:45:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 106 28.10.2024 12:45 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192558 ФПД: 7461043356953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124538&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192558&fm=7461043356953&tin=02508201610067®Number=0000000000091776&sum=50000 [12:45:34]StoreToDocumentArchive [12:45:34]shift 543 fd 192558 [12:45:34]save to /storage/0543/doc_00192558 [12:45:34]save last doc name /storage/0543/doc_00192558 to /storage/kkm_last_doc_name [12:45:34]save OK [12:45:34]Clear old archive folders... [12:45:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:34]tlvbuf is 019708C0 [12:45:34]SAM_PROTO_ClearQueue [12:45:34]wFMCommunicate request_size=4 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 09 00 00 [12:45:34]Write to MH i2c: E2 08 00 2F 3C 80 09 00 00 00 00 00 00 DD [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 03 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 03 00 2F 3C 00 90 00 DF [12:45:34]RAPDU: 90 00 [12:45:34]wFMCommunicate OK [12:45:34]SAM_PROTO_ClearQueue done [12:45:34]KKMCreateOFDPacket [12:45:34]OFDProtocolAddRootSTLVToBuf [12:45:34]FM_MakeSignedData [12:45:34]FM_MakeSignedData [12:45:34]SAM_PROTO_SignData [12:45:34]wFMCommunicate request_size=4 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 0D 01 02 [12:45:34]Write to MH i2c: E2 08 00 30 3C 80 0D 01 02 00 00 00 00 E5 [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 03 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 03 00 30 3C 00 90 00 E0 [12:45:34]RAPDU: 90 00 [12:45:34]wFMCommunicate OK [12:45:34]wFMCommunicate request_size=255 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 72 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E F0 02 00 35 04 06 00 06 [12:45:34]Write to MH i2c: E2 02 01 31 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 72 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E F0 02 00 35 04 06 00 06 00 00 A9 [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 03 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 03 00 31 3C 00 90 00 E1 [12:45:34]RAPDU: 90 00 [12:45:34]wFMCommunicate OK [12:45:34]wFMCommunicate request_size=10 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 0D 02 02 05 C9 28 D6 C5 19 [12:45:34]Write to MH i2c: E2 0D 00 32 3C 80 0D 02 02 05 00 C9 28 D6 C5 19 00 00 97 [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 03 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 03 00 32 3C 00 90 00 E2 [12:45:34]RAPDU: 90 00 [12:45:34]wFMCommunicate OK [12:45:34]wFMCommunicate request_size=4 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 0D 03 02 [12:45:34]Write to MH i2c: E2 08 00 33 3C 80 0D 03 02 00 00 00 00 EA [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 0B 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 0B 00 33 3C 00 47 31 26 B8 11 C9 FE AF 90 00 C8 [12:45:34]RAPDU: 47 31 26 B8 11 C9 FE AF 90 00 [12:45:34]wFMCommunicate OK [12:45:34]SAM_PROTO_SignData done [12:45:34]FM_MakeSignedData done [12:45:34]CreateOFDProtocolMessage [12:45:34]wFMCommunicate request_size=4 [12:45:34]MH_SAM_APDU [12:45:34]CAPDU: 80 11 00 00 [12:45:34]Write to MH i2c: E2 08 00 34 3C 80 11 00 00 00 00 00 00 EA [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:34]Read from MH i2c: E2 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 17 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: E2 17 00 34 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3D [12:45:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:45:34]wFMCommunicate OK [12:45:34]CreateOFDProtocolMessage done [12:45:34]OFDSenderStorePacket 192558 [12:45:34]StoreOFDPacket docnum=192558 [12:45:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 97 F6 07 01 3E 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 72 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E F0 02 00 35 04 06 00 06 C9 28 D6 C5 19 47 31 26 B8 11 C9 FE AF [12:45:34]CheckFolder [12:45:34]dirname=/storage/ofd_packets [12:45:34]CheckFolder done [12:45:34]ProducePacketName [12:45:34]name=ofd_packets/00192558 [12:45:34]NVStorageSaveData ofd_packets/00192558 [12:45:34]File name is /storage/ofd_packets/00192558 [12:45:34]Write 301 bytes [12:45:34]NVStorageSaveData done [12:45:34]OFDSenderStorePacket done [12:45:34]KKMCreateOFDPacket done [12:45:34]NVStorageSaveData kkm_last_timestamp [12:45:34]File name is /storage/kkm_last_timestamp [12:45:34]Write 4 bytes [12:45:34]NVStorageSaveData done [12:45:34]ExternCall_PrintAddStr [12:45:34]wPrintStart [12:45:34]Write to MH i2c: 01 00 00 35 3C 71 [12:45:34]Write i2c OK [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: 01 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: 01 07 00 [12:45:34]MH_I2C_Read... [12:45:34]Read from MH i2c: 01 07 00 35 3C 00 00 00 00 00 FF 0F 86 [12:45:34]RasterBufferAndPrint [12:45:34]line Счет N : (1)31878 [12:45:34]line ИНН: 02508201610067 [12:45:34]line Контрольно-Кассовый Чек [12:45:34]line ПРОДАЖА [12:45:34]line ТРК (МРК, ГНК) : 12 [12:45:34]line Товар: 2710124130 [12:45:34]line Аи-92-К-5 [12:45:34]line 7.480 * 66.90 [12:45:34]line = 500.41 [12:45:34]line НДС 12% НСП 1% [12:45:34]line > о реализуемом товаре [12:45:34]line ОКРУГЛЕНИЕ: -0.41 [12:45:34]line ИТОГО: 500.00 [12:45:34]line Внесено: 500.00 [12:45:34]line СДАЧА: 0.00 [12:45:34]line НСП 1% : 4.43 [12:45:34]line НДС 12% : 53.14 [12:45:34]line Наличными: 500.00 [12:45:34]line Безнал.: 0.00 [12:45:34]line Место: АЗС № 170 "Партнер Нефть" [12:45:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:45:34]line СНО: Общий режим [12:45:34]line Чек 106 28.10.2024 12:45 [12:45:34]line Смена: 543 ФФД: 1.0 [12:45:34]line ЗНМ: 0300000110 [12:45:34]line РНМ: 0000000000091776 [12:45:34]line Версия ККМ: 001 [12:45:34]line ФМ: 0000000000871754 [12:45:34]line ФД: 192558 [12:45:34]line ФПД: 7461043356953 [12:45:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124538&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192558&fm=7461043356953&tin=02508201610067®Number=0000000000091776&sum=50000 [12:45:35]OFD Sender: Processing packet 192558 [packets to send 75, broken 74] [12:45:35]ProducePacketName [12:45:35]name=ofd_packets/00192558 [12:45:35]OFD Sender: To server: pG, [12:45:35]CommunicateWithHost lk.salyk.kg:30040 [12:45:35]ConnectInit lk.salyk.kg [12:45:35]written 0, free lines is 4095 [12:45:35]Connected sock=9 [12:45:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 97 F6 07 01 3E 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 72 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E F0 02 00 35 04 06 00 06 C9 28 D6 C5 19 47 31 26 B8 11 C9 FE AF [12:45:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E4 38 47 00 45 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E F0 02 00 F4 03 04 00 36 2C 1F 67 B6 04 01 00 00 08 FF 0C 54 39 50 E6 8D [12:45:35]CommunicateWithHost err = 0 [12:45:35]CheckOFDResponse [12:45:35]1017 (14) - 77093643461234 [12:45:35]1041 (16) - 0000000000871754 [12:45:35]1040 (4) - 192558 [12:45:35]1012 (4) - 28.10.2024 06:16 [12:45:35]1206 (1) - 0 [12:45:35]OFD Sender: Remove packet 192558 [12:45:35]ProducePacketName [12:45:35]name=ofd_packets/00192558 [12:45:35]NVStorageDeleteData [12:45:35]Write to MH i2c: 01 00 00 60 3C 9C [12:45:35]Write i2c OK [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: 01 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: 01 07 00 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: 01 07 00 60 3C 00 00 00 00 00 B9 0C 68 [12:45:35]RasterBufferAndPrint [12:45:35]line [12:45:35]line [12:45:35]line [12:45:35]line [12:45:35]line [12:45:35]written 0, free lines is 3264 [12:45:35]MH_Cut [12:45:35]Write to MH i2c: D1 01 00 67 3C 01 75 [12:45:35]Write i2c OK [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: D1 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: D1 01 00 [12:45:35]MH_I2C_Read... [12:45:35]Read from MH i2c: D1 01 00 67 3C 00 74 [12:45:35]Write to MH i2c: 01 00 00 68 3C A4 [12:45:35]Write i2c OK [12:45:35]MH_I2C_Read... [12:45:35]OFD Sender: No OFD packet to send [12:45:36]*** Cut start [12:45:36]*** Partial cut [12:45:36]*** CUTSNS_PIN = 1 [12:45:36]*** CUTSNS_PIN = 0 [12:45:36]*** Brake cut motor [12:45:37]Read from MH i2c: 01 [12:45:37]MH_I2C_Read... [12:45:37]*** Stop cut motor [12:45:37]*** Cut end [12:45:37]Read from MH i2c: 01 07 00 [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: 01 07 00 68 3C 00 00 00 00 00 FF 0F B9 [12:45:37]process_action close_receipt done [12:45:37]requested_data is exist [12:45:37]produce_requested_data [12:45:37]requested_item fm.sn is exist - process it [12:45:37]wFMCommunicate request_size=4 [12:45:37]MH_SAM_APDU [12:45:37]CAPDU: 80 11 00 00 [12:45:37]Write to MH i2c: E2 08 00 69 3C 80 11 00 00 00 00 00 00 1F [12:45:37]Write i2c OK [12:45:37]MH_I2C_Read... [12:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:37]Read from MH i2c: E2 [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: E2 17 00 [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: E2 17 00 69 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 72 [12:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:45:37]wFMCommunicate OK [12:45:37]requested_item fd.num is exist - process it [12:45:37]SAM_PROTO_GetFieldsCounters [12:45:37]wFMCommunicate request_size=4 [12:45:37]MH_SAM_APDU [12:45:37]CAPDU: 80 13 00 00 [12:45:37]Write to MH i2c: E2 08 00 6A 3C 80 13 00 00 00 00 00 00 22 [12:45:37]Write i2c OK [12:45:37]MH_I2C_Read... [12:45:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:37]Read from MH i2c: E2 [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: E2 62 00 [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: E2 62 00 6A 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [12:45:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:37]wFMCommunicate OK [12:45:37]SAM_PROTO_GetFieldsCounters done [12:45:37]requested_item shift.num is exist - process it [12:45:37]requested_item shift.opened is exist - process it [12:45:37]req_shift_opened [12:45:37]FM_GetShiftState [12:45:37]SAM_PROTO_GetShiftState [12:45:37]wFMCommunicate request_size=4 [12:45:37]MH_SAM_APDU [12:45:37]CAPDU: 80 13 01 00 [12:45:37]Write to MH i2c: E2 08 00 6B 3C 80 13 01 00 00 00 00 00 24 [12:45:37]Write i2c OK [12:45:37]MH_I2C_Read... [12:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:37]Read from MH i2c: E2 [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: E2 0E 00 [12:45:37]MH_I2C_Read... [12:45:37]Read from MH i2c: E2 0E 00 6B 3C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 74 [12:45:37]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:45:37]wFMCommunicate OK [12:45:37]SAM_PROTO_GetShiftState done [12:45:37]FM_GetShiftState done [12:45:37]req_shift_opened done [12:45:37]requested_item shift.open_date is exist - process it [12:45:37]req_shift_open_date [12:45:37]req_shift_open_date done [12:45:37]produce_requested_data done [12:45:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192558,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:45:37]process_action_free close_receipt [12:45:37]json_value_free [12:45:37]json_value_free done [12:45:37]process_json_proto returns [12:45:37]Send response to host [12:45:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192558,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:45:37]free response buf [12:45:37]execute_script done [12:45:37]execute_script returns [12:45:37]free content buf [12:45:37]Sock 10.Close socket [12:45:37]Sock 10.Thread stoped [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]accept exits with 7 [12:46:10]New connection [12:46:10]New thread 3066707300 created [12:46:10]Thread 3066563940 joined [12:46:10]Waiting for new connection... [12:46:10] Sock 7.Parse request [12:46:10]Sock 7.Check first char [12:46:10]Sock 7.First char is OK [12:46:10]request: POST /json_proto HTTP/1.0 [12:46:10]Method: POST [12:46:10]URL: /json_proto [12:46:10]Method is POST - this is cgi request [12:46:10]url: /json_proto [12:46:10]query_string will be loaded in cgi processing [12:46:10]execute_cgi json_proto POST (null) [12:46:10]execute_cgi path=json_proto method=POST [12:46:10]POST find Content-Length [12:46:10]Host: 172.17.63.131:8080 [12:46:10]Content-Length: 676 [12:46:10]Content-Type: application/json [12:46:10] [12:46:10]POST finish read [12:46:10]Found Content-Length = 676 [12:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:10]execute_script... [12:46:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:10]POST & json_proto [12:46:10]process_json_proto [12:46:10]json parsed OK: [12:46:10]protocol is kg_v1.0 [12:46:10]action value=close_receipt [12:46:10]process_action close_receipt [12:46:10]cmd_close_receipt [12:46:10]MH_GetDate [12:46:10]Write to MH i2c: F0 00 00 6C 3C 97 [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: F0 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: F0 09 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: F0 09 00 6C 3C 00 97 87 1F 67 22 05 6E 64 3D [12:46:10]GetLastDocTimeStamp 1730119538 [12:46:10]current date 1730119575 [12:46:10]FM_GetShiftState [12:46:10]SAM_PROTO_GetShiftState [12:46:10]wFMCommunicate request_size=4 [12:46:10]MH_SAM_APDU [12:46:10]CAPDU: 80 13 01 00 [12:46:10]Write to MH i2c: E2 08 00 6D 3C 80 13 01 00 00 00 00 00 26 [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:10]Read from MH i2c: E2 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 0E 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 0E 00 6D 3C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 76 [12:46:10]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:46:10]wFMCommunicate OK [12:46:10]SAM_PROTO_GetShiftState done [12:46:10]FM_GetShiftState done [12:46:10]opened in 1730075620 [12:46:10]opened+sec_in_day 1730162020 [12:46:10]quantity*price = 30038 [12:46:10]sum+1 = 30039 [12:46:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 107 28.10.2024 12:46 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192559 ФПД: 209137891462492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124615&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192559&fm=209137891462492&tin=02508201610067®Number=0000000000091776&sum=30000 [12:46:11]StoreToDocumentArchive [12:46:11]shift 543 fd 192559 [12:46:11]save to /storage/0543/doc_00192559 [12:46:11]save last doc name /storage/0543/doc_00192559 to /storage/kkm_last_doc_name [12:46:11]save OK [12:46:11]Clear old archive folders... [12:46:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:11]tlvbuf is 019917B0 [12:46:11]SAM_PROTO_ClearQueue [12:46:11]wFMCommunicate request_size=4 [12:46:11]MH_SAM_APDU [12:46:11]CAPDU: 80 09 00 00 [12:46:11]Write to MH i2c: E2 08 00 7A 3C 80 09 00 00 00 00 00 00 28 [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:11]Read from MH i2c: E2 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 7A 3C 00 90 00 2A [12:46:11]RAPDU: 90 00 [12:46:11]wFMCommunicate OK [12:46:11]SAM_PROTO_ClearQueue done [12:46:11]KKMCreateOFDPacket [12:46:11]OFDProtocolAddRootSTLVToBuf [12:46:11]FM_MakeSignedData [12:46:11]FM_MakeSignedData [12:46:11]SAM_PROTO_SignData [12:46:11]wFMCommunicate request_size=4 [12:46:11]MH_SAM_APDU [12:46:11]CAPDU: 80 0D 01 02 [12:46:11]Write to MH i2c: E2 08 00 7B 3C 80 0D 01 02 00 00 00 00 30 [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:11]Read from MH i2c: E2 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 7B 3C 00 90 00 2B [12:46:11]RAPDU: 90 00 [12:46:11]wFMCommunicate OK [12:46:11]wFMCommunicate request_size=255 [12:46:11]MH_SAM_APDU [12:46: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 97 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F F0 02 00 35 04 06 00 BE [12:46:11]Write to MH i2c: E2 02 01 7C 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 97 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F F0 02 00 35 04 06 00 BE 00 00 C7 [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:12]Read from MH i2c: E2 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 03 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 03 00 7C 3C 00 90 00 2C [12:46:12]RAPDU: 90 00 [12:46:12]wFMCommunicate OK [12:46:12]wFMCommunicate request_size=10 [12:46:12]MH_SAM_APDU [12:46:12]CAPDU: 80 0D 02 02 05 35 B5 BA CD 5C [12:46:12]Write to MH i2c: E2 0D 00 7D 3C 80 0D 02 02 05 00 35 B5 BA CD 5C 00 00 0A [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:12]Read from MH i2c: E2 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 03 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 03 00 7D 3C 00 90 00 2D [12:46:12]RAPDU: 90 00 [12:46:12]wFMCommunicate OK [12:46:12]wFMCommunicate request_size=4 [12:46:12]MH_SAM_APDU [12:46:12]CAPDU: 80 0D 03 02 [12:46:12]Write to MH i2c: E2 08 00 7E 3C 80 0D 03 02 00 00 00 00 35 [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:12]Read from MH i2c: E2 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 0B 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 0B 00 7E 3C 00 F3 56 A6 E2 70 05 D3 EE 90 00 3D [12:46:12]RAPDU: F3 56 A6 E2 70 05 D3 EE 90 00 [12:46:12]wFMCommunicate OK [12:46:12]SAM_PROTO_SignData done [12:46:12]FM_MakeSignedData done [12:46:12]CreateOFDProtocolMessage [12:46:12]wFMCommunicate request_size=4 [12:46:12]MH_SAM_APDU [12:46:12]CAPDU: 80 11 00 00 [12:46:12]Write to MH i2c: E2 08 00 7F 3C 80 11 00 00 00 00 00 00 35 [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:12]Read from MH i2c: E2 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 17 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 17 00 7F 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 88 [12:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:46:12]wFMCommunicate OK [12:46:12]CreateOFDProtocolMessage done [12:46:12]OFDSenderStorePacket 192559 [12:46:12]StoreOFDPacket docnum=192559 [12:46:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 07 4E 07 01 D6 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 97 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F F0 02 00 35 04 06 00 BE 35 B5 BA CD 5C F3 56 A6 E2 70 05 D3 EE [12:46:12]CheckFolder [12:46:12]dirname=/storage/ofd_packets [12:46:12]CheckFolder done [12:46:12]ProducePacketName [12:46:12]name=ofd_packets/00192559 [12:46:12]NVStorageSaveData ofd_packets/00192559 [12:46:12]File name is /storage/ofd_packets/00192559 [12:46:12]Write 301 bytes [12:46:12]NVStorageSaveData done [12:46:12]OFDSenderStorePacket done [12:46:12]KKMCreateOFDPacket done [12:46:12]NVStorageSaveData kkm_last_timestamp [12:46:12]File name is /storage/kkm_last_timestamp [12:46:12]Write 4 bytes [12:46:12]NVStorageSaveData done [12:46:12]ExternCall_PrintAddStr [12:46:12]wPrintStart [12:46:12]Write to MH i2c: 01 00 00 80 3C BC [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 07 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 07 00 80 3C 00 00 00 00 00 FF 0F D1 [12:46:12]RasterBufferAndPrint [12:46:12]line Счет N : (1)31879 [12:46:12]line ИНН: 02508201610067 [12:46:12]line Контрольно-Кассовый Чек [12:46:12]line ПРОДАЖА [12:46:12]line ТРК (МРК, ГНК) : 12 [12:46:12]line Товар: 2710124130 [12:46:12]line Аи-92-К-5 [12:46:12]line 4.490 * 66.90 [12:46:12]line = 300.38 [12:46:12]line НДС 12% НСП 1% [12:46:12]line > о реализуемом товаре [12:46:12]line ОКРУГЛЕНИЕ: -0.38 [12:46:12]line ИТОГО: 300.00 [12:46:12]line Внесено: 300.00 [12:46:12]line СДАЧА: 0.00 [12:46:12]line НСП 1% : 2.66 [12:46:12]line НДС 12% : 31.90 [12:46:12]line Наличными: 300.00 [12:46:12]line Безнал.: 0.00 [12:46:12]line Место: АЗС № 170 "Партнер Нефть" [12:46:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:46:12]line СНО: Общий режим [12:46:12]line Чек 107 28.10.2024 12:46 [12:46:12]line Смена: 543 ФФД: 1.0 [12:46:12]line ЗНМ: 0300000110 [12:46:12]line РНМ: 0000000000091776 [12:46:12]line Версия ККМ: 001 [12:46:12]line ФМ: 0000000000871754 [12:46:12]line ФД: 192559 [12:46:12]line ФПД: 209137891462492 [12:46:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124615&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192559&fm=209137891462492&tin=02508201610067®Number=0000000000091776&sum=30000 [12:46:12]OFD Sender: Processing packet 192559 [packets to send 75, broken 74] [12:46:12]ProducePacketName [12:46:12]name=ofd_packets/00192559 [12:46:12]OFD Sender: To server: pG, [12:46:12]CommunicateWithHost lk.salyk.kg:30040 [12:46:12]ConnectInit lk.salyk.kg [12:46:12]written 0, free lines is 4095 [12:46:12]Connected sock=11 [12:46:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 07 4E 07 01 D6 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 97 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F F0 02 00 35 04 06 00 BE 35 B5 BA CD 5C F3 56 A6 E2 70 05 D3 EE [12:46:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 25 90 47 00 42 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F F0 02 00 F4 03 04 00 5B 2C 1F 67 B6 04 01 00 00 13 E9 E6 68 75 92 2E 15 [12:46:12]CommunicateWithHost err = 0 [12:46:12]CheckOFDResponse [12:46:12]1017 (14) - 77093643461234 [12:46:12]1041 (16) - 0000000000871754 [12:46:12]1040 (4) - 192559 [12:46:12]1012 (4) - 28.10.2024 06:16 [12:46:12]1206 (1) - 0 [12:46:12]OFD Sender: Remove packet 192559 [12:46:12]ProducePacketName [12:46:12]name=ofd_packets/00192559 [12:46:12]NVStorageDeleteData [12:46:12]Write to MH i2c: 01 00 00 AB 3C E7 [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 07 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 07 00 AB 3C 00 00 00 00 00 BA 0C B4 [12:46:12]RasterBufferAndPrint [12:46:12]line [12:46:12]line [12:46:12]line [12:46:12]line [12:46:12]line [12:46:12]written 0, free lines is 3267 [12:46:12]MH_Cut [12:46:12]Write to MH i2c: D1 01 00 B2 3C 01 C0 [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: D1 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: D1 01 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: D1 01 00 B2 3C 00 BF [12:46:12]Write to MH i2c: 01 00 00 B3 3C EF [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:13]OFD Sender: No OFD packet to send [12:46:13]*** Cut start [12:46:13]*** Partial cut [12:46:13]*** CUTSNS_PIN = 1 [12:46:13]*** CUTSNS_PIN = 0 [12:46:14]*** Brake cut motor [12:46:14]Read from MH i2c: 01 [12:46:14]MH_I2C_Read... [12:46:14]*** Stop cut motor [12:46:14]*** Cut end [12:46:14]Read from MH i2c: 01 07 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: 01 07 00 B3 3C 00 00 00 00 00 FF 0F 04 [12:46:14]process_action close_receipt done [12:46:14]requested_data is exist [12:46:14]produce_requested_data [12:46:14]requested_item fm.sn is exist - process it [12:46:14]wFMCommunicate request_size=4 [12:46:14]MH_SAM_APDU [12:46:14]CAPDU: 80 11 00 00 [12:46:14]Write to MH i2c: E2 08 00 B4 3C 80 11 00 00 00 00 00 00 6A [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 17 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 17 00 B4 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BD [12:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:46:14]wFMCommunicate OK [12:46:14]requested_item fd.num is exist - process it [12:46:14]SAM_PROTO_GetFieldsCounters [12:46:14]wFMCommunicate request_size=4 [12:46:14]MH_SAM_APDU [12:46:14]CAPDU: 80 13 00 00 [12:46:14]Write to MH i2c: E2 08 00 B5 3C 80 13 00 00 00 00 00 00 6D [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 62 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 62 00 B5 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [12:46:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:14]wFMCommunicate OK [12:46:14]SAM_PROTO_GetFieldsCounters done [12:46:14]requested_item shift.num is exist - process it [12:46:14]requested_item shift.opened is exist - process it [12:46:14]req_shift_opened [12:46:14]FM_GetShiftState [12:46:14]SAM_PROTO_GetShiftState [12:46:14]wFMCommunicate request_size=4 [12:46:14]MH_SAM_APDU [12:46:14]CAPDU: 80 13 01 00 [12:46:14]Write to MH i2c: E2 08 00 B6 3C 80 13 01 00 00 00 00 00 6F [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 0E 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 0E 00 B6 3C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 BF [12:46:14]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:46:14]wFMCommunicate OK [12:46:14]SAM_PROTO_GetShiftState done [12:46:14]FM_GetShiftState done [12:46:14]req_shift_opened done [12:46:14]requested_item shift.open_date is exist - process it [12:46:14]req_shift_open_date [12:46:14]req_shift_open_date done [12:46:14]produce_requested_data done [12:46:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192559,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:46:14]process_action_free close_receipt [12:46:14]json_value_free [12:46:14]json_value_free done [12:46:14]process_json_proto returns [12:46:14]Send response to host [12:46:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192559,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:46:14]free response buf [12:46:14]execute_script done [12:46:14]execute_script returns [12:46:14]free content buf [12:46:14]Sock 7.Close socket [12:46:14]Sock 7.Thread stoped [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:20]accept exits with 9 [12:47:20]New connection [12:47:20]New thread 3066563940 created [12:47:20]Thread 3066707300 joined [12:47:20]Waiting for new connection... [12:47:20] Sock 9.Parse request [12:47:20]Sock 9.Check first char [12:47:20]Sock 9.First char is OK [12:47:20]request: POST /json_proto HTTP/1.0 [12:47:20]Method: POST [12:47:20]URL: /json_proto [12:47:20]Method is POST - this is cgi request [12:47:20]url: /json_proto [12:47:20]query_string will be loaded in cgi processing [12:47:20]execute_cgi json_proto POST (null) [12:47:20]execute_cgi path=json_proto method=POST [12:47:20]POST find Content-Length [12:47:20]Host: 172.17.63.131:8080 [12:47:20]Content-Length: 676 [12:47:20]Content-Type: application/json [12:47:20] [12:47:20]POST finish read [12:47:20]Found Content-Length = 676 [12:47:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:20]execute_script... [12:47:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:20]POST & json_proto [12:47:20]process_json_proto [12:47:20]json parsed OK: [12:47:20]protocol is kg_v1.0 [12:47:20]action value=close_receipt [12:47:20]process_action close_receipt [12:47:20]cmd_close_receipt [12:47:20]MH_GetDate [12:47:20]Write to MH i2c: F0 00 00 B7 3C E2 [12:47:20]Write i2c OK [12:47:20]MH_I2C_Read... [12:47:20]Read from MH i2c: F0 [12:47:20]MH_I2C_Read... [12:47:20]Read from MH i2c: F0 09 00 [12:47:20]MH_I2C_Read... [12:47:20]Read from MH i2c: F0 09 00 B7 3C 00 DE 87 1F 67 22 05 6E 64 CF [12:47:20]GetLastDocTimeStamp 1730119575 [12:47:20]current date 1730119646 [12:47:20]FM_GetShiftState [12:47:20]SAM_PROTO_GetShiftState [12:47:20]wFMCommunicate request_size=4 [12:47:20]MH_SAM_APDU [12:47:20]CAPDU: 80 13 01 00 [12:47:20]Write to MH i2c: E2 08 00 B8 3C 80 13 01 00 00 00 00 00 71 [12:47:20]Write i2c OK [12:47:20]MH_I2C_Read... [12:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:20]Read from MH i2c: E2 [12:47:20]MH_I2C_Read... [12:47:20]Read from MH i2c: E2 0E 00 [12:47:20]MH_I2C_Read... [12:47:20]Read from MH i2c: E2 0E 00 B8 3C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C1 [12:47:20]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:47:20]wFMCommunicate OK [12:47:20]SAM_PROTO_GetShiftState done [12:47:20]FM_GetShiftState done [12:47:20]opened in 1730075620 [12:47:20]opened+sec_in_day 1730162020 [12:47:20]quantity*price = 30038 [12:47:20]sum+1 = 30039 [12:47:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 108 28.10.2024 12:47 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192560 ФПД: 127805034727662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124726&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192560&fm=127805034727662&tin=02508201610067®Number=0000000000091776&sum=30000 [12:47:21]StoreToDocumentArchive [12:47:21]shift 543 fd 192560 [12:47:21]save to /storage/0543/doc_00192560 [12:47:21]save last doc name /storage/0543/doc_00192560 to /storage/kkm_last_doc_name [12:47:21]save OK [12:47:21]Clear old archive folders... [12:47:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:21]tlvbuf is B6E9EDA0 [12:47:21]SAM_PROTO_ClearQueue [12:47:21]wFMCommunicate request_size=4 [12:47:21]MH_SAM_APDU [12:47:21]CAPDU: 80 09 00 00 [12:47:21]Write to MH i2c: E2 08 00 C5 3C 80 09 00 00 00 00 00 00 73 [12:47:21]Write i2c OK [12:47:21]MH_I2C_Read... [12:47:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:22]Read from MH i2c: E2 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: E2 03 00 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: E2 03 00 C5 3C 00 90 00 75 [12:47:22]RAPDU: 90 00 [12:47:22]wFMCommunicate OK [12:47:22]SAM_PROTO_ClearQueue done [12:47:22]KKMCreateOFDPacket [12:47:22]OFDProtocolAddRootSTLVToBuf [12:47:22]FM_MakeSignedData [12:47:22]FM_MakeSignedData [12:47:22]SAM_PROTO_SignData [12:47:22]wFMCommunicate request_size=4 [12:47:22]MH_SAM_APDU [12:47:22]CAPDU: 80 0D 01 02 [12:47:22]Write to MH i2c: E2 08 00 C6 3C 80 0D 01 02 00 00 00 00 7B [12:47:22]Write i2c OK [12:47:22]MH_I2C_Read... [12:47:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:22]Read from MH i2c: E2 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: E2 03 00 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: E2 03 00 C6 3C 00 90 00 76 [12:47:22]RAPDU: 90 00 [12:47:22]wFMCommunicate OK [12:47:22]wFMCommunicate request_size=255 [12:47:22]MH_SAM_APDU [12:47:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DE 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 F0 02 00 35 04 06 00 74 [12:47:22]Write to MH i2c: E2 02 01 C7 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DE 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 F0 02 00 35 04 06 00 74 00 00 11 [12:47:22]Write i2c OK [12:47:22]MH_I2C_Read... [12:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:22]Read from MH i2c: E2 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: E2 03 00 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: E2 03 00 C7 3C 00 90 00 77 [12:47:22]RAPDU: 90 00 [12:47:22]wFMCommunicate OK [12:47:22]wFMCommunicate request_size=10 [12:47:22]MH_SAM_APDU [12:47:22]CAPDU: 80 0D 02 02 05 3C ED B2 08 EE [12:47:22]Write to MH i2c: E2 0D 00 C8 3C 80 0D 02 02 05 00 3C ED B2 08 EE 00 00 59 [12:47:22]Write i2c OK [12:47:22]MH_I2C_Read... [12:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:22]Read from MH i2c: E2 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: E2 03 00 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: E2 03 00 C8 3C 00 90 00 78 [12:47:22]RAPDU: 90 00 [12:47:22]wFMCommunicate OK [12:47:22]wFMCommunicate request_size=4 [12:47:22]MH_SAM_APDU [12:47:22]CAPDU: 80 0D 03 02 [12:47:22]Write to MH i2c: E2 08 00 C9 3C 80 0D 03 02 00 00 00 00 80 [12:47:22]Write i2c OK [12:47:22]MH_I2C_Read... [12:47:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:22]Read from MH i2c: E2 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: E2 0B 00 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: E2 0B 00 C9 3C 00 80 56 6A 81 CC C8 34 80 90 00 8A [12:47:22]RAPDU: 80 56 6A 81 CC C8 34 80 90 00 [12:47:22]wFMCommunicate OK [12:47:22]SAM_PROTO_SignData done [12:47:22]FM_MakeSignedData done [12:47:22]CreateOFDProtocolMessage [12:47:22]wFMCommunicate request_size=4 [12:47:22]MH_SAM_APDU [12:47:22]CAPDU: 80 11 00 00 [12:47:22]Write to MH i2c: E2 08 00 CA 3C 80 11 00 00 00 00 00 00 80 [12:47:22]Write i2c OK [12:47:22]MH_I2C_Read... [12:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:22]Read from MH i2c: E2 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: E2 17 00 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: E2 17 00 CA 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D3 [12:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:47:22]wFMCommunicate OK [12:47:22]CreateOFDProtocolMessage done [12:47:22]OFDSenderStorePacket 192560 [12:47:22]StoreOFDPacket docnum=192560 [12:47:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B1 51 07 01 F4 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DE 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 F0 02 00 35 04 06 00 74 3C ED B2 08 EE 80 56 6A 81 CC C8 34 80 [12:47:22]CheckFolder [12:47:22]dirname=/storage/ofd_packets [12:47:22]CheckFolder done [12:47:22]ProducePacketName [12:47:22]name=ofd_packets/00192560 [12:47:22]NVStorageSaveData ofd_packets/00192560 [12:47:22]File name is /storage/ofd_packets/00192560 [12:47:22]Write 301 bytes [12:47:22]NVStorageSaveData done [12:47:22]OFDSenderStorePacket done [12:47:22]KKMCreateOFDPacket done [12:47:22]NVStorageSaveData kkm_last_timestamp [12:47:22]File name is /storage/kkm_last_timestamp [12:47:22]Write 4 bytes [12:47:22]NVStorageSaveData done [12:47:22]ExternCall_PrintAddStr [12:47:22]wPrintStart [12:47:22]Write to MH i2c: 01 00 00 CB 3C 07 [12:47:22]Write i2c OK [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: 01 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: 01 07 00 [12:47:22]MH_I2C_Read... [12:47:22]Read from MH i2c: 01 07 00 CB 3C 00 00 00 00 00 FF 0F 1C [12:47:22]RasterBufferAndPrint [12:47:22]line Счет N : (1)31880 [12:47:22]line ИНН: 02508201610067 [12:47:22]line Контрольно-Кассовый Чек [12:47:22]line ПРОДАЖА [12:47:22]line ТРК (МРК, ГНК) : 21 [12:47:22]line Товар: 2710124130 [12:47:22]line Аи-92-К-5 [12:47:22]line 4.490 * 66.90 [12:47:22]line = 300.38 [12:47:22]line НДС 12% НСП 1% [12:47:22]line > о реализуемом товаре [12:47:22]line ОКРУГЛЕНИЕ: -0.38 [12:47:22]line ИТОГО: 300.00 [12:47:22]line Внесено: 300.00 [12:47:22]line СДАЧА: 0.00 [12:47:22]line НСП 1% : 2.66 [12:47:22]line НДС 12% : 31.90 [12:47:22]line Наличными: 300.00 [12:47:22]line Безнал.: 0.00 [12:47:22]line Место: АЗС № 170 "Партнер Нефть" [12:47:22]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:47:22]line СНО: Общий режим [12:47:22]line Чек 108 28.10.2024 12:47 [12:47:22]line Смена: 543 ФФД: 1.0 [12:47:22]line ЗНМ: 0300000110 [12:47:22]line РНМ: 0000000000091776 [12:47:22]line Версия ККМ: 001 [12:47:22]line ФМ: 0000000000871754 [12:47:22]line ФД: 192560 [12:47:22]line ФПД: 127805034727662 [12:47:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124726&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192560&fm=127805034727662&tin=02508201610067®Number=0000000000091776&sum=30000 [12:47:22]OFD Sender: Processing packet 192560 [packets to send 75, broken 74] [12:47:22]ProducePacketName [12:47:22]name=ofd_packets/00192560 [12:47:22]OFD Sender: To server: pG, [12:47:22]CommunicateWithHost lk.salyk.kg:30040 [12:47:22]ConnectInit lk.salyk.kg [12:47:22]written 0, free lines is 4095 [12:47:22]Connected sock=10 [12:47:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B1 51 07 01 F4 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DE 87 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 F0 02 00 35 04 06 00 74 3C ED B2 08 EE 80 56 6A 81 CC C8 34 80 [12:47:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 19 55 47 00 44 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 F0 02 00 F4 03 04 00 A2 2C 1F 67 B6 04 01 00 00 F6 0A 21 18 1A 76 DC 7C [12:47:23]CommunicateWithHost err = 0 [12:47:23]CheckOFDResponse [12:47:23]1017 (14) - 77093643461234 [12:47:23]1041 (16) - 0000000000871754 [12:47:23]1040 (4) - 192560 [12:47:23]1012 (4) - 28.10.2024 06:18 [12:47:23]1206 (1) - 0 [12:47:23]OFD Sender: Remove packet 192560 [12:47:23]ProducePacketName [12:47:23]name=ofd_packets/00192560 [12:47:23]NVStorageDeleteData [12:47:23]Write to MH i2c: 01 00 00 F6 3C 32 [12:47:23]Write i2c OK [12:47:23]MH_I2C_Read... [12:47:23]Read from MH i2c: 01 [12:47:23]MH_I2C_Read... [12:47:23]Read from MH i2c: 01 07 00 [12:47:23]MH_I2C_Read... [12:47:23]Read from MH i2c: 01 07 00 F6 3C 00 00 00 00 00 C8 0C 0D [12:47:23]RasterBufferAndPrint [12:47:23]line [12:47:23]line [12:47:23]line [12:47:23]line [12:47:23]line [12:47:23]written 0, free lines is 3278 [12:47:23]MH_Cut [12:47:23]Write to MH i2c: D1 01 00 FD 3C 01 0B [12:47:23]Write i2c OK [12:47:23]MH_I2C_Read... [12:47:23]Read from MH i2c: D1 [12:47:23]MH_I2C_Read... [12:47:23]Read from MH i2c: D1 01 00 [12:47:23]MH_I2C_Read... [12:47:23]Read from MH i2c: D1 01 00 FD 3C 00 0A [12:47:23]Write to MH i2c: 01 00 00 FE 3C 3A [12:47:23]Write i2c OK [12:47:23]MH_I2C_Read... [12:47:23]OFD Sender: No OFD packet to send [12:47:24]*** Cut start [12:47:24]*** Partial cut [12:47:24]*** CUTSNS_PIN = 1 [12:47:24]*** CUTSNS_PIN = 0 [12:47:24]*** Brake cut motor [12:47:24]Read from MH i2c: 01 [12:47:24]MH_I2C_Read... [12:47:24]*** Stop cut motor [12:47:24]*** Cut end [12:47:24]Read from MH i2c: 01 07 00 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: 01 07 00 FE 3C 00 00 00 00 00 FF 0F 4F [12:47:24]process_action close_receipt done [12:47:24]requested_data is exist [12:47:24]produce_requested_data [12:47:24]requested_item fm.sn is exist - process it [12:47:24]wFMCommunicate request_size=4 [12:47:24]MH_SAM_APDU [12:47:24]CAPDU: 80 11 00 00 [12:47:24]Write to MH i2c: E2 08 00 FF 3C 80 11 00 00 00 00 00 00 B5 [12:47:24]Write i2c OK [12:47:24]MH_I2C_Read... [12:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:24]Read from MH i2c: E2 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 17 00 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 17 00 FF 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 08 [12:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:47:24]wFMCommunicate OK [12:47:24]requested_item fd.num is exist - process it [12:47:24]SAM_PROTO_GetFieldsCounters [12:47:24]wFMCommunicate request_size=4 [12:47:24]MH_SAM_APDU [12:47:24]CAPDU: 80 13 00 00 [12:47:24]Write to MH i2c: E2 08 00 00 3D 80 13 00 00 00 00 00 00 B9 [12:47:24]Write i2c OK [12:47:24]MH_I2C_Read... [12:47:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:24]Read from MH i2c: E2 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 62 00 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 62 00 00 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 30 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [12:47:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 30 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:24]wFMCommunicate OK [12:47:24]SAM_PROTO_GetFieldsCounters done [12:47:24]requested_item shift.num is exist - process it [12:47:24]requested_item shift.opened is exist - process it [12:47:24]req_shift_opened [12:47:24]FM_GetShiftState [12:47:24]SAM_PROTO_GetShiftState [12:47:24]wFMCommunicate request_size=4 [12:47:24]MH_SAM_APDU [12:47:24]CAPDU: 80 13 01 00 [12:47:24]Write to MH i2c: E2 08 00 01 3D 80 13 01 00 00 00 00 00 BB [12:47:24]Write i2c OK [12:47:24]MH_I2C_Read... [12:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:25]Read from MH i2c: E2 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: E2 0E 00 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: E2 0E 00 01 3D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0B [12:47:25]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:47:25]wFMCommunicate OK [12:47:25]SAM_PROTO_GetShiftState done [12:47:25]FM_GetShiftState done [12:47:25]req_shift_opened done [12:47:25]requested_item shift.open_date is exist - process it [12:47:25]req_shift_open_date [12:47:25]req_shift_open_date done [12:47:25]produce_requested_data done [12:47:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192560,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:47:25]process_action_free close_receipt [12:47:25]json_value_free [12:47:25]json_value_free done [12:47:25]process_json_proto returns [12:47:25]Send response to host [12:47:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192560,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:47:25]free response buf [12:47:25]execute_script done [12:47:25]execute_script returns [12:47:25]free content buf [12:47:25]Sock 9.Close socket [12:47:25]Sock 9.Thread stoped [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:05]accept exits with 7 [12:48:05]New connection [12:48:05]New thread 3066707300 created [12:48:05]Thread 3066563940 joined [12:48:05]Waiting for new connection... [12:48:05] Sock 7.Parse request [12:48:05]Sock 7.Check first char [12:48:05]Sock 7.First char is OK [12:48:05]request: POST /json_proto HTTP/1.0 [12:48:05]Method: POST [12:48:05]URL: /json_proto [12:48:05]Method is POST - this is cgi request [12:48:05]url: /json_proto [12:48:05]query_string will be loaded in cgi processing [12:48:05]execute_cgi json_proto POST (null) [12:48:05]execute_cgi path=json_proto method=POST [12:48:05]POST find Content-Length [12:48:05]Host: 172.17.63.131:8080 [12:48:05]Content-Length: 676 [12:48:05]Content-Type: application/json [12:48:05] [12:48:05]POST finish read [12:48:05]Found Content-Length = 676 [12:48:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:05]execute_script... [12:48:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:05]POST & json_proto [12:48:05]process_json_proto [12:48:05]json parsed OK: [12:48:05]protocol is kg_v1.0 [12:48:05]action value=close_receipt [12:48:05]process_action close_receipt [12:48:05]cmd_close_receipt [12:48:05]MH_GetDate [12:48:05]Write to MH i2c: F0 00 00 02 3D 2E [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: F0 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: F0 09 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: F0 09 00 02 3D 00 0A 88 1F 67 22 05 6E 64 48 [12:48:05]GetLastDocTimeStamp 1730119646 [12:48:05]current date 1730119690 [12:48:05]FM_GetShiftState [12:48:05]SAM_PROTO_GetShiftState [12:48:05]wFMCommunicate request_size=4 [12:48:05]MH_SAM_APDU [12:48:05]CAPDU: 80 13 01 00 [12:48:05]Write to MH i2c: E2 08 00 03 3D 80 13 01 00 00 00 00 00 BD [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:05]Read from MH i2c: E2 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 0E 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 0E 00 03 3D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0D [12:48:05]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:48:05]wFMCommunicate OK [12:48:05]SAM_PROTO_GetShiftState done [12:48:05]FM_GetShiftState done [12:48:05]opened in 1730075620 [12:48:05]opened+sec_in_day 1730162020 [12:48:05]quantity*price = 60009 [12:48:05]sum+1 = 60010 [12:48:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 109 28.10.2024 12:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192561 ФПД: 88423288389940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124811&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192561&fm=88423288389940&tin=02508201610067®Number=0000000000091776&sum=60000 [12:48:06]StoreToDocumentArchive [12:48:06]shift 543 fd 192561 [12:48:06]save to /storage/0543/doc_00192561 [12:48:06]save last doc name /storage/0543/doc_00192561 to /storage/kkm_last_doc_name [12:48:06]save OK [12:48:06]Clear old archive folders... [12:48:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:06]tlvbuf is 01A7B5B0 [12:48:06]SAM_PROTO_ClearQueue [12:48:06]wFMCommunicate request_size=4 [12:48:06]MH_SAM_APDU [12:48:06]CAPDU: 80 09 00 00 [12:48:06]Write to MH i2c: E2 08 00 10 3D 80 09 00 00 00 00 00 00 BF [12:48:06]Write i2c OK [12:48:06]MH_I2C_Read... [12:48:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:06]Read from MH i2c: E2 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 03 00 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 03 00 10 3D 00 90 00 C1 [12:48:06]RAPDU: 90 00 [12:48:06]wFMCommunicate OK [12:48:06]SAM_PROTO_ClearQueue done [12:48:06]KKMCreateOFDPacket [12:48:06]OFDProtocolAddRootSTLVToBuf [12:48:06]FM_MakeSignedData [12:48:06]FM_MakeSignedData [12:48:06]SAM_PROTO_SignData [12:48:06]wFMCommunicate request_size=4 [12:48:06]MH_SAM_APDU [12:48:06]CAPDU: 80 0D 01 02 [12:48:06]Write to MH i2c: E2 08 00 11 3D 80 0D 01 02 00 00 00 00 C7 [12:48:06]Write i2c OK [12:48:06]MH_I2C_Read... [12:48:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:06]Read from MH i2c: E2 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 03 00 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 03 00 11 3D 00 90 00 C2 [12:48:06]RAPDU: 90 00 [12:48:06]wFMCommunicate OK [12:48:06]wFMCommunicate request_size=255 [12:48:06]MH_SAM_APDU [12:48: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 0B 88 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 F0 02 00 35 04 06 00 50 [12:48:06]Write to MH i2c: E2 02 01 12 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 0B 88 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 F0 02 00 35 04 06 00 50 00 00 52 [12:48:06]Write i2c OK [12:48:06]MH_I2C_Read... [12:48:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:07]Read from MH i2c: E2 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 03 00 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 03 00 12 3D 00 90 00 C3 [12:48:07]RAPDU: 90 00 [12:48:07]wFMCommunicate OK [12:48:07]wFMCommunicate request_size=10 [12:48:07]MH_SAM_APDU [12:48:07]CAPDU: 80 0D 02 02 05 6B A6 B1 C1 34 [12:48:07]Write to MH i2c: E2 0D 00 13 3D 80 0D 02 02 05 00 6B A6 B1 C1 34 00 00 8B [12:48:07]Write i2c OK [12:48:07]MH_I2C_Read... [12:48:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:07]Read from MH i2c: E2 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 03 00 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 03 00 13 3D 00 90 00 C4 [12:48:07]RAPDU: 90 00 [12:48:07]wFMCommunicate OK [12:48:07]wFMCommunicate request_size=4 [12:48:07]MH_SAM_APDU [12:48:07]CAPDU: 80 0D 03 02 [12:48:07]Write to MH i2c: E2 08 00 14 3D 80 0D 03 02 00 00 00 00 CC [12:48:07]Write i2c OK [12:48:07]MH_I2C_Read... [12:48:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:07]Read from MH i2c: E2 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 0B 00 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 0B 00 14 3D 00 89 FD 65 F0 84 BD 0D AB 90 00 A1 [12:48:07]RAPDU: 89 FD 65 F0 84 BD 0D AB 90 00 [12:48:07]wFMCommunicate OK [12:48:07]SAM_PROTO_SignData done [12:48:07]FM_MakeSignedData done [12:48:07]CreateOFDProtocolMessage [12:48:07]wFMCommunicate request_size=4 [12:48:07]MH_SAM_APDU [12:48:07]CAPDU: 80 11 00 00 [12:48:07]Write to MH i2c: E2 08 00 15 3D 80 11 00 00 00 00 00 00 CC [12:48:07]Write i2c OK [12:48:07]MH_I2C_Read... [12:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:07]Read from MH i2c: E2 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 17 00 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 17 00 15 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1F [12:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:48:07]wFMCommunicate OK [12:48:07]CreateOFDProtocolMessage done [12:48:07]OFDSenderStorePacket 192561 [12:48:07]StoreOFDPacket docnum=192561 [12:48:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8C 24 07 01 C2 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 0B 88 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 F0 02 00 35 04 06 00 50 6B A6 B1 C1 34 89 FD 65 F0 84 BD 0D AB [12:48:07]CheckFolder [12:48:07]dirname=/storage/ofd_packets [12:48:07]CheckFolder done [12:48:07]ProducePacketName [12:48:07]name=ofd_packets/00192561 [12:48:07]NVStorageSaveData ofd_packets/00192561 [12:48:07]File name is /storage/ofd_packets/00192561 [12:48:07]Write 301 bytes [12:48:07]NVStorageSaveData done [12:48:07]OFDSenderStorePacket done [12:48:07]KKMCreateOFDPacket done [12:48:07]NVStorageSaveData kkm_last_timestamp [12:48:07]File name is /storage/kkm_last_timestamp [12:48:07]Write 4 bytes [12:48:07]NVStorageSaveData done [12:48:07]ExternCall_PrintAddStr [12:48:07]wPrintStart [12:48:07]Write to MH i2c: 01 00 00 16 3D 53 [12:48:07]Write i2c OK [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: 01 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: 01 07 00 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: 01 07 00 16 3D 00 00 00 00 00 FF 0F 68 [12:48:07]RasterBufferAndPrint [12:48:07]line Счет N : (1)31881 [12:48:07]line ИНН: 02508201610067 [12:48:07]line Контрольно-Кассовый Чек [12:48:07]line ПРОДАЖА [12:48:07]line ТРК (МРК, ГНК) : 21 [12:48:07]line Товар: 2710124130 [12:48:07]line Аи-92-К-5 [12:48:07]line 8.970 * 66.90 [12:48:07]line = 600.09 [12:48:07]line НДС 12% НСП 1% [12:48:07]line > о реализуемом товаре [12:48:07]line ОКРУГЛЕНИЕ: -0.09 [12:48:07]line ИТОГО: 600.00 [12:48:07]line Внесено: 600.00 [12:48:07]line СДАЧА: 0.00 [12:48:07]line НСП 1% : 5.31 [12:48:07]line НДС 12% : 63.73 [12:48:07]line Наличными: 600.00 [12:48:07]line Безнал.: 0.00 [12:48:07]line Место: АЗС № 170 "Партнер Нефть" [12:48:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:48:07]line СНО: Общий режим [12:48:07]line Чек 109 28.10.2024 12:48 [12:48:07]line Смена: 543 ФФД: 1.0 [12:48:07]line ЗНМ: 0300000110 [12:48:07]line РНМ: 0000000000091776 [12:48:07]line Версия ККМ: 001 [12:48:07]line ФМ: 0000000000871754 [12:48:07]line ФД: 192561 [12:48:07]line ФПД: 88423288389940 [12:48:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124811&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192561&fm=88423288389940&tin=02508201610067®Number=0000000000091776&sum=60000 [12:48:07]OFD Sender: Processing packet 192561 [packets to send 75, broken 74] [12:48:07]ProducePacketName [12:48:07]name=ofd_packets/00192561 [12:48:07]OFD Sender: To server: pG, [12:48:07]CommunicateWithHost lk.salyk.kg:30040 [12:48:07]ConnectInit lk.salyk.kg [12:48:07]written 0, free lines is 4095 [12:48:07]Connected sock=10 [12:48:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8C 24 07 01 C2 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 0B 88 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 F0 02 00 35 04 06 00 50 6B A6 B1 C1 34 89 FD 65 F0 84 BD 0D AB [12:48:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D6 17 47 00 7B CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 F0 02 00 F4 03 04 00 CF 2C 1F 67 B6 04 01 00 00 FA 32 F6 EA 0D AD C9 75 [12:48:08]CommunicateWithHost err = 0 [12:48:08]CheckOFDResponse [12:48:08]1017 (14) - 77093643461234 [12:48:08]1041 (16) - 0000000000871754 [12:48:08]1040 (4) - 192561 [12:48:08]1012 (4) - 28.10.2024 06:18 [12:48:08]1206 (1) - 0 [12:48:08]OFD Sender: Remove packet 192561 [12:48:08]ProducePacketName [12:48:08]name=ofd_packets/00192561 [12:48:08]NVStorageDeleteData [12:48:08]Write to MH i2c: 01 00 00 41 3D 7E [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: 01 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: 01 07 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: 01 07 00 41 3D 00 00 00 00 00 C8 0C 59 [12:48:08]RasterBufferAndPrint [12:48:08]line [12:48:08]line [12:48:08]line [12:48:08]line [12:48:08]line [12:48:08]written 0, free lines is 3278 [12:48:08]MH_Cut [12:48:08]Write to MH i2c: D1 01 00 48 3D 01 57 [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: D1 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: D1 01 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: D1 01 00 48 3D 00 56 [12:48:08]Write to MH i2c: 01 00 00 49 3D 86 [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]OFD Sender: No OFD packet to send [12:48:08]*** Cut start [12:48:09]*** Partial cut [12:48:09]*** CUTSNS_PIN = 1 [12:48:09]*** CUTSNS_PIN = 0 [12:48:09]*** Brake cut motor [12:48:09]Read from MH i2c: 01 [12:48:09]MH_I2C_Read... [12:48:09]*** Stop cut motor [12:48:09]*** Cut end [12:48:09]Read from MH i2c: 01 07 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: 01 07 00 49 3D 00 00 00 00 00 FF 0F 9B [12:48:09]process_action close_receipt done [12:48:09]requested_data is exist [12:48:09]produce_requested_data [12:48:09]requested_item fm.sn is exist - process it [12:48:09]wFMCommunicate request_size=4 [12:48:09]MH_SAM_APDU [12:48:09]CAPDU: 80 11 00 00 [12:48:09]Write to MH i2c: E2 08 00 4A 3D 80 11 00 00 00 00 00 00 01 [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:09]Read from MH i2c: E2 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 17 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 17 00 4A 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 54 [12:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:48:09]wFMCommunicate OK [12:48:09]requested_item fd.num is exist - process it [12:48:09]SAM_PROTO_GetFieldsCounters [12:48:09]wFMCommunicate request_size=4 [12:48:09]MH_SAM_APDU [12:48:09]CAPDU: 80 13 00 00 [12:48:09]Write to MH i2c: E2 08 00 4B 3D 80 13 00 00 00 00 00 00 04 [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:09]Read from MH i2c: E2 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 62 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 62 00 4B 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 31 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [12:48:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 31 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:09]wFMCommunicate OK [12:48:09]SAM_PROTO_GetFieldsCounters done [12:48:09]requested_item shift.num is exist - process it [12:48:09]requested_item shift.opened is exist - process it [12:48:09]req_shift_opened [12:48:09]FM_GetShiftState [12:48:09]SAM_PROTO_GetShiftState [12:48:09]wFMCommunicate request_size=4 [12:48:09]MH_SAM_APDU [12:48:09]CAPDU: 80 13 01 00 [12:48:09]Write to MH i2c: E2 08 00 4C 3D 80 13 01 00 00 00 00 00 06 [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:09]Read from MH i2c: E2 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 0E 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 0E 00 4C 3D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 56 [12:48:09]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:48:09]wFMCommunicate OK [12:48:09]SAM_PROTO_GetShiftState done [12:48:09]FM_GetShiftState done [12:48:09]req_shift_opened done [12:48:09]requested_item shift.open_date is exist - process it [12:48:09]req_shift_open_date [12:48:09]req_shift_open_date done [12:48:09]produce_requested_data done [12:48:09]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192561,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:48:09]process_action_free close_receipt [12:48:09]json_value_free [12:48:09]json_value_free done [12:48:09]process_json_proto returns [12:48:09]Send response to host [12:48:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192561,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:48:09]free response buf [12:48:09]execute_script done [12:48:09]execute_script returns [12:48:09]free content buf [12:48:09]Sock 7.Close socket [12:48:09]Sock 7.Thread stoped [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:34]accept exits with 9 [12:48:34]New connection [12:48:34]New thread 3066563940 created [12:48:34]Thread 3066707300 joined [12:48:34]Waiting for new connection... [12:48:34] Sock 9.Parse request [12:48:34]Sock 9.Check first char [12:48:34]Sock 9.First char is OK [12:48:34]request: POST /json_proto HTTP/1.0 [12:48:34]Method: POST [12:48:34]URL: /json_proto [12:48:34]Method is POST - this is cgi request [12:48:34]url: /json_proto [12:48:34]query_string will be loaded in cgi processing [12:48:34]execute_cgi json_proto POST (null) [12:48:34]execute_cgi path=json_proto method=POST [12:48:34]POST find Content-Length [12:48:34]Host: 172.17.63.131:8080 [12:48:34]Content-Length: 676 [12:48:34]Content-Type: application/json [12:48:34] [12:48:34]POST finish read [12:48:34]Found Content-Length = 676 [12:48:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:34]execute_script... [12:48: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)31882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:34]POST & json_proto [12:48:34]process_json_proto [12:48:34]json parsed OK: [12:48:34]protocol is kg_v1.0 [12:48:34]action value=close_receipt [12:48:34]process_action close_receipt [12:48:34]cmd_close_receipt [12:48:34]MH_GetDate [12:48:34]Write to MH i2c: F0 00 00 4D 3D 79 [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: F0 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: F0 09 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: F0 09 00 4D 3D 00 27 88 1F 67 22 05 6E 64 B0 [12:48:34]GetLastDocTimeStamp 1730119691 [12:48:34]current date 1730119719 [12:48:34]FM_GetShiftState [12:48:34]SAM_PROTO_GetShiftState [12:48:34]wFMCommunicate request_size=4 [12:48:34]MH_SAM_APDU [12:48:34]CAPDU: 80 13 01 00 [12:48:34]Write to MH i2c: E2 08 00 4E 3D 80 13 01 00 00 00 00 00 08 [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:34]Read from MH i2c: E2 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 0E 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 0E 00 4E 3D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 58 [12:48:34]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:48:34]wFMCommunicate OK [12:48:34]SAM_PROTO_GetShiftState done [12:48:34]FM_GetShiftState done [12:48:34]opened in 1730075620 [12:48:34]opened+sec_in_day 1730162020 [12:48:34]quantity*price = 30038 [12:48:34]sum+1 = 30039 [12:48:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 110 28.10.2024 12:48 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192562 ФПД: 58507159221333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124839&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192562&fm=58507159221333&tin=02508201610067®Number=0000000000091776&sum=30000 [12:48:35]StoreToDocumentArchive [12:48:35]shift 543 fd 192562 [12:48:35]save to /storage/0543/doc_00192562 [12:48:35]save last doc name /storage/0543/doc_00192562 to /storage/kkm_last_doc_name [12:48:35]save OK [12:48:35]Clear old archive folders... [12:48:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:35]tlvbuf is 019B1510 [12:48:35]SAM_PROTO_ClearQueue [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 09 00 00 [12:48:35]Write to MH i2c: E2 08 00 5B 3D 80 09 00 00 00 00 00 00 0A [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 5B 3D 00 90 00 0C [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]SAM_PROTO_ClearQueue done [12:48:35]KKMCreateOFDPacket [12:48:35]OFDProtocolAddRootSTLVToBuf [12:48:35]FM_MakeSignedData [12:48:35]FM_MakeSignedData [12:48:35]SAM_PROTO_SignData [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 0D 01 02 [12:48:35]Write to MH i2c: E2 08 00 5C 3D 80 0D 01 02 00 00 00 00 12 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 5C 3D 00 90 00 0D [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]wFMCommunicate request_size=255 [12:48:35]MH_SAM_APDU [12:48: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 27 88 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 F0 02 00 35 04 06 00 35 [12:48:35]Write to MH i2c: E2 02 01 5D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 27 88 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 F0 02 00 35 04 06 00 35 00 00 B7 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:36]Read from MH i2c: E2 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: E2 03 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: E2 03 00 5D 3D 00 90 00 0E [12:48:36]RAPDU: 90 00 [12:48:36]wFMCommunicate OK [12:48:36]wFMCommunicate request_size=10 [12:48:36]MH_SAM_APDU [12:48:36]CAPDU: 80 0D 02 02 05 36 42 71 34 55 [12:48:36]Write to MH i2c: E2 0D 00 5E 3D 80 0D 02 02 05 00 36 42 71 34 55 00 00 91 [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:36]Read from MH i2c: E2 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: E2 03 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: E2 03 00 5E 3D 00 90 00 0F [12:48:36]RAPDU: 90 00 [12:48:36]wFMCommunicate OK [12:48:36]wFMCommunicate request_size=4 [12:48:36]MH_SAM_APDU [12:48:36]CAPDU: 80 0D 03 02 [12:48:36]Write to MH i2c: E2 08 00 5F 3D 80 0D 03 02 00 00 00 00 17 [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:36]Read from MH i2c: E2 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: E2 0B 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: E2 0B 00 5F 3D 00 0E D0 CC FC 56 B1 FC FC 90 00 BD [12:48:36]RAPDU: 0E D0 CC FC 56 B1 FC FC 90 00 [12:48:36]wFMCommunicate OK [12:48:36]SAM_PROTO_SignData done [12:48:36]FM_MakeSignedData done [12:48:36]CreateOFDProtocolMessage [12:48:36]wFMCommunicate request_size=4 [12:48:36]MH_SAM_APDU [12:48:36]CAPDU: 80 11 00 00 [12:48:36]Write to MH i2c: E2 08 00 60 3D 80 11 00 00 00 00 00 00 17 [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:36]Read from MH i2c: E2 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: E2 17 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: E2 17 00 60 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6A [12:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:48:36]wFMCommunicate OK [12:48:36]CreateOFDProtocolMessage done [12:48:36]OFDSenderStorePacket 192562 [12:48:36]StoreOFDPacket docnum=192562 [12:48:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 06 FD 07 01 D1 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 27 88 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 F0 02 00 35 04 06 00 35 36 42 71 34 55 0E D0 CC FC 56 B1 FC FC [12:48:36]CheckFolder [12:48:36]dirname=/storage/ofd_packets [12:48:36]CheckFolder done [12:48:36]ProducePacketName [12:48:36]name=ofd_packets/00192562 [12:48:36]NVStorageSaveData ofd_packets/00192562 [12:48:36]File name is /storage/ofd_packets/00192562 [12:48:36]Write 301 bytes [12:48:36]NVStorageSaveData done [12:48:36]OFDSenderStorePacket done [12:48:36]KKMCreateOFDPacket done [12:48:36]NVStorageSaveData kkm_last_timestamp [12:48:36]File name is /storage/kkm_last_timestamp [12:48:36]Write 4 bytes [12:48:36]NVStorageSaveData done [12:48:36]ExternCall_PrintAddStr [12:48:36]wPrintStart [12:48:36]Write to MH i2c: 01 00 00 61 3D 9E [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 07 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 07 00 61 3D 00 00 00 00 00 FF 0F B3 [12:48:36]RasterBufferAndPrint [12:48:36]line Счет N : (1)31882 [12:48:36]line ИНН: 02508201610067 [12:48:36]line Контрольно-Кассовый Чек [12:48:36]line ПРОДАЖА [12:48:36]line ТРК (МРК, ГНК) : 12 [12:48:36]line Товар: 2710124130 [12:48:36]line Аи-92-К-5 [12:48:36]line 4.490 * 66.90 [12:48:36]line = 300.38 [12:48:36]line НДС 12% НСП 1% [12:48:36]line > о реализуемом товаре [12:48:36]line ОКРУГЛЕНИЕ: -0.38 [12:48:36]line ИТОГО: 300.00 [12:48:36]line Внесено: 300.00 [12:48:36]line СДАЧА: 0.00 [12:48:36]line НСП 1% : 2.66 [12:48:36]line НДС 12% : 31.90 [12:48:36]line Наличными: 300.00 [12:48:36]line Безнал.: 0.00 [12:48:36]line Место: АЗС № 170 "Партнер Нефть" [12:48:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:48:36]line СНО: Общий режим [12:48:36]line Чек 110 28.10.2024 12:48 [12:48:36]line Смена: 543 ФФД: 1.0 [12:48:36]line ЗНМ: 0300000110 [12:48:36]line РНМ: 0000000000091776 [12:48:36]line Версия ККМ: 001 [12:48:36]line ФМ: 0000000000871754 [12:48:36]line ФД: 192562 [12:48:36]line ФПД: 58507159221333 [12:48:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124839&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192562&fm=58507159221333&tin=02508201610067®Number=0000000000091776&sum=30000 [12:48:36]OFD Sender: Processing packet 192562 [packets to send 75, broken 74] [12:48:36]ProducePacketName [12:48:36]name=ofd_packets/00192562 [12:48:36]OFD Sender: To server: pG, [12:48:36]CommunicateWithHost lk.salyk.kg:30040 [12:48:36]ConnectInit lk.salyk.kg [12:48:36]written 0, free lines is 4095 [12:48:36]Connected sock=10 [12:48:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 06 FD 07 01 D1 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 27 88 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 F0 02 00 35 04 06 00 35 36 42 71 34 55 0E D0 CC FC 56 B1 FC FC [12:48:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D3 D8 47 00 EB CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 F0 02 00 F4 03 04 00 EB 2C 1F 67 B6 04 01 00 00 B0 18 D3 E3 85 58 AD 64 [12:48:36]CommunicateWithHost err = 0 [12:48:36]CheckOFDResponse [12:48:36]1017 (14) - 77093643461234 [12:48:36]1041 (16) - 0000000000871754 [12:48:36]1040 (4) - 192562 [12:48:36]1012 (4) - 28.10.2024 06:19 [12:48:36]1206 (1) - 0 [12:48:36]OFD Sender: Remove packet 192562 [12:48:36]ProducePacketName [12:48:36]name=ofd_packets/00192562 [12:48:36]NVStorageDeleteData [12:48:36]Write to MH i2c: 01 00 00 8C 3D C9 [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 07 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 07 00 8C 3D 00 00 00 00 00 C2 0C 9E [12:48:36]RasterBufferAndPrint [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]written 0, free lines is 3272 [12:48:36]MH_Cut [12:48:36]Write to MH i2c: D1 01 00 93 3D 01 A2 [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: D1 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: D1 01 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: D1 01 00 93 3D 00 A1 [12:48:37]Write to MH i2c: 01 00 00 94 3D D1 [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]OFD Sender: No OFD packet to send [12:48:37]*** Cut start [12:48:37]*** Partial cut [12:48:37]*** CUTSNS_PIN = 1 [12:48:37]*** CUTSNS_PIN = 0 [12:48:38]*** Brake cut motor [12:48:38]Read from MH i2c: 01 [12:48:38]MH_I2C_Read... [12:48:38]*** Stop cut motor [12:48:38]*** Cut end [12:48:38]Read from MH i2c: 01 07 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: 01 07 00 94 3D 00 00 00 00 00 FF 0F E6 [12:48:38]process_action close_receipt done [12:48:38]requested_data is exist [12:48:38]produce_requested_data [12:48:38]requested_item fm.sn is exist - process it [12:48:38]wFMCommunicate request_size=4 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 11 00 00 [12:48:38]Write to MH i2c: E2 08 00 95 3D 80 11 00 00 00 00 00 00 4C [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 17 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 17 00 95 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [12:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:48:38]wFMCommunicate OK [12:48:38]requested_item fd.num is exist - process it [12:48:38]SAM_PROTO_GetFieldsCounters [12:48:38]wFMCommunicate request_size=4 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 13 00 00 [12:48:38]Write to MH i2c: E2 08 00 96 3D 80 13 00 00 00 00 00 00 4F [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 62 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 62 00 96 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 32 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [12:48:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 32 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:38]wFMCommunicate OK [12:48:38]SAM_PROTO_GetFieldsCounters done [12:48:38]requested_item shift.num is exist - process it [12:48:38]requested_item shift.opened is exist - process it [12:48:38]req_shift_opened [12:48:38]FM_GetShiftState [12:48:38]SAM_PROTO_GetShiftState [12:48:38]wFMCommunicate request_size=4 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 13 01 00 [12:48:38]Write to MH i2c: E2 08 00 97 3D 80 13 01 00 00 00 00 00 51 [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 0E 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 0E 00 97 3D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A1 [12:48:38]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:48:38]wFMCommunicate OK [12:48:38]SAM_PROTO_GetShiftState done [12:48:38]FM_GetShiftState done [12:48:38]req_shift_opened done [12:48:38]requested_item shift.open_date is exist - process it [12:48:38]req_shift_open_date [12:48:38]req_shift_open_date done [12:48:38]produce_requested_data done [12:48:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192562,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:48:38]process_action_free close_receipt [12:48:38]json_value_free [12:48:38]json_value_free done [12:48:38]process_json_proto returns [12:48:38]Send response to host [12:48:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192562,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:48:38]free response buf [12:48:38]execute_script done [12:48:38]execute_script returns [12:48:38]free content buf [12:48:38]Sock 9.Close socket [12:48:38]Sock 9.Thread stoped [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]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: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:43]accept exits with 7 [12:54:43]New connection [12:54:43]New thread 3066707300 created [12:54:43]Thread 3066563940 joined [12:54:43]Waiting for new connection... [12:54:43] Sock 7.Parse request [12:54:43]Sock 7.Check first char [12:54:43]Sock 7.First char is OK [12:54:43]request: POST /json_proto HTTP/1.0 [12:54:43]Method: POST [12:54:43]URL: /json_proto [12:54:43]Method is POST - this is cgi request [12:54:43]url: /json_proto [12:54:43]query_string will be loaded in cgi processing [12:54:43]execute_cgi json_proto POST (null) [12:54:43]execute_cgi path=json_proto method=POST [12:54:43]POST find Content-Length [12:54:43]Host: 172.17.63.131:8080 [12:54:43]Content-Length: 676 [12:54:43]Content-Type: application/json [12:54:43] [12:54:43]POST finish read [12:54:43]Found Content-Length = 676 [12:54:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:43]execute_script... [12:54: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)31883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:43]POST & json_proto [12:54:43]process_json_proto [12:54:43]json parsed OK: [12:54:43]protocol is kg_v1.0 [12:54:43]action value=close_receipt [12:54:43]process_action close_receipt [12:54:43]cmd_close_receipt [12:54:43]MH_GetDate [12:54:43]Write to MH i2c: F0 00 00 98 3D C4 [12:54:43]Write i2c OK [12:54:43]MH_I2C_Read... [12:54:43]Read from MH i2c: F0 [12:54:43]MH_I2C_Read... [12:54:43]Read from MH i2c: F0 09 00 [12:54:43]MH_I2C_Read... [12:54:43]Read from MH i2c: F0 09 00 98 3D 00 98 89 1F 67 22 05 6E 64 6D [12:54:43]GetLastDocTimeStamp 1730119719 [12:54:43]current date 1730120088 [12:54:43]FM_GetShiftState [12:54:43]SAM_PROTO_GetShiftState [12:54:43]wFMCommunicate request_size=4 [12:54:43]MH_SAM_APDU [12:54:43]CAPDU: 80 13 01 00 [12:54:43]Write to MH i2c: E2 08 00 99 3D 80 13 01 00 00 00 00 00 53 [12:54:43]Write i2c OK [12:54:43]MH_I2C_Read... [12:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:43]Read from MH i2c: E2 [12:54:43]MH_I2C_Read... [12:54:43]Read from MH i2c: E2 0E 00 [12:54:43]MH_I2C_Read... [12:54:43]Read from MH i2c: E2 0E 00 99 3D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A3 [12:54:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:54:43]wFMCommunicate OK [12:54:43]SAM_PROTO_GetShiftState done [12:54:43]FM_GetShiftState done [12:54:43]opened in 1730075620 [12:54:43]opened+sec_in_day 1730162020 [12:54:43]quantity*price = 40006 [12:54:43]sum+1 = 40007 [12:54:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 111 28.10.2024 12:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192563 ФПД: 35127834124740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T125448&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192563&fm=35127834124740&tin=02508201610067®Number=0000000000091776&sum=40000 [12:54:44]StoreToDocumentArchive [12:54:44]shift 543 fd 192563 [12:54:44]save to /storage/0543/doc_00192563 [12:54:44]save last doc name /storage/0543/doc_00192563 to /storage/kkm_last_doc_name [12:54:44]save OK [12:54:44]Clear old archive folders... [12:54:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:44]tlvbuf is B6F1C6A0 [12:54:44]SAM_PROTO_ClearQueue [12:54:44]wFMCommunicate request_size=4 [12:54:44]MH_SAM_APDU [12:54:44]CAPDU: 80 09 00 00 [12:54:44]Write to MH i2c: E2 08 00 A6 3D 80 09 00 00 00 00 00 00 55 [12:54:44]Write i2c OK [12:54:44]MH_I2C_Read... [12:54:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:44]Read from MH i2c: E2 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 03 00 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 03 00 A6 3D 00 90 00 57 [12:54:44]RAPDU: 90 00 [12:54:44]wFMCommunicate OK [12:54:44]SAM_PROTO_ClearQueue done [12:54:44]KKMCreateOFDPacket [12:54:44]OFDProtocolAddRootSTLVToBuf [12:54:44]FM_MakeSignedData [12:54:44]FM_MakeSignedData [12:54:44]SAM_PROTO_SignData [12:54:44]wFMCommunicate request_size=4 [12:54:44]MH_SAM_APDU [12:54:44]CAPDU: 80 0D 01 02 [12:54:44]Write to MH i2c: E2 08 00 A7 3D 80 0D 01 02 00 00 00 00 5D [12:54:44]Write i2c OK [12:54:44]MH_I2C_Read... [12:54:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:44]Read from MH i2c: E2 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 03 00 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 03 00 A7 3D 00 90 00 58 [12:54:44]RAPDU: 90 00 [12:54:44]wFMCommunicate OK [12:54:44]wFMCommunicate request_size=255 [12:54:44]MH_SAM_APDU [12:54: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 98 89 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 F0 02 00 35 04 06 00 1F [12:54:44]Write to MH i2c: E2 02 01 A8 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 98 89 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 F0 02 00 35 04 06 00 1F 00 00 3B [12:54:44]Write i2c OK [12:54:44]MH_I2C_Read... [12:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:44]Read from MH i2c: E2 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 03 00 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 03 00 A8 3D 00 90 00 59 [12:54:44]RAPDU: 90 00 [12:54:44]wFMCommunicate OK [12:54:44]wFMCommunicate request_size=10 [12:54:44]MH_SAM_APDU [12:54:44]CAPDU: 80 0D 02 02 05 F2 D6 13 21 C4 [12:54:44]Write to MH i2c: E2 0D 00 A9 3D 80 0D 02 02 05 00 F2 D6 13 21 C4 00 00 2A [12:54:44]Write i2c OK [12:54:44]MH_I2C_Read... [12:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:44]Read from MH i2c: E2 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 03 00 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 03 00 A9 3D 00 90 00 5A [12:54:44]RAPDU: 90 00 [12:54:44]wFMCommunicate OK [12:54:44]wFMCommunicate request_size=4 [12:54:44]MH_SAM_APDU [12:54:44]CAPDU: 80 0D 03 02 [12:54:44]Write to MH i2c: E2 08 00 AA 3D 80 0D 03 02 00 00 00 00 62 [12:54:44]Write i2c OK [12:54:44]MH_I2C_Read... [12:54:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:44]Read from MH i2c: E2 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 0B 00 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 0B 00 AA 3D 00 CE 4A F3 ED 3E 41 F1 70 90 00 3B [12:54:44]RAPDU: CE 4A F3 ED 3E 41 F1 70 90 00 [12:54:44]wFMCommunicate OK [12:54:44]SAM_PROTO_SignData done [12:54:44]FM_MakeSignedData done [12:54:44]CreateOFDProtocolMessage [12:54:44]wFMCommunicate request_size=4 [12:54:44]MH_SAM_APDU [12:54:44]CAPDU: 80 11 00 00 [12:54:44]Write to MH i2c: E2 08 00 AB 3D 80 11 00 00 00 00 00 00 62 [12:54:44]Write i2c OK [12:54:44]MH_I2C_Read... [12:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:44]Read from MH i2c: E2 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 17 00 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: E2 17 00 AB 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [12:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:54:44]wFMCommunicate OK [12:54:44]CreateOFDProtocolMessage done [12:54:44]OFDSenderStorePacket 192563 [12:54:44]StoreOFDPacket docnum=192563 [12:54:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 40 07 01 83 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 98 89 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 F0 02 00 35 04 06 00 1F F2 D6 13 21 C4 CE 4A F3 ED 3E 41 F1 70 [12:54:44]CheckFolder [12:54:44]dirname=/storage/ofd_packets [12:54:44]CheckFolder done [12:54:44]ProducePacketName [12:54:44]name=ofd_packets/00192563 [12:54:44]NVStorageSaveData ofd_packets/00192563 [12:54:44]File name is /storage/ofd_packets/00192563 [12:54:44]Write 301 bytes [12:54:44]NVStorageSaveData done [12:54:44]OFDSenderStorePacket done [12:54:44]KKMCreateOFDPacket done [12:54:44]NVStorageSaveData kkm_last_timestamp [12:54:44]File name is /storage/kkm_last_timestamp [12:54:44]Write 4 bytes [12:54:44]NVStorageSaveData done [12:54:44]ExternCall_PrintAddStr [12:54:44]wPrintStart [12:54:44]Write to MH i2c: 01 00 00 AC 3D E9 [12:54:44]Write i2c OK [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: 01 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: 01 07 00 [12:54:44]MH_I2C_Read... [12:54:44]Read from MH i2c: 01 07 00 AC 3D 00 00 00 00 00 FF 0F FE [12:54:44]RasterBufferAndPrint [12:54:44]line Счет N : (1)31883 [12:54:44]line ИНН: 02508201610067 [12:54:44]line Контрольно-Кассовый Чек [12:54:44]line ПРОДАЖА [12:54:44]line ТРК (МРК, ГНК) : 21 [12:54:44]line Товар: 2710124130 [12:54:44]line Аи-92-К-5 [12:54:44]line 5.980 * 66.90 [12:54:44]line = 400.06 [12:54:44]line НДС 12% НСП 1% [12:54:44]line > о реализуемом товаре [12:54:44]line ОКРУГЛЕНИЕ: -0.06 [12:54:44]line ИТОГО: 400.00 [12:54:44]line Внесено: 400.00 [12:54:44]line СДАЧА: 0.00 [12:54:44]line НСП 1% : 3.54 [12:54:44]line НДС 12% : 42.48 [12:54:44]line Наличными: 400.00 [12:54:44]line Безнал.: 0.00 [12:54:44]line Место: АЗС № 170 "Партнер Нефть" [12:54:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:54:44]line СНО: Общий режим [12:54:44]line Чек 111 28.10.2024 12:54 [12:54:44]line Смена: 543 ФФД: 1.0 [12:54:44]line ЗНМ: 0300000110 [12:54:44]line РНМ: 0000000000091776 [12:54:44]line Версия ККМ: 001 [12:54:44]line ФМ: 0000000000871754 [12:54:44]line ФД: 192563 [12:54:44]line ФПД: 35127834124740 [12:54:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T125448&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192563&fm=35127834124740&tin=02508201610067®Number=0000000000091776&sum=40000 [12:54:45]OFD Sender: Processing packet 192563 [packets to send 75, broken 74] [12:54:45]ProducePacketName [12:54:45]name=ofd_packets/00192563 [12:54:45]OFD Sender: To server: pG, [12:54:45]CommunicateWithHost lk.salyk.kg:30040 [12:54:45]ConnectInit lk.salyk.kg [12:54:45]written 0, free lines is 4095 [12:54:45]Connected sock=11 [12:54:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 40 07 01 83 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 98 89 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 F0 02 00 35 04 06 00 1F F2 D6 13 21 C4 CE 4A F3 ED 3E 41 F1 70 [12:54:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 81 1C 47 00 30 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 F0 02 00 F4 03 04 00 5C 2E 1F 67 B6 04 01 00 00 2B CE 34 F3 FD 13 7D 79 [12:54:45]CommunicateWithHost err = 0 [12:54:45]CheckOFDResponse [12:54:45]1017 (14) - 77093643461234 [12:54:45]1041 (16) - 0000000000871754 [12:54:45]1040 (4) - 192563 [12:54:45]1012 (4) - 28.10.2024 06:25 [12:54:45]1206 (1) - 0 [12:54:45]OFD Sender: Remove packet 192563 [12:54:45]ProducePacketName [12:54:45]name=ofd_packets/00192563 [12:54:45]NVStorageDeleteData [12:54:45]Write to MH i2c: 01 00 00 D7 3D 14 [12:54:45]Write i2c OK [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: 01 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: 01 07 00 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: 01 07 00 D7 3D 00 00 00 00 00 B6 0C DD [12:54:45]RasterBufferAndPrint [12:54:45]line [12:54:45]line [12:54:45]line [12:54:45]line [12:54:45]line [12:54:45]written 0, free lines is 3262 [12:54:45]MH_Cut [12:54:45]Write to MH i2c: D1 01 00 DE 3D 01 ED [12:54:45]Write i2c OK [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: D1 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: D1 01 00 [12:54:45]MH_I2C_Read... [12:54:45]Read from MH i2c: D1 01 00 DE 3D 00 EC [12:54:45]Write to MH i2c: 01 00 00 DF 3D 1C [12:54:45]Write i2c OK [12:54:45]MH_I2C_Read... [12:54:46]OFD Sender: No OFD packet to send [12:54:46]*** Cut start [12:54:46]*** Partial cut [12:54:46]*** CUTSNS_PIN = 1 [12:54:46]*** CUTSNS_PIN = 0 [12:54:46]*** Brake cut motor [12:54:47]Read from MH i2c: 01 [12:54:47]MH_I2C_Read... [12:54:47]*** Stop cut motor [12:54:47]*** Cut end [12:54:47]Read from MH i2c: 01 07 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: 01 07 00 DF 3D 00 00 00 00 00 FF 0F 31 [12:54:47]process_action close_receipt done [12:54:47]requested_data is exist [12:54:47]produce_requested_data [12:54:47]requested_item fm.sn is exist - process it [12:54:47]wFMCommunicate request_size=4 [12:54:47]MH_SAM_APDU [12:54:47]CAPDU: 80 11 00 00 [12:54:47]Write to MH i2c: E2 08 00 E0 3D 80 11 00 00 00 00 00 00 97 [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:47]Read from MH i2c: E2 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 17 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 17 00 E0 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [12:54:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:54:47]wFMCommunicate OK [12:54:47]requested_item fd.num is exist - process it [12:54:47]SAM_PROTO_GetFieldsCounters [12:54:47]wFMCommunicate request_size=4 [12:54:47]MH_SAM_APDU [12:54:47]CAPDU: 80 13 00 00 [12:54:47]Write to MH i2c: E2 08 00 E1 3D 80 13 00 00 00 00 00 00 9A [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:47]Read from MH i2c: E2 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 62 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 62 00 E1 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 33 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [12:54:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 33 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:47]wFMCommunicate OK [12:54:47]SAM_PROTO_GetFieldsCounters done [12:54:47]requested_item shift.num is exist - process it [12:54:47]requested_item shift.opened is exist - process it [12:54:47]req_shift_opened [12:54:47]FM_GetShiftState [12:54:47]SAM_PROTO_GetShiftState [12:54:47]wFMCommunicate request_size=4 [12:54:47]MH_SAM_APDU [12:54:47]CAPDU: 80 13 01 00 [12:54:47]Write to MH i2c: E2 08 00 E2 3D 80 13 01 00 00 00 00 00 9C [12:54:47]Write i2c OK [12:54:47]MH_I2C_Read... [12:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:47]Read from MH i2c: E2 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 0E 00 [12:54:47]MH_I2C_Read... [12:54:47]Read from MH i2c: E2 0E 00 E2 3D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EC [12:54:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:54:47]wFMCommunicate OK [12:54:47]SAM_PROTO_GetShiftState done [12:54:47]FM_GetShiftState done [12:54:47]req_shift_opened done [12:54:47]requested_item shift.open_date is exist - process it [12:54:47]req_shift_open_date [12:54:47]req_shift_open_date done [12:54:47]produce_requested_data done [12:54:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192563,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:54:47]process_action_free close_receipt [12:54:47]json_value_free [12:54:47]json_value_free done [12:54:47]process_json_proto returns [12:54:47]Send response to host [12:54:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192563,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:54:47]free response buf [12:54:47]execute_script done [12:54:47]execute_script returns [12:54:47]free content buf [12:54:47]Sock 7.Close socket [12:54:47]Sock 7.Thread stoped [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]ConnectInit Can't connect to host [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:07]accept exits with 10 [12:56:07]New connection [12:56:07]New thread 3066563940 created [12:56:07]Thread 3066707300 joined [12:56:07]Waiting for new connection... [12:56:07] Sock 10.Parse request [12:56:07]Sock 10.Check first char [12:56:07]Sock 10.First char is OK [12:56:07]request: POST /json_proto HTTP/1.0 [12:56:07]Method: POST [12:56:07]URL: /json_proto [12:56:07]Method is POST - this is cgi request [12:56:07]url: /json_proto [12:56:07]query_string will be loaded in cgi processing [12:56:07]execute_cgi json_proto POST (null) [12:56:07]execute_cgi path=json_proto method=POST [12:56:07]POST find Content-Length [12:56:07]Host: 172.17.63.131:8080 [12:56:07]Content-Length: 676 [12:56:07]Content-Type: application/json [12:56:07] [12:56:07]POST finish read [12:56:07]Found Content-Length = 676 [12:56:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:07]execute_script... [12:56:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:07]POST & json_proto [12:56:07]process_json_proto [12:56:07]json parsed OK: [12:56:07]protocol is kg_v1.0 [12:56:07]action value=close_receipt [12:56:07]process_action close_receipt [12:56:07]cmd_close_receipt [12:56:07]MH_GetDate [12:56:07]Write to MH i2c: F0 00 00 E3 3D 0F [12:56:07]Write i2c OK [12:56:07]MH_I2C_Read... [12:56:07]Read from MH i2c: F0 [12:56:07]MH_I2C_Read... [12:56:07]Read from MH i2c: F0 09 00 [12:56:07]MH_I2C_Read... [12:56:07]Read from MH i2c: F0 09 00 E3 3D 00 EC 89 1F 67 22 05 6E 64 0C [12:56:07]GetLastDocTimeStamp 1730120088 [12:56:07]current date 1730120172 [12:56:07]FM_GetShiftState [12:56:07]SAM_PROTO_GetShiftState [12:56:07]wFMCommunicate request_size=4 [12:56:07]MH_SAM_APDU [12:56:07]CAPDU: 80 13 01 00 [12:56:07]Write to MH i2c: E2 08 00 E4 3D 80 13 01 00 00 00 00 00 9E [12:56:07]Write i2c OK [12:56:07]MH_I2C_Read... [12:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:07]Read from MH i2c: E2 [12:56:07]MH_I2C_Read... [12:56:07]Read from MH i2c: E2 0E 00 [12:56:07]MH_I2C_Read... [12:56:07]Read from MH i2c: E2 0E 00 E4 3D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EE [12:56:07]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:56:07]wFMCommunicate OK [12:56:07]SAM_PROTO_GetShiftState done [12:56:07]FM_GetShiftState done [12:56:07]opened in 1730075620 [12:56:07]opened+sec_in_day 1730162020 [12:56:07]quantity*price = 60009 [12:56:07]sum+1 = 60010 [12:56:07]Check (price>sum+1) || (price+1 о реализуемом товаре [12:56:09]line ОКРУГЛЕНИЕ: -0.09 [12:56:09]line ИТОГО: 600.00 [12:56:09]line Внесено: 600.00 [12:56:09]line СДАЧА: 0.00 [12:56:09]line НСП 1% : 5.31 [12:56:09]line НДС 12% : 63.73 [12:56:09]line Наличными: 600.00 [12:56:09]line Безнал.: 0.00 [12:56:09]line Место: АЗС № 170 "Партнер Нефть" [12:56:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:56:09]line СНО: Общий режим [12:56:09]line Чек 112 28.10.2024 12:56 [12:56:09]line Смена: 543 ФФД: 1.0 [12:56:09]line ЗНМ: 0300000110 [12:56:09]line РНМ: 0000000000091776 [12:56:09]line Версия ККМ: 001 [12:56:09]line ФМ: 0000000000871754 [12:56:09]line ФД: 192564 [12:56:09]line ФПД: 141717042353424 [12:56:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T125612&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192564&fm=141717042353424&tin=02508201610067®Number=0000000000091776&sum=60000 [12:56:09]written 0, free lines is 4095 [12:56:09]OFD Sender: Processing packet 192564 [packets to send 75, broken 74] [12:56:09]ProducePacketName [12:56:09]name=ofd_packets/00192564 [12:56:09]OFD Sender: To server: pG, [12:56:09]CommunicateWithHost lk.salyk.kg:30040 [12:56:09]ConnectInit lk.salyk.kg [12:56:09]Connected sock=11 [12:56:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1B 64 07 01 D9 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 EC 89 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 F0 02 00 35 04 06 00 80 E4 11 F7 D5 10 AA F0 AB B5 BC 38 58 C0 [12:56:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D7 97 47 00 7E D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 F0 02 00 F4 03 04 00 B0 2E 1F 67 B6 04 01 00 00 82 71 E2 B5 2C E9 A3 CE [12:56:09]CommunicateWithHost err = 0 [12:56:09]CheckOFDResponse [12:56:09]1017 (14) - 77093643461234 [12:56:09]1041 (16) - 0000000000871754 [12:56:09]1040 (4) - 192564 [12:56:09]1012 (4) - 28.10.2024 06:26 [12:56:09]1206 (1) - 0 [12:56:09]OFD Sender: Remove packet 192564 [12:56:09]ProducePacketName [12:56:09]name=ofd_packets/00192564 [12:56:09]NVStorageDeleteData [12:56:09]Write to MH i2c: 01 00 00 22 3E 60 [12:56:09]Write i2c OK [12:56:09]MH_I2C_Read... [12:56:09]Read from MH i2c: 01 [12:56:09]MH_I2C_Read... [12:56:09]Read from MH i2c: 01 07 00 [12:56:09]MH_I2C_Read... [12:56:09]Read from MH i2c: 01 07 00 22 3E 00 00 00 00 00 B4 0C 27 [12:56:09]RasterBufferAndPrint [12:56:09]line [12:56:09]line [12:56:09]line [12:56:09]line [12:56:09]line [12:56:09]written 0, free lines is 3266 [12:56:09]MH_Cut [12:56:09]Write to MH i2c: D1 01 00 29 3E 01 39 [12:56:09]Write i2c OK [12:56:09]MH_I2C_Read... [12:56:09]Read from MH i2c: D1 [12:56:09]MH_I2C_Read... [12:56:09]Read from MH i2c: D1 01 00 [12:56:09]MH_I2C_Read... [12:56:09]Read from MH i2c: D1 01 00 29 3E 00 38 [12:56:09]Write to MH i2c: 01 00 00 2A 3E 68 [12:56:09]Write i2c OK [12:56:09]MH_I2C_Read... [12:56:10]OFD Sender: No OFD packet to send [12:56:10]*** Cut start [12:56:10]*** Partial cut [12:56:10]*** CUTSNS_PIN = 1 [12:56:10]*** CUTSNS_PIN = 0 [12:56:10]*** Brake cut motor [12:56:11]Read from MH i2c: 01 [12:56:11]MH_I2C_Read... [12:56:11]*** Stop cut motor [12:56:11]*** Cut end [12:56:11]Read from MH i2c: 01 07 00 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: 01 07 00 2A 3E 00 00 00 00 00 FF 0F 7D [12:56:11]process_action close_receipt done [12:56:11]requested_data is exist [12:56:11]produce_requested_data [12:56:11]requested_item fm.sn is exist - process it [12:56:11]wFMCommunicate request_size=4 [12:56:11]MH_SAM_APDU [12:56:11]CAPDU: 80 11 00 00 [12:56:11]Write to MH i2c: E2 08 00 2B 3E 80 11 00 00 00 00 00 00 E3 [12:56:11]Write i2c OK [12:56:11]MH_I2C_Read... [12:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:11]Read from MH i2c: E2 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 17 00 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 17 00 2B 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 36 [12:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:56:11]wFMCommunicate OK [12:56:11]requested_item fd.num is exist - process it [12:56:11]SAM_PROTO_GetFieldsCounters [12:56:11]wFMCommunicate request_size=4 [12:56:11]MH_SAM_APDU [12:56:11]CAPDU: 80 13 00 00 [12:56:11]Write to MH i2c: E2 08 00 2C 3E 80 13 00 00 00 00 00 00 E6 [12:56:11]Write i2c OK [12:56:11]MH_I2C_Read... [12:56:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:11]Read from MH i2c: E2 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 62 00 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 62 00 2C 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 34 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [12:56:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 34 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:11]wFMCommunicate OK [12:56:11]SAM_PROTO_GetFieldsCounters done [12:56:11]requested_item shift.num is exist - process it [12:56:11]requested_item shift.opened is exist - process it [12:56:11]req_shift_opened [12:56:11]FM_GetShiftState [12:56:11]SAM_PROTO_GetShiftState [12:56:11]wFMCommunicate request_size=4 [12:56:11]MH_SAM_APDU [12:56:11]CAPDU: 80 13 01 00 [12:56:11]Write to MH i2c: E2 08 00 2D 3E 80 13 01 00 00 00 00 00 E8 [12:56:11]Write i2c OK [12:56:11]MH_I2C_Read... [12:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:11]Read from MH i2c: E2 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 0E 00 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 0E 00 2D 3E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 38 [12:56:11]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:56:11]wFMCommunicate OK [12:56:11]SAM_PROTO_GetShiftState done [12:56:11]FM_GetShiftState done [12:56:11]req_shift_opened done [12:56:11]requested_item shift.open_date is exist - process it [12:56:11]req_shift_open_date [12:56:11]req_shift_open_date done [12:56:11]produce_requested_data done [12:56:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192564,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:56:11]process_action_free close_receipt [12:56:11]json_value_free [12:56:11]json_value_free done [12:56:11]process_json_proto returns [12:56:11]Send response to host [12:56:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192564,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:56:11]free response buf [12:56:11]execute_script done [12:56:11]execute_script returns [12:56:11]free content buf [12:56:11]Sock 10.Close socket [12:56:11]Sock 10.Thread stoped [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:19]accept exits with 9 [12:58:19]New connection [12:58:19]New thread 3066707300 created [12:58:19]Thread 3066563940 joined [12:58:19]Waiting for new connection... [12:58:19] Sock 9.Parse request [12:58:19]Sock 9.Check first char [12:58:19]Sock 9.First char is OK [12:58:19]request: POST /json_proto HTTP/1.0 [12:58:19]Method: POST [12:58:19]URL: /json_proto [12:58:19]Method is POST - this is cgi request [12:58:19]url: /json_proto [12:58:19]query_string will be loaded in cgi processing [12:58:19]execute_cgi json_proto POST (null) [12:58:19]execute_cgi path=json_proto method=POST [12:58:19]POST find Content-Length [12:58:19]Host: 172.17.63.131:8080 [12:58:19]Content-Length: 676 [12:58:19]Content-Type: application/json [12:58:19] [12:58:19]POST finish read [12:58:19]Found Content-Length = 676 [12:58:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:19]execute_script... [12:58:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:19]POST & json_proto [12:58:19]process_json_proto [12:58:19]json parsed OK: [12:58:19]protocol is kg_v1.0 [12:58:19]action value=close_receipt [12:58:19]process_action close_receipt [12:58:19]cmd_close_receipt [12:58:19]MH_GetDate [12:58:19]Write to MH i2c: F0 00 00 2E 3E 5B [12:58:19]Write i2c OK [12:58:19]MH_I2C_Read... [12:58:19]Read from MH i2c: F0 [12:58:19]MH_I2C_Read... [12:58:19]Read from MH i2c: F0 09 00 [12:58:19]MH_I2C_Read... [12:58:19]Read from MH i2c: F0 09 00 2E 3E 00 71 8A 1F 67 22 05 6E 64 DE [12:58:19]GetLastDocTimeStamp 1730120172 [12:58:19]current date 1730120305 [12:58:19]FM_GetShiftState [12:58:19]SAM_PROTO_GetShiftState [12:58:19]wFMCommunicate request_size=4 [12:58:19]MH_SAM_APDU [12:58:19]CAPDU: 80 13 01 00 [12:58:19]Write to MH i2c: E2 08 00 2F 3E 80 13 01 00 00 00 00 00 EA [12:58:19]Write i2c OK [12:58:19]MH_I2C_Read... [12:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:19]Read from MH i2c: E2 [12:58:19]MH_I2C_Read... [12:58:19]Read from MH i2c: E2 0E 00 [12:58:19]MH_I2C_Read... [12:58:19]Read from MH i2c: E2 0E 00 2F 3E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3A [12:58:19]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:58:19]wFMCommunicate OK [12:58:19]SAM_PROTO_GetShiftState done [12:58:19]FM_GetShiftState done [12:58:19]opened in 1730075620 [12:58:19]opened+sec_in_day 1730162020 [12:58:19]quantity*price = 30038 [12:58:19]sum+1 = 30039 [12:58:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 113 28.10.2024 12:58 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192565 ФПД: 179527219549769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T125825&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192565&fm=179527219549769&tin=02508201610067®Number=0000000000091776&sum=30000 [12:58:20]StoreToDocumentArchive [12:58:20]shift 543 fd 192565 [12:58:20]save to /storage/0543/doc_00192565 [12:58:20]save last doc name /storage/0543/doc_00192565 to /storage/kkm_last_doc_name [12:58:20]save OK [12:58:20]Clear old archive folders... [12:58:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:20]tlvbuf is B6D6C950 [12:58:20]SAM_PROTO_ClearQueue [12:58:20]wFMCommunicate request_size=4 [12:58:20]MH_SAM_APDU [12:58:20]CAPDU: 80 09 00 00 [12:58:20]Write to MH i2c: E2 08 00 3C 3E 80 09 00 00 00 00 00 00 EC [12:58:20]Write i2c OK [12:58:20]MH_I2C_Read... [12:58:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:20]Read from MH i2c: E2 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 03 00 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 03 00 3C 3E 00 90 00 EE [12:58:20]RAPDU: 90 00 [12:58:20]wFMCommunicate OK [12:58:20]SAM_PROTO_ClearQueue done [12:58:20]KKMCreateOFDPacket [12:58:20]OFDProtocolAddRootSTLVToBuf [12:58:20]FM_MakeSignedData [12:58:20]FM_MakeSignedData [12:58:20]SAM_PROTO_SignData [12:58:20]wFMCommunicate request_size=4 [12:58:20]MH_SAM_APDU [12:58:20]CAPDU: 80 0D 01 02 [12:58:20]Write to MH i2c: E2 08 00 3D 3E 80 0D 01 02 00 00 00 00 F4 [12:58:20]Write i2c OK [12:58:20]MH_I2C_Read... [12:58:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:21]Read from MH i2c: E2 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: E2 03 00 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: E2 03 00 3D 3E 00 90 00 EF [12:58:21]RAPDU: 90 00 [12:58:21]wFMCommunicate OK [12:58:21]wFMCommunicate request_size=255 [12:58:21]MH_SAM_APDU [12:58:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 71 8A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 F0 02 00 35 04 06 00 A3 [12:58:21]Write to MH i2c: E2 02 01 3E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 71 8A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 F0 02 00 35 04 06 00 A3 00 00 59 [12:58:21]Write i2c OK [12:58:21]MH_I2C_Read... [12:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:21]Read from MH i2c: E2 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: E2 03 00 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: E2 03 00 3E 3E 00 90 00 F0 [12:58:21]RAPDU: 90 00 [12:58:21]wFMCommunicate OK [12:58:21]wFMCommunicate request_size=10 [12:58:21]MH_SAM_APDU [12:58:21]CAPDU: 80 0D 02 02 05 47 70 26 16 49 [12:58:21]Write to MH i2c: E2 0D 00 3F 3E 80 0D 02 02 05 00 47 70 26 16 49 00 00 3D [12:58:21]Write i2c OK [12:58:21]MH_I2C_Read... [12:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:21]Read from MH i2c: E2 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: E2 03 00 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: E2 03 00 3F 3E 00 90 00 F1 [12:58:21]RAPDU: 90 00 [12:58:21]wFMCommunicate OK [12:58:21]wFMCommunicate request_size=4 [12:58:21]MH_SAM_APDU [12:58:21]CAPDU: 80 0D 03 02 [12:58:21]Write to MH i2c: E2 08 00 40 3E 80 0D 03 02 00 00 00 00 F9 [12:58:21]Write i2c OK [12:58:21]MH_I2C_Read... [12:58:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:21]Read from MH i2c: E2 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: E2 0B 00 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: E2 0B 00 40 3E 00 7A 7C B4 5A 2D 38 09 97 90 00 03 [12:58:21]RAPDU: 7A 7C B4 5A 2D 38 09 97 90 00 [12:58:21]wFMCommunicate OK [12:58:21]SAM_PROTO_SignData done [12:58:21]FM_MakeSignedData done [12:58:21]CreateOFDProtocolMessage [12:58:21]wFMCommunicate request_size=4 [12:58:21]MH_SAM_APDU [12:58:21]CAPDU: 80 11 00 00 [12:58:21]Write to MH i2c: E2 08 00 41 3E 80 11 00 00 00 00 00 00 F9 [12:58:21]Write i2c OK [12:58:21]MH_I2C_Read... [12:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:21]Read from MH i2c: E2 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: E2 17 00 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: E2 17 00 41 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [12:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:58:21]wFMCommunicate OK [12:58:21]CreateOFDProtocolMessage done [12:58:21]OFDSenderStorePacket 192565 [12:58:21]StoreOFDPacket docnum=192565 [12:58:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B2 A1 07 01 48 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 71 8A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 F0 02 00 35 04 06 00 A3 47 70 26 16 49 7A 7C B4 5A 2D 38 09 97 [12:58:21]CheckFolder [12:58:21]dirname=/storage/ofd_packets [12:58:21]CheckFolder done [12:58:21]ProducePacketName [12:58:21]name=ofd_packets/00192565 [12:58:21]NVStorageSaveData ofd_packets/00192565 [12:58:21]File name is /storage/ofd_packets/00192565 [12:58:21]Write 301 bytes [12:58:21]NVStorageSaveData done [12:58:21]OFDSenderStorePacket done [12:58:21]KKMCreateOFDPacket done [12:58:21]NVStorageSaveData kkm_last_timestamp [12:58:21]File name is /storage/kkm_last_timestamp [12:58:21]Write 4 bytes [12:58:21]NVStorageSaveData done [12:58:21]ExternCall_PrintAddStr [12:58:21]wPrintStart [12:58:21]Write to MH i2c: 01 00 00 42 3E 80 [12:58:21]Write i2c OK [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: 01 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: 01 07 00 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: 01 07 00 42 3E 00 00 00 00 00 FF 0F 95 [12:58:21]RasterBufferAndPrint [12:58:21]line Счет N : (1)31885 [12:58:21]line ИНН: 02508201610067 [12:58:21]line Контрольно-Кассовый Чек [12:58:21]line ПРОДАЖА [12:58:21]line ТРК (МРК, ГНК) : 12 [12:58:21]line Товар: 2710124130 [12:58:21]line Аи-92-К-5 [12:58:21]line 4.490 * 66.90 [12:58:21]line = 300.38 [12:58:21]line НДС 12% НСП 1% [12:58:21]line > о реализуемом товаре [12:58:21]line ОКРУГЛЕНИЕ: -0.38 [12:58:21]line ИТОГО: 300.00 [12:58:21]line Внесено: 300.00 [12:58:21]line СДАЧА: 0.00 [12:58:21]line НСП 1% : 2.66 [12:58:21]line НДС 12% : 31.90 [12:58:21]line Наличными: 300.00 [12:58:21]line Безнал.: 0.00 [12:58:21]line Место: АЗС № 170 "Партнер Нефть" [12:58:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:58:21]line СНО: Общий режим [12:58:21]line Чек 113 28.10.2024 12:58 [12:58:21]line Смена: 543 ФФД: 1.0 [12:58:21]line ЗНМ: 0300000110 [12:58:21]line РНМ: 0000000000091776 [12:58:21]line Версия ККМ: 001 [12:58:21]line ФМ: 0000000000871754 [12:58:21]line ФД: 192565 [12:58:21]line ФПД: 179527219549769 [12:58:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T125825&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192565&fm=179527219549769&tin=02508201610067®Number=0000000000091776&sum=30000 [12:58:21]written 0, free lines is 4095 [12:58:21]OFD Sender: Processing packet 192565 [packets to send 75, broken 74] [12:58:21]ProducePacketName [12:58:21]name=ofd_packets/00192565 [12:58:21]OFD Sender: To server: pG, [12:58:21]CommunicateWithHost lk.salyk.kg:30040 [12:58:21]ConnectInit lk.salyk.kg [12:58:21]Connected sock=11 [12:58:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B2 A1 07 01 48 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 71 8A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 F0 02 00 35 04 06 00 A3 47 70 26 16 49 7A 7C B4 5A 2D 38 09 97 [12:58:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5D DD 47 00 ED 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 F0 02 00 F4 03 04 00 34 2F 1F 67 B6 04 01 00 00 7B 5E 97 62 A2 82 F1 9D [12:58:21]CommunicateWithHost err = 0 [12:58:21]CheckOFDResponse [12:58:21]1017 (14) - 77093643461234 [12:58:21]1041 (16) - 0000000000871754 [12:58:21]1040 (4) - 192565 [12:58:21]1012 (4) - 28.10.2024 06:29 [12:58:21]1206 (1) - 0 [12:58:21]OFD Sender: Remove packet 192565 [12:58:21]ProducePacketName [12:58:21]name=ofd_packets/00192565 [12:58:21]NVStorageDeleteData [12:58:21]Write to MH i2c: 01 00 00 6D 3E AB [12:58:21]Write i2c OK [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: 01 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: 01 07 00 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: 01 07 00 6D 3E 00 00 00 00 00 C4 0C 82 [12:58:21]RasterBufferAndPrint [12:58:21]line [12:58:21]line [12:58:21]line [12:58:21]line [12:58:21]line [12:58:21]written 0, free lines is 3279 [12:58:21]MH_Cut [12:58:21]Write to MH i2c: D1 01 00 74 3E 01 84 [12:58:21]Write i2c OK [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: D1 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: D1 01 00 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: D1 01 00 74 3E 00 83 [12:58:21]Write to MH i2c: 01 00 00 75 3E B3 [12:58:21]Write i2c OK [12:58:21]MH_I2C_Read... [12:58:22]OFD Sender: No OFD packet to send [12:58:22]*** Cut start [12:58:22]*** Partial cut [12:58:22]*** CUTSNS_PIN = 1 [12:58:22]*** CUTSNS_PIN = 0 [12:58:23]*** Brake cut motor [12:58:23]Read from MH i2c: 01 [12:58:23]MH_I2C_Read... [12:58:23]*** Stop cut motor [12:58:23]*** Cut end [12:58:23]Read from MH i2c: 01 07 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: 01 07 00 75 3E 00 00 00 00 00 FF 0F C8 [12:58:23]process_action close_receipt done [12:58:23]requested_data is exist [12:58:23]produce_requested_data [12:58:23]requested_item fm.sn is exist - process it [12:58:23]wFMCommunicate request_size=4 [12:58:23]MH_SAM_APDU [12:58:23]CAPDU: 80 11 00 00 [12:58:23]Write to MH i2c: E2 08 00 76 3E 80 11 00 00 00 00 00 00 2E [12:58:23]Write i2c OK [12:58:23]MH_I2C_Read... [12:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:23]Read from MH i2c: E2 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 17 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 17 00 76 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 81 [12:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:58:23]wFMCommunicate OK [12:58:23]requested_item fd.num is exist - process it [12:58:23]SAM_PROTO_GetFieldsCounters [12:58:23]wFMCommunicate request_size=4 [12:58:23]MH_SAM_APDU [12:58:23]CAPDU: 80 13 00 00 [12:58:23]Write to MH i2c: E2 08 00 77 3E 80 13 00 00 00 00 00 00 31 [12:58:23]Write i2c OK [12:58:23]MH_I2C_Read... [12:58:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:23]Read from MH i2c: E2 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 62 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 62 00 77 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 35 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [12:58:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 35 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:23]wFMCommunicate OK [12:58:23]SAM_PROTO_GetFieldsCounters done [12:58:23]requested_item shift.num is exist - process it [12:58:23]requested_item shift.opened is exist - process it [12:58:23]req_shift_opened [12:58:23]FM_GetShiftState [12:58:23]SAM_PROTO_GetShiftState [12:58:23]wFMCommunicate request_size=4 [12:58:23]MH_SAM_APDU [12:58:23]CAPDU: 80 13 01 00 [12:58:23]Write to MH i2c: E2 08 00 78 3E 80 13 01 00 00 00 00 00 33 [12:58:23]Write i2c OK [12:58:23]MH_I2C_Read... [12:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:23]Read from MH i2c: E2 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 0E 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 0E 00 78 3E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 83 [12:58:23]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:58:23]wFMCommunicate OK [12:58:23]SAM_PROTO_GetShiftState done [12:58:23]FM_GetShiftState done [12:58:23]req_shift_opened done [12:58:23]requested_item shift.open_date is exist - process it [12:58:23]req_shift_open_date [12:58:23]req_shift_open_date done [12:58:23]produce_requested_data done [12:58:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192565,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:58:23]process_action_free close_receipt [12:58:23]json_value_free [12:58:23]json_value_free done [12:58:23]process_json_proto returns [12:58:23]Send response to host [12:58:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192565,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:58:23]free response buf [12:58:23]execute_script done [12:58:23]execute_script returns [12:58:23]free content buf [12:58:23]Sock 9.Close socket [12:58:23]Sock 9.Thread stoped [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:18]accept exits with 10 [12:59:18]New connection [12:59:18]New thread 3066563940 created [12:59:18]Thread 3066707300 joined [12:59:18]Waiting for new connection... [12:59:18] Sock 10.Parse request [12:59:18]Sock 10.Check first char [12:59:18]Sock 10.First char is OK [12:59:18]request: POST /json_proto HTTP/1.0 [12:59:18]Method: POST [12:59:18]URL: /json_proto [12:59:18]Method is POST - this is cgi request [12:59:18]url: /json_proto [12:59:18]query_string will be loaded in cgi processing [12:59:18]execute_cgi json_proto POST (null) [12:59:18]execute_cgi path=json_proto method=POST [12:59:18]POST find Content-Length [12:59:18]Host: 172.17.63.131:8080 [12:59:18]Content-Length: 681 [12:59:18]Content-Type: application/json [12:59:18] [12:59:18]POST finish read [12:59:18]Found Content-Length = 681 [12:59:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:18]execute_script... [12:59:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:18]POST & json_proto [12:59:18]process_json_proto [12:59:18]json parsed OK: [12:59:18]protocol is kg_v1.0 [12:59:18]action value=close_receipt [12:59:18]process_action close_receipt [12:59:18]cmd_close_receipt [12:59:18]MH_GetDate [12:59:18]Write to MH i2c: F0 00 00 79 3E A6 [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: F0 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: F0 09 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: F0 09 00 79 3E 00 AC 8A 1F 67 22 05 6E 64 64 [12:59:18]GetLastDocTimeStamp 1730120305 [12:59:18]current date 1730120364 [12:59:18]FM_GetShiftState [12:59:18]SAM_PROTO_GetShiftState [12:59:18]wFMCommunicate request_size=4 [12:59:18]MH_SAM_APDU [12:59:18]CAPDU: 80 13 01 00 [12:59:18]Write to MH i2c: E2 08 00 7A 3E 80 13 01 00 00 00 00 00 35 [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:19]Read from MH i2c: E2 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 0E 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 0E 00 7A 3E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 85 [12:59:19]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:59:19]wFMCommunicate OK [12:59:19]SAM_PROTO_GetShiftState done [12:59:19]FM_GetShiftState done [12:59:19]opened in 1730075620 [12:59:19]opened+sec_in_day 1730162020 [12:59:19]quantity*price = 100015 [12:59:19]sum+1 = 100017 [12:59:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 114 28.10.2024 12:59 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192566 ФПД: 10487117738718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T125924&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192566&fm=10487117738718&tin=02508201610067®Number=0000000000091776&sum=100000 [12:59:20]StoreToDocumentArchive [12:59:20]shift 543 fd 192566 [12:59:20]save to /storage/0543/doc_00192566 [12:59:20]save last doc name /storage/0543/doc_00192566 to /storage/kkm_last_doc_name [12:59:20]save OK [12:59:20]Clear old archive folders... [12:59:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:20]tlvbuf is 01AFDD50 [12:59:20]SAM_PROTO_ClearQueue [12:59:20]wFMCommunicate request_size=4 [12:59:20]MH_SAM_APDU [12:59:20]CAPDU: 80 09 00 00 [12:59:20]Write to MH i2c: E2 08 00 87 3E 80 09 00 00 00 00 00 00 37 [12:59:20]Write i2c OK [12:59:20]MH_I2C_Read... [12:59:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:20]Read from MH i2c: E2 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 03 00 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 03 00 87 3E 00 90 00 39 [12:59:20]RAPDU: 90 00 [12:59:20]wFMCommunicate OK [12:59:20]SAM_PROTO_ClearQueue done [12:59:20]KKMCreateOFDPacket [12:59:20]OFDProtocolAddRootSTLVToBuf [12:59:20]FM_MakeSignedData [12:59:20]FM_MakeSignedData [12:59:20]SAM_PROTO_SignData [12:59:20]wFMCommunicate request_size=4 [12:59:20]MH_SAM_APDU [12:59:20]CAPDU: 80 0D 01 02 [12:59:20]Write to MH i2c: E2 08 00 88 3E 80 0D 01 02 00 00 00 00 3F [12:59:20]Write i2c OK [12:59:20]MH_I2C_Read... [12:59:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:20]Read from MH i2c: E2 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 03 00 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 03 00 88 3E 00 90 00 3A [12:59:20]RAPDU: 90 00 [12:59:20]wFMCommunicate OK [12:59:20]wFMCommunicate request_size=255 [12:59:20]MH_SAM_APDU [12:59: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 AC 8A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 F0 02 00 35 04 06 00 09 [12:59:20]Write to MH i2c: E2 02 01 89 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 AC 8A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 F0 02 00 35 04 06 00 09 00 00 4D [12:59:20]Write i2c OK [12:59:20]MH_I2C_Read... [12:59:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:20]Read from MH i2c: E2 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 03 00 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 03 00 89 3E 00 90 00 3B [12:59:20]RAPDU: 90 00 [12:59:20]wFMCommunicate OK [12:59:20]wFMCommunicate request_size=10 [12:59:20]MH_SAM_APDU [12:59:20]CAPDU: 80 0D 02 02 05 89 B8 ED 72 DE [12:59:20]Write to MH i2c: E2 0D 00 8A 3E 80 0D 02 02 05 00 89 B8 ED 72 DE 00 00 CA [12:59:20]Write i2c OK [12:59:20]MH_I2C_Read... [12:59:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:20]Read from MH i2c: E2 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 03 00 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 03 00 8A 3E 00 90 00 3C [12:59:20]RAPDU: 90 00 [12:59:20]wFMCommunicate OK [12:59:20]wFMCommunicate request_size=4 [12:59:20]MH_SAM_APDU [12:59:20]CAPDU: 80 0D 03 02 [12:59:20]Write to MH i2c: E2 08 00 8B 3E 80 0D 03 02 00 00 00 00 44 [12:59:20]Write i2c OK [12:59:20]MH_I2C_Read... [12:59:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:20]Read from MH i2c: E2 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 0B 00 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 0B 00 8B 3E 00 EB 38 DA 8C 98 E2 24 FC 90 00 68 [12:59:20]RAPDU: EB 38 DA 8C 98 E2 24 FC 90 00 [12:59:20]wFMCommunicate OK [12:59:20]SAM_PROTO_SignData done [12:59:20]FM_MakeSignedData done [12:59:20]CreateOFDProtocolMessage [12:59:20]wFMCommunicate request_size=4 [12:59:20]MH_SAM_APDU [12:59:20]CAPDU: 80 11 00 00 [12:59:20]Write to MH i2c: E2 08 00 8C 3E 80 11 00 00 00 00 00 00 44 [12:59:20]Write i2c OK [12:59:20]MH_I2C_Read... [12:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:20]Read from MH i2c: E2 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 17 00 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 17 00 8C 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [12:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:59:20]wFMCommunicate OK [12:59:20]CreateOFDProtocolMessage done [12:59:20]OFDSenderStorePacket 192566 [12:59:20]StoreOFDPacket docnum=192566 [12:59:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 CB 07 01 45 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 AC 8A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 F0 02 00 35 04 06 00 09 89 B8 ED 72 DE EB 38 DA 8C 98 E2 24 FC [12:59:20]CheckFolder [12:59:20]dirname=/storage/ofd_packets [12:59:20]CheckFolder done [12:59:20]ProducePacketName [12:59:20]name=ofd_packets/00192566 [12:59:20]NVStorageSaveData ofd_packets/00192566 [12:59:20]File name is /storage/ofd_packets/00192566 [12:59:20]Write 301 bytes [12:59:20]NVStorageSaveData done [12:59:20]OFDSenderStorePacket done [12:59:20]KKMCreateOFDPacket done [12:59:20]NVStorageSaveData kkm_last_timestamp [12:59:20]File name is /storage/kkm_last_timestamp [12:59:20]Write 4 bytes [12:59:20]NVStorageSaveData done [12:59:20]ExternCall_PrintAddStr [12:59:20]wPrintStart [12:59:20]Write to MH i2c: 01 00 00 8D 3E CB [12:59:20]Write i2c OK [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: 01 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: 01 07 00 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: 01 07 00 8D 3E 00 00 00 00 00 FF 0F E0 [12:59:20]RasterBufferAndPrint [12:59:20]line Счет N : (1)31886 [12:59:20]line ИНН: 02508201610067 [12:59:20]line Контрольно-Кассовый Чек [12:59:20]line ПРОДАЖА [12:59:20]line ТРК (МРК, ГНК) : 21 [12:59:20]line Товар: 2710124130 [12:59:20]line Аи-92-К-5 [12:59:20]line 14.950 * 66.90 [12:59:20]line = 1000.16 [12:59:20]line НДС 12% НСП 1% [12:59:20]line > о реализуемом товаре [12:59:20]line ОКРУГЛЕНИЕ: -0.16 [12:59:20]line ИТОГО: 1000.00 [12:59:20]line Внесено: 1000.00 [12:59:20]line СДАЧА: 0.00 [12:59:20]line НСП 1% : 8.85 [12:59:20]line НДС 12% : 106.21 [12:59:20]line Наличными: 1000.00 [12:59:20]line Безнал.: 0.00 [12:59:20]line Место: АЗС № 170 "Партнер Нефть" [12:59:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:59:20]line СНО: Общий режим [12:59:20]line Чек 114 28.10.2024 12:59 [12:59:20]line Смена: 543 ФФД: 1.0 [12:59:20]line ЗНМ: 0300000110 [12:59:20]line РНМ: 0000000000091776 [12:59:20]line Версия ККМ: 001 [12:59:20]line ФМ: 0000000000871754 [12:59:20]line ФД: 192566 [12:59:20]line ФПД: 10487117738718 [12:59:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T125924&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192566&fm=10487117738718&tin=02508201610067®Number=0000000000091776&sum=100000 [12:59:20]written 0, free lines is 4095 [12:59:20]OFD Sender: Processing packet 192566 [packets to send 75, broken 74] [12:59:20]ProducePacketName [12:59:20]name=ofd_packets/00192566 [12:59:20]OFD Sender: To server: pG, [12:59:20]CommunicateWithHost lk.salyk.kg:30040 [12:59:20]ConnectInit lk.salyk.kg [12:59:20]Connected sock=11 [12:59:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 CB 07 01 45 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 AC 8A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 F0 02 00 35 04 06 00 09 89 B8 ED 72 DE EB 38 DA 8C 98 E2 24 FC [12:59:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E9 C6 47 00 B2 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 F0 02 00 F4 03 04 00 70 2F 1F 67 B6 04 01 00 00 BB 19 D6 96 56 CE 38 79 [12:59:21]CommunicateWithHost err = 0 [12:59:21]CheckOFDResponse [12:59:21]1017 (14) - 77093643461234 [12:59:21]1041 (16) - 0000000000871754 [12:59:21]1040 (4) - 192566 [12:59:21]1012 (4) - 28.10.2024 06:30 [12:59:21]1206 (1) - 0 [12:59:21]OFD Sender: Remove packet 192566 [12:59:21]ProducePacketName [12:59:21]name=ofd_packets/00192566 [12:59:21]NVStorageDeleteData [12:59:21]Write to MH i2c: 01 00 00 B8 3E F6 [12:59:21]Write i2c OK [12:59:21]MH_I2C_Read... [12:59:21]Read from MH i2c: 01 [12:59:21]MH_I2C_Read... [12:59:21]Read from MH i2c: 01 07 00 [12:59:21]MH_I2C_Read... [12:59:21]Read from MH i2c: 01 07 00 B8 3E 00 00 00 00 00 CB 0C D4 [12:59:21]RasterBufferAndPrint [12:59:21]line [12:59:21]line [12:59:21]line [12:59:21]line [12:59:21]line [12:59:21]written 0, free lines is 3296 [12:59:21]MH_Cut [12:59:21]Write to MH i2c: D1 01 00 BF 3E 01 CF [12:59:21]Write i2c OK [12:59:21]MH_I2C_Read... [12:59:21]Read from MH i2c: D1 [12:59:21]MH_I2C_Read... [12:59:21]Read from MH i2c: D1 01 00 [12:59:21]MH_I2C_Read... [12:59:21]Read from MH i2c: D1 01 00 BF 3E 00 CE [12:59:21]Write to MH i2c: 01 00 00 C0 3E FE [12:59:21]Write i2c OK [12:59:21]MH_I2C_Read... [12:59:21]OFD Sender: No OFD packet to send [12:59:22]*** Cut start [12:59:22]*** Partial cut [12:59:22]*** CUTSNS_PIN = 1 [12:59:22]*** CUTSNS_PIN = 0 [12:59:22]*** Brake cut motor [12:59:22]Read from MH i2c: 01 [12:59:22]MH_I2C_Read... [12:59:22]*** Stop cut motor [12:59:22]*** Cut end [12:59:22]Read from MH i2c: 01 07 00 [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: 01 07 00 C0 3E 00 00 00 00 00 FF 0F 13 [12:59:22]process_action close_receipt done [12:59:22]requested_data is exist [12:59:22]produce_requested_data [12:59:22]requested_item fm.sn is exist - process it [12:59:22]wFMCommunicate request_size=4 [12:59:22]MH_SAM_APDU [12:59:22]CAPDU: 80 11 00 00 [12:59:22]Write to MH i2c: E2 08 00 C1 3E 80 11 00 00 00 00 00 00 79 [12:59:22]Write i2c OK [12:59:22]MH_I2C_Read... [12:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:22]Read from MH i2c: E2 [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: E2 17 00 [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: E2 17 00 C1 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CC [12:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:59:22]wFMCommunicate OK [12:59:22]requested_item fd.num is exist - process it [12:59:22]SAM_PROTO_GetFieldsCounters [12:59:22]wFMCommunicate request_size=4 [12:59:22]MH_SAM_APDU [12:59:22]CAPDU: 80 13 00 00 [12:59:22]Write to MH i2c: E2 08 00 C2 3E 80 13 00 00 00 00 00 00 7C [12:59:22]Write i2c OK [12:59:22]MH_I2C_Read... [12:59:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:22]Read from MH i2c: E2 [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: E2 62 00 [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: E2 62 00 C2 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 36 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [12:59:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 36 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:23]wFMCommunicate OK [12:59:23]SAM_PROTO_GetFieldsCounters done [12:59:23]requested_item shift.num is exist - process it [12:59:23]requested_item shift.opened is exist - process it [12:59:23]req_shift_opened [12:59:23]FM_GetShiftState [12:59:23]SAM_PROTO_GetShiftState [12:59:23]wFMCommunicate request_size=4 [12:59:23]MH_SAM_APDU [12:59:23]CAPDU: 80 13 01 00 [12:59:23]Write to MH i2c: E2 08 00 C3 3E 80 13 01 00 00 00 00 00 7E [12:59:23]Write i2c OK [12:59:23]MH_I2C_Read... [12:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:23]Read from MH i2c: E2 [12:59:23]MH_I2C_Read... [12:59:23]Read from MH i2c: E2 0E 00 [12:59:23]MH_I2C_Read... [12:59:23]Read from MH i2c: E2 0E 00 C3 3E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CE [12:59:23]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:59:23]wFMCommunicate OK [12:59:23]SAM_PROTO_GetShiftState done [12:59:23]FM_GetShiftState done [12:59:23]req_shift_opened done [12:59:23]requested_item shift.open_date is exist - process it [12:59:23]req_shift_open_date [12:59:23]req_shift_open_date done [12:59:23]produce_requested_data done [12:59:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192566,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:59:23]process_action_free close_receipt [12:59:23]json_value_free [12:59:23]json_value_free done [12:59:23]process_json_proto returns [12:59:23]Send response to host [12:59:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192566,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:59:23]free response buf [12:59:23]execute_script done [12:59:23]execute_script returns [12:59:23]free content buf [12:59:23]Sock 10.Close socket [12:59:23]Sock 10.Thread stoped [12:59:23]accept exits with 9 [12:59:23]New connection [12:59:23]New thread 3066707300 created [12:59:23]Thread 3066563940 joined [12:59:23]Waiting for new connection... [12:59:23] Sock 9.Parse request [12:59:23]Sock 9.Check first char [12:59:23]Sock 9.First char is OK [12:59:23]request: POST /json_proto HTTP/1.0 [12:59:23]Method: POST [12:59:23]URL: /json_proto [12:59:23]Method is POST - this is cgi request [12:59:23]url: /json_proto [12:59:23]query_string will be loaded in cgi processing [12:59:23]execute_cgi json_proto POST (null) [12:59:23]execute_cgi path=json_proto method=POST [12:59:23]POST find Content-Length [12:59:23]Host: 172.17.63.131:8080 [12:59:23]Content-Length: 862 [12:59:23]Content-Type: application/json [12:59:23] [12:59:23]POST finish read [12:59:23]Found Content-Length = 862 [12:59:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 270.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:23]execute_script... [12:59: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)31887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 270.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:23]POST & json_proto [12:59:23]process_json_proto [12:59:23]json parsed OK: [12:59:23]protocol is kg_v1.0 [12:59:23]action value=close_receipt [12:59:23]process_action close_receipt [12:59:23]cmd_close_receipt [12:59:23]MH_GetDate [12:59:23]Write to MH i2c: F0 00 00 C4 3E F1 [12:59:23]Write i2c OK [12:59:23]MH_I2C_Read... [12:59:23]Read from MH i2c: F0 [12:59:23]MH_I2C_Read... [12:59:23]Read from MH i2c: F0 09 00 [12:59:23]MH_I2C_Read... [12:59:23]Read from MH i2c: F0 09 00 C4 3E 00 B0 8A 1F 67 22 05 6E 64 B3 [12:59:23]GetLastDocTimeStamp 1730120364 [12:59:23]current date 1730120368 [12:59:23]FM_GetShiftState [12:59:23]SAM_PROTO_GetShiftState [12:59:23]wFMCommunicate request_size=4 [12:59:23]MH_SAM_APDU [12:59:23]CAPDU: 80 13 01 00 [12:59:23]Write to MH i2c: E2 08 00 C5 3E 80 13 01 00 00 00 00 00 80 [12:59:23]Write i2c OK [12:59:23]MH_I2C_Read... [12:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:23]Read from MH i2c: E2 [12:59:23]MH_I2C_Read... [12:59:23]Read from MH i2c: E2 0E 00 [12:59:23]MH_I2C_Read... [12:59:23]Read from MH i2c: E2 0E 00 C5 3E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D0 [12:59:23]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:59:23]wFMCommunicate OK [12:59:23]SAM_PROTO_GetShiftState done [12:59:23]FM_GetShiftState done [12:59:23]opened in 1730075620 [12:59:23]opened+sec_in_day 1730162020 [12:59:23]quantity*price = 27027 [12:59:23]sum+1 = 27029 [12:59:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 270.28 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 0.00 Безнал.: 270.28 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 115 28.10.2024 12:59 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192567 ФПД: 186825271445149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T125928&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192567&fm=186825271445149&tin=02508201610067®Number=0000000000091776&sum=27028 [12:59:24]StoreToDocumentArchive [12:59:24]shift 543 fd 192567 [12:59:24]save to /storage/0543/doc_00192567 [12:59:24]save last doc name /storage/0543/doc_00192567 to /storage/kkm_last_doc_name [12:59:24]save OK [12:59:24]Clear old archive folders... [12:59:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:24]tlvbuf is 01B2B4A0 [12:59:24]SAM_PROTO_ClearQueue [12:59:24]wFMCommunicate request_size=4 [12:59:24]MH_SAM_APDU [12:59:24]CAPDU: 80 09 00 00 [12:59:24]Write to MH i2c: E2 08 00 D2 3E 80 09 00 00 00 00 00 00 82 [12:59:25]Write i2c OK [12:59:25]MH_I2C_Read... [12:59:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:25]Read from MH i2c: E2 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 03 00 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 03 00 D2 3E 00 90 00 84 [12:59:25]RAPDU: 90 00 [12:59:25]wFMCommunicate OK [12:59:25]SAM_PROTO_ClearQueue done [12:59:25]KKMCreateOFDPacket [12:59:25]OFDProtocolAddRootSTLVToBuf [12:59:25]FM_MakeSignedData [12:59:25]FM_MakeSignedData [12:59:25]SAM_PROTO_SignData [12:59:25]wFMCommunicate request_size=4 [12:59:25]MH_SAM_APDU [12:59:25]CAPDU: 80 0D 01 02 [12:59:25]Write to MH i2c: E2 08 00 D3 3E 80 0D 01 02 00 00 00 00 8A [12:59:25]Write i2c OK [12:59:25]MH_I2C_Read... [12:59:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:25]Read from MH i2c: E2 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 03 00 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 03 00 D3 3E 00 90 00 85 [12:59:25]RAPDU: 90 00 [12:59:25]wFMCommunicate OK [12:59:25]wFMCommunicate request_size=255 [12:59:25]MH_SAM_APDU [12:59:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 B0 8A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 F0 02 00 35 04 06 00 A9 [12:59:25]Write to MH i2c: E2 02 01 D4 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 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 B0 8A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 F0 02 00 35 04 06 00 A9 00 00 F9 [12:59:25]Write i2c OK [12:59:25]MH_I2C_Read... [12:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:25]Read from MH i2c: E2 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 03 00 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 03 00 D4 3E 00 90 00 86 [12:59:25]RAPDU: 90 00 [12:59:25]wFMCommunicate OK [12:59:25]wFMCommunicate request_size=10 [12:59:25]MH_SAM_APDU [12:59:25]CAPDU: 80 0D 02 02 05 EA A5 F0 86 9D [12:59:25]Write to MH i2c: E2 0D 00 D5 3E 80 0D 02 02 05 00 EA A5 F0 86 9D 00 00 39 [12:59:25]Write i2c OK [12:59:25]MH_I2C_Read... [12:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:25]Read from MH i2c: E2 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 03 00 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 03 00 D5 3E 00 90 00 87 [12:59:25]RAPDU: 90 00 [12:59:25]wFMCommunicate OK [12:59:25]wFMCommunicate request_size=4 [12:59:25]MH_SAM_APDU [12:59:25]CAPDU: 80 0D 03 02 [12:59:25]Write to MH i2c: E2 08 00 D6 3E 80 0D 03 02 00 00 00 00 8F [12:59:25]Write i2c OK [12:59:25]MH_I2C_Read... [12:59:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:25]Read from MH i2c: E2 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 0B 00 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 0B 00 D6 3E 00 BA 84 98 BA C5 FB DB 12 90 00 CD [12:59:25]RAPDU: BA 84 98 BA C5 FB DB 12 90 00 [12:59:25]wFMCommunicate OK [12:59:25]SAM_PROTO_SignData done [12:59:25]FM_MakeSignedData done [12:59:25]CreateOFDProtocolMessage [12:59:25]wFMCommunicate request_size=4 [12:59:25]MH_SAM_APDU [12:59:25]CAPDU: 80 11 00 00 [12:59:25]Write to MH i2c: E2 08 00 D7 3E 80 11 00 00 00 00 00 00 8F [12:59:25]Write i2c OK [12:59:25]MH_I2C_Read... [12:59:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:25]Read from MH i2c: E2 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 17 00 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: E2 17 00 D7 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E2 [12:59:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:59:25]wFMCommunicate OK [12:59:25]CreateOFDProtocolMessage done [12:59:25]OFDSenderStorePacket 192567 [12:59:25]StoreOFDPacket docnum=192567 [12:59:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 44 2C 07 01 21 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 B0 8A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 F0 02 00 35 04 06 00 A9 EA A5 F0 86 9D BA 84 98 BA C5 FB DB 12 [12:59:25]CheckFolder [12:59:25]dirname=/storage/ofd_packets [12:59:25]CheckFolder done [12:59:25]ProducePacketName [12:59:25]name=ofd_packets/00192567 [12:59:25]NVStorageSaveData ofd_packets/00192567 [12:59:25]File name is /storage/ofd_packets/00192567 [12:59:25]Write 301 bytes [12:59:25]NVStorageSaveData done [12:59:25]OFDSenderStorePacket done [12:59:25]KKMCreateOFDPacket done [12:59:25]NVStorageSaveData kkm_last_timestamp [12:59:25]File name is /storage/kkm_last_timestamp [12:59:25]Write 4 bytes [12:59:25]NVStorageSaveData done [12:59:25]ExternCall_PrintAddStr [12:59:25]wPrintStart [12:59:25]Write to MH i2c: 01 00 00 D8 3E 16 [12:59:25]Write i2c OK [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: 01 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: 01 07 00 [12:59:25]MH_I2C_Read... [12:59:25]Read from MH i2c: 01 07 00 D8 3E 00 00 00 00 00 FF 0F 2B [12:59:25]RasterBufferAndPrint [12:59:25]line Счет N : (1)31887 [12:59:25]line ИНН: 02508201610067 [12:59:25]line Контрольно-Кассовый Чек [12:59:25]line ПРОДАЖА [12:59:25]line ТРК (МРК, ГНК) : 12 [12:59:25]line Товар: 2710124130 [12:59:25]line Аи-92-К-5 [12:59:25]line 4.040 * 66.90 [12:59:25]line = 270.28 [12:59:25]line НДС 12% НСП 1% [12:59:25]line > о реализуемом товаре [12:59:25]line ИТОГО: 270.28 [12:59:25]line НСП 1% : 2.39 [12:59:25]line НДС 12% : 28.70 [12:59:25]line Наличными: 0.00 [12:59:25]line Безнал.: 270.28 [12:59:25]line Место: АЗС № 170 "Партнер Нефть" [12:59:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:59:25]line СНО: Общий режим [12:59:25]line Чек 115 28.10.2024 12:59 [12:59:25]line Смена: 543 ФФД: 1.0 [12:59:25]line ЗНМ: 0300000110 [12:59:25]line РНМ: 0000000000091776 [12:59:25]line Версия ККМ: 001 [12:59:25]line Платежная система: Кыргызкоммерцбанк [12:59:25]line ФМ: 0000000000871754 [12:59:25]line ФД: 192567 [12:59:25]line ФПД: 186825271445149 [12:59:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T125928&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192567&fm=186825271445149&tin=02508201610067®Number=0000000000091776&sum=27028 [12:59:25]OFD Sender: Processing packet 192567 [packets to send 75, broken 74] [12:59:25]ProducePacketName [12:59:25]name=ofd_packets/00192567 [12:59:25]OFD Sender: To server: pG, [12:59:25]CommunicateWithHost lk.salyk.kg:30040 [12:59:25]ConnectInit lk.salyk.kg [12:59:25]written 0, free lines is 4095 [12:59:26]Connected sock=11 [12:59:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 44 2C 07 01 21 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 B0 8A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 F0 02 00 35 04 06 00 A9 EA A5 F0 86 9D BA 84 98 BA C5 FB DB 12 [12:59:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DF C5 47 00 50 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 F0 02 00 F4 03 04 00 75 2F 1F 67 B6 04 01 00 00 E9 53 74 96 3E 1A F7 05 [12:59:26]CommunicateWithHost err = 0 [12:59:26]CheckOFDResponse [12:59:26]1017 (14) - 77093643461234 [12:59:26]1041 (16) - 0000000000871754 [12:59:26]1040 (4) - 192567 [12:59:26]1012 (4) - 28.10.2024 06:30 [12:59:26]1206 (1) - 0 [12:59:26]OFD Sender: Remove packet 192567 [12:59:26]ProducePacketName [12:59:26]name=ofd_packets/00192567 [12:59:26]NVStorageDeleteData [12:59:26]Write to MH i2c: 01 00 00 02 3F 41 [12:59:26]Write i2c OK [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: 01 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: 01 07 00 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: 01 07 00 02 3F 00 00 00 00 00 A9 0D FE [12:59:26]RasterBufferAndPrint [12:59:26]line [12:59:26]line [12:59:26]line [12:59:26]line [12:59:26]line [12:59:26]written 0, free lines is 3520 [12:59:26]MH_Cut [12:59:26]Write to MH i2c: D1 01 00 09 3F 01 1A [12:59:26]Write i2c OK [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: D1 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: D1 01 00 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: D1 01 00 09 3F 00 19 [12:59:26]Write to MH i2c: 01 00 00 0A 3F 49 [12:59:26]Write i2c OK [12:59:26]MH_I2C_Read... [12:59:26]ConnectInit Can't connect to host [12:59:27]OFD Sender: No OFD packet to send [12:59:27]*** Cut start [12:59:27]*** Partial cut [12:59:27]*** CUTSNS_PIN = 1 [12:59:27]*** CUTSNS_PIN = 0 [12:59:27]*** Brake cut motor [12:59:27]Read from MH i2c: 01 [12:59:27]MH_I2C_Read... [12:59:27]*** Stop cut motor [12:59:27]*** Cut end [12:59:27]Read from MH i2c: 01 07 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: 01 07 00 0A 3F 00 00 00 00 00 FF 0F 5E [12:59:27]process_action close_receipt done [12:59:27]requested_data is exist [12:59:27]produce_requested_data [12:59:27]requested_item fm.sn is exist - process it [12:59:27]wFMCommunicate request_size=4 [12:59:27]MH_SAM_APDU [12:59:27]CAPDU: 80 11 00 00 [12:59:27]Write to MH i2c: E2 08 00 0B 3F 80 11 00 00 00 00 00 00 C4 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:27]Read from MH i2c: E2 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 17 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 17 00 0B 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 17 [12:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:59:27]wFMCommunicate OK [12:59:27]requested_item fd.num is exist - process it [12:59:27]SAM_PROTO_GetFieldsCounters [12:59:27]wFMCommunicate request_size=4 [12:59:27]MH_SAM_APDU [12:59:27]CAPDU: 80 13 00 00 [12:59:27]Write to MH i2c: E2 08 00 0C 3F 80 13 00 00 00 00 00 00 C7 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:28]Read from MH i2c: E2 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 62 00 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 62 00 0C 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 37 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [12:59:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 37 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:28]wFMCommunicate OK [12:59:28]SAM_PROTO_GetFieldsCounters done [12:59:28]requested_item shift.num is exist - process it [12:59:28]requested_item shift.opened is exist - process it [12:59:28]req_shift_opened [12:59:28]FM_GetShiftState [12:59:28]SAM_PROTO_GetShiftState [12:59:28]wFMCommunicate request_size=4 [12:59:28]MH_SAM_APDU [12:59:28]CAPDU: 80 13 01 00 [12:59:28]Write to MH i2c: E2 08 00 0D 3F 80 13 01 00 00 00 00 00 C9 [12:59:28]Write i2c OK [12:59:28]MH_I2C_Read... [12:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:28]Read from MH i2c: E2 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 0E 00 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 0E 00 0D 3F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 19 [12:59:28]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [12:59:28]wFMCommunicate OK [12:59:28]SAM_PROTO_GetShiftState done [12:59:28]FM_GetShiftState done [12:59:28]req_shift_opened done [12:59:28]requested_item shift.open_date is exist - process it [12:59:28]req_shift_open_date [12:59:28]req_shift_open_date done [12:59:28]produce_requested_data done [12:59:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192567,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [12:59:28]process_action_free close_receipt [12:59:28]json_value_free [12:59:28]json_value_free done [12:59:28]process_json_proto returns [12:59:28]Send response to host [12:59:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192567,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [12:59:28]free response buf [12:59:28]execute_script done [12:59:28]execute_script returns [12:59:28]free content buf [12:59:28]Sock 9.Close socket [12:59:28]Sock 9.Thread stoped [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:50]accept exits with 10 [13:01:50]New connection [13:01:50]New thread 3066563940 created [13:01:50]Thread 3066707300 joined [13:01:50]Waiting for new connection... [13:01:50] Sock 10.Parse request [13:01:50]Sock 10.Check first char [13:01:50]Sock 10.First char is OK [13:01:50]request: POST /json_proto HTTP/1.0 [13:01:50]Method: POST [13:01:50]URL: /json_proto [13:01:50]Method is POST - this is cgi request [13:01:50]url: /json_proto [13:01:50]query_string will be loaded in cgi processing [13:01:50]execute_cgi json_proto POST (null) [13:01:50]execute_cgi path=json_proto method=POST [13:01:50]POST find Content-Length [13:01:50]Host: 172.17.63.131:8080 [13:01:50]Content-Length: 681 [13:01:50]Content-Type: application/json [13:01:50] [13:01:50]POST finish read [13:01:50]Found Content-Length = 681 [13:01:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 18.540, "sum" : 1240.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1240.00, "total" : 1240.00, "payments": [ { "type": 0, "sum" : 1240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:50]execute_script... [13:01:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 18.540, "sum" : 1240.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1240.00, "total" : 1240.00, "payments": [ { "type": 0, "sum" : 1240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:50]POST & json_proto [13:01:50]process_json_proto [13:01:50]json parsed OK: [13:01:50]protocol is kg_v1.0 [13:01:50]action value=close_receipt [13:01:50]process_action close_receipt [13:01:50]cmd_close_receipt [13:01:50]MH_GetDate [13:01:50]Write to MH i2c: F0 00 00 0E 3F 3C [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: F0 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: F0 09 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: F0 09 00 0E 3F 00 43 8B 1F 67 22 05 6E 64 92 [13:01:50]GetLastDocTimeStamp 1730120368 [13:01:50]current date 1730120515 [13:01:50]FM_GetShiftState [13:01:50]SAM_PROTO_GetShiftState [13:01:50]wFMCommunicate request_size=4 [13:01:50]MH_SAM_APDU [13:01:50]CAPDU: 80 13 01 00 [13:01:50]Write to MH i2c: E2 08 00 0F 3F 80 13 01 00 00 00 00 00 CB [13:01:50]Write i2c OK [13:01:50]MH_I2C_Read... [13:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:50]Read from MH i2c: E2 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 0E 00 [13:01:50]MH_I2C_Read... [13:01:50]Read from MH i2c: E2 0E 00 0F 3F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1B [13:01:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:01:50]wFMCommunicate OK [13:01:50]SAM_PROTO_GetShiftState done [13:01:50]FM_GetShiftState done [13:01:50]opened in 1730075620 [13:01:50]opened+sec_in_day 1730162020 [13:01:50]quantity*price = 124032 [13:01:50]sum+1 = 124034 [13:01:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1240.00 Внесено: 1240.00 СДАЧА: 0.00 НСП 1% : 10.98 НДС 12% : 131.72 Наличными: 1240.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 116 28.10.2024 13:01 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192568 ФПД: 55555964004709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130155&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192568&fm=55555964004709&tin=02508201610067®Number=0000000000091776&sum=124000 [13:01:51]StoreToDocumentArchive [13:01:51]shift 543 fd 192568 [13:01:51]save to /storage/0543/doc_00192568 [13:01:51]save last doc name /storage/0543/doc_00192568 to /storage/kkm_last_doc_name [13:01:51]save OK [13:01:51]Clear old archive folders... [13:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:51]tlvbuf is 01AAD560 [13:01:51]SAM_PROTO_ClearQueue [13:01:51]wFMCommunicate request_size=4 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 09 00 00 [13:01:51]Write to MH i2c: E2 08 00 1C 3F 80 09 00 00 00 00 00 00 CD [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 1C 3F 00 90 00 CF [13:01:51]RAPDU: 90 00 [13:01:51]wFMCommunicate OK [13:01:51]SAM_PROTO_ClearQueue done [13:01:51]KKMCreateOFDPacket [13:01:51]OFDProtocolAddRootSTLVToBuf [13:01:51]FM_MakeSignedData [13:01:51]FM_MakeSignedData [13:01:51]SAM_PROTO_SignData [13:01:51]wFMCommunicate request_size=4 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 0D 01 02 [13:01:51]Write to MH i2c: E2 08 00 1D 3F 80 0D 01 02 00 00 00 00 D5 [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 1D 3F 00 90 00 D0 [13:01:51]RAPDU: 90 00 [13:01:51]wFMCommunicate OK [13:01:51]wFMCommunicate request_size=255 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 48 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 81 E4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 33 00 00 00 00 07 04 06 00 60 E4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 43 8B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 F0 02 00 35 04 06 00 32 [13:01:51]Write to MH i2c: E2 02 01 1E 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 6C 48 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 81 E4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 33 00 00 00 00 07 04 06 00 60 E4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 43 8B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 F0 02 00 35 04 06 00 32 00 00 FE [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 1E 3F 00 90 00 D1 [13:01:51]RAPDU: 90 00 [13:01:51]wFMCommunicate OK [13:01:51]wFMCommunicate request_size=10 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 0D 02 02 05 87 21 7F E9 65 [13:01:51]Write to MH i2c: E2 0D 00 1F 3F 80 0D 02 02 05 00 87 21 7F E9 65 00 00 57 [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 03 00 1F 3F 00 90 00 D2 [13:01:51]RAPDU: 90 00 [13:01:51]wFMCommunicate OK [13:01:51]wFMCommunicate request_size=4 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 0D 03 02 [13:01:51]Write to MH i2c: E2 08 00 20 3F 80 0D 03 02 00 00 00 00 DA [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 0B 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 0B 00 20 3F 00 F2 89 AF 72 5B 49 FE CE 90 00 E7 [13:01:51]RAPDU: F2 89 AF 72 5B 49 FE CE 90 00 [13:01:51]wFMCommunicate OK [13:01:51]SAM_PROTO_SignData done [13:01:51]FM_MakeSignedData done [13:01:51]CreateOFDProtocolMessage [13:01:51]wFMCommunicate request_size=4 [13:01:51]MH_SAM_APDU [13:01:51]CAPDU: 80 11 00 00 [13:01:51]Write to MH i2c: E2 08 00 21 3F 80 11 00 00 00 00 00 00 DA [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:51]Read from MH i2c: E2 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 17 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: E2 17 00 21 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2D [13:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:01:51]wFMCommunicate OK [13:01:51]CreateOFDProtocolMessage done [13:01:51]OFDSenderStorePacket 192568 [13:01:51]StoreOFDPacket docnum=192568 [13:01:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8B 3E 07 01 B6 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 6C 48 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 81 E4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 33 00 00 00 00 07 04 06 00 60 E4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 43 8B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 F0 02 00 35 04 06 00 32 87 21 7F E9 65 F2 89 AF 72 5B 49 FE CE [13:01:51]CheckFolder [13:01:51]dirname=/storage/ofd_packets [13:01:51]CheckFolder done [13:01:51]ProducePacketName [13:01:51]name=ofd_packets/00192568 [13:01:51]NVStorageSaveData ofd_packets/00192568 [13:01:51]File name is /storage/ofd_packets/00192568 [13:01:51]Write 301 bytes [13:01:51]NVStorageSaveData done [13:01:51]OFDSenderStorePacket done [13:01:51]KKMCreateOFDPacket done [13:01:51]NVStorageSaveData kkm_last_timestamp [13:01:51]File name is /storage/kkm_last_timestamp [13:01:51]Write 4 bytes [13:01:51]NVStorageSaveData done [13:01:51]OFD Sender: Processing packet 192568 [packets to send 75, broken 74] [13:01:51]ProducePacketName [13:01:51]name=ofd_packets/00192568 [13:01:51]OFD Sender: To server: pG, [13:01:51]CommunicateWithHost lk.salyk.kg:30040 [13:01:51]ConnectInit lk.salyk.kg [13:01:51]ExternCall_PrintAddStr [13:01:51]wPrintStart [13:01:51]Write to MH i2c: 01 00 00 22 3F 61 [13:01:51]Write i2c OK [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: 01 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: 01 07 00 [13:01:51]MH_I2C_Read... [13:01:51]Read from MH i2c: 01 07 00 22 3F 00 00 00 00 00 FF 0F 76 [13:01:51]RasterBufferAndPrint [13:01:51]line Счет N : (1)31888 [13:01:51]line ИНН: 02508201610067 [13:01:51]line Контрольно-Кассовый Чек [13:01:51]line ПРОДАЖА [13:01:51]line ТРК (МРК, ГНК) : 21 [13:01:51]line Товар: 2710124130 [13:01:51]line Аи-92-К-5 [13:01:51]line 18.540 * 66.90 [13:01:51]line = 1240.33 [13:01:51]line НДС 12% НСП 1% [13:01:51]line > о реализуемом товаре [13:01:51]line ОКРУГЛЕНИЕ: -0.33 [13:01:51]line ИТОГО: 1240.00 [13:01:51]line Внесено: 1240.00 [13:01:51]line СДАЧА: 0.00 [13:01:51]line НСП 1% : 10.98 [13:01:51]line НДС 12% : 131.72 [13:01:51]line Наличными: 1240.00 [13:01:51]line Безнал.: 0.00 [13:01:51]line Место: АЗС № 170 "Партнер Нефть" [13:01:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:01:51]line СНО: Общий режим [13:01:51]line Чек 116 28.10.2024 13:01 [13:01:51]line Смена: 543 ФФД: 1.0 [13:01:51]line ЗНМ: 0300000110 [13:01:51]line РНМ: 0000000000091776 [13:01:51]line Версия ККМ: 001 [13:01:51]line ФМ: 0000000000871754 [13:01:51]line ФД: 192568 [13:01:52]line ФПД: 55555964004709 [13:01:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130155&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192568&fm=55555964004709&tin=02508201610067®Number=0000000000091776&sum=124000 [13:01:52]Connected sock=11 [13:01:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8B 3E 07 01 B6 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 6C 48 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 81 E4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 33 00 00 00 00 07 04 06 00 60 E4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 43 8B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 F0 02 00 35 04 06 00 32 87 21 7F E9 65 F2 89 AF 72 5B 49 FE CE [13:01:52]written 0, free lines is 4095 [13:01:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 25 35 47 00 36 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 F0 02 00 F4 03 04 00 07 30 1F 67 B6 04 01 00 00 0D 43 51 04 A9 FC A9 03 [13:01:52]CommunicateWithHost err = 0 [13:01:52]CheckOFDResponse [13:01:52]1017 (14) - 77093643461234 [13:01:52]1041 (16) - 0000000000871754 [13:01:52]1040 (4) - 192568 [13:01:52]1012 (4) - 28.10.2024 06:32 [13:01:52]1206 (1) - 0 [13:01:52]OFD Sender: Remove packet 192568 [13:01:52]ProducePacketName [13:01:52]name=ofd_packets/00192568 [13:01:52]NVStorageDeleteData [13:01:52]Write to MH i2c: 01 00 00 4D 3F 8C [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 07 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: 01 07 00 4D 3F 00 00 00 00 00 C0 0C 5F [13:01:52]RasterBufferAndPrint [13:01:52]line [13:01:52]line [13:01:52]line [13:01:52]line [13:01:52]line [13:01:52]written 0, free lines is 3270 [13:01:52]MH_Cut [13:01:52]Write to MH i2c: D1 01 00 54 3F 01 65 [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: D1 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: D1 01 00 [13:01:52]MH_I2C_Read... [13:01:52]Read from MH i2c: D1 01 00 54 3F 00 64 [13:01:52]Write to MH i2c: 01 00 00 55 3F 94 [13:01:52]Write i2c OK [13:01:52]MH_I2C_Read... [13:01:52]OFD Sender: No OFD packet to send [13:01:53]*** Cut start [13:01:53]*** Partial cut [13:01:53]*** CUTSNS_PIN = 1 [13:01:53]*** CUTSNS_PIN = 0 [13:01:53]*** Brake cut motor [13:01:54]Read from MH i2c: 01 [13:01:54]MH_I2C_Read... [13:01:54]*** Stop cut motor [13:01:54]*** Cut end [13:01:54]Read from MH i2c: 01 07 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: 01 07 00 55 3F 00 00 00 00 00 FF 0F A9 [13:01:54]process_action close_receipt done [13:01:54]requested_data is exist [13:01:54]produce_requested_data [13:01:54]requested_item fm.sn is exist - process it [13:01:54]wFMCommunicate request_size=4 [13:01:54]MH_SAM_APDU [13:01:54]CAPDU: 80 11 00 00 [13:01:54]Write to MH i2c: E2 08 00 56 3F 80 11 00 00 00 00 00 00 0F [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:54]Read from MH i2c: E2 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 17 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 17 00 56 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 62 [13:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:01:54]wFMCommunicate OK [13:01:54]requested_item fd.num is exist - process it [13:01:54]SAM_PROTO_GetFieldsCounters [13:01:54]wFMCommunicate request_size=4 [13:01:54]MH_SAM_APDU [13:01:54]CAPDU: 80 13 00 00 [13:01:54]Write to MH i2c: E2 08 00 57 3F 80 13 00 00 00 00 00 00 12 [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:54]Read from MH i2c: E2 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 62 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 62 00 57 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 38 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [13:01:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 38 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:54]wFMCommunicate OK [13:01:54]SAM_PROTO_GetFieldsCounters done [13:01:54]requested_item shift.num is exist - process it [13:01:54]requested_item shift.opened is exist - process it [13:01:54]req_shift_opened [13:01:54]FM_GetShiftState [13:01:54]SAM_PROTO_GetShiftState [13:01:54]wFMCommunicate request_size=4 [13:01:54]MH_SAM_APDU [13:01:54]CAPDU: 80 13 01 00 [13:01:54]Write to MH i2c: E2 08 00 58 3F 80 13 01 00 00 00 00 00 14 [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:54]Read from MH i2c: E2 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 0E 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 0E 00 58 3F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 64 [13:01:54]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:01:54]wFMCommunicate OK [13:01:54]SAM_PROTO_GetShiftState done [13:01:54]FM_GetShiftState done [13:01:54]req_shift_opened done [13:01:54]requested_item shift.open_date is exist - process it [13:01:54]req_shift_open_date [13:01:54]req_shift_open_date done [13:01:54]produce_requested_data done [13:01:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192568,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:01:54]process_action_free close_receipt [13:01:54]json_value_free [13:01:54]json_value_free done [13:01:54]process_json_proto returns [13:01:54]Send response to host [13:01:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192568,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:01:54]free response buf [13:01:54]execute_script done [13:01:54]execute_script returns [13:01:54]free content buf [13:01:54]Sock 10.Close socket [13:01:54]Sock 10.Thread stoped [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:43]accept exits with 7 [13:02:43]New connection [13:02:43]New thread 3066707300 created [13:02:43]Thread 3066563940 joined [13:02:43]Waiting for new connection... [13:02:43] Sock 7.Parse request [13:02:43]Sock 7.Check first char [13:02:43]Sock 7.First char is OK [13:02:43]request: POST /json_proto HTTP/1.0 [13:02:43]Method: POST [13:02:43]URL: /json_proto [13:02:43]Method is POST - this is cgi request [13:02:43]url: /json_proto [13:02:43]query_string will be loaded in cgi processing [13:02:43]execute_cgi json_proto POST (null) [13:02:43]execute_cgi path=json_proto method=POST [13:02:43]POST find Content-Length [13:02:43]Host: 172.17.63.131:8080 [13:02:43]Content-Length: 673 [13:02:43]Content-Type: application/json [13:02:43] [13:02:43]POST finish read [13:02:43]Found Content-Length = 673 [13:02:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:43]execute_script... [13:02: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)31889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:43]POST & json_proto [13:02:43]process_json_proto [13:02:43]json parsed OK: [13:02:43]protocol is kg_v1.0 [13:02:43]action value=close_receipt [13:02:43]process_action close_receipt [13:02:43]cmd_close_receipt [13:02:43]MH_GetDate [13:02:43]Write to MH i2c: F0 00 00 59 3F 87 [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: F0 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: F0 09 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: F0 09 00 59 3F 00 78 8B 1F 67 22 05 6E 64 12 [13:02:43]GetLastDocTimeStamp 1730120515 [13:02:43]current date 1730120568 [13:02:43]FM_GetShiftState [13:02:43]SAM_PROTO_GetShiftState [13:02:43]wFMCommunicate request_size=4 [13:02:43]MH_SAM_APDU [13:02:43]CAPDU: 80 13 01 00 [13:02:43]Write to MH i2c: E2 08 00 5A 3F 80 13 01 00 00 00 00 00 16 [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:43]Read from MH i2c: E2 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 0E 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 0E 00 5A 3F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 66 [13:02:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:02:43]wFMCommunicate OK [13:02:43]SAM_PROTO_GetShiftState done [13:02:43]FM_GetShiftState done [13:02:43]opened in 1730075620 [13:02:43]opened+sec_in_day 1730162020 [13:02:43]quantity*price = 50063 [13:02:43]sum+1 = 50064 [13:02:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 117 28.10.2024 13:02 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192569 ФПД: 54728571821423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130248&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192569&fm=54728571821423&tin=02508201610067®Number=0000000000091776&sum=50000 [13:02:44]StoreToDocumentArchive [13:02:44]shift 543 fd 192569 [13:02:44]save to /storage/0543/doc_00192569 [13:02:44]save last doc name /storage/0543/doc_00192569 to /storage/kkm_last_doc_name [13:02:44]save OK [13:02:44]Clear old archive folders... [13:02:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:02:44]tlvbuf is 01A886A0 [13:02:44]SAM_PROTO_ClearQueue [13:02:44]wFMCommunicate request_size=4 [13:02:44]MH_SAM_APDU [13:02:44]CAPDU: 80 09 00 00 [13:02:44]Write to MH i2c: E2 08 00 67 3F 80 09 00 00 00 00 00 00 18 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:44]Read from MH i2c: E2 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 03 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 03 00 67 3F 00 90 00 1A [13:02:44]RAPDU: 90 00 [13:02:44]wFMCommunicate OK [13:02:44]SAM_PROTO_ClearQueue done [13:02:44]KKMCreateOFDPacket [13:02:44]OFDProtocolAddRootSTLVToBuf [13:02:44]FM_MakeSignedData [13:02:44]FM_MakeSignedData [13:02:44]SAM_PROTO_SignData [13:02:44]wFMCommunicate request_size=4 [13:02:44]MH_SAM_APDU [13:02:44]CAPDU: 80 0D 01 02 [13:02:44]Write to MH i2c: E2 08 00 68 3F 80 0D 01 02 00 00 00 00 20 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:44]Read from MH i2c: E2 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 03 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 03 00 68 3F 00 90 00 1B [13:02:44]RAPDU: 90 00 [13:02:44]wFMCommunicate OK [13:02:44]wFMCommunicate request_size=255 [13:02:44]MH_SAM_APDU [13:02:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 78 8B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 F0 02 00 35 04 06 00 31 C6 7D 15 [13:02:44]Write to MH i2c: E2 02 01 69 3F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 78 8B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 F0 02 00 35 04 06 00 31 C6 7D 15 00 00 05 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:44]Read from MH i2c: E2 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 03 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 03 00 69 3F 00 90 00 1C [13:02:44]RAPDU: 90 00 [13:02:44]wFMCommunicate OK [13:02:44]wFMCommunicate request_size=7 [13:02:44]MH_SAM_APDU [13:02:44]CAPDU: 80 0D 02 02 02 1D 6F [13:02:44]Write to MH i2c: E2 0A 00 6A 3F 80 0D 02 02 02 00 1D 6F 00 00 B3 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:44]Read from MH i2c: E2 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 03 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 03 00 6A 3F 00 90 00 1D [13:02:44]RAPDU: 90 00 [13:02:44]wFMCommunicate OK [13:02:44]wFMCommunicate request_size=4 [13:02:44]MH_SAM_APDU [13:02:44]CAPDU: 80 0D 03 02 [13:02:44]Write to MH i2c: E2 08 00 6B 3F 80 0D 03 02 00 00 00 00 25 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:44]Read from MH i2c: E2 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 0B 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 0B 00 6B 3F 00 54 17 C5 3A 31 46 D6 62 90 00 3F [13:02:44]RAPDU: 54 17 C5 3A 31 46 D6 62 90 00 [13:02:44]wFMCommunicate OK [13:02:44]SAM_PROTO_SignData done [13:02:44]FM_MakeSignedData done [13:02:44]CreateOFDProtocolMessage [13:02:44]wFMCommunicate request_size=4 [13:02:44]MH_SAM_APDU [13:02:44]CAPDU: 80 11 00 00 [13:02:44]Write to MH i2c: E2 08 00 6C 3F 80 11 00 00 00 00 00 00 25 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:44]Read from MH i2c: E2 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 17 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: E2 17 00 6C 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [13:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:02:44]wFMCommunicate OK [13:02:44]CreateOFDProtocolMessage done [13:02:44]OFDSenderStorePacket 192569 [13:02:44]StoreOFDPacket docnum=192569 [13:02:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 8C B1 04 01 FF D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 78 8B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 F0 02 00 35 04 06 00 31 C6 7D 15 1D 6F 54 17 C5 3A 31 46 D6 62 [13:02:44]CheckFolder [13:02:44]dirname=/storage/ofd_packets [13:02:44]CheckFolder done [13:02:44]ProducePacketName [13:02:44]name=ofd_packets/00192569 [13:02:44]NVStorageSaveData ofd_packets/00192569 [13:02:44]File name is /storage/ofd_packets/00192569 [13:02:44]Write 298 bytes [13:02:44]NVStorageSaveData done [13:02:44]OFDSenderStorePacket done [13:02:44]KKMCreateOFDPacket done [13:02:44]NVStorageSaveData kkm_last_timestamp [13:02:44]File name is /storage/kkm_last_timestamp [13:02:44]Write 4 bytes [13:02:44]NVStorageSaveData done [13:02:44]ExternCall_PrintAddStr [13:02:44]wPrintStart [13:02:44]Write to MH i2c: 01 00 00 6D 3F AC [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: 01 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: 01 07 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: 01 07 00 6D 3F 00 00 00 00 00 FF 0F C1 [13:02:44]RasterBufferAndPrint [13:02:44]line Счет N : (1)31889 [13:02:44]line ИНН: 02508201610067 [13:02:44]line Контрольно-Кассовый Чек [13:02:44]line ПРОДАЖА [13:02:44]line ТРК (МРК, ГНК) : 11 [13:02:44]line Товар: 2710194210 [13:02:44]line ДТ-К-5 [13:02:44]line 6.570 * 76.20 [13:02:44]line = 500.63 [13:02:44]line НДС 12% НСП 1% [13:02:44]line > о реализуемом товаре [13:02:44]line ОКРУГЛЕНИЕ: -0.63 [13:02:44]line ИТОГО: 500.00 [13:02:44]line Внесено: 500.00 [13:02:44]line СДАЧА: 0.00 [13:02:44]line НСП 1% : 4.43 [13:02:44]line НДС 12% : 53.16 [13:02:44]line Наличными: 500.00 [13:02:44]line Безнал.: 0.00 [13:02:44]line Место: АЗС № 170 "Партнер Нефть" [13:02:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:02:44]line СНО: Общий режим [13:02:44]line Чек 117 28.10.2024 13:02 [13:02:44]line Смена: 543 ФФД: 1.0 [13:02:44]line ЗНМ: 0300000110 [13:02:44]line РНМ: 0000000000091776 [13:02:44]line Версия ККМ: 001 [13:02:44]line ФМ: 0000000000871754 [13:02:44]line ФД: 192569 [13:02:44]line ФПД: 54728571821423 [13:02:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130248&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192569&fm=54728571821423&tin=02508201610067®Number=0000000000091776&sum=50000 [13:02:45]OFD Sender: Processing packet 192569 [packets to send 75, broken 74] [13:02:45]ProducePacketName [13:02:45]name=ofd_packets/00192569 [13:02:45]OFD Sender: To server: pG, [13:02:45]CommunicateWithHost lk.salyk.kg:30040 [13:02:45]ConnectInit lk.salyk.kg [13:02:45]written 0, free lines is 4095 [13:02:45]Connected sock=10 [13:02:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 8C B1 04 01 FF D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 78 8B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 F0 02 00 35 04 06 00 31 C6 7D 15 1D 6F 54 17 C5 3A 31 46 D6 62 [13:02:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A5 A2 47 00 83 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 F0 02 00 F4 03 04 00 3C 30 1F 67 B6 04 01 00 00 38 AA 0E CB D4 34 B7 BE [13:02:45]CommunicateWithHost err = 0 [13:02:45]CheckOFDResponse [13:02:45]1017 (14) - 77093643461234 [13:02:45]1041 (16) - 0000000000871754 [13:02:45]1040 (4) - 192569 [13:02:45]1012 (4) - 28.10.2024 06:33 [13:02:45]1206 (1) - 0 [13:02:45]OFD Sender: Remove packet 192569 [13:02:45]ProducePacketName [13:02:45]name=ofd_packets/00192569 [13:02:45]NVStorageDeleteData [13:02:45]Write to MH i2c: 01 00 00 98 3F D7 [13:02:45]Write i2c OK [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: 01 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: 01 07 00 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: 01 07 00 98 3F 00 00 00 00 00 BA 0C A4 [13:02:45]RasterBufferAndPrint [13:02:45]line [13:02:45]line [13:02:45]line [13:02:45]line [13:02:45]line [13:02:45]written 0, free lines is 3269 [13:02:45]MH_Cut [13:02:45]Write to MH i2c: D1 01 00 9F 3F 01 B0 [13:02:45]Write i2c OK [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: D1 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: D1 01 00 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: D1 01 00 9F 3F 00 AF [13:02:45]Write to MH i2c: 01 00 00 A0 3F DF [13:02:45]Write i2c OK [13:02:45]MH_I2C_Read... [13:02:46]OFD Sender: No OFD packet to send [13:02:46]*** Cut start [13:02:46]*** Partial cut [13:02:46]*** CUTSNS_PIN = 1 [13:02:46]*** CUTSNS_PIN = 0 [13:02:46]*** Brake cut motor [13:02:47]Read from MH i2c: 01 [13:02:47]MH_I2C_Read... [13:02:47]*** Stop cut motor [13:02:47]*** Cut end [13:02:47]Read from MH i2c: 01 07 00 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: 01 07 00 A0 3F 00 00 00 00 00 FF 0F F4 [13:02:47]process_action close_receipt done [13:02:47]requested_data is exist [13:02:47]produce_requested_data [13:02:47]requested_item fm.sn is exist - process it [13:02:47]wFMCommunicate request_size=4 [13:02:47]MH_SAM_APDU [13:02:47]CAPDU: 80 11 00 00 [13:02:47]Write to MH i2c: E2 08 00 A1 3F 80 11 00 00 00 00 00 00 5A [13:02:47]Write i2c OK [13:02:47]MH_I2C_Read... [13:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:47]Read from MH i2c: E2 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 17 00 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 17 00 A1 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AD [13:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:02:47]wFMCommunicate OK [13:02:47]requested_item fd.num is exist - process it [13:02:47]SAM_PROTO_GetFieldsCounters [13:02:47]wFMCommunicate request_size=4 [13:02:47]MH_SAM_APDU [13:02:47]CAPDU: 80 13 00 00 [13:02:47]Write to MH i2c: E2 08 00 A2 3F 80 13 00 00 00 00 00 00 5D [13:02:47]Write i2c OK [13:02:47]MH_I2C_Read... [13:02:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:47]Read from MH i2c: E2 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 62 00 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 62 00 A2 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 39 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [13:02:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 39 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:47]wFMCommunicate OK [13:02:47]SAM_PROTO_GetFieldsCounters done [13:02:47]requested_item shift.num is exist - process it [13:02:47]requested_item shift.opened is exist - process it [13:02:47]req_shift_opened [13:02:47]FM_GetShiftState [13:02:47]SAM_PROTO_GetShiftState [13:02:47]wFMCommunicate request_size=4 [13:02:47]MH_SAM_APDU [13:02:47]CAPDU: 80 13 01 00 [13:02:47]Write to MH i2c: E2 08 00 A3 3F 80 13 01 00 00 00 00 00 5F [13:02:47]Write i2c OK [13:02:47]MH_I2C_Read... [13:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:47]Read from MH i2c: E2 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 0E 00 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 0E 00 A3 3F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 AF [13:02:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:02:47]wFMCommunicate OK [13:02:47]SAM_PROTO_GetShiftState done [13:02:47]FM_GetShiftState done [13:02:47]req_shift_opened done [13:02:47]requested_item shift.open_date is exist - process it [13:02:47]req_shift_open_date [13:02:47]req_shift_open_date done [13:02:47]produce_requested_data done [13:02:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192569,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:02:47]process_action_free close_receipt [13:02:47]json_value_free [13:02:47]json_value_free done [13:02:47]process_json_proto returns [13:02:47]Send response to host [13:02:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192569,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:02:47]free response buf [13:02:47]execute_script done [13:02:47]execute_script returns [13:02:47]free content buf [13:02:47]Sock 7.Close socket [13:02:47]Sock 7.Thread stoped [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:42]accept exits with 9 [13:04:42]New connection [13:04:42]New thread 3066563940 created [13:04:42]Thread 3066707300 joined [13:04:42]Waiting for new connection... [13:04:42] Sock 9.Parse request [13:04:42]Sock 9.Check first char [13:04:42]Sock 9.First char is OK [13:04:42]request: POST /json_proto HTTP/1.0 [13:04:42]Method: POST [13:04:42]URL: /json_proto [13:04:42]Method is POST - this is cgi request [13:04:42]url: /json_proto [13:04:42]query_string will be loaded in cgi processing [13:04:42]execute_cgi json_proto POST (null) [13:04:42]execute_cgi path=json_proto method=POST [13:04:42]POST find Content-Length [13:04:42]Host: 172.17.63.131:8080 [13:04:42]Content-Length: 676 [13:04:42]Content-Type: application/json [13:04:42] [13:04:42]POST finish read [13:04:42]Found Content-Length = 676 [13:04:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:42]execute_script... [13:04:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:42]POST & json_proto [13:04:42]process_json_proto [13:04:42]json parsed OK: [13:04:42]protocol is kg_v1.0 [13:04:42]action value=close_receipt [13:04:42]process_action close_receipt [13:04:42]cmd_close_receipt [13:04:42]MH_GetDate [13:04:42]Write to MH i2c: F0 00 00 A4 3F D2 [13:04:42]Write i2c OK [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: F0 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: F0 09 00 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: F0 09 00 A4 3F 00 EF 8B 1F 67 22 05 6E 64 D4 [13:04:42]GetLastDocTimeStamp 1730120568 [13:04:42]current date 1730120687 [13:04:42]FM_GetShiftState [13:04:42]SAM_PROTO_GetShiftState [13:04:42]wFMCommunicate request_size=4 [13:04:42]MH_SAM_APDU [13:04:42]CAPDU: 80 13 01 00 [13:04:42]Write to MH i2c: E2 08 00 A5 3F 80 13 01 00 00 00 00 00 61 [13:04:42]Write i2c OK [13:04:42]MH_I2C_Read... [13:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:42]Read from MH i2c: E2 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: E2 0E 00 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: E2 0E 00 A5 3F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B1 [13:04:42]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:04:42]wFMCommunicate OK [13:04:42]SAM_PROTO_GetShiftState done [13:04:42]FM_GetShiftState done [13:04:42]opened in 1730075620 [13:04:42]opened+sec_in_day 1730162020 [13:04:42]quantity*price = 50041 [13:04:42]sum+1 = 50042 [13:04:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 118 28.10.2024 13:04 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192570 ФПД: 67972680785383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130447&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192570&fm=67972680785383&tin=02508201610067®Number=0000000000091776&sum=50000 [13:04:43]StoreToDocumentArchive [13:04:43]shift 543 fd 192570 [13:04:43]save to /storage/0543/doc_00192570 [13:04:43]save last doc name /storage/0543/doc_00192570 to /storage/kkm_last_doc_name [13:04:43]save OK [13:04:43]Clear old archive folders... [13:04:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:43]tlvbuf is 01A66180 [13:04:43]SAM_PROTO_ClearQueue [13:04:43]wFMCommunicate request_size=4 [13:04:43]MH_SAM_APDU [13:04:43]CAPDU: 80 09 00 00 [13:04:43]Write to MH i2c: E2 08 00 B2 3F 80 09 00 00 00 00 00 00 63 [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:43]Read from MH i2c: E2 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: E2 03 00 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: E2 03 00 B2 3F 00 90 00 65 [13:04:43]RAPDU: 90 00 [13:04:43]wFMCommunicate OK [13:04:43]SAM_PROTO_ClearQueue done [13:04:43]KKMCreateOFDPacket [13:04:43]OFDProtocolAddRootSTLVToBuf [13:04:43]FM_MakeSignedData [13:04:43]FM_MakeSignedData [13:04:43]SAM_PROTO_SignData [13:04:43]wFMCommunicate request_size=4 [13:04:43]MH_SAM_APDU [13:04:43]CAPDU: 80 0D 01 02 [13:04:43]Write to MH i2c: E2 08 00 B3 3F 80 0D 01 02 00 00 00 00 6B [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:43]Read from MH i2c: E2 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: E2 03 00 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: E2 03 00 B3 3F 00 90 00 66 [13:04:43]RAPDU: 90 00 [13:04:43]wFMCommunicate OK [13:04:43]wFMCommunicate request_size=255 [13:04:43]MH_SAM_APDU [13:04:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 EF 8B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A F0 02 00 35 04 06 00 3D [13:04:43]Write to MH i2c: E2 02 01 B4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 EF 8B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A F0 02 00 35 04 06 00 3D 00 00 FF [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:43]Read from MH i2c: E2 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: E2 03 00 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: E2 03 00 B4 3F 00 90 00 67 [13:04:43]RAPDU: 90 00 [13:04:43]wFMCommunicate OK [13:04:43]wFMCommunicate request_size=10 [13:04:43]MH_SAM_APDU [13:04:43]CAPDU: 80 0D 02 02 05 D2 1F 7E 1D E7 [13:04:43]Write to MH i2c: E2 0D 00 B5 3F 80 0D 02 02 05 00 D2 1F 7E 1D E7 00 00 EB [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:43]Read from MH i2c: E2 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: E2 03 00 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: E2 03 00 B5 3F 00 90 00 68 [13:04:43]RAPDU: 90 00 [13:04:43]wFMCommunicate OK [13:04:43]wFMCommunicate request_size=4 [13:04:43]MH_SAM_APDU [13:04:43]CAPDU: 80 0D 03 02 [13:04:43]Write to MH i2c: E2 08 00 B6 3F 80 0D 03 02 00 00 00 00 70 [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:43]Read from MH i2c: E2 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: E2 0B 00 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: E2 0B 00 B6 3F 00 B0 EC 2D 09 31 D8 B9 B0 90 00 B5 [13:04:43]RAPDU: B0 EC 2D 09 31 D8 B9 B0 90 00 [13:04:43]wFMCommunicate OK [13:04:43]SAM_PROTO_SignData done [13:04:43]FM_MakeSignedData done [13:04:43]CreateOFDProtocolMessage [13:04:43]wFMCommunicate request_size=4 [13:04:43]MH_SAM_APDU [13:04:43]CAPDU: 80 11 00 00 [13:04:43]Write to MH i2c: E2 08 00 B7 3F 80 11 00 00 00 00 00 00 70 [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:43]Read from MH i2c: E2 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: E2 17 00 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: E2 17 00 B7 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [13:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:04:43]wFMCommunicate OK [13:04:43]CreateOFDProtocolMessage done [13:04:43]OFDSenderStorePacket 192570 [13:04:43]StoreOFDPacket docnum=192570 [13:04:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7A 2E 07 01 41 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 EF 8B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A F0 02 00 35 04 06 00 3D D2 1F 7E 1D E7 B0 EC 2D 09 31 D8 B9 B0 [13:04:43]CheckFolder [13:04:43]dirname=/storage/ofd_packets [13:04:43]CheckFolder done [13:04:43]ProducePacketName [13:04:43]name=ofd_packets/00192570 [13:04:43]NVStorageSaveData ofd_packets/00192570 [13:04:43]File name is /storage/ofd_packets/00192570 [13:04:43]Write 301 bytes [13:04:43]NVStorageSaveData done [13:04:43]OFDSenderStorePacket done [13:04:43]KKMCreateOFDPacket done [13:04:43]NVStorageSaveData kkm_last_timestamp [13:04:43]File name is /storage/kkm_last_timestamp [13:04:43]Write 4 bytes [13:04:43]NVStorageSaveData done [13:04:43]ExternCall_PrintAddStr [13:04:43]wPrintStart [13:04:43]Write to MH i2c: 01 00 00 B8 3F F7 [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: 01 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: 01 07 00 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: 01 07 00 B8 3F 00 00 00 00 00 FF 0F 0C [13:04:43]RasterBufferAndPrint [13:04:43]line Счет N : (1)31891 [13:04:43]line ИНН: 02508201610067 [13:04:43]line Контрольно-Кассовый Чек [13:04:43]line ПРОДАЖА [13:04:43]line ТРК (МРК, ГНК) : 21 [13:04:43]line Товар: 2710124130 [13:04:43]line Аи-92-К-5 [13:04:43]line 7.480 * 66.90 [13:04:43]line = 500.41 [13:04:43]line НДС 12% НСП 1% [13:04:43]line > о реализуемом товаре [13:04:43]line ОКРУГЛЕНИЕ: -0.41 [13:04:43]line ИТОГО: 500.00 [13:04:43]line Внесено: 500.00 [13:04:43]line СДАЧА: 0.00 [13:04:43]line НСП 1% : 4.43 [13:04:43]line НДС 12% : 53.14 [13:04:43]line Наличными: 500.00 [13:04:43]line Безнал.: 0.00 [13:04:43]line Место: АЗС № 170 "Партнер Нефть" [13:04:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:04:43]line СНО: Общий режим [13:04:43]line Чек 118 28.10.2024 13:04 [13:04:43]line Смена: 543 ФФД: 1.0 [13:04:43]line ЗНМ: 0300000110 [13:04:43]line РНМ: 0000000000091776 [13:04:43]line Версия ККМ: 001 [13:04:43]line ФМ: 0000000000871754 [13:04:43]line ФД: 192570 [13:04:43]line ФПД: 67972680785383 [13:04:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130447&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192570&fm=67972680785383&tin=02508201610067®Number=0000000000091776&sum=50000 [13:04:44]OFD Sender: Processing packet 192570 [packets to send 75, broken 74] [13:04:44]ProducePacketName [13:04:44]name=ofd_packets/00192570 [13:04:44]OFD Sender: To server: pG, [13:04:44]CommunicateWithHost lk.salyk.kg:30040 [13:04:44]ConnectInit lk.salyk.kg [13:04:44]written 0, free lines is 4095 [13:04:44]Connected sock=11 [13:04:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7A 2E 07 01 41 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 EF 8B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A F0 02 00 35 04 06 00 3D D2 1F 7E 1D E7 B0 EC 2D 09 31 D8 B9 B0 [13:04:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FD E8 47 00 5B ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A F0 02 00 F4 03 04 00 B3 30 1F 67 B6 04 01 00 00 7C F1 48 17 39 3D 1C 8B [13:04:44]CommunicateWithHost err = 0 [13:04:44]CheckOFDResponse [13:04:44]1017 (14) - 77093643461234 [13:04:44]1041 (16) - 0000000000871754 [13:04:44]1040 (4) - 192570 [13:04:44]1012 (4) - 28.10.2024 06:35 [13:04:44]1206 (1) - 0 [13:04:44]OFD Sender: Remove packet 192570 [13:04:44]ProducePacketName [13:04:44]name=ofd_packets/00192570 [13:04:44]NVStorageDeleteData [13:04:44]Write to MH i2c: 01 00 00 E3 3F 22 [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: 01 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: 01 07 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: 01 07 00 E3 3F 00 00 00 00 00 B9 0C EE [13:04:44]RasterBufferAndPrint [13:04:44]line [13:04:44]line [13:04:44]line [13:04:44]line [13:04:44]line [13:04:44]written 0, free lines is 3264 [13:04:44]MH_Cut [13:04:44]Write to MH i2c: D1 01 00 EA 3F 01 FB [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: D1 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: D1 01 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: D1 01 00 EA 3F 00 FA [13:04:44]Write to MH i2c: 01 00 00 EB 3F 2A [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:45]OFD Sender: No OFD packet to send [13:04:45]*** Cut start [13:04:45]*** Partial cut [13:04:45]*** CUTSNS_PIN = 1 [13:04:45]*** CUTSNS_PIN = 0 [13:04:45]*** Brake cut motor [13:04:46]Read from MH i2c: 01 [13:04:46]MH_I2C_Read... [13:04:46]*** Stop cut motor [13:04:46]*** Cut end [13:04:46]Read from MH i2c: 01 07 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: 01 07 00 EB 3F 00 00 00 00 00 FF 0F 3F [13:04:46]process_action close_receipt done [13:04:46]requested_data is exist [13:04:46]produce_requested_data [13:04:46]requested_item fm.sn is exist - process it [13:04:46]wFMCommunicate request_size=4 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 11 00 00 [13:04:46]Write to MH i2c: E2 08 00 EC 3F 80 11 00 00 00 00 00 00 A5 [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 17 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 17 00 EC 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F8 [13:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:04:46]wFMCommunicate OK [13:04:46]requested_item fd.num is exist - process it [13:04:46]SAM_PROTO_GetFieldsCounters [13:04:46]wFMCommunicate request_size=4 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 13 00 00 [13:04:46]Write to MH i2c: E2 08 00 ED 3F 80 13 00 00 00 00 00 00 A8 [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 62 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 62 00 ED 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [13:04:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:46]wFMCommunicate OK [13:04:46]SAM_PROTO_GetFieldsCounters done [13:04:46]requested_item shift.num is exist - process it [13:04:46]requested_item shift.opened is exist - process it [13:04:46]req_shift_opened [13:04:46]FM_GetShiftState [13:04:46]SAM_PROTO_GetShiftState [13:04:46]wFMCommunicate request_size=4 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 13 01 00 [13:04:46]Write to MH i2c: E2 08 00 EE 3F 80 13 01 00 00 00 00 00 AA [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 0E 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 0E 00 EE 3F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FA [13:04:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:04:46]wFMCommunicate OK [13:04:46]SAM_PROTO_GetShiftState done [13:04:46]FM_GetShiftState done [13:04:46]req_shift_opened done [13:04:46]requested_item shift.open_date is exist - process it [13:04:46]req_shift_open_date [13:04:46]req_shift_open_date done [13:04:46]produce_requested_data done [13:04:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192570,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:04:46]process_action_free close_receipt [13:04:46]json_value_free [13:04:46]json_value_free done [13:04:46]process_json_proto returns [13:04:46]Send response to host [13:04:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192570,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:04:46]free response buf [13:04:46]execute_script done [13:04:46]execute_script returns [13:04:46]free content buf [13:04:46]Sock 9.Close socket [13:04:46]Sock 9.Thread stoped [13:04:46]accept exits with 7 [13:04:46]New connection [13:04:46]New thread 3066707300 created [13:04:46]Thread 3066563940 joined [13:04:46]Waiting for new connection... [13:04:46] Sock 7.Parse request [13:04:46]Sock 7.Check first char [13:04:46]Sock 7.First char is OK [13:04:46]request: POST /json_proto HTTP/1.0 [13:04:46]Method: POST [13:04:46]URL: /json_proto [13:04:46]Method is POST - this is cgi request [13:04:46]url: /json_proto [13:04:46]query_string will be loaded in cgi processing [13:04:46]execute_cgi json_proto POST (null) [13:04:46]execute_cgi path=json_proto method=POST [13:04:46]POST find Content-Length [13:04:46]Host: 172.17.63.131:8080 [13:04:46]Content-Length: 681 [13:04:46]Content-Type: application/json [13:04:46] [13:04:46]POST finish read [13:04:46]Found Content-Length = 681 [13:04:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:46]execute_script... [13:04: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)31890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:46]POST & json_proto [13:04:46]process_json_proto [13:04:46]json parsed OK: [13:04:46]protocol is kg_v1.0 [13:04:46]action value=close_receipt [13:04:46]process_action close_receipt [13:04:46]cmd_close_receipt [13:04:46]MH_GetDate [13:04:46]Write to MH i2c: F0 00 00 EF 3F 1D [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: F0 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: F0 09 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: F0 09 00 EF 3F 00 F4 8B 1F 67 22 05 6E 64 24 [13:04:46]GetLastDocTimeStamp 1730120687 [13:04:46]current date 1730120692 [13:04:46]FM_GetShiftState [13:04:46]SAM_PROTO_GetShiftState [13:04:46]wFMCommunicate request_size=4 [13:04:46]MH_SAM_APDU [13:04:46]CAPDU: 80 13 01 00 [13:04:46]Write to MH i2c: E2 08 00 F0 3F 80 13 01 00 00 00 00 00 AC [13:04:46]Write i2c OK [13:04:46]MH_I2C_Read... [13:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:46]Read from MH i2c: E2 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 0E 00 [13:04:46]MH_I2C_Read... [13:04:46]Read from MH i2c: E2 0E 00 F0 3F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FC [13:04:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:04:46]wFMCommunicate OK [13:04:46]SAM_PROTO_GetShiftState done [13:04:46]FM_GetShiftState done [13:04:46]opened in 1730075620 [13:04:46]opened+sec_in_day 1730162020 [13:04:46]quantity*price = 100015 [13:04:46]sum+1 = 100017 [13:04:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 119 28.10.2024 13:04 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192571 ФПД: 22058929603910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130452&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192571&fm=22058929603910&tin=02508201610067®Number=0000000000091776&sum=100000 [13:04:48]StoreToDocumentArchive [13:04:48]shift 543 fd 192571 [13:04:48]save to /storage/0543/doc_00192571 [13:04:48]save last doc name /storage/0543/doc_00192571 to /storage/kkm_last_doc_name [13:04:48]save OK [13:04:48]Clear old archive folders... [13:04:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:48]tlvbuf is 019967C0 [13:04:48]SAM_PROTO_ClearQueue [13:04:48]wFMCommunicate request_size=4 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 09 00 00 [13:04:48]Write to MH i2c: E2 08 00 FD 3F 80 09 00 00 00 00 00 00 AE [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 FD 3F 00 90 00 B0 [13:04:48]RAPDU: 90 00 [13:04:48]wFMCommunicate OK [13:04:48]SAM_PROTO_ClearQueue done [13:04:48]KKMCreateOFDPacket [13:04:48]OFDProtocolAddRootSTLVToBuf [13:04:48]FM_MakeSignedData [13:04:48]FM_MakeSignedData [13:04:48]SAM_PROTO_SignData [13:04:48]wFMCommunicate request_size=4 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 0D 01 02 [13:04:48]Write to MH i2c: E2 08 00 FE 3F 80 0D 01 02 00 00 00 00 B6 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 FE 3F 00 90 00 B1 [13:04:48]RAPDU: 90 00 [13:04:48]wFMCommunicate OK [13:04:48]wFMCommunicate request_size=255 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F4 8B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B F0 02 00 35 04 06 00 14 [13:04:48]Write to MH i2c: E2 02 01 FF 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F4 8B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B F0 02 00 35 04 06 00 14 00 00 22 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 FF 3F 00 90 00 B2 [13:04:48]RAPDU: 90 00 [13:04:48]wFMCommunicate OK [13:04:48]wFMCommunicate request_size=10 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 0D 02 02 05 0F FE A9 C5 46 [13:04:48]Write to MH i2c: E2 0D 00 00 40 80 0D 02 02 05 00 0F FE A9 C5 46 00 00 85 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 03 00 00 40 00 90 00 B4 [13:04:48]RAPDU: 90 00 [13:04:48]wFMCommunicate OK [13:04:48]wFMCommunicate request_size=4 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 0D 03 02 [13:04:48]Write to MH i2c: E2 08 00 01 40 80 0D 03 02 00 00 00 00 BC [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 0B 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 0B 00 01 40 00 C3 2A 4C 9B 3E 63 0C 83 90 00 C1 [13:04:48]RAPDU: C3 2A 4C 9B 3E 63 0C 83 90 00 [13:04:48]wFMCommunicate OK [13:04:48]SAM_PROTO_SignData done [13:04:48]FM_MakeSignedData done [13:04:48]CreateOFDProtocolMessage [13:04:48]wFMCommunicate request_size=4 [13:04:48]MH_SAM_APDU [13:04:48]CAPDU: 80 11 00 00 [13:04:48]Write to MH i2c: E2 08 00 02 40 80 11 00 00 00 00 00 00 BC [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:48]Read from MH i2c: E2 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 17 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: E2 17 00 02 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0F [13:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:04:48]wFMCommunicate OK [13:04:48]CreateOFDProtocolMessage done [13:04:48]OFDSenderStorePacket 192571 [13:04:48]StoreOFDPacket docnum=192571 [13:04:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EE B6 07 01 BB F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F4 8B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B F0 02 00 35 04 06 00 14 0F FE A9 C5 46 C3 2A 4C 9B 3E 63 0C 83 [13:04:48]CheckFolder [13:04:48]dirname=/storage/ofd_packets [13:04:48]CheckFolder done [13:04:48]ProducePacketName [13:04:48]name=ofd_packets/00192571 [13:04:48]NVStorageSaveData ofd_packets/00192571 [13:04:48]File name is /storage/ofd_packets/00192571 [13:04:48]Write 301 bytes [13:04:48]NVStorageSaveData done [13:04:48]OFDSenderStorePacket done [13:04:48]KKMCreateOFDPacket done [13:04:48]NVStorageSaveData kkm_last_timestamp [13:04:48]File name is /storage/kkm_last_timestamp [13:04:48]Write 4 bytes [13:04:48]NVStorageSaveData done [13:04:48]ExternCall_PrintAddStr [13:04:48]wPrintStart [13:04:48]Write to MH i2c: 01 00 00 03 40 43 [13:04:48]Write i2c OK [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: 01 [13:04:48]MH_I2C_Read... [13:04:48]OFD Sender: Processing packet 192571 [packets to send 75, broken 74] [13:04:48]ProducePacketName [13:04:48]name=ofd_packets/00192571 [13:04:48]OFD Sender: To server: pG, [13:04:48]CommunicateWithHost lk.salyk.kg:30040 [13:04:48]ConnectInit lk.salyk.kg [13:04:48]Read from MH i2c: 01 07 00 [13:04:48]MH_I2C_Read... [13:04:48]Read from MH i2c: 01 07 00 03 40 00 00 00 00 00 FF 0F 58 [13:04:48]RasterBufferAndPrint [13:04:48]line Счет N : (1)31890 [13:04:48]line ИНН: 02508201610067 [13:04:48]line Контрольно-Кассовый Чек [13:04:48]line ПРОДАЖА [13:04:48]line ТРК (МРК, ГНК) : 12 [13:04:48]line Товар: 2710124130 [13:04:48]line Аи-92-К-5 [13:04:48]line 14.950 * 66.90 [13:04:48]line = 1000.16 [13:04:48]line НДС 12% НСП 1% [13:04:48]line > о реализуемом товаре [13:04:48]line ОКРУГЛЕНИЕ: -0.16 [13:04:48]line ИТОГО: 1000.00 [13:04:48]line Внесено: 1000.00 [13:04:48]line СДАЧА: 0.00 [13:04:48]line НСП 1% : 8.85 [13:04:48]line НДС 12% : 106.21 [13:04:48]line Наличными: 1000.00 [13:04:48]line Безнал.: 0.00 [13:04:48]line Место: АЗС № 170 "Партнер Нефть" [13:04:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:04:48]line СНО: Общий режим [13:04:48]line Чек 119 28.10.2024 13:04 [13:04:48]line Смена: 543 ФФД: 1.0 [13:04:48]line ЗНМ: 0300000110 [13:04:48]line РНМ: 0000000000091776 [13:04:48]line Версия ККМ: 001 [13:04:48]line ФМ: 0000000000871754 [13:04:48]line ФД: 192571 [13:04:48]line ФПД: 22058929603910 [13:04:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130452&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192571&fm=22058929603910&tin=02508201610067®Number=0000000000091776&sum=100000 [13:04:48]written 0, free lines is 4095 [13:04:48]Connected sock=10 [13:04:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EE B6 07 01 BB F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F4 8B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B F0 02 00 35 04 06 00 14 0F FE A9 C5 46 C3 2A 4C 9B 3E 63 0C 83 [13:04:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 10 0A 47 00 62 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B F0 02 00 F4 03 04 00 B8 30 1F 67 B6 04 01 00 00 4C 0E 89 28 FD 1E 7B 84 [13:04:49]CommunicateWithHost err = 0 [13:04:49]CheckOFDResponse [13:04:49]1017 (14) - 77093643461234 [13:04:49]1041 (16) - 0000000000871754 [13:04:49]1040 (4) - 192571 [13:04:49]1012 (4) - 28.10.2024 06:35 [13:04:49]1206 (1) - 0 [13:04:49]OFD Sender: Remove packet 192571 [13:04:49]ProducePacketName [13:04:49]name=ofd_packets/00192571 [13:04:49]NVStorageDeleteData [13:04:49]Write to MH i2c: 01 00 00 2E 40 6E [13:04:49]Write i2c OK [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: 01 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: 01 07 00 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: 01 07 00 2E 40 00 00 00 00 00 B8 0C 39 [13:04:49]RasterBufferAndPrint [13:04:49]line [13:04:49]line [13:04:49]line [13:04:49]line [13:04:49]line [13:04:49]written 0, free lines is 3271 [13:04:49]MH_Cut [13:04:49]Write to MH i2c: D1 01 00 35 40 01 47 [13:04:49]Write i2c OK [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: D1 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: D1 01 00 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: D1 01 00 35 40 00 46 [13:04:49]Write to MH i2c: 01 00 00 36 40 76 [13:04:49]Write i2c OK [13:04:49]MH_I2C_Read... [13:04:49]OFD Sender: No OFD packet to send [13:04:50]*** Cut start [13:04:50]*** Partial cut [13:04:50]*** CUTSNS_PIN = 1 [13:04:50]*** CUTSNS_PIN = 0 [13:04:50]*** Brake cut motor [13:04:50]Read from MH i2c: 01 [13:04:50]MH_I2C_Read... [13:04:50]*** Stop cut motor [13:04:50]*** Cut end [13:04:50]Read from MH i2c: 01 07 00 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: 01 07 00 36 40 00 00 00 00 00 FF 0F 8B [13:04:50]process_action close_receipt done [13:04:50]requested_data is exist [13:04:50]produce_requested_data [13:04:50]requested_item fm.sn is exist - process it [13:04:50]wFMCommunicate request_size=4 [13:04:50]MH_SAM_APDU [13:04:50]CAPDU: 80 11 00 00 [13:04:50]Write to MH i2c: E2 08 00 37 40 80 11 00 00 00 00 00 00 F1 [13:04:50]Write i2c OK [13:04:50]MH_I2C_Read... [13:04:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:50]Read from MH i2c: E2 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 17 00 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 17 00 37 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 44 [13:04:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:04:50]wFMCommunicate OK [13:04:50]requested_item fd.num is exist - process it [13:04:50]SAM_PROTO_GetFieldsCounters [13:04:50]wFMCommunicate request_size=4 [13:04:50]MH_SAM_APDU [13:04:50]CAPDU: 80 13 00 00 [13:04:50]Write to MH i2c: E2 08 00 38 40 80 13 00 00 00 00 00 00 F4 [13:04:50]Write i2c OK [13:04:50]MH_I2C_Read... [13:04:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:51]Read from MH i2c: E2 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: E2 62 00 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: E2 62 00 38 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [13:04:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:51]wFMCommunicate OK [13:04:51]SAM_PROTO_GetFieldsCounters done [13:04:51]requested_item shift.num is exist - process it [13:04:51]requested_item shift.opened is exist - process it [13:04:51]req_shift_opened [13:04:51]FM_GetShiftState [13:04:51]SAM_PROTO_GetShiftState [13:04:51]wFMCommunicate request_size=4 [13:04:51]MH_SAM_APDU [13:04:51]CAPDU: 80 13 01 00 [13:04:51]Write to MH i2c: E2 08 00 39 40 80 13 01 00 00 00 00 00 F6 [13:04:51]Write i2c OK [13:04:51]MH_I2C_Read... [13:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:51]Read from MH i2c: E2 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: E2 0E 00 [13:04:51]MH_I2C_Read... [13:04:51]Read from MH i2c: E2 0E 00 39 40 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 46 [13:04:51]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:04:51]wFMCommunicate OK [13:04:51]SAM_PROTO_GetShiftState done [13:04:51]FM_GetShiftState done [13:04:51]req_shift_opened done [13:04:51]requested_item shift.open_date is exist - process it [13:04:51]req_shift_open_date [13:04:51]req_shift_open_date done [13:04:51]produce_requested_data done [13:04:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192571,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:04:51]process_action_free close_receipt [13:04:51]json_value_free [13:04:51]json_value_free done [13:04:51]process_json_proto returns [13:04:51]Send response to host [13:04:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192571,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:04:51]free response buf [13:04:51]execute_script done [13:04:51]execute_script returns [13:04:51]free content buf [13:04:51]Sock 7.Close socket [13:04:51]Sock 7.Thread stoped [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:25]accept exits with 9 [13:07:25]New connection [13:07:25]New thread 3066563940 created [13:07:25]Thread 3066707300 joined [13:07:25]Waiting for new connection... [13:07:25] Sock 9.Parse request [13:07:25]Sock 9.Check first char [13:07:25]Sock 9.First char is OK [13:07:25]request: POST /json_proto HTTP/1.0 [13:07:25]Method: POST [13:07:25]URL: /json_proto [13:07:25]Method is POST - this is cgi request [13:07:25]url: /json_proto [13:07:25]query_string will be loaded in cgi processing [13:07:25]execute_cgi json_proto POST (null) [13:07:25]execute_cgi path=json_proto method=POST [13:07:25]POST find Content-Length [13:07:25]Host: 172.17.63.131:8080 [13:07:25]Content-Length: 676 [13:07:25]Content-Type: application/json [13:07:25] [13:07:25]POST finish read [13:07:25]Found Content-Length = 676 [13:07:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:25]execute_script... [13:07:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:25]POST & json_proto [13:07:25]process_json_proto [13:07:25]json parsed OK: [13:07:25]protocol is kg_v1.0 [13:07:25]action value=close_receipt [13:07:25]process_action close_receipt [13:07:25]cmd_close_receipt [13:07:25]MH_GetDate [13:07:25]Write to MH i2c: F0 00 00 3A 40 69 [13:07:25]Write i2c OK [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: F0 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: F0 09 00 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: F0 09 00 3A 40 00 93 8C 1F 67 22 05 6E 64 10 [13:07:25]GetLastDocTimeStamp 1730120692 [13:07:25]current date 1730120851 [13:07:25]FM_GetShiftState [13:07:25]SAM_PROTO_GetShiftState [13:07:25]wFMCommunicate request_size=4 [13:07:25]MH_SAM_APDU [13:07:25]CAPDU: 80 13 01 00 [13:07:25]Write to MH i2c: E2 08 00 3B 40 80 13 01 00 00 00 00 00 F8 [13:07:25]Write i2c OK [13:07:25]MH_I2C_Read... [13:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:25]Read from MH i2c: E2 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: E2 0E 00 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: E2 0E 00 3B 40 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 48 [13:07:25]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:07:25]wFMCommunicate OK [13:07:25]SAM_PROTO_GetShiftState done [13:07:25]FM_GetShiftState done [13:07:25]opened in 1730075620 [13:07:25]opened+sec_in_day 1730162020 [13:07:25]quantity*price = 50041 [13:07:25]sum+1 = 50042 [13:07:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 120 28.10.2024 13:07 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192572 ФПД: 44272316016889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130731&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192572&fm=44272316016889&tin=02508201610067®Number=0000000000091776&sum=50000 [13:07:26]StoreToDocumentArchive [13:07:26]shift 543 fd 192572 [13:07:26]save to /storage/0543/doc_00192572 [13:07:26]save last doc name /storage/0543/doc_00192572 to /storage/kkm_last_doc_name [13:07:26]save OK [13:07:26]Clear old archive folders... [13:07:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:26]tlvbuf is 019AEDF0 [13:07:26]SAM_PROTO_ClearQueue [13:07:26]wFMCommunicate request_size=4 [13:07:26]MH_SAM_APDU [13:07:26]CAPDU: 80 09 00 00 [13:07:26]Write to MH i2c: E2 08 00 48 40 80 09 00 00 00 00 00 00 FA [13:07:26]Write i2c OK [13:07:26]MH_I2C_Read... [13:07:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:26]Read from MH i2c: E2 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: E2 03 00 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: E2 03 00 48 40 00 90 00 FC [13:07:26]RAPDU: 90 00 [13:07:26]wFMCommunicate OK [13:07:26]SAM_PROTO_ClearQueue done [13:07:26]KKMCreateOFDPacket [13:07:26]OFDProtocolAddRootSTLVToBuf [13:07:26]FM_MakeSignedData [13:07:26]FM_MakeSignedData [13:07:26]SAM_PROTO_SignData [13:07:26]wFMCommunicate request_size=4 [13:07:26]MH_SAM_APDU [13:07:26]CAPDU: 80 0D 01 02 [13:07:26]Write to MH i2c: E2 08 00 49 40 80 0D 01 02 00 00 00 00 02 [13:07:26]Write i2c OK [13:07:26]MH_I2C_Read... [13:07:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:26]Read from MH i2c: E2 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: E2 03 00 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: E2 03 00 49 40 00 90 00 FD [13:07:26]RAPDU: 90 00 [13:07:26]wFMCommunicate OK [13:07:26]wFMCommunicate request_size=255 [13:07:26]MH_SAM_APDU [13:07:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 93 8C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C F0 02 00 35 04 06 00 28 [13:07:26]Write to MH i2c: E2 02 01 4A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 93 8C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C F0 02 00 35 04 06 00 28 00 00 2A [13:07:26]Write i2c OK [13:07:26]MH_I2C_Read... [13:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:27]Read from MH i2c: E2 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 03 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 03 00 4A 40 00 90 00 FE [13:07:27]RAPDU: 90 00 [13:07:27]wFMCommunicate OK [13:07:27]wFMCommunicate request_size=10 [13:07:27]MH_SAM_APDU [13:07:27]CAPDU: 80 0D 02 02 05 43 F3 AB 68 F9 [13:07:27]Write to MH i2c: E2 0D 00 4B 40 80 0D 02 02 05 00 43 F3 AB 68 F9 00 00 51 [13:07:27]Write i2c OK [13:07:27]MH_I2C_Read... [13:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:27]Read from MH i2c: E2 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 03 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 03 00 4B 40 00 90 00 FF [13:07:27]RAPDU: 90 00 [13:07:27]wFMCommunicate OK [13:07:27]wFMCommunicate request_size=4 [13:07:27]MH_SAM_APDU [13:07:27]CAPDU: 80 0D 03 02 [13:07:27]Write to MH i2c: E2 08 00 4C 40 80 0D 03 02 00 00 00 00 07 [13:07:27]Write i2c OK [13:07:27]MH_I2C_Read... [13:07:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:27]Read from MH i2c: E2 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 0B 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 0B 00 4C 40 00 99 EB 41 F7 B7 23 2A DE 90 00 A6 [13:07:27]RAPDU: 99 EB 41 F7 B7 23 2A DE 90 00 [13:07:27]wFMCommunicate OK [13:07:27]SAM_PROTO_SignData done [13:07:27]FM_MakeSignedData done [13:07:27]CreateOFDProtocolMessage [13:07:27]wFMCommunicate request_size=4 [13:07:27]MH_SAM_APDU [13:07:27]CAPDU: 80 11 00 00 [13:07:27]Write to MH i2c: E2 08 00 4D 40 80 11 00 00 00 00 00 00 07 [13:07:27]Write i2c OK [13:07:27]MH_I2C_Read... [13:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:27]Read from MH i2c: E2 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 17 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 17 00 4D 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [13:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:07:27]wFMCommunicate OK [13:07:27]CreateOFDProtocolMessage done [13:07:27]OFDSenderStorePacket 192572 [13:07:27]StoreOFDPacket docnum=192572 [13:07:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7A 77 07 01 0A EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 93 8C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C F0 02 00 35 04 06 00 28 43 F3 AB 68 F9 99 EB 41 F7 B7 23 2A DE [13:07:27]CheckFolder [13:07:27]dirname=/storage/ofd_packets [13:07:27]CheckFolder done [13:07:27]ProducePacketName [13:07:27]name=ofd_packets/00192572 [13:07:27]NVStorageSaveData ofd_packets/00192572 [13:07:27]File name is /storage/ofd_packets/00192572 [13:07:27]Write 301 bytes [13:07:27]NVStorageSaveData done [13:07:27]OFDSenderStorePacket done [13:07:27]KKMCreateOFDPacket done [13:07:27]NVStorageSaveData kkm_last_timestamp [13:07:27]File name is /storage/kkm_last_timestamp [13:07:27]Write 4 bytes [13:07:27]NVStorageSaveData done [13:07:27]OFD Sender: Processing packet 192572 [packets to send 75, broken 74] [13:07:27]ProducePacketName [13:07:27]name=ofd_packets/00192572 [13:07:27]OFD Sender: To server: pG, [13:07:27]CommunicateWithHost lk.salyk.kg:30040 [13:07:27]ConnectInit lk.salyk.kg [13:07:27]ExternCall_PrintAddStr [13:07:27]wPrintStart [13:07:27]Write to MH i2c: 01 00 00 4E 40 8E [13:07:27]Write i2c OK [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: 01 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: 01 07 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: 01 07 00 4E 40 00 00 00 00 00 FF 0F A3 [13:07:27]RasterBufferAndPrint [13:07:27]line Счет N : (1)31892 [13:07:27]line ИНН: 02508201610067 [13:07:27]line Контрольно-Кассовый Чек [13:07:27]line ПРОДАЖА [13:07:27]line ТРК (МРК, ГНК) : 12 [13:07:27]line Товар: 2710124130 [13:07:27]line Аи-92-К-5 [13:07:27]line 7.480 * 66.90 [13:07:27]line = 500.41 [13:07:27]line НДС 12% НСП 1% [13:07:27]line > о реализуемом товаре [13:07:27]line ОКРУГЛЕНИЕ: -0.41 [13:07:27]line ИТОГО: 500.00 [13:07:27]line Внесено: 500.00 [13:07:27]line СДАЧА: 0.00 [13:07:27]line НСП 1% : 4.43 [13:07:27]line НДС 12% : 53.14 [13:07:27]line Наличными: 500.00 [13:07:27]line Безнал.: 0.00 [13:07:27]line Место: АЗС № 170 "Партнер Нефть" [13:07:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:07:27]line СНО: Общий режим [13:07:27]line Чек 120 28.10.2024 13:07 [13:07:27]line Смена: 543 ФФД: 1.0 [13:07:27]line ЗНМ: 0300000110 [13:07:27]line РНМ: 0000000000091776 [13:07:27]line Версия ККМ: 001 [13:07:27]line ФМ: 0000000000871754 [13:07:27]line ФД: 192572 [13:07:27]line ФПД: 44272316016889 [13:07:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130731&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192572&fm=44272316016889&tin=02508201610067®Number=0000000000091776&sum=50000 [13:07:27]Connected sock=11 [13:07:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7A 77 07 01 0A EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 93 8C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C F0 02 00 35 04 06 00 28 43 F3 AB 68 F9 99 EB 41 F7 B7 23 2A DE [13:07:27]written 0, free lines is 4095 [13:07:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6B 30 47 00 4B 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C F0 02 00 F4 03 04 00 57 31 1F 67 B6 04 01 00 00 78 08 D9 96 BE 4B E6 A9 [13:07:27]CommunicateWithHost err = 0 [13:07:27]CheckOFDResponse [13:07:27]1017 (14) - 77093643461234 [13:07:27]1041 (16) - 0000000000871754 [13:07:27]1040 (4) - 192572 [13:07:27]1012 (4) - 28.10.2024 06:38 [13:07:27]1206 (1) - 0 [13:07:27]OFD Sender: Remove packet 192572 [13:07:27]ProducePacketName [13:07:27]name=ofd_packets/00192572 [13:07:27]NVStorageDeleteData [13:07:28]Write to MH i2c: 01 00 00 79 40 B9 [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: 01 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: 01 07 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: 01 07 00 79 40 00 00 00 00 00 B5 0C 81 [13:07:28]RasterBufferAndPrint [13:07:28]line [13:07:28]line [13:07:28]line [13:07:28]line [13:07:28]line [13:07:28]written 0, free lines is 3259 [13:07:28]MH_Cut [13:07:28]Write to MH i2c: D1 01 00 80 40 01 92 [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: D1 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: D1 01 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: D1 01 00 80 40 00 91 [13:07:28]Write to MH i2c: 01 00 00 81 40 C1 [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]OFD Sender: No OFD packet to send [13:07:29]*** Cut start [13:07:29]*** Partial cut [13:07:29]*** CUTSNS_PIN = 1 [13:07:29]*** CUTSNS_PIN = 0 [13:07:29]*** Brake cut motor [13:07:29]Read from MH i2c: 01 [13:07:29]MH_I2C_Read... [13:07:29]*** Stop cut motor [13:07:29]*** Cut end [13:07:29]Read from MH i2c: 01 07 00 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: 01 07 00 81 40 00 00 00 00 00 FF 0F D6 [13:07:29]process_action close_receipt done [13:07:29]requested_data is exist [13:07:29]produce_requested_data [13:07:29]requested_item fm.sn is exist - process it [13:07:29]wFMCommunicate request_size=4 [13:07:29]MH_SAM_APDU [13:07:29]CAPDU: 80 11 00 00 [13:07:29]Write to MH i2c: E2 08 00 82 40 80 11 00 00 00 00 00 00 3C [13:07:29]Write i2c OK [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 [13:07:29]MH_I2C_Read... [13:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:29]Read from MH i2c: E2 17 00 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 17 00 82 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8F [13:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:07:29]wFMCommunicate OK [13:07:29]requested_item fd.num is exist - process it [13:07:29]SAM_PROTO_GetFieldsCounters [13:07:29]wFMCommunicate request_size=4 [13:07:29]MH_SAM_APDU [13:07:29]CAPDU: 80 13 00 00 [13:07:29]Write to MH i2c: E2 08 00 83 40 80 13 00 00 00 00 00 00 3F [13:07:29]Write i2c OK [13:07:29]MH_I2C_Read... [13:07:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:29]Read from MH i2c: E2 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 62 00 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 62 00 83 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [13:07:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:29]wFMCommunicate OK [13:07:29]SAM_PROTO_GetFieldsCounters done [13:07:29]requested_item shift.num is exist - process it [13:07:29]requested_item shift.opened is exist - process it [13:07:29]req_shift_opened [13:07:29]FM_GetShiftState [13:07:29]SAM_PROTO_GetShiftState [13:07:29]wFMCommunicate request_size=4 [13:07:29]MH_SAM_APDU [13:07:29]CAPDU: 80 13 01 00 [13:07:29]Write to MH i2c: E2 08 00 84 40 80 13 01 00 00 00 00 00 41 [13:07:29]Write i2c OK [13:07:29]MH_I2C_Read... [13:07:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:29]Read from MH i2c: E2 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 0E 00 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 0E 00 84 40 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 91 [13:07:29]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:07:29]wFMCommunicate OK [13:07:29]SAM_PROTO_GetShiftState done [13:07:29]FM_GetShiftState done [13:07:29]req_shift_opened done [13:07:29]requested_item shift.open_date is exist - process it [13:07:29]req_shift_open_date [13:07:29]req_shift_open_date done [13:07:29]produce_requested_data done [13:07:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192572,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:07:29]process_action_free close_receipt [13:07:29]json_value_free [13:07:29]json_value_free done [13:07:29]process_json_proto returns [13:07:29]Send response to host [13:07:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192572,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:07:29]free response buf [13:07:29]execute_script done [13:07:29]execute_script returns [13:07:29]free content buf [13:07:29]Sock 9.Close socket [13:07:29]Sock 9.Thread stoped [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11: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:55]accept exits with 7 [13:12:55]New connection [13:12:55]New thread 3066707300 created [13:12:55]Thread 3066563940 joined [13:12:55]Waiting for new connection... [13:12:55] Sock 7.Parse request [13:12:55]Sock 7.Check first char [13:12:55]Sock 7.First char is OK [13:12:55]request: POST /json_proto HTTP/1.0 [13:12:55]Method: POST [13:12:55]URL: /json_proto [13:12:55]Method is POST - this is cgi request [13:12:55]url: /json_proto [13:12:55]query_string will be loaded in cgi processing [13:12:55]execute_cgi json_proto POST (null) [13:12:55]execute_cgi path=json_proto method=POST [13:12:55]POST find Content-Length [13:12:55]Host: 172.17.63.131:8080 [13:12:55]Content-Length: 865 [13:12:55]Content-Type: application/json [13:12:55] [13:12:55]POST finish read [13:12:55]Found Content-Length = 865 [13:12:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.030, "sum" : 1340.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1340.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:55]execute_script... [13:12:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.030, "sum" : 1340.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1340.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:55]POST & json_proto [13:12:55]process_json_proto [13:12:55]json parsed OK: [13:12:55]protocol is kg_v1.0 [13:12:55]action value=close_receipt [13:12:55]process_action close_receipt [13:12:55]cmd_close_receipt [13:12:55]MH_GetDate [13:12:55]Write to MH i2c: F0 00 00 85 40 B4 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: F0 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: F0 09 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: F0 09 00 85 40 00 DC 8D 1F 67 22 05 6E 64 A5 [13:12:55]GetLastDocTimeStamp 1730120851 [13:12:55]current date 1730121180 [13:12:55]FM_GetShiftState [13:12:55]SAM_PROTO_GetShiftState [13:12:55]wFMCommunicate request_size=4 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 13 01 00 [13:12:55]Write to MH i2c: E2 08 00 86 40 80 13 01 00 00 00 00 00 43 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 0E 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 0E 00 86 40 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 93 [13:12:55]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:12:55]wFMCommunicate OK [13:12:55]SAM_PROTO_GetShiftState done [13:12:55]FM_GetShiftState done [13:12:55]opened in 1730075620 [13:12:55]opened+sec_in_day 1730162020 [13:12:55]quantity*price = 134000 [13:12:55]sum+1 = 134002 [13:12:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1340.01 НСП 1% : 11.86 НДС 12% : 142.30 Наличными: 0.00 Безнал.: 1340.01 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 121 28.10.2024 13:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192573 ФПД: 148511180042386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131300&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192573&fm=148511180042386&tin=02508201610067®Number=0000000000091776&sum=134001 [13:12:56]StoreToDocumentArchive [13:12:56]shift 543 fd 192573 [13:12:56]save to /storage/0543/doc_00192573 [13:12:56]save last doc name /storage/0543/doc_00192573 to /storage/kkm_last_doc_name [13:12:56]save OK [13:12:56]Clear old archive folders... [13:12:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:56]tlvbuf is B6E9E640 [13:12:56]SAM_PROTO_ClearQueue [13:12:56]wFMCommunicate request_size=4 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 09 00 00 [13:12:56]Write to MH i2c: E2 08 00 93 40 80 09 00 00 00 00 00 00 45 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 93 40 00 90 00 47 [13:12:56]RAPDU: 90 00 [13:12:56]wFMCommunicate OK [13:12:56]SAM_PROTO_ClearQueue done [13:12:56]KKMCreateOFDPacket [13:12:56]OFDProtocolAddRootSTLVToBuf [13:12:56]FM_MakeSignedData [13:12:56]FM_MakeSignedData [13:12:56]SAM_PROTO_SignData [13:12:56]wFMCommunicate request_size=4 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 0D 01 02 [13:12:56]Write to MH i2c: E2 08 00 94 40 80 0D 01 02 00 00 00 00 4D [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 94 40 00 90 00 48 [13:12:56]RAPDU: 90 00 [13:12:56]wFMCommunicate OK [13:12:56]wFMCommunicate request_size=255 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 0B 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 DC 8D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D F0 02 00 35 04 06 00 87 [13:12:56]Write to MH i2c: E2 02 01 95 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 3E 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 0B 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 DC 8D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D F0 02 00 35 04 06 00 87 00 00 50 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 95 40 00 90 00 49 [13:12:56]RAPDU: 90 00 [13:12:56]wFMCommunicate OK [13:12:56]wFMCommunicate request_size=10 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 0D 02 02 05 11 F4 21 B0 92 [13:12:56]Write to MH i2c: E2 0D 00 96 40 80 0D 02 02 05 00 11 F4 21 B0 92 00 00 C2 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 96 40 00 90 00 4A [13:12:56]RAPDU: 90 00 [13:12:56]wFMCommunicate OK [13:12:56]wFMCommunicate request_size=4 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 0D 03 02 [13:12:56]Write to MH i2c: E2 08 00 97 40 80 0D 03 02 00 00 00 00 52 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:57]Read from MH i2c: E2 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: E2 0B 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: E2 0B 00 97 40 00 A9 17 E0 E6 C0 77 6B EE 90 00 69 [13:12:57]RAPDU: A9 17 E0 E6 C0 77 6B EE 90 00 [13:12:57]wFMCommunicate OK [13:12:57]SAM_PROTO_SignData done [13:12:57]FM_MakeSignedData done [13:12:57]CreateOFDProtocolMessage [13:12:57]wFMCommunicate request_size=4 [13:12:57]MH_SAM_APDU [13:12:57]CAPDU: 80 11 00 00 [13:12:57]Write to MH i2c: E2 08 00 98 40 80 11 00 00 00 00 00 00 52 [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:57]Read from MH i2c: E2 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: E2 17 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: E2 17 00 98 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [13:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:12:57]wFMCommunicate OK [13:12:57]CreateOFDProtocolMessage done [13:12:57]OFDSenderStorePacket 192573 [13:12:57]StoreOFDPacket docnum=192573 [13:12:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 56 20 07 01 06 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 0B 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 DC 8D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D F0 02 00 35 04 06 00 87 11 F4 21 B0 92 A9 17 E0 E6 C0 77 6B EE [13:12:57]CheckFolder [13:12:57]dirname=/storage/ofd_packets [13:12:57]CheckFolder done [13:12:57]ProducePacketName [13:12:57]name=ofd_packets/00192573 [13:12:57]NVStorageSaveData ofd_packets/00192573 [13:12:57]File name is /storage/ofd_packets/00192573 [13:12:57]Write 301 bytes [13:12:57]NVStorageSaveData done [13:12:57]OFDSenderStorePacket done [13:12:57]KKMCreateOFDPacket done [13:12:57]NVStorageSaveData kkm_last_timestamp [13:12:57]File name is /storage/kkm_last_timestamp [13:12:57]Write 4 bytes [13:12:57]NVStorageSaveData done [13:12:57]ExternCall_PrintAddStr [13:12:57]wPrintStart [13:12:57]Write to MH i2c: 01 00 00 99 40 D9 [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 07 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 07 00 99 40 00 00 00 00 00 FF 0F EE [13:12:57]RasterBufferAndPrint [13:12:57]line Счет N : (1)31893 [13:12:57]line ИНН: 02508201610067 [13:12:57]line Контрольно-Кассовый Чек [13:12:57]line ПРОДАЖА [13:12:57]line ТРК (МРК, ГНК) : 12 [13:12:57]line Товар: 2710124130 [13:12:57]line Аи-92-К-5 [13:12:57]line 20.030 * 66.90 [13:12:57]line = 1340.01 [13:12:57]line НДС 12% НСП 1% [13:12:57]line > о реализуемом товаре [13:12:57]line ИТОГО: 1340.01 [13:12:57]line НСП 1% : 11.86 [13:12:57]line НДС 12% : 142.30 [13:12:57]line Наличными: 0.00 [13:12:57]line Безнал.: 1340.01 [13:12:57]line Место: АЗС № 170 "Партнер Нефть" [13:12:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:12:57]line СНО: Общий режим [13:12:57]line Чек 121 28.10.2024 13:13 [13:12:57]line Смена: 543 ФФД: 1.0 [13:12:57]line ЗНМ: 0300000110 [13:12:57]line РНМ: 0000000000091776 [13:12:57]line Версия ККМ: 001 [13:12:57]line Платежная система: Кыргызкоммерцбанк [13:12:57]line ФМ: 0000000000871754 [13:12:57]line ФД: 192573 [13:12:57]line ФПД: 148511180042386 [13:12:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131300&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192573&fm=148511180042386&tin=02508201610067®Number=0000000000091776&sum=134001 [13:12:57]OFD Sender: Processing packet 192573 [packets to send 75, broken 74] [13:12:57]ProducePacketName [13:12:57]name=ofd_packets/00192573 [13:12:57]OFD Sender: To server: pG, [13:12:57]CommunicateWithHost lk.salyk.kg:30040 [13:12:57]ConnectInit lk.salyk.kg [13:12:57]written 0, free lines is 4095 [13:12:57]Connected sock=10 [13:12:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 56 20 07 01 06 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 0B 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 DC 8D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D F0 02 00 35 04 06 00 87 11 F4 21 B0 92 A9 17 E0 E6 C0 77 6B EE [13:12:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8E 25 47 00 28 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D F0 02 00 F4 03 04 00 A0 32 1F 67 B6 04 01 00 00 0E ED 7A 61 41 43 A1 6E [13:12:57]CommunicateWithHost err = 0 [13:12:57]CheckOFDResponse [13:12:57]1017 (14) - 77093643461234 [13:12:57]1041 (16) - 0000000000871754 [13:12:57]1040 (4) - 192573 [13:12:57]1012 (4) - 28.10.2024 06:43 [13:12:57]1206 (1) - 0 [13:12:57]OFD Sender: Remove packet 192573 [13:12:57]ProducePacketName [13:12:57]name=ofd_packets/00192573 [13:12:57]NVStorageDeleteData [13:12:57]Write to MH i2c: 01 00 00 C3 40 03 [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 07 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 07 00 C3 40 00 00 00 00 00 D9 0C EF [13:12:57]RasterBufferAndPrint [13:12:57]line [13:12:57]line [13:12:57]line [13:12:57]line [13:12:57]line [13:12:57]written 0, free lines is 3296 [13:12:57]MH_Cut [13:12:57]Write to MH i2c: D1 01 00 CA 40 01 DC [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: D1 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: D1 01 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: D1 01 00 CA 40 00 DB [13:12:57]Write to MH i2c: 01 00 00 CB 40 0B [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:58]OFD Sender: No OFD packet to send [13:12:58]*** Cut start [13:12:58]*** Partial cut [13:12:58]*** CUTSNS_PIN = 1 [13:12:58]*** CUTSNS_PIN = 0 [13:12:58]*** Brake cut motor [13:12:59]Read from MH i2c: 01 [13:12:59]MH_I2C_Read... [13:12:59]*** Stop cut motor [13:12:59]*** Cut end [13:12:59]Read from MH i2c: 01 07 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: 01 07 00 CB 40 00 00 00 00 00 FF 0F 20 [13:12:59]process_action close_receipt done [13:12:59]requested_data is exist [13:12:59]produce_requested_data [13:12:59]requested_item fm.sn is exist - process it [13:12:59]wFMCommunicate request_size=4 [13:12:59]MH_SAM_APDU [13:12:59]CAPDU: 80 11 00 00 [13:12:59]Write to MH i2c: E2 08 00 CC 40 80 11 00 00 00 00 00 00 86 [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:59]Read from MH i2c: E2 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 17 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 17 00 CC 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [13:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:12:59]wFMCommunicate OK [13:12:59]requested_item fd.num is exist - process it [13:12:59]SAM_PROTO_GetFieldsCounters [13:12:59]wFMCommunicate request_size=4 [13:12:59]MH_SAM_APDU [13:12:59]CAPDU: 80 13 00 00 [13:12:59]Write to MH i2c: E2 08 00 CD 40 80 13 00 00 00 00 00 00 89 [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:59]Read from MH i2c: E2 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 62 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 62 00 CD 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [13:12:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:59]wFMCommunicate OK [13:12:59]SAM_PROTO_GetFieldsCounters done [13:12:59]requested_item shift.num is exist - process it [13:12:59]requested_item shift.opened is exist - process it [13:12:59]req_shift_opened [13:12:59]FM_GetShiftState [13:12:59]SAM_PROTO_GetShiftState [13:12:59]wFMCommunicate request_size=4 [13:12:59]MH_SAM_APDU [13:12:59]CAPDU: 80 13 01 00 [13:12:59]Write to MH i2c: E2 08 00 CE 40 80 13 01 00 00 00 00 00 8B [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:59]Read from MH i2c: E2 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 0E 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 0E 00 CE 40 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DB [13:12:59]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:12:59]wFMCommunicate OK [13:12:59]SAM_PROTO_GetShiftState done [13:12:59]FM_GetShiftState done [13:12:59]req_shift_opened done [13:12:59]requested_item shift.open_date is exist - process it [13:12:59]req_shift_open_date [13:12:59]req_shift_open_date done [13:12:59]produce_requested_data done [13:12:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192573,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:12:59]process_action_free close_receipt [13:12:59]json_value_free [13:12:59]json_value_free done [13:12:59]process_json_proto returns [13:12:59]Send response to host [13:12:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192573,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:12:59]free response buf [13:12:59]execute_script done [13:12:59]execute_script returns [13:12:59]free content buf [13:12:59]Sock 7.Close socket [13:12:59]Sock 7.Thread stoped [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:13:59]accept exits with 9 [13:13:59]New connection [13:13:59]New thread 3066563940 created [13:13:59]Thread 3066707300 joined [13:13:59]Waiting for new connection... [13:13:59] Sock 9.Parse request [13:13:59]Sock 9.Check first char [13:13:59]Sock 9.First char is OK [13:13:59]request: POST /json_proto HTTP/1.0 [13:13:59]Method: POST [13:13:59]URL: /json_proto [13:13:59]Method is POST - this is cgi request [13:13:59]url: /json_proto [13:13:59]query_string will be loaded in cgi processing [13:13:59]execute_cgi json_proto POST (null) [13:13:59]execute_cgi path=json_proto method=POST [13:13:59]POST find Content-Length [13:13:59]Host: 172.17.63.131:8080 [13:13:59]Content-Length: 676 [13:13:59]Content-Type: application/json [13:13:59] [13:13:59]POST finish read [13:13:59]Found Content-Length = 676 [13:13:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:59]execute_script... [13:13:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:59]POST & json_proto [13:13:59]process_json_proto [13:13:59]json parsed OK: [13:13:59]protocol is kg_v1.0 [13:13:59]action value=close_receipt [13:13:59]process_action close_receipt [13:13:59]cmd_close_receipt [13:13:59]MH_GetDate [13:13:59]Write to MH i2c: F0 00 00 CF 40 FE [13:13:59]Write i2c OK [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: F0 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: F0 09 00 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: F0 09 00 CF 40 00 1C 8E 1F 67 22 05 6E 64 30 [13:13:59]GetLastDocTimeStamp 1730121180 [13:13:59]current date 1730121244 [13:13:59]FM_GetShiftState [13:13:59]SAM_PROTO_GetShiftState [13:13:59]wFMCommunicate request_size=4 [13:13:59]MH_SAM_APDU [13:13:59]CAPDU: 80 13 01 00 [13:13:59]Write to MH i2c: E2 08 00 D0 40 80 13 01 00 00 00 00 00 8D [13:13:59]Write i2c OK [13:13:59]MH_I2C_Read... [13:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:59]Read from MH i2c: E2 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: E2 0E 00 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: E2 0E 00 D0 40 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DD [13:13:59]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:13:59]wFMCommunicate OK [13:13:59]SAM_PROTO_GetShiftState done [13:13:59]FM_GetShiftState done [13:13:59]opened in 1730075620 [13:13:59]opened+sec_in_day 1730162020 [13:13:59]quantity*price = 30038 [13:13:59]sum+1 = 30039 [13:13:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 122 28.10.2024 13:14 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192574 ФПД: 26905600625196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131404&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192574&fm=26905600625196&tin=02508201610067®Number=0000000000091776&sum=30000 [13:14:00]StoreToDocumentArchive [13:14:00]shift 543 fd 192574 [13:14:00]save to /storage/0543/doc_00192574 [13:14:00]save last doc name /storage/0543/doc_00192574 to /storage/kkm_last_doc_name [13:14:00]save OK [13:14:00]Clear old archive folders... [13:14:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:14:00]tlvbuf is B6E9E750 [13:14:00]SAM_PROTO_ClearQueue [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 09 00 00 [13:14:00]Write to MH i2c: E2 08 00 DD 40 80 09 00 00 00 00 00 00 8F [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 03 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 03 00 DD 40 00 90 00 91 [13:14:00]RAPDU: 90 00 [13:14:00]wFMCommunicate OK [13:14:00]SAM_PROTO_ClearQueue done [13:14:00]KKMCreateOFDPacket [13:14:00]OFDProtocolAddRootSTLVToBuf [13:14:00]FM_MakeSignedData [13:14:00]FM_MakeSignedData [13:14:00]SAM_PROTO_SignData [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 0D 01 02 [13:14:00]Write to MH i2c: E2 08 00 DE 40 80 0D 01 02 00 00 00 00 97 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 03 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 03 00 DE 40 00 90 00 92 [13:14:00]RAPDU: 90 00 [13:14:00]wFMCommunicate OK [13:14:00]wFMCommunicate request_size=255 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 1C 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E F0 02 00 35 04 06 00 18 [13:14:00]Write to MH i2c: E2 02 01 DF 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 1C 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E F0 02 00 35 04 06 00 18 00 00 32 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 03 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 03 00 DF 40 00 90 00 93 [13:14:00]RAPDU: 90 00 [13:14:00]wFMCommunicate OK [13:14:00]wFMCommunicate request_size=10 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 0D 02 02 05 78 72 C4 8A 2C [13:14:00]Write to MH i2c: E2 0D 00 E0 40 80 0D 02 02 05 00 78 72 C4 8A 2C 00 00 08 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 03 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 03 00 E0 40 00 90 00 94 [13:14:00]RAPDU: 90 00 [13:14:00]wFMCommunicate OK [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 0D 03 02 [13:14:00]Write to MH i2c: E2 08 00 E1 40 80 0D 03 02 00 00 00 00 9C [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 0B 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 0B 00 E1 40 00 F8 BD E6 7F CF 2F 11 85 90 00 4B [13:14:00]RAPDU: F8 BD E6 7F CF 2F 11 85 90 00 [13:14:00]wFMCommunicate OK [13:14:00]SAM_PROTO_SignData done [13:14:00]FM_MakeSignedData done [13:14:00]CreateOFDProtocolMessage [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 11 00 00 [13:14:00]Write to MH i2c: E2 08 00 E2 40 80 11 00 00 00 00 00 00 9C [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 17 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 17 00 E2 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EF [13:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:14:00]wFMCommunicate OK [13:14:00]CreateOFDProtocolMessage done [13:14:00]OFDSenderStorePacket 192574 [13:14:00]StoreOFDPacket docnum=192574 [13:14:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 77 F2 07 01 BD 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 1C 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E F0 02 00 35 04 06 00 18 78 72 C4 8A 2C F8 BD E6 7F CF 2F 11 85 [13:14:00]CheckFolder [13:14:00]dirname=/storage/ofd_packets [13:14:00]CheckFolder done [13:14:00]ProducePacketName [13:14:00]name=ofd_packets/00192574 [13:14:00]NVStorageSaveData ofd_packets/00192574 [13:14:00]File name is /storage/ofd_packets/00192574 [13:14:00]Write 301 bytes [13:14:00]NVStorageSaveData done [13:14:00]OFDSenderStorePacket done [13:14:00]KKMCreateOFDPacket done [13:14:00]NVStorageSaveData kkm_last_timestamp [13:14:00]File name is /storage/kkm_last_timestamp [13:14:00]Write 4 bytes [13:14:00]NVStorageSaveData done [13:14:00]ExternCall_PrintAddStr [13:14:00]wPrintStart [13:14:00]Write to MH i2c: 01 00 00 E3 40 23 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 E3 40 00 00 00 00 00 FF 0F 38 [13:14:00]RasterBufferAndPrint [13:14:00]line Счет N : (1)31894 [13:14:00]line ИНН: 02508201610067 [13:14:00]line Контрольно-Кассовый Чек [13:14:00]line ПРОДАЖА [13:14:00]line ТРК (МРК, ГНК) : 21 [13:14:00]line Товар: 2710124130 [13:14:00]line Аи-92-К-5 [13:14:00]line 4.490 * 66.90 [13:14:00]line = 300.38 [13:14:00]line НДС 12% НСП 1% [13:14:00]line > о реализуемом товаре [13:14:00]line ОКРУГЛЕНИЕ: -0.38 [13:14:00]line ИТОГО: 300.00 [13:14:00]line Внесено: 300.00 [13:14:00]line СДАЧА: 0.00 [13:14:00]line НСП 1% : 2.66 [13:14:00]line НДС 12% : 31.90 [13:14:00]line Наличными: 300.00 [13:14:00]line Безнал.: 0.00 [13:14:00]line Место: АЗС № 170 "Партнер Нефть" [13:14:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:14:00]line СНО: Общий режим [13:14:00]line Чек 122 28.10.2024 13:14 [13:14:00]line Смена: 543 ФФД: 1.0 [13:14:00]line ЗНМ: 0300000110 [13:14:00]line РНМ: 0000000000091776 [13:14:00]line Версия ККМ: 001 [13:14:00]line ФМ: 0000000000871754 [13:14:00]line ФД: 192574 [13:14:00]line ФПД: 26905600625196 [13:14:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131404&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192574&fm=26905600625196&tin=02508201610067®Number=0000000000091776&sum=30000 [13:14:00]written 0, free lines is 4095 [13:14:00]OFD Sender: Processing packet 192574 [packets to send 75, broken 74] [13:14:00]ProducePacketName [13:14:00]name=ofd_packets/00192574 [13:14:00]OFD Sender: To server: pG, [13:14:00]CommunicateWithHost lk.salyk.kg:30040 [13:14:00]ConnectInit lk.salyk.kg [13:14:00]Connected sock=10 [13:14:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 77 F2 07 01 BD 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 1C 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E F0 02 00 35 04 06 00 18 78 72 C4 8A 2C F8 BD E6 7F CF 2F 11 85 [13:14:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BD 20 47 00 88 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E F0 02 00 F4 03 04 00 E0 32 1F 67 B6 04 01 00 00 64 7C 33 9F B2 67 B7 5C [13:14:01]CommunicateWithHost err = 0 [13:14:01]CheckOFDResponse [13:14:01]1017 (14) - 77093643461234 [13:14:01]1041 (16) - 0000000000871754 [13:14:01]1040 (4) - 192574 [13:14:01]1012 (4) - 28.10.2024 06:44 [13:14:01]1206 (1) - 0 [13:14:01]OFD Sender: Remove packet 192574 [13:14:01]ProducePacketName [13:14:01]name=ofd_packets/00192574 [13:14:01]NVStorageDeleteData [13:14:01]Write to MH i2c: 01 00 00 0E 41 4F [13:14:01]Write i2c OK [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: 01 [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: 01 07 00 [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: 01 07 00 0E 41 00 00 00 00 00 B2 0C 14 [13:14:01]RasterBufferAndPrint [13:14:01]line [13:14:01]line [13:14:01]line [13:14:01]line [13:14:01]line [13:14:01]written 0, free lines is 3257 [13:14:01]MH_Cut [13:14:01]Write to MH i2c: D1 01 00 15 41 01 28 [13:14:01]Write i2c OK [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: D1 [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: D1 01 00 [13:14:01]MH_I2C_Read... [13:14:01]Read from MH i2c: D1 01 00 15 41 00 27 [13:14:01]Write to MH i2c: 01 00 00 16 41 57 [13:14:01]Write i2c OK [13:14:01]MH_I2C_Read... [13:14:01]OFD Sender: No OFD packet to send [13:14:02]*** Cut start [13:14:02]*** Partial cut [13:14:02]*** CUTSNS_PIN = 1 [13:14:02]*** CUTSNS_PIN = 0 [13:14:02]*** Brake cut motor [13:14:02]Read from MH i2c: 01 [13:14:02]MH_I2C_Read... [13:14:02]*** Stop cut motor [13:14:02]*** Cut end [13:14:02]Read from MH i2c: 01 07 00 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: 01 07 00 16 41 00 00 00 00 00 FF 0F 6C [13:14:02]process_action close_receipt done [13:14:02]requested_data is exist [13:14:02]produce_requested_data [13:14:02]requested_item fm.sn is exist - process it [13:14:02]wFMCommunicate request_size=4 [13:14:02]MH_SAM_APDU [13:14:02]CAPDU: 80 11 00 00 [13:14:02]Write to MH i2c: E2 08 00 17 41 80 11 00 00 00 00 00 00 D2 [13:14:02]Write i2c OK [13:14:02]MH_I2C_Read... [13:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:02]Read from MH i2c: E2 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 17 00 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 17 00 17 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 25 [13:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:14:02]wFMCommunicate OK [13:14:02]requested_item fd.num is exist - process it [13:14:02]SAM_PROTO_GetFieldsCounters [13:14:02]wFMCommunicate request_size=4 [13:14:02]MH_SAM_APDU [13:14:02]CAPDU: 80 13 00 00 [13:14:02]Write to MH i2c: E2 08 00 18 41 80 13 00 00 00 00 00 00 D5 [13:14:02]Write i2c OK [13:14:02]MH_I2C_Read... [13:14:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:02]Read from MH i2c: E2 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 62 00 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 62 00 18 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [13:14:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:02]wFMCommunicate OK [13:14:02]SAM_PROTO_GetFieldsCounters done [13:14:02]requested_item shift.num is exist - process it [13:14:02]requested_item shift.opened is exist - process it [13:14:02]req_shift_opened [13:14:02]FM_GetShiftState [13:14:02]SAM_PROTO_GetShiftState [13:14:02]wFMCommunicate request_size=4 [13:14:02]MH_SAM_APDU [13:14:02]CAPDU: 80 13 01 00 [13:14:02]Write to MH i2c: E2 08 00 19 41 80 13 01 00 00 00 00 00 D7 [13:14:02]Write i2c OK [13:14:02]MH_I2C_Read... [13:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:02]Read from MH i2c: E2 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 0E 00 [13:14:02]MH_I2C_Read... [13:14:02]Read from MH i2c: E2 0E 00 19 41 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 27 [13:14:02]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:14:02]wFMCommunicate OK [13:14:02]SAM_PROTO_GetShiftState done [13:14:02]FM_GetShiftState done [13:14:02]req_shift_opened done [13:14:02]requested_item shift.open_date is exist - process it [13:14:02]req_shift_open_date [13:14:02]req_shift_open_date done [13:14:02]produce_requested_data done [13:14:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192574,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:14:02]process_action_free close_receipt [13:14:02]json_value_free [13:14:02]json_value_free done [13:14:02]process_json_proto returns [13:14:02]Send response to host [13:14:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192574,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:14:02]free response buf [13:14:02]execute_script done [13:14:02]execute_script returns [13:14:02]free content buf [13:14:02]Sock 9.Close socket [13:14:02]Sock 9.Thread stoped [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:20]accept exits with 7 [13:15:20]New connection [13:15:20]New thread 3066707300 created [13:15:20]Thread 3066563940 joined [13:15:20]Waiting for new connection... [13:15:20] Sock 7.Parse request [13:15:20]Sock 7.Check first char [13:15:20]Sock 7.First char is OK [13:15:20]request: POST /json_proto HTTP/1.0 [13:15:20]Method: POST [13:15:20]URL: /json_proto [13:15:20]Method is POST - this is cgi request [13:15:20]url: /json_proto [13:15:20]query_string will be loaded in cgi processing [13:15:20]execute_cgi json_proto POST (null) [13:15:20]execute_cgi path=json_proto method=POST [13:15:20]POST find Content-Length [13:15:20]Host: 172.17.63.131:8080 [13:15:20]Content-Length: 677 [13:15:20]Content-Type: application/json [13:15:20] [13:15:20]POST finish read [13:15:20]Found Content-Length = 677 [13:15:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:20]execute_script... [13:15:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:20]POST & json_proto [13:15:20]process_json_proto [13:15:20]json parsed OK: [13:15:20]protocol is kg_v1.0 [13:15:20]action value=close_receipt [13:15:20]process_action close_receipt [13:15:20]cmd_close_receipt [13:15:20]MH_GetDate [13:15:20]Write to MH i2c: F0 00 00 1A 41 4A [13:15:20]Write i2c OK [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: F0 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: F0 09 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: F0 09 00 1A 41 00 6D 8E 1F 67 22 05 6E 64 CD [13:15:20]GetLastDocTimeStamp 1730121244 [13:15:20]current date 1730121325 [13:15:20]FM_GetShiftState [13:15:20]SAM_PROTO_GetShiftState [13:15:20]wFMCommunicate request_size=4 [13:15:20]MH_SAM_APDU [13:15:20]CAPDU: 80 13 01 00 [13:15:20]Write to MH i2c: E2 08 00 1B 41 80 13 01 00 00 00 00 00 D9 [13:15:20]Write i2c OK [13:15:20]MH_I2C_Read... [13:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:20]Read from MH i2c: E2 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 0E 00 [13:15:20]MH_I2C_Read... [13:15:20]Read from MH i2c: E2 0E 00 1B 41 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 29 [13:15:20]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:15:20]wFMCommunicate OK [13:15:20]SAM_PROTO_GetShiftState done [13:15:20]FM_GetShiftState done [13:15:20]opened in 1730075620 [13:15:20]opened+sec_in_day 1730162020 [13:15:20]quantity*price = 80012 [13:15:20]sum+1 = 80013 [13:15:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 123 28.10.2024 13:15 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192575 ФПД: 144039356955087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131525&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192575&fm=144039356955087&tin=02508201610067®Number=0000000000091776&sum=80000 [13:15:21]StoreToDocumentArchive [13:15:21]shift 543 fd 192575 [13:15:21]save to /storage/0543/doc_00192575 [13:15:21]save last doc name /storage/0543/doc_00192575 to /storage/kkm_last_doc_name [13:15:21]save OK [13:15:21]Clear old archive folders... [13:15:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:21]tlvbuf is 01990E50 [13:15:21]SAM_PROTO_ClearQueue [13:15:21]wFMCommunicate request_size=4 [13:15:21]MH_SAM_APDU [13:15:21]CAPDU: 80 09 00 00 [13:15:21]Write to MH i2c: E2 08 00 28 41 80 09 00 00 00 00 00 00 DB [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:21]Read from MH i2c: E2 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 03 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 03 00 28 41 00 90 00 DD [13:15:21]RAPDU: 90 00 [13:15:21]wFMCommunicate OK [13:15:21]SAM_PROTO_ClearQueue done [13:15:21]KKMCreateOFDPacket [13:15:21]OFDProtocolAddRootSTLVToBuf [13:15:21]FM_MakeSignedData [13:15:21]FM_MakeSignedData [13:15:21]SAM_PROTO_SignData [13:15:21]wFMCommunicate request_size=4 [13:15:21]MH_SAM_APDU [13:15:21]CAPDU: 80 0D 01 02 [13:15:21]Write to MH i2c: E2 08 00 29 41 80 0D 01 02 00 00 00 00 E3 [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:21]OFD Sender: No OFD packet to send [13:15:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:21]Read from MH i2c: E2 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 03 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 03 00 29 41 00 90 00 DE [13:15:21]RAPDU: 90 00 [13:15:21]wFMCommunicate OK [13:15:21]wFMCommunicate request_size=255 [13:15:21]MH_SAM_APDU [13:15:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 6D 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F F0 02 00 35 04 06 00 83 [13:15:21]Write to MH i2c: E2 02 01 2A 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 6D 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F F0 02 00 35 04 06 00 83 00 00 34 [13:15:21]Write i2c OK [13:15:21]MH_I2C_Read... [13:15:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:21]Read from MH i2c: E2 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 03 00 [13:15:21]MH_I2C_Read... [13:15:21]Read from MH i2c: E2 03 00 2A 41 00 90 00 DF [13:15:21]RAPDU: 90 00 [13:15:21]wFMCommunicate OK [13:15:21]wFMCommunicate request_size=10 [13:15:21]MH_SAM_APDU [13:15:21]CAPDU: 80 0D 02 02 05 00 C6 B4 79 CF [13:15:21]Write to MH i2c: E2 0D 00 2B 41 80 0D 02 02 05 00 00 C6 B4 79 CF 00 00 B2 [13:15:22]Write i2c OK [13:15:22]MH_I2C_Read... [13:15:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:22]Read from MH i2c: E2 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 03 00 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 03 00 2B 41 00 90 00 E0 [13:15:22]RAPDU: 90 00 [13:15:22]wFMCommunicate OK [13:15:22]wFMCommunicate request_size=4 [13:15:22]MH_SAM_APDU [13:15:22]CAPDU: 80 0D 03 02 [13:15:22]Write to MH i2c: E2 08 00 2C 41 80 0D 03 02 00 00 00 00 E8 [13:15:22]Write i2c OK [13:15:22]MH_I2C_Read... [13:15:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:22]Read from MH i2c: E2 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 0B 00 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 0B 00 2C 41 00 09 E6 AE 4C 2A A5 B7 68 90 00 C0 [13:15:22]RAPDU: 09 E6 AE 4C 2A A5 B7 68 90 00 [13:15:22]wFMCommunicate OK [13:15:22]SAM_PROTO_SignData done [13:15:22]FM_MakeSignedData done [13:15:22]CreateOFDProtocolMessage [13:15:22]wFMCommunicate request_size=4 [13:15:22]MH_SAM_APDU [13:15:22]CAPDU: 80 11 00 00 [13:15:22]Write to MH i2c: E2 08 00 2D 41 80 11 00 00 00 00 00 00 E8 [13:15:22]Write i2c OK [13:15:22]MH_I2C_Read... [13:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:22]Read from MH i2c: E2 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 17 00 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: E2 17 00 2D 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3B [13:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:15:22]wFMCommunicate OK [13:15:22]CreateOFDProtocolMessage done [13:15:22]OFDSenderStorePacket 192575 [13:15:22]StoreOFDPacket docnum=192575 [13:15:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5B 3A 07 01 F3 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 6D 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F F0 02 00 35 04 06 00 83 00 C6 B4 79 CF 09 E6 AE 4C 2A A5 B7 68 [13:15:22]CheckFolder [13:15:22]dirname=/storage/ofd_packets [13:15:22]CheckFolder done [13:15:22]ProducePacketName [13:15:22]name=ofd_packets/00192575 [13:15:22]NVStorageSaveData ofd_packets/00192575 [13:15:22]File name is /storage/ofd_packets/00192575 [13:15:22]Write 301 bytes [13:15:22]NVStorageSaveData done [13:15:22]OFDSenderStorePacket done [13:15:22]KKMCreateOFDPacket done [13:15:22]NVStorageSaveData kkm_last_timestamp [13:15:22]File name is /storage/kkm_last_timestamp [13:15:22]Write 4 bytes [13:15:22]NVStorageSaveData done [13:15:22]ExternCall_PrintAddStr [13:15:22]wPrintStart [13:15:22]Write to MH i2c: 01 00 00 2E 41 6F [13:15:22]Write i2c OK [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: 01 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: 01 07 00 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: 01 07 00 2E 41 00 00 00 00 00 FF 0F 84 [13:15:22]RasterBufferAndPrint [13:15:22]line Счет N : (1)31896 [13:15:22]line ИНН: 02508201610067 [13:15:22]line Контрольно-Кассовый Чек [13:15:22]line ПРОДАЖА [13:15:22]line ТРК (МРК, ГНК) : 21 [13:15:22]line Товар: 2710124130 [13:15:22]line Аи-92-К-5 [13:15:22]line 11.960 * 66.90 [13:15:22]line = 800.12 [13:15:22]line НДС 12% НСП 1% [13:15:22]line > о реализуемом товаре [13:15:22]line ОКРУГЛЕНИЕ: -0.12 [13:15:22]line ИТОГО: 800.00 [13:15:22]line Внесено: 800.00 [13:15:22]line СДАЧА: 0.00 [13:15:22]line НСП 1% : 7.08 [13:15:22]line НДС 12% : 84.97 [13:15:22]line Наличными: 800.00 [13:15:22]line Безнал.: 0.00 [13:15:22]line Место: АЗС № 170 "Партнер Нефть" [13:15:22]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:15:22]line СНО: Общий режим [13:15:22]line Чек 123 28.10.2024 13:15 [13:15:22]line Смена: 543 ФФД: 1.0 [13:15:22]line ЗНМ: 0300000110 [13:15:22]line РНМ: 0000000000091776 [13:15:22]line Версия ККМ: 001 [13:15:22]line ФМ: 0000000000871754 [13:15:22]line ФД: 192575 [13:15:22]line ФПД: 144039356955087 [13:15:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131525&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192575&fm=144039356955087&tin=02508201610067®Number=0000000000091776&sum=80000 [13:15:22]OFD Sender: Processing packet 192575 [packets to send 75, broken 74] [13:15:22]ProducePacketName [13:15:22]name=ofd_packets/00192575 [13:15:22]OFD Sender: To server: pG, [13:15:22]CommunicateWithHost lk.salyk.kg:30040 [13:15:22]ConnectInit lk.salyk.kg [13:15:22]written 0, free lines is 4095 [13:15:22]Connected sock=11 [13:15:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5B 3A 07 01 F3 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 6D 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F F0 02 00 35 04 06 00 83 00 C6 B4 79 CF 09 E6 AE 4C 2A A5 B7 68 [13:15:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 95 19 47 00 54 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F F0 02 00 F4 03 04 00 31 33 1F 67 B6 04 01 00 00 9A A7 8F A2 6A C3 D9 C9 [13:15:22]CommunicateWithHost err = 0 [13:15:22]CheckOFDResponse [13:15:22]1017 (14) - 77093643461234 [13:15:22]1041 (16) - 0000000000871754 [13:15:22]1040 (4) - 192575 [13:15:22]1012 (4) - 28.10.2024 06:46 [13:15:22]1206 (1) - 0 [13:15:22]OFD Sender: Remove packet 192575 [13:15:22]ProducePacketName [13:15:22]name=ofd_packets/00192575 [13:15:22]NVStorageDeleteData [13:15:22]Write to MH i2c: 01 00 00 59 41 9A [13:15:22]Write i2c OK [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: 01 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: 01 07 00 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: 01 07 00 59 41 00 00 00 00 00 AA 0C 57 [13:15:22]RasterBufferAndPrint [13:15:22]line [13:15:22]line [13:15:22]line [13:15:22]line [13:15:22]line [13:15:22]written 0, free lines is 3248 [13:15:22]MH_Cut [13:15:22]Write to MH i2c: D1 01 00 60 41 01 73 [13:15:22]Write i2c OK [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: D1 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: D1 01 00 [13:15:22]MH_I2C_Read... [13:15:22]Read from MH i2c: D1 01 00 60 41 00 72 [13:15:22]Write to MH i2c: 01 00 00 61 41 A2 [13:15:22]Write i2c OK [13:15:22]MH_I2C_Read... [13:15:23]OFD Sender: No OFD packet to send [13:15:23]*** Cut start [13:15:23]*** Partial cut [13:15:23]*** CUTSNS_PIN = 1 [13:15:23]*** CUTSNS_PIN = 0 [13:15:24]*** Brake cut motor [13:15:24]Read from MH i2c: 01 [13:15:24]MH_I2C_Read... [13:15:24]*** Stop cut motor [13:15:24]*** Cut end [13:15:24]Read from MH i2c: 01 07 00 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: 01 07 00 61 41 00 00 00 00 00 FF 0F B7 [13:15:24]process_action close_receipt done [13:15:24]requested_data is exist [13:15:24]produce_requested_data [13:15:24]requested_item fm.sn is exist - process it [13:15:24]wFMCommunicate request_size=4 [13:15:24]MH_SAM_APDU [13:15:24]CAPDU: 80 11 00 00 [13:15:24]Write to MH i2c: E2 08 00 62 41 80 11 00 00 00 00 00 00 1D [13:15:24]Write i2c OK [13:15:24]MH_I2C_Read... [13:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:24]Read from MH i2c: E2 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: E2 17 00 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: E2 17 00 62 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [13:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:15:24]wFMCommunicate OK [13:15:24]requested_item fd.num is exist - process it [13:15:24]SAM_PROTO_GetFieldsCounters [13:15:24]wFMCommunicate request_size=4 [13:15:24]MH_SAM_APDU [13:15:24]CAPDU: 80 13 00 00 [13:15:24]Write to MH i2c: E2 08 00 63 41 80 13 00 00 00 00 00 00 20 [13:15:24]Write i2c OK [13:15:24]MH_I2C_Read... [13:15:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:24]Read from MH i2c: E2 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: E2 62 00 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: E2 62 00 63 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [13:15:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:24]wFMCommunicate OK [13:15:24]SAM_PROTO_GetFieldsCounters done [13:15:24]requested_item shift.num is exist - process it [13:15:24]requested_item shift.opened is exist - process it [13:15:24]req_shift_opened [13:15:24]FM_GetShiftState [13:15:24]SAM_PROTO_GetShiftState [13:15:24]wFMCommunicate request_size=4 [13:15:24]MH_SAM_APDU [13:15:24]CAPDU: 80 13 01 00 [13:15:24]Write to MH i2c: E2 08 00 64 41 80 13 01 00 00 00 00 00 22 [13:15:24]Write i2c OK [13:15:24]MH_I2C_Read... [13:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:24]Read from MH i2c: E2 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: E2 0E 00 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: E2 0E 00 64 41 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 72 [13:15:24]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:15:24]wFMCommunicate OK [13:15:24]SAM_PROTO_GetShiftState done [13:15:24]FM_GetShiftState done [13:15:24]req_shift_opened done [13:15:24]requested_item shift.open_date is exist - process it [13:15:24]req_shift_open_date [13:15:24]req_shift_open_date done [13:15:24]produce_requested_data done [13:15:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192575,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:15:24]process_action_free close_receipt [13:15:24]json_value_free [13:15:24]json_value_free done [13:15:24]process_json_proto returns [13:15:24]Send response to host [13:15:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192575,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:15:24]free response buf [13:15:24]execute_script done [13:15:24]execute_script returns [13:15:24]free content buf [13:15:24]Sock 7.Close socket [13:15:24]Sock 7.Thread stoped [13:15:24]accept exits with 9 [13:15:24]New connection [13:15:24]New thread 3066563940 created [13:15:24]Thread 3066707300 joined [13:15:24]Waiting for new connection... [13:15:24] Sock 9.Parse request [13:15:24]Sock 9.Check first char [13:15:24]Sock 9.First char is OK [13:15:24]request: POST /json_proto HTTP/1.0 [13:15:24]Method: POST [13:15:24]URL: /json_proto [13:15:24]Method is POST - this is cgi request [13:15:24]url: /json_proto [13:15:24]query_string will be loaded in cgi processing [13:15:24]execute_cgi json_proto POST (null) [13:15:24]execute_cgi path=json_proto method=POST [13:15:24]POST find Content-Length [13:15:24]Host: 172.17.63.131:8080 [13:15:24]Content-Length: 983 [13:15:24]Content-Type: application/json [13:15:24] [13:15:24]POST finish read [13:15:24]Found Content-Length = 983 [13:15:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:24]execute_script... [13:15:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:24]POST & json_proto [13:15:24]process_json_proto [13:15:24]json parsed OK: [13:15:24]protocol is kg_v1.0 [13:15:24]action value=close_receipt [13:15:24]process_action close_receipt [13:15:24]cmd_close_receipt [13:15:24]MH_GetDate [13:15:24]Write to MH i2c: F0 00 00 65 41 95 [13:15:24]Write i2c OK [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: F0 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: F0 09 00 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: F0 09 00 65 41 00 72 8E 1F 67 22 05 6E 64 1D [13:15:24]GetLastDocTimeStamp 1730121325 [13:15:24]current date 1730121330 [13:15:24]FM_GetShiftState [13:15:24]SAM_PROTO_GetShiftState [13:15:24]wFMCommunicate request_size=4 [13:15:24]MH_SAM_APDU [13:15:24]CAPDU: 80 13 01 00 [13:15:24]Write to MH i2c: E2 08 00 66 41 80 13 01 00 00 00 00 00 24 [13:15:24]Write i2c OK [13:15:24]MH_I2C_Read... [13:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:24]Read from MH i2c: E2 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: E2 0E 00 [13:15:24]MH_I2C_Read... [13:15:24]Read from MH i2c: E2 0E 00 66 41 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 74 [13:15:24]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:15:24]wFMCommunicate OK [13:15:24]SAM_PROTO_GetShiftState done [13:15:24]FM_GetShiftState done [13:15:24]opened in 1730075620 [13:15:24]opened+sec_in_day 1730162020 [13:15:24]quantity*price = 200006 [13:15:24]sum+1 = 200008 [13:15:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 124 28.10.2024 13:15 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 30.35 сом ФМ: 0000000000871754 ФД: 192576 ФПД: 196761668090104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131530&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192576&fm=196761668090104&tin=02508201610067®Number=0000000000091776&sum=200000 [13:15:26]StoreToDocumentArchive [13:15:26]shift 543 fd 192576 [13:15:26]save to /storage/0543/doc_00192576 [13:15:26]save last doc name /storage/0543/doc_00192576 to /storage/kkm_last_doc_name [13:15:26]save OK [13:15:26]Clear old archive folders... [13:15:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:26]tlvbuf is 01AB3A10 [13:15:26]SAM_PROTO_ClearQueue [13:15:26]wFMCommunicate request_size=4 [13:15:26]MH_SAM_APDU [13:15:26]CAPDU: 80 09 00 00 [13:15:26]Write to MH i2c: E2 08 00 73 41 80 09 00 00 00 00 00 00 26 [13:15:26]Write i2c OK [13:15:26]MH_I2C_Read... [13:15:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:26]Read from MH i2c: E2 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 03 00 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 03 00 73 41 00 90 00 28 [13:15:26]RAPDU: 90 00 [13:15:26]wFMCommunicate OK [13:15:26]SAM_PROTO_ClearQueue done [13:15:26]KKMCreateOFDPacket [13:15:26]OFDProtocolAddRootSTLVToBuf [13:15:26]FM_MakeSignedData [13:15:26]FM_MakeSignedData [13:15:26]SAM_PROTO_SignData [13:15:26]wFMCommunicate request_size=4 [13:15:26]MH_SAM_APDU [13:15:26]CAPDU: 80 0D 01 02 [13:15:26]Write to MH i2c: E2 08 00 74 41 80 0D 01 02 00 00 00 00 2E [13:15:26]Write i2c OK [13:15:26]MH_I2C_Read... [13:15:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:26]Read from MH i2c: E2 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 03 00 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 03 00 74 41 00 90 00 29 [13:15:26]RAPDU: 90 00 [13:15:26]wFMCommunicate OK [13:15:26]wFMCommunicate request_size=255 [13:15:26]MH_SAM_APDU [13:15:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 72 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 F0 02 00 35 04 06 00 B2 [13:15:26]Write to MH i2c: E2 02 01 75 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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 72 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 F0 02 00 35 04 06 00 B2 00 00 50 [13:15:26]Write i2c OK [13:15:26]MH_I2C_Read... [13:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:26]Read from MH i2c: E2 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 03 00 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 03 00 75 41 00 90 00 2A [13:15:26]RAPDU: 90 00 [13:15:26]wFMCommunicate OK [13:15:26]wFMCommunicate request_size=10 [13:15:26]MH_SAM_APDU [13:15:26]CAPDU: 80 0D 02 02 05 F4 25 54 F8 F8 [13:15:26]Write to MH i2c: E2 0D 00 76 41 80 0D 02 02 05 00 F4 25 54 F8 F8 00 00 98 [13:15:26]Write i2c OK [13:15:26]MH_I2C_Read... [13:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:26]Read from MH i2c: E2 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 03 00 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 03 00 76 41 00 90 00 2B [13:15:26]RAPDU: 90 00 [13:15:26]wFMCommunicate OK [13:15:26]wFMCommunicate request_size=4 [13:15:26]MH_SAM_APDU [13:15:26]CAPDU: 80 0D 03 02 [13:15:26]Write to MH i2c: E2 08 00 77 41 80 0D 03 02 00 00 00 00 33 [13:15:26]Write i2c OK [13:15:26]MH_I2C_Read... [13:15:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:26]Read from MH i2c: E2 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 0B 00 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 0B 00 77 41 00 2C DD 17 9C 2B 4A 9D EC 90 00 EE [13:15:26]RAPDU: 2C DD 17 9C 2B 4A 9D EC 90 00 [13:15:26]wFMCommunicate OK [13:15:26]SAM_PROTO_SignData done [13:15:26]FM_MakeSignedData done [13:15:26]CreateOFDProtocolMessage [13:15:26]wFMCommunicate request_size=4 [13:15:26]MH_SAM_APDU [13:15:26]CAPDU: 80 11 00 00 [13:15:26]Write to MH i2c: E2 08 00 78 41 80 11 00 00 00 00 00 00 33 [13:15:26]Write i2c OK [13:15:26]MH_I2C_Read... [13:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:26]Read from MH i2c: E2 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 17 00 [13:15:26]MH_I2C_Read... [13:15:26]Read from MH i2c: E2 17 00 78 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 86 [13:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:15:26]wFMCommunicate OK [13:15:26]CreateOFDProtocolMessage done [13:15:26]OFDSenderStorePacket 192576 [13:15:26]StoreOFDPacket docnum=192576 [13:15:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 35 52 07 01 DC 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 72 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 F0 02 00 35 04 06 00 B2 F4 25 54 F8 F8 2C DD 17 9C 2B 4A 9D EC [13:15:26]CheckFolder [13:15:26]dirname=/storage/ofd_packets [13:15:26]CheckFolder done [13:15:26]ProducePacketName [13:15:26]name=ofd_packets/00192576 [13:15:26]NVStorageSaveData ofd_packets/00192576 [13:15:26]File name is /storage/ofd_packets/00192576 [13:15:26]Write 301 bytes [13:15:26]NVStorageSaveData done [13:15:26]OFDSenderStorePacket done [13:15:26]KKMCreateOFDPacket done [13:15:26]NVStorageSaveData kkm_last_timestamp [13:15:26]File name is /storage/kkm_last_timestamp [13:15:26]Write 4 bytes [13:15:26]NVStorageSaveData done [13:15:26]ExternCall_PrintAddStr [13:15:26]wPrintStart [13:15:27]Write to MH i2c: 01 00 00 79 41 BA [13:15:27]Write i2c OK [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: 01 [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: 01 07 00 [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: 01 07 00 79 41 00 00 00 00 00 FF 0F CF [13:15:27]RasterBufferAndPrint [13:15:27]line Счет N : (1)31895 [13:15:27]line ИНН: 02508201610067 [13:15:27]line Контрольно-Кассовый Чек [13:15:27]line ПРОДАЖА [13:15:27]line ТРК (МРК, ГНК) : 12 [13:15:27]line Товар: 2710124130 [13:15:27]line Аи-92-К-5 [13:15:27]line 30.350 * 65.90 [13:15:27]line = 2000.07 [13:15:27]line НДС 12% НСП 1% [13:15:27]line > о реализуемом товаре [13:15:27]line ОКРУГЛЕНИЕ: -0.07 [13:15:27]line ИТОГО: 2000.00 [13:15:27]line Внесено: 2000.00 [13:15:27]line СДАЧА: 0.00 [13:15:27]line НСП 1% : 17.70 [13:15:27]line НДС 12% : 212.40 [13:15:27]line Наличными: 2000.00 [13:15:27]line Безнал.: 0.00 [13:15:27]line Место: АЗС № 170 "Партнер Нефть" [13:15:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:15:27]line СНО: Общий режим [13:15:27]line Чек 124 28.10.2024 13:15 [13:15:27]line Смена: 543 ФФД: 1.0 [13:15:27]line ЗНМ: 0300000110 [13:15:27]line РНМ: 0000000000091776 [13:15:27]line Версия ККМ: 001 [13:15:27]line [13:15:27]line Дисконтная программа [13:15:27]line АИ-92 [13:15:27]line номер 170 [13:15:27]line сэкономлено 30.35 сом [13:15:27]line ФМ: 0000000000871754 [13:15:27]line ФД: 192576 [13:15:27]line ФПД: 196761668090104 [13:15:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131530&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192576&fm=196761668090104&tin=02508201610067®Number=0000000000091776&sum=200000 [13:15:27]OFD Sender: Processing packet 192576 [packets to send 75, broken 74] [13:15:27]ProducePacketName [13:15:27]name=ofd_packets/00192576 [13:15:27]OFD Sender: To server: pG, [13:15:27]CommunicateWithHost lk.salyk.kg:30040 [13:15:27]ConnectInit lk.salyk.kg [13:15:27]written 0, free lines is 4095 [13:15:27]Connected sock=10 [13:15:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 35 52 07 01 DC 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 72 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 F0 02 00 35 04 06 00 B2 F4 25 54 F8 F8 2C DD 17 9C 2B 4A 9D EC [13:15:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F8 BE 47 00 8E 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 F0 02 00 F4 03 04 00 36 33 1F 67 B6 04 01 00 00 47 52 97 E6 E2 8A 38 DD [13:15:27]CommunicateWithHost err = 0 [13:15:27]CheckOFDResponse [13:15:27]1017 (14) - 77093643461234 [13:15:27]1041 (16) - 0000000000871754 [13:15:27]1040 (4) - 192576 [13:15:27]1012 (4) - 28.10.2024 06:46 [13:15:27]1206 (1) - 0 [13:15:27]OFD Sender: Remove packet 192576 [13:15:27]ProducePacketName [13:15:27]name=ofd_packets/00192576 [13:15:27]NVStorageDeleteData [13:15:27]Write to MH i2c: 01 00 00 A9 41 EA [13:15:27]Write i2c OK [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: 01 [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: 01 07 00 [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: 01 07 00 A9 41 00 00 00 00 00 6D 0C 6A [13:15:27]RasterBufferAndPrint [13:15:27]line [13:15:27]line [13:15:27]line [13:15:27]line [13:15:27]line [13:15:27]written 0, free lines is 3193 [13:15:27]MH_Cut [13:15:27]Write to MH i2c: D1 01 00 B0 41 01 C3 [13:15:27]Write i2c OK [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: D1 [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: D1 01 00 [13:15:27]MH_I2C_Read... [13:15:27]Read from MH i2c: D1 01 00 B0 41 00 C2 [13:15:27]Write to MH i2c: 01 00 00 B1 41 F2 [13:15:27]Write i2c OK [13:15:27]MH_I2C_Read... [13:15:28]OFD Sender: No OFD packet to send [13:15:28]*** Cut start [13:15:28]*** Partial cut [13:15:28]*** CUTSNS_PIN = 1 [13:15:28]*** CUTSNS_PIN = 0 [13:15:29]*** Brake cut motor [13:15:29]Read from MH i2c: 01 [13:15:29]MH_I2C_Read... [13:15:29]*** Stop cut motor [13:15:29]*** Cut end [13:15:29]Read from MH i2c: 01 07 00 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: 01 07 00 B1 41 00 00 00 00 00 FF 0F 07 [13:15:29]process_action close_receipt done [13:15:29]requested_data is exist [13:15:29]produce_requested_data [13:15:29]requested_item fm.sn is exist - process it [13:15:29]wFMCommunicate request_size=4 [13:15:29]MH_SAM_APDU [13:15:29]CAPDU: 80 11 00 00 [13:15:29]Write to MH i2c: E2 08 00 B2 41 80 11 00 00 00 00 00 00 6D [13:15:29]Write i2c OK [13:15:29]MH_I2C_Read... [13:15:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:29]Read from MH i2c: E2 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 17 00 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 17 00 B2 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C0 [13:15:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:15:29]wFMCommunicate OK [13:15:29]requested_item fd.num is exist - process it [13:15:29]SAM_PROTO_GetFieldsCounters [13:15:29]wFMCommunicate request_size=4 [13:15:29]MH_SAM_APDU [13:15:29]CAPDU: 80 13 00 00 [13:15:29]Write to MH i2c: E2 08 00 B3 41 80 13 00 00 00 00 00 00 70 [13:15:29]Write i2c OK [13:15:29]MH_I2C_Read... [13:15:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:29]Read from MH i2c: E2 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 62 00 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 62 00 B3 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 40 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [13:15:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 40 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:29]wFMCommunicate OK [13:15:29]SAM_PROTO_GetFieldsCounters done [13:15:29]requested_item shift.num is exist - process it [13:15:29]requested_item shift.opened is exist - process it [13:15:29]req_shift_opened [13:15:29]FM_GetShiftState [13:15:29]SAM_PROTO_GetShiftState [13:15:29]wFMCommunicate request_size=4 [13:15:29]MH_SAM_APDU [13:15:29]CAPDU: 80 13 01 00 [13:15:29]Write to MH i2c: E2 08 00 B4 41 80 13 01 00 00 00 00 00 72 [13:15:29]Write i2c OK [13:15:29]MH_I2C_Read... [13:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:29]Read from MH i2c: E2 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 0E 00 [13:15:29]MH_I2C_Read... [13:15:29]Read from MH i2c: E2 0E 00 B4 41 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C2 [13:15:29]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:15:29]wFMCommunicate OK [13:15:29]SAM_PROTO_GetShiftState done [13:15:29]FM_GetShiftState done [13:15:29]req_shift_opened done [13:15:29]requested_item shift.open_date is exist - process it [13:15:29]req_shift_open_date [13:15:29]req_shift_open_date done [13:15:29]produce_requested_data done [13:15:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192576,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:15:29]process_action_free close_receipt [13:15:29]json_value_free [13:15:29]json_value_free done [13:15:29]process_json_proto returns [13:15:29]Send response to host [13:15:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192576,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:15:29]free response buf [13:15:29]execute_script done [13:15:29]execute_script returns [13:15:29]free content buf [13:15:29]Sock 9.Close socket [13:15:29]Sock 9.Thread stoped [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:12]accept exits with 7 [13:16:12]New connection [13:16:12]New thread 3066707300 created [13:16:12]Thread 3066563940 joined [13:16:12]Waiting for new connection... [13:16:12] Sock 7.Parse request [13:16:12]Sock 7.Check first char [13:16:12]Sock 7.First char is OK [13:16:12]request: POST /json_proto HTTP/1.0 [13:16:12]Method: POST [13:16:12]URL: /json_proto [13:16:12]Method is POST - this is cgi request [13:16:12]url: /json_proto [13:16:12]query_string will be loaded in cgi processing [13:16:12]execute_cgi json_proto POST (null) [13:16:12]execute_cgi path=json_proto method=POST [13:16:12]POST find Content-Length [13:16:12]Host: 172.17.63.131:8080 [13:16:12]Content-Length: 676 [13:16:12]Content-Type: application/json [13:16:12] [13:16:12]POST finish read [13:16:12]Found Content-Length = 676 [13:16:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:12]execute_script... [13: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)31897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:12]POST & json_proto [13:16:12]process_json_proto [13:16:12]json parsed OK: [13:16:12]protocol is kg_v1.0 [13:16:12]action value=close_receipt [13:16:12]process_action close_receipt [13:16:12]cmd_close_receipt [13:16:12]MH_GetDate [13:16:12]Write to MH i2c: F0 00 00 B5 41 E5 [13:16:12]Write i2c OK [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: F0 [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: F0 09 00 [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: F0 09 00 B5 41 00 A1 8E 1F 67 22 05 6E 64 9C [13:16:12]GetLastDocTimeStamp 1730121330 [13:16:12]current date 1730121377 [13:16:12]FM_GetShiftState [13:16:12]SAM_PROTO_GetShiftState [13:16:12]wFMCommunicate request_size=4 [13:16:12]MH_SAM_APDU [13:16:12]CAPDU: 80 13 01 00 [13:16:12]Write to MH i2c: E2 08 00 B6 41 80 13 01 00 00 00 00 00 74 [13:16:12]Write i2c OK [13:16:12]MH_I2C_Read... [13:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:12]Read from MH i2c: E2 [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: E2 0E 00 [13:16:12]MH_I2C_Read... [13:16:12]Read from MH i2c: E2 0E 00 B6 41 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C4 [13:16:12]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:16:12]wFMCommunicate OK [13:16:12]SAM_PROTO_GetShiftState done [13:16:12]FM_GetShiftState done [13:16:12]opened in 1730075620 [13:16:12]opened+sec_in_day 1730162020 [13:16:12]quantity*price = 30038 [13:16:12]sum+1 = 30039 [13:16:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 125 28.10.2024 13:16 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192577 ФПД: 156710922365072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131617&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192577&fm=156710922365072&tin=02508201610067®Number=0000000000091776&sum=30000 [13:16:13]StoreToDocumentArchive [13:16:13]shift 543 fd 192577 [13:16:13]save to /storage/0543/doc_00192577 [13:16:13]save last doc name /storage/0543/doc_00192577 to /storage/kkm_last_doc_name [13:16:13]save OK [13:16:13]Clear old archive folders... [13:16:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:16:13]tlvbuf is 019AE620 [13:16:13]SAM_PROTO_ClearQueue [13:16:13]wFMCommunicate request_size=4 [13:16:13]MH_SAM_APDU [13:16:13]CAPDU: 80 09 00 00 [13:16:13]Write to MH i2c: E2 08 00 C3 41 80 09 00 00 00 00 00 00 76 [13:16:13]Write i2c OK [13:16:13]MH_I2C_Read... [13:16:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:13]Read from MH i2c: E2 [13:16:13]MH_I2C_Read... [13:16:13]Read from MH i2c: E2 03 00 [13:16:13]MH_I2C_Read... [13:16:13]Read from MH i2c: E2 03 00 C3 41 00 90 00 78 [13:16:13]RAPDU: 90 00 [13:16:13]wFMCommunicate OK [13:16:13]SAM_PROTO_ClearQueue done [13:16:13]KKMCreateOFDPacket [13:16:13]OFDProtocolAddRootSTLVToBuf [13:16:13]FM_MakeSignedData [13:16:13]FM_MakeSignedData [13:16:13]SAM_PROTO_SignData [13:16:13]wFMCommunicate request_size=4 [13:16:13]MH_SAM_APDU [13:16:13]CAPDU: 80 0D 01 02 [13:16:13]Write to MH i2c: E2 08 00 C4 41 80 0D 01 02 00 00 00 00 7E [13:16:13]Write i2c OK [13:16:13]MH_I2C_Read... [13:16:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:13]Read from MH i2c: E2 [13:16:13]MH_I2C_Read... [13:16:13]Read from MH i2c: E2 03 00 [13:16:13]MH_I2C_Read... [13:16:13]Read from MH i2c: E2 03 00 C4 41 00 90 00 79 [13:16:13]RAPDU: 90 00 [13:16:13]wFMCommunicate OK [13:16:13]wFMCommunicate request_size=255 [13:16:13]MH_SAM_APDU [13: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A1 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 F0 02 00 35 04 06 00 8E [13:16:13]Write to MH i2c: E2 02 01 C5 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A1 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 F0 02 00 35 04 06 00 8E 00 00 1A [13:16:13]Write i2c OK [13:16:13]MH_I2C_Read... [13:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:13]Read from MH i2c: E2 [13:16:13]MH_I2C_Read... [13:16:13]Read from MH i2c: E2 03 00 [13:16:13]MH_I2C_Read... [13:16:13]Read from MH i2c: E2 03 00 C5 41 00 90 00 7A [13:16:13]RAPDU: 90 00 [13:16:13]wFMCommunicate OK [13:16:13]wFMCommunicate request_size=10 [13:16:13]MH_SAM_APDU [13:16:13]CAPDU: 80 0D 02 02 05 87 1A DC 28 90 [13:16:13]Write to MH i2c: E2 0D 00 C6 41 80 0D 02 02 05 00 87 1A DC 28 90 00 00 C0 [13:16:13]Write i2c OK [13:16:13]MH_I2C_Read... [13:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:13]Read from MH i2c: E2 [13:16:13]MH_I2C_Read... [13:16:13]Read from MH i2c: E2 03 00 [13:16:13]MH_I2C_Read... [13:16:13]Read from MH i2c: E2 03 00 C6 41 00 90 00 7B [13:16:13]RAPDU: 90 00 [13:16:13]wFMCommunicate OK [13:16:13]wFMCommunicate request_size=4 [13:16:13]MH_SAM_APDU [13:16:13]CAPDU: 80 0D 03 02 [13:16:13]Write to MH i2c: E2 08 00 C7 41 80 0D 03 02 00 00 00 00 83 [13:16:13]Write i2c OK [13:16:13]MH_I2C_Read... [13:16:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:13]Read from MH i2c: E2 [13:16:13]MH_I2C_Read... [13:16:13]Read from MH i2c: E2 0B 00 [13:16:13]MH_I2C_Read... [13:16:13]Read from MH i2c: E2 0B 00 C7 41 00 EF B6 DF DA 70 C2 E9 2A 90 00 27 [13:16:13]RAPDU: EF B6 DF DA 70 C2 E9 2A 90 00 [13:16:13]wFMCommunicate OK [13:16:13]SAM_PROTO_SignData done [13:16:13]FM_MakeSignedData done [13:16:13]CreateOFDProtocolMessage [13:16:13]wFMCommunicate request_size=4 [13:16:13]MH_SAM_APDU [13:16:13]CAPDU: 80 11 00 00 [13:16:13]Write to MH i2c: E2 08 00 C8 41 80 11 00 00 00 00 00 00 83 [13:16:13]Write i2c OK [13:16:13]MH_I2C_Read... [13:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:13]Read from MH i2c: E2 [13:16:13]MH_I2C_Read... [13:16:13]Read from MH i2c: E2 17 00 [13:16:13]MH_I2C_Read... [13:16:13]Read from MH i2c: E2 17 00 C8 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D6 [13:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:16:13]wFMCommunicate OK [13:16:13]CreateOFDProtocolMessage done [13:16:13]OFDSenderStorePacket 192577 [13:16:13]StoreOFDPacket docnum=192577 [13:16:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 04 07 01 03 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A1 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 F0 02 00 35 04 06 00 8E 87 1A DC 28 90 EF B6 DF DA 70 C2 E9 2A [13:16:13]CheckFolder [13:16:13]dirname=/storage/ofd_packets [13:16:13]CheckFolder done [13:16:13]ProducePacketName [13:16:13]name=ofd_packets/00192577 [13:16:13]NVStorageSaveData ofd_packets/00192577 [13:16:13]File name is /storage/ofd_packets/00192577 [13:16:13]Write 301 bytes [13:16:13]NVStorageSaveData done [13:16:13]OFDSenderStorePacket done [13:16:13]KKMCreateOFDPacket done [13:16:13]NVStorageSaveData kkm_last_timestamp [13:16:13]File name is /storage/kkm_last_timestamp [13:16:13]Write 4 bytes [13:16:13]NVStorageSaveData done [13:16:13]ExternCall_PrintAddStr [13:16:13]wPrintStart [13:16:13]Write to MH i2c: 01 00 00 C9 41 0A [13:16:13]Write i2c OK [13:16:13]MH_I2C_Read... [13:16:13]Read from MH i2c: 01 [13:16:13]MH_I2C_Read... [13:16:13]Read from MH i2c: 01 07 00 [13:16:13]MH_I2C_Read... [13:16:13]Read from MH i2c: 01 07 00 C9 41 00 00 00 00 00 FF 0F 1F [13:16:13]RasterBufferAndPrint [13:16:13]line Счет N : (1)31897 [13:16:13]line ИНН: 02508201610067 [13:16:13]line Контрольно-Кассовый Чек [13:16:13]line ПРОДАЖА [13:16:13]line ТРК (МРК, ГНК) : 21 [13:16:13]line Товар: 2710124130 [13:16:13]line Аи-92-К-5 [13:16:13]line 4.490 * 66.90 [13:16:13]line = 300.38 [13:16:13]line НДС 12% НСП 1% [13:16:13]line > о реализуемом товаре [13:16:13]line ОКРУГЛЕНИЕ: -0.38 [13:16:13]line ИТОГО: 300.00 [13:16:13]line Внесено: 300.00 [13:16:13]line СДАЧА: 0.00 [13:16:13]line НСП 1% : 2.66 [13:16:13]line НДС 12% : 31.90 [13:16:13]line Наличными: 300.00 [13:16:13]line Безнал.: 0.00 [13:16:13]line Место: АЗС № 170 "Партнер Нефть" [13:16:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:16:13]line СНО: Общий режим [13:16:13]line Чек 125 28.10.2024 13:16 [13:16:13]line Смена: 543 ФФД: 1.0 [13:16:13]line ЗНМ: 0300000110 [13:16:13]line РНМ: 0000000000091776 [13:16:13]line Версия ККМ: 001 [13:16:13]line ФМ: 0000000000871754 [13:16:13]line ФД: 192577 [13:16:13]line ФПД: 156710922365072 [13:16:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131617&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192577&fm=156710922365072&tin=02508201610067®Number=0000000000091776&sum=30000 [13:16:14]OFD Sender: Processing packet 192577 [packets to send 75, broken 74] [13:16:14]ProducePacketName [13:16:14]name=ofd_packets/00192577 [13:16:14]OFD Sender: To server: pG, [13:16:14]CommunicateWithHost lk.salyk.kg:30040 [13:16:14]ConnectInit lk.salyk.kg [13:16:14]written 0, free lines is 4095 [13:16:14]Connected sock=10 [13: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 31 37 35 34 0F 01 00 00 42 04 07 01 03 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 A1 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 F0 02 00 35 04 06 00 8E 87 1A DC 28 90 EF B6 DF DA 70 C2 E9 2A [13:16:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 61 50 47 00 0C 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 F0 02 00 F4 03 04 00 65 33 1F 67 B6 04 01 00 00 FA 5A B7 C1 5E 27 2A CA [13:16:14]CommunicateWithHost err = 0 [13:16:14]CheckOFDResponse [13:16:14]1017 (14) - 77093643461234 [13:16:14]1041 (16) - 0000000000871754 [13:16:14]1040 (4) - 192577 [13:16:14]1012 (4) - 28.10.2024 06:47 [13:16:14]1206 (1) - 0 [13:16:14]OFD Sender: Remove packet 192577 [13:16:14]ProducePacketName [13:16:14]name=ofd_packets/00192577 [13:16:14]NVStorageDeleteData [13:16:14]Write to MH i2c: 01 00 00 F4 41 35 [13:16:14]Write i2c OK [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: 01 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: 01 07 00 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: 01 07 00 F4 41 00 00 00 00 00 D9 0C 21 [13:16:14]RasterBufferAndPrint [13:16:14]line [13:16:14]line [13:16:14]line [13:16:14]line [13:16:14]line [13:16:14]written 0, free lines is 3300 [13:16:14]MH_Cut [13:16:14]Write to MH i2c: D1 01 00 FB 41 01 0E [13:16:14]Write i2c OK [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: D1 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: D1 01 00 [13:16:14]MH_I2C_Read... [13:16:14]Read from MH i2c: D1 01 00 FB 41 00 0D [13:16:14]Write to MH i2c: 01 00 00 FC 41 3D [13:16:14]Write i2c OK [13:16:14]MH_I2C_Read... [13:16:15]OFD Sender: No OFD packet to send [13:16:15]*** Cut start [13:16:15]*** Partial cut [13:16:15]*** CUTSNS_PIN = 1 [13:16:15]*** CUTSNS_PIN = 0 [13:16:15]*** Brake cut motor [13:16:16]Read from MH i2c: 01 [13:16:16]MH_I2C_Read... [13:16:16]*** Stop cut motor [13:16:16]*** Cut end [13:16:16]Read from MH i2c: 01 07 00 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: 01 07 00 FC 41 00 00 00 00 00 FF 0F 52 [13:16:16]process_action close_receipt done [13:16:16]requested_data is exist [13:16:16]produce_requested_data [13:16:16]requested_item fm.sn is exist - process it [13:16:16]wFMCommunicate request_size=4 [13:16:16]MH_SAM_APDU [13:16:16]CAPDU: 80 11 00 00 [13:16:16]Write to MH i2c: E2 08 00 FD 41 80 11 00 00 00 00 00 00 B8 [13:16:16]Write i2c OK [13:16:16]MH_I2C_Read... [13:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:16]Read from MH i2c: E2 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: E2 17 00 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: E2 17 00 FD 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0B [13:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:16:16]wFMCommunicate OK [13:16:16]requested_item fd.num is exist - process it [13:16:16]SAM_PROTO_GetFieldsCounters [13:16:16]wFMCommunicate request_size=4 [13:16:16]MH_SAM_APDU [13:16:16]CAPDU: 80 13 00 00 [13:16:16]Write to MH i2c: E2 08 00 FE 41 80 13 00 00 00 00 00 00 BB [13:16:16]Write i2c OK [13:16:16]MH_I2C_Read... [13:16:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:16]Read from MH i2c: E2 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: E2 62 00 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: E2 62 00 FE 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 41 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [13: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 41 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:16]wFMCommunicate OK [13:16:16]SAM_PROTO_GetFieldsCounters done [13:16:16]requested_item shift.num is exist - process it [13:16:16]requested_item shift.opened is exist - process it [13:16:16]req_shift_opened [13:16:16]FM_GetShiftState [13:16:16]SAM_PROTO_GetShiftState [13:16:16]wFMCommunicate request_size=4 [13:16:16]MH_SAM_APDU [13:16:16]CAPDU: 80 13 01 00 [13:16:16]Write to MH i2c: E2 08 00 FF 41 80 13 01 00 00 00 00 00 BD [13:16:16]Write i2c OK [13:16:16]MH_I2C_Read... [13:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:16]Read from MH i2c: E2 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: E2 0E 00 [13:16:16]MH_I2C_Read... [13:16:16]Read from MH i2c: E2 0E 00 FF 41 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0D [13:16:16]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:16:16]wFMCommunicate OK [13:16:16]SAM_PROTO_GetShiftState done [13:16:16]FM_GetShiftState done [13:16:16]req_shift_opened done [13:16:16]requested_item shift.open_date is exist - process it [13:16:16]req_shift_open_date [13:16:16]req_shift_open_date done [13:16:16]produce_requested_data done [13:16:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192577,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:16:16]process_action_free close_receipt [13:16:16]json_value_free [13:16:16]json_value_free done [13:16:16]process_json_proto returns [13:16:16]Send response to host [13:16:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192577,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:16:16]free response buf [13:16:16]execute_script done [13:16:16]execute_script returns [13:16:16]free content buf [13:16:16]Sock 7.Close socket [13:16:16]Sock 7.Thread stoped [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:27]accept exits with 9 [13:17:27]New connection [13:17:27]New thread 3066563940 created [13:17:27]Thread 3066707300 joined [13:17:27]Waiting for new connection... [13:17:27] Sock 9.Parse request [13:17:27]Sock 9.Check first char [13:17:27]Sock 9.First char is OK [13:17:27]request: POST /json_proto HTTP/1.0 [13:17:27]Method: POST [13:17:27]URL: /json_proto [13:17:27]Method is POST - this is cgi request [13:17:27]url: /json_proto [13:17:27]query_string will be loaded in cgi processing [13:17:27]execute_cgi json_proto POST (null) [13:17:27]execute_cgi path=json_proto method=POST [13:17:27]POST find Content-Length [13:17:27]Host: 172.17.63.131:8080 [13:17:27]Content-Length: 677 [13:17:27]Content-Type: application/json [13:17:27] [13:17:27]POST finish read [13:17:27]Found Content-Length = 677 [13:17:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:27]execute_script... [13:17: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)31899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:27]POST & json_proto [13:17:27]process_json_proto [13:17:27]json parsed OK: [13:17:27]protocol is kg_v1.0 [13:17:27]action value=close_receipt [13:17:27]process_action close_receipt [13:17:27]cmd_close_receipt [13:17:27]MH_GetDate [13:17:27]Write to MH i2c: F0 00 00 00 42 31 [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: F0 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: F0 09 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: F0 09 00 00 42 00 ED 8E 1F 67 22 05 6E 64 34 [13:17:27]GetLastDocTimeStamp 1730121377 [13:17:27]current date 1730121453 [13:17:27]FM_GetShiftState [13:17:27]SAM_PROTO_GetShiftState [13:17:27]wFMCommunicate request_size=4 [13:17:27]MH_SAM_APDU [13:17:27]CAPDU: 80 13 01 00 [13:17:27]Write to MH i2c: E2 08 00 01 42 80 13 01 00 00 00 00 00 C0 [13:17:27]Write i2c OK [13:17:27]MH_I2C_Read... [13:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:27]Read from MH i2c: E2 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 0E 00 [13:17:27]MH_I2C_Read... [13:17:27]Read from MH i2c: E2 0E 00 01 42 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 10 [13:17:27]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:17:27]wFMCommunicate OK [13:17:27]SAM_PROTO_GetShiftState done [13:17:27]FM_GetShiftState done [13:17:27]opened in 1730075620 [13:17:27]opened+sec_in_day 1730162020 [13:17:27]quantity*price = 70044 [13:17:27]sum+1 = 70045 [13:17:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 126 28.10.2024 13:17 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192578 ФПД: 56130671024511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131733&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192578&fm=56130671024511&tin=02508201610067®Number=0000000000091776&sum=70000 [13:17:29]StoreToDocumentArchive [13:17:29]shift 543 fd 192578 [13:17:29]save to /storage/0543/doc_00192578 [13:17:29]save last doc name /storage/0543/doc_00192578 to /storage/kkm_last_doc_name [13:17:29]save OK [13:17:29]Clear old archive folders... [13:17:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:29]tlvbuf is 019AECF0 [13:17:29]SAM_PROTO_ClearQueue [13:17:29]wFMCommunicate request_size=4 [13:17:29]MH_SAM_APDU [13:17:29]CAPDU: 80 09 00 00 [13:17:29]Write to MH i2c: E2 08 00 0E 42 80 09 00 00 00 00 00 00 C2 [13:17:29]Write i2c OK [13:17:29]MH_I2C_Read... [13:17:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:29]Read from MH i2c: E2 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 03 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 03 00 0E 42 00 90 00 C4 [13:17:29]RAPDU: 90 00 [13:17:29]wFMCommunicate OK [13:17:29]SAM_PROTO_ClearQueue done [13:17:29]KKMCreateOFDPacket [13:17:29]OFDProtocolAddRootSTLVToBuf [13:17:29]FM_MakeSignedData [13:17:29]FM_MakeSignedData [13:17:29]SAM_PROTO_SignData [13:17:29]wFMCommunicate request_size=4 [13:17:29]MH_SAM_APDU [13:17:29]CAPDU: 80 0D 01 02 [13:17:29]Write to MH i2c: E2 08 00 0F 42 80 0D 01 02 00 00 00 00 CA [13:17:29]Write i2c OK [13:17:29]MH_I2C_Read... [13:17:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:29]Read from MH i2c: E2 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 03 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 03 00 0F 42 00 90 00 C5 [13:17:29]RAPDU: 90 00 [13:17:29]wFMCommunicate OK [13:17:29]wFMCommunicate request_size=255 [13:17:29]MH_SAM_APDU [13:17:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 ED 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 F0 02 00 35 04 06 00 33 [13:17:29]Write to MH i2c: E2 02 01 10 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 ED 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 F0 02 00 35 04 06 00 33 00 00 75 [13:17:29]Write i2c OK [13:17:29]MH_I2C_Read... [13:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:29]Read from MH i2c: E2 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 03 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 03 00 10 42 00 90 00 C6 [13:17:29]RAPDU: 90 00 [13:17:29]wFMCommunicate OK [13:17:29]wFMCommunicate request_size=10 [13:17:29]MH_SAM_APDU [13:17:29]CAPDU: 80 0D 02 02 05 0C F0 B5 19 7F [13:17:29]Write to MH i2c: E2 0D 00 11 42 80 0D 02 02 05 00 0C F0 B5 19 7F 00 00 20 [13:17:29]Write i2c OK [13:17:29]MH_I2C_Read... [13:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:29]Read from MH i2c: E2 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 03 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 03 00 11 42 00 90 00 C7 [13:17:29]RAPDU: 90 00 [13:17:29]wFMCommunicate OK [13:17:29]wFMCommunicate request_size=4 [13:17:29]MH_SAM_APDU [13:17:29]CAPDU: 80 0D 03 02 [13:17:29]Write to MH i2c: E2 08 00 12 42 80 0D 03 02 00 00 00 00 CF [13:17:29]Write i2c OK [13:17:29]MH_I2C_Read... [13:17:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:29]Read from MH i2c: E2 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 0B 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 0B 00 12 42 00 47 85 4B AB 58 91 C3 5E 90 00 9C [13:17:29]RAPDU: 47 85 4B AB 58 91 C3 5E 90 00 [13:17:29]wFMCommunicate OK [13:17:29]SAM_PROTO_SignData done [13:17:29]FM_MakeSignedData done [13:17:29]CreateOFDProtocolMessage [13:17:29]wFMCommunicate request_size=4 [13:17:29]MH_SAM_APDU [13:17:29]CAPDU: 80 11 00 00 [13:17:29]Write to MH i2c: E2 08 00 13 42 80 11 00 00 00 00 00 00 CF [13:17:29]Write i2c OK [13:17:29]MH_I2C_Read... [13:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:29]Read from MH i2c: E2 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 17 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: E2 17 00 13 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 22 [13:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:17:29]wFMCommunicate OK [13:17:29]CreateOFDProtocolMessage done [13:17:29]OFDSenderStorePacket 192578 [13:17:29]StoreOFDPacket docnum=192578 [13:17:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 10 B7 07 01 10 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 ED 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 F0 02 00 35 04 06 00 33 0C F0 B5 19 7F 47 85 4B AB 58 91 C3 5E [13:17:29]CheckFolder [13:17:29]dirname=/storage/ofd_packets [13:17:29]CheckFolder done [13:17:29]ProducePacketName [13:17:29]name=ofd_packets/00192578 [13:17:29]NVStorageSaveData ofd_packets/00192578 [13:17:29]File name is /storage/ofd_packets/00192578 [13:17:29]Write 301 bytes [13:17:29]NVStorageSaveData done [13:17:29]OFDSenderStorePacket done [13:17:29]KKMCreateOFDPacket done [13:17:29]NVStorageSaveData kkm_last_timestamp [13:17:29]File name is /storage/kkm_last_timestamp [13:17:29]Write 4 bytes [13:17:29]NVStorageSaveData done [13:17:29]ExternCall_PrintAddStr [13:17:29]wPrintStart [13:17:29]Write to MH i2c: 01 00 00 14 42 56 [13:17:29]Write i2c OK [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: 01 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: 01 07 00 [13:17:29]MH_I2C_Read... [13:17:29]Read from MH i2c: 01 07 00 14 42 00 00 00 00 00 FF 0F 6B [13:17:29]RasterBufferAndPrint [13:17:29]line Счет N : (1)31899 [13:17:29]line ИНН: 02508201610067 [13:17:29]line Контрольно-Кассовый Чек [13:17:29]line ПРОДАЖА [13:17:29]line ТРК (МРК, ГНК) : 12 [13:17:29]line Товар: 2710124130 [13:17:29]line Аи-92-К-5 [13:17:29]line 10.470 * 66.90 [13:17:29]line = 700.44 [13:17:29]line НДС 12% НСП 1% [13:17:29]line > о реализуемом товаре [13:17:29]line ОКРУГЛЕНИЕ: -0.44 [13:17:29]line ИТОГО: 700.00 [13:17:29]line Внесено: 700.00 [13:17:29]line СДАЧА: 0.00 [13:17:29]line НСП 1% : 6.20 [13:17:29]line НДС 12% : 74.38 [13:17:29]line Наличными: 700.00 [13:17:29]line Безнал.: 0.00 [13:17:29]line Место: АЗС № 170 "Партнер Нефть" [13:17:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:17:29]line СНО: Общий режим [13:17:29]line Чек 126 28.10.2024 13:17 [13:17:29]line Смена: 543 ФФД: 1.0 [13:17:29]line ЗНМ: 0300000110 [13:17:29]line РНМ: 0000000000091776 [13:17:29]line Версия ККМ: 001 [13:17:29]line ФМ: 0000000000871754 [13:17:29]line ФД: 192578 [13:17:29]line ФПД: 56130671024511 [13:17:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131733&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192578&fm=56130671024511&tin=02508201610067®Number=0000000000091776&sum=70000 [13:17:29]OFD Sender: Processing packet 192578 [packets to send 75, broken 74] [13:17:29]ProducePacketName [13:17:29]name=ofd_packets/00192578 [13:17:29]OFD Sender: To server: pG, [13:17:29]CommunicateWithHost lk.salyk.kg:30040 [13:17:29]ConnectInit lk.salyk.kg [13:17:29]written 0, free lines is 4095 [13:17:30]Connected sock=10 [13:17:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 10 B7 07 01 10 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 ED 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 F0 02 00 35 04 06 00 33 0C F0 B5 19 7F 47 85 4B AB 58 91 C3 5E [13:17:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 10 4E 47 00 FB 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 F0 02 00 F4 03 04 00 B1 33 1F 67 B6 04 01 00 00 6D 71 1E 7D 29 CC 15 BB [13:17:30]CommunicateWithHost err = 0 [13:17:30]CheckOFDResponse [13:17:30]1017 (14) - 77093643461234 [13:17:30]1041 (16) - 0000000000871754 [13:17:30]1040 (4) - 192578 [13:17:30]1012 (4) - 28.10.2024 06:48 [13:17:30]1206 (1) - 0 [13:17:30]OFD Sender: Remove packet 192578 [13:17:30]ProducePacketName [13:17:30]name=ofd_packets/00192578 [13:17:30]NVStorageDeleteData [13:17:30]Write to MH i2c: 01 00 00 3F 42 81 [13:17:30]Write i2c OK [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: 01 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: 01 07 00 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: 01 07 00 3F 42 00 00 00 00 00 C2 0C 56 [13:17:30]RasterBufferAndPrint [13:17:30]line [13:17:30]line [13:17:30]line [13:17:30]line [13:17:30]line [13:17:30]written 0, free lines is 3272 [13:17:30]MH_Cut [13:17:30]Write to MH i2c: D1 01 00 46 42 01 5A [13:17:30]Write i2c OK [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: D1 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: D1 01 00 [13:17:30]MH_I2C_Read... [13:17:30]Read from MH i2c: D1 01 00 46 42 00 59 [13:17:30]Write to MH i2c: 01 00 00 47 42 89 [13:17:30]Write i2c OK [13:17:30]MH_I2C_Read... [13:17:30]OFD Sender: No OFD packet to send [13:17:31]*** Cut start [13:17:31]*** Partial cut [13:17:31]*** CUTSNS_PIN = 1 [13:17:31]*** CUTSNS_PIN = 0 [13:17:31]*** Brake cut motor [13:17:31]Read from MH i2c: 01 [13:17:31]MH_I2C_Read... [13:17:31]*** Stop cut motor [13:17:31]*** Cut end [13:17:31]Read from MH i2c: 01 07 00 [13:17:31]MH_I2C_Read... [13:17:31]Read from MH i2c: 01 07 00 47 42 00 00 00 00 00 FF 0F 9E [13:17:31]process_action close_receipt done [13:17:31]requested_data is exist [13:17:31]produce_requested_data [13:17:31]requested_item fm.sn is exist - process it [13:17:31]wFMCommunicate request_size=4 [13:17:31]MH_SAM_APDU [13:17:31]CAPDU: 80 11 00 00 [13:17:31]Write to MH i2c: E2 08 00 48 42 80 11 00 00 00 00 00 00 04 [13:17:31]Write i2c OK [13:17:31]MH_I2C_Read... [13:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:31]Read from MH i2c: E2 [13:17:31]MH_I2C_Read... [13:17:31]Read from MH i2c: E2 17 00 [13:17:31]MH_I2C_Read... [13:17:31]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 31 37 35 34 90 00 57 [13:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:17:31]wFMCommunicate OK [13:17:31]requested_item fd.num is exist - process it [13:17:31]SAM_PROTO_GetFieldsCounters [13:17:31]wFMCommunicate request_size=4 [13:17:31]MH_SAM_APDU [13:17:31]CAPDU: 80 13 00 00 [13:17:31]Write to MH i2c: E2 08 00 49 42 80 13 00 00 00 00 00 00 07 [13:17:31]Write i2c OK [13:17:31]MH_I2C_Read... [13:17:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:32]Read from MH i2c: E2 [13:17:32]MH_I2C_Read... [13:17:32]Read from MH i2c: E2 62 00 [13:17:32]MH_I2C_Read... [13:17:32]Read from MH i2c: E2 62 00 49 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 42 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [13:17:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 42 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:32]wFMCommunicate OK [13:17:32]SAM_PROTO_GetFieldsCounters done [13:17:32]requested_item shift.num is exist - process it [13:17:32]requested_item shift.opened is exist - process it [13:17:32]req_shift_opened [13:17:32]FM_GetShiftState [13:17:32]SAM_PROTO_GetShiftState [13:17:32]wFMCommunicate request_size=4 [13:17:32]MH_SAM_APDU [13:17:32]CAPDU: 80 13 01 00 [13:17:32]Write to MH i2c: E2 08 00 4A 42 80 13 01 00 00 00 00 00 09 [13:17:32]Write i2c OK [13:17:32]MH_I2C_Read... [13:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:32]Read from MH i2c: E2 [13:17:32]MH_I2C_Read... [13:17:32]Read from MH i2c: E2 0E 00 [13:17:32]MH_I2C_Read... [13:17:32]Read from MH i2c: E2 0E 00 4A 42 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 59 [13:17:32]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:17:32]wFMCommunicate OK [13:17:32]SAM_PROTO_GetShiftState done [13:17:32]FM_GetShiftState done [13:17:32]req_shift_opened done [13:17:32]requested_item shift.open_date is exist - process it [13:17:32]req_shift_open_date [13:17:32]req_shift_open_date done [13:17:32]produce_requested_data done [13:17:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192578,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:17:32]process_action_free close_receipt [13:17:32]json_value_free [13:17:32]json_value_free done [13:17:32]process_json_proto returns [13:17:32]Send response to host [13:17:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192578,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:17:32]free response buf [13:17:32]execute_script done [13:17:32]execute_script returns [13:17:32]free content buf [13:17:32]Sock 9.Close socket [13:17:32]Sock 9.Thread stoped [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:44]accept exits with 7 [13:17:44]New connection [13:17:44]New thread 3066707300 created [13:17:44]Thread 3066563940 joined [13:17:44]Waiting for new connection... [13:17:44] Sock 7.Parse request [13:17:44]Sock 7.Check first char [13:17:44]Sock 7.First char is OK [13:17:44]request: POST /json_proto HTTP/1.0 [13:17:44]Method: POST [13:17:44]URL: /json_proto [13:17:44]Method is POST - this is cgi request [13:17:44]url: /json_proto [13:17:44]query_string will be loaded in cgi processing [13:17:44]execute_cgi json_proto POST (null) [13:17:44]execute_cgi path=json_proto method=POST [13:17:44]POST find Content-Length [13:17:44]Host: 172.17.63.131:8080 [13:17:44]Content-Length: 678 [13:17:44]Content-Type: application/json [13:17:44] [13:17:44]POST finish read [13:17:44]Found Content-Length = 678 [13:17:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:44]execute_script... [13:17: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)31898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:44]POST & json_proto [13:17:44]process_json_proto [13:17:44]json parsed OK: [13:17:44]protocol is kg_v1.0 [13:17:44]action value=close_receipt [13:17:44]process_action close_receipt [13:17:44]cmd_close_receipt [13:17:44]MH_GetDate [13:17:44]Write to MH i2c: F0 00 00 4B 42 7C [13:17:44]Write i2c OK [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: F0 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: F0 09 00 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: F0 09 00 4B 42 00 FE 8E 1F 67 22 05 6E 64 90 [13:17:44]GetLastDocTimeStamp 1730121453 [13:17:44]current date 1730121470 [13:17:44]FM_GetShiftState [13:17:44]SAM_PROTO_GetShiftState [13:17:44]wFMCommunicate request_size=4 [13:17:44]MH_SAM_APDU [13:17:44]CAPDU: 80 13 01 00 [13:17:44]Write to MH i2c: E2 08 00 4C 42 80 13 01 00 00 00 00 00 0B [13:17:44]Write i2c OK [13:17:44]MH_I2C_Read... [13:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:44]Read from MH i2c: E2 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: E2 0E 00 [13:17:44]MH_I2C_Read... [13:17:44]Read from MH i2c: E2 0E 00 4C 42 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 5B [13:17:44]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:17:44]wFMCommunicate OK [13:17:44]SAM_PROTO_GetShiftState done [13:17:44]FM_GetShiftState done [13:17:44]opened in 1730075620 [13:17:44]opened+sec_in_day 1730162020 [13:17:44]quantity*price = 100050 [13:17:44]sum+1 = 100052 [13:17:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 127 28.10.2024 13:17 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192579 ФПД: 60240631652245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131750&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192579&fm=60240631652245&tin=02508201610067®Number=0000000000091776&sum=100000 [13:17:45]StoreToDocumentArchive [13:17:45]shift 543 fd 192579 [13:17:45]save to /storage/0543/doc_00192579 [13:17:45]save last doc name /storage/0543/doc_00192579 to /storage/kkm_last_doc_name [13:17:45]save OK [13:17:45]Clear old archive folders... [13:17:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:17:45]tlvbuf is 01A28900 [13:17:45]SAM_PROTO_ClearQueue [13:17:45]wFMCommunicate request_size=4 [13:17:45]MH_SAM_APDU [13:17:45]CAPDU: 80 09 00 00 [13:17:45]Write to MH i2c: E2 08 00 59 42 80 09 00 00 00 00 00 00 0D [13:17:45]Write i2c OK [13:17:45]MH_I2C_Read... [13:17:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:45]Read from MH i2c: E2 [13:17:45]MH_I2C_Read... [13:17:45]Read from MH i2c: E2 03 00 [13:17:45]MH_I2C_Read... [13:17:45]Read from MH i2c: E2 03 00 59 42 00 90 00 0F [13:17:45]RAPDU: 90 00 [13:17:45]wFMCommunicate OK [13:17:45]SAM_PROTO_ClearQueue done [13:17:45]KKMCreateOFDPacket [13:17:45]OFDProtocolAddRootSTLVToBuf [13:17:45]FM_MakeSignedData [13:17:45]FM_MakeSignedData [13:17:45]SAM_PROTO_SignData [13:17:45]wFMCommunicate request_size=4 [13:17:45]MH_SAM_APDU [13:17:45]CAPDU: 80 0D 01 02 [13:17:45]Write to MH i2c: E2 08 00 5A 42 80 0D 01 02 00 00 00 00 15 [13:17:46]Write i2c OK [13:17:46]MH_I2C_Read... [13:17:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:46]Read from MH i2c: E2 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 03 00 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 03 00 5A 42 00 90 00 10 [13:17:46]RAPDU: 90 00 [13:17:46]wFMCommunicate OK [13:17:46]wFMCommunicate request_size=255 [13:17:46]MH_SAM_APDU [13:17:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FE 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 F0 02 00 35 04 06 00 36 C9 DD 73 [13:17:46]Write to MH i2c: E2 02 01 5B 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FE 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 F0 02 00 35 04 06 00 36 C9 DD 73 00 00 D5 [13:17:46]Write i2c OK [13:17:46]MH_I2C_Read... [13:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:46]Read from MH i2c: E2 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 03 00 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 03 00 5B 42 00 90 00 11 [13:17:46]RAPDU: 90 00 [13:17:46]wFMCommunicate OK [13:17:46]wFMCommunicate request_size=7 [13:17:46]MH_SAM_APDU [13:17:46]CAPDU: 80 0D 02 02 02 5F 95 [13:17:46]Write to MH i2c: E2 0A 00 5C 42 80 0D 02 02 02 00 5F 95 00 00 10 [13:17:46]Write i2c OK [13:17:46]MH_I2C_Read... [13:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:46]Read from MH i2c: E2 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 03 00 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 03 00 5C 42 00 90 00 12 [13:17:46]RAPDU: 90 00 [13:17:46]wFMCommunicate OK [13:17:46]wFMCommunicate request_size=4 [13:17:46]MH_SAM_APDU [13:17:46]CAPDU: 80 0D 03 02 [13:17:46]Write to MH i2c: E2 08 00 5D 42 80 0D 03 02 00 00 00 00 1A [13:17:46]Write i2c OK [13:17:46]MH_I2C_Read... [13:17:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:46]Read from MH i2c: E2 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 0B 00 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 0B 00 5D 42 00 D8 64 EA 1A BF 84 FA 68 90 00 00 [13:17:46]RAPDU: D8 64 EA 1A BF 84 FA 68 90 00 [13:17:46]wFMCommunicate OK [13:17:46]SAM_PROTO_SignData done [13:17:46]FM_MakeSignedData done [13:17:46]CreateOFDProtocolMessage [13:17:46]wFMCommunicate request_size=4 [13:17:46]MH_SAM_APDU [13:17:46]CAPDU: 80 11 00 00 [13:17:46]Write to MH i2c: E2 08 00 5E 42 80 11 00 00 00 00 00 00 1A [13:17:46]Write i2c OK [13:17:46]MH_I2C_Read... [13:17:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:46]Read from MH i2c: E2 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 17 00 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: E2 17 00 5E 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6D [13:17:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:17:46]wFMCommunicate OK [13:17:46]CreateOFDProtocolMessage done [13:17:46]OFDSenderStorePacket 192579 [13:17:46]StoreOFDPacket docnum=192579 [13:17:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 54 7D 04 01 01 B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FE 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 F0 02 00 35 04 06 00 36 C9 DD 73 5F 95 D8 64 EA 1A BF 84 FA 68 [13:17:46]CheckFolder [13:17:46]dirname=/storage/ofd_packets [13:17:46]CheckFolder done [13:17:46]ProducePacketName [13:17:46]name=ofd_packets/00192579 [13:17:46]NVStorageSaveData ofd_packets/00192579 [13:17:46]File name is /storage/ofd_packets/00192579 [13:17:46]Write 298 bytes [13:17:46]NVStorageSaveData done [13:17:46]OFDSenderStorePacket done [13:17:46]KKMCreateOFDPacket done [13:17:46]NVStorageSaveData kkm_last_timestamp [13:17:46]File name is /storage/kkm_last_timestamp [13:17:46]Write 4 bytes [13:17:46]NVStorageSaveData done [13:17:46]ExternCall_PrintAddStr [13:17:46]wPrintStart [13:17:46]Write to MH i2c: 01 00 00 5F 42 A1 [13:17:46]Write i2c OK [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: 01 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: 01 07 00 [13:17:46]MH_I2C_Read... [13:17:46]Read from MH i2c: 01 07 00 5F 42 00 00 00 00 00 FF 0F B6 [13:17:46]RasterBufferAndPrint [13:17:46]line Счет N : (1)31898 [13:17:46]line ИНН: 02508201610067 [13:17:46]line Контрольно-Кассовый Чек [13:17:46]line ПРОДАЖА [13:17:46]line ТРК (МРК, ГНК) : 11 [13:17:46]line Товар: 2710194210 [13:17:46]line ДТ-К-5 [13:17:46]line 13.130 * 76.20 [13:17:46]line = 1000.51 [13:17:46]line НДС 12% НСП 1% [13:17:46]line > о реализуемом товаре [13:17:46]line ОКРУГЛЕНИЕ: -0.51 [13:17:46]line ИТОГО: 1000.00 [13:17:46]line Внесено: 1000.00 [13:17:46]line СДАЧА: 0.00 [13:17:46]line НСП 1% : 8.85 [13:17:46]line НДС 12% : 106.25 [13:17:46]line Наличными: 1000.00 [13:17:46]line Безнал.: 0.00 [13:17:46]line Место: АЗС № 170 "Партнер Нефть" [13:17:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:17:46]line СНО: Общий режим [13:17:46]line Чек 127 28.10.2024 13:17 [13:17:46]line Смена: 543 ФФД: 1.0 [13:17:46]line ЗНМ: 0300000110 [13:17:46]line РНМ: 0000000000091776 [13:17:46]line Версия ККМ: 001 [13:17:46]line ФМ: 0000000000871754 [13:17:46]line ФД: 192579 [13:17:46]line ФПД: 60240631652245 [13:17:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131750&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192579&fm=60240631652245&tin=02508201610067®Number=0000000000091776&sum=100000 [13:17:46]OFD Sender: Processing packet 192579 [packets to send 75, broken 74] [13:17:46]ProducePacketName [13:17:46]name=ofd_packets/00192579 [13:17:46]OFD Sender: To server: pG, [13:17:46]CommunicateWithHost lk.salyk.kg:30040 [13:17:46]ConnectInit lk.salyk.kg [13:17:46]written 0, free lines is 4095 [13:17:46]Connected sock=10 [13:17:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 54 7D 04 01 01 B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FE 8E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 F0 02 00 35 04 06 00 36 C9 DD 73 5F 95 D8 64 EA 1A BF 84 FA 68 [13:17:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1C 24 47 00 24 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 F0 02 00 F4 03 04 00 C2 33 1F 67 B6 04 01 00 00 D7 9B BB 26 6F CA CE A0 [13:17:47]CommunicateWithHost err = 0 [13:17:47]CheckOFDResponse [13:17:47]1017 (14) - 77093643461234 [13:17:47]1041 (16) - 0000000000871754 [13:17:47]1040 (4) - 192579 [13:17:47]1012 (4) - 28.10.2024 06:48 [13:17:47]1206 (1) - 0 [13:17:47]OFD Sender: Remove packet 192579 [13:17:47]ProducePacketName [13:17:47]name=ofd_packets/00192579 [13:17:47]NVStorageDeleteData [13:17:47]Write to MH i2c: 01 00 00 8A 42 CC [13:17:47]Write i2c OK [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: 01 [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: 01 07 00 [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: 01 07 00 8A 42 00 00 00 00 00 B5 0C 94 [13:17:47]RasterBufferAndPrint [13:17:47]line [13:17:47]line [13:17:47]line [13:17:47]line [13:17:47]line [13:17:47]written 0, free lines is 3258 [13:17:47]MH_Cut [13:17:47]Write to MH i2c: D1 01 00 91 42 01 A5 [13:17:47]Write i2c OK [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: D1 [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: D1 01 00 [13:17:47]MH_I2C_Read... [13:17:47]Read from MH i2c: D1 01 00 91 42 00 A4 [13:17:47]Write to MH i2c: 01 00 00 92 42 D4 [13:17:47]Write i2c OK [13:17:47]MH_I2C_Read... [13:17:47]OFD Sender: No OFD packet to send [13:17:48]*** Cut start [13:17:48]*** Partial cut [13:17:48]*** CUTSNS_PIN = 1 [13:17:48]*** CUTSNS_PIN = 0 [13:17:48]*** Brake cut motor [13:17:48]Read from MH i2c: 01 [13:17:48]MH_I2C_Read... [13:17:48]*** Stop cut motor [13:17:48]*** Cut end [13:17:48]Read from MH i2c: 01 07 00 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: 01 07 00 92 42 00 00 00 00 00 FF 0F E9 [13:17:48]process_action close_receipt done [13:17:48]requested_data is exist [13:17:48]produce_requested_data [13:17:48]requested_item fm.sn is exist - process it [13:17:48]wFMCommunicate request_size=4 [13:17:48]MH_SAM_APDU [13:17:48]CAPDU: 80 11 00 00 [13:17:48]Write to MH i2c: E2 08 00 93 42 80 11 00 00 00 00 00 00 4F [13:17:48]Write i2c OK [13:17:48]MH_I2C_Read... [13:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:48]Read from MH i2c: E2 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: E2 17 00 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: E2 17 00 93 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A2 [13:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:17:48]wFMCommunicate OK [13:17:48]requested_item fd.num is exist - process it [13:17:48]SAM_PROTO_GetFieldsCounters [13:17:48]wFMCommunicate request_size=4 [13:17:48]MH_SAM_APDU [13:17:48]CAPDU: 80 13 00 00 [13:17:48]Write to MH i2c: E2 08 00 94 42 80 13 00 00 00 00 00 00 52 [13:17:48]Write i2c OK [13:17:48]MH_I2C_Read... [13:17:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:48]Read from MH i2c: E2 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: E2 62 00 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: E2 62 00 94 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 43 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [13:17:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 43 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:48]wFMCommunicate OK [13:17:48]SAM_PROTO_GetFieldsCounters done [13:17:48]requested_item shift.num is exist - process it [13:17:48]requested_item shift.opened is exist - process it [13:17:48]req_shift_opened [13:17:48]FM_GetShiftState [13:17:48]SAM_PROTO_GetShiftState [13:17:48]wFMCommunicate request_size=4 [13:17:48]MH_SAM_APDU [13:17:48]CAPDU: 80 13 01 00 [13:17:48]Write to MH i2c: E2 08 00 95 42 80 13 01 00 00 00 00 00 54 [13:17:48]Write i2c OK [13:17:48]MH_I2C_Read... [13:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:48]Read from MH i2c: E2 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: E2 0E 00 [13:17:48]MH_I2C_Read... [13:17:48]Read from MH i2c: E2 0E 00 95 42 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A4 [13:17:48]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:17:48]wFMCommunicate OK [13:17:48]SAM_PROTO_GetShiftState done [13:17:48]FM_GetShiftState done [13:17:48]req_shift_opened done [13:17:48]requested_item shift.open_date is exist - process it [13:17:48]req_shift_open_date [13:17:48]req_shift_open_date done [13:17:48]produce_requested_data done [13:17:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192579,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:17:48]process_action_free close_receipt [13:17:48]json_value_free [13:17:48]json_value_free done [13:17:48]process_json_proto returns [13:17:48]Send response to host [13:17:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192579,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:17:48]free response buf [13:17:48]execute_script done [13:17:48]execute_script returns [13:17:48]free content buf [13:17:48]Sock 7.Close socket [13:17:48]Sock 7.Thread stoped [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]accept exits with 9 [13:19:52]New connection [13:19:52]New thread 3066563940 created [13:19:52]Thread 3066707300 joined [13:19:52]Waiting for new connection... [13:19:52] Sock 9.Parse request [13:19:52]Sock 9.Check first char [13:19:52]Sock 9.First char is OK [13:19:52]request: POST /json_proto HTTP/1.0 [13:19:52]Method: POST [13:19:52]URL: /json_proto [13:19:52]Method is POST - this is cgi request [13:19:52]url: /json_proto [13:19:52]query_string will be loaded in cgi processing [13:19:52]execute_cgi json_proto POST (null) [13:19:52]execute_cgi path=json_proto method=POST [13:19:52]POST find Content-Length [13:19:52]Host: 172.17.63.131:8080 [13:19:52]Content-Length: 862 [13:19:52]Content-Type: application/json [13:19:52] [13:19:52]POST finish read [13:19:52]Found Content-Length = 862 [13:19:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.580, "sum" : 172.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 172.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:52]execute_script... [13:19: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)31900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.580, "sum" : 172.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 172.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:52]POST & json_proto [13:19:52]process_json_proto [13:19:52]json parsed OK: [13:19:52]protocol is kg_v1.0 [13:19:52]action value=close_receipt [13:19:52]process_action close_receipt [13:19:52]cmd_close_receipt [13:19:52]MH_GetDate [13:19:52]Write to MH i2c: F0 00 00 96 42 C7 [13:19:52]Write i2c OK [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: F0 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: F0 09 00 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: F0 09 00 96 42 00 7D 8F 1F 67 22 05 6E 64 5B [13:19:52]GetLastDocTimeStamp 1730121470 [13:19:52]current date 1730121597 [13:19:52]FM_GetShiftState [13:19:52]SAM_PROTO_GetShiftState [13:19:52]wFMCommunicate request_size=4 [13:19:52]MH_SAM_APDU [13:19:52]CAPDU: 80 13 01 00 [13:19:52]Write to MH i2c: E2 08 00 97 42 80 13 01 00 00 00 00 00 56 [13:19:52]Write i2c OK [13:19:52]MH_I2C_Read... [13:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:52]Read from MH i2c: E2 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 0E 00 [13:19:52]MH_I2C_Read... [13:19:52]Read from MH i2c: E2 0E 00 97 42 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A6 [13:19:52]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:19:52]wFMCommunicate OK [13:19:52]SAM_PROTO_GetShiftState done [13:19:52]FM_GetShiftState done [13:19:52]opened in 1730075620 [13:19:52]opened+sec_in_day 1730162020 [13:19:52]quantity*price = 17260 [13:19:52]sum+1 = 17261 [13:19:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 172.60 НСП 1% : 1.53 НДС 12% : 18.33 Наличными: 0.00 Безнал.: 172.60 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 128 28.10.2024 13:19 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192580 ФПД: 932323326717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131957&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192580&fm=932323326717&tin=02508201610067®Number=0000000000091776&sum=17260 [13:19:53]StoreToDocumentArchive [13:19:53]shift 543 fd 192580 [13:19:53]save to /storage/0543/doc_00192580 [13:19:53]save last doc name /storage/0543/doc_00192580 to /storage/kkm_last_doc_name [13:19:53]save OK [13:19:53]Clear old archive folders... [13:19:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:53]tlvbuf is 01A7F980 [13:19:53]SAM_PROTO_ClearQueue [13:19:53]wFMCommunicate request_size=4 [13:19:53]MH_SAM_APDU [13:19:53]CAPDU: 80 09 00 00 [13:19:53]Write to MH i2c: E2 08 00 A4 42 80 09 00 00 00 00 00 00 58 [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 03 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 03 00 A4 42 00 90 00 5A [13:19:53]RAPDU: 90 00 [13:19:53]wFMCommunicate OK [13:19:53]SAM_PROTO_ClearQueue done [13:19:53]KKMCreateOFDPacket [13:19:53]OFDProtocolAddRootSTLVToBuf [13:19:53]FM_MakeSignedData [13:19:53]FM_MakeSignedData [13:19:53]SAM_PROTO_SignData [13:19:53]wFMCommunicate request_size=4 [13:19:53]MH_SAM_APDU [13:19:53]CAPDU: 80 0D 01 02 [13:19:53]Write to MH i2c: E2 08 00 A5 42 80 0D 01 02 00 00 00 00 60 [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 03 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 03 00 A5 42 00 90 00 5B [13:19:53]RAPDU: 90 00 [13:19:53]wFMCommunicate OK [13:19:53]wFMCommunicate request_size=255 [13:19:53]MH_SAM_APDU [13:19: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 14 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 43 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7D 8F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 F0 02 00 35 04 06 00 00 [13:19:53]Write to MH i2c: E2 02 01 A6 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 14 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 43 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7D 8F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 F0 02 00 35 04 06 00 00 00 00 08 [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:53]Read from MH i2c: E2 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 03 00 [13:19:53]MH_I2C_Read... [13:19:53]Read from MH i2c: E2 03 00 A6 42 00 90 00 5C [13:19:53]RAPDU: 90 00 [13:19:53]wFMCommunicate OK [13:19:53]wFMCommunicate request_size=10 [13:19:53]MH_SAM_APDU [13:19:53]CAPDU: 80 0D 02 02 05 D9 12 CC FA FD [13:19:53]Write to MH i2c: E2 0D 00 A7 42 80 0D 02 02 05 00 D9 12 CC FA FD 00 00 1B [13:19:53]Write i2c OK [13:19:53]MH_I2C_Read... [13:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:54]Read from MH i2c: E2 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: E2 03 00 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: E2 03 00 A7 42 00 90 00 5D [13:19:54]RAPDU: 90 00 [13:19:54]wFMCommunicate OK [13:19:54]wFMCommunicate request_size=4 [13:19:54]MH_SAM_APDU [13:19:54]CAPDU: 80 0D 03 02 [13:19:54]Write to MH i2c: E2 08 00 A8 42 80 0D 03 02 00 00 00 00 65 [13:19:54]Write i2c OK [13:19:54]MH_I2C_Read... [13:19:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:54]Read from MH i2c: E2 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: E2 0B 00 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: E2 0B 00 A8 42 00 77 3C 2F 2F 99 7A 9A EE 90 00 12 [13:19:54]RAPDU: 77 3C 2F 2F 99 7A 9A EE 90 00 [13:19:54]wFMCommunicate OK [13:19:54]SAM_PROTO_SignData done [13:19:54]FM_MakeSignedData done [13:19:54]CreateOFDProtocolMessage [13:19:54]wFMCommunicate request_size=4 [13:19:54]MH_SAM_APDU [13:19:54]CAPDU: 80 11 00 00 [13:19:54]Write to MH i2c: E2 08 00 A9 42 80 11 00 00 00 00 00 00 65 [13:19:54]Write i2c OK [13:19:54]MH_I2C_Read... [13:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:54]Read from MH i2c: E2 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: E2 17 00 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: E2 17 00 A9 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B8 [13:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:19:54]wFMCommunicate OK [13:19:54]CreateOFDProtocolMessage done [13:19:54]OFDSenderStorePacket 192580 [13:19:54]StoreOFDPacket docnum=192580 [13:19:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B9 7E 07 01 D5 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 43 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7D 8F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 F0 02 00 35 04 06 00 00 D9 12 CC FA FD 77 3C 2F 2F 99 7A 9A EE [13:19:54]CheckFolder [13:19:54]dirname=/storage/ofd_packets [13:19:54]CheckFolder done [13:19:54]ProducePacketName [13:19:54]name=ofd_packets/00192580 [13:19:54]NVStorageSaveData ofd_packets/00192580 [13:19:54]File name is /storage/ofd_packets/00192580 [13:19:54]Write 301 bytes [13:19:54]NVStorageSaveData done [13:19:54]OFDSenderStorePacket done [13:19:54]KKMCreateOFDPacket done [13:19:54]NVStorageSaveData kkm_last_timestamp [13:19:54]File name is /storage/kkm_last_timestamp [13:19:54]Write 4 bytes [13:19:54]NVStorageSaveData done [13:19:54]ExternCall_PrintAddStr [13:19:54]wPrintStart [13:19:54]Write to MH i2c: 01 00 00 AA 42 EC [13:19:54]Write i2c OK [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: 01 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: 01 07 00 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: 01 07 00 AA 42 00 00 00 00 00 FF 0F 01 [13:19:54]RasterBufferAndPrint [13:19:54]line Счет N : (1)31900 [13:19:54]line ИНН: 02508201610067 [13:19:54]line Контрольно-Кассовый Чек [13:19:54]line ПРОДАЖА [13:19:54]line ТРК (МРК, ГНК) : 12 [13:19:54]line Товар: 2710124130 [13:19:54]line Аи-92-К-5 [13:19:54]line 2.580 * 66.90 [13:19:54]line = 172.60 [13:19:54]line НДС 12% НСП 1% [13:19:54]line > о реализуемом товаре [13:19:54]line ИТОГО: 172.60 [13:19:54]line НСП 1% : 1.53 [13:19:54]line НДС 12% : 18.33 [13:19:54]line Наличными: 0.00 [13:19:54]line Безнал.: 172.60 [13:19:54]line Место: АЗС № 170 "Партнер Нефть" [13:19:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:19:54]line СНО: Общий режим [13:19:54]line Чек 128 28.10.2024 13:19 [13:19:54]line Смена: 543 ФФД: 1.0 [13:19:54]line ЗНМ: 0300000110 [13:19:54]line РНМ: 0000000000091776 [13:19:54]line Версия ККМ: 001 [13:19:54]line Платежная система: Кыргызкоммерцбанк [13:19:54]line ФМ: 0000000000871754 [13:19:54]line ФД: 192580 [13:19:54]line ФПД: 932323326717 [13:19:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131957&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192580&fm=932323326717&tin=02508201610067®Number=0000000000091776&sum=17260 [13:19:54]OFD Sender: Processing packet 192580 [packets to send 75, broken 74] [13:19:54]ProducePacketName [13:19:54]name=ofd_packets/00192580 [13:19:54]OFD Sender: To server: pG, [13:19:54]CommunicateWithHost lk.salyk.kg:30040 [13:19:54]ConnectInit lk.salyk.kg [13:19:54]written 0, free lines is 4095 [13:19:54]Connected sock=10 [13:19:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B9 7E 07 01 D5 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 43 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7D 8F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 F0 02 00 35 04 06 00 00 D9 12 CC FA FD 77 3C 2F 2F 99 7A 9A EE [13:19:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 37 12 47 00 B3 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 F0 02 00 F4 03 04 00 41 34 1F 67 B6 04 01 00 00 2C E1 77 13 82 E1 07 32 [13:19:54]CommunicateWithHost err = 0 [13:19:54]CheckOFDResponse [13:19:54]1017 (14) - 77093643461234 [13:19:54]1041 (16) - 0000000000871754 [13:19:54]1040 (4) - 192580 [13:19:54]1012 (4) - 28.10.2024 06:50 [13:19:54]1206 (1) - 0 [13:19:54]OFD Sender: Remove packet 192580 [13:19:54]ProducePacketName [13:19:54]name=ofd_packets/00192580 [13:19:54]NVStorageDeleteData [13:19:54]Write to MH i2c: 01 00 00 D4 42 16 [13:19:54]Write i2c OK [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: 01 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: 01 07 00 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: 01 07 00 D4 42 00 00 00 00 00 D9 0C 02 [13:19:54]RasterBufferAndPrint [13:19:54]line [13:19:54]line [13:19:54]line [13:19:54]line [13:19:54]line [13:19:54]written 0, free lines is 3296 [13:19:54]MH_Cut [13:19:54]Write to MH i2c: D1 01 00 DB 42 01 EF [13:19:54]Write i2c OK [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: D1 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: D1 01 00 [13:19:54]MH_I2C_Read... [13:19:54]Read from MH i2c: D1 01 00 DB 42 00 EE [13:19:54]Write to MH i2c: 01 00 00 DC 42 1E [13:19:54]Write i2c OK [13:19:54]MH_I2C_Read... [13:19:55]OFD Sender: No OFD packet to send [13:19:55]*** Cut start [13:19:55]*** Partial cut [13:19:55]*** CUTSNS_PIN = 1 [13:19:55]*** CUTSNS_PIN = 0 [13:19:56]*** Brake cut motor [13:19:56]Read from MH i2c: 01 [13:19:56]MH_I2C_Read... [13:19:56]*** Stop cut motor [13:19:56]*** Cut end [13:19:56]Read from MH i2c: 01 07 00 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: 01 07 00 DC 42 00 00 00 00 00 FF 0F 33 [13:19:56]process_action close_receipt done [13:19:56]requested_data is exist [13:19:56]produce_requested_data [13:19:56]requested_item fm.sn is exist - process it [13:19:56]wFMCommunicate request_size=4 [13:19:56]MH_SAM_APDU [13:19:56]CAPDU: 80 11 00 00 [13:19:56]Write to MH i2c: E2 08 00 DD 42 80 11 00 00 00 00 00 00 99 [13:19:56]Write i2c OK [13:19:56]MH_I2C_Read... [13:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:56]Read from MH i2c: E2 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: E2 17 00 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: E2 17 00 DD 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EC [13:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:19:56]wFMCommunicate OK [13:19:56]requested_item fd.num is exist - process it [13:19:56]SAM_PROTO_GetFieldsCounters [13:19:56]wFMCommunicate request_size=4 [13:19:56]MH_SAM_APDU [13:19:56]CAPDU: 80 13 00 00 [13:19:56]Write to MH i2c: E2 08 00 DE 42 80 13 00 00 00 00 00 00 9C [13:19:56]Write i2c OK [13:19:56]MH_I2C_Read... [13:19:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:56]Read from MH i2c: E2 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: E2 62 00 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: E2 62 00 DE 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 44 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [13:19:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 44 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:56]wFMCommunicate OK [13:19:56]SAM_PROTO_GetFieldsCounters done [13:19:56]requested_item shift.num is exist - process it [13:19:56]requested_item shift.opened is exist - process it [13:19:56]req_shift_opened [13:19:56]FM_GetShiftState [13:19:56]SAM_PROTO_GetShiftState [13:19:56]wFMCommunicate request_size=4 [13:19:56]MH_SAM_APDU [13:19:56]CAPDU: 80 13 01 00 [13:19:56]Write to MH i2c: E2 08 00 DF 42 80 13 01 00 00 00 00 00 9E [13:19:56]Write i2c OK [13:19:56]MH_I2C_Read... [13:19:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:56]Read from MH i2c: E2 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: E2 0E 00 [13:19:56]MH_I2C_Read... [13:19:56]Read from MH i2c: E2 0E 00 DF 42 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EE [13:19:56]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:19:56]wFMCommunicate OK [13:19:56]SAM_PROTO_GetShiftState done [13:19:56]FM_GetShiftState done [13:19:56]req_shift_opened done [13:19:56]requested_item shift.open_date is exist - process it [13:19:56]req_shift_open_date [13:19:56]req_shift_open_date done [13:19:56]produce_requested_data done [13:19:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192580,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:19:56]process_action_free close_receipt [13:19:56]json_value_free [13:19:56]json_value_free done [13:19:56]process_json_proto returns [13:19:56]Send response to host [13:19:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192580,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:19:56]free response buf [13:19:56]execute_script done [13:19:56]execute_script returns [13:19:56]free content buf [13:19:56]Sock 9.Close socket [13:19:56]Sock 9.Thread stoped [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:14]accept exits with 7 [13:21:14]New connection [13:21:14]New thread 3066707300 created [13:21:14]Thread 3066563940 joined [13:21:14]Waiting for new connection... [13:21:14] Sock 7.Parse request [13:21:14]Sock 7.Check first char [13:21:14]Sock 7.First char is OK [13:21:14]request: POST /json_proto HTTP/1.0 [13:21:14]Method: POST [13:21:14]URL: /json_proto [13:21:14]Method is POST - this is cgi request [13:21:14]url: /json_proto [13:21:14]query_string will be loaded in cgi processing [13:21:14]execute_cgi json_proto POST (null) [13:21:14]execute_cgi path=json_proto method=POST [13:21:14]POST find Content-Length [13:21:14]Host: 172.17.63.131:8080 [13:21:14]Content-Length: 677 [13:21:14]Content-Type: application/json [13:21:14] [13:21:14]POST finish read [13:21:14]Found Content-Length = 677 [13:21:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.890, "sum" : 728.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 728.00, "total" : 728.00, "payments": [ { "type": 0, "sum" : 728.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:14]execute_script... [13:21:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.890, "sum" : 728.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 728.00, "total" : 728.00, "payments": [ { "type": 0, "sum" : 728.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:14]POST & json_proto [13:21:14]process_json_proto [13:21:14]json parsed OK: [13:21:14]protocol is kg_v1.0 [13:21:14]action value=close_receipt [13:21:14]process_action close_receipt [13:21:14]cmd_close_receipt [13:21:14]MH_GetDate [13:21:14]Write to MH i2c: F0 00 00 E0 42 11 [13:21:14]Write i2c OK [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: F0 [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: F0 09 00 [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: F0 09 00 E0 42 00 CF 8F 1F 67 22 05 6E 64 F7 [13:21:14]GetLastDocTimeStamp 1730121597 [13:21:14]current date 1730121679 [13:21:14]FM_GetShiftState [13:21:14]SAM_PROTO_GetShiftState [13:21:14]wFMCommunicate request_size=4 [13:21:14]MH_SAM_APDU [13:21:14]CAPDU: 80 13 01 00 [13:21:14]Write to MH i2c: E2 08 00 E1 42 80 13 01 00 00 00 00 00 A0 [13:21:14]Write i2c OK [13:21:14]MH_I2C_Read... [13:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:14]Read from MH i2c: E2 [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: E2 0E 00 [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: E2 0E 00 E1 42 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F0 [13:21:14]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:21:14]wFMCommunicate OK [13:21:14]SAM_PROTO_GetShiftState done [13:21:14]FM_GetShiftState done [13:21:14]opened in 1730075620 [13:21:14]opened+sec_in_day 1730162020 [13:21:14]quantity*price = 72854 [13:21:14]sum+1 = 72855 [13:21:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 728.00 Внесено: 728.00 СДАЧА: 0.00 НСП 1% : 6.45 НДС 12% : 77.37 Наличными: 728.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 129 28.10.2024 13:21 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192581 ФПД: 138697613053017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132119&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192581&fm=138697613053017&tin=02508201610067®Number=0000000000091776&sum=72800 [13:21:15]StoreToDocumentArchive [13:21:15]shift 543 fd 192581 [13:21:15]save to /storage/0543/doc_00192581 [13:21:15]save last doc name /storage/0543/doc_00192581 to /storage/kkm_last_doc_name [13:21:15]save OK [13:21:15]Clear old archive folders... [13:21:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:15]tlvbuf is 01A502E0 [13:21:15]SAM_PROTO_ClearQueue [13:21:15]wFMCommunicate request_size=4 [13:21:15]MH_SAM_APDU [13:21:15]CAPDU: 80 09 00 00 [13:21:15]Write to MH i2c: E2 08 00 EE 42 80 09 00 00 00 00 00 00 A2 [13:21:15]Write i2c OK [13:21:15]MH_I2C_Read... [13:21:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:15]Read from MH i2c: E2 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 03 00 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 03 00 EE 42 00 90 00 A4 [13:21:15]RAPDU: 90 00 [13:21:15]wFMCommunicate OK [13:21:15]SAM_PROTO_ClearQueue done [13:21:15]KKMCreateOFDPacket [13:21:15]OFDProtocolAddRootSTLVToBuf [13:21:15]FM_MakeSignedData [13:21:15]FM_MakeSignedData [13:21:15]SAM_PROTO_SignData [13:21:15]wFMCommunicate request_size=4 [13:21:15]MH_SAM_APDU [13:21:15]CAPDU: 80 0D 01 02 [13:21:15]Write to MH i2c: E2 08 00 EF 42 80 0D 01 02 00 00 00 00 AA [13:21:15]Write i2c OK [13:21:15]MH_I2C_Read... [13:21:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:15]Read from MH i2c: E2 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 03 00 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 03 00 EF 42 00 90 00 A5 [13:21:15]RAPDU: 90 00 [13:21:15]wFMCommunicate OK [13:21:15]wFMCommunicate request_size=255 [13:21:15]MH_SAM_APDU [13:21: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 8A 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 96 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1E 00 00 00 00 07 04 06 00 60 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 CF 8F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 F0 02 00 35 04 06 00 7E [13:21:15]Write to MH i2c: E2 02 01 F0 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 8A 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 96 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1E 00 00 00 00 07 04 06 00 60 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 CF 8F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 F0 02 00 35 04 06 00 7E 00 00 6F [13:21:15]Write i2c OK [13:21:15]MH_I2C_Read... [13:21:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:16]Read from MH i2c: E2 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 03 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 03 00 F0 42 00 90 00 A6 [13:21:16]RAPDU: 90 00 [13:21:16]wFMCommunicate OK [13:21:16]wFMCommunicate request_size=10 [13:21:16]MH_SAM_APDU [13:21:16]CAPDU: 80 0D 02 02 05 25 0D F5 0C 59 [13:21:16]Write to MH i2c: E2 0D 00 F1 42 80 0D 02 02 05 00 25 0D F5 0C 59 00 00 43 [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:16]Read from MH i2c: E2 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 03 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 03 00 F1 42 00 90 00 A7 [13:21:16]RAPDU: 90 00 [13:21:16]wFMCommunicate OK [13:21:16]wFMCommunicate request_size=4 [13:21:16]MH_SAM_APDU [13:21:16]CAPDU: 80 0D 03 02 [13:21:16]Write to MH i2c: E2 08 00 F2 42 80 0D 03 02 00 00 00 00 AF [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:16]Read from MH i2c: E2 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 0B 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 0B 00 F2 42 00 51 57 7D 44 F0 22 90 42 90 00 FD [13:21:16]RAPDU: 51 57 7D 44 F0 22 90 42 90 00 [13:21:16]wFMCommunicate OK [13:21:16]SAM_PROTO_SignData done [13:21:16]FM_MakeSignedData done [13:21:16]CreateOFDProtocolMessage [13:21:16]wFMCommunicate request_size=4 [13:21:16]MH_SAM_APDU [13:21:16]CAPDU: 80 11 00 00 [13:21:16]Write to MH i2c: E2 08 00 F3 42 80 11 00 00 00 00 00 00 AF [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:16]Read from MH i2c: E2 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 17 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: E2 17 00 F3 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 02 [13:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:21:16]wFMCommunicate OK [13:21:16]CreateOFDProtocolMessage done [13:21:16]OFDSenderStorePacket 192581 [13:21:16]StoreOFDPacket docnum=192581 [13:21:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E2 2F 07 01 3B BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 96 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1E 00 00 00 00 07 04 06 00 60 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 CF 8F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 F0 02 00 35 04 06 00 7E 25 0D F5 0C 59 51 57 7D 44 F0 22 90 42 [13:21:16]CheckFolder [13:21:16]dirname=/storage/ofd_packets [13:21:16]CheckFolder done [13:21:16]ProducePacketName [13:21:16]name=ofd_packets/00192581 [13:21:16]NVStorageSaveData ofd_packets/00192581 [13:21:16]File name is /storage/ofd_packets/00192581 [13:21:16]Write 301 bytes [13:21:16]NVStorageSaveData done [13:21:16]OFDSenderStorePacket done [13:21:16]KKMCreateOFDPacket done [13:21:16]NVStorageSaveData kkm_last_timestamp [13:21:16]File name is /storage/kkm_last_timestamp [13:21:16]Write 4 bytes [13:21:16]NVStorageSaveData done [13:21:16]ExternCall_PrintAddStr [13:21:16]wPrintStart [13:21:16]Write to MH i2c: 01 00 00 F4 42 36 [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: 01 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: 01 07 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: 01 07 00 F4 42 00 00 00 00 00 FF 0F 4B [13:21:16]RasterBufferAndPrint [13:21:16]line Счет N : (1)31901 [13:21:16]line ИНН: 02508201610067 [13:21:16]line Контрольно-Кассовый Чек [13:21:16]line ПРОДАЖА [13:21:16]line ТРК (МРК, ГНК) : 12 [13:21:16]line Товар: 2710124130 [13:21:16]line Аи-92-К-5 [13:21:16]line 10.890 * 66.90 [13:21:16]line = 728.54 [13:21:16]line НДС 12% НСП 1% [13:21:16]line > о реализуемом товаре [13:21:16]line ОКРУГЛЕНИЕ: -0.54 [13:21:16]line ИТОГО: 728.00 [13:21:16]line Внесено: 728.00 [13:21:16]line СДАЧА: 0.00 [13:21:16]line НСП 1% : 6.45 [13:21:16]line НДС 12% : 77.37 [13:21:16]line Наличными: 728.00 [13:21:16]line Безнал.: 0.00 [13:21:16]line Место: АЗС № 170 "Партнер Нефть" [13:21:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:21:16]line СНО: Общий режим [13:21:16]line Чек 129 28.10.2024 13:21 [13:21:16]line Смена: 543 ФФД: 1.0 [13:21:16]line ЗНМ: 0300000110 [13:21:16]line РНМ: 0000000000091776 [13:21:16]line Версия ККМ: 001 [13:21:16]line ФМ: 0000000000871754 [13:21:16]line ФД: 192581 [13:21:16]line ФПД: 138697613053017 [13:21:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132119&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192581&fm=138697613053017&tin=02508201610067®Number=0000000000091776&sum=72800 [13:21:16]written 0, free lines is 4095 [13:21:16]OFD Sender: Processing packet 192581 [packets to send 75, broken 74] [13:21:16]ProducePacketName [13:21:16]name=ofd_packets/00192581 [13:21:16]OFD Sender: To server: pG, [13:21:16]CommunicateWithHost lk.salyk.kg:30040 [13:21:16]ConnectInit lk.salyk.kg [13:21:16]Connected sock=10 [13:21:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E2 2F 07 01 3B BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 96 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1E 00 00 00 00 07 04 06 00 60 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 CF 8F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 F0 02 00 35 04 06 00 7E 25 0D F5 0C 59 51 57 7D 44 F0 22 90 42 [13:21:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 58 6A 47 00 F6 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 F0 02 00 F4 03 04 00 93 34 1F 67 B6 04 01 00 00 B5 41 55 1B 3A 7E 18 2A [13:21:16]CommunicateWithHost err = 0 [13:21:16]CheckOFDResponse [13:21:16]1017 (14) - 77093643461234 [13:21:16]1041 (16) - 0000000000871754 [13:21:16]1040 (4) - 192581 [13:21:16]1012 (4) - 28.10.2024 06:52 [13:21:16]1206 (1) - 0 [13:21:16]OFD Sender: Remove packet 192581 [13:21:16]ProducePacketName [13:21:16]name=ofd_packets/00192581 [13:21:16]NVStorageDeleteData [13:21:16]Write to MH i2c: 01 00 00 1F 43 62 [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: 01 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: 01 07 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: 01 07 00 1F 43 00 00 00 00 00 C6 0C 3B [13:21:16]RasterBufferAndPrint [13:21:16]line [13:21:16]line [13:21:16]line [13:21:16]line [13:21:16]line [13:21:16]written 0, free lines is 3276 [13:21:16]MH_Cut [13:21:16]Write to MH i2c: D1 01 00 26 43 01 3B [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: D1 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: D1 01 00 [13:21:16]MH_I2C_Read... [13:21:16]Read from MH i2c: D1 01 00 26 43 00 3A [13:21:16]Write to MH i2c: 01 00 00 27 43 6A [13:21:16]Write i2c OK [13:21:16]MH_I2C_Read... [13:21:17]OFD Sender: No OFD packet to send [13:21:17]*** Cut start [13:21:17]*** Partial cut [13:21:17]*** CUTSNS_PIN = 1 [13:21:17]*** CUTSNS_PIN = 0 [13:21:17]*** Brake cut motor [13:21:18]Read from MH i2c: 01 [13:21:18]MH_I2C_Read... [13:21:18]*** Stop cut motor [13:21:18]*** Cut end [13:21:18]Read from MH i2c: 01 07 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: 01 07 00 27 43 00 00 00 00 00 FF 0F 7F [13:21:18]process_action close_receipt done [13:21:18]requested_data is exist [13:21:18]produce_requested_data [13:21:18]requested_item fm.sn is exist - process it [13:21:18]wFMCommunicate request_size=4 [13:21:18]MH_SAM_APDU [13:21:18]CAPDU: 80 11 00 00 [13:21:18]Write to MH i2c: E2 08 00 28 43 80 11 00 00 00 00 00 00 E5 [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:18]Read from MH i2c: E2 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 17 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 17 00 28 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 38 [13:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:21:18]wFMCommunicate OK [13:21:18]requested_item fd.num is exist - process it [13:21:18]SAM_PROTO_GetFieldsCounters [13:21:18]wFMCommunicate request_size=4 [13:21:18]MH_SAM_APDU [13:21:18]CAPDU: 80 13 00 00 [13:21:18]Write to MH i2c: E2 08 00 29 43 80 13 00 00 00 00 00 00 E8 [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:18]Read from MH i2c: E2 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 62 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 62 00 29 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 45 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [13:21:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 45 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:18]wFMCommunicate OK [13:21:18]SAM_PROTO_GetFieldsCounters done [13:21:18]requested_item shift.num is exist - process it [13:21:18]requested_item shift.opened is exist - process it [13:21:18]req_shift_opened [13:21:18]FM_GetShiftState [13:21:18]SAM_PROTO_GetShiftState [13:21:18]wFMCommunicate request_size=4 [13:21:18]MH_SAM_APDU [13:21:18]CAPDU: 80 13 01 00 [13:21:18]Write to MH i2c: E2 08 00 2A 43 80 13 01 00 00 00 00 00 EA [13:21:18]Write i2c OK [13:21:18]MH_I2C_Read... [13:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:18]Read from MH i2c: E2 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 0E 00 [13:21:18]MH_I2C_Read... [13:21:18]Read from MH i2c: E2 0E 00 2A 43 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3A [13:21:18]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:21:18]wFMCommunicate OK [13:21:18]SAM_PROTO_GetShiftState done [13:21:18]FM_GetShiftState done [13:21:18]req_shift_opened done [13:21:18]requested_item shift.open_date is exist - process it [13:21:18]req_shift_open_date [13:21:18]req_shift_open_date done [13:21:18]produce_requested_data done [13:21:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192581,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:21:18]process_action_free close_receipt [13:21:18]json_value_free [13:21:18]json_value_free done [13:21:18]process_json_proto returns [13:21:18]Send response to host [13:21:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192581,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:21:18]free response buf [13:21:18]execute_script done [13:21:18]execute_script returns [13:21:18]free content buf [13:21:18]Sock 7.Close socket [13:21:18]Sock 7.Thread stoped [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:35]accept exits with 9 [13:21:35]New connection [13:21:35]New thread 3066563940 created [13:21:35]Thread 3066707300 joined [13:21:35]Waiting for new connection... [13:21:35] Sock 9.Parse request [13:21:35]Sock 9.Check first char [13:21:35]Sock 9.First char is OK [13:21:35]request: POST /json_proto HTTP/1.0 [13:21:35]Method: POST [13:21:35]URL: /json_proto [13:21:35]Method is POST - this is cgi request [13:21:35]url: /json_proto [13:21:35]query_string will be loaded in cgi processing [13:21:35]execute_cgi json_proto POST (null) [13:21:35]execute_cgi path=json_proto method=POST [13:21:35]POST find Content-Length [13:21:35]Host: 172.17.63.131:8080 [13:21:35]Content-Length: 676 [13:21:35]Content-Type: application/json [13:21:35] [13:21:35]POST finish read [13:21:35]Found Content-Length = 676 [13:21:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:35]execute_script... [13:21: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)31903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:35]POST & json_proto [13:21:35]process_json_proto [13:21:35]json parsed OK: [13:21:35]protocol is kg_v1.0 [13:21:35]action value=close_receipt [13:21:35]process_action close_receipt [13:21:35]cmd_close_receipt [13:21:35]MH_GetDate [13:21:35]Write to MH i2c: F0 00 00 2B 43 5D [13:21:35]Write i2c OK [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: F0 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: F0 09 00 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: F0 09 00 2B 43 00 E5 8F 1F 67 22 05 6E 64 59 [13:21:35]GetLastDocTimeStamp 1730121679 [13:21:35]current date 1730121701 [13:21:35]FM_GetShiftState [13:21:35]SAM_PROTO_GetShiftState [13:21:35]wFMCommunicate request_size=4 [13:21:35]MH_SAM_APDU [13:21:35]CAPDU: 80 13 01 00 [13:21:35]Write to MH i2c: E2 08 00 2C 43 80 13 01 00 00 00 00 00 EC [13:21:35]Write i2c OK [13:21:35]MH_I2C_Read... [13:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:35]Read from MH i2c: E2 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 0E 00 [13:21:35]MH_I2C_Read... [13:21:35]Read from MH i2c: E2 0E 00 2C 43 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3C [13:21:35]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:21:35]wFMCommunicate OK [13:21:35]SAM_PROTO_GetShiftState done [13:21:35]FM_GetShiftState done [13:21:35]opened in 1730075620 [13:21:35]opened+sec_in_day 1730162020 [13:21:35]quantity*price = 10035 [13:21:35]sum+1 = 10036 [13:21:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 130 28.10.2024 13:21 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192582 ФПД: 213328897120335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132141&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192582&fm=213328897120335&tin=02508201610067®Number=0000000000091776&sum=10000 [13:21:37]StoreToDocumentArchive [13:21:37]shift 543 fd 192582 [13:21:37]save to /storage/0543/doc_00192582 [13:21:37]save last doc name /storage/0543/doc_00192582 to /storage/kkm_last_doc_name [13:21:37]save OK [13:21:37]Clear old archive folders... [13:21:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:37]tlvbuf is 01AC8330 [13:21:37]SAM_PROTO_ClearQueue [13:21:37]wFMCommunicate request_size=4 [13:21:37]MH_SAM_APDU [13:21:37]CAPDU: 80 09 00 00 [13:21:37]Write to MH i2c: E2 08 00 39 43 80 09 00 00 00 00 00 00 EE [13:21:37]Write i2c OK [13:21:37]MH_I2C_Read... [13:21:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:37]OFD Sender: No OFD packet to send [13:21:37]Read from MH i2c: E2 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 03 00 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 03 00 39 43 00 90 00 F0 [13:21:37]RAPDU: 90 00 [13:21:37]wFMCommunicate OK [13:21:37]SAM_PROTO_ClearQueue done [13:21:37]KKMCreateOFDPacket [13:21:37]OFDProtocolAddRootSTLVToBuf [13:21:37]FM_MakeSignedData [13:21:37]FM_MakeSignedData [13:21:37]SAM_PROTO_SignData [13:21:37]wFMCommunicate request_size=4 [13:21:37]MH_SAM_APDU [13:21:37]CAPDU: 80 0D 01 02 [13:21:37]Write to MH i2c: E2 08 00 3A 43 80 0D 01 02 00 00 00 00 F6 [13:21:37]Write i2c OK [13:21:37]MH_I2C_Read... [13:21:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:37]Read from MH i2c: E2 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 03 00 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 03 00 3A 43 00 90 00 F1 [13:21:37]RAPDU: 90 00 [13:21:37]wFMCommunicate OK [13:21:37]wFMCommunicate request_size=255 [13:21:37]MH_SAM_APDU [13:21: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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E5 8F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 F0 02 00 35 04 06 00 C2 [13:21:37]Write to MH i2c: E2 02 01 3B 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E5 8F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 F0 02 00 35 04 06 00 C2 00 00 08 [13:21:37]Write i2c OK [13:21:37]MH_I2C_Read... [13:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:37]Read from MH i2c: E2 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 03 00 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 03 00 3B 43 00 90 00 F2 [13:21:37]RAPDU: 90 00 [13:21:37]wFMCommunicate OK [13:21:37]wFMCommunicate request_size=10 [13:21:37]MH_SAM_APDU [13:21:37]CAPDU: 80 0D 02 02 05 05 81 22 18 4F [13:21:37]Write to MH i2c: E2 0D 00 3C 43 80 0D 02 02 05 00 05 81 22 18 4F 00 00 12 [13:21:37]Write i2c OK [13:21:37]MH_I2C_Read... [13:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:37]Read from MH i2c: E2 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 03 00 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 03 00 3C 43 00 90 00 F3 [13:21:37]RAPDU: 90 00 [13:21:37]wFMCommunicate OK [13:21:37]wFMCommunicate request_size=4 [13:21:37]MH_SAM_APDU [13:21:37]CAPDU: 80 0D 03 02 [13:21:37]Write to MH i2c: E2 08 00 3D 43 80 0D 03 02 00 00 00 00 FB [13:21:37]Write i2c OK [13:21:37]MH_I2C_Read... [13:21:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:37]Read from MH i2c: E2 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 0B 00 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 0B 00 3D 43 00 27 E3 9A 4A 67 17 5C DD 90 00 A1 [13:21:37]RAPDU: 27 E3 9A 4A 67 17 5C DD 90 00 [13:21:37]wFMCommunicate OK [13:21:37]SAM_PROTO_SignData done [13:21:37]FM_MakeSignedData done [13:21:37]CreateOFDProtocolMessage [13:21:37]wFMCommunicate request_size=4 [13:21:37]MH_SAM_APDU [13:21:37]CAPDU: 80 11 00 00 [13:21:37]Write to MH i2c: E2 08 00 3E 43 80 11 00 00 00 00 00 00 FB [13:21:37]Write i2c OK [13:21:37]MH_I2C_Read... [13:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:37]Read from MH i2c: E2 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 17 00 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: E2 17 00 3E 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4E [13:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:21:37]wFMCommunicate OK [13:21:37]CreateOFDProtocolMessage done [13:21:37]OFDSenderStorePacket 192582 [13:21:37]StoreOFDPacket docnum=192582 [13:21:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 22 0B 07 01 60 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E5 8F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 F0 02 00 35 04 06 00 C2 05 81 22 18 4F 27 E3 9A 4A 67 17 5C DD [13:21:37]CheckFolder [13:21:37]dirname=/storage/ofd_packets [13:21:37]CheckFolder done [13:21:37]ProducePacketName [13:21:37]name=ofd_packets/00192582 [13:21:37]NVStorageSaveData ofd_packets/00192582 [13:21:37]File name is /storage/ofd_packets/00192582 [13:21:37]Write 301 bytes [13:21:37]NVStorageSaveData done [13:21:37]OFDSenderStorePacket done [13:21:37]KKMCreateOFDPacket done [13:21:37]NVStorageSaveData kkm_last_timestamp [13:21:37]File name is /storage/kkm_last_timestamp [13:21:37]Write 4 bytes [13:21:37]NVStorageSaveData done [13:21:37]ExternCall_PrintAddStr [13:21:37]wPrintStart [13:21:37]Write to MH i2c: 01 00 00 3F 43 82 [13:21:37]Write i2c OK [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: 01 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: 01 07 00 [13:21:37]MH_I2C_Read... [13:21:37]Read from MH i2c: 01 07 00 3F 43 00 00 00 00 00 FF 0F 97 [13:21:37]RasterBufferAndPrint [13:21:37]line Счет N : (1)31903 [13:21:37]line ИНН: 02508201610067 [13:21:37]line Контрольно-Кассовый Чек [13:21:37]line ПРОДАЖА [13:21:37]line ТРК (МРК, ГНК) : 12 [13:21:37]line Товар: 2710124130 [13:21:37]line Аи-92-К-5 [13:21:37]line 1.500 * 66.90 [13:21:37]line = 100.35 [13:21:37]line НДС 12% НСП 1% [13:21:37]line > о реализуемом товаре [13:21:37]line ОКРУГЛЕНИЕ: -0.35 [13:21:37]line ИТОГО: 100.00 [13:21:37]line Внесено: 100.00 [13:21:37]line СДАЧА: 0.00 [13:21:37]line НСП 1% : 0.89 [13:21:37]line НДС 12% : 10.66 [13:21:37]line Наличными: 100.00 [13:21:37]line Безнал.: 0.00 [13:21:37]line Место: АЗС № 170 "Партнер Нефть" [13:21:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:21:37]line СНО: Общий режим [13:21:37]line Чек 130 28.10.2024 13:21 [13:21:37]line Смена: 543 ФФД: 1.0 [13:21:37]line ЗНМ: 0300000110 [13:21:37]line РНМ: 0000000000091776 [13:21:37]line Версия ККМ: 001 [13:21:37]line ФМ: 0000000000871754 [13:21:37]line ФД: 192582 [13:21:37]line ФПД: 213328897120335 [13:21:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132141&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192582&fm=213328897120335&tin=02508201610067®Number=0000000000091776&sum=10000 [13:21:37]OFD Sender: Processing packet 192582 [packets to send 75, broken 74] [13:21:37]ProducePacketName [13:21:37]name=ofd_packets/00192582 [13:21:37]OFD Sender: To server: pG, [13:21:37]CommunicateWithHost lk.salyk.kg:30040 [13:21:37]ConnectInit lk.salyk.kg [13:21:37]written 0, free lines is 4095 [13:21:38]Connected sock=10 [13:21:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 22 0B 07 01 60 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 E5 8F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 F0 02 00 35 04 06 00 C2 05 81 22 18 4F 27 E3 9A 4A 67 17 5C DD [13:21:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3B 18 47 00 97 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 F0 02 00 F4 03 04 00 A9 34 1F 67 B6 04 01 00 00 07 42 B9 D1 2A 9A 35 5F [13:21:38]CommunicateWithHost err = 0 [13:21:38]CheckOFDResponse [13:21:38]1017 (14) - 77093643461234 [13:21:38]1041 (16) - 0000000000871754 [13:21:38]1040 (4) - 192582 [13:21:38]1012 (4) - 28.10.2024 06:52 [13:21:38]1206 (1) - 0 [13:21:38]OFD Sender: Remove packet 192582 [13:21:38]ProducePacketName [13:21:38]name=ofd_packets/00192582 [13:21:38]NVStorageDeleteData [13:21:38]Write to MH i2c: 01 00 00 6A 43 AD [13:21:38]Write i2c OK [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: 01 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: 01 07 00 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: 01 07 00 6A 43 00 00 00 00 00 C7 0C 87 [13:21:38]RasterBufferAndPrint [13:21:38]line [13:21:38]line [13:21:38]line [13:21:38]line [13:21:38]line [13:21:38]written 0, free lines is 3277 [13:21:38]MH_Cut [13:21:38]Write to MH i2c: D1 01 00 71 43 01 86 [13:21:38]Write i2c OK [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: D1 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: D1 01 00 [13:21:38]MH_I2C_Read... [13:21:38]Read from MH i2c: D1 01 00 71 43 00 85 [13:21:38]Write to MH i2c: 01 00 00 72 43 B5 [13:21:38]Write i2c OK [13:21:38]MH_I2C_Read... [13:21:38]OFD Sender: No OFD packet to send [13:21:39]*** Cut start [13:21:39]*** Partial cut [13:21:39]*** CUTSNS_PIN = 1 [13:21:39]*** CUTSNS_PIN = 0 [13:21:39]*** Brake cut motor [13:21:39]Read from MH i2c: 01 [13:21:39]MH_I2C_Read... [13:21:39]*** Stop cut motor [13:21:39]*** Cut end [13:21:39]Read from MH i2c: 01 07 00 [13:21:39]MH_I2C_Read... [13:21:39]Read from MH i2c: 01 07 00 72 43 00 00 00 00 00 FF 0F CA [13:21:39]process_action close_receipt done [13:21:39]requested_data is exist [13:21:39]produce_requested_data [13:21:39]requested_item fm.sn is exist - process it [13:21:39]wFMCommunicate request_size=4 [13:21:39]MH_SAM_APDU [13:21:39]CAPDU: 80 11 00 00 [13:21:39]Write to MH i2c: E2 08 00 73 43 80 11 00 00 00 00 00 00 30 [13:21:39]Write i2c OK [13:21:39]MH_I2C_Read... [13:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:39]Read from MH i2c: E2 [13:21:39]MH_I2C_Read... [13:21:39]Read from MH i2c: E2 17 00 [13:21:39]MH_I2C_Read... [13:21:39]Read from MH i2c: E2 17 00 73 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 83 [13:21:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:21:39]wFMCommunicate OK [13:21:39]requested_item fd.num is exist - process it [13:21:39]SAM_PROTO_GetFieldsCounters [13:21:39]wFMCommunicate request_size=4 [13:21:39]MH_SAM_APDU [13:21:39]CAPDU: 80 13 00 00 [13:21:39]Write to MH i2c: E2 08 00 74 43 80 13 00 00 00 00 00 00 33 [13:21:39]Write i2c OK [13:21:39]MH_I2C_Read... [13:21:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:40]Read from MH i2c: E2 [13:21:40]MH_I2C_Read... [13:21:40]Read from MH i2c: E2 62 00 [13:21:40]MH_I2C_Read... [13:21:40]Read from MH i2c: E2 62 00 74 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 46 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [13:21:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 46 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:40]wFMCommunicate OK [13:21:40]SAM_PROTO_GetFieldsCounters done [13:21:40]requested_item shift.num is exist - process it [13:21:40]requested_item shift.opened is exist - process it [13:21:40]req_shift_opened [13:21:40]FM_GetShiftState [13:21:40]SAM_PROTO_GetShiftState [13:21:40]wFMCommunicate request_size=4 [13:21:40]MH_SAM_APDU [13:21:40]CAPDU: 80 13 01 00 [13:21:40]Write to MH i2c: E2 08 00 75 43 80 13 01 00 00 00 00 00 35 [13:21:40]Write i2c OK [13:21:40]MH_I2C_Read... [13:21:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:40]Read from MH i2c: E2 [13:21:40]MH_I2C_Read... [13:21:40]Read from MH i2c: E2 0E 00 [13:21:40]MH_I2C_Read... [13:21:40]Read from MH i2c: E2 0E 00 75 43 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 85 [13:21:40]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:21:40]wFMCommunicate OK [13:21:40]SAM_PROTO_GetShiftState done [13:21:40]FM_GetShiftState done [13:21:40]req_shift_opened done [13:21:40]requested_item shift.open_date is exist - process it [13:21:40]req_shift_open_date [13:21:40]req_shift_open_date done [13:21:40]produce_requested_data done [13:21:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192582,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:21:40]process_action_free close_receipt [13:21:40]json_value_free [13:21:40]json_value_free done [13:21:40]process_json_proto returns [13:21:40]Send response to host [13:21:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192582,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:21:40]free response buf [13:21:40]execute_script done [13:21:40]execute_script returns [13:21:40]free content buf [13:21:40]Sock 9.Close socket [13:21:40]Sock 9.Thread stoped [13:21:41]accept exits with 7 [13:21:41]New connection [13:21:41]New thread 3066707300 created [13:21:41]Thread 3066563940 joined [13:21:41]Waiting for new connection... [13:21:41] Sock 7.Parse request [13:21:41]Sock 7.Check first char [13:21:41]Sock 7.First char is OK [13:21:41]request: POST /json_proto HTTP/1.0 [13:21:41]Method: POST [13:21:41]URL: /json_proto [13:21:41]Method is POST - this is cgi request [13:21:41]url: /json_proto [13:21:41]query_string will be loaded in cgi processing [13:21:41]execute_cgi json_proto POST (null) [13:21:41]execute_cgi path=json_proto method=POST [13:21:41]POST find Content-Length [13:21:41]Host: 172.17.63.131:8080 [13:21:41]Content-Length: 676 [13:21:41]Content-Type: application/json [13:21:41] [13:21:41]POST finish read [13:21:41]Found Content-Length = 676 [13:21:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:41]execute_script... [13:21:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:41]POST & json_proto [13:21:41]process_json_proto [13:21:41]json parsed OK: [13:21:41]protocol is kg_v1.0 [13:21:41]action value=close_receipt [13:21:41]process_action close_receipt [13:21:41]cmd_close_receipt [13:21:41]MH_GetDate [13:21:41]Write to MH i2c: F0 00 00 76 43 A8 [13:21:41]Write i2c OK [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: F0 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: F0 09 00 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: F0 09 00 76 43 00 EA 8F 1F 67 22 05 6E 64 A9 [13:21:41]GetLastDocTimeStamp 1730121701 [13:21:41]current date 1730121706 [13:21:41]FM_GetShiftState [13:21:41]SAM_PROTO_GetShiftState [13:21:41]wFMCommunicate request_size=4 [13:21:41]MH_SAM_APDU [13:21:41]CAPDU: 80 13 01 00 [13:21:41]Write to MH i2c: E2 08 00 77 43 80 13 01 00 00 00 00 00 37 [13:21:41]Write i2c OK [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: E2 [13:21:41]MH_I2C_Read... [13:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:41]Read from MH i2c: E2 0E 00 [13:21:41]MH_I2C_Read... [13:21:41]Read from MH i2c: E2 0E 00 77 43 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 87 [13:21:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:21:41]wFMCommunicate OK [13:21:41]SAM_PROTO_GetShiftState done [13:21:41]FM_GetShiftState done [13:21:41]opened in 1730075620 [13:21:41]opened+sec_in_day 1730162020 [13:21:41]quantity*price = 60009 [13:21:41]sum+1 = 60010 [13:21:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 131 28.10.2024 13:21 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192583 ФПД: 236103884277671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132146&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192583&fm=236103884277671&tin=02508201610067®Number=0000000000091776&sum=60000 [13:21:42]StoreToDocumentArchive [13:21:42]shift 543 fd 192583 [13:21:42]save to /storage/0543/doc_00192583 [13:21:42]save last doc name /storage/0543/doc_00192583 to /storage/kkm_last_doc_name [13:21:42]save OK [13:21:42]Clear old archive folders... [13:21:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:42]tlvbuf is 019B3E80 [13:21:42]SAM_PROTO_ClearQueue [13:21:42]wFMCommunicate request_size=4 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 09 00 00 [13:21:42]Write to MH i2c: E2 08 00 84 43 80 09 00 00 00 00 00 00 39 [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:42]Read from MH i2c: E2 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 84 43 00 90 00 3B [13:21:42]RAPDU: 90 00 [13:21:42]wFMCommunicate OK [13:21:42]SAM_PROTO_ClearQueue done [13:21:42]KKMCreateOFDPacket [13:21:42]OFDProtocolAddRootSTLVToBuf [13:21:42]FM_MakeSignedData [13:21:42]FM_MakeSignedData [13:21:42]SAM_PROTO_SignData [13:21:42]wFMCommunicate request_size=4 [13:21:42]MH_SAM_APDU [13:21:42]CAPDU: 80 0D 01 02 [13:21:42]Write to MH i2c: E2 08 00 85 43 80 0D 01 02 00 00 00 00 41 [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:42]Read from MH i2c: E2 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 [13:21:42]MH_I2C_Read... [13:21:42]Read from MH i2c: E2 03 00 85 43 00 90 00 3C [13:21:42]RAPDU: 90 00 [13:21:42]wFMCommunicate OK [13:21:42]wFMCommunicate request_size=255 [13:21:42]MH_SAM_APDU [13:21: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 EA 8F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 F0 02 00 35 04 06 00 D6 [13:21:42]Write to MH i2c: E2 02 01 86 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 EA 8F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 F0 02 00 35 04 06 00 D6 00 00 64 [13:21:42]Write i2c OK [13:21:42]MH_I2C_Read... [13:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:43]Read from MH i2c: E2 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 03 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 03 00 86 43 00 90 00 3D [13:21:43]RAPDU: 90 00 [13:21:43]wFMCommunicate OK [13:21:43]wFMCommunicate request_size=10 [13:21:43]MH_SAM_APDU [13:21:43]CAPDU: 80 0D 02 02 05 BC 38 27 07 A7 [13:21:43]Write to MH i2c: E2 0D 00 87 43 80 0D 02 02 05 00 BC 38 27 07 A7 00 00 17 [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:43]Read from MH i2c: E2 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 03 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 03 00 87 43 00 90 00 3E [13:21:43]RAPDU: 90 00 [13:21:43]wFMCommunicate OK [13:21:43]wFMCommunicate request_size=4 [13:21:43]MH_SAM_APDU [13:21:43]CAPDU: 80 0D 03 02 [13:21:43]Write to MH i2c: E2 08 00 88 43 80 0D 03 02 00 00 00 00 46 [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:43]Read from MH i2c: E2 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 0B 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 0B 00 88 43 00 6C D8 0A 33 F8 79 14 71 90 00 BE [13:21:43]RAPDU: 6C D8 0A 33 F8 79 14 71 90 00 [13:21:43]wFMCommunicate OK [13:21:43]SAM_PROTO_SignData done [13:21:43]FM_MakeSignedData done [13:21:43]CreateOFDProtocolMessage [13:21:43]wFMCommunicate request_size=4 [13:21:43]MH_SAM_APDU [13:21:43]CAPDU: 80 11 00 00 [13:21:43]Write to MH i2c: E2 08 00 89 43 80 11 00 00 00 00 00 00 46 [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:43]Read from MH i2c: E2 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 17 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: E2 17 00 89 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 99 [13:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:21:43]wFMCommunicate OK [13:21:43]CreateOFDProtocolMessage done [13:21:43]OFDSenderStorePacket 192583 [13:21:43]StoreOFDPacket docnum=192583 [13:21:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E5 D1 07 01 F4 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 EA 8F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 F0 02 00 35 04 06 00 D6 BC 38 27 07 A7 6C D8 0A 33 F8 79 14 71 [13:21:43]CheckFolder [13:21:43]dirname=/storage/ofd_packets [13:21:43]CheckFolder done [13:21:43]ProducePacketName [13:21:43]name=ofd_packets/00192583 [13:21:43]NVStorageSaveData ofd_packets/00192583 [13:21:43]File name is /storage/ofd_packets/00192583 [13:21:43]Write 301 bytes [13:21:43]NVStorageSaveData done [13:21:43]OFDSenderStorePacket done [13:21:43]KKMCreateOFDPacket done [13:21:43]NVStorageSaveData kkm_last_timestamp [13:21:43]File name is /storage/kkm_last_timestamp [13:21:43]Write 4 bytes [13:21:43]NVStorageSaveData done [13:21:43]ExternCall_PrintAddStr [13:21:43]wPrintStart [13:21:43]Write to MH i2c: 01 00 00 8A 43 CD [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: 01 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: 01 07 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: 01 07 00 8A 43 00 00 00 00 00 FF 0F E2 [13:21:43]RasterBufferAndPrint [13:21:43]line Счет N : (1)31902 [13:21:43]line ИНН: 02508201610067 [13:21:43]line Контрольно-Кассовый Чек [13:21:43]line ПРОДАЖА [13:21:43]line ТРК (МРК, ГНК) : 21 [13:21:43]line Товар: 2710124130 [13:21:43]line Аи-92-К-5 [13:21:43]line 8.970 * 66.90 [13:21:43]line = 600.09 [13:21:43]line НДС 12% НСП 1% [13:21:43]line > о реализуемом товаре [13:21:43]line ОКРУГЛЕНИЕ: -0.09 [13:21:43]line ИТОГО: 600.00 [13:21:43]line Внесено: 600.00 [13:21:43]line СДАЧА: 0.00 [13:21:43]line НСП 1% : 5.31 [13:21:43]line НДС 12% : 63.73 [13:21:43]line Наличными: 600.00 [13:21:43]line Безнал.: 0.00 [13:21:43]line Место: АЗС № 170 "Партнер Нефть" [13:21:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:21:43]line СНО: Общий режим [13:21:43]line Чек 131 28.10.2024 13:21 [13:21:43]line Смена: 543 ФФД: 1.0 [13:21:43]line ЗНМ: 0300000110 [13:21:43]line РНМ: 0000000000091776 [13:21:43]line Версия ККМ: 001 [13:21:43]line ФМ: 0000000000871754 [13:21:43]line ФД: 192583 [13:21:43]line ФПД: 236103884277671 [13:21:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132146&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192583&fm=236103884277671&tin=02508201610067®Number=0000000000091776&sum=60000 [13:21:43]OFD Sender: Processing packet 192583 [packets to send 75, broken 74] [13:21:43]ProducePacketName [13:21:43]name=ofd_packets/00192583 [13:21:43]OFD Sender: To server: pG, [13:21:43]CommunicateWithHost lk.salyk.kg:30040 [13:21:43]ConnectInit lk.salyk.kg [13:21:43]written 0, free lines is 4095 [13:21:43]Connected sock=10 [13:21:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E5 D1 07 01 F4 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 EA 8F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 F0 02 00 35 04 06 00 D6 BC 38 27 07 A7 6C D8 0A 33 F8 79 14 71 [13:21:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EA A5 47 00 3A 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 F0 02 00 F4 03 04 00 AE 34 1F 67 B6 04 01 00 00 BD EA 4B 9A 06 55 09 E9 [13:21:43]CommunicateWithHost err = 0 [13:21:43]CheckOFDResponse [13:21:43]1017 (14) - 77093643461234 [13:21:43]1041 (16) - 0000000000871754 [13:21:43]1040 (4) - 192583 [13:21:43]1012 (4) - 28.10.2024 06:52 [13:21:43]1206 (1) - 0 [13:21:43]OFD Sender: Remove packet 192583 [13:21:43]ProducePacketName [13:21:43]name=ofd_packets/00192583 [13:21:43]NVStorageDeleteData [13:21:43]Write to MH i2c: 01 00 00 B5 43 F8 [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: 01 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: 01 07 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: 01 07 00 B5 43 00 00 00 00 00 CF 0C DA [13:21:43]RasterBufferAndPrint [13:21:43]line [13:21:43]line [13:21:43]line [13:21:43]line [13:21:43]line [13:21:43]written 0, free lines is 3293 [13:21:43]MH_Cut [13:21:43]Write to MH i2c: D1 01 00 BC 43 01 D1 [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: D1 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: D1 01 00 [13:21:43]MH_I2C_Read... [13:21:43]Read from MH i2c: D1 01 00 BC 43 00 D0 [13:21:43]Write to MH i2c: 01 00 00 BD 43 00 [13:21:43]Write i2c OK [13:21:43]MH_I2C_Read... [13:21:44]OFD Sender: No OFD packet to send [13:21:44]*** Cut start [13:21:44]*** Partial cut [13:21:44]*** CUTSNS_PIN = 1 [13:21:44]*** CUTSNS_PIN = 0 [13:21:44]*** Brake cut motor [13:21:45]Read from MH i2c: 01 [13:21:45]MH_I2C_Read... [13:21:45]*** Stop cut motor [13:21:45]*** Cut end [13:21:45]Read from MH i2c: 01 07 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: 01 07 00 BD 43 00 00 00 00 00 FF 0F 15 [13:21:45]process_action close_receipt done [13:21:45]requested_data is exist [13:21:45]produce_requested_data [13:21:45]requested_item fm.sn is exist - process it [13:21:45]wFMCommunicate request_size=4 [13:21:45]MH_SAM_APDU [13:21:45]CAPDU: 80 11 00 00 [13:21:45]Write to MH i2c: E2 08 00 BE 43 80 11 00 00 00 00 00 00 7B [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:45]Read from MH i2c: E2 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 17 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 17 00 BE 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CE [13:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:21:45]wFMCommunicate OK [13:21:45]requested_item fd.num is exist - process it [13:21:45]SAM_PROTO_GetFieldsCounters [13:21:45]wFMCommunicate request_size=4 [13:21:45]MH_SAM_APDU [13:21:45]CAPDU: 80 13 00 00 [13:21:45]Write to MH i2c: E2 08 00 BF 43 80 13 00 00 00 00 00 00 7E [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:45]Read from MH i2c: E2 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 62 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 62 00 BF 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 47 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [13:21:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 47 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:45]wFMCommunicate OK [13:21:45]SAM_PROTO_GetFieldsCounters done [13:21:45]requested_item shift.num is exist - process it [13:21:45]requested_item shift.opened is exist - process it [13:21:45]req_shift_opened [13:21:45]FM_GetShiftState [13:21:45]SAM_PROTO_GetShiftState [13:21:45]wFMCommunicate request_size=4 [13:21:45]MH_SAM_APDU [13:21:45]CAPDU: 80 13 01 00 [13:21:45]Write to MH i2c: E2 08 00 C0 43 80 13 01 00 00 00 00 00 80 [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:45]Read from MH i2c: E2 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 0E 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 0E 00 C0 43 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D0 [13:21:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:21:45]wFMCommunicate OK [13:21:45]SAM_PROTO_GetShiftState done [13:21:45]FM_GetShiftState done [13:21:45]req_shift_opened done [13:21:45]requested_item shift.open_date is exist - process it [13:21:45]req_shift_open_date [13:21:45]req_shift_open_date done [13:21:45]produce_requested_data done [13:21:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192583,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:21:45]process_action_free close_receipt [13:21:45]json_value_free [13:21:45]json_value_free done [13:21:45]process_json_proto returns [13:21:45]Send response to host [13:21:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192583,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:21:45]free response buf [13:21:45]execute_script done [13:21:45]execute_script returns [13:21:45]free content buf [13:21:45]Sock 7.Close socket [13:21:45]Sock 7.Thread stoped [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]OFD Sender: No OFD packet to send [13:22:42]accept exits with 9 [13:22:42]New connection [13:22:42]New thread 3066563940 created [13:22:42]Thread 3066707300 joined [13:22:42]Waiting for new connection... [13:22:42] Sock 9.Parse request [13:22:42]Sock 9.Check first char [13:22:42]Sock 9.First char is OK [13:22:42]request: POST /json_proto HTTP/1.0 [13:22:42]Method: POST [13:22:42]URL: /json_proto [13:22:42]Method is POST - this is cgi request [13:22:42]url: /json_proto [13:22:42]query_string will be loaded in cgi processing [13:22:42]execute_cgi json_proto POST (null) [13:22:42]execute_cgi path=json_proto method=POST [13:22:42]POST find Content-Length [13:22:42]Host: 172.17.63.131:8080 [13:22:42]Content-Length: 676 [13:22:42]Content-Type: application/json [13:22:42] [13:22:42]POST finish read [13:22:42]Found Content-Length = 676 [13:22:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:42]execute_script... [13:22:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:42]POST & json_proto [13:22:42]process_json_proto [13:22:42]json parsed OK: [13:22:42]protocol is kg_v1.0 [13:22:42]action value=close_receipt [13:22:42]process_action close_receipt [13:22:42]cmd_close_receipt [13:22:42]MH_GetDate [13:22:42]Write to MH i2c: F0 00 00 C1 43 F3 [13:22:42]Write i2c OK [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: F0 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: F0 09 00 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: F0 09 00 C1 43 00 27 90 1F 67 22 05 6E 64 32 [13:22:42]GetLastDocTimeStamp 1730121706 [13:22:42]current date 1730121767 [13:22:42]FM_GetShiftState [13:22:42]SAM_PROTO_GetShiftState [13:22:42]wFMCommunicate request_size=4 [13:22:42]MH_SAM_APDU [13:22:42]CAPDU: 80 13 01 00 [13:22:42]Write to MH i2c: E2 08 00 C2 43 80 13 01 00 00 00 00 00 82 [13:22:42]Write i2c OK [13:22:42]MH_I2C_Read... [13:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:42]Read from MH i2c: E2 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: E2 0E 00 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: E2 0E 00 C2 43 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D2 [13:22:42]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:22:42]wFMCommunicate OK [13:22:42]SAM_PROTO_GetShiftState done [13:22:42]FM_GetShiftState done [13:22:42]opened in 1730075620 [13:22:42]opened+sec_in_day 1730162020 [13:22:42]quantity*price = 50041 [13:22:42]sum+1 = 50042 [13:22:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 132 28.10.2024 13:22 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192584 ФПД: 145353376206868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132247&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192584&fm=145353376206868&tin=02508201610067®Number=0000000000091776&sum=50000 [13:22:43]StoreToDocumentArchive [13:22:43]shift 543 fd 192584 [13:22:43]save to /storage/0543/doc_00192584 [13:22:43]save last doc name /storage/0543/doc_00192584 to /storage/kkm_last_doc_name [13:22:43]save OK [13:22:43]Clear old archive folders... [13:22:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:43]tlvbuf is 01970A00 [13:22:43]SAM_PROTO_ClearQueue [13:22:43]wFMCommunicate request_size=4 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 09 00 00 [13:22:43]Write to MH i2c: E2 08 00 CF 43 80 09 00 00 00 00 00 00 84 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 03 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 03 00 CF 43 00 90 00 86 [13:22:43]RAPDU: 90 00 [13:22:43]wFMCommunicate OK [13:22:43]SAM_PROTO_ClearQueue done [13:22:43]KKMCreateOFDPacket [13:22:43]OFDProtocolAddRootSTLVToBuf [13:22:43]FM_MakeSignedData [13:22:43]FM_MakeSignedData [13:22:43]SAM_PROTO_SignData [13:22:43]wFMCommunicate request_size=4 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 0D 01 02 [13:22:43]Write to MH i2c: E2 08 00 D0 43 80 0D 01 02 00 00 00 00 8C [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 03 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 03 00 D0 43 00 90 00 87 [13:22:43]RAPDU: 90 00 [13:22:43]wFMCommunicate OK [13:22:43]wFMCommunicate request_size=255 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 27 90 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 F0 02 00 35 04 06 00 84 [13:22:43]Write to MH i2c: E2 02 01 D1 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 27 90 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 F0 02 00 35 04 06 00 84 00 00 C0 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 03 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 03 00 D1 43 00 90 00 88 [13:22:43]RAPDU: 90 00 [13:22:43]wFMCommunicate OK [13:22:43]wFMCommunicate request_size=10 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 0D 02 02 05 32 B8 5B 10 14 [13:22:43]Write to MH i2c: E2 0D 00 D2 43 80 0D 02 02 05 00 32 B8 5B 10 14 00 00 02 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 03 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 03 00 D2 43 00 90 00 89 [13:22:43]RAPDU: 90 00 [13:22:43]wFMCommunicate OK [13:22:43]wFMCommunicate request_size=4 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 0D 03 02 [13:22:43]Write to MH i2c: E2 08 00 D3 43 80 0D 03 02 00 00 00 00 91 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 0B 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 0B 00 D3 43 00 97 E9 A3 8E C6 D9 0D 5C 90 00 4B [13:22:43]RAPDU: 97 E9 A3 8E C6 D9 0D 5C 90 00 [13:22:43]wFMCommunicate OK [13:22:43]SAM_PROTO_SignData done [13:22:43]FM_MakeSignedData done [13:22:43]CreateOFDProtocolMessage [13:22:43]wFMCommunicate request_size=4 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 11 00 00 [13:22:43]Write to MH i2c: E2 08 00 D4 43 80 11 00 00 00 00 00 00 91 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:43]Read from MH i2c: E2 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 17 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: E2 17 00 D4 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E4 [13:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:22:43]wFMCommunicate OK [13:22:43]CreateOFDProtocolMessage done [13:22:43]OFDSenderStorePacket 192584 [13:22:43]StoreOFDPacket docnum=192584 [13:22:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4D 02 07 01 BD 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 27 90 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 F0 02 00 35 04 06 00 84 32 B8 5B 10 14 97 E9 A3 8E C6 D9 0D 5C [13:22:43]CheckFolder [13:22:43]dirname=/storage/ofd_packets [13:22:43]CheckFolder done [13:22:43]ProducePacketName [13:22:43]name=ofd_packets/00192584 [13:22:43]NVStorageSaveData ofd_packets/00192584 [13:22:43]File name is /storage/ofd_packets/00192584 [13:22:43]Write 301 bytes [13:22:43]NVStorageSaveData done [13:22:43]OFDSenderStorePacket done [13:22:43]KKMCreateOFDPacket done [13:22:43]NVStorageSaveData kkm_last_timestamp [13:22:43]File name is /storage/kkm_last_timestamp [13:22:43]Write 4 bytes [13:22:43]NVStorageSaveData done [13:22:43]ExternCall_PrintAddStr [13:22:43]wPrintStart [13:22:43]Write to MH i2c: 01 00 00 D5 43 18 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: 01 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: 01 07 00 [13:22:43]MH_I2C_Read... [13:22:43]Read from MH i2c: 01 07 00 D5 43 00 00 00 00 00 FF 0F 2D [13:22:43]RasterBufferAndPrint [13:22:43]line Счет N : (1)31904 [13:22:43]line ИНН: 02508201610067 [13:22:43]line Контрольно-Кассовый Чек [13:22:43]line ПРОДАЖА [13:22:43]line ТРК (МРК, ГНК) : 21 [13:22:43]line Товар: 2710124130 [13:22:43]line Аи-92-К-5 [13:22:43]line 7.480 * 66.90 [13:22:43]line = 500.41 [13:22:43]line НДС 12% НСП 1% [13:22:43]line > о реализуемом товаре [13:22:43]line ОКРУГЛЕНИЕ: -0.41 [13:22:43]line ИТОГО: 500.00 [13:22:43]line Внесено: 500.00 [13:22:43]line СДАЧА: 0.00 [13:22:43]line НСП 1% : 4.43 [13:22:43]line НДС 12% : 53.14 [13:22:43]line Наличными: 500.00 [13:22:43]line Безнал.: 0.00 [13:22:43]line Место: АЗС № 170 "Партнер Нефть" [13:22:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:22:43]line СНО: Общий режим [13:22:43]line Чек 132 28.10.2024 13:22 [13:22:43]line Смена: 543 ФФД: 1.0 [13:22:43]line ЗНМ: 0300000110 [13:22:43]line РНМ: 0000000000091776 [13:22:43]line Версия ККМ: 001 [13:22:43]line ФМ: 0000000000871754 [13:22:43]line ФД: 192584 [13:22:43]line ФПД: 145353376206868 [13:22:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132247&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192584&fm=145353376206868&tin=02508201610067®Number=0000000000091776&sum=50000 [13:22:44]OFD Sender: Processing packet 192584 [packets to send 75, broken 74] [13:22:44]ProducePacketName [13:22:44]name=ofd_packets/00192584 [13:22:44]OFD Sender: To server: pG, [13:22:44]CommunicateWithHost lk.salyk.kg:30040 [13:22:44]ConnectInit lk.salyk.kg [13:22:44]written 0, free lines is 4095 [13:22:44]Connected sock=7 [13:22:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4D 02 07 01 BD 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 27 90 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 F0 02 00 35 04 06 00 84 32 B8 5B 10 14 97 E9 A3 8E C6 D9 0D 5C [13:22:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A9 D0 47 00 2C 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 F0 02 00 F4 03 04 00 EB 34 1F 67 B6 04 01 00 00 F5 8E 15 AB 73 E5 8C C0 [13:22:44]CommunicateWithHost err = 0 [13:22:44]CheckOFDResponse [13:22:44]1017 (14) - 77093643461234 [13:22:44]1041 (16) - 0000000000871754 [13:22:44]1040 (4) - 192584 [13:22:44]1012 (4) - 28.10.2024 06:53 [13:22:44]1206 (1) - 0 [13:22:44]OFD Sender: Remove packet 192584 [13:22:44]ProducePacketName [13:22:44]name=ofd_packets/00192584 [13:22:44]NVStorageDeleteData [13:22:44]Write to MH i2c: 01 00 00 00 44 44 [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: 01 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: 01 07 00 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: 01 07 00 00 44 00 00 00 00 00 BB 0C 12 [13:22:44]RasterBufferAndPrint [13:22:44]line [13:22:44]line [13:22:44]line [13:22:44]line [13:22:44]line [13:22:44]written 0, free lines is 3266 [13:22:44]MH_Cut [13:22:44]Write to MH i2c: D1 01 00 07 44 01 1D [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: D1 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: D1 01 00 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: D1 01 00 07 44 00 1C [13:22:44]Write to MH i2c: 01 00 00 08 44 4C [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:44]OFD Sender: No OFD packet to send [13:22:45]*** Cut start [13:22:45]*** Partial cut [13:22:45]*** CUTSNS_PIN = 1 [13:22:45]*** CUTSNS_PIN = 0 [13:22:45]*** Brake cut motor [13:22:46]Read from MH i2c: 01 [13:22:46]MH_I2C_Read... [13:22:46]*** Stop cut motor [13:22:46]*** Cut end [13:22:46]Read from MH i2c: 01 07 00 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: 01 07 00 08 44 00 00 00 00 00 FF 0F 61 [13:22:46]process_action close_receipt done [13:22:46]requested_data is exist [13:22:46]produce_requested_data [13:22:46]requested_item fm.sn is exist - process it [13:22:46]wFMCommunicate request_size=4 [13:22:46]MH_SAM_APDU [13:22:46]CAPDU: 80 11 00 00 [13:22:46]Write to MH i2c: E2 08 00 09 44 80 11 00 00 00 00 00 00 C7 [13:22:46]Write i2c OK [13:22:46]MH_I2C_Read... [13:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:46]Read from MH i2c: E2 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: E2 17 00 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: E2 17 00 09 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1A [13:22:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:22:46]wFMCommunicate OK [13:22:46]requested_item fd.num is exist - process it [13:22:46]SAM_PROTO_GetFieldsCounters [13:22:46]wFMCommunicate request_size=4 [13:22:46]MH_SAM_APDU [13:22:46]CAPDU: 80 13 00 00 [13:22:46]Write to MH i2c: E2 08 00 0A 44 80 13 00 00 00 00 00 00 CA [13:22:46]Write i2c OK [13:22:46]MH_I2C_Read... [13:22:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:46]Read from MH i2c: E2 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: E2 62 00 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: E2 62 00 0A 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 48 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [13:22:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 48 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:46]wFMCommunicate OK [13:22:46]SAM_PROTO_GetFieldsCounters done [13:22:46]requested_item shift.num is exist - process it [13:22:46]requested_item shift.opened is exist - process it [13:22:46]req_shift_opened [13:22:46]FM_GetShiftState [13:22:46]SAM_PROTO_GetShiftState [13:22:46]wFMCommunicate request_size=4 [13:22:46]MH_SAM_APDU [13:22:46]CAPDU: 80 13 01 00 [13:22:46]Write to MH i2c: E2 08 00 0B 44 80 13 01 00 00 00 00 00 CC [13:22:46]Write i2c OK [13:22:46]MH_I2C_Read... [13:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:46]Read from MH i2c: E2 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: E2 0E 00 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: E2 0E 00 0B 44 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1C [13:22:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:22:46]wFMCommunicate OK [13:22:46]SAM_PROTO_GetShiftState done [13:22:46]FM_GetShiftState done [13:22:46]req_shift_opened done [13:22:46]requested_item shift.open_date is exist - process it [13:22:46]req_shift_open_date [13:22:46]req_shift_open_date done [13:22:46]produce_requested_data done [13:22:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192584,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:22:46]process_action_free close_receipt [13:22:46]json_value_free [13:22:46]json_value_free done [13:22:46]process_json_proto returns [13:22:46]Send response to host [13:22:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192584,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:22:46]free response buf [13:22:46]execute_script done [13:22:46]execute_script returns [13:22:46]free content buf [13:22:46]Sock 9.Close socket [13:22:46]Sock 9.Thread stoped [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:04]OFD Sender: No OFD packet to send [13:23:09]OFD Sender: No OFD packet to send [13:23:14]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:21]accept exits with 10 [13:24:21]New connection [13:24:21]New thread 3066707300 created [13:24:21]Thread 3066563940 joined [13:24:21]Waiting for new connection... [13:24:21] Sock 10.Parse request [13:24:21]Sock 10.Check first char [13:24:21]Sock 10.First char is OK [13:24:21]request: POST /json_proto HTTP/1.0 [13:24:21]Method: POST [13:24:21]URL: /json_proto [13:24:21]Method is POST - this is cgi request [13:24:21]url: /json_proto [13:24:21]query_string will be loaded in cgi processing [13:24:21]execute_cgi json_proto POST (null) [13:24:21]execute_cgi path=json_proto method=POST [13:24:21]POST find Content-Length [13:24:21]Host: 172.17.63.131:8080 [13:24:21]Content-Length: 676 [13:24:21]Content-Type: application/json [13:24:21] [13:24:21]POST finish read [13:24:21]Found Content-Length = 676 [13:24:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:21]execute_script... [13:24: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)31905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:21]POST & json_proto [13:24:21]process_json_proto [13:24:21]json parsed OK: [13:24:21]protocol is kg_v1.0 [13:24:21]action value=close_receipt [13:24:21]process_action close_receipt [13:24:21]cmd_close_receipt [13:24:21]MH_GetDate [13:24:21]Write to MH i2c: F0 00 00 0C 44 3F [13:24:21]Write i2c OK [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: F0 [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: F0 09 00 [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: F0 09 00 0C 44 00 8A 90 1F 67 22 05 6E 64 E1 [13:24:21]GetLastDocTimeStamp 1730121767 [13:24:21]current date 1730121866 [13:24:21]FM_GetShiftState [13:24:21]SAM_PROTO_GetShiftState [13:24:21]wFMCommunicate request_size=4 [13:24:21]MH_SAM_APDU [13:24:21]CAPDU: 80 13 01 00 [13:24:21]Write to MH i2c: E2 08 00 0D 44 80 13 01 00 00 00 00 00 CE [13:24:21]Write i2c OK [13:24:21]MH_I2C_Read... [13:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:21]Read from MH i2c: E2 [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: E2 0E 00 [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: E2 0E 00 0D 44 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1E [13:24:21]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:24:21]wFMCommunicate OK [13:24:21]SAM_PROTO_GetShiftState done [13:24:21]FM_GetShiftState done [13:24:21]opened in 1730075620 [13:24:21]opened+sec_in_day 1730162020 [13:24:21]quantity*price = 25020 [13:24:21]sum+1 = 25022 [13:24:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 133 28.10.2024 13:24 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192585 ФПД: 134542436463207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132426&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192585&fm=134542436463207&tin=02508201610067®Number=0000000000091776&sum=25000 [13:24:22]StoreToDocumentArchive [13:24:22]shift 543 fd 192585 [13:24:22]save to /storage/0543/doc_00192585 [13:24:22]save last doc name /storage/0543/doc_00192585 to /storage/kkm_last_doc_name [13:24:22]save OK [13:24:22]Clear old archive folders... [13:24:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:22]tlvbuf is 019F0AE0 [13:24:22]SAM_PROTO_ClearQueue [13:24:22]wFMCommunicate request_size=4 [13:24:22]MH_SAM_APDU [13:24:22]CAPDU: 80 09 00 00 [13:24:22]Write to MH i2c: E2 08 00 1A 44 80 09 00 00 00 00 00 00 D0 [13:24:22]Write i2c OK [13:24:22]MH_I2C_Read... [13:24:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:22]Read from MH i2c: E2 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 03 00 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 03 00 1A 44 00 90 00 D2 [13:24:22]RAPDU: 90 00 [13:24:22]wFMCommunicate OK [13:24:22]SAM_PROTO_ClearQueue done [13:24:22]KKMCreateOFDPacket [13:24:22]OFDProtocolAddRootSTLVToBuf [13:24:22]FM_MakeSignedData [13:24:22]FM_MakeSignedData [13:24:22]SAM_PROTO_SignData [13:24:22]wFMCommunicate request_size=4 [13:24:22]MH_SAM_APDU [13:24:22]CAPDU: 80 0D 01 02 [13:24:22]Write to MH i2c: E2 08 00 1B 44 80 0D 01 02 00 00 00 00 D8 [13:24:22]Write i2c OK [13:24:22]MH_I2C_Read... [13:24:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:22]Read from MH i2c: E2 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 03 00 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 03 00 1B 44 00 90 00 D3 [13:24:22]RAPDU: 90 00 [13:24:22]wFMCommunicate OK [13:24:22]wFMCommunicate request_size=255 [13:24:22]MH_SAM_APDU [13:24: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 8A 90 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 F0 02 00 35 04 06 00 7A [13:24:22]Write to MH i2c: E2 02 01 1C 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 8A 90 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 F0 02 00 35 04 06 00 7A 00 00 40 [13:24:22]Write i2c OK [13:24:22]MH_I2C_Read... [13:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:22]Read from MH i2c: E2 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 03 00 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 03 00 1C 44 00 90 00 D4 [13:24:22]RAPDU: 90 00 [13:24:22]wFMCommunicate OK [13:24:22]wFMCommunicate request_size=10 [13:24:22]MH_SAM_APDU [13:24:22]CAPDU: 80 0D 02 02 05 5D 9A 21 F2 67 [13:24:22]Write to MH i2c: E2 0D 00 1D 44 80 0D 02 02 05 00 5D 9A 21 F2 67 00 00 56 [13:24:22]Write i2c OK [13:24:22]MH_I2C_Read... [13:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:22]Read from MH i2c: E2 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 03 00 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 03 00 1D 44 00 90 00 D5 [13:24:22]RAPDU: 90 00 [13:24:22]wFMCommunicate OK [13:24:22]wFMCommunicate request_size=4 [13:24:22]MH_SAM_APDU [13:24:22]CAPDU: 80 0D 03 02 [13:24:22]Write to MH i2c: E2 08 00 1E 44 80 0D 03 02 00 00 00 00 DD [13:24:22]Write i2c OK [13:24:22]MH_I2C_Read... [13:24:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:23]Read from MH i2c: E2 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 0B 00 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 0B 00 1E 44 00 17 B0 3B 57 71 B4 38 26 90 00 BA [13:24:23]RAPDU: 17 B0 3B 57 71 B4 38 26 90 00 [13:24:23]wFMCommunicate OK [13:24:23]SAM_PROTO_SignData done [13:24:23]FM_MakeSignedData done [13:24:23]CreateOFDProtocolMessage [13:24:23]wFMCommunicate request_size=4 [13:24:23]MH_SAM_APDU [13:24:23]CAPDU: 80 11 00 00 [13:24:23]Write to MH i2c: E2 08 00 1F 44 80 11 00 00 00 00 00 00 DD [13:24:23]Write i2c OK [13:24:23]MH_I2C_Read... [13:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:23]Read from MH i2c: E2 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 17 00 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 17 00 1F 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 30 [13:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:24:23]wFMCommunicate OK [13:24:23]CreateOFDProtocolMessage done [13:24:23]OFDSenderStorePacket 192585 [13:24:23]StoreOFDPacket docnum=192585 [13:24:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 88 0E 07 01 B8 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 8A 90 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 F0 02 00 35 04 06 00 7A 5D 9A 21 F2 67 17 B0 3B 57 71 B4 38 26 [13:24:23]CheckFolder [13:24:23]dirname=/storage/ofd_packets [13:24:23]CheckFolder done [13:24:23]ProducePacketName [13:24:23]name=ofd_packets/00192585 [13:24:23]NVStorageSaveData ofd_packets/00192585 [13:24:23]File name is /storage/ofd_packets/00192585 [13:24:23]Write 301 bytes [13:24:23]NVStorageSaveData done [13:24:23]OFDSenderStorePacket done [13:24:23]KKMCreateOFDPacket done [13:24:23]NVStorageSaveData kkm_last_timestamp [13:24:23]File name is /storage/kkm_last_timestamp [13:24:23]Write 4 bytes [13:24:23]NVStorageSaveData done [13:24:23]ExternCall_PrintAddStr [13:24:23]wPrintStart [13:24:23]Write to MH i2c: 01 00 00 20 44 64 [13:24:23]Write i2c OK [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: 01 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: 01 07 00 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: 01 07 00 20 44 00 00 00 00 00 FF 0F 79 [13:24:23]RasterBufferAndPrint [13:24:23]line Счет N : (1)31905 [13:24:23]line ИНН: 02508201610067 [13:24:23]line Контрольно-Кассовый Чек [13:24:23]line ПРОДАЖА [13:24:23]line ТРК (МРК, ГНК) : 12 [13:24:23]line Товар: 2710124130 [13:24:23]line Аи-92-К-5 [13:24:23]line 3.740 * 66.90 [13:24:23]line = 250.21 [13:24:23]line НДС 12% НСП 1% [13:24:23]line > о реализуемом товаре [13:24:23]line ОКРУГЛЕНИЕ: -0.21 [13:24:23]line ИТОГО: 250.00 [13:24:23]line Внесено: 250.00 [13:24:23]line СДАЧА: 0.00 [13:24:23]line НСП 1% : 2.21 [13:24:23]line НДС 12% : 26.57 [13:24:23]line Наличными: 250.00 [13:24:23]line Безнал.: 0.00 [13:24:23]line Место: АЗС № 170 "Партнер Нефть" [13:24:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:24:23]line СНО: Общий режим [13:24:23]line Чек 133 28.10.2024 13:24 [13:24:23]line Смена: 543 ФФД: 1.0 [13:24:23]line ЗНМ: 0300000110 [13:24:23]line РНМ: 0000000000091776 [13:24:23]line Версия ККМ: 001 [13:24:23]line ФМ: 0000000000871754 [13:24:23]line ФД: 192585 [13:24:23]line ФПД: 134542436463207 [13:24:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132426&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192585&fm=134542436463207&tin=02508201610067®Number=0000000000091776&sum=25000 [13:24:23]OFD Sender: Processing packet 192585 [packets to send 75, broken 74] [13:24:23]ProducePacketName [13:24:23]name=ofd_packets/00192585 [13:24:23]OFD Sender: To server: pG, [13:24:23]CommunicateWithHost lk.salyk.kg:30040 [13:24:23]ConnectInit lk.salyk.kg [13:24:23]written 0, free lines is 4095 [13:24:23]Connected sock=9 [13:24:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 88 0E 07 01 B8 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 8A 90 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 F0 02 00 35 04 06 00 7A 5D 9A 21 F2 67 17 B0 3B 57 71 B4 38 26 [13:24:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 10 90 47 00 D3 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 F0 02 00 F4 03 04 00 4E 35 1F 67 B6 04 01 00 00 2B 80 8C 10 6E 6A 6A 24 [13:24:23]CommunicateWithHost err = 0 [13:24:23]CheckOFDResponse [13:24:23]1017 (14) - 77093643461234 [13:24:23]1041 (16) - 0000000000871754 [13:24:23]1040 (4) - 192585 [13:24:23]1012 (4) - 28.10.2024 06:55 [13:24:23]1206 (1) - 0 [13:24:23]OFD Sender: Remove packet 192585 [13:24:23]ProducePacketName [13:24:23]name=ofd_packets/00192585 [13:24:23]NVStorageDeleteData [13:24:23]Write to MH i2c: 01 00 00 4B 44 8F [13:24:23]Write i2c OK [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: 01 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: 01 07 00 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: 01 07 00 4B 44 00 00 00 00 00 C2 0C 64 [13:24:23]RasterBufferAndPrint [13:24:23]line [13:24:23]line [13:24:23]line [13:24:23]line [13:24:23]line [13:24:23]written 0, free lines is 3271 [13:24:23]MH_Cut [13:24:23]Write to MH i2c: D1 01 00 52 44 01 68 [13:24:23]Write i2c OK [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: D1 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: D1 01 00 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: D1 01 00 52 44 00 67 [13:24:23]Write to MH i2c: 01 00 00 53 44 97 [13:24:23]Write i2c OK [13:24:23]MH_I2C_Read... [13:24:24]OFD Sender: No OFD packet to send [13:24:24]*** Cut start [13:24:24]*** Partial cut [13:24:24]*** CUTSNS_PIN = 1 [13:24:24]*** CUTSNS_PIN = 0 [13:24:24]*** Brake cut motor [13:24:25]Read from MH i2c: 01 [13:24:25]MH_I2C_Read... [13:24:25]*** Stop cut motor [13:24:25]*** Cut end [13:24:25]Read from MH i2c: 01 07 00 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: 01 07 00 53 44 00 00 00 00 00 FF 0F AC [13:24:25]process_action close_receipt done [13:24:25]requested_data is exist [13:24:25]produce_requested_data [13:24:25]requested_item fm.sn is exist - process it [13:24:25]wFMCommunicate request_size=4 [13:24:25]MH_SAM_APDU [13:24:25]CAPDU: 80 11 00 00 [13:24:25]Write to MH i2c: E2 08 00 54 44 80 11 00 00 00 00 00 00 12 [13:24:25]Write i2c OK [13:24:25]MH_I2C_Read... [13:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:25]Read from MH i2c: E2 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 17 00 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 17 00 54 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 65 [13:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:24:25]wFMCommunicate OK [13:24:25]requested_item fd.num is exist - process it [13:24:25]SAM_PROTO_GetFieldsCounters [13:24:25]wFMCommunicate request_size=4 [13:24:25]MH_SAM_APDU [13:24:25]CAPDU: 80 13 00 00 [13:24:25]Write to MH i2c: E2 08 00 55 44 80 13 00 00 00 00 00 00 15 [13:24:25]Write i2c OK [13:24:25]MH_I2C_Read... [13:24:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:25]Read from MH i2c: E2 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 62 00 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 62 00 55 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 49 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [13:24:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 49 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:25]wFMCommunicate OK [13:24:25]SAM_PROTO_GetFieldsCounters done [13:24:25]requested_item shift.num is exist - process it [13:24:25]requested_item shift.opened is exist - process it [13:24:25]req_shift_opened [13:24:25]FM_GetShiftState [13:24:25]SAM_PROTO_GetShiftState [13:24:25]wFMCommunicate request_size=4 [13:24:25]MH_SAM_APDU [13:24:25]CAPDU: 80 13 01 00 [13:24:25]Write to MH i2c: E2 08 00 56 44 80 13 01 00 00 00 00 00 17 [13:24:25]Write i2c OK [13:24:25]MH_I2C_Read... [13:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:25]Read from MH i2c: E2 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 0E 00 [13:24:25]MH_I2C_Read... [13:24:25]Read from MH i2c: E2 0E 00 56 44 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 67 [13:24:25]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:24:25]wFMCommunicate OK [13:24:25]SAM_PROTO_GetShiftState done [13:24:25]FM_GetShiftState done [13:24:25]req_shift_opened done [13:24:25]requested_item shift.open_date is exist - process it [13:24:25]req_shift_open_date [13:24:25]req_shift_open_date done [13:24:25]produce_requested_data done [13:24:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192585,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:24:25]process_action_free close_receipt [13:24:25]json_value_free [13:24:25]json_value_free done [13:24:25]process_json_proto returns [13:24:25]Send response to host [13:24:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192585,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:24:25]free response buf [13:24:25]execute_script done [13:24:25]execute_script returns [13:24:25]free content buf [13:24:25]Sock 10.Close socket [13:24:25]Sock 10.Thread stoped [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:57]accept exits with 7 [13:24:57]New connection [13:24:57]New thread 3066563940 created [13:24:57]Thread 3066707300 joined [13:24:57]Waiting for new connection... [13:24:57] Sock 7.Parse request [13:24:57]Sock 7.Check first char [13:24:57]Sock 7.First char is OK [13:24:57]request: POST /json_proto HTTP/1.0 [13:24:57]Method: POST [13:24:57]URL: /json_proto [13:24:57]Method is POST - this is cgi request [13:24:57]url: /json_proto [13:24:57]query_string will be loaded in cgi processing [13:24:57]execute_cgi json_proto POST (null) [13:24:57]execute_cgi path=json_proto method=POST [13:24:57]POST find Content-Length [13:24:57]Host: 172.17.63.131:8080 [13:24:57]Content-Length: 676 [13:24:57]Content-Type: application/json [13:24:57] [13:24:57]POST finish read [13:24:57]Found Content-Length = 676 [13:24:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.570, "sum" : 640.23, "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" ] } } [13:24:57]execute_script... [13:24:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.570, "sum" : 640.23, "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" ] } } [13:24:57]POST & json_proto [13:24:57]process_json_proto [13:24:57]json parsed OK: [13:24:57]protocol is kg_v1.0 [13:24:57]action value=close_receipt [13:24:57]process_action close_receipt [13:24:57]cmd_close_receipt [13:24:57]MH_GetDate [13:24:57]Write to MH i2c: F0 00 00 57 44 8A [13:24:57]Write i2c OK [13:24:57]MH_I2C_Read... [13:24:57]Read from MH i2c: F0 [13:24:57]MH_I2C_Read... [13:24:57]Read from MH i2c: F0 09 00 [13:24:57]MH_I2C_Read... [13:24:57]Read from MH i2c: F0 09 00 57 44 00 AE 90 1F 67 22 05 6E 64 50 [13:24:57]GetLastDocTimeStamp 1730121866 [13:24:57]current date 1730121902 [13:24:57]FM_GetShiftState [13:24:57]SAM_PROTO_GetShiftState [13:24:57]wFMCommunicate request_size=4 [13:24:57]MH_SAM_APDU [13:24:57]CAPDU: 80 13 01 00 [13:24:57]Write to MH i2c: E2 08 00 58 44 80 13 01 00 00 00 00 00 19 [13:24:57]Write i2c OK [13:24:57]MH_I2C_Read... [13:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:57]Read from MH i2c: E2 [13:24:57]MH_I2C_Read... [13:24:57]Read from MH i2c: E2 0E 00 [13:24:57]MH_I2C_Read... [13:24:57]Read from MH i2c: E2 0E 00 58 44 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 69 [13:24:57]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:24:57]wFMCommunicate OK [13:24:57]SAM_PROTO_GetShiftState done [13:24:57]FM_GetShiftState done [13:24:57]opened in 1730075620 [13:24:57]opened+sec_in_day 1730162020 [13:24:57]quantity*price = 64023 [13:24:57]sum+1 = 64024 [13:24:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 67.99 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 134 28.10.2024 13:25 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192586 ФПД: 189005923295429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132502&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192586&fm=189005923295429&tin=02508201610067®Number=0000000000091776&sum=64000 [13:24:58]StoreToDocumentArchive [13:24:58]shift 543 fd 192586 [13:24:58]save to /storage/0543/doc_00192586 [13:24:58]save last doc name /storage/0543/doc_00192586 to /storage/kkm_last_doc_name [13:24:58]save OK [13:24:58]Clear old archive folders... [13:24:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:58]tlvbuf is 019B6650 [13:24:58]SAM_PROTO_ClearQueue [13:24:58]wFMCommunicate request_size=4 [13:24:58]MH_SAM_APDU [13:24:58]CAPDU: 80 09 00 00 [13:24:58]Write to MH i2c: E2 08 00 65 44 80 09 00 00 00 00 00 00 1B [13:24:58]Write i2c OK [13:24:58]MH_I2C_Read... [13:24:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:58]Read from MH i2c: E2 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: E2 03 00 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: E2 03 00 65 44 00 90 00 1D [13:24:58]RAPDU: 90 00 [13:24:58]wFMCommunicate OK [13:24:58]SAM_PROTO_ClearQueue done [13:24:58]KKMCreateOFDPacket [13:24:58]OFDProtocolAddRootSTLVToBuf [13:24:58]FM_MakeSignedData [13:24:58]FM_MakeSignedData [13:24:58]SAM_PROTO_SignData [13:24:58]wFMCommunicate request_size=4 [13:24:58]MH_SAM_APDU [13:24:58]CAPDU: 80 0D 01 02 [13:24:58]Write to MH i2c: E2 08 00 66 44 80 0D 01 02 00 00 00 00 23 [13:24:58]Write i2c OK [13:24:58]MH_I2C_Read... [13:24:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:58]Read from MH i2c: E2 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: E2 03 00 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: E2 03 00 66 44 00 90 00 1E [13:24:58]RAPDU: 90 00 [13:24:58]wFMCommunicate OK [13:24:58]wFMCommunicate request_size=255 [13:24:58]MH_SAM_APDU [13:24:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 17 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 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 86 00 00 00 F4 03 04 00 AE 90 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A F0 02 00 35 04 06 00 AB [13:24:58]Write to MH i2c: E2 02 01 67 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 62 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 17 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 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 86 00 00 00 F4 03 04 00 AE 90 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A F0 02 00 35 04 06 00 AB 00 00 2E [13:24:58]Write i2c OK [13:24:58]MH_I2C_Read... [13:24:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:58]Read from MH i2c: E2 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: E2 03 00 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: E2 03 00 67 44 00 90 00 1F [13:24:58]RAPDU: 90 00 [13:24:58]wFMCommunicate OK [13:24:58]wFMCommunicate request_size=10 [13:24:58]MH_SAM_APDU [13:24:58]CAPDU: 80 0D 02 02 05 E6 5E EB 20 C5 [13:24:58]Write to MH i2c: E2 0D 00 68 44 80 0D 02 02 05 00 E6 5E EB 20 C5 00 00 44 [13:24:58]Write i2c OK [13:24:58]MH_I2C_Read... [13:24:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:58]Read from MH i2c: E2 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: E2 03 00 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: E2 03 00 68 44 00 90 00 20 [13:24:58]RAPDU: 90 00 [13:24:58]wFMCommunicate OK [13:24:58]wFMCommunicate request_size=4 [13:24:58]MH_SAM_APDU [13:24:58]CAPDU: 80 0D 03 02 [13:24:58]Write to MH i2c: E2 08 00 69 44 80 0D 03 02 00 00 00 00 28 [13:24:58]Write i2c OK [13:24:58]MH_I2C_Read... [13:24:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:58]Read from MH i2c: E2 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: E2 0B 00 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: E2 0B 00 69 44 00 3E 5A C5 C5 12 20 BD 83 90 00 BD [13:24:58]RAPDU: 3E 5A C5 C5 12 20 BD 83 90 00 [13:24:58]wFMCommunicate OK [13:24:58]SAM_PROTO_SignData done [13:24:58]FM_MakeSignedData done [13:24:58]CreateOFDProtocolMessage [13:24:58]wFMCommunicate request_size=4 [13:24:58]MH_SAM_APDU [13:24:58]CAPDU: 80 11 00 00 [13:24:58]Write to MH i2c: E2 08 00 6A 44 80 11 00 00 00 00 00 00 28 [13:24:58]Write i2c OK [13:24:58]MH_I2C_Read... [13:24:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:58]Read from MH i2c: E2 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: E2 17 00 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: E2 17 00 6A 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7B [13:24:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:24:58]wFMCommunicate OK [13:24:58]CreateOFDProtocolMessage done [13:24:58]OFDSenderStorePacket 192586 [13:24:58]StoreOFDPacket docnum=192586 [13:24:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 68 F0 07 01 93 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 17 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 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 86 00 00 00 F4 03 04 00 AE 90 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A F0 02 00 35 04 06 00 AB E6 5E EB 20 C5 3E 5A C5 C5 12 20 BD 83 [13:24:58]CheckFolder [13:24:58]dirname=/storage/ofd_packets [13:24:58]CheckFolder done [13:24:58]ProducePacketName [13:24:58]name=ofd_packets/00192586 [13:24:58]NVStorageSaveData ofd_packets/00192586 [13:24:58]File name is /storage/ofd_packets/00192586 [13:24:58]Write 301 bytes [13:24:58]NVStorageSaveData done [13:24:58]OFDSenderStorePacket done [13:24:58]KKMCreateOFDPacket done [13:24:58]NVStorageSaveData kkm_last_timestamp [13:24:58]File name is /storage/kkm_last_timestamp [13:24:58]Write 4 bytes [13:24:58]NVStorageSaveData done [13:24:58]ExternCall_PrintAddStr [13:24:58]wPrintStart [13:24:58]Write to MH i2c: 01 00 00 6B 44 AF [13:24:58]Write i2c OK [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: 01 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: 01 07 00 [13:24:58]MH_I2C_Read... [13:24:58]Read from MH i2c: 01 07 00 6B 44 00 00 00 00 00 FF 0F C4 [13:24:58]RasterBufferAndPrint [13:24:58]line Счет N : (1)31906 [13:24:58]line ИНН: 02508201610067 [13:24:58]line Контрольно-Кассовый Чек [13:24:58]line ПРОДАЖА [13:24:58]line ТРК (МРК, ГНК) : 12 [13:24:58]line Товар: 2710124130 [13:24:58]line Аи-92-К-5 [13:24:58]line 9.570 * 66.90 [13:24:58]line = 640.23 [13:24:58]line НДС 12% НСП 1% [13:24:58]line > о реализуемом товаре [13:24:58]line ОКРУГЛЕНИЕ: -0.23 [13:24:58]line ИТОГО: 640.00 [13:24:58]line Внесено: 640.00 [13:24:58]line СДАЧА: 0.00 [13:24:58]line НСП 1% : 5.67 [13:24:58]line НДС 12% : 67.99 [13:24:58]line Наличными: 640.00 [13:24:58]line Безнал.: 0.00 [13:24:58]line Место: АЗС № 170 "Партнер Нефть" [13:24:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:24:58]line СНО: Общий режим [13:24:58]line Чек 134 28.10.2024 13:25 [13:24:58]line Смена: 543 ФФД: 1.0 [13:24:58]line ЗНМ: 0300000110 [13:24:58]line РНМ: 0000000000091776 [13:24:58]line Версия ККМ: 001 [13:24:58]line ФМ: 0000000000871754 [13:24:58]line ФД: 192586 [13:24:58]line ФПД: 189005923295429 [13:24:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132502&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192586&fm=189005923295429&tin=02508201610067®Number=0000000000091776&sum=64000 [13:24:59]OFD Sender: Processing packet 192586 [packets to send 75, broken 74] [13:24:59]ProducePacketName [13:24:59]name=ofd_packets/00192586 [13:24:59]OFD Sender: To server: pG, [13:24:59]CommunicateWithHost lk.salyk.kg:30040 [13:24:59]ConnectInit lk.salyk.kg [13:24:59]written 0, free lines is 4095 [13:24:59]Connected sock=10 [13:24:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 68 F0 07 01 93 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 17 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 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 86 00 00 00 F4 03 04 00 AE 90 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A F0 02 00 35 04 06 00 AB E6 5E EB 20 C5 3E 5A C5 C5 12 20 BD 83 [13:24:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 73 48 47 00 29 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A F0 02 00 F4 03 04 00 72 35 1F 67 B6 04 01 00 00 CD 5D 47 5A 63 1B 72 58 [13:24:59]CommunicateWithHost err = 0 [13:24:59]CheckOFDResponse [13:24:59]1017 (14) - 77093643461234 [13:24:59]1041 (16) - 0000000000871754 [13:24:59]1040 (4) - 192586 [13:24:59]1012 (4) - 28.10.2024 06:55 [13:24:59]1206 (1) - 0 [13:24:59]OFD Sender: Remove packet 192586 [13:24:59]ProducePacketName [13:24:59]name=ofd_packets/00192586 [13:24:59]NVStorageDeleteData [13:24:59]Write to MH i2c: 01 00 00 96 44 DA [13:24:59]Write i2c OK [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: 01 [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: 01 07 00 [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: 01 07 00 96 44 00 00 00 00 00 CE 0C BB [13:24:59]RasterBufferAndPrint [13:24:59]line [13:24:59]line [13:24:59]line [13:24:59]line [13:24:59]line [13:24:59]written 0, free lines is 3285 [13:24:59]MH_Cut [13:24:59]Write to MH i2c: D1 01 00 9D 44 01 B3 [13:24:59]Write i2c OK [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: D1 [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: D1 01 00 [13:24:59]MH_I2C_Read... [13:24:59]Read from MH i2c: D1 01 00 9D 44 00 B2 [13:24:59]Write to MH i2c: 01 00 00 9E 44 E2 [13:24:59]Write i2c OK [13:24:59]MH_I2C_Read... [13:24:59]OFD Sender: No OFD packet to send [13:25:00]*** Cut start [13:25:00]*** Partial cut [13:25:00]*** CUTSNS_PIN = 1 [13:25:00]*** CUTSNS_PIN = 0 [13:25:00]*** Brake cut motor [13:25:01]Read from MH i2c: 01 [13:25:01]MH_I2C_Read... [13:25:01]*** Stop cut motor [13:25:01]*** Cut end [13:25:01]Read from MH i2c: 01 07 00 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: 01 07 00 9E 44 00 00 00 00 00 FF 0F F7 [13:25:01]process_action close_receipt done [13:25:01]requested_data is exist [13:25:01]produce_requested_data [13:25:01]requested_item fm.sn is exist - process it [13:25:01]wFMCommunicate request_size=4 [13:25:01]MH_SAM_APDU [13:25:01]CAPDU: 80 11 00 00 [13:25:01]Write to MH i2c: E2 08 00 9F 44 80 11 00 00 00 00 00 00 5D [13:25:01]Write i2c OK [13:25:01]MH_I2C_Read... [13:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:01]Read from MH i2c: E2 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: E2 17 00 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: E2 17 00 9F 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B0 [13:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:25:01]wFMCommunicate OK [13:25:01]requested_item fd.num is exist - process it [13:25:01]SAM_PROTO_GetFieldsCounters [13:25:01]wFMCommunicate request_size=4 [13:25:01]MH_SAM_APDU [13:25:01]CAPDU: 80 13 00 00 [13:25:01]Write to MH i2c: E2 08 00 A0 44 80 13 00 00 00 00 00 00 60 [13:25:01]Write i2c OK [13:25:01]MH_I2C_Read... [13:25:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:01]Read from MH i2c: E2 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: E2 62 00 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: E2 62 00 A0 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [13:25:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:01]wFMCommunicate OK [13:25:01]SAM_PROTO_GetFieldsCounters done [13:25:01]requested_item shift.num is exist - process it [13:25:01]requested_item shift.opened is exist - process it [13:25:01]req_shift_opened [13:25:01]FM_GetShiftState [13:25:01]SAM_PROTO_GetShiftState [13:25:01]wFMCommunicate request_size=4 [13:25:01]MH_SAM_APDU [13:25:01]CAPDU: 80 13 01 00 [13:25:01]Write to MH i2c: E2 08 00 A1 44 80 13 01 00 00 00 00 00 62 [13:25:01]Write i2c OK [13:25:01]MH_I2C_Read... [13:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:01]Read from MH i2c: E2 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: E2 0E 00 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: E2 0E 00 A1 44 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B2 [13:25:01]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:25:01]wFMCommunicate OK [13:25:01]SAM_PROTO_GetShiftState done [13:25:01]FM_GetShiftState done [13:25:01]req_shift_opened done [13:25:01]requested_item shift.open_date is exist - process it [13:25:01]req_shift_open_date [13:25:01]req_shift_open_date done [13:25:01]produce_requested_data done [13:25:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192586,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:25:01]process_action_free close_receipt [13:25:01]json_value_free [13:25:01]json_value_free done [13:25:01]process_json_proto returns [13:25:01]Send response to host [13:25:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192586,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:25:01]free response buf [13:25:01]execute_script done [13:25:01]execute_script returns [13:25:01]free content buf [13:25:01]Sock 7.Close socket [13:25:01]Sock 7.Thread stoped [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:28:59]accept exits with 9 [13:28:59]New connection [13:28:59]New thread 3066707300 created [13:28:59]Thread 3066563940 joined [13:28:59]Waiting for new connection... [13:28:59] Sock 9.Parse request [13:28:59]Sock 9.Check first char [13:28:59]Sock 9.First char is OK [13:28:59]request: POST /json_proto HTTP/1.0 [13:28:59]Method: POST [13:28:59]URL: /json_proto [13:28:59]Method is POST - this is cgi request [13:28:59]url: /json_proto [13:28:59]query_string will be loaded in cgi processing [13:28:59]execute_cgi json_proto POST (null) [13:28:59]execute_cgi path=json_proto method=POST [13:28:59]POST find Content-Length [13:28:59]Host: 172.17.63.131:8080 [13:28:59]Content-Length: 676 [13:28:59]Content-Type: application/json [13:28:59] [13:28:59]POST finish read [13:28:59]Found Content-Length = 676 [13:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:59]execute_script... [13:28: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)31907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:59]POST & json_proto [13:28:59]process_json_proto [13:28:59]json parsed OK: [13:28:59]protocol is kg_v1.0 [13:28:59]action value=close_receipt [13:28:59]process_action close_receipt [13:28:59]cmd_close_receipt [13:28:59]MH_GetDate [13:28:59]Write to MH i2c: F0 00 00 A2 44 D5 [13:28:59]Write i2c OK [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: F0 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: F0 09 00 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: F0 09 00 A2 44 00 A1 91 1F 67 22 05 6E 64 8F [13:28:59]GetLastDocTimeStamp 1730121902 [13:28:59]current date 1730122145 [13:28:59]FM_GetShiftState [13:28:59]SAM_PROTO_GetShiftState [13:28:59]wFMCommunicate request_size=4 [13:28:59]MH_SAM_APDU [13:28:59]CAPDU: 80 13 01 00 [13:28:59]Write to MH i2c: E2 08 00 A3 44 80 13 01 00 00 00 00 00 64 [13:28:59]Write i2c OK [13:28:59]MH_I2C_Read... [13:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:59]Read from MH i2c: E2 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: E2 0E 00 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: E2 0E 00 A3 44 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B4 [13:28:59]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:28:59]wFMCommunicate OK [13:28:59]SAM_PROTO_GetShiftState done [13:28:59]FM_GetShiftState done [13:28:59]opened in 1730075620 [13:28:59]opened+sec_in_day 1730162020 [13:28:59]quantity*price = 30038 [13:28:59]sum+1 = 30039 [13:28:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 135 28.10.2024 13:29 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192587 ФПД: 113455879001192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132905&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192587&fm=113455879001192&tin=02508201610067®Number=0000000000091776&sum=30000 [13:29:00]StoreToDocumentArchive [13:29:00]shift 543 fd 192587 [13:29:00]save to /storage/0543/doc_00192587 [13:29:00]save last doc name /storage/0543/doc_00192587 to /storage/kkm_last_doc_name [13:29:00]save OK [13:29:00]Clear old archive folders... [13:29:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:00]tlvbuf is 019C32F0 [13:29:00]SAM_PROTO_ClearQueue [13:29:00]wFMCommunicate request_size=4 [13:29:00]MH_SAM_APDU [13:29:00]CAPDU: 80 09 00 00 [13:29:00]Write to MH i2c: E2 08 00 B0 44 80 09 00 00 00 00 00 00 66 [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:00]Read from MH i2c: E2 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 B0 44 00 90 00 68 [13:29:00]RAPDU: 90 00 [13:29:00]wFMCommunicate OK [13:29:00]SAM_PROTO_ClearQueue done [13:29:00]KKMCreateOFDPacket [13:29:00]OFDProtocolAddRootSTLVToBuf [13:29:00]FM_MakeSignedData [13:29:00]FM_MakeSignedData [13:29:00]SAM_PROTO_SignData [13:29:00]wFMCommunicate request_size=4 [13:29:00]MH_SAM_APDU [13:29:00]CAPDU: 80 0D 01 02 [13:29:00]Write to MH i2c: E2 08 00 B1 44 80 0D 01 02 00 00 00 00 6E [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:00]Read from MH i2c: E2 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 B1 44 00 90 00 69 [13:29:00]RAPDU: 90 00 [13:29:00]wFMCommunicate OK [13:29:00]wFMCommunicate request_size=255 [13:29:00]MH_SAM_APDU [13:29:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 A1 91 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B F0 02 00 35 04 06 00 67 [13:29:00]Write to MH i2c: E2 02 01 B2 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 A1 91 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B F0 02 00 35 04 06 00 67 00 00 FA [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 B2 44 00 90 00 6A [13:29:01]RAPDU: 90 00 [13:29:01]wFMCommunicate OK [13:29:01]wFMCommunicate request_size=10 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 0D 02 02 05 30 01 5D 94 68 [13:29:01]Write to MH i2c: E2 0D 00 B3 44 80 0D 02 02 05 00 30 01 5D 94 68 00 00 05 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 03 00 B3 44 00 90 00 6B [13:29:01]RAPDU: 90 00 [13:29:01]wFMCommunicate OK [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 0D 03 02 [13:29:01]Write to MH i2c: E2 08 00 B4 44 80 0D 03 02 00 00 00 00 73 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 0B 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 0B 00 B4 44 00 A7 36 FA A2 DA 75 F9 11 90 00 46 [13:29:01]RAPDU: A7 36 FA A2 DA 75 F9 11 90 00 [13:29:01]wFMCommunicate OK [13:29:01]SAM_PROTO_SignData done [13:29:01]FM_MakeSignedData done [13:29:01]CreateOFDProtocolMessage [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 11 00 00 [13:29:01]Write to MH i2c: E2 08 00 B5 44 80 11 00 00 00 00 00 00 73 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 17 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 17 00 B5 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C6 [13:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:29:01]wFMCommunicate OK [13:29:01]CreateOFDProtocolMessage done [13:29:01]OFDSenderStorePacket 192587 [13:29:01]StoreOFDPacket docnum=192587 [13:29:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 12 20 07 01 62 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 A1 91 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B F0 02 00 35 04 06 00 67 30 01 5D 94 68 A7 36 FA A2 DA 75 F9 11 [13:29:01]CheckFolder [13:29:01]dirname=/storage/ofd_packets [13:29:01]CheckFolder done [13:29:01]ProducePacketName [13:29:01]name=ofd_packets/00192587 [13:29:01]NVStorageSaveData ofd_packets/00192587 [13:29:01]File name is /storage/ofd_packets/00192587 [13:29:01]Write 301 bytes [13:29:01]NVStorageSaveData done [13:29:01]OFDSenderStorePacket done [13:29:01]KKMCreateOFDPacket done [13:29:01]NVStorageSaveData kkm_last_timestamp [13:29:01]File name is /storage/kkm_last_timestamp [13:29:01]Write 4 bytes [13:29:01]NVStorageSaveData done [13:29:01]ExternCall_PrintAddStr [13:29:01]wPrintStart [13:29:01]Write to MH i2c: 01 00 00 B6 44 FA [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: 01 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: 01 07 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: 01 07 00 B6 44 00 00 00 00 00 FF 0F 0F [13:29:01]RasterBufferAndPrint [13:29:01]line Счет N : (1)31907 [13:29:01]line ИНН: 02508201610067 [13:29:01]line Контрольно-Кассовый Чек [13:29:01]line ПРОДАЖА [13:29:01]line ТРК (МРК, ГНК) : 12 [13:29:01]line Товар: 2710124130 [13:29:01]line Аи-92-К-5 [13:29:01]line 4.490 * 66.90 [13:29:01]line = 300.38 [13:29:01]line НДС 12% НСП 1% [13:29:01]line > о реализуемом товаре [13:29:01]line ОКРУГЛЕНИЕ: -0.38 [13:29:01]line ИТОГО: 300.00 [13:29:01]line Внесено: 300.00 [13:29:01]line СДАЧА: 0.00 [13:29:01]line НСП 1% : 2.66 [13:29:01]line НДС 12% : 31.90 [13:29:01]line Наличными: 300.00 [13:29:01]line Безнал.: 0.00 [13:29:01]line Место: АЗС № 170 "Партнер Нефть" [13:29:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:29:01]line СНО: Общий режим [13:29:01]line Чек 135 28.10.2024 13:29 [13:29:01]line Смена: 543 ФФД: 1.0 [13:29:01]line ЗНМ: 0300000110 [13:29:01]line РНМ: 0000000000091776 [13:29:01]line Версия ККМ: 001 [13:29:01]line ФМ: 0000000000871754 [13:29:01]line ФД: 192587 [13:29:01]line ФПД: 113455879001192 [13:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132905&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192587&fm=113455879001192&tin=02508201610067®Number=0000000000091776&sum=30000 [13:29:01]OFD Sender: Processing packet 192587 [packets to send 75, broken 74] [13:29:01]ProducePacketName [13:29:01]name=ofd_packets/00192587 [13:29:01]OFD Sender: To server: pG, [13:29:01]CommunicateWithHost lk.salyk.kg:30040 [13:29:01]ConnectInit lk.salyk.kg [13:29:01]written 0, free lines is 4095 [13:29:01]Connected sock=10 [13:29:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 12 20 07 01 62 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 A1 91 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B F0 02 00 35 04 06 00 67 30 01 5D 94 68 A7 36 FA A2 DA 75 F9 11 [13:29:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 25 E8 47 00 AC CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B F0 02 00 F4 03 04 00 65 36 1F 67 B6 04 01 00 00 74 C1 05 D4 86 CD FD 42 [13:29:02]CommunicateWithHost err = 0 [13:29:02]CheckOFDResponse [13:29:02]1017 (14) - 77093643461234 [13:29:02]1041 (16) - 0000000000871754 [13:29:02]1040 (4) - 192587 [13:29:02]1012 (4) - 28.10.2024 06:59 [13:29:02]1206 (1) - 0 [13:29:02]OFD Sender: Remove packet 192587 [13:29:02]ProducePacketName [13:29:02]name=ofd_packets/00192587 [13:29:02]NVStorageDeleteData [13:29:02]Write to MH i2c: 01 00 00 E1 44 25 [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: 01 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: 01 07 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: 01 07 00 E1 44 00 00 00 00 00 C0 0C F8 [13:29:02]RasterBufferAndPrint [13:29:02]line [13:29:02]line [13:29:02]line [13:29:02]line [13:29:02]line [13:29:02]written 0, free lines is 3270 [13:29:02]MH_Cut [13:29:02]Write to MH i2c: D1 01 00 E8 44 01 FE [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: D1 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: D1 01 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: D1 01 00 E8 44 00 FD [13:29:02]Write to MH i2c: 01 00 00 E9 44 2D [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]OFD Sender: No OFD packet to send [13:29:02]*** Cut start [13:29:02]*** Partial cut [13:29:02]*** CUTSNS_PIN = 1 [13:29:03]*** CUTSNS_PIN = 0 [13:29:03]*** Brake cut motor [13:29:03]Read from MH i2c: 01 [13:29:03]MH_I2C_Read... [13:29:03]*** Stop cut motor [13:29:03]*** Cut end [13:29:03]Read from MH i2c: 01 07 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: 01 07 00 E9 44 00 00 00 00 00 FF 0F 42 [13:29:03]process_action close_receipt done [13:29:03]requested_data is exist [13:29:03]produce_requested_data [13:29:03]requested_item fm.sn is exist - process it [13:29:03]wFMCommunicate request_size=4 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 11 00 00 [13:29:03]Write to MH i2c: E2 08 00 EA 44 80 11 00 00 00 00 00 00 A8 [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 17 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 17 00 EA 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FB [13:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:29:03]wFMCommunicate OK [13:29:03]requested_item fd.num is exist - process it [13:29:03]SAM_PROTO_GetFieldsCounters [13:29:03]wFMCommunicate request_size=4 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 13 00 00 [13:29:03]Write to MH i2c: E2 08 00 EB 44 80 13 00 00 00 00 00 00 AB [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 62 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 62 00 EB 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [13:29:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:03]wFMCommunicate OK [13:29:03]SAM_PROTO_GetFieldsCounters done [13:29:03]requested_item shift.num is exist - process it [13:29:03]requested_item shift.opened is exist - process it [13:29:03]req_shift_opened [13:29:03]FM_GetShiftState [13:29:03]SAM_PROTO_GetShiftState [13:29:03]wFMCommunicate request_size=4 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 13 01 00 [13:29:03]Write to MH i2c: E2 08 00 EC 44 80 13 01 00 00 00 00 00 AD [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 0E 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 0E 00 EC 44 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FD [13:29:03]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:29:03]wFMCommunicate OK [13:29:03]SAM_PROTO_GetShiftState done [13:29:03]FM_GetShiftState done [13:29:03]req_shift_opened done [13:29:03]requested_item shift.open_date is exist - process it [13:29:03]req_shift_open_date [13:29:03]req_shift_open_date done [13:29:03]produce_requested_data done [13:29:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192587,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:29:03]process_action_free close_receipt [13:29:03]json_value_free [13:29:03]json_value_free done [13:29:03]process_json_proto returns [13:29:03]Send response to host [13:29:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192587,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:29:03]free response buf [13:29:03]execute_script done [13:29:03]execute_script returns [13:29:03]free content buf [13:29:03]Sock 9.Close socket [13:29:03]Sock 9.Thread stoped [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]accept exits with 7 [13:33:32]New connection [13:33:32]New thread 3066563940 created [13:33:32]Thread 3066707300 joined [13:33:32]Waiting for new connection... [13:33:32] Sock 7.Parse request [13:33:32]Sock 7.Check first char [13:33:32]Sock 7.First char is OK [13:33:32]request: POST /json_proto HTTP/1.0 [13:33:32]Method: POST [13:33:32]URL: /json_proto [13:33:32]Method is POST - this is cgi request [13:33:32]url: /json_proto [13:33:32]query_string will be loaded in cgi processing [13:33:32]execute_cgi json_proto POST (null) [13:33:32]execute_cgi path=json_proto method=POST [13:33:32]POST find Content-Length [13:33:32]Host: 172.17.63.131:8080 [13:33:32]Content-Length: 676 [13:33:32]Content-Type: application/json [13:33:32] [13:33:32]POST finish read [13:33:32]Found Content-Length = 676 [13:33:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:32]execute_script... [13:33:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:32]POST & json_proto [13:33:32]process_json_proto [13:33:32]json parsed OK: [13:33:32]protocol is kg_v1.0 [13:33:32]action value=close_receipt [13:33:32]process_action close_receipt [13:33:32]cmd_close_receipt [13:33:32]MH_GetDate [13:33:32]Write to MH i2c: F0 00 00 ED 44 20 [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: F0 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: F0 09 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: F0 09 00 ED 44 00 B2 92 1F 67 22 05 6E 64 EC [13:33:32]GetLastDocTimeStamp 1730122145 [13:33:32]current date 1730122418 [13:33:32]FM_GetShiftState [13:33:32]SAM_PROTO_GetShiftState [13:33:32]wFMCommunicate request_size=4 [13:33:32]MH_SAM_APDU [13:33:32]CAPDU: 80 13 01 00 [13:33:32]Write to MH i2c: E2 08 00 EE 44 80 13 01 00 00 00 00 00 AF [13:33:32]Write i2c OK [13:33:32]MH_I2C_Read... [13:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:32]Read from MH i2c: E2 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 0E 00 [13:33:32]MH_I2C_Read... [13:33:32]Read from MH i2c: E2 0E 00 EE 44 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FF [13:33:32]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:33:32]wFMCommunicate OK [13:33:32]SAM_PROTO_GetShiftState done [13:33:32]FM_GetShiftState done [13:33:32]opened in 1730075620 [13:33:32]opened+sec_in_day 1730162020 [13:33:32]quantity*price = 30038 [13:33:32]sum+1 = 30039 [13:33:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 136 28.10.2024 13:33 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192588 ФПД: 28174091523333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133338&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192588&fm=28174091523333&tin=02508201610067®Number=0000000000091776&sum=30000 [13:33:33]StoreToDocumentArchive [13:33:33]shift 543 fd 192588 [13:33:33]save to /storage/0543/doc_00192588 [13:33:33]save last doc name /storage/0543/doc_00192588 to /storage/kkm_last_doc_name [13:33:33]save OK [13:33:33]Clear old archive folders... [13:33:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:33]tlvbuf is 019D5280 [13:33:33]SAM_PROTO_ClearQueue [13:33:33]wFMCommunicate request_size=4 [13:33:33]MH_SAM_APDU [13:33:33]CAPDU: 80 09 00 00 [13:33:33]Write to MH i2c: E2 08 00 FB 44 80 09 00 00 00 00 00 00 B1 [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:33]Read from MH i2c: E2 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 03 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 03 00 FB 44 00 90 00 B3 [13:33:33]RAPDU: 90 00 [13:33:33]wFMCommunicate OK [13:33:33]SAM_PROTO_ClearQueue done [13:33:33]KKMCreateOFDPacket [13:33:33]OFDProtocolAddRootSTLVToBuf [13:33:33]FM_MakeSignedData [13:33:33]FM_MakeSignedData [13:33:33]SAM_PROTO_SignData [13:33:33]wFMCommunicate request_size=4 [13:33:33]MH_SAM_APDU [13:33:33]CAPDU: 80 0D 01 02 [13:33:33]Write to MH i2c: E2 08 00 FC 44 80 0D 01 02 00 00 00 00 B9 [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:33]Read from MH i2c: E2 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 03 00 [13:33:33]MH_I2C_Read... [13:33:33]Read from MH i2c: E2 03 00 FC 44 00 90 00 B4 [13:33:33]RAPDU: 90 00 [13:33:33]wFMCommunicate OK [13:33:33]wFMCommunicate request_size=255 [13:33:33]MH_SAM_APDU [13:33:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 B2 92 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C F0 02 00 35 04 06 00 19 [13:33:33]Write to MH i2c: E2 02 01 FD 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 B2 92 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C F0 02 00 35 04 06 00 19 00 00 0B [13:33:33]Write i2c OK [13:33:33]MH_I2C_Read... [13:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:34]Read from MH i2c: E2 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 03 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 03 00 FD 44 00 90 00 B5 [13:33:34]RAPDU: 90 00 [13:33:34]wFMCommunicate OK [13:33:34]wFMCommunicate request_size=10 [13:33:34]MH_SAM_APDU [13:33:34]CAPDU: 80 0D 02 02 05 9F CA B7 95 05 [13:33:34]Write to MH i2c: E2 0D 00 FE 44 80 0D 02 02 05 00 9F CA B7 95 05 00 00 80 [13:33:34]Write i2c OK [13:33:34]MH_I2C_Read... [13:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:34]Read from MH i2c: E2 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 03 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 03 00 FE 44 00 90 00 B6 [13:33:34]RAPDU: 90 00 [13:33:34]wFMCommunicate OK [13:33:34]wFMCommunicate request_size=4 [13:33:34]MH_SAM_APDU [13:33:34]CAPDU: 80 0D 03 02 [13:33:34]Write to MH i2c: E2 08 00 FF 44 80 0D 03 02 00 00 00 00 BE [13:33:34]Write i2c OK [13:33:34]MH_I2C_Read... [13:33:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:34]Read from MH i2c: E2 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 0B 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 0B 00 FF 44 00 65 62 EB AB B0 F6 9B DF 90 00 3C [13:33:34]RAPDU: 65 62 EB AB B0 F6 9B DF 90 00 [13:33:34]wFMCommunicate OK [13:33:34]SAM_PROTO_SignData done [13:33:34]FM_MakeSignedData done [13:33:34]CreateOFDProtocolMessage [13:33:34]wFMCommunicate request_size=4 [13:33:34]MH_SAM_APDU [13:33:34]CAPDU: 80 11 00 00 [13:33:34]Write to MH i2c: E2 08 00 00 45 80 11 00 00 00 00 00 00 BF [13:33:34]Write i2c OK [13:33:34]MH_I2C_Read... [13:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:34]Read from MH i2c: E2 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 17 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: E2 17 00 00 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 12 [13:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:33:34]wFMCommunicate OK [13:33:34]CreateOFDProtocolMessage done [13:33:34]OFDSenderStorePacket 192588 [13:33:34]StoreOFDPacket docnum=192588 [13:33:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A9 C2 07 01 10 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 B2 92 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C F0 02 00 35 04 06 00 19 9F CA B7 95 05 65 62 EB AB B0 F6 9B DF [13:33:34]CheckFolder [13:33:34]dirname=/storage/ofd_packets [13:33:34]CheckFolder done [13:33:34]ProducePacketName [13:33:34]name=ofd_packets/00192588 [13:33:34]NVStorageSaveData ofd_packets/00192588 [13:33:34]File name is /storage/ofd_packets/00192588 [13:33:34]Write 301 bytes [13:33:34]NVStorageSaveData done [13:33:34]OFDSenderStorePacket done [13:33:34]KKMCreateOFDPacket done [13:33:34]NVStorageSaveData kkm_last_timestamp [13:33:34]File name is /storage/kkm_last_timestamp [13:33:34]Write 4 bytes [13:33:34]NVStorageSaveData done [13:33:34]ExternCall_PrintAddStr [13:33:34]wPrintStart [13:33:34]Write to MH i2c: 01 00 00 01 45 46 [13:33:34]Write i2c OK [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: 01 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: 01 07 00 [13:33:34]MH_I2C_Read... [13:33:34]Read from MH i2c: 01 07 00 01 45 00 00 00 00 00 FF 0F 5B [13:33:34]RasterBufferAndPrint [13:33:34]line Счет N : (1)31908 [13:33:34]line ИНН: 02508201610067 [13:33:34]line Контрольно-Кассовый Чек [13:33:34]line ПРОДАЖА [13:33:34]line ТРК (МРК, ГНК) : 21 [13:33:34]line Товар: 2710124130 [13:33:34]line Аи-92-К-5 [13:33:34]line 4.490 * 66.90 [13:33:34]line = 300.38 [13:33:34]line НДС 12% НСП 1% [13:33:34]line > о реализуемом товаре [13:33:34]line ОКРУГЛЕНИЕ: -0.38 [13:33:34]line ИТОГО: 300.00 [13:33:34]line Внесено: 300.00 [13:33:34]line СДАЧА: 0.00 [13:33:34]line НСП 1% : 2.66 [13:33:34]line НДС 12% : 31.90 [13:33:34]line Наличными: 300.00 [13:33:34]line Безнал.: 0.00 [13:33:34]line Место: АЗС № 170 "Партнер Нефть" [13:33:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:33:34]line СНО: Общий режим [13:33:34]line Чек 136 28.10.2024 13:33 [13:33:34]line Смена: 543 ФФД: 1.0 [13:33:34]line ЗНМ: 0300000110 [13:33:34]line РНМ: 0000000000091776 [13:33:34]line Версия ККМ: 001 [13:33:34]line ФМ: 0000000000871754 [13:33:34]line ФД: 192588 [13:33:34]line ФПД: 28174091523333 [13:33:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133338&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192588&fm=28174091523333&tin=02508201610067®Number=0000000000091776&sum=30000 [13:33:34]OFD Sender: Processing packet 192588 [packets to send 75, broken 74] [13:33:34]ProducePacketName [13:33:34]name=ofd_packets/00192588 [13:33:34]OFD Sender: To server: pG, [13:33:34]CommunicateWithHost lk.salyk.kg:30040 [13:33:34]ConnectInit lk.salyk.kg [13:33:34]written 0, free lines is 4095 [13:33:34]Connected sock=10 [13:33:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A9 C2 07 01 10 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 B2 92 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C F0 02 00 35 04 06 00 19 9F CA B7 95 05 65 62 EB AB B0 F6 9B DF [13:33:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 82 73 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 31 37 35 34 10 04 04 00 4C F0 02 00 F4 03 04 00 76 37 1F 67 B6 04 01 00 00 17 2E D6 7A 1C A4 71 60 [13:33:34]CommunicateWithHost err = 0 [13:33:34]CheckOFDResponse [13:33:34]1017 (14) - 77093643461234 [13:33:34]1041 (16) - 0000000000871754 [13:33:34]1040 (4) - 192588 [13:33:34]1012 (4) - 28.10.2024 07:04 [13:33:34]1206 (1) - 0 [13:33:34]OFD Sender: Remove packet 192588 [13:33:34]ProducePacketName [13:33:34]name=ofd_packets/00192588 [13:33:34]NVStorageDeleteData [13:33:35]Write to MH i2c: 01 00 00 2C 45 71 [13:33:35]Write i2c OK [13:33:35]MH_I2C_Read... [13:33:35]Read from MH i2c: 01 [13:33:35]MH_I2C_Read... [13:33:35]Read from MH i2c: 01 07 00 [13:33:35]MH_I2C_Read... [13:33:35]Read from MH i2c: 01 07 00 2C 45 00 00 00 00 00 CB 0C 4F [13:33:35]RasterBufferAndPrint [13:33:35]line [13:33:35]line [13:33:35]line [13:33:35]line [13:33:35]line [13:33:35]written 0, free lines is 3281 [13:33:35]MH_Cut [13:33:35]Write to MH i2c: D1 01 00 33 45 01 4A [13:33:35]Write i2c OK [13:33:35]MH_I2C_Read... [13:33:35]Read from MH i2c: D1 [13:33:35]MH_I2C_Read... [13:33:35]Read from MH i2c: D1 01 00 [13:33:35]MH_I2C_Read... [13:33:35]Read from MH i2c: D1 01 00 33 45 00 49 [13:33:35]Write to MH i2c: 01 00 00 34 45 79 [13:33:35]Write i2c OK [13:33:35]MH_I2C_Read... [13:33:35]OFD Sender: No OFD packet to send [13:33:35]*** Cut start [13:33:35]*** Partial cut [13:33:35]*** CUTSNS_PIN = 1 [13:33:36]*** CUTSNS_PIN = 0 [13:33:36]*** Brake cut motor [13:33:36]Read from MH i2c: 01 [13:33:36]MH_I2C_Read... [13:33:36]*** Stop cut motor [13:33:36]*** Cut end [13:33:36]Read from MH i2c: 01 07 00 [13:33:36]MH_I2C_Read... [13:33:36]Read from MH i2c: 01 07 00 34 45 00 00 00 00 00 FF 0F 8E [13:33:36]process_action close_receipt done [13:33:36]requested_data is exist [13:33:36]produce_requested_data [13:33:36]requested_item fm.sn is exist - process it [13:33:36]wFMCommunicate request_size=4 [13:33:36]MH_SAM_APDU [13:33:36]CAPDU: 80 11 00 00 [13:33:36]Write to MH i2c: E2 08 00 35 45 80 11 00 00 00 00 00 00 F4 [13:33:36]Write i2c OK [13:33:36]MH_I2C_Read... [13:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:36]Read from MH i2c: E2 [13:33:36]MH_I2C_Read... [13:33:36]Read from MH i2c: E2 17 00 [13:33:36]MH_I2C_Read... [13:33:36]Read from MH i2c: E2 17 00 35 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 47 [13:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:33:36]wFMCommunicate OK [13:33:36]requested_item fd.num is exist - process it [13:33:36]SAM_PROTO_GetFieldsCounters [13:33:36]wFMCommunicate request_size=4 [13:33:36]MH_SAM_APDU [13:33:36]CAPDU: 80 13 00 00 [13:33:36]Write to MH i2c: E2 08 00 36 45 80 13 00 00 00 00 00 00 F7 [13:33:36]Write i2c OK [13:33:36]MH_I2C_Read... [13:33:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:36]Read from MH i2c: E2 [13:33:36]MH_I2C_Read... [13:33:36]Read from MH i2c: E2 62 00 [13:33:36]MH_I2C_Read... [13:33:36]Read from MH i2c: E2 62 00 36 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [13:33:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:36]wFMCommunicate OK [13:33:36]SAM_PROTO_GetFieldsCounters done [13:33:36]requested_item shift.num is exist - process it [13:33:36]requested_item shift.opened is exist - process it [13:33:36]req_shift_opened [13:33:36]FM_GetShiftState [13:33:36]SAM_PROTO_GetShiftState [13:33:36]wFMCommunicate request_size=4 [13:33:36]MH_SAM_APDU [13:33:36]CAPDU: 80 13 01 00 [13:33:36]Write to MH i2c: E2 08 00 37 45 80 13 01 00 00 00 00 00 F9 [13:33:36]Write i2c OK [13:33:36]MH_I2C_Read... [13:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:36]Read from MH i2c: E2 [13:33:36]MH_I2C_Read... [13:33:36]Read from MH i2c: E2 0E 00 [13:33:36]MH_I2C_Read... [13:33:36]Read from MH i2c: E2 0E 00 37 45 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 49 [13:33:36]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:33:36]wFMCommunicate OK [13:33:36]SAM_PROTO_GetShiftState done [13:33:36]FM_GetShiftState done [13:33:36]req_shift_opened done [13:33:36]requested_item shift.open_date is exist - process it [13:33:36]req_shift_open_date [13:33:36]req_shift_open_date done [13:33:36]produce_requested_data done [13:33:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192588,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:33:36]process_action_free close_receipt [13:33:36]json_value_free [13:33:36]json_value_free done [13:33:36]process_json_proto returns [13:33:36]Send response to host [13:33:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192588,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:33:36]free response buf [13:33:36]execute_script done [13:33:36]execute_script returns [13:33:36]free content buf [13:33:36]Sock 7.Close socket [13:33:36]Sock 7.Thread stoped [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:46]accept exits with 9 [13:34:46]New connection [13:34:46]New thread 3066707300 created [13:34:46]Thread 3066563940 joined [13:34:46]Waiting for new connection... [13:34:46] Sock 9.Parse request [13:34:46]Sock 9.Check first char [13:34:46]Sock 9.First char is OK [13:34:46]request: POST /json_proto HTTP/1.0 [13:34:46]Method: POST [13:34:46]URL: /json_proto [13:34:46]Method is POST - this is cgi request [13:34:46]url: /json_proto [13:34:46]query_string will be loaded in cgi processing [13:34:46]execute_cgi json_proto POST (null) [13:34:46]execute_cgi path=json_proto method=POST [13:34:46]POST find Content-Length [13:34:46]Host: 172.17.63.131:8080 [13:34:46]Content-Length: 678 [13:34:46]Content-Type: application/json [13:34:46] [13:34:46]POST finish read [13:34:46]Found Content-Length = 678 [13:34:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:46]execute_script... [13:34: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)31909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:46]POST & json_proto [13:34:46]process_json_proto [13:34:46]json parsed OK: [13:34:46]protocol is kg_v1.0 [13:34:46]action value=close_receipt [13:34:46]process_action close_receipt [13:34:46]cmd_close_receipt [13:34:46]MH_GetDate [13:34:46]Write to MH i2c: F0 00 00 38 45 6C [13:34:46]Write i2c OK [13:34:46]MH_I2C_Read... [13:34:46]Read from MH i2c: F0 [13:34:46]MH_I2C_Read... [13:34:46]Read from MH i2c: F0 09 00 [13:34:46]MH_I2C_Read... [13:34:46]Read from MH i2c: F0 09 00 38 45 00 FB 92 1F 67 22 05 6E 64 81 [13:34:46]GetLastDocTimeStamp 1730122418 [13:34:46]current date 1730122491 [13:34:46]FM_GetShiftState [13:34:46]SAM_PROTO_GetShiftState [13:34:46]wFMCommunicate request_size=4 [13:34:46]MH_SAM_APDU [13:34:46]CAPDU: 80 13 01 00 [13:34:46]Write to MH i2c: E2 08 00 39 45 80 13 01 00 00 00 00 00 FB [13:34:46]Write i2c OK [13:34:46]MH_I2C_Read... [13:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:46]Read from MH i2c: E2 [13:34:46]MH_I2C_Read... [13:34:46]Read from MH i2c: E2 0E 00 [13:34:46]MH_I2C_Read... [13:34:46]Read from MH i2c: E2 0E 00 39 45 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 4B [13:34:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:34:46]wFMCommunicate OK [13:34:46]SAM_PROTO_GetShiftState done [13:34:46]FM_GetShiftState done [13:34:46]opened in 1730075620 [13:34:46]opened+sec_in_day 1730162020 [13:34:46]quantity*price = 110032 [13:34:46]sum+1 = 110034 [13:34:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 137 28.10.2024 13:34 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192589 ФПД: 42523062844218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133451&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192589&fm=42523062844218&tin=02508201610067®Number=0000000000091776&sum=110000 [13:34:47]StoreToDocumentArchive [13:34:47]shift 543 fd 192589 [13:34:47]save to /storage/0543/doc_00192589 [13:34:47]save last doc name /storage/0543/doc_00192589 to /storage/kkm_last_doc_name [13:34:47]save OK [13:34:47]Clear old archive folders... [13:34:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:34:47]tlvbuf is 0196AEE0 [13:34:47]SAM_PROTO_ClearQueue [13:34:47]wFMCommunicate request_size=4 [13:34:47]MH_SAM_APDU [13:34:47]CAPDU: 80 09 00 00 [13:34:47]Write to MH i2c: E2 08 00 46 45 80 09 00 00 00 00 00 00 FD [13:34:47]Write i2c OK [13:34:47]MH_I2C_Read... [13:34:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:47]Read from MH i2c: E2 [13:34:47]MH_I2C_Read... [13:34:47]Read from MH i2c: E2 03 00 [13:34:47]MH_I2C_Read... [13:34:47]Read from MH i2c: E2 03 00 46 45 00 90 00 FF [13:34:47]RAPDU: 90 00 [13:34:47]wFMCommunicate OK [13:34:47]SAM_PROTO_ClearQueue done [13:34:47]KKMCreateOFDPacket [13:34:47]OFDProtocolAddRootSTLVToBuf [13:34:47]FM_MakeSignedData [13:34:47]FM_MakeSignedData [13:34:47]SAM_PROTO_SignData [13:34:47]wFMCommunicate request_size=4 [13:34:47]MH_SAM_APDU [13:34:47]CAPDU: 80 0D 01 02 [13:34:47]Write to MH i2c: E2 08 00 47 45 80 0D 01 02 00 00 00 00 05 [13:34:47]Write i2c OK [13:34:47]MH_I2C_Read... [13:34:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:47]Read from MH i2c: E2 [13:34:47]MH_I2C_Read... [13:34:47]Read from MH i2c: E2 03 00 [13:34:47]MH_I2C_Read... [13:34:47]Read from MH i2c: E2 03 00 47 45 00 90 00 00 [13:34:47]RAPDU: 90 00 [13:34:47]wFMCommunicate OK [13:34:47]wFMCommunicate request_size=255 [13:34:47]MH_SAM_APDU [13:34:47]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 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 FB 92 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D F0 02 00 35 04 06 00 26 AC AC 0E [13:34:47]Write to MH i2c: E2 02 01 48 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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 FB 92 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D F0 02 00 35 04 06 00 26 AC AC 0E 00 00 4E [13:34:47]Write i2c OK [13:34:47]MH_I2C_Read... [13:34:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:47]Read from MH i2c: E2 [13:34:47]MH_I2C_Read... [13:34:47]Read from MH i2c: E2 03 00 [13:34:47]MH_I2C_Read... [13:34:47]Read from MH i2c: E2 03 00 48 45 00 90 00 01 [13:34:47]RAPDU: 90 00 [13:34:47]wFMCommunicate OK [13:34:47]wFMCommunicate request_size=7 [13:34:47]MH_SAM_APDU [13:34:47]CAPDU: 80 0D 02 02 02 3B 3A [13:34:47]Write to MH i2c: E2 0A 00 49 45 80 0D 02 02 02 00 3B 3A 00 00 81 [13:34:47]Write i2c OK [13:34:47]MH_I2C_Read... [13:34:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:47]Read from MH i2c: E2 [13:34:47]MH_I2C_Read... [13:34:47]Read from MH i2c: E2 03 00 [13:34:47]MH_I2C_Read... [13:34:47]Read from MH i2c: E2 03 00 49 45 00 90 00 02 [13:34:47]RAPDU: 90 00 [13:34:47]wFMCommunicate OK [13:34:47]wFMCommunicate request_size=4 [13:34:47]MH_SAM_APDU [13:34:47]CAPDU: 80 0D 03 02 [13:34:47]Write to MH i2c: E2 08 00 4A 45 80 0D 03 02 00 00 00 00 0A [13:34:47]Write i2c OK [13:34:47]MH_I2C_Read... [13:34:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:47]Read from MH i2c: E2 [13:34:47]MH_I2C_Read... [13:34:47]Read from MH i2c: E2 0B 00 [13:34:47]MH_I2C_Read... [13:34:47]Read from MH i2c: E2 0B 00 4A 45 00 8E 38 B2 E9 72 BE 11 01 90 00 AE [13:34:47]RAPDU: 8E 38 B2 E9 72 BE 11 01 90 00 [13:34:47]wFMCommunicate OK [13:34:47]SAM_PROTO_SignData done [13:34:47]FM_MakeSignedData done [13:34:47]CreateOFDProtocolMessage [13:34:47]wFMCommunicate request_size=4 [13:34:47]MH_SAM_APDU [13:34:47]CAPDU: 80 11 00 00 [13:34:47]Write to MH i2c: E2 08 00 4B 45 80 11 00 00 00 00 00 00 0A [13:34:47]Write i2c OK [13:34:47]MH_I2C_Read... [13:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:48]Read from MH i2c: E2 [13:34:48]MH_I2C_Read... [13:34:48]Read from MH i2c: E2 17 00 [13:34:48]MH_I2C_Read... [13:34:48]Read from MH i2c: E2 17 00 4B 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5D [13:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:34:48]wFMCommunicate OK [13:34:48]CreateOFDProtocolMessage done [13:34:48]OFDSenderStorePacket 192589 [13:34:48]StoreOFDPacket docnum=192589 [13:34:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 2C EB 04 01 62 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 FB 92 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D F0 02 00 35 04 06 00 26 AC AC 0E 3B 3A 8E 38 B2 E9 72 BE 11 01 [13:34:48]CheckFolder [13:34:48]dirname=/storage/ofd_packets [13:34:48]CheckFolder done [13:34:48]ProducePacketName [13:34:48]name=ofd_packets/00192589 [13:34:48]NVStorageSaveData ofd_packets/00192589 [13:34:48]File name is /storage/ofd_packets/00192589 [13:34:48]Write 298 bytes [13:34:48]NVStorageSaveData done [13:34:48]OFDSenderStorePacket done [13:34:48]KKMCreateOFDPacket done [13:34:48]NVStorageSaveData kkm_last_timestamp [13:34:48]File name is /storage/kkm_last_timestamp [13:34:48]Write 4 bytes [13:34:48]NVStorageSaveData done [13:34:48]ExternCall_PrintAddStr [13:34:48]wPrintStart [13:34:48]Write to MH i2c: 01 00 00 4C 45 91 [13:34:48]Write i2c OK [13:34:48]MH_I2C_Read... [13:34:48]Read from MH i2c: 01 [13:34:48]MH_I2C_Read... [13:34:48]Read from MH i2c: 01 07 00 [13:34:48]MH_I2C_Read... [13:34:48]Read from MH i2c: 01 07 00 4C 45 00 00 00 00 00 FF 0F A6 [13:34:48]RasterBufferAndPrint [13:34:48]line Счет N : (1)31909 [13:34:48]line ИНН: 02508201610067 [13:34:48]line Контрольно-Кассовый Чек [13:34:48]line ПРОДАЖА [13:34:48]line ТРК (МРК, ГНК) : 11 [13:34:48]line Товар: 2710194210 [13:34:48]line ДТ-К-5 [13:34:48]line 14.440 * 76.20 [13:34:48]line = 1100.33 [13:34:48]line НДС 12% НСП 1% [13:34:48]line > о реализуемом товаре [13:34:48]line ОКРУГЛЕНИЕ: -0.33 [13:34:48]line ИТОГО: 1100.00 [13:34:48]line Внесено: 1100.00 [13:34:48]line СДАЧА: 0.00 [13:34:48]line НСП 1% : 9.74 [13:34:48]line НДС 12% : 116.85 [13:34:48]line Наличными: 1100.00 [13:34:48]line Безнал.: 0.00 [13:34:48]line Место: АЗС № 170 "Партнер Нефть" [13:34:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:34:48]line СНО: Общий режим [13:34:48]line Чек 137 28.10.2024 13:34 [13:34:48]line Смена: 543 ФФД: 1.0 [13:34:48]line ЗНМ: 0300000110 [13:34:48]line РНМ: 0000000000091776 [13:34:48]line Версия ККМ: 001 [13:34:48]line ФМ: 0000000000871754 [13:34:48]line ФД: 192589 [13:34:48]line ФПД: 42523062844218 [13:34:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133451&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192589&fm=42523062844218&tin=02508201610067®Number=0000000000091776&sum=110000 [13:34:48]OFD Sender: Processing packet 192589 [packets to send 75, broken 74] [13:34:48]ProducePacketName [13:34:48]name=ofd_packets/00192589 [13:34:48]OFD Sender: To server: pG, [13:34:48]CommunicateWithHost lk.salyk.kg:30040 [13:34:48]ConnectInit lk.salyk.kg [13:34:48]written 0, free lines is 4095 [13:34:48]Connected sock=10 [13:34:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 2C EB 04 01 62 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 FB 92 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D F0 02 00 35 04 06 00 26 AC AC 0E 3B 3A 8E 38 B2 E9 72 BE 11 01 [13:34:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 63 46 47 00 62 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D F0 02 00 F4 03 04 00 BF 37 1F 67 B6 04 01 00 00 E6 ED 96 AB 38 2B D0 90 [13:34:48]CommunicateWithHost err = 0 [13:34:48]CheckOFDResponse [13:34:48]1017 (14) - 77093643461234 [13:34:48]1041 (16) - 0000000000871754 [13:34:48]1040 (4) - 192589 [13:34:48]1012 (4) - 28.10.2024 07:05 [13:34:48]1206 (1) - 0 [13:34:48]OFD Sender: Remove packet 192589 [13:34:48]ProducePacketName [13:34:48]name=ofd_packets/00192589 [13:34:48]NVStorageDeleteData [13:34:48]Write to MH i2c: 01 00 00 77 45 BC [13:34:48]Write i2c OK [13:34:48]MH_I2C_Read... [13:34:48]Read from MH i2c: 01 [13:34:48]MH_I2C_Read... [13:34:48]Read from MH i2c: 01 07 00 [13:34:48]MH_I2C_Read... [13:34:48]Read from MH i2c: 01 07 00 77 45 00 00 00 00 00 B9 0C 88 [13:34:48]RasterBufferAndPrint [13:34:48]line [13:34:48]line [13:34:48]line [13:34:48]line [13:34:48]line [13:34:48]written 0, free lines is 3263 [13:34:48]MH_Cut [13:34:48]Write to MH i2c: D1 01 00 7E 45 01 95 [13:34:48]Write i2c OK [13:34:48]MH_I2C_Read... [13:34:48]Read from MH i2c: D1 [13:34:48]MH_I2C_Read... [13:34:48]Read from MH i2c: D1 01 00 [13:34:48]MH_I2C_Read... [13:34:48]Read from MH i2c: D1 01 00 7E 45 00 94 [13:34:48]Write to MH i2c: 01 00 00 7F 45 C4 [13:34:48]Write i2c OK [13:34:48]MH_I2C_Read... [13:34:49]OFD Sender: No OFD packet to send [13:34:49]*** Cut start [13:34:49]*** Partial cut [13:34:49]*** CUTSNS_PIN = 1 [13:34:49]*** CUTSNS_PIN = 0 [13:34:49]*** Brake cut motor [13:34:50]Read from MH i2c: 01 [13:34:50]MH_I2C_Read... [13:34:50]*** Stop cut motor [13:34:50]*** Cut end [13:34:50]Read from MH i2c: 01 07 00 [13:34:50]MH_I2C_Read... [13:34:50]Read from MH i2c: 01 07 00 7F 45 00 00 00 00 00 FF 0F D9 [13:34:50]process_action close_receipt done [13:34:50]requested_data is exist [13:34:50]produce_requested_data [13:34:50]requested_item fm.sn is exist - process it [13:34:50]wFMCommunicate request_size=4 [13:34:50]MH_SAM_APDU [13:34:50]CAPDU: 80 11 00 00 [13:34:50]Write to MH i2c: E2 08 00 80 45 80 11 00 00 00 00 00 00 3F [13:34:50]Write i2c OK [13:34:50]MH_I2C_Read... [13:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:50]Read from MH i2c: E2 [13:34:50]MH_I2C_Read... [13:34:50]Read from MH i2c: E2 17 00 [13:34:50]MH_I2C_Read... [13:34:50]Read from MH i2c: E2 17 00 80 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 92 [13:34:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:34:50]wFMCommunicate OK [13:34:50]requested_item fd.num is exist - process it [13:34:50]SAM_PROTO_GetFieldsCounters [13:34:50]wFMCommunicate request_size=4 [13:34:50]MH_SAM_APDU [13:34:50]CAPDU: 80 13 00 00 [13:34:50]Write to MH i2c: E2 08 00 81 45 80 13 00 00 00 00 00 00 42 [13:34:50]Write i2c OK [13:34:50]MH_I2C_Read... [13:34:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:50]Read from MH i2c: E2 [13:34:50]MH_I2C_Read... [13:34:50]Read from MH i2c: E2 62 00 [13:34:50]MH_I2C_Read... [13:34:50]Read from MH i2c: E2 62 00 81 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [13:34:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:50]wFMCommunicate OK [13:34:50]SAM_PROTO_GetFieldsCounters done [13:34:50]requested_item shift.num is exist - process it [13:34:50]requested_item shift.opened is exist - process it [13:34:50]req_shift_opened [13:34:50]FM_GetShiftState [13:34:50]SAM_PROTO_GetShiftState [13:34:50]wFMCommunicate request_size=4 [13:34:50]MH_SAM_APDU [13:34:50]CAPDU: 80 13 01 00 [13:34:50]Write to MH i2c: E2 08 00 82 45 80 13 01 00 00 00 00 00 44 [13:34:50]Write i2c OK [13:34:50]MH_I2C_Read... [13:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:50]Read from MH i2c: E2 [13:34:50]MH_I2C_Read... [13:34:50]Read from MH i2c: E2 0E 00 [13:34:50]MH_I2C_Read... [13:34:50]Read from MH i2c: E2 0E 00 82 45 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 94 [13:34:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:34:50]wFMCommunicate OK [13:34:50]SAM_PROTO_GetShiftState done [13:34:50]FM_GetShiftState done [13:34:50]req_shift_opened done [13:34:50]requested_item shift.open_date is exist - process it [13:34:50]req_shift_open_date [13:34:50]req_shift_open_date done [13:34:50]produce_requested_data done [13:34:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192589,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:34:50]process_action_free close_receipt [13:34:50]json_value_free [13:34:50]json_value_free done [13:34:50]process_json_proto returns [13:34:50]Send response to host [13:34:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192589,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:34:50]free response buf [13:34:50]execute_script done [13:34:50]execute_script returns [13:34:50]free content buf [13:34:50]Sock 9.Close socket [13:34:50]Sock 9.Thread stoped [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]accept exits with 7 [13:35:54]New connection [13:35:54]New thread 3066563940 created [13:35:54]Thread 3066707300 joined [13:35:54]Waiting for new connection... [13:35:54] Sock 7.Parse request [13:35:54]Sock 7.Check first char [13:35:54]Sock 7.First char is OK [13:35:54]request: POST /json_proto HTTP/1.0 [13:35:54]Method: POST [13:35:54]URL: /json_proto [13:35:54]Method is POST - this is cgi request [13:35:54]url: /json_proto [13:35:54]query_string will be loaded in cgi processing [13:35:54]execute_cgi json_proto POST (null) [13:35:54]execute_cgi path=json_proto method=POST [13:35:54]POST find Content-Length [13:35:54]Host: 172.17.63.131:8080 [13:35:54]Content-Length: 673 [13:35:54]Content-Type: application/json [13:35:54] [13:35:54]POST finish read [13:35:54]Found Content-Length = 673 [13:35:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:54]execute_script... [13:35: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)31910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:54]POST & json_proto [13:35:54]process_json_proto [13:35:54]json parsed OK: [13:35:54]protocol is kg_v1.0 [13:35:54]action value=close_receipt [13:35:54]process_action close_receipt [13:35:54]cmd_close_receipt [13:35:54]MH_GetDate [13:35:54]Write to MH i2c: F0 00 00 83 45 B7 [13:35:54]Write i2c OK [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: F0 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: F0 09 00 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: F0 09 00 83 45 00 3F 93 1F 67 22 05 6E 64 11 [13:35:54]GetLastDocTimeStamp 1730122491 [13:35:54]current date 1730122559 [13:35:54]FM_GetShiftState [13:35:54]SAM_PROTO_GetShiftState [13:35:54]wFMCommunicate request_size=4 [13:35:54]MH_SAM_APDU [13:35:54]CAPDU: 80 13 01 00 [13:35:54]Write to MH i2c: E2 08 00 84 45 80 13 01 00 00 00 00 00 46 [13:35:54]Write i2c OK [13:35:54]MH_I2C_Read... [13:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:54]Read from MH i2c: E2 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: E2 0E 00 [13:35:54]MH_I2C_Read... [13:35:54]Read from MH i2c: E2 0E 00 84 45 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 96 [13:35:54]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:35:54]wFMCommunicate OK [13:35:54]SAM_PROTO_GetShiftState done [13:35:54]FM_GetShiftState done [13:35:54]opened in 1730075620 [13:35:54]opened+sec_in_day 1730162020 [13:35:54]quantity*price = 30022 [13:35:54]sum+1 = 30024 [13:35:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 138 28.10.2024 13:35 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192590 ФПД: 56300069982348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133559&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192590&fm=56300069982348&tin=02508201610067®Number=0000000000091776&sum=30000 [13:35:55]StoreToDocumentArchive [13:35:55]shift 543 fd 192590 [13:35:55]save to /storage/0543/doc_00192590 [13:35:55]save last doc name /storage/0543/doc_00192590 to /storage/kkm_last_doc_name [13:35:55]save OK [13:35:55]Clear old archive folders... [13:35:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:35:55]tlvbuf is 01A7C030 [13:35:55]SAM_PROTO_ClearQueue [13:35:55]wFMCommunicate request_size=4 [13:35:55]MH_SAM_APDU [13:35:55]CAPDU: 80 09 00 00 [13:35:55]Write to MH i2c: E2 08 00 91 45 80 09 00 00 00 00 00 00 48 [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:55]Read from MH i2c: E2 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 03 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 03 00 91 45 00 90 00 4A [13:35:55]RAPDU: 90 00 [13:35:55]wFMCommunicate OK [13:35:55]SAM_PROTO_ClearQueue done [13:35:55]KKMCreateOFDPacket [13:35:55]OFDProtocolAddRootSTLVToBuf [13:35:55]FM_MakeSignedData [13:35:55]FM_MakeSignedData [13:35:55]SAM_PROTO_SignData [13:35:55]wFMCommunicate request_size=4 [13:35:55]MH_SAM_APDU [13:35:55]CAPDU: 80 0D 01 02 [13:35:55]Write to MH i2c: E2 08 00 92 45 80 0D 01 02 00 00 00 00 50 [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:55]Read from MH i2c: E2 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 03 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 03 00 92 45 00 90 00 4B [13:35:55]RAPDU: 90 00 [13:35:55]wFMCommunicate OK [13:35:55]wFMCommunicate request_size=255 [13:35:55]MH_SAM_APDU [13:35:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 3F 93 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E F0 02 00 35 04 06 00 33 34 61 AC [13:35:55]Write to MH i2c: E2 02 01 93 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 3F 93 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E F0 02 00 35 04 06 00 33 34 61 AC 00 00 4E [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:55]Read from MH i2c: E2 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 03 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 03 00 93 45 00 90 00 4C [13:35:55]RAPDU: 90 00 [13:35:55]wFMCommunicate OK [13:35:55]wFMCommunicate request_size=7 [13:35:55]MH_SAM_APDU [13:35:55]CAPDU: 80 0D 02 02 02 10 8C [13:35:55]Write to MH i2c: E2 0A 00 94 45 80 0D 02 02 02 00 10 8C 00 00 F3 [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:55]Read from MH i2c: E2 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 03 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 03 00 94 45 00 90 00 4D [13:35:55]RAPDU: 90 00 [13:35:55]wFMCommunicate OK [13:35:55]wFMCommunicate request_size=4 [13:35:55]MH_SAM_APDU [13:35:55]CAPDU: 80 0D 03 02 [13:35:55]Write to MH i2c: E2 08 00 95 45 80 0D 03 02 00 00 00 00 55 [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:55]Read from MH i2c: E2 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 0B 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 0B 00 95 45 00 76 17 35 46 FD DF 50 80 90 00 0A [13:35:55]RAPDU: 76 17 35 46 FD DF 50 80 90 00 [13:35:55]wFMCommunicate OK [13:35:55]SAM_PROTO_SignData done [13:35:55]FM_MakeSignedData done [13:35:55]CreateOFDProtocolMessage [13:35:55]wFMCommunicate request_size=4 [13:35:55]MH_SAM_APDU [13:35:55]CAPDU: 80 11 00 00 [13:35:55]Write to MH i2c: E2 08 00 96 45 80 11 00 00 00 00 00 00 55 [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:55]Read from MH i2c: E2 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 17 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: E2 17 00 96 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A8 [13:35:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:35:55]wFMCommunicate OK [13:35:55]CreateOFDProtocolMessage done [13:35:55]OFDSenderStorePacket 192590 [13:35:55]StoreOFDPacket docnum=192590 [13:35:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 70 3C 04 01 24 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 3F 93 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E F0 02 00 35 04 06 00 33 34 61 AC 10 8C 76 17 35 46 FD DF 50 80 [13:35:55]CheckFolder [13:35:55]dirname=/storage/ofd_packets [13:35:55]CheckFolder done [13:35:55]ProducePacketName [13:35:55]name=ofd_packets/00192590 [13:35:55]NVStorageSaveData ofd_packets/00192590 [13:35:55]File name is /storage/ofd_packets/00192590 [13:35:55]Write 298 bytes [13:35:55]NVStorageSaveData done [13:35:55]OFDSenderStorePacket done [13:35:55]KKMCreateOFDPacket done [13:35:55]NVStorageSaveData kkm_last_timestamp [13:35:55]File name is /storage/kkm_last_timestamp [13:35:55]Write 4 bytes [13:35:55]NVStorageSaveData done [13:35:55]ExternCall_PrintAddStr [13:35:55]wPrintStart [13:35:55]Write to MH i2c: 01 00 00 97 45 DC [13:35:55]Write i2c OK [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: 01 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: 01 07 00 [13:35:55]MH_I2C_Read... [13:35:55]Read from MH i2c: 01 07 00 97 45 00 00 00 00 00 FF 0F F1 [13:35:55]RasterBufferAndPrint [13:35:55]line Счет N : (1)31910 [13:35:55]line ИНН: 02508201610067 [13:35:55]line Контрольно-Кассовый Чек [13:35:55]line ПРОДАЖА [13:35:55]line ТРК (МРК, ГНК) : 11 [13:35:55]line Товар: 2710194210 [13:35:55]line ДТ-К-5 [13:35:55]line 3.940 * 76.20 [13:35:55]line = 300.23 [13:35:55]line НДС 12% НСП 1% [13:35:55]line > о реализуемом товаре [13:35:55]line ОКРУГЛЕНИЕ: -0.23 [13:35:55]line ИТОГО: 300.00 [13:35:55]line Внесено: 300.00 [13:35:55]line СДАЧА: 0.00 [13:35:55]line НСП 1% : 2.66 [13:35:55]line НДС 12% : 31.88 [13:35:55]line Наличными: 300.00 [13:35:55]line Безнал.: 0.00 [13:35:55]line Место: АЗС № 170 "Партнер Нефть" [13:35:55]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:35:55]line СНО: Общий режим [13:35:55]line Чек 138 28.10.2024 13:35 [13:35:55]line Смена: 543 ФФД: 1.0 [13:35:55]line ЗНМ: 0300000110 [13:35:55]line РНМ: 0000000000091776 [13:35:55]line Версия ККМ: 001 [13:35:55]line ФМ: 0000000000871754 [13:35:55]line ФД: 192590 [13:35:55]line ФПД: 56300069982348 [13:35:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133559&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192590&fm=56300069982348&tin=02508201610067®Number=0000000000091776&sum=30000 [13:35:56]OFD Sender: Processing packet 192590 [packets to send 75, broken 74] [13:35:56]ProducePacketName [13:35:56]name=ofd_packets/00192590 [13:35:56]OFD Sender: To server: pG, [13:35:56]CommunicateWithHost lk.salyk.kg:30040 [13:35:56]ConnectInit lk.salyk.kg [13:35:56]written 0, free lines is 4095 [13:35:56]Connected sock=11 [13:35:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 70 3C 04 01 24 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 3F 93 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E F0 02 00 35 04 06 00 33 34 61 AC 10 8C 76 17 35 46 FD DF 50 80 [13:35:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0D FA 47 00 DE D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E F0 02 00 F4 03 04 00 03 38 1F 67 B6 04 01 00 00 87 28 0A 32 68 AC 29 99 [13:35:56]CommunicateWithHost err = 0 [13:35:56]CheckOFDResponse [13:35:56]1017 (14) - 77093643461234 [13:35:56]1041 (16) - 0000000000871754 [13:35:56]1040 (4) - 192590 [13:35:56]1012 (4) - 28.10.2024 07:06 [13:35:56]1206 (1) - 0 [13:35:56]OFD Sender: Remove packet 192590 [13:35:56]ProducePacketName [13:35:56]name=ofd_packets/00192590 [13:35:56]NVStorageDeleteData [13:35:56]Write to MH i2c: 01 00 00 C2 45 07 [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: 01 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: 01 07 00 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: 01 07 00 C2 45 00 00 00 00 00 C2 0C DC [13:35:56]RasterBufferAndPrint [13:35:56]line [13:35:56]line [13:35:56]line [13:35:56]line [13:35:56]line [13:35:56]written 0, free lines is 3272 [13:35:56]MH_Cut [13:35:56]Write to MH i2c: D1 01 00 C9 45 01 E0 [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: D1 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: D1 01 00 [13:35:56]MH_I2C_Read... [13:35:56]Read from MH i2c: D1 01 00 C9 45 00 DF [13:35:56]Write to MH i2c: 01 00 00 CA 45 0F [13:35:56]Write i2c OK [13:35:56]MH_I2C_Read... [13:35:57]OFD Sender: No OFD packet to send [13:35:57]*** Cut start [13:35:57]*** Partial cut [13:35:57]*** CUTSNS_PIN = 1 [13:35:57]*** CUTSNS_PIN = 0 [13:35:57]*** Brake cut motor [13:35:58]Read from MH i2c: 01 [13:35:58]MH_I2C_Read... [13:35:58]*** Stop cut motor [13:35:58]*** Cut end [13:35:58]Read from MH i2c: 01 07 00 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: 01 07 00 CA 45 00 00 00 00 00 FF 0F 24 [13:35:58]process_action close_receipt done [13:35:58]requested_data is exist [13:35:58]produce_requested_data [13:35:58]requested_item fm.sn is exist - process it [13:35:58]wFMCommunicate request_size=4 [13:35:58]MH_SAM_APDU [13:35:58]CAPDU: 80 11 00 00 [13:35:58]Write to MH i2c: E2 08 00 CB 45 80 11 00 00 00 00 00 00 8A [13:35:58]Write i2c OK [13:35:58]MH_I2C_Read... [13:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:58]Read from MH i2c: E2 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: E2 17 00 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: E2 17 00 CB 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DD [13:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:35:58]wFMCommunicate OK [13:35:58]requested_item fd.num is exist - process it [13:35:58]SAM_PROTO_GetFieldsCounters [13:35:58]wFMCommunicate request_size=4 [13:35:58]MH_SAM_APDU [13:35:58]CAPDU: 80 13 00 00 [13:35:58]Write to MH i2c: E2 08 00 CC 45 80 13 00 00 00 00 00 00 8D [13:35:58]Write i2c OK [13:35:58]MH_I2C_Read... [13:35:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:58]Read from MH i2c: E2 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: E2 62 00 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: E2 62 00 CC 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [13:35:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:35:58]wFMCommunicate OK [13:35:58]SAM_PROTO_GetFieldsCounters done [13:35:58]requested_item shift.num is exist - process it [13:35:58]requested_item shift.opened is exist - process it [13:35:58]req_shift_opened [13:35:58]FM_GetShiftState [13:35:58]SAM_PROTO_GetShiftState [13:35:58]wFMCommunicate request_size=4 [13:35:58]MH_SAM_APDU [13:35:58]CAPDU: 80 13 01 00 [13:35:58]Write to MH i2c: E2 08 00 CD 45 80 13 01 00 00 00 00 00 8F [13:35:58]Write i2c OK [13:35:58]MH_I2C_Read... [13:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:58]Read from MH i2c: E2 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: E2 0E 00 [13:35:58]MH_I2C_Read... [13:35:58]Read from MH i2c: E2 0E 00 CD 45 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DF [13:35:58]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:35:58]wFMCommunicate OK [13:35:58]SAM_PROTO_GetShiftState done [13:35:58]FM_GetShiftState done [13:35:58]req_shift_opened done [13:35:58]requested_item shift.open_date is exist - process it [13:35:58]req_shift_open_date [13:35:58]req_shift_open_date done [13:35:58]produce_requested_data done [13:35:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192590,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:35:58]process_action_free close_receipt [13:35:58]json_value_free [13:35:58]json_value_free done [13:35:58]process_json_proto returns [13:35:58]Send response to host [13:35:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192590,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:35:58]free response buf [13:35:58]execute_script done [13:35:58]execute_script returns [13:35:58]free content buf [13:35:58]Sock 7.Close socket [13:35:58]Sock 7.Thread stoped [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:41]accept exits with 9 [13:36:41]New connection [13:36:41]New thread 3066707300 created [13:36:41]Thread 3066563940 joined [13:36:41]Waiting for new connection... [13:36:41] Sock 9.Parse request [13:36:41]Sock 9.Check first char [13:36:41]Sock 9.First char is OK [13:36:41]request: POST /json_proto HTTP/1.0 [13:36:41]Method: POST [13:36:41]URL: /json_proto [13:36:41]Method is POST - this is cgi request [13:36:41]url: /json_proto [13:36:41]query_string will be loaded in cgi processing [13:36:41]execute_cgi json_proto POST (null) [13:36:41]execute_cgi path=json_proto method=POST [13:36:41]POST find Content-Length [13:36:41]Host: 172.17.63.131:8080 [13:36:41]Content-Length: 681 [13:36:41]Content-Type: application/json [13:36:41] [13:36:41]POST finish read [13:36:41]Found Content-Length = 681 [13:36:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:41]execute_script... [13:36:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:41]POST & json_proto [13:36:41]process_json_proto [13:36:41]json parsed OK: [13:36:41]protocol is kg_v1.0 [13:36:41]action value=close_receipt [13:36:41]process_action close_receipt [13:36:41]cmd_close_receipt [13:36:41]MH_GetDate [13:36:41]Write to MH i2c: F0 00 00 CE 45 02 [13:36:41]Write i2c OK [13:36:41]MH_I2C_Read... [13:36:41]Read from MH i2c: F0 [13:36:41]MH_I2C_Read... [13:36:41]Read from MH i2c: F0 09 00 [13:36:41]MH_I2C_Read... [13:36:41]Read from MH i2c: F0 09 00 CE 45 00 6E 93 1F 67 22 05 6E 64 8B [13:36:41]GetLastDocTimeStamp 1730122559 [13:36:41]current date 1730122606 [13:36:41]FM_GetShiftState [13:36:41]SAM_PROTO_GetShiftState [13:36:41]wFMCommunicate request_size=4 [13:36:41]MH_SAM_APDU [13:36:41]CAPDU: 80 13 01 00 [13:36:41]Write to MH i2c: E2 08 00 CF 45 80 13 01 00 00 00 00 00 91 [13:36:41]Write i2c OK [13:36:41]MH_I2C_Read... [13:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:41]Read from MH i2c: E2 [13:36:41]MH_I2C_Read... [13:36:41]Read from MH i2c: E2 0E 00 [13:36:41]MH_I2C_Read... [13:36:41]Read from MH i2c: E2 0E 00 CF 45 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E1 [13:36:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:36:41]wFMCommunicate OK [13:36:41]SAM_PROTO_GetShiftState done [13:36:41]FM_GetShiftState done [13:36:41]opened in 1730075620 [13:36:41]opened+sec_in_day 1730162020 [13:36:41]quantity*price = 130053 [13:36:41]sum+1 = 130055 [13:36:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 139 28.10.2024 13:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192591 ФПД: 51344550565390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133646&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192591&fm=51344550565390&tin=02508201610067®Number=0000000000091776&sum=130000 [13:36:42]StoreToDocumentArchive [13:36:42]shift 543 fd 192591 [13:36:42]save to /storage/0543/doc_00192591 [13:36:42]save last doc name /storage/0543/doc_00192591 to /storage/kkm_last_doc_name [13:36:42]save OK [13:36:42]Clear old archive folders... [13:36:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:42]tlvbuf is B6F19180 [13:36:42]SAM_PROTO_ClearQueue [13:36:42]wFMCommunicate request_size=4 [13:36:42]MH_SAM_APDU [13:36:42]CAPDU: 80 09 00 00 [13:36:42]Write to MH i2c: E2 08 00 DC 45 80 09 00 00 00 00 00 00 93 [13:36:42]Write i2c OK [13:36:42]MH_I2C_Read... [13:36:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:42]Read from MH i2c: E2 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 03 00 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 03 00 DC 45 00 90 00 95 [13:36:42]RAPDU: 90 00 [13:36:42]wFMCommunicate OK [13:36:42]SAM_PROTO_ClearQueue done [13:36:42]KKMCreateOFDPacket [13:36:42]OFDProtocolAddRootSTLVToBuf [13:36:42]FM_MakeSignedData [13:36:42]FM_MakeSignedData [13:36:42]SAM_PROTO_SignData [13:36:42]wFMCommunicate request_size=4 [13:36:42]MH_SAM_APDU [13:36:42]CAPDU: 80 0D 01 02 [13:36:42]Write to MH i2c: E2 08 00 DD 45 80 0D 01 02 00 00 00 00 9B [13:36:42]Write i2c OK [13:36:42]MH_I2C_Read... [13:36:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:42]Read from MH i2c: E2 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 03 00 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 03 00 DD 45 00 90 00 96 [13:36:42]RAPDU: 90 00 [13:36:42]wFMCommunicate OK [13:36:42]wFMCommunicate request_size=255 [13:36:42]MH_SAM_APDU [13:36: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 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 6E 93 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F F0 02 00 35 04 06 00 2E [13:36:42]Write to MH i2c: E2 02 01 DE 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 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 6E 93 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F F0 02 00 35 04 06 00 2E 00 00 09 [13:36:42]Write i2c OK [13:36:42]MH_I2C_Read... [13:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:42]Read from MH i2c: E2 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 03 00 [13:36:42]MH_I2C_Read... [13:36:42]Read from MH i2c: E2 03 00 DE 45 00 90 00 97 [13:36:42]RAPDU: 90 00 [13:36:42]wFMCommunicate OK [13:36:42]wFMCommunicate request_size=10 [13:36:42]MH_SAM_APDU [13:36:42]CAPDU: 80 0D 02 02 05 B2 95 B2 96 0E [13:36:42]Write to MH i2c: E2 0D 00 DF 45 80 0D 02 02 05 00 B2 95 B2 96 0E 00 00 45 [13:36:42]Write i2c OK [13:36:42]MH_I2C_Read... [13:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:43]Read from MH i2c: E2 [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: E2 03 00 [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: E2 03 00 DF 45 00 90 00 98 [13:36:43]RAPDU: 90 00 [13:36:43]wFMCommunicate OK [13:36:43]wFMCommunicate request_size=4 [13:36:43]MH_SAM_APDU [13:36:43]CAPDU: 80 0D 03 02 [13:36:43]Write to MH i2c: E2 08 00 E0 45 80 0D 03 02 00 00 00 00 A0 [13:36:43]Write i2c OK [13:36:43]MH_I2C_Read... [13:36:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:43]Read from MH i2c: E2 [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: E2 0B 00 [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: E2 0B 00 E0 45 00 25 AE FF AC 59 42 76 89 90 00 B9 [13:36:43]RAPDU: 25 AE FF AC 59 42 76 89 90 00 [13:36:43]wFMCommunicate OK [13:36:43]SAM_PROTO_SignData done [13:36:43]FM_MakeSignedData done [13:36:43]CreateOFDProtocolMessage [13:36:43]wFMCommunicate request_size=4 [13:36:43]MH_SAM_APDU [13:36:43]CAPDU: 80 11 00 00 [13:36:43]Write to MH i2c: E2 08 00 E1 45 80 11 00 00 00 00 00 00 A0 [13:36:43]Write i2c OK [13:36:43]MH_I2C_Read... [13:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:43]Read from MH i2c: E2 [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: E2 17 00 [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: E2 17 00 E1 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F3 [13:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:36:43]wFMCommunicate OK [13:36:43]CreateOFDProtocolMessage done [13:36:43]OFDSenderStorePacket 192591 [13:36:43]StoreOFDPacket docnum=192591 [13:36:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD 1C 07 01 3A 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 6E 93 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F F0 02 00 35 04 06 00 2E B2 95 B2 96 0E 25 AE FF AC 59 42 76 89 [13:36:43]CheckFolder [13:36:43]dirname=/storage/ofd_packets [13:36:43]CheckFolder done [13:36:43]ProducePacketName [13:36:43]name=ofd_packets/00192591 [13:36:43]NVStorageSaveData ofd_packets/00192591 [13:36:43]File name is /storage/ofd_packets/00192591 [13:36:43]Write 301 bytes [13:36:43]NVStorageSaveData done [13:36:43]OFDSenderStorePacket done [13:36:43]KKMCreateOFDPacket done [13:36:43]NVStorageSaveData kkm_last_timestamp [13:36:43]File name is /storage/kkm_last_timestamp [13:36:43]Write 4 bytes [13:36:43]NVStorageSaveData done [13:36:43]ExternCall_PrintAddStr [13:36:43]wPrintStart [13:36:43]Write to MH i2c: 01 00 00 E2 45 27 [13:36:43]Write i2c OK [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: 01 [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: 01 07 00 [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: 01 07 00 E2 45 00 00 00 00 00 FF 0F 3C [13:36:43]RasterBufferAndPrint [13:36:43]line Счет N : (1)31911 [13:36:43]line ИНН: 02508201610067 [13:36:43]line Контрольно-Кассовый Чек [13:36:43]line ПРОДАЖА [13:36:43]line ТРК (МРК, ГНК) : 21 [13:36:43]line Товар: 2710124130 [13:36:43]line Аи-92-К-5 [13:36:43]line 19.440 * 66.90 [13:36:43]line = 1300.54 [13:36:43]line НДС 12% НСП 1% [13:36:43]line > о реализуемом товаре [13:36:43]line ОКРУГЛЕНИЕ: -0.54 [13:36:43]line ИТОГО: 1300.00 [13:36:43]line Внесено: 1300.00 [13:36:43]line СДАЧА: 0.00 [13:36:43]line НСП 1% : 11.51 [13:36:43]line НДС 12% : 138.11 [13:36:43]line Наличными: 1300.00 [13:36:43]line Безнал.: 0.00 [13:36:43]line Место: АЗС № 170 "Партнер Нефть" [13:36:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:36:43]line СНО: Общий режим [13:36:43]line Чек 139 28.10.2024 13:36 [13:36:43]line Смена: 543 ФФД: 1.0 [13:36:43]line ЗНМ: 0300000110 [13:36:43]line РНМ: 0000000000091776 [13:36:43]line Версия ККМ: 001 [13:36:43]line ФМ: 0000000000871754 [13:36:43]line ФД: 192591 [13:36:43]line ФПД: 51344550565390 [13:36:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133646&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192591&fm=51344550565390&tin=02508201610067®Number=0000000000091776&sum=130000 [13:36:43]written 0, free lines is 4095 [13:36:43]OFD Sender: Processing packet 192591 [packets to send 75, broken 74] [13:36:43]ProducePacketName [13:36:43]name=ofd_packets/00192591 [13:36:43]OFD Sender: To server: pG, [13:36:43]CommunicateWithHost lk.salyk.kg:30040 [13:36:43]ConnectInit lk.salyk.kg [13:36:43]Connected sock=10 [13:36:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD 1C 07 01 3A 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 6E 93 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F F0 02 00 35 04 06 00 2E B2 95 B2 96 0E 25 AE FF AC 59 42 76 89 [13:36:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BB 7A 47 00 A4 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F F0 02 00 F4 03 04 00 32 38 1F 67 B6 04 01 00 00 6C 61 00 F0 57 D0 B5 D5 [13:36:43]CommunicateWithHost err = 0 [13:36:43]CheckOFDResponse [13:36:43]1017 (14) - 77093643461234 [13:36:43]1041 (16) - 0000000000871754 [13:36:43]1040 (4) - 192591 [13:36:43]1012 (4) - 28.10.2024 07:07 [13:36:43]1206 (1) - 0 [13:36:43]OFD Sender: Remove packet 192591 [13:36:43]ProducePacketName [13:36:43]name=ofd_packets/00192591 [13:36:43]NVStorageDeleteData [13:36:43]Write to MH i2c: 01 00 00 0D 46 53 [13:36:43]Write i2c OK [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: 01 [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: 01 07 00 [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: 01 07 00 0D 46 00 00 00 00 00 C4 0C 2A [13:36:43]RasterBufferAndPrint [13:36:43]line [13:36:43]line [13:36:43]line [13:36:43]line [13:36:43]line [13:36:43]written 0, free lines is 3274 [13:36:43]MH_Cut [13:36:43]Write to MH i2c: D1 01 00 14 46 01 2C [13:36:43]Write i2c OK [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: D1 [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: D1 01 00 [13:36:43]MH_I2C_Read... [13:36:43]Read from MH i2c: D1 01 00 14 46 00 2B [13:36:43]Write to MH i2c: 01 00 00 15 46 5B [13:36:43]Write i2c OK [13:36:43]MH_I2C_Read... [13:36:44]OFD Sender: No OFD packet to send [13:36:44]*** Cut start [13:36:44]*** Partial cut [13:36:44]*** CUTSNS_PIN = 1 [13:36:44]*** CUTSNS_PIN = 0 [13:36:44]*** Brake cut motor [13:36:45]Read from MH i2c: 01 [13:36:45]MH_I2C_Read... [13:36:45]*** Stop cut motor [13:36:45]*** Cut end [13:36:45]Read from MH i2c: 01 07 00 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: 01 07 00 15 46 00 00 00 00 00 FF 0F 70 [13:36:45]process_action close_receipt done [13:36:45]requested_data is exist [13:36:45]produce_requested_data [13:36:45]requested_item fm.sn is exist - process it [13:36:45]wFMCommunicate request_size=4 [13:36:45]MH_SAM_APDU [13:36:45]CAPDU: 80 11 00 00 [13:36:45]Write to MH i2c: E2 08 00 16 46 80 11 00 00 00 00 00 00 D6 [13:36:45]Write i2c OK [13:36:45]MH_I2C_Read... [13:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:45]Read from MH i2c: E2 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: E2 17 00 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: E2 17 00 16 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 29 [13:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:36:45]wFMCommunicate OK [13:36:45]requested_item fd.num is exist - process it [13:36:45]SAM_PROTO_GetFieldsCounters [13:36:45]wFMCommunicate request_size=4 [13:36:45]MH_SAM_APDU [13:36:45]CAPDU: 80 13 00 00 [13:36:45]Write to MH i2c: E2 08 00 17 46 80 13 00 00 00 00 00 00 D9 [13:36:45]Write i2c OK [13:36:45]MH_I2C_Read... [13:36:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:45]Read from MH i2c: E2 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: E2 62 00 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: E2 62 00 17 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [13:36:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:36:45]wFMCommunicate OK [13:36:45]SAM_PROTO_GetFieldsCounters done [13:36:45]requested_item shift.num is exist - process it [13:36:45]requested_item shift.opened is exist - process it [13:36:45]req_shift_opened [13:36:45]FM_GetShiftState [13:36:45]SAM_PROTO_GetShiftState [13:36:45]wFMCommunicate request_size=4 [13:36:45]MH_SAM_APDU [13:36:45]CAPDU: 80 13 01 00 [13:36:45]Write to MH i2c: E2 08 00 18 46 80 13 01 00 00 00 00 00 DB [13:36:45]Write i2c OK [13:36:45]MH_I2C_Read... [13:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:45]Read from MH i2c: E2 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: E2 0E 00 [13:36:45]MH_I2C_Read... [13:36:45]Read from MH i2c: E2 0E 00 18 46 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2B [13:36:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:36:45]wFMCommunicate OK [13:36:45]SAM_PROTO_GetShiftState done [13:36:45]FM_GetShiftState done [13:36:45]req_shift_opened done [13:36:45]requested_item shift.open_date is exist - process it [13:36:45]req_shift_open_date [13:36:45]req_shift_open_date done [13:36:45]produce_requested_data done [13:36:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192591,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:36:45]process_action_free close_receipt [13:36:45]json_value_free [13:36:45]json_value_free done [13:36:45]process_json_proto returns [13:36:45]Send response to host [13:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192591,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:36:45]free response buf [13:36:45]execute_script done [13:36:45]execute_script returns [13:36:45]free content buf [13:36:45]Sock 9.Close socket [13:36:45]Sock 9.Thread stoped [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37:09]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:26]accept exits with 7 [13:45:26]New connection [13:45:26]New thread 3066563940 created [13:45:26]Thread 3066707300 joined [13:45:26]Waiting for new connection... [13:45:26] Sock 7.Parse request [13:45:26]Sock 7.Check first char [13:45:26]Sock 7.First char is OK [13:45:26]request: POST /json_proto HTTP/1.0 [13:45:26]Method: POST [13:45:26]URL: /json_proto [13:45:26]Method is POST - this is cgi request [13:45:26]url: /json_proto [13:45:26]query_string will be loaded in cgi processing [13:45:26]execute_cgi json_proto POST (null) [13:45:26]execute_cgi path=json_proto method=POST [13:45:26]POST find Content-Length [13:45:26]Host: 172.17.63.131:8080 [13:45:26]Content-Length: 681 [13:45:26]Content-Type: application/json [13:45:26] [13:45:26]POST finish read [13:45:26]Found Content-Length = 681 [13:45:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:26]execute_script... [13:45: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)31912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:26]POST & json_proto [13:45:26]process_json_proto [13:45:26]json parsed OK: [13:45:26]protocol is kg_v1.0 [13:45:26]action value=close_receipt [13:45:26]process_action close_receipt [13:45:26]cmd_close_receipt [13:45:26]MH_GetDate [13:45:26]Write to MH i2c: F0 00 00 19 46 4E [13:45:26]Write i2c OK [13:45:26]MH_I2C_Read... [13:45:26]Read from MH i2c: F0 [13:45:26]MH_I2C_Read... [13:45:26]Read from MH i2c: F0 09 00 [13:45:26]MH_I2C_Read... [13:45:26]Read from MH i2c: F0 09 00 19 46 00 7C 95 1F 67 22 05 6E 64 E7 [13:45:26]GetLastDocTimeStamp 1730122606 [13:45:26]current date 1730123132 [13:45:26]FM_GetShiftState [13:45:26]SAM_PROTO_GetShiftState [13:45:26]wFMCommunicate request_size=4 [13:45:26]MH_SAM_APDU [13:45:26]CAPDU: 80 13 01 00 [13:45:26]Write to MH i2c: E2 08 00 1A 46 80 13 01 00 00 00 00 00 DD [13:45:26]Write i2c OK [13:45:26]MH_I2C_Read... [13:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:26]Read from MH i2c: E2 [13:45:26]MH_I2C_Read... [13:45:26]Read from MH i2c: E2 0E 00 [13:45:26]MH_I2C_Read... [13:45:26]Read from MH i2c: E2 0E 00 1A 46 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2D [13:45:26]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:45:26]wFMCommunicate OK [13:45:26]SAM_PROTO_GetShiftState done [13:45:26]FM_GetShiftState done [13:45:26]opened in 1730075620 [13:45:26]opened+sec_in_day 1730162020 [13:45:26]quantity*price = 100015 [13:45:26]sum+1 = 100017 [13:45:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 140 28.10.2024 13:45 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192592 ФПД: 38652937474331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134532&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192592&fm=38652937474331&tin=02508201610067®Number=0000000000091776&sum=100000 [13:45:27]StoreToDocumentArchive [13:45:27]shift 543 fd 192592 [13:45:27]save to /storage/0543/doc_00192592 [13:45:27]save last doc name /storage/0543/doc_00192592 to /storage/kkm_last_doc_name [13:45:27]save OK [13:45:27]Clear old archive folders... [13:45:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:27]tlvbuf is 019B8BE0 [13:45:27]SAM_PROTO_ClearQueue [13:45:27]wFMCommunicate request_size=4 [13:45:27]MH_SAM_APDU [13:45:27]CAPDU: 80 09 00 00 [13:45:27]Write to MH i2c: E2 08 00 27 46 80 09 00 00 00 00 00 00 DF [13:45:27]Write i2c OK [13:45:27]MH_I2C_Read... [13:45:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:27]Read from MH i2c: E2 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 03 00 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 03 00 27 46 00 90 00 E1 [13:45:27]RAPDU: 90 00 [13:45:27]wFMCommunicate OK [13:45:27]SAM_PROTO_ClearQueue done [13:45:27]KKMCreateOFDPacket [13:45:27]OFDProtocolAddRootSTLVToBuf [13:45:27]FM_MakeSignedData [13:45:27]FM_MakeSignedData [13:45:27]SAM_PROTO_SignData [13:45:27]wFMCommunicate request_size=4 [13:45:27]MH_SAM_APDU [13:45:27]CAPDU: 80 0D 01 02 [13:45:27]Write to MH i2c: E2 08 00 28 46 80 0D 01 02 00 00 00 00 E7 [13:45:27]Write i2c OK [13:45:27]MH_I2C_Read... [13:45:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:27]Read from MH i2c: E2 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 03 00 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 03 00 28 46 00 90 00 E2 [13:45:27]RAPDU: 90 00 [13:45:27]wFMCommunicate OK [13:45:27]wFMCommunicate request_size=255 [13:45:27]MH_SAM_APDU [13:45:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 7C 95 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 F0 02 00 35 04 06 00 23 [13:45:27]Write to MH i2c: E2 02 01 29 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 7C 95 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 F0 02 00 35 04 06 00 23 00 00 1E [13:45:27]Write i2c OK [13:45:27]MH_I2C_Read... [13:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:28]Read from MH i2c: E2 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 29 46 00 90 00 E3 [13:45:28]RAPDU: 90 00 [13:45:28]wFMCommunicate OK [13:45:28]wFMCommunicate request_size=10 [13:45:28]MH_SAM_APDU [13:45:28]CAPDU: 80 0D 02 02 05 27 96 9B 91 1B [13:45:28]Write to MH i2c: E2 0D 00 2A 46 80 0D 02 02 05 00 27 96 9B 91 1B 00 00 F8 [13:45:28]Write i2c OK [13:45:28]MH_I2C_Read... [13:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:28]Read from MH i2c: E2 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 03 00 2A 46 00 90 00 E4 [13:45:28]RAPDU: 90 00 [13:45:28]wFMCommunicate OK [13:45:28]wFMCommunicate request_size=4 [13:45:28]MH_SAM_APDU [13:45:28]CAPDU: 80 0D 03 02 [13:45:28]Write to MH i2c: E2 08 00 2B 46 80 0D 03 02 00 00 00 00 EC [13:45:28]Write i2c OK [13:45:28]MH_I2C_Read... [13:45:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:28]Read from MH i2c: E2 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 0B 00 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 0B 00 2B 46 00 A7 0A 2A A4 75 0A 5B 66 90 00 AC [13:45:28]RAPDU: A7 0A 2A A4 75 0A 5B 66 90 00 [13:45:28]wFMCommunicate OK [13:45:28]SAM_PROTO_SignData done [13:45:28]FM_MakeSignedData done [13:45:28]CreateOFDProtocolMessage [13:45:28]wFMCommunicate request_size=4 [13:45:28]MH_SAM_APDU [13:45:28]CAPDU: 80 11 00 00 [13:45:28]Write to MH i2c: E2 08 00 2C 46 80 11 00 00 00 00 00 00 EC [13:45:28]Write i2c OK [13:45:28]MH_I2C_Read... [13:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:28]Read from MH i2c: E2 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 17 00 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: E2 17 00 2C 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3F [13:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:45:28]wFMCommunicate OK [13:45:28]CreateOFDProtocolMessage done [13:45:28]OFDSenderStorePacket 192592 [13:45:28]StoreOFDPacket docnum=192592 [13:45:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 0C 07 01 94 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 7C 95 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 F0 02 00 35 04 06 00 23 27 96 9B 91 1B A7 0A 2A A4 75 0A 5B 66 [13:45:28]CheckFolder [13:45:28]dirname=/storage/ofd_packets [13:45:28]CheckFolder done [13:45:28]ProducePacketName [13:45:28]name=ofd_packets/00192592 [13:45:28]NVStorageSaveData ofd_packets/00192592 [13:45:28]File name is /storage/ofd_packets/00192592 [13:45:28]Write 301 bytes [13:45:28]NVStorageSaveData done [13:45:28]OFDSenderStorePacket done [13:45:28]KKMCreateOFDPacket done [13:45:28]NVStorageSaveData kkm_last_timestamp [13:45:28]File name is /storage/kkm_last_timestamp [13:45:28]Write 4 bytes [13:45:28]NVStorageSaveData done [13:45:28]ExternCall_PrintAddStr [13:45:28]wPrintStart [13:45:28]Write to MH i2c: 01 00 00 2D 46 73 [13:45:28]Write i2c OK [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: 01 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: 01 07 00 [13:45:28]MH_I2C_Read... [13:45:28]Read from MH i2c: 01 07 00 2D 46 00 00 00 00 00 FF 0F 88 [13:45:28]RasterBufferAndPrint [13:45:28]line Счет N : (1)31912 [13:45:28]line ИНН: 02508201610067 [13:45:28]line Контрольно-Кассовый Чек [13:45:28]line ПРОДАЖА [13:45:28]line ТРК (МРК, ГНК) : 12 [13:45:28]line Товар: 2710124130 [13:45:28]line Аи-92-К-5 [13:45:28]line 14.950 * 66.90 [13:45:28]line = 1000.16 [13:45:28]line НДС 12% НСП 1% [13:45:28]line > о реализуемом товаре [13:45:28]line ОКРУГЛЕНИЕ: -0.16 [13:45:28]line ИТОГО: 1000.00 [13:45:28]line Внесено: 1000.00 [13:45:28]line СДАЧА: 0.00 [13:45:28]line НСП 1% : 8.85 [13:45:28]line НДС 12% : 106.21 [13:45:28]line Наличными: 1000.00 [13:45:28]line Безнал.: 0.00 [13:45:28]line Место: АЗС № 170 "Партнер Нефть" [13:45:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:45:28]line СНО: Общий режим [13:45:28]line Чек 140 28.10.2024 13:45 [13:45:28]line Смена: 543 ФФД: 1.0 [13:45:28]line ЗНМ: 0300000110 [13:45:28]line РНМ: 0000000000091776 [13:45:28]line Версия ККМ: 001 [13:45:28]line ФМ: 0000000000871754 [13:45:28]line ФД: 192592 [13:45:28]line ФПД: 38652937474331 [13:45:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134532&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192592&fm=38652937474331&tin=02508201610067®Number=0000000000091776&sum=100000 [13:45:28]OFD Sender: Processing packet 192592 [packets to send 75, broken 74] [13:45:28]ProducePacketName [13:45:28]name=ofd_packets/00192592 [13:45:28]OFD Sender: To server: pG, [13:45:28]CommunicateWithHost lk.salyk.kg:30040 [13:45:28]ConnectInit lk.salyk.kg [13:45:28]written 0, free lines is 4095 [13:45:28]Connected sock=10 [13:45:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 0C 07 01 94 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 7C 95 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 F0 02 00 35 04 06 00 23 27 96 9B 91 1B A7 0A 2A A4 75 0A 5B 66 [13:45:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C2 CF 47 00 85 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 F0 02 00 F4 03 04 00 40 3A 1F 67 B6 04 01 00 00 C7 D8 70 33 DE F2 D2 8C [13:45:28]CommunicateWithHost err = 0 [13:45:28]CheckOFDResponse [13:45:28]1017 (14) - 77093643461234 [13:45:28]1041 (16) - 0000000000871754 [13:45:28]1040 (4) - 192592 [13:45:28]1012 (4) - 28.10.2024 07:16 [13:45:28]1206 (1) - 0 [13:45:28]OFD Sender: Remove packet 192592 [13:45:28]ProducePacketName [13:45:28]name=ofd_packets/00192592 [13:45:28]NVStorageDeleteData [13:45:29]Write to MH i2c: 01 00 00 58 46 9E [13:45:29]Write i2c OK [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: 01 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: 01 07 00 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: 01 07 00 58 46 00 00 00 00 00 BA 0C 6B [13:45:29]RasterBufferAndPrint [13:45:29]line [13:45:29]line [13:45:29]line [13:45:29]line [13:45:29]line [13:45:29]written 0, free lines is 3264 [13:45:29]MH_Cut [13:45:29]Write to MH i2c: D1 01 00 5F 46 01 77 [13:45:29]Write i2c OK [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: D1 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: D1 01 00 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: D1 01 00 5F 46 00 76 [13:45:29]Write to MH i2c: 01 00 00 60 46 A6 [13:45:29]Write i2c OK [13:45:29]MH_I2C_Read... [13:45:29]OFD Sender: No OFD packet to send [13:45:29]*** Cut start [13:45:29]*** Partial cut [13:45:29]*** CUTSNS_PIN = 1 [13:45:29]*** CUTSNS_PIN = 0 [13:45:30]*** Brake cut motor [13:45:30]Read from MH i2c: 01 [13:45:30]MH_I2C_Read... [13:45:30]*** Stop cut motor [13:45:30]*** Cut end [13:45:30]Read from MH i2c: 01 07 00 [13:45:30]MH_I2C_Read... [13:45:30]Read from MH i2c: 01 07 00 60 46 00 00 00 00 00 FF 0F BB [13:45:30]process_action close_receipt done [13:45:30]requested_data is exist [13:45:30]produce_requested_data [13:45:30]requested_item fm.sn is exist - process it [13:45:30]wFMCommunicate request_size=4 [13:45:30]MH_SAM_APDU [13:45:30]CAPDU: 80 11 00 00 [13:45:30]Write to MH i2c: E2 08 00 61 46 80 11 00 00 00 00 00 00 21 [13:45:30]Write i2c OK [13:45:30]MH_I2C_Read... [13:45:30]Read from MH i2c: E2 [13:45:30]MH_I2C_Read... [13:45:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:30]Read from MH i2c: E2 17 00 [13:45:30]MH_I2C_Read... [13:45:30]Read from MH i2c: E2 17 00 61 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 74 [13:45:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:45:30]wFMCommunicate OK [13:45:30]requested_item fd.num is exist - process it [13:45:30]SAM_PROTO_GetFieldsCounters [13:45:30]wFMCommunicate request_size=4 [13:45:30]MH_SAM_APDU [13:45:30]CAPDU: 80 13 00 00 [13:45:30]Write to MH i2c: E2 08 00 62 46 80 13 00 00 00 00 00 00 24 [13:45:30]Write i2c OK [13:45:30]MH_I2C_Read... [13:45:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:30]Read from MH i2c: E2 [13:45:30]MH_I2C_Read... [13:45:30]Read from MH i2c: E2 62 00 [13:45:30]MH_I2C_Read... [13:45:30]Read from MH i2c: E2 62 00 62 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 50 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [13:45:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 50 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:30]wFMCommunicate OK [13:45:30]SAM_PROTO_GetFieldsCounters done [13:45:30]requested_item shift.num is exist - process it [13:45:30]requested_item shift.opened is exist - process it [13:45:30]req_shift_opened [13:45:30]FM_GetShiftState [13:45:30]SAM_PROTO_GetShiftState [13:45:30]wFMCommunicate request_size=4 [13:45:30]MH_SAM_APDU [13:45:30]CAPDU: 80 13 01 00 [13:45:30]Write to MH i2c: E2 08 00 63 46 80 13 01 00 00 00 00 00 26 [13:45:30]Write i2c OK [13:45:30]MH_I2C_Read... [13:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:30]Read from MH i2c: E2 [13:45:30]MH_I2C_Read... [13:45:30]Read from MH i2c: E2 0E 00 [13:45:30]MH_I2C_Read... [13:45:30]Read from MH i2c: E2 0E 00 63 46 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 76 [13:45:30]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:45:30]wFMCommunicate OK [13:45:30]SAM_PROTO_GetShiftState done [13:45:30]FM_GetShiftState done [13:45:30]req_shift_opened done [13:45:30]requested_item shift.open_date is exist - process it [13:45:30]req_shift_open_date [13:45:30]req_shift_open_date done [13:45:30]produce_requested_data done [13:45:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192592,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:45:30]process_action_free close_receipt [13:45:30]json_value_free [13:45:30]json_value_free done [13:45:30]process_json_proto returns [13:45:30]Send response to host [13:45:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192592,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:45:30]free response buf [13:45:30]execute_script done [13:45:30]execute_script returns [13:45:30]free content buf [13:45:30]Sock 7.Close socket [13:45:30]Sock 7.Thread stoped [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:03]accept exits with 9 [13:49:03]New connection [13:49:03]New thread 3066707300 created [13:49:03]Thread 3066563940 joined [13:49:03]Waiting for new connection... [13:49:03] Sock 9.Parse request [13:49:03]Sock 9.Check first char [13:49:03]Sock 9.First char is OK [13:49:03]request: POST /json_proto HTTP/1.0 [13:49:03]Method: POST [13:49:03]URL: /json_proto [13:49:03]Method is POST - this is cgi request [13:49:03]url: /json_proto [13:49:03]query_string will be loaded in cgi processing [13:49:03]execute_cgi json_proto POST (null) [13:49:03]execute_cgi path=json_proto method=POST [13:49:03]POST find Content-Length [13:49:03]Host: 172.17.63.131:8080 [13:49:03]Content-Length: 676 [13:49:03]Content-Type: application/json [13:49:03] [13:49:03]POST finish read [13:49:03]Found Content-Length = 676 [13:49:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:03]execute_script... [13:49:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:03]POST & json_proto [13:49:03]process_json_proto [13:49:03]json parsed OK: [13:49:03]protocol is kg_v1.0 [13:49:03]action value=close_receipt [13:49:03]process_action close_receipt [13:49:03]cmd_close_receipt [13:49:03]MH_GetDate [13:49:03]Write to MH i2c: F0 00 00 64 46 99 [13:49:03]Write i2c OK [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: F0 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: F0 09 00 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: F0 09 00 64 46 00 54 96 1F 67 22 05 6E 64 0B [13:49:03]GetLastDocTimeStamp 1730123132 [13:49:03]current date 1730123348 [13:49:03]FM_GetShiftState [13:49:03]SAM_PROTO_GetShiftState [13:49:03]wFMCommunicate request_size=4 [13:49:03]MH_SAM_APDU [13:49:03]CAPDU: 80 13 01 00 [13:49:03]Write to MH i2c: E2 08 00 65 46 80 13 01 00 00 00 00 00 28 [13:49:03]Write i2c OK [13:49:03]MH_I2C_Read... [13:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:03]Read from MH i2c: E2 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 0E 00 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 0E 00 65 46 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 78 [13:49:03]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:49:03]wFMCommunicate OK [13:49:03]SAM_PROTO_GetShiftState done [13:49:03]FM_GetShiftState done [13:49:03]opened in 1730075620 [13:49:03]opened+sec_in_day 1730162020 [13:49:03]quantity*price = 40006 [13:49:03]sum+1 = 40007 [13:49:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 141 28.10.2024 13:49 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192593 ФПД: 194098777116732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134908&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192593&fm=194098777116732&tin=02508201610067®Number=0000000000091776&sum=40000 [13:49:04]StoreToDocumentArchive [13:49:04]shift 543 fd 192593 [13:49:04]save to /storage/0543/doc_00192593 [13:49:04]save last doc name /storage/0543/doc_00192593 to /storage/kkm_last_doc_name [13:49:04]save OK [13:49:04]Clear old archive folders... [13:49:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:04]tlvbuf is 01A9A7F0 [13:49:04]SAM_PROTO_ClearQueue [13:49:04]wFMCommunicate request_size=4 [13:49:04]MH_SAM_APDU [13:49:04]CAPDU: 80 09 00 00 [13:49:04]Write to MH i2c: E2 08 00 72 46 80 09 00 00 00 00 00 00 2A [13:49:04]Write i2c OK [13:49:04]MH_I2C_Read... [13:49:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:04]Read from MH i2c: E2 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 03 00 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 03 00 72 46 00 90 00 2C [13:49:04]RAPDU: 90 00 [13:49:04]wFMCommunicate OK [13:49:04]SAM_PROTO_ClearQueue done [13:49:04]KKMCreateOFDPacket [13:49:04]OFDProtocolAddRootSTLVToBuf [13:49:04]FM_MakeSignedData [13:49:04]FM_MakeSignedData [13:49:04]SAM_PROTO_SignData [13:49:04]wFMCommunicate request_size=4 [13:49:04]MH_SAM_APDU [13:49:04]CAPDU: 80 0D 01 02 [13:49:04]Write to MH i2c: E2 08 00 73 46 80 0D 01 02 00 00 00 00 32 [13:49:04]Write i2c OK [13:49:04]MH_I2C_Read... [13:49:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:04]Read from MH i2c: E2 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 03 00 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 03 00 73 46 00 90 00 2D [13:49:04]RAPDU: 90 00 [13:49:04]wFMCommunicate OK [13:49:04]wFMCommunicate request_size=255 [13:49:04]MH_SAM_APDU [13:49:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 54 96 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 F0 02 00 35 04 06 00 B0 [13:49:04]Write to MH i2c: E2 02 01 74 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 54 96 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 F0 02 00 35 04 06 00 B0 00 00 A6 [13:49:04]Write i2c OK [13:49:04]MH_I2C_Read... [13:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:04]Read from MH i2c: E2 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 03 00 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 03 00 74 46 00 90 00 2E [13:49:04]RAPDU: 90 00 [13:49:04]wFMCommunicate OK [13:49:04]wFMCommunicate request_size=10 [13:49:04]MH_SAM_APDU [13:49:04]CAPDU: 80 0D 02 02 05 88 24 A9 50 3C [13:49:04]Write to MH i2c: E2 0D 00 75 46 80 0D 02 02 05 00 88 24 A9 50 3C 00 00 20 [13:49:04]Write i2c OK [13:49:04]MH_I2C_Read... [13:49:04]OFD Sender: No OFD packet to send [13:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:04]Read from MH i2c: E2 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 03 00 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 03 00 75 46 00 90 00 2F [13:49:04]RAPDU: 90 00 [13:49:04]wFMCommunicate OK [13:49:04]wFMCommunicate request_size=4 [13:49:04]MH_SAM_APDU [13:49:04]CAPDU: 80 0D 03 02 [13:49:04]Write to MH i2c: E2 08 00 76 46 80 0D 03 02 00 00 00 00 37 [13:49:04]Write i2c OK [13:49:04]MH_I2C_Read... [13:49:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:04]Read from MH i2c: E2 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 0B 00 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 0B 00 76 46 00 51 98 5D 9D A6 BC 2B 5B 90 00 03 [13:49:04]RAPDU: 51 98 5D 9D A6 BC 2B 5B 90 00 [13:49:04]wFMCommunicate OK [13:49:04]SAM_PROTO_SignData done [13:49:04]FM_MakeSignedData done [13:49:04]CreateOFDProtocolMessage [13:49:04]wFMCommunicate request_size=4 [13:49:04]MH_SAM_APDU [13:49:04]CAPDU: 80 11 00 00 [13:49:04]Write to MH i2c: E2 08 00 77 46 80 11 00 00 00 00 00 00 37 [13:49:04]Write i2c OK [13:49:04]MH_I2C_Read... [13:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:04]Read from MH i2c: E2 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 17 00 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 17 00 77 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8A [13:49:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:49:04]wFMCommunicate OK [13:49:04]CreateOFDProtocolMessage done [13:49:04]OFDSenderStorePacket 192593 [13:49:04]StoreOFDPacket docnum=192593 [13:49:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C7 14 07 01 56 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 54 96 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 F0 02 00 35 04 06 00 B0 88 24 A9 50 3C 51 98 5D 9D A6 BC 2B 5B [13:49:04]CheckFolder [13:49:04]dirname=/storage/ofd_packets [13:49:04]CheckFolder done [13:49:04]ProducePacketName [13:49:04]name=ofd_packets/00192593 [13:49:04]NVStorageSaveData ofd_packets/00192593 [13:49:04]File name is /storage/ofd_packets/00192593 [13:49:04]Write 301 bytes [13:49:04]NVStorageSaveData done [13:49:04]OFDSenderStorePacket done [13:49:04]KKMCreateOFDPacket done [13:49:04]NVStorageSaveData kkm_last_timestamp [13:49:04]File name is /storage/kkm_last_timestamp [13:49:04]Write 4 bytes [13:49:04]NVStorageSaveData done [13:49:04]ExternCall_PrintAddStr [13:49:04]wPrintStart [13:49:04]Write to MH i2c: 01 00 00 78 46 BE [13:49:04]Write i2c OK [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: 01 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: 01 07 00 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: 01 07 00 78 46 00 00 00 00 00 FF 0F D3 [13:49:04]RasterBufferAndPrint [13:49:04]line Счет N : (1)31913 [13:49:04]line ИНН: 02508201610067 [13:49:04]line Контрольно-Кассовый Чек [13:49:04]line ПРОДАЖА [13:49:04]line ТРК (МРК, ГНК) : 12 [13:49:04]line Товар: 2710124130 [13:49:04]line Аи-92-К-5 [13:49:04]line 5.980 * 66.90 [13:49:04]line = 400.06 [13:49:04]line НДС 12% НСП 1% [13:49:04]line > о реализуемом товаре [13:49:04]line ОКРУГЛЕНИЕ: -0.06 [13:49:04]line ИТОГО: 400.00 [13:49:04]line Внесено: 400.00 [13:49:04]line СДАЧА: 0.00 [13:49:04]line НСП 1% : 3.54 [13:49:04]line НДС 12% : 42.48 [13:49:04]line Наличными: 400.00 [13:49:04]line Безнал.: 0.00 [13:49:04]line Место: АЗС № 170 "Партнер Нефть" [13:49:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:49:04]line СНО: Общий режим [13:49:04]line Чек 141 28.10.2024 13:49 [13:49:04]line Смена: 543 ФФД: 1.0 [13:49:04]line ЗНМ: 0300000110 [13:49:04]line РНМ: 0000000000091776 [13:49:04]line Версия ККМ: 001 [13:49:04]line ФМ: 0000000000871754 [13:49:04]line ФД: 192593 [13:49:04]line ФПД: 194098777116732 [13:49:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134908&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192593&fm=194098777116732&tin=02508201610067®Number=0000000000091776&sum=40000 [13:49:05]OFD Sender: Processing packet 192593 [packets to send 75, broken 74] [13:49:05]ProducePacketName [13:49:05]name=ofd_packets/00192593 [13:49:05]OFD Sender: To server: pG, [13:49:05]CommunicateWithHost lk.salyk.kg:30040 [13:49:05]ConnectInit lk.salyk.kg [13:49:05]written 0, free lines is 4095 [13:49:05]Connected sock=10 [13:49:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C7 14 07 01 56 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 54 96 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 F0 02 00 35 04 06 00 B0 88 24 A9 50 3C 51 98 5D 9D A6 BC 2B 5B [13:49:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4A FF 47 00 98 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 F0 02 00 F4 03 04 00 18 3B 1F 67 B6 04 01 00 00 EE 29 C0 AE F8 CE 03 F2 [13:49:05]CommunicateWithHost err = 0 [13:49:05]CheckOFDResponse [13:49:05]1017 (14) - 77093643461234 [13:49:05]1041 (16) - 0000000000871754 [13:49:05]1040 (4) - 192593 [13:49:05]1012 (4) - 28.10.2024 07:19 [13:49:05]1206 (1) - 0 [13:49:05]OFD Sender: Remove packet 192593 [13:49:05]ProducePacketName [13:49:05]name=ofd_packets/00192593 [13:49:05]NVStorageDeleteData [13:49:05]Write to MH i2c: 01 00 00 A3 46 E9 [13:49:05]Write i2c OK [13:49:05]MH_I2C_Read... [13:49:05]Read from MH i2c: 01 [13:49:05]MH_I2C_Read... [13:49:05]Read from MH i2c: 01 07 00 [13:49:05]MH_I2C_Read... [13:49:05]Read from MH i2c: 01 07 00 A3 46 00 00 00 00 00 BA 0C B6 [13:49:05]RasterBufferAndPrint [13:49:05]line [13:49:05]line [13:49:05]line [13:49:05]line [13:49:05]line [13:49:05]written 0, free lines is 3266 [13:49:05]MH_Cut [13:49:05]Write to MH i2c: D1 01 00 AA 46 01 C2 [13:49:05]Write i2c OK [13:49:05]MH_I2C_Read... [13:49:05]Read from MH i2c: D1 [13:49:05]MH_I2C_Read... [13:49:05]Read from MH i2c: D1 01 00 [13:49:05]MH_I2C_Read... [13:49:05]Read from MH i2c: D1 01 00 AA 46 00 C1 [13:49:05]Write to MH i2c: 01 00 00 AB 46 F1 [13:49:05]Write i2c OK [13:49:05]MH_I2C_Read... [13:49:05]OFD Sender: No OFD packet to send [13:49:06]*** Cut start [13:49:06]*** Partial cut [13:49:06]*** CUTSNS_PIN = 1 [13:49:06]*** CUTSNS_PIN = 0 [13:49:06]*** Brake cut motor [13:49:07]Read from MH i2c: 01 [13:49:07]MH_I2C_Read... [13:49:07]*** Stop cut motor [13:49:07]*** Cut end [13:49:07]Read from MH i2c: 01 07 00 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: 01 07 00 AB 46 00 00 00 00 00 FF 0F 06 [13:49:07]process_action close_receipt done [13:49:07]requested_data is exist [13:49:07]produce_requested_data [13:49:07]requested_item fm.sn is exist - process it [13:49:07]wFMCommunicate request_size=4 [13:49:07]MH_SAM_APDU [13:49:07]CAPDU: 80 11 00 00 [13:49:07]Write to MH i2c: E2 08 00 AC 46 80 11 00 00 00 00 00 00 6C [13:49:07]Write i2c OK [13:49:07]MH_I2C_Read... [13:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:07]Read from MH i2c: E2 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: E2 17 00 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: E2 17 00 AC 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BF [13:49:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:49:07]wFMCommunicate OK [13:49:07]requested_item fd.num is exist - process it [13:49:07]SAM_PROTO_GetFieldsCounters [13:49:07]wFMCommunicate request_size=4 [13:49:07]MH_SAM_APDU [13:49:07]CAPDU: 80 13 00 00 [13:49:07]Write to MH i2c: E2 08 00 AD 46 80 13 00 00 00 00 00 00 6F [13:49:07]Write i2c OK [13:49:07]MH_I2C_Read... [13:49:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:07]Read from MH i2c: E2 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: E2 62 00 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: E2 62 00 AD 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 51 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [13:49:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 51 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:07]wFMCommunicate OK [13:49:07]SAM_PROTO_GetFieldsCounters done [13:49:07]requested_item shift.num is exist - process it [13:49:07]requested_item shift.opened is exist - process it [13:49:07]req_shift_opened [13:49:07]FM_GetShiftState [13:49:07]SAM_PROTO_GetShiftState [13:49:07]wFMCommunicate request_size=4 [13:49:07]MH_SAM_APDU [13:49:07]CAPDU: 80 13 01 00 [13:49:07]Write to MH i2c: E2 08 00 AE 46 80 13 01 00 00 00 00 00 71 [13:49:07]Write i2c OK [13:49:07]MH_I2C_Read... [13:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:07]Read from MH i2c: E2 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: E2 0E 00 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: E2 0E 00 AE 46 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C1 [13:49:07]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:49:07]wFMCommunicate OK [13:49:07]SAM_PROTO_GetShiftState done [13:49:07]FM_GetShiftState done [13:49:07]req_shift_opened done [13:49:07]requested_item shift.open_date is exist - process it [13:49:07]req_shift_open_date [13:49:07]req_shift_open_date done [13:49:07]produce_requested_data done [13:49:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192593,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:49:07]process_action_free close_receipt [13:49:07]json_value_free [13:49:07]json_value_free done [13:49:07]process_json_proto returns [13:49:07]Send response to host [13:49:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192593,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:49:07]free response buf [13:49:07]execute_script done [13:49:07]execute_script returns [13:49:07]free content buf [13:49:07]Sock 9.Close socket [13:49:07]Sock 9.Thread stoped [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:49:57]accept exits with 7 [13:49:57]New connection [13:49:57]New thread 3066563940 created [13:49:57]Thread 3066707300 joined [13:49:57]Waiting for new connection... [13:49:57] Sock 7.Parse request [13:49:57]Sock 7.Check first char [13:49:57]Sock 7.First char is OK [13:49:57]request: POST /json_proto HTTP/1.0 [13:49:57]Method: POST [13:49:57]URL: /json_proto [13:49:57]Method is POST - this is cgi request [13:49:57]url: /json_proto [13:49:57]query_string will be loaded in cgi processing [13:49:57]execute_cgi json_proto POST (null) [13:49:57]execute_cgi path=json_proto method=POST [13:49:57]POST find Content-Length [13:49:57]Host: 172.17.63.131:8080 [13:49:57]Content-Length: 676 [13:49:57]Content-Type: application/json [13:49:57] [13:49:57]POST finish read [13:49:57]Found Content-Length = 676 [13:49:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.870, "sum" : 660.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:57]execute_script... [13:49:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.870, "sum" : 660.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:57]POST & json_proto [13:49:57]process_json_proto [13:49:57]json parsed OK: [13:49:57]protocol is kg_v1.0 [13:49:57]action value=close_receipt [13:49:57]process_action close_receipt [13:49:57]cmd_close_receipt [13:49:57]MH_GetDate [13:49:57]Write to MH i2c: F0 00 00 AF 46 E4 [13:49:57]Write i2c OK [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: F0 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: F0 09 00 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: F0 09 00 AF 46 00 8A 96 1F 67 22 05 6E 64 8C [13:49:57]GetLastDocTimeStamp 1730123348 [13:49:57]current date 1730123402 [13:49:57]FM_GetShiftState [13:49:57]SAM_PROTO_GetShiftState [13:49:57]wFMCommunicate request_size=4 [13:49:57]MH_SAM_APDU [13:49:57]CAPDU: 80 13 01 00 [13:49:57]Write to MH i2c: E2 08 00 B0 46 80 13 01 00 00 00 00 00 73 [13:49:57]Write i2c OK [13:49:57]MH_I2C_Read... [13:49:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:57]Read from MH i2c: E2 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: E2 0E 00 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: E2 0E 00 B0 46 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C3 [13:49:57]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:49:57]wFMCommunicate OK [13:49:57]SAM_PROTO_GetShiftState done [13:49:57]FM_GetShiftState done [13:49:57]opened in 1730075620 [13:49:57]opened+sec_in_day 1730162020 [13:49:57]quantity*price = 66030 [13:49:57]sum+1 = 66031 [13:49:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.84 НДС 12% : 70.12 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 142 28.10.2024 13:50 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192594 ФПД: 200881265197734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135002&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192594&fm=200881265197734&tin=02508201610067®Number=0000000000091776&sum=66000 [13:49:58]StoreToDocumentArchive [13:49:58]shift 543 fd 192594 [13:49:58]save to /storage/0543/doc_00192594 [13:49:58]save last doc name /storage/0543/doc_00192594 to /storage/kkm_last_doc_name [13:49:58]save OK [13:49:58]Clear old archive folders... [13:49:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:58]tlvbuf is 01A77570 [13:49:58]SAM_PROTO_ClearQueue [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 09 00 00 [13:49:58]Write to MH i2c: E2 08 00 BD 46 80 09 00 00 00 00 00 00 75 [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 BD 46 00 90 00 77 [13:49:58]RAPDU: 90 00 [13:49:58]wFMCommunicate OK [13:49:58]SAM_PROTO_ClearQueue done [13:49:58]KKMCreateOFDPacket [13:49:58]OFDProtocolAddRootSTLVToBuf [13:49:58]FM_MakeSignedData [13:49:58]FM_MakeSignedData [13:49:58]SAM_PROTO_SignData [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 0D 01 02 [13:49:58]Write to MH i2c: E2 08 00 BE 46 80 0D 01 02 00 00 00 00 7D [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 BE 46 00 90 00 78 [13:49:58]RAPDU: 90 00 [13:49:58]wFMCommunicate OK [13:49:58]wFMCommunicate request_size=255 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 8A 96 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 F0 02 00 35 04 06 00 B6 [13:49:58]Write to MH i2c: E2 02 01 BF 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 8E 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 8A 96 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 F0 02 00 35 04 06 00 B6 00 00 28 [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 03 00 BF 46 00 90 00 79 [13:49:58]RAPDU: 90 00 [13:49:58]wFMCommunicate OK [13:49:58]wFMCommunicate request_size=10 [13:49:59]MH_SAM_APDU [13:49:59]CAPDU: 80 0D 02 02 05 B3 50 74 42 A6 [13:49:59]Write to MH i2c: E2 0D 00 C0 46 80 0D 02 02 05 00 B3 50 74 42 A6 00 00 E9 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 03 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 03 00 C0 46 00 90 00 7A [13:49:59]RAPDU: 90 00 [13:49:59]wFMCommunicate OK [13:49:59]wFMCommunicate request_size=4 [13:49:59]MH_SAM_APDU [13:49:59]CAPDU: 80 0D 03 02 [13:49:59]Write to MH i2c: E2 08 00 C1 46 80 0D 03 02 00 00 00 00 82 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 0B 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 0B 00 C1 46 00 E4 B5 F6 AD DF 73 90 94 90 00 35 [13:49:59]RAPDU: E4 B5 F6 AD DF 73 90 94 90 00 [13:49:59]wFMCommunicate OK [13:49:59]SAM_PROTO_SignData done [13:49:59]FM_MakeSignedData done [13:49:59]CreateOFDProtocolMessage [13:49:59]wFMCommunicate request_size=4 [13:49:59]MH_SAM_APDU [13:49:59]CAPDU: 80 11 00 00 [13:49:59]Write to MH i2c: E2 08 00 C2 46 80 11 00 00 00 00 00 00 82 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 17 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 17 00 C2 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D5 [13:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:49:59]wFMCommunicate OK [13:49:59]CreateOFDProtocolMessage done [13:49:59]OFDSenderStorePacket 192594 [13:49:59]StoreOFDPacket docnum=192594 [13:49:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A2 C0 07 01 32 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 8A 96 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 F0 02 00 35 04 06 00 B6 B3 50 74 42 A6 E4 B5 F6 AD DF 73 90 94 [13:49:59]CheckFolder [13:49:59]dirname=/storage/ofd_packets [13:49:59]CheckFolder done [13:49:59]ProducePacketName [13:49:59]name=ofd_packets/00192594 [13:49:59]NVStorageSaveData ofd_packets/00192594 [13:49:59]File name is /storage/ofd_packets/00192594 [13:49:59]Write 301 bytes [13:49:59]NVStorageSaveData done [13:49:59]OFDSenderStorePacket done [13:49:59]KKMCreateOFDPacket done [13:49:59]NVStorageSaveData kkm_last_timestamp [13:49:59]File name is /storage/kkm_last_timestamp [13:49:59]Write 4 bytes [13:49:59]NVStorageSaveData done [13:49:59]ExternCall_PrintAddStr [13:49:59]wPrintStart [13:49:59]Write to MH i2c: 01 00 00 C3 46 09 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 07 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 07 00 C3 46 00 00 00 00 00 FF 0F 1E [13:49:59]RasterBufferAndPrint [13:49:59]line Счет N : (1)31914 [13:49:59]line ИНН: 02508201610067 [13:49:59]line Контрольно-Кассовый Чек [13:49:59]line ПРОДАЖА [13:49:59]line ТРК (МРК, ГНК) : 21 [13:49:59]line Товар: 2710124130 [13:49:59]line Аи-92-К-5 [13:49:59]line 9.870 * 66.90 [13:49:59]line = 660.30 [13:49:59]line НДС 12% НСП 1% [13:49:59]line > о реализуемом товаре [13:49:59]line ОКРУГЛЕНИЕ: -0.30 [13:49:59]line ИТОГО: 660.00 [13:49:59]line Внесено: 660.00 [13:49:59]line СДАЧА: 0.00 [13:49:59]line НСП 1% : 5.84 [13:49:59]line НДС 12% : 70.12 [13:49:59]line Наличными: 660.00 [13:49:59]line Безнал.: 0.00 [13:49:59]line Место: АЗС № 170 "Партнер Нефть" [13:49:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:49:59]line СНО: Общий режим [13:49:59]line Чек 142 28.10.2024 13:50 [13:49:59]line Смена: 543 ФФД: 1.0 [13:49:59]line ЗНМ: 0300000110 [13:49:59]line РНМ: 0000000000091776 [13:49:59]line Версия ККМ: 001 [13:49:59]line ФМ: 0000000000871754 [13:49:59]line ФД: 192594 [13:49:59]line ФПД: 200881265197734 [13:49:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135002&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192594&fm=200881265197734&tin=02508201610067®Number=0000000000091776&sum=66000 [13:49:59]OFD Sender: Processing packet 192594 [packets to send 75, broken 74] [13:49:59]ProducePacketName [13:49:59]name=ofd_packets/00192594 [13:49:59]OFD Sender: To server: pG, [13:49:59]CommunicateWithHost lk.salyk.kg:30040 [13:49:59]ConnectInit lk.salyk.kg [13:49:59]written 0, free lines is 4095 [13:49:59]Connected sock=9 [13:49:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A2 C0 07 01 32 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EE 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 8A 96 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 F0 02 00 35 04 06 00 B6 B3 50 74 42 A6 E4 B5 F6 AD DF 73 90 94 [13:49:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 17 8C 47 00 C7 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 31 37 35 34 10 04 04 00 52 F0 02 00 F4 03 04 00 4E 3B 1F 67 B6 04 01 00 00 14 08 F0 DF C3 AA 8A 16 [13:49:59]CommunicateWithHost err = 0 [13:49:59]CheckOFDResponse [13:49:59]1017 (14) - 77093643461234 [13:49:59]1041 (16) - 0000000000871754 [13:49:59]1040 (4) - 192594 [13:49:59]1012 (4) - 28.10.2024 07:20 [13:49:59]1206 (1) - 0 [13:49:59]OFD Sender: Remove packet 192594 [13:49:59]ProducePacketName [13:49:59]name=ofd_packets/00192594 [13:49:59]NVStorageDeleteData [13:49:59]Write to MH i2c: 01 00 00 EE 46 34 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 07 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 07 00 EE 46 00 00 00 00 00 D0 0C 17 [13:49:59]RasterBufferAndPrint [13:49:59]line [13:49:59]line [13:49:59]line [13:49:59]line [13:49:59]line [13:49:59]written 0, free lines is 3287 [13:49:59]MH_Cut [13:49:59]Write to MH i2c: D1 01 00 F5 46 01 0D [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: D1 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: D1 01 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: D1 01 00 F5 46 00 0C [13:49:59]Write to MH i2c: 01 00 00 F6 46 3C [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:50:00]OFD Sender: No OFD packet to send [13:50:00]*** Cut start [13:50:00]*** Partial cut [13:50:00]*** CUTSNS_PIN = 1 [13:50:00]*** CUTSNS_PIN = 0 [13:50:01]*** Brake cut motor [13:50:01]Read from MH i2c: 01 [13:50:01]MH_I2C_Read... [13:50:01]*** Stop cut motor [13:50:01]*** Cut end [13:50:01]Read from MH i2c: 01 07 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: 01 07 00 F6 46 00 00 00 00 00 FF 0F 51 [13:50:01]process_action close_receipt done [13:50:01]requested_data is exist [13:50:01]produce_requested_data [13:50:01]requested_item fm.sn is exist - process it [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 11 00 00 [13:50:01]Write to MH i2c: E2 08 00 F7 46 80 11 00 00 00 00 00 00 B7 [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 17 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 17 00 F7 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [13:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:50:01]wFMCommunicate OK [13:50:01]requested_item fd.num is exist - process it [13:50:01]SAM_PROTO_GetFieldsCounters [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 13 00 00 [13:50:01]Write to MH i2c: E2 08 00 F8 46 80 13 00 00 00 00 00 00 BA [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 62 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 62 00 F8 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 52 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [13:50:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 52 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:50:01]wFMCommunicate OK [13:50:01]SAM_PROTO_GetFieldsCounters done [13:50:01]requested_item shift.num is exist - process it [13:50:01]requested_item shift.opened is exist - process it [13:50:01]req_shift_opened [13:50:01]FM_GetShiftState [13:50:01]SAM_PROTO_GetShiftState [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 13 01 00 [13:50:01]Write to MH i2c: E2 08 00 F9 46 80 13 01 00 00 00 00 00 BC [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 0E 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 0E 00 F9 46 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0C [13:50:01]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:50:01]wFMCommunicate OK [13:50:01]SAM_PROTO_GetShiftState done [13:50:01]FM_GetShiftState done [13:50:01]req_shift_opened done [13:50:01]requested_item shift.open_date is exist - process it [13:50:01]req_shift_open_date [13:50:01]req_shift_open_date done [13:50:01]produce_requested_data done [13:50:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192594,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:50:01]process_action_free close_receipt [13:50:01]json_value_free [13:50:01]json_value_free done [13:50:01]process_json_proto returns [13:50:01]Send response to host [13:50:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192594,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:50:01]free response buf [13:50:01]execute_script done [13:50:01]execute_script returns [13:50:01]free content buf [13:50:01]Sock 7.Close socket [13:50:01]Sock 7.Thread stoped [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:40]accept exits with 10 [13:50:40]New connection [13:50:40]New thread 3066707300 created [13:50:40]Thread 3066563940 joined [13:50:40]Waiting for new connection... [13:50:40] Sock 10.Parse request [13:50:40]Sock 10.Check first char [13:50:40]Sock 10.First char is OK [13:50:40]request: POST /json_proto HTTP/1.0 [13:50:40]Method: POST [13:50:40]URL: /json_proto [13:50:40]Method is POST - this is cgi request [13:50:40]url: /json_proto [13:50:40]query_string will be loaded in cgi processing [13:50:40]execute_cgi json_proto POST (null) [13:50:40]execute_cgi path=json_proto method=POST [13:50:40]POST find Content-Length [13:50:40]Host: 172.17.63.131:8080 [13:50:40]Content-Length: 676 [13:50:40]Content-Type: application/json [13:50:40] [13:50:40]POST finish read [13:50:40]Found Content-Length = 676 [13:50:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:40]execute_script... [13: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)31915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:40]POST & json_proto [13:50:40]process_json_proto [13:50:40]json parsed OK: [13:50:40]protocol is kg_v1.0 [13:50:40]action value=close_receipt [13:50:40]process_action close_receipt [13:50:40]cmd_close_receipt [13:50:40]MH_GetDate [13:50:40]Write to MH i2c: F0 00 00 FA 46 2F [13:50:40]Write i2c OK [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: F0 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: F0 09 00 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: F0 09 00 FA 46 00 B5 96 1F 67 22 05 6E 64 02 [13:50:40]GetLastDocTimeStamp 1730123402 [13:50:40]current date 1730123445 [13:50:40]FM_GetShiftState [13:50:40]SAM_PROTO_GetShiftState [13:50:40]wFMCommunicate request_size=4 [13:50:40]MH_SAM_APDU [13:50:40]CAPDU: 80 13 01 00 [13:50:40]Write to MH i2c: E2 08 00 FB 46 80 13 01 00 00 00 00 00 BE [13:50:40]Write i2c OK [13:50:40]MH_I2C_Read... [13:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:40]Read from MH i2c: E2 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: E2 0E 00 [13:50:40]MH_I2C_Read... [13:50:40]Read from MH i2c: E2 0E 00 FB 46 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0E [13:50:40]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:50:40]wFMCommunicate OK [13:50:40]SAM_PROTO_GetShiftState done [13:50:40]FM_GetShiftState done [13:50:40]opened in 1730075620 [13:50:40]opened+sec_in_day 1730162020 [13:50:40]quantity*price = 40006 [13:50:40]sum+1 = 40007 [13:50:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 143 28.10.2024 13:50 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192595 ФПД: 109627583510507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135046&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192595&fm=109627583510507&tin=02508201610067®Number=0000000000091776&sum=40000 [13:50:41]StoreToDocumentArchive [13:50:41]shift 543 fd 192595 [13:50:41]save to /storage/0543/doc_00192595 [13:50:41]save last doc name /storage/0543/doc_00192595 to /storage/kkm_last_doc_name [13:50:41]save OK [13:50:41]Clear old archive folders... [13:50:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:50:41]tlvbuf is 019C0CB0 [13:50:41]SAM_PROTO_ClearQueue [13:50:41]wFMCommunicate request_size=4 [13:50:41]MH_SAM_APDU [13:50:41]CAPDU: 80 09 00 00 [13:50:41]Write to MH i2c: E2 08 00 08 47 80 09 00 00 00 00 00 00 C1 [13:50:41]Write i2c OK [13:50:41]MH_I2C_Read... [13:50:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:41]Read from MH i2c: E2 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: E2 03 00 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: E2 03 00 08 47 00 90 00 C3 [13:50:41]RAPDU: 90 00 [13:50:41]wFMCommunicate OK [13:50:41]SAM_PROTO_ClearQueue done [13:50:41]KKMCreateOFDPacket [13:50:41]OFDProtocolAddRootSTLVToBuf [13:50:41]FM_MakeSignedData [13:50:41]FM_MakeSignedData [13:50:41]SAM_PROTO_SignData [13:50:41]wFMCommunicate request_size=4 [13:50:41]MH_SAM_APDU [13:50:41]CAPDU: 80 0D 01 02 [13:50:41]Write to MH i2c: E2 08 00 09 47 80 0D 01 02 00 00 00 00 C9 [13:50:41]Write i2c OK [13:50:41]MH_I2C_Read... [13:50:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:41]Read from MH i2c: E2 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: E2 03 00 [13:50:41]MH_I2C_Read... [13:50:41]Read from MH i2c: E2 03 00 09 47 00 90 00 C4 [13:50:41]RAPDU: 90 00 [13:50:41]wFMCommunicate OK [13:50:41]wFMCommunicate request_size=255 [13:50:41]MH_SAM_APDU [13:50:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 B6 96 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 F0 02 00 35 04 06 00 63 [13:50:41]Write to MH i2c: E2 02 01 0A 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 B6 96 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 F0 02 00 35 04 06 00 63 00 00 56 [13:50:41]Write i2c OK [13:50:41]MH_I2C_Read... [13:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:42]Read from MH i2c: E2 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 03 00 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 03 00 0A 47 00 90 00 C5 [13:50:42]RAPDU: 90 00 [13:50:42]wFMCommunicate OK [13:50:42]wFMCommunicate request_size=10 [13:50:42]MH_SAM_APDU [13:50:42]CAPDU: 80 0D 02 02 05 B4 A9 2C 37 EB [13:50:42]Write to MH i2c: E2 0D 00 0B 47 80 0D 02 02 05 00 B4 A9 2C 37 EB 00 00 81 [13:50:42]Write i2c OK [13:50:42]MH_I2C_Read... [13:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:42]Read from MH i2c: E2 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 03 00 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 03 00 0B 47 00 90 00 C6 [13:50:42]RAPDU: 90 00 [13:50:42]wFMCommunicate OK [13:50:42]wFMCommunicate request_size=4 [13:50:42]MH_SAM_APDU [13:50:42]CAPDU: 80 0D 03 02 [13:50:42]Write to MH i2c: E2 08 00 0C 47 80 0D 03 02 00 00 00 00 CE [13:50:42]Write i2c OK [13:50:42]MH_I2C_Read... [13:50:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:42]Read from MH i2c: E2 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 0B 00 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 0B 00 0C 47 00 08 3D B6 A5 26 BF 30 2F 90 00 B3 [13:50:42]RAPDU: 08 3D B6 A5 26 BF 30 2F 90 00 [13:50:42]wFMCommunicate OK [13:50:42]SAM_PROTO_SignData done [13:50:42]FM_MakeSignedData done [13:50:42]CreateOFDProtocolMessage [13:50:42]wFMCommunicate request_size=4 [13:50:42]MH_SAM_APDU [13:50:42]CAPDU: 80 11 00 00 [13:50:42]Write to MH i2c: E2 08 00 0D 47 80 11 00 00 00 00 00 00 CE [13:50:42]Write i2c OK [13:50:42]MH_I2C_Read... [13:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:42]Read from MH i2c: E2 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 17 00 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: E2 17 00 0D 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 21 [13:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:50:42]wFMCommunicate OK [13:50:42]CreateOFDProtocolMessage done [13:50:42]OFDSenderStorePacket 192595 [13:50:42]StoreOFDPacket docnum=192595 [13:50:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A4 FF 07 01 F2 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 B6 96 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 F0 02 00 35 04 06 00 63 B4 A9 2C 37 EB 08 3D B6 A5 26 BF 30 2F [13:50:42]CheckFolder [13:50:42]dirname=/storage/ofd_packets [13:50:42]CheckFolder done [13:50:42]ProducePacketName [13:50:42]name=ofd_packets/00192595 [13:50:42]NVStorageSaveData ofd_packets/00192595 [13:50:42]File name is /storage/ofd_packets/00192595 [13:50:42]Write 301 bytes [13:50:42]NVStorageSaveData done [13:50:42]OFDSenderStorePacket done [13:50:42]KKMCreateOFDPacket done [13:50:42]NVStorageSaveData kkm_last_timestamp [13:50:42]File name is /storage/kkm_last_timestamp [13:50:42]Write 4 bytes [13:50:42]NVStorageSaveData done [13:50:42]ExternCall_PrintAddStr [13:50:42]wPrintStart [13:50:42]Write to MH i2c: 01 00 00 0E 47 55 [13:50:42]Write i2c OK [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: 01 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: 01 07 00 [13:50:42]MH_I2C_Read... [13:50:42]Read from MH i2c: 01 07 00 0E 47 00 00 00 00 00 FF 0F 6A [13:50:42]RasterBufferAndPrint [13:50:42]line Счет N : (1)31915 [13:50:42]line ИНН: 02508201610067 [13:50:42]line Контрольно-Кассовый Чек [13:50:42]line ПРОДАЖА [13:50:42]line ТРК (МРК, ГНК) : 12 [13:50:42]line Товар: 2710124130 [13:50:42]line Аи-92-К-5 [13:50:42]line 5.980 * 66.90 [13:50:42]line = 400.06 [13:50:42]line НДС 12% НСП 1% [13:50:42]line > о реализуемом товаре [13:50:42]line ОКРУГЛЕНИЕ: -0.06 [13:50:42]line ИТОГО: 400.00 [13:50:42]line Внесено: 400.00 [13:50:42]line СДАЧА: 0.00 [13:50:42]line НСП 1% : 3.54 [13:50:42]line НДС 12% : 42.48 [13:50:42]line Наличными: 400.00 [13:50:42]line Безнал.: 0.00 [13:50:42]line Место: АЗС № 170 "Партнер Нефть" [13:50:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:50:42]line СНО: Общий режим [13:50:42]line Чек 143 28.10.2024 13:50 [13:50:42]line Смена: 543 ФФД: 1.0 [13:50:42]line ЗНМ: 0300000110 [13:50:42]line РНМ: 0000000000091776 [13:50:42]line Версия ККМ: 001 [13:50:42]line ФМ: 0000000000871754 [13:50:42]line ФД: 192595 [13:50:42]line ФПД: 109627583510507 [13:50:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135046&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192595&fm=109627583510507&tin=02508201610067®Number=0000000000091776&sum=40000 [13:50:42]OFD Sender: Processing packet 192595 [packets to send 75, broken 74] [13:50:42]ProducePacketName [13:50:42]name=ofd_packets/00192595 [13:50:42]OFD Sender: To server: pG, [13:50:42]CommunicateWithHost lk.salyk.kg:30040 [13:50:42]ConnectInit lk.salyk.kg [13:50:42]written 0, free lines is 4095 [13:50:42]Connected sock=9 [13:50:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A4 FF 07 01 F2 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 B6 96 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 F0 02 00 35 04 06 00 63 B4 A9 2C 37 EB 08 3D B6 A5 26 BF 30 2F [13:50:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BD 73 47 00 8E 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 F0 02 00 F4 03 04 00 7A 3B 1F 67 B6 04 01 00 00 56 21 48 13 7E 24 0E EE [13:50:42]CommunicateWithHost err = 0 [13:50:42]CheckOFDResponse [13:50:42]1017 (14) - 77093643461234 [13:50:42]1041 (16) - 0000000000871754 [13:50:42]1040 (4) - 192595 [13:50:42]1012 (4) - 28.10.2024 07:21 [13:50:42]1206 (1) - 0 [13:50:42]OFD Sender: Remove packet 192595 [13:50:42]ProducePacketName [13:50:42]name=ofd_packets/00192595 [13:50:42]NVStorageDeleteData [13:50:43]Write to MH i2c: 01 00 00 39 47 80 [13:50:43]Write i2c OK [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: 01 [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: 01 07 00 [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: 01 07 00 39 47 00 00 00 00 00 BA 0C 4D [13:50:43]RasterBufferAndPrint [13:50:43]line [13:50:43]line [13:50:43]line [13:50:43]line [13:50:43]line [13:50:43]written 0, free lines is 3265 [13:50:43]MH_Cut [13:50:43]Write to MH i2c: D1 01 00 40 47 01 59 [13:50:43]Write i2c OK [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: D1 [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: D1 01 00 [13:50:43]MH_I2C_Read... [13:50:43]Read from MH i2c: D1 01 00 40 47 00 58 [13:50:43]Write to MH i2c: 01 00 00 41 47 88 [13:50:43]Write i2c OK [13:50:43]MH_I2C_Read... [13:50:43]OFD Sender: No OFD packet to send [13:50:43]*** Cut start [13:50:43]*** Partial cut [13:50:43]*** CUTSNS_PIN = 1 [13:50:43]*** CUTSNS_PIN = 0 [13:50:44]*** Brake cut motor [13:50:44]Read from MH i2c: 01 [13:50:44]MH_I2C_Read... [13:50:44]*** Stop cut motor [13:50:44]*** Cut end [13:50:44]Read from MH i2c: 01 07 00 [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: 01 07 00 41 47 00 00 00 00 00 FF 0F 9D [13:50:44]process_action close_receipt done [13:50:44]requested_data is exist [13:50:44]produce_requested_data [13:50:44]requested_item fm.sn is exist - process it [13:50:44]wFMCommunicate request_size=4 [13:50:44]MH_SAM_APDU [13:50:44]CAPDU: 80 11 00 00 [13:50:44]Write to MH i2c: E2 08 00 42 47 80 11 00 00 00 00 00 00 03 [13:50:44]Write i2c OK [13:50:44]MH_I2C_Read... [13:50:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:44]Read from MH i2c: E2 [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: E2 17 00 [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: E2 17 00 42 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 56 [13:50:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:50:44]wFMCommunicate OK [13:50:44]requested_item fd.num is exist - process it [13:50:44]SAM_PROTO_GetFieldsCounters [13:50:44]wFMCommunicate request_size=4 [13:50:44]MH_SAM_APDU [13:50:44]CAPDU: 80 13 00 00 [13:50:44]Write to MH i2c: E2 08 00 43 47 80 13 00 00 00 00 00 00 06 [13:50:44]Write i2c OK [13:50:44]MH_I2C_Read... [13:50:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:44]Read from MH i2c: E2 [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: E2 62 00 [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: E2 62 00 43 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 53 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [13: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 53 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:50:44]wFMCommunicate OK [13:50:44]SAM_PROTO_GetFieldsCounters done [13:50:44]requested_item shift.num is exist - process it [13:50:44]requested_item shift.opened is exist - process it [13:50:44]req_shift_opened [13:50:44]FM_GetShiftState [13:50:44]SAM_PROTO_GetShiftState [13:50:44]wFMCommunicate request_size=4 [13:50:44]MH_SAM_APDU [13:50:44]CAPDU: 80 13 01 00 [13:50:44]Write to MH i2c: E2 08 00 44 47 80 13 01 00 00 00 00 00 08 [13:50:44]Write i2c OK [13:50:44]MH_I2C_Read... [13:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:44]Read from MH i2c: E2 [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: E2 0E 00 [13:50:44]MH_I2C_Read... [13:50:44]Read from MH i2c: E2 0E 00 44 47 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 58 [13:50:44]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:50:44]wFMCommunicate OK [13:50:44]SAM_PROTO_GetShiftState done [13:50:44]FM_GetShiftState done [13:50:44]req_shift_opened done [13:50:44]requested_item shift.open_date is exist - process it [13:50:44]req_shift_open_date [13:50:44]req_shift_open_date done [13:50:44]produce_requested_data done [13:50:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192595,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:50:44]process_action_free close_receipt [13:50:44]json_value_free [13:50:44]json_value_free done [13:50:44]process_json_proto returns [13:50:44]Send response to host [13:50:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192595,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:50:44]free response buf [13:50:44]execute_script done [13:50:44]execute_script returns [13:50:44]free content buf [13:50:44]Sock 10.Close socket [13:50:44]Sock 10.Thread stoped [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:22]accept exits with 7 [13:53:22]New connection [13:53:22]New thread 3066563940 created [13:53:22]Thread 3066707300 joined [13:53:22]Waiting for new connection... [13:53:22] Sock 7.Parse request [13:53:22]Sock 7.Check first char [13:53:22]Sock 7.First char is OK [13:53:22]request: POST /json_proto HTTP/1.0 [13:53:22]Method: POST [13:53:22]URL: /json_proto [13:53:22]Method is POST - this is cgi request [13:53:22]url: /json_proto [13:53:22]query_string will be loaded in cgi processing [13:53:22]execute_cgi json_proto POST (null) [13:53:22]execute_cgi path=json_proto method=POST [13:53:22]POST find Content-Length [13:53:22]Host: 172.17.63.131:8080 [13:53:22]Content-Length: 673 [13:53:22]Content-Type: application/json [13:53:22] [13:53:22]POST finish read [13:53:22]Found Content-Length = 673 [13:53:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:22]execute_script... [13:53:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:22]POST & json_proto [13:53:22]process_json_proto [13:53:22]json parsed OK: [13:53:22]protocol is kg_v1.0 [13:53:22]action value=close_receipt [13:53:22]process_action close_receipt [13:53:22]cmd_close_receipt [13:53:22]MH_GetDate [13:53:22]Write to MH i2c: F0 00 00 45 47 7B [13:53:22]Write i2c OK [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: F0 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: F0 09 00 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: F0 09 00 45 47 00 57 97 1F 67 22 05 6E 64 F1 [13:53:22]GetLastDocTimeStamp 1730123446 [13:53:22]current date 1730123607 [13:53:22]FM_GetShiftState [13:53:22]SAM_PROTO_GetShiftState [13:53:22]wFMCommunicate request_size=4 [13:53:22]MH_SAM_APDU [13:53:22]CAPDU: 80 13 01 00 [13:53:22]Write to MH i2c: E2 08 00 46 47 80 13 01 00 00 00 00 00 0A [13:53:22]Write i2c OK [13:53:22]MH_I2C_Read... [13:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:22]Read from MH i2c: E2 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: E2 0E 00 [13:53:22]MH_I2C_Read... [13:53:22]Read from MH i2c: E2 0E 00 46 47 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 5A [13:53:22]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:53:22]wFMCommunicate OK [13:53:22]SAM_PROTO_GetShiftState done [13:53:22]FM_GetShiftState done [13:53:22]opened in 1730075620 [13:53:22]opened+sec_in_day 1730162020 [13:53:22]quantity*price = 20040 [13:53:22]sum+1 = 20042 [13:53:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 144 28.10.2024 13:53 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192596 ФПД: 131594489768548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135327&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192596&fm=131594489768548&tin=02508201610067®Number=0000000000091776&sum=20000 [13:53:23]StoreToDocumentArchive [13:53:23]shift 543 fd 192596 [13:53:23]save to /storage/0543/doc_00192596 [13:53:23]save last doc name /storage/0543/doc_00192596 to /storage/kkm_last_doc_name [13:53:23]save OK [13:53:23]Clear old archive folders... [13:53:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:53:23]tlvbuf is B6F1CEC0 [13:53:23]SAM_PROTO_ClearQueue [13:53:23]wFMCommunicate request_size=4 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 09 00 00 [13:53:23]Write to MH i2c: E2 08 00 53 47 80 09 00 00 00 00 00 00 0C [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:23]Read from MH i2c: E2 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 03 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 03 00 53 47 00 90 00 0E [13:53:23]RAPDU: 90 00 [13:53:23]wFMCommunicate OK [13:53:23]SAM_PROTO_ClearQueue done [13:53:23]KKMCreateOFDPacket [13:53:23]OFDProtocolAddRootSTLVToBuf [13:53:23]FM_MakeSignedData [13:53:23]FM_MakeSignedData [13:53:23]SAM_PROTO_SignData [13:53:23]wFMCommunicate request_size=4 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 0D 01 02 [13:53:23]Write to MH i2c: E2 08 00 54 47 80 0D 01 02 00 00 00 00 14 [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:23]Read from MH i2c: E2 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 03 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 03 00 54 47 00 90 00 0F [13:53:23]RAPDU: 90 00 [13:53:23]wFMCommunicate OK [13:53:23]wFMCommunicate request_size=255 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 57 97 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 F0 02 00 35 04 06 00 77 AF 3A D1 [13:53:23]Write to MH i2c: E2 02 01 55 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 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 57 97 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 F0 02 00 35 04 06 00 77 AF 3A D1 00 00 BF [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]OFD Sender: No OFD packet to send [13:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:23]Read from MH i2c: E2 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 03 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 03 00 55 47 00 90 00 10 [13:53:23]RAPDU: 90 00 [13:53:23]wFMCommunicate OK [13:53:23]wFMCommunicate request_size=7 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 0D 02 02 02 2A 64 [13:53:23]Write to MH i2c: E2 0A 00 56 47 80 0D 02 02 02 00 2A 64 00 00 A9 [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:23]Read from MH i2c: E2 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 03 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 03 00 56 47 00 90 00 11 [13:53:23]RAPDU: 90 00 [13:53:23]wFMCommunicate OK [13:53:23]wFMCommunicate request_size=4 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 0D 03 02 [13:53:23]Write to MH i2c: E2 08 00 57 47 80 0D 03 02 00 00 00 00 19 [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:23]Read from MH i2c: E2 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 0B 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 0B 00 57 47 00 AB 78 B9 BD 7A 6B DF 77 90 00 EE [13:53:23]RAPDU: AB 78 B9 BD 7A 6B DF 77 90 00 [13:53:23]wFMCommunicate OK [13:53:23]SAM_PROTO_SignData done [13:53:23]FM_MakeSignedData done [13:53:23]CreateOFDProtocolMessage [13:53:23]wFMCommunicate request_size=4 [13:53:23]MH_SAM_APDU [13:53:23]CAPDU: 80 11 00 00 [13:53:23]Write to MH i2c: E2 08 00 58 47 80 11 00 00 00 00 00 00 19 [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:23]Read from MH i2c: E2 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 17 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: E2 17 00 58 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6C [13:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:53:23]wFMCommunicate OK [13:53:23]CreateOFDProtocolMessage done [13:53:23]OFDSenderStorePacket 192596 [13:53:23]StoreOFDPacket docnum=192596 [13:53:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 8B CE 04 01 05 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 57 97 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 F0 02 00 35 04 06 00 77 AF 3A D1 2A 64 AB 78 B9 BD 7A 6B DF 77 [13:53:23]CheckFolder [13:53:23]dirname=/storage/ofd_packets [13:53:23]CheckFolder done [13:53:23]ProducePacketName [13:53:23]name=ofd_packets/00192596 [13:53:23]NVStorageSaveData ofd_packets/00192596 [13:53:23]File name is /storage/ofd_packets/00192596 [13:53:23]Write 298 bytes [13:53:23]NVStorageSaveData done [13:53:23]OFDSenderStorePacket done [13:53:23]KKMCreateOFDPacket done [13:53:23]NVStorageSaveData kkm_last_timestamp [13:53:23]File name is /storage/kkm_last_timestamp [13:53:23]Write 4 bytes [13:53:23]NVStorageSaveData done [13:53:23]ExternCall_PrintAddStr [13:53:23]wPrintStart [13:53:23]Write to MH i2c: 01 00 00 59 47 A0 [13:53:23]Write i2c OK [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: 01 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: 01 07 00 [13:53:23]MH_I2C_Read... [13:53:23]Read from MH i2c: 01 07 00 59 47 00 00 00 00 00 FF 0F B5 [13:53:23]RasterBufferAndPrint [13:53:23]line Счет N : (1)31916 [13:53:23]line ИНН: 02508201610067 [13:53:23]line Контрольно-Кассовый Чек [13:53:23]line ПРОДАЖА [13:53:23]line ТРК (МРК, ГНК) : 11 [13:53:23]line Товар: 2710194210 [13:53:23]line ДТ-К-5 [13:53:23]line 2.630 * 76.20 [13:53:23]line = 200.41 [13:53:23]line НДС 12% НСП 1% [13:53:23]line > о реализуемом товаре [13:53:23]line ОКРУГЛЕНИЕ: -0.41 [13:53:23]line ИТОГО: 200.00 [13:53:23]line Внесено: 200.00 [13:53:23]line СДАЧА: 0.00 [13:53:23]line НСП 1% : 1.77 [13:53:23]line НДС 12% : 21.28 [13:53:23]line Наличными: 200.00 [13:53:23]line Безнал.: 0.00 [13:53:23]line Место: АЗС № 170 "Партнер Нефть" [13:53:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:53:23]line СНО: Общий режим [13:53:23]line Чек 144 28.10.2024 13:53 [13:53:23]line Смена: 543 ФФД: 1.0 [13:53:23]line ЗНМ: 0300000110 [13:53:23]line РНМ: 0000000000091776 [13:53:23]line Версия ККМ: 001 [13:53:23]line ФМ: 0000000000871754 [13:53:23]line ФД: 192596 [13:53:23]line ФПД: 131594489768548 [13:53:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135327&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192596&fm=131594489768548&tin=02508201610067®Number=0000000000091776&sum=20000 [13:53:24]OFD Sender: Processing packet 192596 [packets to send 75, broken 74] [13:53:24]ProducePacketName [13:53:24]name=ofd_packets/00192596 [13:53:24]OFD Sender: To server: pG, [13:53:24]CommunicateWithHost lk.salyk.kg:30040 [13:53:24]ConnectInit lk.salyk.kg [13:53:24]written 0, free lines is 4095 [13:53:24]Connected sock=10 [13:53:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 8B CE 04 01 05 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 57 97 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 F0 02 00 35 04 06 00 77 AF 3A D1 2A 64 AB 78 B9 BD 7A 6B DF 77 [13:53:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8A 5A 47 00 F2 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 F0 02 00 F4 03 04 00 1B 3C 1F 67 B6 04 01 00 00 00 79 90 5A 9C FD 7D 33 [13:53:24]CommunicateWithHost err = 0 [13:53:24]CheckOFDResponse [13:53:24]1017 (14) - 77093643461234 [13:53:24]1041 (16) - 0000000000871754 [13:53:24]1040 (4) - 192596 [13:53:24]1012 (4) - 28.10.2024 07:24 [13:53:24]1206 (1) - 0 [13:53:24]OFD Sender: Remove packet 192596 [13:53:24]ProducePacketName [13:53:24]name=ofd_packets/00192596 [13:53:24]NVStorageDeleteData [13:53:24]Write to MH i2c: 01 00 00 84 47 CB [13:53:24]Write i2c OK [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: 01 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: 01 07 00 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: 01 07 00 84 47 00 00 00 00 00 C1 0C 9F [13:53:24]RasterBufferAndPrint [13:53:24]line [13:53:24]line [13:53:24]line [13:53:24]line [13:53:24]line [13:53:24]written 0, free lines is 3271 [13:53:24]MH_Cut [13:53:24]Write to MH i2c: D1 01 00 8B 47 01 A4 [13:53:24]Write i2c OK [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: D1 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: D1 01 00 [13:53:24]MH_I2C_Read... [13:53:24]Read from MH i2c: D1 01 00 8B 47 00 A3 [13:53:24]Write to MH i2c: 01 00 00 8C 47 D3 [13:53:24]Write i2c OK [13:53:24]MH_I2C_Read... [13:53:25]OFD Sender: No OFD packet to send [13:53:25]*** Cut start [13:53:25]*** Partial cut [13:53:25]*** CUTSNS_PIN = 1 [13:53:25]*** CUTSNS_PIN = 0 [13:53:25]*** Brake cut motor [13:53:26]Read from MH i2c: 01 [13:53:26]MH_I2C_Read... [13:53:26]*** Stop cut motor [13:53:26]*** Cut end [13:53:26]Read from MH i2c: 01 07 00 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: 01 07 00 8C 47 00 00 00 00 00 FF 0F E8 [13:53:26]process_action close_receipt done [13:53:26]requested_data is exist [13:53:26]produce_requested_data [13:53:26]requested_item fm.sn is exist - process it [13:53:26]wFMCommunicate request_size=4 [13:53:26]MH_SAM_APDU [13:53:26]CAPDU: 80 11 00 00 [13:53:26]Write to MH i2c: E2 08 00 8D 47 80 11 00 00 00 00 00 00 4E [13:53:26]Write i2c OK [13:53:26]MH_I2C_Read... [13:53:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:26]Read from MH i2c: E2 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: E2 17 00 [13:53:26]MH_I2C_Read... [13:53:26]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 31 37 35 34 90 00 A1 [13:53:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:53:26]wFMCommunicate OK [13:53:26]requested_item fd.num is exist - process it [13:53:26]SAM_PROTO_GetFieldsCounters [13:53:26]wFMCommunicate request_size=4 [13:53:26]MH_SAM_APDU [13:53:26]CAPDU: 80 13 00 00 [13:53:26]Write to MH i2c: E2 08 00 8E 47 80 13 00 00 00 00 00 00 51 [13:53:26]Write i2c OK [13:53:26]MH_I2C_Read... [13:53:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:26]Read from MH i2c: E2 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: E2 62 00 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: E2 62 00 8E 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 54 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [13:53:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 54 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:26]wFMCommunicate OK [13:53:26]SAM_PROTO_GetFieldsCounters done [13:53:26]requested_item shift.num is exist - process it [13:53:26]requested_item shift.opened is exist - process it [13:53:26]req_shift_opened [13:53:26]FM_GetShiftState [13:53:26]SAM_PROTO_GetShiftState [13:53:26]wFMCommunicate request_size=4 [13:53:26]MH_SAM_APDU [13:53:26]CAPDU: 80 13 01 00 [13:53:26]Write to MH i2c: E2 08 00 8F 47 80 13 01 00 00 00 00 00 53 [13:53:26]Write i2c OK [13:53:26]MH_I2C_Read... [13:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:26]Read from MH i2c: E2 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: E2 0E 00 [13:53:26]MH_I2C_Read... [13:53:26]Read from MH i2c: E2 0E 00 8F 47 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A3 [13:53:26]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:53:26]wFMCommunicate OK [13:53:26]SAM_PROTO_GetShiftState done [13:53:26]FM_GetShiftState done [13:53:26]req_shift_opened done [13:53:26]requested_item shift.open_date is exist - process it [13:53:26]req_shift_open_date [13:53:26]req_shift_open_date done [13:53:26]produce_requested_data done [13:53:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192596,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:53:26]process_action_free close_receipt [13:53:26]json_value_free [13:53:26]json_value_free done [13:53:26]process_json_proto returns [13:53:26]Send response to host [13:53:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192596,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:53:26]free response buf [13:53:26]execute_script done [13:53:26]execute_script returns [13:53:26]free content buf [13:53:26]Sock 7.Close socket [13:53:26]Sock 7.Thread stoped [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:37]accept exits with 9 [13:53:37]New connection [13:53:37]New thread 3066707300 created [13:53:37]Thread 3066563940 joined [13:53:37]Waiting for new connection... [13:53:37] Sock 9.Parse request [13:53:37]Sock 9.Check first char [13:53:37]Sock 9.First char is OK [13:53:37]request: POST /json_proto HTTP/1.0 [13:53:37]Method: POST [13:53:37]URL: /json_proto [13:53:37]Method is POST - this is cgi request [13:53:37]url: /json_proto [13:53:37]query_string will be loaded in cgi processing [13:53:37]execute_cgi json_proto POST (null) [13:53:37]execute_cgi path=json_proto method=POST [13:53:37]POST find Content-Length [13:53:37]Host: 172.17.63.131:8080 [13:53:37]Content-Length: 676 [13:53:37]Content-Type: application/json [13:53:37] [13:53:37]POST finish read [13:53:37]Found Content-Length = 676 [13:53:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:37]execute_script... [13:53: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)31917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:37]POST & json_proto [13:53:37]process_json_proto [13:53:37]json parsed OK: [13:53:37]protocol is kg_v1.0 [13:53:37]action value=close_receipt [13:53:37]process_action close_receipt [13:53:37]cmd_close_receipt [13:53:37]MH_GetDate [13:53:37]Write to MH i2c: F0 00 00 90 47 C6 [13:53:37]Write i2c OK [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: F0 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: F0 09 00 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: F0 09 00 90 47 00 67 97 1F 67 22 05 6E 64 4C [13:53:37]GetLastDocTimeStamp 1730123607 [13:53:37]current date 1730123623 [13:53:37]FM_GetShiftState [13:53:37]SAM_PROTO_GetShiftState [13:53:37]wFMCommunicate request_size=4 [13:53:37]MH_SAM_APDU [13:53:37]CAPDU: 80 13 01 00 [13:53:37]Write to MH i2c: E2 08 00 91 47 80 13 01 00 00 00 00 00 55 [13:53:37]Write i2c OK [13:53:37]MH_I2C_Read... [13:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:37]Read from MH i2c: E2 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: E2 0E 00 [13:53:37]MH_I2C_Read... [13:53:37]Read from MH i2c: E2 0E 00 91 47 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A5 [13:53:37]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:53:37]wFMCommunicate OK [13:53:37]SAM_PROTO_GetShiftState done [13:53:37]FM_GetShiftState done [13:53:37]opened in 1730075620 [13:53:37]opened+sec_in_day 1730162020 [13:53:37]quantity*price = 20003 [13:53:37]sum+1 = 20004 [13:53:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 145 28.10.2024 13:53 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192597 ФПД: 6165360781892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135343&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192597&fm=6165360781892&tin=02508201610067®Number=0000000000091776&sum=20000 [13:53:38]StoreToDocumentArchive [13:53:38]shift 543 fd 192597 [13:53:38]save to /storage/0543/doc_00192597 [13:53:38]save last doc name /storage/0543/doc_00192597 to /storage/kkm_last_doc_name [13:53:38]save OK [13:53:38]Clear old archive folders... [13:53:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:38]tlvbuf is 0197B2C0 [13:53:38]SAM_PROTO_ClearQueue [13:53:38]wFMCommunicate request_size=4 [13:53:38]MH_SAM_APDU [13:53:38]CAPDU: 80 09 00 00 [13:53:38]Write to MH i2c: E2 08 00 9E 47 80 09 00 00 00 00 00 00 57 [13:53:38]Write i2c OK [13:53:38]MH_I2C_Read... [13:53:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:38]Read from MH i2c: E2 [13:53:38]MH_I2C_Read... [13:53:38]Read from MH i2c: E2 03 00 [13:53:38]MH_I2C_Read... [13:53:38]Read from MH i2c: E2 03 00 9E 47 00 90 00 59 [13:53:38]RAPDU: 90 00 [13:53:38]wFMCommunicate OK [13:53:38]SAM_PROTO_ClearQueue done [13:53:38]KKMCreateOFDPacket [13:53:38]OFDProtocolAddRootSTLVToBuf [13:53:38]FM_MakeSignedData [13:53:38]FM_MakeSignedData [13:53:38]SAM_PROTO_SignData [13:53:38]wFMCommunicate request_size=4 [13:53:38]MH_SAM_APDU [13:53:38]CAPDU: 80 0D 01 02 [13:53:38]Write to MH i2c: E2 08 00 9F 47 80 0D 01 02 00 00 00 00 5F [13:53:38]Write i2c OK [13:53:38]MH_I2C_Read... [13:53:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:39]Read from MH i2c: E2 [13:53:39]MH_I2C_Read... [13:53:39]Read from MH i2c: E2 03 00 [13:53:39]MH_I2C_Read... [13:53:39]Read from MH i2c: E2 03 00 9F 47 00 90 00 5A [13:53:39]RAPDU: 90 00 [13:53:39]wFMCommunicate OK [13:53:39]wFMCommunicate request_size=255 [13:53:39]MH_SAM_APDU [13:53: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 67 97 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 F0 02 00 35 04 06 00 05 [13:53:39]Write to MH i2c: E2 02 01 A0 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 67 97 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 F0 02 00 35 04 06 00 05 00 00 37 [13:53:39]Write i2c OK [13:53:39]MH_I2C_Read... [13:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:39]Read from MH i2c: E2 [13:53:39]MH_I2C_Read... [13:53:39]Read from MH i2c: E2 03 00 [13:53:39]MH_I2C_Read... [13:53:39]Read from MH i2c: E2 03 00 A0 47 00 90 00 5B [13:53:39]RAPDU: 90 00 [13:53:39]wFMCommunicate OK [13:53:39]wFMCommunicate request_size=10 [13:53:39]MH_SAM_APDU [13:53:39]CAPDU: 80 0D 02 02 05 9B 7C 23 AA 44 [13:53:39]Write to MH i2c: E2 0D 00 A1 47 80 0D 02 02 05 00 9B 7C 23 AA 44 00 00 94 [13:53:39]Write i2c OK [13:53:39]MH_I2C_Read... [13:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:39]Read from MH i2c: E2 [13:53:39]MH_I2C_Read... [13:53:39]Read from MH i2c: E2 03 00 [13:53:39]MH_I2C_Read... [13:53:39]Read from MH i2c: E2 03 00 A1 47 00 90 00 5C [13:53:39]RAPDU: 90 00 [13:53:39]wFMCommunicate OK [13:53:39]wFMCommunicate request_size=4 [13:53:39]MH_SAM_APDU [13:53:39]CAPDU: 80 0D 03 02 [13:53:39]Write to MH i2c: E2 08 00 A2 47 80 0D 03 02 00 00 00 00 64 [13:53:39]Write i2c OK [13:53:39]MH_I2C_Read... [13:53:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:39]Read from MH i2c: E2 [13:53:39]MH_I2C_Read... [13:53:39]Read from MH i2c: E2 0B 00 [13:53:39]MH_I2C_Read... [13:53:39]Read from MH i2c: E2 0B 00 A2 47 00 C9 F6 21 0D 28 4D 04 2E 90 00 F9 [13:53:39]RAPDU: C9 F6 21 0D 28 4D 04 2E 90 00 [13:53:39]wFMCommunicate OK [13:53:39]SAM_PROTO_SignData done [13:53:39]FM_MakeSignedData done [13:53:39]CreateOFDProtocolMessage [13:53:39]wFMCommunicate request_size=4 [13:53:39]MH_SAM_APDU [13:53:39]CAPDU: 80 11 00 00 [13:53:39]Write to MH i2c: E2 08 00 A3 47 80 11 00 00 00 00 00 00 64 [13:53:39]Write i2c OK [13:53:39]MH_I2C_Read... [13:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:39]Read from MH i2c: E2 [13:53:39]MH_I2C_Read... [13:53:39]Read from MH i2c: E2 17 00 [13:53:39]MH_I2C_Read... [13:53:39]Read from MH i2c: E2 17 00 A3 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B7 [13:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:53:39]wFMCommunicate OK [13:53:39]CreateOFDProtocolMessage done [13:53:39]OFDSenderStorePacket 192597 [13:53:39]StoreOFDPacket docnum=192597 [13:53:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 00 54 07 01 A2 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 67 97 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 F0 02 00 35 04 06 00 05 9B 7C 23 AA 44 C9 F6 21 0D 28 4D 04 2E [13:53:39]CheckFolder [13:53:39]dirname=/storage/ofd_packets [13:53:39]CheckFolder done [13:53:39]ProducePacketName [13:53:39]name=ofd_packets/00192597 [13:53:39]NVStorageSaveData ofd_packets/00192597 [13:53:39]File name is /storage/ofd_packets/00192597 [13:53:39]Write 301 bytes [13:53:39]NVStorageSaveData done [13:53:39]OFDSenderStorePacket done [13:53:39]KKMCreateOFDPacket done [13:53:39]NVStorageSaveData kkm_last_timestamp [13:53:39]File name is /storage/kkm_last_timestamp [13:53:39]Write 4 bytes [13:53:39]NVStorageSaveData done [13:53:39]ExternCall_PrintAddStr [13:53:39]wPrintStart [13:53:39]Write to MH i2c: 01 00 00 A4 47 EB [13:53:39]Write i2c OK [13:53:39]MH_I2C_Read... [13:53:39]Read from MH i2c: 01 [13:53:39]MH_I2C_Read... [13:53:39]Read from MH i2c: 01 07 00 [13:53:39]MH_I2C_Read... [13:53:39]Read from MH i2c: 01 07 00 A4 47 00 00 00 00 00 FF 0F 00 [13:53:39]RasterBufferAndPrint [13:53:39]line Счет N : (1)31917 [13:53:39]line ИНН: 02508201610067 [13:53:39]line Контрольно-Кассовый Чек [13:53:39]line ПРОДАЖА [13:53:39]line ТРК (МРК, ГНК) : 12 [13:53:39]line Товар: 2710124130 [13:53:39]line Аи-92-К-5 [13:53:39]line 2.990 * 66.90 [13:53:39]line = 200.03 [13:53:39]line НДС 12% НСП 1% [13:53:39]line > о реализуемом товаре [13:53:39]line ОКРУГЛЕНИЕ: -0.03 [13:53:39]line ИТОГО: 200.00 [13:53:39]line Внесено: 200.00 [13:53:39]line СДАЧА: 0.00 [13:53:39]line НСП 1% : 1.77 [13:53:39]line НДС 12% : 21.24 [13:53:39]line Наличными: 200.00 [13:53:39]line Безнал.: 0.00 [13:53:39]line Место: АЗС № 170 "Партнер Нефть" [13:53:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:53:39]line СНО: Общий режим [13:53:39]line Чек 145 28.10.2024 13:53 [13:53:39]line Смена: 543 ФФД: 1.0 [13:53:39]line ЗНМ: 0300000110 [13:53:39]line РНМ: 0000000000091776 [13:53:39]line Версия ККМ: 001 [13:53:39]line ФМ: 0000000000871754 [13:53:39]line ФД: 192597 [13:53:39]line ФПД: 6165360781892 [13:53:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135343&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192597&fm=6165360781892&tin=02508201610067®Number=0000000000091776&sum=20000 [13:53:39]OFD Sender: Processing packet 192597 [packets to send 75, broken 74] [13:53:39]ProducePacketName [13:53:39]name=ofd_packets/00192597 [13:53:39]OFD Sender: To server: pG, [13:53:39]CommunicateWithHost lk.salyk.kg:30040 [13:53:39]ConnectInit lk.salyk.kg [13:53:39]written 0, free lines is 4095 [13:53:39]Connected sock=11 [13:53:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 00 54 07 01 A2 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 67 97 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 F0 02 00 35 04 06 00 05 9B 7C 23 AA 44 C9 F6 21 0D 28 4D 04 2E [13:53:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E3 EE 47 00 77 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 31 37 35 34 10 04 04 00 55 F0 02 00 F4 03 04 00 2B 3C 1F 67 B6 04 01 00 00 26 C9 9E CF 1A F8 D5 85 [13:53:40]CommunicateWithHost err = 0 [13:53:40]CheckOFDResponse [13:53:40]1017 (14) - 77093643461234 [13:53:40]1041 (16) - 0000000000871754 [13:53:40]1040 (4) - 192597 [13:53:40]1012 (4) - 28.10.2024 07:24 [13:53:40]1206 (1) - 0 [13:53:40]OFD Sender: Remove packet 192597 [13:53:40]ProducePacketName [13:53:40]name=ofd_packets/00192597 [13:53:40]NVStorageDeleteData [13:53:40]Write to MH i2c: 01 00 00 CF 47 16 [13:53:40]Write i2c OK [13:53:40]MH_I2C_Read... [13:53:40]Read from MH i2c: 01 [13:53:40]MH_I2C_Read... [13:53:40]Read from MH i2c: 01 07 00 [13:53:40]MH_I2C_Read... [13:53:40]Read from MH i2c: 01 07 00 CF 47 00 00 00 00 00 C2 0C EB [13:53:40]RasterBufferAndPrint [13:53:40]line [13:53:40]line [13:53:40]line [13:53:40]line [13:53:40]line [13:53:40]written 0, free lines is 3272 [13:53:40]MH_Cut [13:53:40]Write to MH i2c: D1 01 00 D6 47 01 EF [13:53:40]Write i2c OK [13:53:40]MH_I2C_Read... [13:53:40]Read from MH i2c: D1 [13:53:40]MH_I2C_Read... [13:53:40]Read from MH i2c: D1 01 00 [13:53:40]MH_I2C_Read... [13:53:40]Read from MH i2c: D1 01 00 D6 47 00 EE [13:53:40]Write to MH i2c: 01 00 00 D7 47 1E [13:53:40]Write i2c OK [13:53:40]MH_I2C_Read... [13:53:40]OFD Sender: No OFD packet to send [13:53:41]*** Cut start [13:53:41]*** Partial cut [13:53:41]*** CUTSNS_PIN = 1 [13:53:41]*** CUTSNS_PIN = 0 [13:53:41]*** Brake cut motor [13:53:41]Read from MH i2c: 01 [13:53:41]MH_I2C_Read... [13:53:41]*** Stop cut motor [13:53:41]*** Cut end [13:53:41]Read from MH i2c: 01 07 00 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: 01 07 00 D7 47 00 00 00 00 00 FF 0F 33 [13:53:41]process_action close_receipt done [13:53:41]requested_data is exist [13:53:41]produce_requested_data [13:53:41]requested_item fm.sn is exist - process it [13:53:41]wFMCommunicate request_size=4 [13:53:41]MH_SAM_APDU [13:53:41]CAPDU: 80 11 00 00 [13:53:41]Write to MH i2c: E2 08 00 D8 47 80 11 00 00 00 00 00 00 99 [13:53:41]Write i2c OK [13:53:41]MH_I2C_Read... [13:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:41]Read from MH i2c: E2 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 17 00 [13:53:41]MH_I2C_Read... [13:53:41]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 31 37 35 34 90 00 EC [13:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:53:41]wFMCommunicate OK [13:53:41]requested_item fd.num is exist - process it [13:53:41]SAM_PROTO_GetFieldsCounters [13:53:41]wFMCommunicate request_size=4 [13:53:41]MH_SAM_APDU [13:53:41]CAPDU: 80 13 00 00 [13:53:41]Write to MH i2c: E2 08 00 D9 47 80 13 00 00 00 00 00 00 9C [13:53:41]Write i2c OK [13:53:41]MH_I2C_Read... [13:53:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:41]Read from MH i2c: E2 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 62 00 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 62 00 D9 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 55 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [13:53: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 55 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:41]wFMCommunicate OK [13:53:41]SAM_PROTO_GetFieldsCounters done [13:53:41]requested_item shift.num is exist - process it [13:53:41]requested_item shift.opened is exist - process it [13:53:41]req_shift_opened [13:53:41]FM_GetShiftState [13:53:41]SAM_PROTO_GetShiftState [13:53:41]wFMCommunicate request_size=4 [13:53:41]MH_SAM_APDU [13:53:41]CAPDU: 80 13 01 00 [13:53:41]Write to MH i2c: E2 08 00 DA 47 80 13 01 00 00 00 00 00 9E [13:53:41]Write i2c OK [13:53:41]MH_I2C_Read... [13:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:41]Read from MH i2c: E2 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 0E 00 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 0E 00 DA 47 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EE [13:53:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:53:41]wFMCommunicate OK [13:53:41]SAM_PROTO_GetShiftState done [13:53:41]FM_GetShiftState done [13:53:41]req_shift_opened done [13:53:41]requested_item shift.open_date is exist - process it [13:53:41]req_shift_open_date [13:53:41]req_shift_open_date done [13:53:41]produce_requested_data done [13:53:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192597,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:53:41]process_action_free close_receipt [13:53:41]json_value_free [13:53:41]json_value_free done [13:53:41]process_json_proto returns [13:53:41]Send response to host [13:53:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192597,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:53:41]free response buf [13:53:41]execute_script done [13:53:41]execute_script returns [13:53:41]free content buf [13:53:41]Sock 9.Close socket [13:53:41]Sock 9.Thread stoped [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:49]accept exits with 7 [13:58:49]New connection [13:58:49]New thread 3066563940 created [13:58:49]Thread 3066707300 joined [13:58:49]Waiting for new connection... [13:58:49] Sock 7.Parse request [13:58:49]Sock 7.Check first char [13:58:49]Sock 7.First char is OK [13:58:49]request: POST /json_proto HTTP/1.0 [13:58:49]Method: POST [13:58:49]URL: /json_proto [13:58:49]Method is POST - this is cgi request [13:58:49]url: /json_proto [13:58:49]query_string will be loaded in cgi processing [13:58:49]execute_cgi json_proto POST (null) [13:58:49]execute_cgi path=json_proto method=POST [13:58:49]POST find Content-Length [13:58:49]Host: 172.17.63.131:8080 [13:58:49]Content-Length: 681 [13:58:49]Content-Type: application/json [13:58:49] [13:58:49]POST finish read [13:58:49]Found Content-Length = 681 [13:58:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:49]execute_script... [13:58:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:49]POST & json_proto [13:58:49]process_json_proto [13:58:49]json parsed OK: [13:58:49]protocol is kg_v1.0 [13:58:49]action value=close_receipt [13:58:49]process_action close_receipt [13:58:49]cmd_close_receipt [13:58:49]MH_GetDate [13:58:49]Write to MH i2c: F0 00 00 DB 47 11 [13:58:49]Write i2c OK [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: F0 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: F0 09 00 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: F0 09 00 DB 47 00 9F 98 1F 67 22 05 6E 64 D0 [13:58:49]GetLastDocTimeStamp 1730123623 [13:58:49]current date 1730123935 [13:58:49]FM_GetShiftState [13:58:49]SAM_PROTO_GetShiftState [13:58:49]wFMCommunicate request_size=4 [13:58:49]MH_SAM_APDU [13:58:49]CAPDU: 80 13 01 00 [13:58:49]Write to MH i2c: E2 08 00 DC 47 80 13 01 00 00 00 00 00 A0 [13:58:49]Write i2c OK [13:58:49]MH_I2C_Read... [13:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:49]Read from MH i2c: E2 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 0E 00 [13:58:49]MH_I2C_Read... [13:58:49]Read from MH i2c: E2 0E 00 DC 47 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F0 [13:58:49]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:58:49]wFMCommunicate OK [13:58:49]SAM_PROTO_GetShiftState done [13:58:49]FM_GetShiftState done [13:58:49]opened in 1730075620 [13:58:49]opened+sec_in_day 1730162020 [13:58:49]quantity*price = 100015 [13:58:49]sum+1 = 100017 [13:58:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 146 28.10.2024 13:58 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192598 ФПД: 78196903706112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135855&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192598&fm=78196903706112&tin=02508201610067®Number=0000000000091776&sum=100000 [13:58:50]StoreToDocumentArchive [13:58:50]shift 543 fd 192598 [13:58:50]save to /storage/0543/doc_00192598 [13:58:50]save last doc name /storage/0543/doc_00192598 to /storage/kkm_last_doc_name [13:58:50]save OK [13:58:50]Clear old archive folders... [13:58:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:50]tlvbuf is 01A9AAA0 [13:58:50]SAM_PROTO_ClearQueue [13:58:50]wFMCommunicate request_size=4 [13:58:50]MH_SAM_APDU [13:58:50]CAPDU: 80 09 00 00 [13:58:50]Write to MH i2c: E2 08 00 E9 47 80 09 00 00 00 00 00 00 A2 [13:58:50]Write i2c OK [13:58:50]MH_I2C_Read... [13:58:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:50]OFD Sender: No OFD packet to send [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 E9 47 00 90 00 A4 [13:58:51]RAPDU: 90 00 [13:58:51]wFMCommunicate OK [13:58:51]SAM_PROTO_ClearQueue done [13:58:51]KKMCreateOFDPacket [13:58:51]OFDProtocolAddRootSTLVToBuf [13:58:51]FM_MakeSignedData [13:58:51]FM_MakeSignedData [13:58:51]SAM_PROTO_SignData [13:58:51]wFMCommunicate request_size=4 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 0D 01 02 [13:58:51]Write to MH i2c: E2 08 00 EA 47 80 0D 01 02 00 00 00 00 AA [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 EA 47 00 90 00 A5 [13:58:51]RAPDU: 90 00 [13:58:51]wFMCommunicate OK [13:58:51]wFMCommunicate request_size=255 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 9F 98 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 F0 02 00 35 04 06 00 47 [13:58:51]Write to MH i2c: E2 02 01 EB 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 9F 98 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 F0 02 00 35 04 06 00 47 00 00 37 [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 EB 47 00 90 00 A6 [13:58:51]RAPDU: 90 00 [13:58:51]wFMCommunicate OK [13:58:51]wFMCommunicate request_size=10 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 0D 02 02 05 1E A2 AA FE 00 [13:58:51]Write to MH i2c: E2 0D 00 EC 47 80 0D 02 02 05 00 1E A2 AA FE 00 00 00 1F [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 EC 47 00 90 00 A7 [13:58:51]RAPDU: 90 00 [13:58:51]wFMCommunicate OK [13:58:51]wFMCommunicate request_size=4 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 0D 03 02 [13:58:51]Write to MH i2c: E2 08 00 ED 47 80 0D 03 02 00 00 00 00 AF [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 0B 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 0B 00 ED 47 00 55 1B 5B 88 4D 80 AE B5 90 00 33 [13:58:51]RAPDU: 55 1B 5B 88 4D 80 AE B5 90 00 [13:58:51]wFMCommunicate OK [13:58:51]SAM_PROTO_SignData done [13:58:51]FM_MakeSignedData done [13:58:51]CreateOFDProtocolMessage [13:58:51]wFMCommunicate request_size=4 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 11 00 00 [13:58:51]Write to MH i2c: E2 08 00 EE 47 80 11 00 00 00 00 00 00 AF [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 17 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 17 00 EE 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 02 [13:58:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:58:51]wFMCommunicate OK [13:58:51]CreateOFDProtocolMessage done [13:58:51]OFDSenderStorePacket 192598 [13:58:51]StoreOFDPacket docnum=192598 [13:58:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 38 07 01 A2 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 9F 98 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 F0 02 00 35 04 06 00 47 1E A2 AA FE 00 55 1B 5B 88 4D 80 AE B5 [13:58:51]CheckFolder [13:58:51]dirname=/storage/ofd_packets [13:58:51]CheckFolder done [13:58:51]ProducePacketName [13:58:51]name=ofd_packets/00192598 [13:58:51]NVStorageSaveData ofd_packets/00192598 [13:58:51]File name is /storage/ofd_packets/00192598 [13:58:51]Write 301 bytes [13:58:51]NVStorageSaveData done [13:58:51]OFDSenderStorePacket done [13:58:51]KKMCreateOFDPacket done [13:58:51]NVStorageSaveData kkm_last_timestamp [13:58:51]File name is /storage/kkm_last_timestamp [13:58:51]Write 4 bytes [13:58:51]NVStorageSaveData done [13:58:51]ExternCall_PrintAddStr [13:58:51]wPrintStart [13:58:51]Write to MH i2c: 01 00 00 EF 47 36 [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: 01 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: 01 07 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: 01 07 00 EF 47 00 00 00 00 00 FF 0F 4B [13:58:51]RasterBufferAndPrint [13:58:51]line Счет N : (1)31918 [13:58:51]line ИНН: 02508201610067 [13:58:51]line Контрольно-Кассовый Чек [13:58:51]line ПРОДАЖА [13:58:51]line ТРК (МРК, ГНК) : 21 [13:58:51]line Товар: 2710124130 [13:58:51]line Аи-92-К-5 [13:58:51]line 14.950 * 66.90 [13:58:51]line = 1000.16 [13:58:51]line НДС 12% НСП 1% [13:58:51]line > о реализуемом товаре [13:58:51]line ОКРУГЛЕНИЕ: -0.16 [13:58:51]line ИТОГО: 1000.00 [13:58:51]line Внесено: 1000.00 [13:58:51]line СДАЧА: 0.00 [13:58:51]line НСП 1% : 8.85 [13:58:51]line НДС 12% : 106.21 [13:58:51]line Наличными: 1000.00 [13:58:51]line Безнал.: 0.00 [13:58:51]line Место: АЗС № 170 "Партнер Нефть" [13:58:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:58:51]line СНО: Общий режим [13:58:51]line Чек 146 28.10.2024 13:58 [13:58:51]line Смена: 543 ФФД: 1.0 [13:58:51]line ЗНМ: 0300000110 [13:58:51]line РНМ: 0000000000091776 [13:58:51]line Версия ККМ: 001 [13:58:51]line ФМ: 0000000000871754 [13:58:51]line ФД: 192598 [13:58:51]line ФПД: 78196903706112 [13:58:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135855&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192598&fm=78196903706112&tin=02508201610067®Number=0000000000091776&sum=100000 [13:58:51]written 0, free lines is 4095 [13:58:51]OFD Sender: Processing packet 192598 [packets to send 75, broken 74] [13:58:51]ProducePacketName [13:58:51]name=ofd_packets/00192598 [13:58:51]OFD Sender: To server: pG, [13:58:51]CommunicateWithHost lk.salyk.kg:30040 [13:58:51]ConnectInit lk.salyk.kg [13:58:51]Connected sock=10 [13:58:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 38 07 01 A2 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 9F 98 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 F0 02 00 35 04 06 00 47 1E A2 AA FE 00 55 1B 5B 88 4D 80 AE B5 [13:58:51]Write to MH i2c: 01 00 00 1A 48 62 [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: 01 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: 01 07 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: 01 07 00 1A 48 00 00 00 00 00 C4 0C 39 [13:58:51]RasterBufferAndPrint [13:58:51]line [13:58:51]line [13:58:51]line [13:58:51]line [13:58:51]line [13:58:51]written 0, free lines is 3273 [13:58:51]MH_Cut [13:58:51]Write to MH i2c: D1 01 00 21 48 01 3B [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: D1 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: D1 01 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: D1 01 00 21 48 00 3A [13:58:51]Write to MH i2c: 01 00 00 22 48 6A [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A0 DF 47 00 DB D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 F0 02 00 F4 03 04 00 63 3D 1F 67 B6 04 01 00 00 18 68 BC 64 05 7C 28 30 [13:58:52]CommunicateWithHost err = 0 [13:58:52]CheckOFDResponse [13:58:52]1017 (14) - 77093643461234 [13:58:52]1041 (16) - 0000000000871754 [13:58:52]1040 (4) - 192598 [13:58:52]1012 (4) - 28.10.2024 07:29 [13:58:52]1206 (1) - 0 [13:58:52]OFD Sender: Remove packet 192598 [13:58:52]ProducePacketName [13:58:52]name=ofd_packets/00192598 [13:58:52]NVStorageDeleteData [13:58:52]OFD Sender: No OFD packet to send [13:58:52]*** Cut start [13:58:52]*** Partial cut [13:58:52]*** CUTSNS_PIN = 1 [13:58:52]*** CUTSNS_PIN = 0 [13:58:53]*** Brake cut motor [13:58:53]Read from MH i2c: 01 [13:58:53]MH_I2C_Read... [13:58:53]*** Stop cut motor [13:58:53]*** Cut end [13:58:53]Read from MH i2c: 01 07 00 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: 01 07 00 22 48 00 00 00 00 00 FF 0F 7F [13:58:53]process_action close_receipt done [13:58:53]requested_data is exist [13:58:53]produce_requested_data [13:58:53]requested_item fm.sn is exist - process it [13:58:53]wFMCommunicate request_size=4 [13:58:53]MH_SAM_APDU [13:58:53]CAPDU: 80 11 00 00 [13:58:53]Write to MH i2c: E2 08 00 23 48 80 11 00 00 00 00 00 00 E5 [13:58:53]Write i2c OK [13:58:53]MH_I2C_Read... [13:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:53]Read from MH i2c: E2 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: E2 17 00 [13:58:53]MH_I2C_Read... [13:58:53]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 31 37 35 34 90 00 38 [13:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:58:53]wFMCommunicate OK [13:58:53]requested_item fd.num is exist - process it [13:58:53]SAM_PROTO_GetFieldsCounters [13:58:53]wFMCommunicate request_size=4 [13:58:53]MH_SAM_APDU [13:58:53]CAPDU: 80 13 00 00 [13:58:53]Write to MH i2c: E2 08 00 24 48 80 13 00 00 00 00 00 00 E8 [13:58:53]Write i2c OK [13:58:53]MH_I2C_Read... [13:58:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:53]Read from MH i2c: E2 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: E2 62 00 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: E2 62 00 24 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 56 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [13:58:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 56 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:53]wFMCommunicate OK [13:58:53]SAM_PROTO_GetFieldsCounters done [13:58:53]requested_item shift.num is exist - process it [13:58:53]requested_item shift.opened is exist - process it [13:58:53]req_shift_opened [13:58:53]FM_GetShiftState [13:58:53]SAM_PROTO_GetShiftState [13:58:53]wFMCommunicate request_size=4 [13:58:53]MH_SAM_APDU [13:58:53]CAPDU: 80 13 01 00 [13:58:53]Write to MH i2c: E2 08 00 25 48 80 13 01 00 00 00 00 00 EA [13:58:53]Write i2c OK [13:58:53]MH_I2C_Read... [13:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:53]Read from MH i2c: E2 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: E2 0E 00 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: E2 0E 00 25 48 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3A [13:58:53]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:58:53]wFMCommunicate OK [13:58:53]SAM_PROTO_GetShiftState done [13:58:53]FM_GetShiftState done [13:58:53]req_shift_opened done [13:58:53]requested_item shift.open_date is exist - process it [13:58:53]req_shift_open_date [13:58:53]req_shift_open_date done [13:58:53]produce_requested_data done [13:58:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192598,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:58:53]process_action_free close_receipt [13:58:53]json_value_free [13:58:53]json_value_free done [13:58:53]process_json_proto returns [13:58:53]Send response to host [13:58:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192598,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:58:53]free response buf [13:58:53]execute_script done [13:58:53]execute_script returns [13:58:53]free content buf [13:58:53]Sock 7.Close socket [13:58:53]Sock 7.Thread stoped [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:18]accept exits with 9 [13:59:18]New connection [13:59:18]New thread 3066707300 created [13:59:18]Thread 3066563940 joined [13:59:18]Waiting for new connection... [13:59:18] Sock 9.Parse request [13:59:18]Sock 9.Check first char [13:59:18]Sock 9.First char is OK [13:59:18]request: POST /json_proto HTTP/1.0 [13:59:18]Method: POST [13:59:18]URL: /json_proto [13:59:18]Method is POST - this is cgi request [13:59:18]url: /json_proto [13:59:18]query_string will be loaded in cgi processing [13:59:18]execute_cgi json_proto POST (null) [13:59:18]execute_cgi path=json_proto method=POST [13:59:18]POST find Content-Length [13:59:18]Host: 172.17.63.131:8080 [13:59:18]Content-Length: 677 [13:59:18]Content-Type: application/json [13:59:18] [13:59:18]POST finish read [13:59:18]Found Content-Length = 677 [13:59:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:18]execute_script... [13:59:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:18]POST & json_proto [13:59:18]process_json_proto [13:59:18]json parsed OK: [13:59:18]protocol is kg_v1.0 [13:59:18]action value=close_receipt [13:59:18]process_action close_receipt [13:59:18]cmd_close_receipt [13:59:18]MH_GetDate [13:59:18]Write to MH i2c: F0 00 00 26 48 5D [13:59:18]Write i2c OK [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: F0 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: F0 09 00 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: F0 09 00 26 48 00 BC 98 1F 67 22 05 6E 64 39 [13:59:18]GetLastDocTimeStamp 1730123935 [13:59:18]current date 1730123964 [13:59:18]FM_GetShiftState [13:59:18]SAM_PROTO_GetShiftState [13:59:18]wFMCommunicate request_size=4 [13:59:18]MH_SAM_APDU [13:59:18]CAPDU: 80 13 01 00 [13:59:18]Write to MH i2c: E2 08 00 27 48 80 13 01 00 00 00 00 00 EC [13:59:18]Write i2c OK [13:59:18]MH_I2C_Read... [13:59:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:18]Read from MH i2c: E2 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: E2 0E 00 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: E2 0E 00 27 48 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3C [13:59:18]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:59:18]wFMCommunicate OK [13:59:18]SAM_PROTO_GetShiftState done [13:59:18]FM_GetShiftState done [13:59:18]opened in 1730075620 [13:59:18]opened+sec_in_day 1730162020 [13:59:18]quantity*price = 70044 [13:59:18]sum+1 = 70045 [13:59:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 147 28.10.2024 13:59 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192599 ФПД: 91722187657180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135924&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192599&fm=91722187657180&tin=02508201610067®Number=0000000000091776&sum=70000 [13:59:19]StoreToDocumentArchive [13:59:19]shift 543 fd 192599 [13:59:19]save to /storage/0543/doc_00192599 [13:59:19]save last doc name /storage/0543/doc_00192599 to /storage/kkm_last_doc_name [13:59:19]save OK [13:59:19]Clear old archive folders... [13:59:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:19]tlvbuf is 0197AF10 [13:59:19]SAM_PROTO_ClearQueue [13:59:19]wFMCommunicate request_size=4 [13:59:19]MH_SAM_APDU [13:59:19]CAPDU: 80 09 00 00 [13:59:19]Write to MH i2c: E2 08 00 34 48 80 09 00 00 00 00 00 00 EE [13:59:19]Write i2c OK [13:59:19]MH_I2C_Read... [13:59:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:19]Read from MH i2c: E2 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 03 00 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 03 00 34 48 00 90 00 F0 [13:59:19]RAPDU: 90 00 [13:59:19]wFMCommunicate OK [13:59:19]SAM_PROTO_ClearQueue done [13:59:19]KKMCreateOFDPacket [13:59:19]OFDProtocolAddRootSTLVToBuf [13:59:19]FM_MakeSignedData [13:59:19]FM_MakeSignedData [13:59:19]SAM_PROTO_SignData [13:59:19]wFMCommunicate request_size=4 [13:59:19]MH_SAM_APDU [13:59:19]CAPDU: 80 0D 01 02 [13:59:19]Write to MH i2c: E2 08 00 35 48 80 0D 01 02 00 00 00 00 F6 [13:59:19]Write i2c OK [13:59:19]MH_I2C_Read... [13:59:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:19]Read from MH i2c: E2 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 03 00 [13:59:19]MH_I2C_Read... [13:59:19]Read from MH i2c: E2 03 00 35 48 00 90 00 F1 [13:59:19]RAPDU: 90 00 [13:59:19]wFMCommunicate OK [13:59:19]wFMCommunicate request_size=255 [13:59:19]MH_SAM_APDU [13:59:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 BC 98 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 F0 02 00 35 04 06 00 53 [13:59:19]Write to MH i2c: E2 02 01 36 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 BC 98 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 F0 02 00 35 04 06 00 53 00 00 C4 [13:59:19]Write i2c OK [13:59:19]MH_I2C_Read... [13:59:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:20]Read from MH i2c: E2 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 03 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 03 00 36 48 00 90 00 F2 [13:59:20]RAPDU: 90 00 [13:59:20]wFMCommunicate OK [13:59:20]wFMCommunicate request_size=10 [13:59:20]MH_SAM_APDU [13:59:20]CAPDU: 80 0D 02 02 05 6B BC 69 CF DC [13:59:20]Write to MH i2c: E2 0D 00 37 48 80 0D 02 02 05 00 6B BC 69 CF DC 00 00 3E [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:20]Read from MH i2c: E2 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 03 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 03 00 37 48 00 90 00 F3 [13:59:20]RAPDU: 90 00 [13:59:20]wFMCommunicate OK [13:59:20]wFMCommunicate request_size=4 [13:59:20]MH_SAM_APDU [13:59:20]CAPDU: 80 0D 03 02 [13:59:20]Write to MH i2c: E2 08 00 38 48 80 0D 03 02 00 00 00 00 FB [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:20]Read from MH i2c: E2 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 0B 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 0B 00 38 48 00 B4 C0 E5 DB 71 AB 17 6E 90 00 D1 [13:59:20]RAPDU: B4 C0 E5 DB 71 AB 17 6E 90 00 [13:59:20]wFMCommunicate OK [13:59:20]SAM_PROTO_SignData done [13:59:20]FM_MakeSignedData done [13:59:20]CreateOFDProtocolMessage [13:59:20]wFMCommunicate request_size=4 [13:59:20]MH_SAM_APDU [13:59:20]CAPDU: 80 11 00 00 [13:59:20]Write to MH i2c: E2 08 00 39 48 80 11 00 00 00 00 00 00 FB [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:20]Read from MH i2c: E2 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 17 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 17 00 39 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4E [13:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:59:20]wFMCommunicate OK [13:59:20]CreateOFDProtocolMessage done [13:59:20]OFDSenderStorePacket 192599 [13:59:20]StoreOFDPacket docnum=192599 [13:59:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 65 54 07 01 0F 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 BC 98 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 F0 02 00 35 04 06 00 53 6B BC 69 CF DC B4 C0 E5 DB 71 AB 17 6E [13:59:20]CheckFolder [13:59:20]dirname=/storage/ofd_packets [13:59:20]CheckFolder done [13:59:20]ProducePacketName [13:59:20]name=ofd_packets/00192599 [13:59:20]NVStorageSaveData ofd_packets/00192599 [13:59:20]File name is /storage/ofd_packets/00192599 [13:59:20]Write 301 bytes [13:59:20]NVStorageSaveData done [13:59:20]OFDSenderStorePacket done [13:59:20]KKMCreateOFDPacket done [13:59:20]NVStorageSaveData kkm_last_timestamp [13:59:20]File name is /storage/kkm_last_timestamp [13:59:20]Write 4 bytes [13:59:20]NVStorageSaveData done [13:59:20]OFD Sender: Processing packet 192599 [packets to send 75, broken 74] [13:59:20]ProducePacketName [13:59:20]name=ofd_packets/00192599 [13:59:20]OFD Sender: To server: pG, [13:59:20]CommunicateWithHost lk.salyk.kg:30040 [13:59:20]ConnectInit lk.salyk.kg [13:59:20]ExternCall_PrintAddStr [13:59:20]wPrintStart [13:59:20]Write to MH i2c: 01 00 00 3A 48 82 [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: 01 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: 01 07 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: 01 07 00 3A 48 00 00 00 00 00 FF 0F 97 [13:59:20]RasterBufferAndPrint [13:59:20]line Счет N : (1)31919 [13:59:20]line ИНН: 02508201610067 [13:59:20]line Контрольно-Кассовый Чек [13:59:20]line ПРОДАЖА [13:59:20]line ТРК (МРК, ГНК) : 12 [13:59:20]line Товар: 2710124130 [13:59:20]line Аи-92-К-5 [13:59:20]line 10.470 * 66.90 [13:59:20]line = 700.44 [13:59:20]line НДС 12% НСП 1% [13:59:20]line > о реализуемом товаре [13:59:20]line ОКРУГЛЕНИЕ: -0.44 [13:59:20]line ИТОГО: 700.00 [13:59:20]line Внесено: 700.00 [13:59:20]line СДАЧА: 0.00 [13:59:20]line НСП 1% : 6.20 [13:59:20]line НДС 12% : 74.38 [13:59:20]line Наличными: 700.00 [13:59:20]line Безнал.: 0.00 [13:59:20]line Место: АЗС № 170 "Партнер Нефть" [13:59:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:59:20]line СНО: Общий режим [13:59:20]line Чек 147 28.10.2024 13:59 [13:59:20]line Смена: 543 ФФД: 1.0 [13:59:20]line ЗНМ: 0300000110 [13:59:20]line РНМ: 0000000000091776 [13:59:20]line Версия ККМ: 001 [13:59:20]line ФМ: 0000000000871754 [13:59:20]line ФД: 192599 [13:59:20]line ФПД: 91722187657180 [13:59:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135924&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192599&fm=91722187657180&tin=02508201610067®Number=0000000000091776&sum=70000 [13:59:20]Connected sock=11 [13:59:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 65 54 07 01 0F 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 BC 98 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 F0 02 00 35 04 06 00 53 6B BC 69 CF DC B4 C0 E5 DB 71 AB 17 6E [13:59:20]written 0, free lines is 4095 [13:59:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7E 0B 47 00 9C 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 F0 02 00 F4 03 04 00 7F 3D 1F 67 B6 04 01 00 00 BD 30 3B D2 BF 08 01 02 [13:59:20]CommunicateWithHost err = 0 [13:59:20]CheckOFDResponse [13:59:20]1017 (14) - 77093643461234 [13:59:20]1041 (16) - 0000000000871754 [13:59:20]1040 (4) - 192599 [13:59:20]1012 (4) - 28.10.2024 07:30 [13:59:20]1206 (1) - 0 [13:59:20]OFD Sender: Remove packet 192599 [13:59:20]ProducePacketName [13:59:20]name=ofd_packets/00192599 [13:59:20]NVStorageDeleteData [13:59:21]Write to MH i2c: 01 00 00 65 48 AD [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: 01 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: 01 07 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: 01 07 00 65 48 00 00 00 00 00 BA 0C 7A [13:59:21]RasterBufferAndPrint [13:59:21]line [13:59:21]line [13:59:21]line [13:59:21]line [13:59:21]line [13:59:21]written 0, free lines is 3269 [13:59:21]MH_Cut [13:59:21]Write to MH i2c: D1 01 00 6C 48 01 86 [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: D1 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: D1 01 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: D1 01 00 6C 48 00 85 [13:59:21]Write to MH i2c: 01 00 00 6D 48 B5 [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]OFD Sender: No OFD packet to send [13:59:21]*** Cut start [13:59:21]*** Partial cut [13:59:21]*** CUTSNS_PIN = 1 [13:59:21]*** CUTSNS_PIN = 0 [13:59:22]*** Brake cut motor [13:59:22]Read from MH i2c: 01 [13:59:22]MH_I2C_Read... [13:59:22]*** Stop cut motor [13:59:22]*** Cut end [13:59:22]Read from MH i2c: 01 07 00 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: 01 07 00 6D 48 00 00 00 00 00 FF 0F CA [13:59:22]process_action close_receipt done [13:59:22]requested_data is exist [13:59:22]produce_requested_data [13:59:22]requested_item fm.sn is exist - process it [13:59:22]wFMCommunicate request_size=4 [13:59:22]MH_SAM_APDU [13:59:22]CAPDU: 80 11 00 00 [13:59:22]Write to MH i2c: E2 08 00 6E 48 80 11 00 00 00 00 00 00 30 [13:59:22]Write i2c OK [13:59:22]MH_I2C_Read... [13:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:22]Read from MH i2c: E2 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 17 00 [13:59:22]MH_I2C_Read... [13:59:22]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 31 37 35 34 90 00 83 [13:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:59:22]wFMCommunicate OK [13:59:22]requested_item fd.num is exist - process it [13:59:22]SAM_PROTO_GetFieldsCounters [13:59:22]wFMCommunicate request_size=4 [13:59:22]MH_SAM_APDU [13:59:22]CAPDU: 80 13 00 00 [13:59:22]Write to MH i2c: E2 08 00 6F 48 80 13 00 00 00 00 00 00 33 [13:59:22]Write i2c OK [13:59:22]MH_I2C_Read... [13:59:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:22]Read from MH i2c: E2 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 62 00 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 62 00 6F 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 57 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [13:59:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 57 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:22]wFMCommunicate OK [13:59:22]SAM_PROTO_GetFieldsCounters done [13:59:22]requested_item shift.num is exist - process it [13:59:22]requested_item shift.opened is exist - process it [13:59:22]req_shift_opened [13:59:22]FM_GetShiftState [13:59:22]SAM_PROTO_GetShiftState [13:59:22]wFMCommunicate request_size=4 [13:59:22]MH_SAM_APDU [13:59:22]CAPDU: 80 13 01 00 [13:59:22]Write to MH i2c: E2 08 00 70 48 80 13 01 00 00 00 00 00 35 [13:59:22]Write i2c OK [13:59:22]MH_I2C_Read... [13:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:22]Read from MH i2c: E2 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 0E 00 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 0E 00 70 48 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 85 [13:59:22]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [13:59:22]wFMCommunicate OK [13:59:22]SAM_PROTO_GetShiftState done [13:59:22]FM_GetShiftState done [13:59:22]req_shift_opened done [13:59:22]requested_item shift.open_date is exist - process it [13:59:22]req_shift_open_date [13:59:22]req_shift_open_date done [13:59:22]produce_requested_data done [13:59:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192599,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [13:59:22]process_action_free close_receipt [13:59:22]json_value_free [13:59:22]json_value_free done [13:59:22]process_json_proto returns [13:59:22]Send response to host [13:59:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192599,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [13:59:22]free response buf [13:59:22]execute_script done [13:59:22]execute_script returns [13:59:22]free content buf [13:59:22]Sock 9.Close socket [13:59:22]Sock 9.Thread stoped [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:42]accept exits with 10 [14:05:42]New connection [14:05:42]New thread 3066563940 created [14:05:42]Thread 3066707300 joined [14:05:42]Waiting for new connection... [14:05:42] Sock 10.Parse request [14:05:42]Sock 10.Check first char [14:05:42]Sock 10.First char is OK [14:05:42]request: POST /json_proto HTTP/1.0 [14:05:42]Method: POST [14:05:42]URL: /json_proto [14:05:42]Method is POST - this is cgi request [14:05:42]url: /json_proto [14:05:42]query_string will be loaded in cgi processing [14:05:42]execute_cgi json_proto POST (null) [14:05:42]execute_cgi path=json_proto method=POST [14:05:42]POST find Content-Length [14:05:42]Host: 172.17.63.131:8080 [14:05:42]Content-Length: 862 [14:05:42]Content-Type: application/json [14:05:42] [14:05:42]POST finish read [14:05:42]Found Content-Length = 862 [14:05:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.920, "sum" : 128.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 128.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:42]execute_script... [14:05: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)31920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.920, "sum" : 128.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 128.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:42]POST & json_proto [14:05:42]process_json_proto [14:05:42]json parsed OK: [14:05:42]protocol is kg_v1.0 [14:05:42]action value=close_receipt [14:05:42]process_action close_receipt [14:05:42]cmd_close_receipt [14:05:42]MH_GetDate [14:05:42]Write to MH i2c: F0 00 00 71 48 A8 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: F0 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: F0 09 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: F0 09 00 71 48 00 3B 9A 1F 67 22 05 6E 64 05 [14:05:42]GetLastDocTimeStamp 1730123964 [14:05:42]current date 1730124347 [14:05:42]FM_GetShiftState [14:05:42]SAM_PROTO_GetShiftState [14:05:42]wFMCommunicate request_size=4 [14:05:42]MH_SAM_APDU [14:05:42]CAPDU: 80 13 01 00 [14:05:42]Write to MH i2c: E2 08 00 72 48 80 13 01 00 00 00 00 00 37 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 0E 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 0E 00 72 48 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 87 [14:05:42]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:05:42]wFMCommunicate OK [14:05:42]SAM_PROTO_GetShiftState done [14:05:42]FM_GetShiftState done [14:05:42]opened in 1730075620 [14:05:42]opened+sec_in_day 1730162020 [14:05:42]quantity*price = 12844 [14:05:42]sum+1 = 12846 [14:05:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 128.45 НСП 1% : 1.14 НДС 12% : 13.64 Наличными: 0.00 Безнал.: 128.45 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 148 28.10.2024 14:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192600 ФПД: 190108945039961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T140547&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192600&fm=190108945039961&tin=02508201610067®Number=0000000000091776&sum=12845 [14:05:43]StoreToDocumentArchive [14:05:43]shift 543 fd 192600 [14:05:43]save to /storage/0543/doc_00192600 [14:05:43]save last doc name /storage/0543/doc_00192600 to /storage/kkm_last_doc_name [14:05:43]save OK [14:05:43]Clear old archive folders... [14:05:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:43]tlvbuf is B6E9E4D0 [14:05:43]SAM_PROTO_ClearQueue [14:05:43]wFMCommunicate request_size=4 [14:05:43]MH_SAM_APDU [14:05:43]CAPDU: 80 09 00 00 [14:05:43]Write to MH i2c: E2 08 00 7F 48 80 09 00 00 00 00 00 00 39 [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:43]Read from MH i2c: E2 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 03 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 03 00 7F 48 00 90 00 3B [14:05:43]RAPDU: 90 00 [14:05:43]wFMCommunicate OK [14:05:43]SAM_PROTO_ClearQueue done [14:05:43]KKMCreateOFDPacket [14:05:43]OFDProtocolAddRootSTLVToBuf [14:05:43]FM_MakeSignedData [14:05:43]FM_MakeSignedData [14:05:43]SAM_PROTO_SignData [14:05:43]wFMCommunicate request_size=4 [14:05:43]MH_SAM_APDU [14:05:43]CAPDU: 80 0D 01 02 [14:05:43]Write to MH i2c: E2 08 00 80 48 80 0D 01 02 00 00 00 00 41 [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:43]Read from MH i2c: E2 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 03 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 03 00 80 48 00 90 00 3C [14:05:43]RAPDU: 90 00 [14:05:43]wFMCommunicate OK [14:05:43]wFMCommunicate request_size=255 [14:05:43]MH_SAM_APDU [14:05: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 80 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 3B 9A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 F0 02 00 35 04 06 00 AC [14:05:43]Write to MH i2c: E2 02 01 81 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 80 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 3B 9A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 F0 02 00 35 04 06 00 AC 00 00 01 [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:43]Read from MH i2c: E2 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 03 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 03 00 81 48 00 90 00 3D [14:05:43]RAPDU: 90 00 [14:05:43]wFMCommunicate OK [14:05:43]wFMCommunicate request_size=10 [14:05:43]MH_SAM_APDU [14:05:43]CAPDU: 80 0D 02 02 05 E7 30 23 42 59 [14:05:43]Write to MH i2c: E2 0D 00 82 48 80 0D 02 02 05 00 E7 30 23 42 59 00 00 23 [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:43]Read from MH i2c: E2 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 03 00 [14:05:43]MH_I2C_Read... [14:05:43]Read from MH i2c: E2 03 00 82 48 00 90 00 3E [14:05:43]RAPDU: 90 00 [14:05:43]wFMCommunicate OK [14:05:43]wFMCommunicate request_size=4 [14:05:43]MH_SAM_APDU [14:05:43]CAPDU: 80 0D 03 02 [14:05:43]Write to MH i2c: E2 08 00 83 48 80 0D 03 02 00 00 00 00 46 [14:05:43]Write i2c OK [14:05:43]MH_I2C_Read... [14:05:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:44]Read from MH i2c: E2 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 0B 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 0B 00 83 48 00 81 7D 24 A8 44 D9 33 08 90 00 69 [14:05:44]RAPDU: 81 7D 24 A8 44 D9 33 08 90 00 [14:05:44]wFMCommunicate OK [14:05:44]SAM_PROTO_SignData done [14:05:44]FM_MakeSignedData done [14:05:44]CreateOFDProtocolMessage [14:05:44]wFMCommunicate request_size=4 [14:05:44]MH_SAM_APDU [14:05:44]CAPDU: 80 11 00 00 [14:05:44]Write to MH i2c: E2 08 00 84 48 80 11 00 00 00 00 00 00 46 [14:05:44]Write i2c OK [14:05:44]MH_I2C_Read... [14:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:44]Read from MH i2c: E2 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 17 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 17 00 84 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 99 [14:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:05:44]wFMCommunicate OK [14:05:44]CreateOFDProtocolMessage done [14:05:44]OFDSenderStorePacket 192600 [14:05:44]StoreOFDPacket docnum=192600 [14:05:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B4 F4 07 01 AF 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 3B 9A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 F0 02 00 35 04 06 00 AC E7 30 23 42 59 81 7D 24 A8 44 D9 33 08 [14:05:44]CheckFolder [14:05:44]dirname=/storage/ofd_packets [14:05:44]CheckFolder done [14:05:44]ProducePacketName [14:05:44]name=ofd_packets/00192600 [14:05:44]NVStorageSaveData ofd_packets/00192600 [14:05:44]File name is /storage/ofd_packets/00192600 [14:05:44]Write 301 bytes [14:05:44]NVStorageSaveData done [14:05:44]OFDSenderStorePacket done [14:05:44]KKMCreateOFDPacket done [14:05:44]NVStorageSaveData kkm_last_timestamp [14:05:44]File name is /storage/kkm_last_timestamp [14:05:44]Write 4 bytes [14:05:44]NVStorageSaveData done [14:05:44]ExternCall_PrintAddStr [14:05:44]wPrintStart [14:05:44]Write to MH i2c: 01 00 00 85 48 CD [14:05:44]Write i2c OK [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: 01 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: 01 07 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: 01 07 00 85 48 00 00 00 00 00 FF 0F E2 [14:05:44]RasterBufferAndPrint [14:05:44]line Счет N : (1)31920 [14:05:44]line ИНН: 02508201610067 [14:05:44]line Контрольно-Кассовый Чек [14:05:44]line ПРОДАЖА [14:05:44]line ТРК (МРК, ГНК) : 21 [14:05:44]line Товар: 2710124130 [14:05:44]line Аи-92-К-5 [14:05:44]line 1.920 * 66.90 [14:05:44]line = 128.45 [14:05:44]line НДС 12% НСП 1% [14:05:44]line > о реализуемом товаре [14:05:44]line ИТОГО: 128.45 [14:05:44]line НСП 1% : 1.14 [14:05:44]line НДС 12% : 13.64 [14:05:44]line Наличными: 0.00 [14:05:44]line Безнал.: 128.45 [14:05:44]line Место: АЗС № 170 "Партнер Нефть" [14:05:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:05:44]line СНО: Общий режим [14:05:44]line Чек 148 28.10.2024 14:05 [14:05:44]line Смена: 543 ФФД: 1.0 [14:05:44]line ЗНМ: 0300000110 [14:05:44]line РНМ: 0000000000091776 [14:05:44]line Версия ККМ: 001 [14:05:44]line Платежная система: Кыргызкоммерцбанк [14:05:44]line ФМ: 0000000000871754 [14:05:44]line ФД: 192600 [14:05:44]line ФПД: 190108945039961 [14:05:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T140547&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192600&fm=190108945039961&tin=02508201610067®Number=0000000000091776&sum=12845 [14:05:44]OFD Sender: Processing packet 192600 [packets to send 75, broken 74] [14:05:44]ProducePacketName [14:05:44]name=ofd_packets/00192600 [14:05:44]OFD Sender: To server: pG, [14:05:44]CommunicateWithHost lk.salyk.kg:30040 [14:05:44]ConnectInit lk.salyk.kg [14:05:44]written 0, free lines is 4095 [14:05:44]Connected sock=9 [14:05:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B4 F4 07 01 AF 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 3B 9A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 F0 02 00 35 04 06 00 AC E7 30 23 42 59 81 7D 24 A8 44 D9 33 08 [14:05:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 85 96 47 00 4F 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 F0 02 00 F4 03 04 00 FF 3E 1F 67 B6 04 01 00 00 6C 52 59 9D F5 2B B8 09 [14:05:44]CommunicateWithHost err = 0 [14:05:44]CheckOFDResponse [14:05:44]1017 (14) - 77093643461234 [14:05:44]1041 (16) - 0000000000871754 [14:05:44]1040 (4) - 192600 [14:05:44]1012 (4) - 28.10.2024 07:36 [14:05:44]1206 (1) - 0 [14:05:44]OFD Sender: Remove packet 192600 [14:05:44]ProducePacketName [14:05:44]name=ofd_packets/00192600 [14:05:44]NVStorageDeleteData [14:05:44]Write to MH i2c: 01 00 00 AF 48 F7 [14:05:44]Write i2c OK [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: 01 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: 01 07 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: 01 07 00 AF 48 00 00 00 00 00 D4 0C DE [14:05:44]RasterBufferAndPrint [14:05:44]line [14:05:44]line [14:05:44]line [14:05:44]line [14:05:44]line [14:05:44]written 0, free lines is 3290 [14:05:44]MH_Cut [14:05:44]Write to MH i2c: D1 01 00 B6 48 01 D0 [14:05:44]Write i2c OK [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: D1 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: D1 01 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: D1 01 00 B6 48 00 CF [14:05:44]Write to MH i2c: 01 00 00 B7 48 FF [14:05:44]Write i2c OK [14:05:44]MH_I2C_Read... [14:05:45]OFD Sender: No OFD packet to send [14:05:45]*** Cut start [14:05:45]*** Partial cut [14:05:45]*** CUTSNS_PIN = 1 [14:05:45]*** CUTSNS_PIN = 0 [14:05:45]*** Brake cut motor [14:05:46]Read from MH i2c: 01 [14:05:46]MH_I2C_Read... [14:05:46]*** Stop cut motor [14:05:46]*** Cut end [14:05:46]Read from MH i2c: 01 07 00 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: 01 07 00 B7 48 00 00 00 00 00 FF 0F 14 [14:05:46]process_action close_receipt done [14:05:46]requested_data is exist [14:05:46]produce_requested_data [14:05:46]requested_item fm.sn is exist - process it [14:05:46]wFMCommunicate request_size=4 [14:05:46]MH_SAM_APDU [14:05:46]CAPDU: 80 11 00 00 [14:05:46]Write to MH i2c: E2 08 00 B8 48 80 11 00 00 00 00 00 00 7A [14:05:46]Write i2c OK [14:05:46]MH_I2C_Read... [14:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:46]Read from MH i2c: E2 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: E2 17 00 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: E2 17 00 B8 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CD [14:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:05:46]wFMCommunicate OK [14:05:46]requested_item fd.num is exist - process it [14:05:46]SAM_PROTO_GetFieldsCounters [14:05:46]wFMCommunicate request_size=4 [14:05:46]MH_SAM_APDU [14:05:46]CAPDU: 80 13 00 00 [14:05:46]Write to MH i2c: E2 08 00 B9 48 80 13 00 00 00 00 00 00 7D [14:05:46]Write i2c OK [14:05:46]MH_I2C_Read... [14:05:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:46]Read from MH i2c: E2 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: E2 62 00 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: E2 62 00 B9 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 58 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [14:05:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 58 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:46]wFMCommunicate OK [14:05:46]SAM_PROTO_GetFieldsCounters done [14:05:46]requested_item shift.num is exist - process it [14:05:46]requested_item shift.opened is exist - process it [14:05:46]req_shift_opened [14:05:46]FM_GetShiftState [14:05:46]SAM_PROTO_GetShiftState [14:05:46]wFMCommunicate request_size=4 [14:05:46]MH_SAM_APDU [14:05:46]CAPDU: 80 13 01 00 [14:05:46]Write to MH i2c: E2 08 00 BA 48 80 13 01 00 00 00 00 00 7F [14:05:46]Write i2c OK [14:05:46]MH_I2C_Read... [14:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:46]Read from MH i2c: E2 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: E2 0E 00 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: E2 0E 00 BA 48 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CF [14:05:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:05:46]wFMCommunicate OK [14:05:46]SAM_PROTO_GetShiftState done [14:05:46]FM_GetShiftState done [14:05:46]req_shift_opened done [14:05:46]requested_item shift.open_date is exist - process it [14:05:46]req_shift_open_date [14:05:46]req_shift_open_date done [14:05:46]produce_requested_data done [14:05:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192600,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:05:46]process_action_free close_receipt [14:05:46]json_value_free [14:05:46]json_value_free done [14:05:46]process_json_proto returns [14:05:46]Send response to host [14:05:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192600,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:05:46]free response buf [14:05:46]execute_script done [14:05:46]execute_script returns [14:05:46]free content buf [14:05:46]Sock 10.Close socket [14:05:46]Sock 10.Thread stoped [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:02]accept exits with 7 [14:06:02]New connection [14:06:02]New thread 3066707300 created [14:06:02]Thread 3066563940 joined [14:06:02]Waiting for new connection... [14:06:02] Sock 7.Parse request [14:06:02]Sock 7.Check first char [14:06:02]Sock 7.First char is OK [14:06:02]request: POST /json_proto HTTP/1.0 [14:06:02]Method: POST [14:06:02]URL: /json_proto [14:06:02]Method is POST - this is cgi request [14:06:02]url: /json_proto [14:06:02]query_string will be loaded in cgi processing [14:06:02]execute_cgi json_proto POST (null) [14:06:02]execute_cgi path=json_proto method=POST [14:06:02]POST find Content-Length [14:06:02]Host: 172.17.63.131:8080 [14:06:02]Content-Length: 672 [14:06:02]Content-Type: application/json [14:06:02] [14:06:02]POST finish read [14:06:02]Found Content-Length = 672 [14:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.080, "sum" : 72.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 72.00, "total" : 72.00, "payments": [ { "type": 0, "sum" : 72.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:02]execute_script... [14:06:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.080, "sum" : 72.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 72.00, "total" : 72.00, "payments": [ { "type": 0, "sum" : 72.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:02]POST & json_proto [14:06:02]process_json_proto [14:06:02]json parsed OK: [14:06:02]protocol is kg_v1.0 [14:06:02]action value=close_receipt [14:06:02]process_action close_receipt [14:06:02]cmd_close_receipt [14:06:02]MH_GetDate [14:06:02]Write to MH i2c: F0 00 00 BB 48 F2 [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: F0 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: F0 09 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: F0 09 00 BB 48 00 4F 9A 1F 67 22 05 6E 64 63 [14:06:02]GetLastDocTimeStamp 1730124347 [14:06:02]current date 1730124367 [14:06:02]FM_GetShiftState [14:06:02]SAM_PROTO_GetShiftState [14:06:02]wFMCommunicate request_size=4 [14:06:02]MH_SAM_APDU [14:06:02]CAPDU: 80 13 01 00 [14:06:02]Write to MH i2c: E2 08 00 BC 48 80 13 01 00 00 00 00 00 81 [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:02]Read from MH i2c: E2 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 0E 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 0E 00 BC 48 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D1 [14:06:02]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:06:02]wFMCommunicate OK [14:06:02]SAM_PROTO_GetShiftState done [14:06:02]FM_GetShiftState done [14:06:02]opened in 1730075620 [14:06:02]opened+sec_in_day 1730162020 [14:06:02]quantity*price = 7225 [14:06:02]sum+1 = 7226 [14:06:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 72.00 Внесено: 72.00 СДАЧА: 0.00 НСП 1% : 0.64 НДС 12% : 7.67 Наличными: 72.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 149 28.10.2024 14:06 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192601 ФПД: 148443307808509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T140607&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192601&fm=148443307808509&tin=02508201610067®Number=0000000000091776&sum=7200 [14:06:03]StoreToDocumentArchive [14:06:03]shift 543 fd 192601 [14:06:03]save to /storage/0543/doc_00192601 [14:06:03]save last doc name /storage/0543/doc_00192601 to /storage/kkm_last_doc_name [14:06:03]save OK [14:06:03]Clear old archive folders... [14:06:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:03]tlvbuf is B6F1CEC0 [14:06:03]SAM_PROTO_ClearQueue [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 09 00 00 [14:06:03]Write to MH i2c: E2 08 00 C9 48 80 09 00 00 00 00 00 00 83 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 03 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 03 00 C9 48 00 90 00 85 [14:06:03]RAPDU: 90 00 [14:06:03]wFMCommunicate OK [14:06:03]SAM_PROTO_ClearQueue done [14:06:03]KKMCreateOFDPacket [14:06:03]OFDProtocolAddRootSTLVToBuf [14:06:03]FM_MakeSignedData [14:06:03]FM_MakeSignedData [14:06:03]SAM_PROTO_SignData [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 0D 01 02 [14:06:03]Write to MH i2c: E2 08 00 CA 48 80 0D 01 02 00 00 00 00 8B [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 03 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 03 00 CA 48 00 90 00 86 [14:06:03]RAPDU: 90 00 [14:06:03]wFMCommunicate OK [14:06:03]wFMCommunicate request_size=255 [14:06:03]MH_SAM_APDU [14: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 38 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 02 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 4F 9A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 F0 02 00 35 04 06 00 87 [14:06:03]Write to MH i2c: E2 02 01 CB 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 02 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 4F 9A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 F0 02 00 35 04 06 00 87 00 00 17 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 03 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 03 00 CB 48 00 90 00 87 [14:06:03]RAPDU: 90 00 [14:06:03]wFMCommunicate OK [14:06:03]wFMCommunicate request_size=10 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 0D 02 02 05 02 26 A1 96 FD [14:06:03]Write to MH i2c: E2 0D 00 CC 48 80 0D 02 02 05 00 02 26 A1 96 FD 00 00 F4 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 03 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 03 00 CC 48 00 90 00 88 [14:06:03]RAPDU: 90 00 [14:06:03]wFMCommunicate OK [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 0D 03 02 [14:06:03]Write to MH i2c: E2 08 00 CD 48 80 0D 03 02 00 00 00 00 90 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 0B 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 0B 00 CD 48 00 0A F8 A8 5C 64 B9 CD 0A 90 00 8B [14:06:03]RAPDU: 0A F8 A8 5C 64 B9 CD 0A 90 00 [14:06:03]wFMCommunicate OK [14:06:03]SAM_PROTO_SignData done [14:06:03]FM_MakeSignedData done [14:06:03]CreateOFDProtocolMessage [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 11 00 00 [14:06:03]Write to MH i2c: E2 08 00 CE 48 80 11 00 00 00 00 00 00 90 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 17 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 17 00 CE 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E3 [14:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:06:03]wFMCommunicate OK [14:06:03]CreateOFDProtocolMessage done [14:06:03]OFDSenderStorePacket 192601 [14:06:03]StoreOFDPacket docnum=192601 [14:06:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E9 84 07 01 92 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 02 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 4F 9A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 F0 02 00 35 04 06 00 87 02 26 A1 96 FD 0A F8 A8 5C 64 B9 CD 0A [14:06:03]CheckFolder [14:06:03]dirname=/storage/ofd_packets [14:06:03]CheckFolder done [14:06:03]ProducePacketName [14:06:03]name=ofd_packets/00192601 [14:06:03]NVStorageSaveData ofd_packets/00192601 [14:06:03]File name is /storage/ofd_packets/00192601 [14:06:03]Write 301 bytes [14:06:03]NVStorageSaveData done [14:06:03]OFDSenderStorePacket done [14:06:03]KKMCreateOFDPacket done [14:06:03]NVStorageSaveData kkm_last_timestamp [14:06:03]File name is /storage/kkm_last_timestamp [14:06:03]Write 4 bytes [14:06:03]NVStorageSaveData done [14:06:03]ExternCall_PrintAddStr [14:06:03]wPrintStart [14:06:03]Write to MH i2c: 01 00 00 CF 48 17 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: 01 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: 01 07 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: 01 07 00 CF 48 00 00 00 00 00 FF 0F 2C [14:06:03]RasterBufferAndPrint [14:06:03]line Счет N : (1)31921 [14:06:03]line ИНН: 02508201610067 [14:06:03]line Контрольно-Кассовый Чек [14:06:03]line ПРОДАЖА [14:06:03]line ТРК (МРК, ГНК) : 21 [14:06:03]line Товар: 2710124130 [14:06:03]line Аи-92-К-5 [14:06:03]line 1.080 * 66.90 [14:06:03]line = 72.25 [14:06:03]line НДС 12% НСП 1% [14:06:03]line > о реализуемом товаре [14:06:03]line ОКРУГЛЕНИЕ: -0.25 [14:06:03]line ИТОГО: 72.00 [14:06:03]line Внесено: 72.00 [14:06:03]line СДАЧА: 0.00 [14:06:03]line НСП 1% : 0.64 [14:06:03]line НДС 12% : 7.67 [14:06:03]line Наличными: 72.00 [14:06:03]line Безнал.: 0.00 [14:06:03]line Место: АЗС № 170 "Партнер Нефть" [14:06:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:06:03]line СНО: Общий режим [14:06:03]line Чек 149 28.10.2024 14:06 [14:06:03]line Смена: 543 ФФД: 1.0 [14:06:03]line ЗНМ: 0300000110 [14:06:03]line РНМ: 0000000000091776 [14:06:03]line Версия ККМ: 001 [14:06:03]line ФМ: 0000000000871754 [14:06:03]line ФД: 192601 [14:06:03]line ФПД: 148443307808509 [14:06:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T140607&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192601&fm=148443307808509&tin=02508201610067®Number=0000000000091776&sum=7200 [14:06:03]written 0, free lines is 4095 [14:06:03]OFD Sender: Processing packet 192601 [packets to send 75, broken 74] [14:06:03]ProducePacketName [14:06:03]name=ofd_packets/00192601 [14:06:03]OFD Sender: To server: pG, [14:06:03]CommunicateWithHost lk.salyk.kg:30040 [14:06:03]ConnectInit lk.salyk.kg [14:06:04]Connected sock=10 [14: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 31 37 35 34 0F 01 00 00 E9 84 07 01 92 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 02 00 00 00 00 07 04 06 00 20 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 4F 9A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 F0 02 00 35 04 06 00 87 02 26 A1 96 FD 0A F8 A8 5C 64 B9 CD 0A [14:06:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6A FB 47 00 5D F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 F0 02 00 F4 03 04 00 13 3F 1F 67 B6 04 01 00 00 E1 4C 8C 73 94 9E 3F D1 [14:06:04]CommunicateWithHost err = 0 [14:06:04]CheckOFDResponse [14:06:04]1017 (14) - 77093643461234 [14:06:04]1041 (16) - 0000000000871754 [14:06:04]1040 (4) - 192601 [14:06:04]1012 (4) - 28.10.2024 07:36 [14:06:04]1206 (1) - 0 [14:06:04]OFD Sender: Remove packet 192601 [14:06:04]ProducePacketName [14:06:04]name=ofd_packets/00192601 [14:06:04]NVStorageDeleteData [14:06:04]Write to MH i2c: 01 00 00 FA 48 42 [14:06:04]Write i2c OK [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: 01 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: 01 07 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: 01 07 00 FA 48 00 00 00 00 00 C0 0C 15 [14:06:04]RasterBufferAndPrint [14:06:04]line [14:06:04]line [14:06:04]line [14:06:04]line [14:06:04]line [14:06:04]written 0, free lines is 3271 [14:06:04]MH_Cut [14:06:04]Write to MH i2c: D1 01 00 01 49 01 1C [14:06:04]Write i2c OK [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: D1 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: D1 01 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: D1 01 00 01 49 00 1B [14:06:04]Write to MH i2c: 01 00 00 02 49 4B [14:06:04]Write i2c OK [14:06:04]MH_I2C_Read... [14:06:04]OFD Sender: No OFD packet to send [14:06:05]*** Cut start [14:06:05]*** Partial cut [14:06:05]*** CUTSNS_PIN = 1 [14:06:05]*** CUTSNS_PIN = 0 [14:06:05]*** Brake cut motor [14:06:05]Read from MH i2c: 01 [14:06:05]MH_I2C_Read... [14:06:05]*** Stop cut motor [14:06:05]*** Cut end [14:06:05]Read from MH i2c: 01 07 00 [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: 01 07 00 02 49 00 00 00 00 00 FF 0F 60 [14:06:05]process_action close_receipt done [14:06:05]requested_data is exist [14:06:05]produce_requested_data [14:06:05]requested_item fm.sn is exist - process it [14:06:05]wFMCommunicate request_size=4 [14:06:05]MH_SAM_APDU [14:06:05]CAPDU: 80 11 00 00 [14:06:05]Write to MH i2c: E2 08 00 03 49 80 11 00 00 00 00 00 00 C6 [14:06:05]Write i2c OK [14:06:05]MH_I2C_Read... [14:06:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:05]Read from MH i2c: E2 [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: E2 17 00 [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: E2 17 00 03 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 19 [14:06:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:06:05]wFMCommunicate OK [14:06:05]requested_item fd.num is exist - process it [14:06:05]SAM_PROTO_GetFieldsCounters [14:06:05]wFMCommunicate request_size=4 [14:06:05]MH_SAM_APDU [14:06:05]CAPDU: 80 13 00 00 [14:06:05]Write to MH i2c: E2 08 00 04 49 80 13 00 00 00 00 00 00 C9 [14:06:05]Write i2c OK [14:06:05]MH_I2C_Read... [14:06:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:05]Read from MH i2c: E2 [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: E2 62 00 [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: E2 62 00 04 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 59 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [14: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 59 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:05]wFMCommunicate OK [14:06:05]SAM_PROTO_GetFieldsCounters done [14:06:05]requested_item shift.num is exist - process it [14:06:05]requested_item shift.opened is exist - process it [14:06:05]req_shift_opened [14:06:05]FM_GetShiftState [14:06:05]SAM_PROTO_GetShiftState [14:06:05]wFMCommunicate request_size=4 [14:06:05]MH_SAM_APDU [14:06:05]CAPDU: 80 13 01 00 [14:06:05]Write to MH i2c: E2 08 00 05 49 80 13 01 00 00 00 00 00 CB [14:06:05]Write i2c OK [14:06:05]MH_I2C_Read... [14:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:06]Read from MH i2c: E2 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: E2 0E 00 [14:06:06]MH_I2C_Read... [14:06:06]Read from MH i2c: E2 0E 00 05 49 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1B [14:06:06]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:06:06]wFMCommunicate OK [14:06:06]SAM_PROTO_GetShiftState done [14:06:06]FM_GetShiftState done [14:06:06]req_shift_opened done [14:06:06]requested_item shift.open_date is exist - process it [14:06:06]req_shift_open_date [14:06:06]req_shift_open_date done [14:06:06]produce_requested_data done [14:06:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192601,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:06:06]process_action_free close_receipt [14:06:06]json_value_free [14:06:06]json_value_free done [14:06:06]process_json_proto returns [14:06:06]Send response to host [14:06:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192601,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:06:06]free response buf [14:06:06]execute_script done [14:06:06]execute_script returns [14:06:06]free content buf [14:06:06]Sock 7.Close socket [14:06:06]Sock 7.Thread stoped [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:43]accept exits with 9 [14:07:43]New connection [14:07:43]New thread 3066563940 created [14:07:43]Thread 3066707300 joined [14:07:43]Waiting for new connection... [14:07:43] Sock 9.Parse request [14:07:43]Sock 9.Check first char [14:07:43]Sock 9.First char is OK [14:07:43]request: POST /json_proto HTTP/1.0 [14:07:43]Method: POST [14:07:43]URL: /json_proto [14:07:43]Method is POST - this is cgi request [14:07:43]url: /json_proto [14:07:43]query_string will be loaded in cgi processing [14:07:43]execute_cgi json_proto POST (null) [14:07:43]execute_cgi path=json_proto method=POST [14:07:43]POST find Content-Length [14:07:43]Host: 172.17.63.131:8080 [14:07:43]Content-Length: 859 [14:07:43]Content-Type: application/json [14:07:43] [14:07:43]POST finish read [14:07:43]Found Content-Length = 859 [14:07:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:43]execute_script... [14:07: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)31922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:43]POST & json_proto [14:07:43]process_json_proto [14:07:43]json parsed OK: [14:07:43]protocol is kg_v1.0 [14:07:43]action value=close_receipt [14:07:43]process_action close_receipt [14:07:43]cmd_close_receipt [14:07:43]MH_GetDate [14:07:43]Write to MH i2c: F0 00 00 06 49 3E [14:07:43]Write i2c OK [14:07:43]MH_I2C_Read... [14:07:43]Read from MH i2c: F0 [14:07:43]MH_I2C_Read... [14:07:43]Read from MH i2c: F0 09 00 [14:07:43]MH_I2C_Read... [14:07:43]Read from MH i2c: F0 09 00 06 49 00 B4 9A 1F 67 22 05 6E 64 14 [14:07:43]GetLastDocTimeStamp 1730124367 [14:07:43]current date 1730124468 [14:07:43]FM_GetShiftState [14:07:43]SAM_PROTO_GetShiftState [14:07:43]wFMCommunicate request_size=4 [14:07:43]MH_SAM_APDU [14:07:43]CAPDU: 80 13 01 00 [14:07:43]Write to MH i2c: E2 08 00 07 49 80 13 01 00 00 00 00 00 CD [14:07:43]Write i2c OK [14:07:43]MH_I2C_Read... [14:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:43]Read from MH i2c: E2 [14:07:43]MH_I2C_Read... [14:07:43]Read from MH i2c: E2 0E 00 [14:07:43]MH_I2C_Read... [14:07:43]Read from MH i2c: E2 0E 00 07 49 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1D [14:07:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:07:43]wFMCommunicate OK [14:07:43]SAM_PROTO_GetShiftState done [14:07:43]FM_GetShiftState done [14:07:43]opened in 1730075620 [14:07:43]opened+sec_in_day 1730162020 [14:07:43]quantity*price = 50063 [14:07:43]sum+1 = 50064 [14:07:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 150 28.10.2024 14:07 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192602 ФПД: 267152405848598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T140748&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192602&fm=267152405848598&tin=02508201610067®Number=0000000000091776&sum=50063 [14:07:44]StoreToDocumentArchive [14:07:44]shift 543 fd 192602 [14:07:44]save to /storage/0543/doc_00192602 [14:07:44]save last doc name /storage/0543/doc_00192602 to /storage/kkm_last_doc_name [14:07:44]save OK [14:07:44]Clear old archive folders... [14:07:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:07:44]tlvbuf is 019B6470 [14:07:44]SAM_PROTO_ClearQueue [14:07:44]wFMCommunicate request_size=4 [14:07:44]MH_SAM_APDU [14:07:44]CAPDU: 80 09 00 00 [14:07:44]Write to MH i2c: E2 08 00 14 49 80 09 00 00 00 00 00 00 CF [14:07:44]Write i2c OK [14:07:44]MH_I2C_Read... [14:07:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:44]Read from MH i2c: E2 [14:07:44]MH_I2C_Read... [14:07:44]Read from MH i2c: E2 03 00 [14:07:44]MH_I2C_Read... [14:07:44]Read from MH i2c: E2 03 00 14 49 00 90 00 D1 [14:07:44]RAPDU: 90 00 [14:07:44]wFMCommunicate OK [14:07:44]SAM_PROTO_ClearQueue done [14:07:44]KKMCreateOFDPacket [14:07:44]OFDProtocolAddRootSTLVToBuf [14:07:44]FM_MakeSignedData [14:07:44]FM_MakeSignedData [14:07:44]SAM_PROTO_SignData [14:07:44]wFMCommunicate request_size=4 [14:07:44]MH_SAM_APDU [14:07:44]CAPDU: 80 0D 01 02 [14:07:44]Write to MH i2c: E2 08 00 15 49 80 0D 01 02 00 00 00 00 D7 [14:07:44]Write i2c OK [14:07:44]MH_I2C_Read... [14:07:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:44]Read from MH i2c: E2 [14:07:44]MH_I2C_Read... [14:07:44]Read from MH i2c: E2 03 00 [14:07:44]MH_I2C_Read... [14:07:44]Read from MH i2c: E2 03 00 15 49 00 90 00 D2 [14:07:44]RAPDU: 90 00 [14:07:44]wFMCommunicate OK [14:07:44]wFMCommunicate request_size=255 [14:07:44]MH_SAM_APDU [14:07:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 B4 9A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A F0 02 00 35 04 06 00 F2 F9 44 40 [14:07:44]Write to MH i2c: E2 02 01 16 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 B4 9A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A F0 02 00 35 04 06 00 F2 F9 44 40 00 00 AD [14:07:44]Write i2c OK [14:07:44]MH_I2C_Read... [14:07:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:44]Read from MH i2c: E2 [14:07:44]MH_I2C_Read... [14:07:44]Read from MH i2c: E2 03 00 [14:07:44]MH_I2C_Read... [14:07:44]Read from MH i2c: E2 03 00 16 49 00 90 00 D3 [14:07:44]RAPDU: 90 00 [14:07:44]wFMCommunicate OK [14:07:44]wFMCommunicate request_size=7 [14:07:44]MH_SAM_APDU [14:07:44]CAPDU: 80 0D 02 02 02 62 16 [14:07:44]Write to MH i2c: E2 0A 00 17 49 80 0D 02 02 02 00 62 16 00 00 56 [14:07:44]Write i2c OK [14:07:44]MH_I2C_Read... [14:07:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:44]Read from MH i2c: E2 [14:07:44]MH_I2C_Read... [14:07:44]Read from MH i2c: E2 03 00 [14:07:44]MH_I2C_Read... [14:07:44]Read from MH i2c: E2 03 00 17 49 00 90 00 D4 [14:07:44]RAPDU: 90 00 [14:07:44]wFMCommunicate OK [14:07:44]wFMCommunicate request_size=4 [14:07:44]MH_SAM_APDU [14:07:44]CAPDU: 80 0D 03 02 [14:07:44]Write to MH i2c: E2 08 00 18 49 80 0D 03 02 00 00 00 00 DC [14:07:44]Write i2c OK [14:07:44]MH_I2C_Read... [14:07:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:44]Read from MH i2c: E2 [14:07:44]MH_I2C_Read... [14:07:44]Read from MH i2c: E2 0B 00 [14:07:44]MH_I2C_Read... [14:07:44]Read from MH i2c: E2 0B 00 18 49 00 7E CB 4F 44 2E 56 C1 19 90 00 17 [14:07:44]RAPDU: 7E CB 4F 44 2E 56 C1 19 90 00 [14:07:44]wFMCommunicate OK [14:07:44]SAM_PROTO_SignData done [14:07:44]FM_MakeSignedData done [14:07:44]CreateOFDProtocolMessage [14:07:44]wFMCommunicate request_size=4 [14:07:44]MH_SAM_APDU [14:07:44]CAPDU: 80 11 00 00 [14:07:44]Write to MH i2c: E2 08 00 19 49 80 11 00 00 00 00 00 00 DC [14:07:44]Write i2c OK [14:07:44]MH_I2C_Read... [14:07:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:44]Read from MH i2c: E2 [14:07:44]MH_I2C_Read... [14:07:44]Read from MH i2c: E2 17 00 [14:07:44]MH_I2C_Read... [14:07:44]Read from MH i2c: E2 17 00 19 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2F [14:07:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:07:44]wFMCommunicate OK [14:07:44]CreateOFDProtocolMessage done [14:07:44]OFDSenderStorePacket 192602 [14:07:44]StoreOFDPacket docnum=192602 [14:07:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 8F B8 04 01 ED AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 B4 9A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A F0 02 00 35 04 06 00 F2 F9 44 40 62 16 7E CB 4F 44 2E 56 C1 19 [14:07:44]CheckFolder [14:07:44]dirname=/storage/ofd_packets [14:07:44]CheckFolder done [14:07:44]ProducePacketName [14:07:44]name=ofd_packets/00192602 [14:07:44]NVStorageSaveData ofd_packets/00192602 [14:07:44]File name is /storage/ofd_packets/00192602 [14:07:44]Write 298 bytes [14:07:44]NVStorageSaveData done [14:07:44]OFDSenderStorePacket done [14:07:44]KKMCreateOFDPacket done [14:07:44]NVStorageSaveData kkm_last_timestamp [14:07:44]File name is /storage/kkm_last_timestamp [14:07:44]Write 4 bytes [14:07:44]NVStorageSaveData done [14:07:44]ExternCall_PrintAddStr [14:07:44]wPrintStart [14:07:44]Write to MH i2c: 01 00 00 1A 49 63 [14:07:44]Write i2c OK [14:07:44]MH_I2C_Read... [14:07:44]Read from MH i2c: 01 [14:07:44]MH_I2C_Read... [14:07:44]Read from MH i2c: 01 07 00 [14:07:44]MH_I2C_Read... [14:07:44]Read from MH i2c: 01 07 00 1A 49 00 00 00 00 00 FF 0F 78 [14:07:44]RasterBufferAndPrint [14:07:44]line Счет N : (1)31922 [14:07:44]line ИНН: 02508201610067 [14:07:44]line Контрольно-Кассовый Чек [14:07:44]line ПРОДАЖА [14:07:44]line ТРК (МРК, ГНК) : 11 [14:07:44]line Товар: 2710194210 [14:07:44]line ДТ-К-5 [14:07:44]line 6.570 * 76.20 [14:07:44]line = 500.63 [14:07:44]line НДС 12% НСП 1% [14:07:44]line > о реализуемом товаре [14:07:44]line ИТОГО: 500.63 [14:07:44]line НСП 1% : 4.43 [14:07:44]line НДС 12% : 53.16 [14:07:44]line Наличными: 0.00 [14:07:44]line Безнал.: 500.63 [14:07:44]line Место: АЗС № 170 "Партнер Нефть" [14:07:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:07:44]line СНО: Общий режим [14:07:44]line Чек 150 28.10.2024 14:07 [14:07:44]line Смена: 543 ФФД: 1.0 [14:07:44]line ЗНМ: 0300000110 [14:07:44]line РНМ: 0000000000091776 [14:07:44]line Версия ККМ: 001 [14:07:44]line Платежная система: Кыргызкоммерцбанк [14:07:44]line ФМ: 0000000000871754 [14:07:44]line ФД: 192602 [14:07:44]line ФПД: 267152405848598 [14:07:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T140748&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192602&fm=267152405848598&tin=02508201610067®Number=0000000000091776&sum=50063 [14:07:45]OFD Sender: Processing packet 192602 [packets to send 75, broken 74] [14:07:45]ProducePacketName [14:07:45]name=ofd_packets/00192602 [14:07:45]OFD Sender: To server: pG, [14:07:45]CommunicateWithHost lk.salyk.kg:30040 [14:07:45]ConnectInit lk.salyk.kg [14:07:45]written 0, free lines is 4095 [14:07:45]Connected sock=10 [14:07:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 8F B8 04 01 ED AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 B4 9A 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A F0 02 00 35 04 06 00 F2 F9 44 40 62 16 7E CB 4F 44 2E 56 C1 19 [14:07:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7E E9 47 00 C3 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A F0 02 00 F4 03 04 00 78 3F 1F 67 B6 04 01 00 00 B6 E4 37 AC FE D9 E7 C3 [14:07:45]CommunicateWithHost err = 0 [14:07:45]CheckOFDResponse [14:07:45]1017 (14) - 77093643461234 [14:07:45]1041 (16) - 0000000000871754 [14:07:45]1040 (4) - 192602 [14:07:45]1012 (4) - 28.10.2024 07:38 [14:07:45]1206 (1) - 0 [14:07:45]OFD Sender: Remove packet 192602 [14:07:45]ProducePacketName [14:07:45]name=ofd_packets/00192602 [14:07:45]NVStorageDeleteData [14:07:45]Write to MH i2c: 01 00 00 44 49 8D [14:07:45]Write i2c OK [14:07:45]MH_I2C_Read... [14:07:45]Read from MH i2c: 01 [14:07:45]MH_I2C_Read... [14:07:45]Read from MH i2c: 01 07 00 [14:07:45]MH_I2C_Read... [14:07:45]Read from MH i2c: 01 07 00 44 49 00 00 00 00 00 DC 0C 7C [14:07:45]RasterBufferAndPrint [14:07:45]line [14:07:45]line [14:07:45]line [14:07:45]line [14:07:45]line [14:07:45]written 0, free lines is 3299 [14:07:45]MH_Cut [14:07:45]Write to MH i2c: D1 01 00 4B 49 01 66 [14:07:45]Write i2c OK [14:07:45]MH_I2C_Read... [14:07:45]Read from MH i2c: D1 [14:07:45]MH_I2C_Read... [14:07:45]Read from MH i2c: D1 01 00 [14:07:45]MH_I2C_Read... [14:07:45]Read from MH i2c: D1 01 00 4B 49 00 65 [14:07:45]Write to MH i2c: 01 00 00 4C 49 95 [14:07:45]Write i2c OK [14:07:45]MH_I2C_Read... [14:07:46]OFD Sender: No OFD packet to send [14:07:46]*** Cut start [14:07:46]*** Partial cut [14:07:46]*** CUTSNS_PIN = 1 [14:07:46]*** CUTSNS_PIN = 0 [14:07:46]*** Brake cut motor [14:07:47]Read from MH i2c: 01 [14:07:47]MH_I2C_Read... [14:07:47]*** Stop cut motor [14:07:47]*** Cut end [14:07:47]Read from MH i2c: 01 07 00 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: 01 07 00 4C 49 00 00 00 00 00 FF 0F AA [14:07:47]process_action close_receipt done [14:07:47]requested_data is exist [14:07:47]produce_requested_data [14:07:47]requested_item fm.sn is exist - process it [14:07:47]wFMCommunicate request_size=4 [14:07:47]MH_SAM_APDU [14:07:47]CAPDU: 80 11 00 00 [14:07:47]Write to MH i2c: E2 08 00 4D 49 80 11 00 00 00 00 00 00 10 [14:07:47]Write i2c OK [14:07:47]MH_I2C_Read... [14:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:47]Read from MH i2c: E2 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 17 00 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 17 00 4D 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 63 [14:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:07:47]wFMCommunicate OK [14:07:47]requested_item fd.num is exist - process it [14:07:47]SAM_PROTO_GetFieldsCounters [14:07:47]wFMCommunicate request_size=4 [14:07:47]MH_SAM_APDU [14:07:47]CAPDU: 80 13 00 00 [14:07:47]Write to MH i2c: E2 08 00 4E 49 80 13 00 00 00 00 00 00 13 [14:07:47]Write i2c OK [14:07:47]MH_I2C_Read... [14:07:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:47]Read from MH i2c: E2 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 62 00 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 62 00 4E 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [14:07:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:07:47]wFMCommunicate OK [14:07:47]SAM_PROTO_GetFieldsCounters done [14:07:47]requested_item shift.num is exist - process it [14:07:47]requested_item shift.opened is exist - process it [14:07:47]req_shift_opened [14:07:47]FM_GetShiftState [14:07:47]SAM_PROTO_GetShiftState [14:07:47]wFMCommunicate request_size=4 [14:07:47]MH_SAM_APDU [14:07:47]CAPDU: 80 13 01 00 [14:07:47]Write to MH i2c: E2 08 00 4F 49 80 13 01 00 00 00 00 00 15 [14:07:47]Write i2c OK [14:07:47]MH_I2C_Read... [14:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:47]Read from MH i2c: E2 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 0E 00 [14:07:47]MH_I2C_Read... [14:07:47]Read from MH i2c: E2 0E 00 4F 49 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 65 [14:07:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:07:47]wFMCommunicate OK [14:07:47]SAM_PROTO_GetShiftState done [14:07:47]FM_GetShiftState done [14:07:47]req_shift_opened done [14:07:47]requested_item shift.open_date is exist - process it [14:07:47]req_shift_open_date [14:07:47]req_shift_open_date done [14:07:47]produce_requested_data done [14:07:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192602,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:07:47]process_action_free close_receipt [14:07:47]json_value_free [14:07:47]json_value_free done [14:07:47]process_json_proto returns [14:07:47]Send response to host [14:07:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192602,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:07:47]free response buf [14:07:47]execute_script done [14:07:47]execute_script returns [14:07:47]free content buf [14:07:47]Sock 9.Close socket [14:07:47]Sock 9.Thread stoped [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:38]accept exits with 7 [14:12:38]New connection [14:12:38]New thread 3066707300 created [14:12:38]Thread 3066563940 joined [14:12:38]Waiting for new connection... [14:12:38] Sock 7.Parse request [14:12:38]Sock 7.Check first char [14:12:38]Sock 7.First char is OK [14:12:38]request: POST /json_proto HTTP/1.0 [14:12:38]Method: POST [14:12:38]URL: /json_proto [14:12:38]Method is POST - this is cgi request [14:12:38]url: /json_proto [14:12:38]query_string will be loaded in cgi processing [14:12:38]execute_cgi json_proto POST (null) [14:12:38]execute_cgi path=json_proto method=POST [14:12:38]POST find Content-Length [14:12:38]Host: 172.17.63.131:8080 [14:12:38]Content-Length: 676 [14:12:38]Content-Type: application/json [14:12:38] [14:12:38]POST finish read [14:12:38]Found Content-Length = 676 [14:12:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:38]execute_script... [14:12:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:38]POST & json_proto [14:12:38]process_json_proto [14:12:38]json parsed OK: [14:12:38]protocol is kg_v1.0 [14:12:38]action value=close_receipt [14:12:38]process_action close_receipt [14:12:38]cmd_close_receipt [14:12:38]MH_GetDate [14:12:38]Write to MH i2c: F0 00 00 50 49 88 [14:12:38]Write i2c OK [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: F0 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: F0 09 00 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: F0 09 00 50 49 00 DB 9B 1F 67 22 05 6E 64 86 [14:12:38]GetLastDocTimeStamp 1730124468 [14:12:38]current date 1730124763 [14:12:38]FM_GetShiftState [14:12:38]SAM_PROTO_GetShiftState [14:12:38]wFMCommunicate request_size=4 [14:12:38]MH_SAM_APDU [14:12:38]CAPDU: 80 13 01 00 [14:12:38]Write to MH i2c: E2 08 00 51 49 80 13 01 00 00 00 00 00 17 [14:12:38]Write i2c OK [14:12:38]MH_I2C_Read... [14:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:38]Read from MH i2c: E2 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: E2 0E 00 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: E2 0E 00 51 49 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 67 [14:12:38]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:12:38]wFMCommunicate OK [14:12:38]SAM_PROTO_GetShiftState done [14:12:38]FM_GetShiftState done [14:12:38]opened in 1730075620 [14:12:38]opened+sec_in_day 1730162020 [14:12:38]quantity*price = 34052 [14:12:38]sum+1 = 34053 [14:12:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 151 28.10.2024 14:12 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192603 ФПД: 253641934723602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T141243&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192603&fm=253641934723602&tin=02508201610067®Number=0000000000091776&sum=34000 [14:12:39]StoreToDocumentArchive [14:12:39]shift 543 fd 192603 [14:12:39]save to /storage/0543/doc_00192603 [14:12:39]save last doc name /storage/0543/doc_00192603 to /storage/kkm_last_doc_name [14:12:39]save OK [14:12:39]Clear old archive folders... [14:12:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:39]tlvbuf is 019B6930 [14:12:39]SAM_PROTO_ClearQueue [14:12:39]wFMCommunicate request_size=4 [14:12:39]MH_SAM_APDU [14:12:39]CAPDU: 80 09 00 00 [14:12:39]Write to MH i2c: E2 08 00 5E 49 80 09 00 00 00 00 00 00 19 [14:12:39]Write i2c OK [14:12:39]MH_I2C_Read... [14:12:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:39]Read from MH i2c: E2 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 03 00 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 03 00 5E 49 00 90 00 1B [14:12:39]RAPDU: 90 00 [14:12:39]wFMCommunicate OK [14:12:39]SAM_PROTO_ClearQueue done [14:12:39]KKMCreateOFDPacket [14:12:39]OFDProtocolAddRootSTLVToBuf [14:12:39]FM_MakeSignedData [14:12:39]FM_MakeSignedData [14:12:39]SAM_PROTO_SignData [14:12:39]wFMCommunicate request_size=4 [14:12:39]MH_SAM_APDU [14:12:39]CAPDU: 80 0D 01 02 [14:12:39]Write to MH i2c: E2 08 00 5F 49 80 0D 01 02 00 00 00 00 21 [14:12:39]Write i2c OK [14:12:39]MH_I2C_Read... [14:12:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:39]Read from MH i2c: E2 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 03 00 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 03 00 5F 49 00 90 00 1C [14:12:39]RAPDU: 90 00 [14:12:39]wFMCommunicate OK [14:12:39]wFMCommunicate request_size=255 [14:12:39]MH_SAM_APDU [14:12:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 DB 9B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B F0 02 00 35 04 06 00 E6 [14:12:39]Write to MH i2c: E2 02 01 60 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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 DB 9B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B F0 02 00 35 04 06 00 E6 00 00 D5 [14:12:39]Write i2c OK [14:12:39]MH_I2C_Read... [14:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:39]Read from MH i2c: E2 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 03 00 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 03 00 60 49 00 90 00 1D [14:12:39]RAPDU: 90 00 [14:12:39]wFMCommunicate OK [14:12:39]wFMCommunicate request_size=10 [14:12:39]MH_SAM_APDU [14:12:39]CAPDU: 80 0D 02 02 05 AF 9D 6B 5A 12 [14:12:39]Write to MH i2c: E2 0D 00 61 49 80 0D 02 02 05 00 AF 9D 6B 5A 12 00 00 51 [14:12:39]Write i2c OK [14:12:39]MH_I2C_Read... [14:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:39]Read from MH i2c: E2 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 03 00 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 03 00 61 49 00 90 00 1E [14:12:39]RAPDU: 90 00 [14:12:39]wFMCommunicate OK [14:12:39]wFMCommunicate request_size=4 [14:12:39]MH_SAM_APDU [14:12:39]CAPDU: 80 0D 03 02 [14:12:39]Write to MH i2c: E2 08 00 62 49 80 0D 03 02 00 00 00 00 26 [14:12:39]Write i2c OK [14:12:39]MH_I2C_Read... [14:12:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:39]Read from MH i2c: E2 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 0B 00 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 0B 00 62 49 00 F4 8A ED 69 E4 88 35 9E 90 00 3A [14:12:39]RAPDU: F4 8A ED 69 E4 88 35 9E 90 00 [14:12:39]wFMCommunicate OK [14:12:39]SAM_PROTO_SignData done [14:12:39]FM_MakeSignedData done [14:12:39]CreateOFDProtocolMessage [14:12:39]wFMCommunicate request_size=4 [14:12:39]MH_SAM_APDU [14:12:39]CAPDU: 80 11 00 00 [14:12:39]Write to MH i2c: E2 08 00 63 49 80 11 00 00 00 00 00 00 26 [14:12:39]Write i2c OK [14:12:39]MH_I2C_Read... [14:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:39]Read from MH i2c: E2 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 17 00 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 17 00 63 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 79 [14:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:12:39]wFMCommunicate OK [14:12:39]CreateOFDProtocolMessage done [14:12:39]OFDSenderStorePacket 192603 [14:12:39]StoreOFDPacket docnum=192603 [14:12:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 22 2F 07 01 EE 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 DB 9B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B F0 02 00 35 04 06 00 E6 AF 9D 6B 5A 12 F4 8A ED 69 E4 88 35 9E [14:12:39]CheckFolder [14:12:39]dirname=/storage/ofd_packets [14:12:39]CheckFolder done [14:12:39]ProducePacketName [14:12:39]name=ofd_packets/00192603 [14:12:39]NVStorageSaveData ofd_packets/00192603 [14:12:39]File name is /storage/ofd_packets/00192603 [14:12:39]Write 301 bytes [14:12:39]NVStorageSaveData done [14:12:39]OFDSenderStorePacket done [14:12:39]KKMCreateOFDPacket done [14:12:39]NVStorageSaveData kkm_last_timestamp [14:12:39]File name is /storage/kkm_last_timestamp [14:12:39]Write 4 bytes [14:12:39]NVStorageSaveData done [14:12:39]ExternCall_PrintAddStr [14:12:39]wPrintStart [14:12:39]Write to MH i2c: 01 00 00 64 49 AD [14:12:39]Write i2c OK [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: 01 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: 01 07 00 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: 01 07 00 64 49 00 00 00 00 00 FF 0F C2 [14:12:39]RasterBufferAndPrint [14:12:39]line Счет N : (1)31923 [14:12:39]line ИНН: 02508201610067 [14:12:39]line Контрольно-Кассовый Чек [14:12:39]line ПРОДАЖА [14:12:39]line ТРК (МРК, ГНК) : 12 [14:12:39]line Товар: 2710124130 [14:12:39]line Аи-92-К-5 [14:12:39]line 5.090 * 66.90 [14:12:39]line = 340.52 [14:12:39]line НДС 12% НСП 1% [14:12:39]line > о реализуемом товаре [14:12:39]line ОКРУГЛЕНИЕ: -0.52 [14:12:39]line ИТОГО: 340.00 [14:12:39]line Внесено: 340.00 [14:12:39]line СДАЧА: 0.00 [14:12:39]line НСП 1% : 3.01 [14:12:39]line НДС 12% : 36.16 [14:12:39]line Наличными: 340.00 [14:12:39]line Безнал.: 0.00 [14:12:39]line Место: АЗС № 170 "Партнер Нефть" [14:12:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:12:39]line СНО: Общий режим [14:12:39]line Чек 151 28.10.2024 14:12 [14:12:39]line Смена: 543 ФФД: 1.0 [14:12:39]line ЗНМ: 0300000110 [14:12:39]line РНМ: 0000000000091776 [14:12:39]line Версия ККМ: 001 [14:12:39]line ФМ: 0000000000871754 [14:12:39]line ФД: 192603 [14:12:39]line ФПД: 253641934723602 [14:12:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T141243&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192603&fm=253641934723602&tin=02508201610067®Number=0000000000091776&sum=34000 [14:12:40]OFD Sender: Processing packet 192603 [packets to send 75, broken 74] [14:12:40]ProducePacketName [14:12:40]name=ofd_packets/00192603 [14:12:40]OFD Sender: To server: pG, [14:12:40]CommunicateWithHost lk.salyk.kg:30040 [14:12:40]ConnectInit lk.salyk.kg [14:12:40]written 0, free lines is 4095 [14:12:40]Connected sock=9 [14:12:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 22 2F 07 01 EE 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 DB 9B 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B F0 02 00 35 04 06 00 E6 AF 9D 6B 5A 12 F4 8A ED 69 E4 88 35 9E [14:12:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 97 47 47 00 FE 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 31 37 35 34 10 04 04 00 5B F0 02 00 F4 03 04 00 9F 40 1F 67 B6 04 01 00 00 66 6D 0E C3 AC 0C B2 48 [14:12:40]CommunicateWithHost err = 0 [14:12:40]CheckOFDResponse [14:12:40]1017 (14) - 77093643461234 [14:12:40]1041 (16) - 0000000000871754 [14:12:40]1040 (4) - 192603 [14:12:40]1012 (4) - 28.10.2024 07:43 [14:12:40]1206 (1) - 0 [14:12:40]OFD Sender: Remove packet 192603 [14:12:40]ProducePacketName [14:12:40]name=ofd_packets/00192603 [14:12:40]NVStorageDeleteData [14:12:40]Write to MH i2c: 01 00 00 8F 49 D8 [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: 01 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: 01 07 00 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: 01 07 00 8F 49 00 00 00 00 00 C4 0C AF [14:12:40]RasterBufferAndPrint [14:12:40]line [14:12:40]line [14:12:40]line [14:12:40]line [14:12:40]line [14:12:40]written 0, free lines is 3277 [14:12:40]MH_Cut [14:12:40]Write to MH i2c: D1 01 00 96 49 01 B1 [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: D1 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: D1 01 00 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: D1 01 00 96 49 00 B0 [14:12:40]Write to MH i2c: 01 00 00 97 49 E0 [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:41]OFD Sender: No OFD packet to send [14:12:41]*** Cut start [14:12:41]*** Partial cut [14:12:41]*** CUTSNS_PIN = 1 [14:12:41]*** CUTSNS_PIN = 0 [14:12:41]*** Brake cut motor [14:12:42]Read from MH i2c: 01 [14:12:42]MH_I2C_Read... [14:12:42]*** Stop cut motor [14:12:42]*** Cut end [14:12:42]Read from MH i2c: 01 07 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: 01 07 00 97 49 00 00 00 00 00 FF 0F F5 [14:12:42]process_action close_receipt done [14:12:42]requested_data is exist [14:12:42]produce_requested_data [14:12:42]requested_item fm.sn is exist - process it [14:12:42]wFMCommunicate request_size=4 [14:12:42]MH_SAM_APDU [14:12:42]CAPDU: 80 11 00 00 [14:12:42]Write to MH i2c: E2 08 00 98 49 80 11 00 00 00 00 00 00 5B [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:42]Read from MH i2c: E2 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 17 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 17 00 98 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AE [14:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:12:42]wFMCommunicate OK [14:12:42]requested_item fd.num is exist - process it [14:12:42]SAM_PROTO_GetFieldsCounters [14:12:42]wFMCommunicate request_size=4 [14:12:42]MH_SAM_APDU [14:12:42]CAPDU: 80 13 00 00 [14:12:42]Write to MH i2c: E2 08 00 99 49 80 13 00 00 00 00 00 00 5E [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:42]Read from MH i2c: E2 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 62 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 62 00 99 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [14:12:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:12:42]wFMCommunicate OK [14:12:42]SAM_PROTO_GetFieldsCounters done [14:12:42]requested_item shift.num is exist - process it [14:12:42]requested_item shift.opened is exist - process it [14:12:42]req_shift_opened [14:12:42]FM_GetShiftState [14:12:42]SAM_PROTO_GetShiftState [14:12:42]wFMCommunicate request_size=4 [14:12:42]MH_SAM_APDU [14:12:42]CAPDU: 80 13 01 00 [14:12:42]Write to MH i2c: E2 08 00 9A 49 80 13 01 00 00 00 00 00 60 [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:42]Read from MH i2c: E2 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 0E 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 0E 00 9A 49 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B0 [14:12:42]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:12:42]wFMCommunicate OK [14:12:42]SAM_PROTO_GetShiftState done [14:12:42]FM_GetShiftState done [14:12:42]req_shift_opened done [14:12:42]requested_item shift.open_date is exist - process it [14:12:42]req_shift_open_date [14:12:42]req_shift_open_date done [14:12:42]produce_requested_data done [14:12:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192603,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:12:42]process_action_free close_receipt [14:12:42]json_value_free [14:12:42]json_value_free done [14:12:42]process_json_proto returns [14:12:42]Send response to host [14:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192603,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:12:42]free response buf [14:12:42]execute_script done [14:12:42]execute_script returns [14:12:42]free content buf [14:12:42]Sock 7.Close socket [14:12:42]Sock 7.Thread stoped [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:54]accept exits with 10 [14:14:54]New connection [14:14:54]New thread 3066563940 created [14:14:54]Thread 3066707300 joined [14:14:54]Waiting for new connection... [14:14:54] Sock 10.Parse request [14:14:54]Sock 10.Check first char [14:14:54]Sock 10.First char is OK [14:14:54]request: POST /json_proto HTTP/1.0 [14:14:54]Method: POST [14:14:54]URL: /json_proto [14:14:54]Method is POST - this is cgi request [14:14:54]url: /json_proto [14:14:54]query_string will be loaded in cgi processing [14:14:54]execute_cgi json_proto POST (null) [14:14:54]execute_cgi path=json_proto method=POST [14:14:54]POST find Content-Length [14:14:54]Host: 172.17.63.131:8080 [14:14:54]Content-Length: 676 [14:14:54]Content-Type: application/json [14:14:54] [14:14:54]POST finish read [14:14:54]Found Content-Length = 676 [14:14:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [14:14:54]execute_script... [14:14: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)31924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [14:14:54]POST & json_proto [14:14:54]process_json_proto [14:14:54]json parsed OK: [14:14:54]protocol is kg_v1.0 [14:14:54]action value=close_receipt [14:14:54]process_action close_receipt [14:14:54]cmd_close_receipt [14:14:54]MH_GetDate [14:14:54]Write to MH i2c: F0 00 00 9B 49 D3 [14:14:54]Write i2c OK [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: F0 [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: F0 09 00 [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: F0 09 00 9B 49 00 64 9C 1F 67 22 05 6E 64 5B [14:14:54]GetLastDocTimeStamp 1730124763 [14:14:54]current date 1730124900 [14:14:54]FM_GetShiftState [14:14:54]SAM_PROTO_GetShiftState [14:14:54]wFMCommunicate request_size=4 [14:14:54]MH_SAM_APDU [14:14:54]CAPDU: 80 13 01 00 [14:14:54]Write to MH i2c: E2 08 00 9C 49 80 13 01 00 00 00 00 00 62 [14:14:54]Write i2c OK [14:14:54]MH_I2C_Read... [14:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:54]Read from MH i2c: E2 [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: E2 0E 00 [14:14:54]MH_I2C_Read... [14:14:54]Read from MH i2c: E2 0E 00 9C 49 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B2 [14:14:54]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:14:54]wFMCommunicate OK [14:14:54]SAM_PROTO_GetShiftState done [14:14:54]FM_GetShiftState done [14:14:54]opened in 1730075620 [14:14:54]opened+sec_in_day 1730162020 [14:14:54]quantity*price = 35055 [14:14:54]sum+1 = 35057 [14:14:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 152 28.10.2024 14:15 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192604 ФПД: 169985919462773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T141500&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192604&fm=169985919462773&tin=02508201610067®Number=0000000000091776&sum=35000 [14:14:56]StoreToDocumentArchive [14:14:56]shift 543 fd 192604 [14:14:56]save to /storage/0543/doc_00192604 [14:14:56]save last doc name /storage/0543/doc_00192604 to /storage/kkm_last_doc_name [14:14:56]save OK [14:14:56]Clear old archive folders... [14:14:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:56]tlvbuf is 019EC6F0 [14:14:56]SAM_PROTO_ClearQueue [14:14:56]wFMCommunicate request_size=4 [14:14:56]MH_SAM_APDU [14:14:56]CAPDU: 80 09 00 00 [14:14:56]Write to MH i2c: E2 08 00 A9 49 80 09 00 00 00 00 00 00 64 [14:14:56]Write i2c OK [14:14:56]MH_I2C_Read... [14:14:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:56]Read from MH i2c: E2 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: E2 03 00 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: E2 03 00 A9 49 00 90 00 66 [14:14:56]RAPDU: 90 00 [14:14:56]wFMCommunicate OK [14:14:56]SAM_PROTO_ClearQueue done [14:14:56]KKMCreateOFDPacket [14:14:56]OFDProtocolAddRootSTLVToBuf [14:14:56]FM_MakeSignedData [14:14:56]FM_MakeSignedData [14:14:56]SAM_PROTO_SignData [14:14:56]wFMCommunicate request_size=4 [14:14:56]MH_SAM_APDU [14:14:56]CAPDU: 80 0D 01 02 [14:14:56]Write to MH i2c: E2 08 00 AA 49 80 0D 01 02 00 00 00 00 6C [14:14:56]Write i2c OK [14:14:56]MH_I2C_Read... [14:14:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:56]Read from MH i2c: E2 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: E2 03 00 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: E2 03 00 AA 49 00 90 00 67 [14:14:56]RAPDU: 90 00 [14:14:56]wFMCommunicate OK [14:14:56]wFMCommunicate request_size=255 [14:14:56]MH_SAM_APDU [14:14:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8B 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 98 00 00 00 F4 03 04 00 64 9C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C F0 02 00 35 04 06 00 9A [14:14:56]Write to MH i2c: E2 02 01 AB 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8B 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 98 00 00 00 F4 03 04 00 64 9C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C F0 02 00 35 04 06 00 9A 00 00 32 [14:14:56]Write i2c OK [14:14:56]MH_I2C_Read... [14:14:56]OFD Sender: No OFD packet to send [14:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:56]Read from MH i2c: E2 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: E2 03 00 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: E2 03 00 AB 49 00 90 00 68 [14:14:56]RAPDU: 90 00 [14:14:56]wFMCommunicate OK [14:14:56]wFMCommunicate request_size=10 [14:14:56]MH_SAM_APDU [14:14:56]CAPDU: 80 0D 02 02 05 99 EE 58 AD 75 [14:14:56]Write to MH i2c: E2 0D 00 AC 49 80 0D 02 02 05 00 99 EE 58 AD 75 00 00 7A [14:14:56]Write i2c OK [14:14:56]MH_I2C_Read... [14:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:56]Read from MH i2c: E2 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: E2 03 00 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: E2 03 00 AC 49 00 90 00 69 [14:14:56]RAPDU: 90 00 [14:14:56]wFMCommunicate OK [14:14:56]wFMCommunicate request_size=4 [14:14:56]MH_SAM_APDU [14:14:56]CAPDU: 80 0D 03 02 [14:14:56]Write to MH i2c: E2 08 00 AD 49 80 0D 03 02 00 00 00 00 71 [14:14:56]Write i2c OK [14:14:56]MH_I2C_Read... [14:14:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:56]Read from MH i2c: E2 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: E2 0B 00 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: E2 0B 00 AD 49 00 E6 E6 DE 1C 75 FF 87 4A 90 00 7D [14:14:56]RAPDU: E6 E6 DE 1C 75 FF 87 4A 90 00 [14:14:56]wFMCommunicate OK [14:14:56]SAM_PROTO_SignData done [14:14:56]FM_MakeSignedData done [14:14:56]CreateOFDProtocolMessage [14:14:56]wFMCommunicate request_size=4 [14:14:56]MH_SAM_APDU [14:14:56]CAPDU: 80 11 00 00 [14:14:56]Write to MH i2c: E2 08 00 AE 49 80 11 00 00 00 00 00 00 71 [14:14:56]Write i2c OK [14:14:56]MH_I2C_Read... [14:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:56]Read from MH i2c: E2 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: E2 17 00 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: E2 17 00 AE 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C4 [14:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:14:56]wFMCommunicate OK [14:14:56]CreateOFDProtocolMessage done [14:14:56]OFDSenderStorePacket 192604 [14:14:56]StoreOFDPacket docnum=192604 [14:14:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2A 59 07 01 84 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8B 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 98 00 00 00 F4 03 04 00 64 9C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C F0 02 00 35 04 06 00 9A 99 EE 58 AD 75 E6 E6 DE 1C 75 FF 87 4A [14:14:56]CheckFolder [14:14:56]dirname=/storage/ofd_packets [14:14:56]CheckFolder done [14:14:56]ProducePacketName [14:14:56]name=ofd_packets/00192604 [14:14:56]NVStorageSaveData ofd_packets/00192604 [14:14:56]File name is /storage/ofd_packets/00192604 [14:14:56]Write 301 bytes [14:14:56]NVStorageSaveData done [14:14:56]OFDSenderStorePacket done [14:14:56]KKMCreateOFDPacket done [14:14:56]NVStorageSaveData kkm_last_timestamp [14:14:56]File name is /storage/kkm_last_timestamp [14:14:56]Write 4 bytes [14:14:56]NVStorageSaveData done [14:14:56]ExternCall_PrintAddStr [14:14:56]wPrintStart [14:14:56]Write to MH i2c: 01 00 00 AF 49 F8 [14:14:56]Write i2c OK [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: 01 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: 01 07 00 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: 01 07 00 AF 49 00 00 00 00 00 FF 0F 0D [14:14:56]RasterBufferAndPrint [14:14:56]line Счет N : (1)31924 [14:14:56]line ИНН: 02508201610067 [14:14:56]line Контрольно-Кассовый Чек [14:14:56]line ПРОДАЖА [14:14:56]line ТРК (МРК, ГНК) : 12 [14:14:56]line Товар: 2710124130 [14:14:56]line Аи-92-К-5 [14:14:56]line 5.240 * 66.90 [14:14:56]line = 350.56 [14:14:56]line НДС 12% НСП 1% [14:14:56]line > о реализуемом товаре [14:14:56]line ОКРУГЛЕНИЕ: -0.56 [14:14:56]line ИТОГО: 350.00 [14:14:56]line Внесено: 350.00 [14:14:56]line СДАЧА: 0.00 [14:14:56]line НСП 1% : 3.10 [14:14:56]line НДС 12% : 37.23 [14:14:56]line Наличными: 350.00 [14:14:56]line Безнал.: 0.00 [14:14:56]line Место: АЗС № 170 "Партнер Нефть" [14:14:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:14:56]line СНО: Общий режим [14:14:56]line Чек 152 28.10.2024 14:15 [14:14:56]line Смена: 543 ФФД: 1.0 [14:14:56]line ЗНМ: 0300000110 [14:14:56]line РНМ: 0000000000091776 [14:14:56]line Версия ККМ: 001 [14:14:56]line ФМ: 0000000000871754 [14:14:56]line ФД: 192604 [14:14:56]line ФПД: 169985919462773 [14:14:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T141500&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192604&fm=169985919462773&tin=02508201610067®Number=0000000000091776&sum=35000 [14:14:56]OFD Sender: Processing packet 192604 [packets to send 75, broken 74] [14:14:56]ProducePacketName [14:14:56]name=ofd_packets/00192604 [14:14:56]OFD Sender: To server: pG, [14:14:56]CommunicateWithHost lk.salyk.kg:30040 [14:14:56]ConnectInit lk.salyk.kg [14:14:56]written 0, free lines is 4095 [14:14:56]Connected sock=9 [14: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 31 37 35 34 0F 01 00 00 2A 59 07 01 84 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8B 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 98 00 00 00 F4 03 04 00 64 9C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C F0 02 00 35 04 06 00 9A 99 EE 58 AD 75 E6 E6 DE 1C 75 FF 87 4A [14:14:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 65 AD 47 00 51 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C F0 02 00 F4 03 04 00 28 41 1F 67 B6 04 01 00 00 AD 2E 02 85 2D 1C AE AA [14:14:57]CommunicateWithHost err = 0 [14:14:57]CheckOFDResponse [14:14:57]1017 (14) - 77093643461234 [14:14:57]1041 (16) - 0000000000871754 [14:14:57]1040 (4) - 192604 [14:14:57]1012 (4) - 28.10.2024 07:45 [14:14:57]1206 (1) - 0 [14:14:57]OFD Sender: Remove packet 192604 [14:14:57]ProducePacketName [14:14:57]name=ofd_packets/00192604 [14:14:57]NVStorageDeleteData [14:14:57]Write to MH i2c: 01 00 00 DA 49 23 [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: 01 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: 01 07 00 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: 01 07 00 DA 49 00 00 00 00 00 C6 0C FC [14:14:57]RasterBufferAndPrint [14:14:57]line [14:14:57]line [14:14:57]line [14:14:57]line [14:14:57]line [14:14:57]written 0, free lines is 3276 [14:14:57]MH_Cut [14:14:57]Write to MH i2c: D1 01 00 E1 49 01 FC [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: D1 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: D1 01 00 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: D1 01 00 E1 49 00 FB [14:14:57]Write to MH i2c: 01 00 00 E2 49 2B [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]OFD Sender: No OFD packet to send [14:14:58]*** Cut start [14:14:58]*** Partial cut [14:14:58]*** CUTSNS_PIN = 1 [14:14:58]*** CUTSNS_PIN = 0 [14:14:58]*** Brake cut motor [14:14:58]Read from MH i2c: 01 [14:14:58]MH_I2C_Read... [14:14:58]*** Stop cut motor [14:14:58]*** Cut end [14:14:58]Read from MH i2c: 01 07 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: 01 07 00 E2 49 00 00 00 00 00 FF 0F 40 [14:14:58]process_action close_receipt done [14:14:58]requested_data is exist [14:14:58]produce_requested_data [14:14:58]requested_item fm.sn is exist - process it [14:14:58]wFMCommunicate request_size=4 [14:14:58]MH_SAM_APDU [14:14:58]CAPDU: 80 11 00 00 [14:14:58]Write to MH i2c: E2 08 00 E3 49 80 11 00 00 00 00 00 00 A6 [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:58]Read from MH i2c: E2 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: E2 17 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: E2 17 00 E3 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F9 [14:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:14:58]wFMCommunicate OK [14:14:58]requested_item fd.num is exist - process it [14:14:58]SAM_PROTO_GetFieldsCounters [14:14:58]wFMCommunicate request_size=4 [14:14:58]MH_SAM_APDU [14:14:58]CAPDU: 80 13 00 00 [14:14:58]Write to MH i2c: E2 08 00 E4 49 80 13 00 00 00 00 00 00 A9 [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:59]Read from MH i2c: E2 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 62 00 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 62 00 E4 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [14:14:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:59]wFMCommunicate OK [14:14:59]SAM_PROTO_GetFieldsCounters done [14:14:59]requested_item shift.num is exist - process it [14:14:59]requested_item shift.opened is exist - process it [14:14:59]req_shift_opened [14:14:59]FM_GetShiftState [14:14:59]SAM_PROTO_GetShiftState [14:14:59]wFMCommunicate request_size=4 [14:14:59]MH_SAM_APDU [14:14:59]CAPDU: 80 13 01 00 [14:14:59]Write to MH i2c: E2 08 00 E5 49 80 13 01 00 00 00 00 00 AB [14:14:59]Write i2c OK [14:14:59]MH_I2C_Read... [14:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:59]Read from MH i2c: E2 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 0E 00 [14:14:59]MH_I2C_Read... [14:14:59]Read from MH i2c: E2 0E 00 E5 49 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FB [14:14:59]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:14:59]wFMCommunicate OK [14:14:59]SAM_PROTO_GetShiftState done [14:14:59]FM_GetShiftState done [14:14:59]req_shift_opened done [14:14:59]requested_item shift.open_date is exist - process it [14:14:59]req_shift_open_date [14:14:59]req_shift_open_date done [14:14:59]produce_requested_data done [14:14:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192604,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:14:59]process_action_free close_receipt [14:14:59]json_value_free [14:14:59]json_value_free done [14:14:59]process_json_proto returns [14:14:59]Send response to host [14:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192604,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:14:59]free response buf [14:14:59]execute_script done [14:14:59]execute_script returns [14:14:59]free content buf [14:14:59]Sock 10.Close socket [14:14:59]Sock 10.Thread stoped [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:03]accept exits with 7 [14:17:03]New connection [14:17:03]New thread 3066707300 created [14:17:03]Thread 3066563940 joined [14:17:03]Waiting for new connection... [14:17:03] Sock 7.Parse request [14:17:03]Sock 7.Check first char [14:17:03]Sock 7.First char is OK [14:17:03]request: POST /json_proto HTTP/1.0 [14:17:03]Method: POST [14:17:03]URL: /json_proto [14:17:03]Method is POST - this is cgi request [14:17:03]url: /json_proto [14:17:03]query_string will be loaded in cgi processing [14:17:03]execute_cgi json_proto POST (null) [14:17:03]execute_cgi path=json_proto method=POST [14:17:03]POST find Content-Length [14:17:03]Host: 172.17.63.131:8080 [14:17:03]Content-Length: 681 [14:17:03]Content-Type: application/json [14:17:03] [14:17:03]POST finish read [14:17:03]Found Content-Length = 681 [14:17:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:03]execute_script... [14:17:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:03]POST & json_proto [14:17:03]process_json_proto [14:17:03]json parsed OK: [14:17:03]protocol is kg_v1.0 [14:17:03]action value=close_receipt [14:17:03]process_action close_receipt [14:17:03]cmd_close_receipt [14:17:03]MH_GetDate [14:17:03]Write to MH i2c: F0 00 00 E6 49 1E [14:17:03]Write i2c OK [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: F0 [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: F0 09 00 [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: F0 09 00 E6 49 00 E4 9C 1F 67 22 05 6E 64 26 [14:17:03]GetLastDocTimeStamp 1730124900 [14:17:03]current date 1730125028 [14:17:03]FM_GetShiftState [14:17:03]SAM_PROTO_GetShiftState [14:17:03]wFMCommunicate request_size=4 [14:17:03]MH_SAM_APDU [14:17:03]CAPDU: 80 13 01 00 [14:17:03]Write to MH i2c: E2 08 00 E7 49 80 13 01 00 00 00 00 00 AD [14:17:03]Write i2c OK [14:17:03]MH_I2C_Read... [14:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:03]Read from MH i2c: E2 [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: E2 0E 00 [14:17:03]MH_I2C_Read... [14:17:03]Read from MH i2c: E2 0E 00 E7 49 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FD [14:17:03]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:17:03]wFMCommunicate OK [14:17:03]SAM_PROTO_GetShiftState done [14:17:03]FM_GetShiftState done [14:17:03]opened in 1730075620 [14:17:03]opened+sec_in_day 1730162020 [14:17:03]quantity*price = 100015 [14:17:03]sum+1 = 100017 [14:17:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 153 28.10.2024 14:17 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192605 ФПД: 53018196565423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T141709&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192605&fm=53018196565423&tin=02508201610067®Number=0000000000091776&sum=100000 [14:17:04]StoreToDocumentArchive [14:17:04]shift 543 fd 192605 [14:17:04]save to /storage/0543/doc_00192605 [14:17:04]save last doc name /storage/0543/doc_00192605 to /storage/kkm_last_doc_name [14:17:04]save OK [14:17:04]Clear old archive folders... [14:17:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:04]tlvbuf is 019EC280 [14:17:04]SAM_PROTO_ClearQueue [14:17:04]wFMCommunicate request_size=4 [14:17:04]MH_SAM_APDU [14:17:04]CAPDU: 80 09 00 00 [14:17:04]Write to MH i2c: E2 08 00 F4 49 80 09 00 00 00 00 00 00 AF [14:17:04]Write i2c OK [14:17:04]MH_I2C_Read... [14:17:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:04]Read from MH i2c: E2 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 03 00 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 03 00 F4 49 00 90 00 B1 [14:17:04]RAPDU: 90 00 [14:17:04]wFMCommunicate OK [14:17:04]SAM_PROTO_ClearQueue done [14:17:04]KKMCreateOFDPacket [14:17:04]OFDProtocolAddRootSTLVToBuf [14:17:04]FM_MakeSignedData [14:17:04]FM_MakeSignedData [14:17:04]SAM_PROTO_SignData [14:17:04]wFMCommunicate request_size=4 [14:17:04]MH_SAM_APDU [14:17:04]CAPDU: 80 0D 01 02 [14:17:04]Write to MH i2c: E2 08 00 F5 49 80 0D 01 02 00 00 00 00 B7 [14:17:04]Write i2c OK [14:17:04]MH_I2C_Read... [14:17:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:04]Read from MH i2c: E2 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 03 00 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 03 00 F5 49 00 90 00 B2 [14:17:04]RAPDU: 90 00 [14:17:04]wFMCommunicate OK [14:17:04]wFMCommunicate request_size=255 [14:17:04]MH_SAM_APDU [14:17:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 E5 9C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D F0 02 00 35 04 06 00 30 [14:17:04]Write to MH i2c: E2 02 01 F6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 E5 9C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D F0 02 00 35 04 06 00 30 00 00 85 [14:17:04]Write i2c OK [14:17:04]MH_I2C_Read... [14:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:04]Read from MH i2c: E2 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 03 00 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 03 00 F6 49 00 90 00 B3 [14:17:04]RAPDU: 90 00 [14:17:04]wFMCommunicate OK [14:17:04]wFMCommunicate request_size=10 [14:17:04]MH_SAM_APDU [14:17:04]CAPDU: 80 0D 02 02 05 38 42 C5 DD AF [14:17:04]Write to MH i2c: E2 0D 00 F7 49 80 0D 02 02 05 00 38 42 C5 DD AF 00 00 8F [14:17:04]Write i2c OK [14:17:04]MH_I2C_Read... [14:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:04]Read from MH i2c: E2 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 03 00 [14:17:04]MH_I2C_Read... [14:17:04]Read from MH i2c: E2 03 00 F7 49 00 90 00 B4 [14:17:04]RAPDU: 90 00 [14:17:04]wFMCommunicate OK [14:17:04]wFMCommunicate request_size=4 [14:17:04]MH_SAM_APDU [14:17:04]CAPDU: 80 0D 03 02 [14:17:04]Write to MH i2c: E2 08 00 F8 49 80 0D 03 02 00 00 00 00 BC [14:17:04]Write i2c OK [14:17:04]MH_I2C_Read... [14:17:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:05]Read from MH i2c: E2 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: E2 0B 00 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: E2 0B 00 F8 49 00 E2 91 C1 8E 93 C4 2B 86 90 00 87 [14:17:05]RAPDU: E2 91 C1 8E 93 C4 2B 86 90 00 [14:17:05]wFMCommunicate OK [14:17:05]SAM_PROTO_SignData done [14:17:05]FM_MakeSignedData done [14:17:05]CreateOFDProtocolMessage [14:17:05]wFMCommunicate request_size=4 [14:17:05]MH_SAM_APDU [14:17:05]CAPDU: 80 11 00 00 [14:17:05]Write to MH i2c: E2 08 00 F9 49 80 11 00 00 00 00 00 00 BC [14:17:05]Write i2c OK [14:17:05]MH_I2C_Read... [14:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:05]Read from MH i2c: E2 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: E2 17 00 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: E2 17 00 F9 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0F [14:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:17:05]wFMCommunicate OK [14:17:05]CreateOFDProtocolMessage done [14:17:05]OFDSenderStorePacket 192605 [14:17:05]StoreOFDPacket docnum=192605 [14:17:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6F DA 07 01 12 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 E5 9C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D F0 02 00 35 04 06 00 30 38 42 C5 DD AF E2 91 C1 8E 93 C4 2B 86 [14:17:05]CheckFolder [14:17:05]dirname=/storage/ofd_packets [14:17:05]CheckFolder done [14:17:05]ProducePacketName [14:17:05]name=ofd_packets/00192605 [14:17:05]NVStorageSaveData ofd_packets/00192605 [14:17:05]File name is /storage/ofd_packets/00192605 [14:17:05]Write 301 bytes [14:17:05]NVStorageSaveData done [14:17:05]OFDSenderStorePacket done [14:17:05]KKMCreateOFDPacket done [14:17:05]NVStorageSaveData kkm_last_timestamp [14:17:05]File name is /storage/kkm_last_timestamp [14:17:05]Write 4 bytes [14:17:05]NVStorageSaveData done [14:17:05]ExternCall_PrintAddStr [14:17:05]wPrintStart [14:17:05]Write to MH i2c: 01 00 00 FA 49 43 [14:17:05]Write i2c OK [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: 01 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: 01 07 00 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: 01 07 00 FA 49 00 00 00 00 00 FF 0F 58 [14:17:05]RasterBufferAndPrint [14:17:05]line Счет N : (1)31925 [14:17:05]line ИНН: 02508201610067 [14:17:05]line Контрольно-Кассовый Чек [14:17:05]line ПРОДАЖА [14:17:05]line ТРК (МРК, ГНК) : 21 [14:17:05]line Товар: 2710124130 [14:17:05]line Аи-92-К-5 [14:17:05]line 14.950 * 66.90 [14:17:05]line = 1000.16 [14:17:05]line НДС 12% НСП 1% [14:17:05]line > о реализуемом товаре [14:17:05]line ОКРУГЛЕНИЕ: -0.16 [14:17:05]line ИТОГО: 1000.00 [14:17:05]line Внесено: 1000.00 [14:17:05]line СДАЧА: 0.00 [14:17:05]line НСП 1% : 8.85 [14:17:05]line НДС 12% : 106.21 [14:17:05]line Наличными: 1000.00 [14:17:05]line Безнал.: 0.00 [14:17:05]line Место: АЗС № 170 "Партнер Нефть" [14:17:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:17:05]line СНО: Общий режим [14:17:05]line Чек 153 28.10.2024 14:17 [14:17:05]line Смена: 543 ФФД: 1.0 [14:17:05]line ЗНМ: 0300000110 [14:17:05]line РНМ: 0000000000091776 [14:17:05]line Версия ККМ: 001 [14:17:05]line ФМ: 0000000000871754 [14:17:05]line ФД: 192605 [14:17:05]line ФПД: 53018196565423 [14:17:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T141709&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192605&fm=53018196565423&tin=02508201610067®Number=0000000000091776&sum=100000 [14:17:05]OFD Sender: Processing packet 192605 [packets to send 75, broken 74] [14:17:05]ProducePacketName [14:17:05]name=ofd_packets/00192605 [14:17:05]OFD Sender: To server: pG, [14:17:05]CommunicateWithHost lk.salyk.kg:30040 [14:17:05]ConnectInit lk.salyk.kg [14:17:05]written 0, free lines is 4095 [14:17:05]Connected sock=10 [14:17:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6F DA 07 01 12 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 E5 9C 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D F0 02 00 35 04 06 00 30 38 42 C5 DD AF E2 91 C1 8E 93 C4 2B 86 [14:17:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 33 94 47 00 F4 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D F0 02 00 F4 03 04 00 A8 41 1F 67 B6 04 01 00 00 F7 66 F8 59 AF 2C 11 76 [14:17:05]CommunicateWithHost err = 0 [14:17:05]CheckOFDResponse [14:17:05]1017 (14) - 77093643461234 [14:17:05]1041 (16) - 0000000000871754 [14:17:05]1040 (4) - 192605 [14:17:05]1012 (4) - 28.10.2024 07:47 [14:17:05]1206 (1) - 0 [14:17:05]OFD Sender: Remove packet 192605 [14:17:05]ProducePacketName [14:17:05]name=ofd_packets/00192605 [14:17:05]NVStorageDeleteData [14:17:05]Write to MH i2c: 01 00 00 25 4A 6F [14:17:05]Write i2c OK [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: 01 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: 01 07 00 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: 01 07 00 25 4A 00 00 00 00 00 BE 0C 40 [14:17:05]RasterBufferAndPrint [14:17:05]line [14:17:05]line [14:17:05]line [14:17:05]line [14:17:05]line [14:17:05]written 0, free lines is 3269 [14:17:05]MH_Cut [14:17:05]Write to MH i2c: D1 01 00 2C 4A 01 48 [14:17:05]Write i2c OK [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: D1 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: D1 01 00 [14:17:05]MH_I2C_Read... [14:17:05]Read from MH i2c: D1 01 00 2C 4A 00 47 [14:17:05]Write to MH i2c: 01 00 00 2D 4A 77 [14:17:05]Write i2c OK [14:17:05]MH_I2C_Read... [14:17:06]OFD Sender: No OFD packet to send [14:17:06]*** Cut start [14:17:06]*** Partial cut [14:17:06]*** CUTSNS_PIN = 1 [14:17:06]*** CUTSNS_PIN = 0 [14:17:06]*** Brake cut motor [14:17:07]Read from MH i2c: 01 [14:17:07]MH_I2C_Read... [14:17:07]*** Stop cut motor [14:17:07]*** Cut end [14:17:07]Read from MH i2c: 01 07 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: 01 07 00 2D 4A 00 00 00 00 00 FF 0F 8C [14:17:07]process_action close_receipt done [14:17:07]requested_data is exist [14:17:07]produce_requested_data [14:17:07]requested_item fm.sn is exist - process it [14:17:07]wFMCommunicate request_size=4 [14:17:07]MH_SAM_APDU [14:17:07]CAPDU: 80 11 00 00 [14:17:07]Write to MH i2c: E2 08 00 2E 4A 80 11 00 00 00 00 00 00 F2 [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 17 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 17 00 2E 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 45 [14:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:17:07]wFMCommunicate OK [14:17:07]requested_item fd.num is exist - process it [14:17:07]SAM_PROTO_GetFieldsCounters [14:17:07]wFMCommunicate request_size=4 [14:17:07]MH_SAM_APDU [14:17:07]CAPDU: 80 13 00 00 [14:17:07]Write to MH i2c: E2 08 00 2F 4A 80 13 00 00 00 00 00 00 F5 [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 62 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 62 00 2F 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [14:17:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:17:07]wFMCommunicate OK [14:17:07]SAM_PROTO_GetFieldsCounters done [14:17:07]requested_item shift.num is exist - process it [14:17:07]requested_item shift.opened is exist - process it [14:17:07]req_shift_opened [14:17:07]FM_GetShiftState [14:17:07]SAM_PROTO_GetShiftState [14:17:07]wFMCommunicate request_size=4 [14:17:07]MH_SAM_APDU [14:17:07]CAPDU: 80 13 01 00 [14:17:07]Write to MH i2c: E2 08 00 30 4A 80 13 01 00 00 00 00 00 F7 [14:17:07]Write i2c OK [14:17:07]MH_I2C_Read... [14:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:07]Read from MH i2c: E2 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 0E 00 [14:17:07]MH_I2C_Read... [14:17:07]Read from MH i2c: E2 0E 00 30 4A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 47 [14:17:07]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:17:07]wFMCommunicate OK [14:17:07]SAM_PROTO_GetShiftState done [14:17:07]FM_GetShiftState done [14:17:07]req_shift_opened done [14:17:07]requested_item shift.open_date is exist - process it [14:17:07]req_shift_open_date [14:17:07]req_shift_open_date done [14:17:07]produce_requested_data done [14:17:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192605,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:17:07]process_action_free close_receipt [14:17:07]json_value_free [14:17:07]json_value_free done [14:17:07]process_json_proto returns [14:17:07]Send response to host [14:17:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192605,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:17:07]free response buf [14:17:07]execute_script done [14:17:07]execute_script returns [14:17:07]free content buf [14:17:07]Sock 7.Close socket [14:17:07]Sock 7.Thread stoped [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:35]accept exits with 9 [14:18:35]New connection [14:18:35]New thread 3066563940 created [14:18:35]Thread 3066707300 joined [14:18:35]Waiting for new connection... [14:18:35] Sock 9.Parse request [14:18:35]Sock 9.Check first char [14:18:35]Sock 9.First char is OK [14:18:35]request: POST /json_proto HTTP/1.0 [14:18:35]Method: POST [14:18:35]URL: /json_proto [14:18:35]Method is POST - this is cgi request [14:18:35]url: /json_proto [14:18:35]query_string will be loaded in cgi processing [14:18:35]execute_cgi json_proto POST (null) [14:18:35]execute_cgi path=json_proto method=POST [14:18:35]POST find Content-Length [14:18:35]Host: 172.17.63.131:8080 [14:18:35]Content-Length: 681 [14:18:35]Content-Type: application/json [14:18:35] [14:18:35]POST finish read [14:18:35]Found Content-Length = 681 [14:18:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:35]execute_script... [14:18: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)31926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:35]POST & json_proto [14:18:35]process_json_proto [14:18:35]json parsed OK: [14:18:35]protocol is kg_v1.0 [14:18:35]action value=close_receipt [14:18:35]process_action close_receipt [14:18:35]cmd_close_receipt [14:18:35]MH_GetDate [14:18:35]Write to MH i2c: F0 00 00 31 4A 6A [14:18:35]Write i2c OK [14:18:35]MH_I2C_Read... [14:18:35]Read from MH i2c: F0 [14:18:35]MH_I2C_Read... [14:18:35]Read from MH i2c: F0 09 00 [14:18:35]MH_I2C_Read... [14:18:35]Read from MH i2c: F0 09 00 31 4A 00 40 9D 1F 67 22 05 6E 64 CF [14:18:35]GetLastDocTimeStamp 1730125029 [14:18:35]current date 1730125120 [14:18:35]FM_GetShiftState [14:18:35]SAM_PROTO_GetShiftState [14:18:35]wFMCommunicate request_size=4 [14:18:35]MH_SAM_APDU [14:18:35]CAPDU: 80 13 01 00 [14:18:35]Write to MH i2c: E2 08 00 32 4A 80 13 01 00 00 00 00 00 F9 [14:18:35]Write i2c OK [14:18:35]MH_I2C_Read... [14:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:35]Read from MH i2c: E2 [14:18:35]MH_I2C_Read... [14:18:35]Read from MH i2c: E2 0E 00 [14:18:35]MH_I2C_Read... [14:18:35]Read from MH i2c: E2 0E 00 32 4A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 49 [14:18:35]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:18:35]wFMCommunicate OK [14:18:35]SAM_PROTO_GetShiftState done [14:18:35]FM_GetShiftState done [14:18:35]opened in 1730075620 [14:18:35]opened+sec_in_day 1730162020 [14:18:35]quantity*price = 100015 [14:18:35]sum+1 = 100017 [14:18:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 154 28.10.2024 14:18 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192606 ФПД: 101206707238605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T141841&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192606&fm=101206707238605&tin=02508201610067®Number=0000000000091776&sum=100000 [14:18:36]StoreToDocumentArchive [14:18:36]shift 543 fd 192606 [14:18:36]save to /storage/0543/doc_00192606 [14:18:36]save last doc name /storage/0543/doc_00192606 to /storage/kkm_last_doc_name [14:18:36]save OK [14:18:36]Clear old archive folders... [14:18:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:36]tlvbuf is 01A882C0 [14:18:36]SAM_PROTO_ClearQueue [14:18:36]wFMCommunicate request_size=4 [14:18:36]MH_SAM_APDU [14:18:36]CAPDU: 80 09 00 00 [14:18:36]Write to MH i2c: E2 08 00 3F 4A 80 09 00 00 00 00 00 00 FB [14:18:36]Write i2c OK [14:18:36]MH_I2C_Read... [14:18:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:36]Read from MH i2c: E2 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: E2 03 00 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: E2 03 00 3F 4A 00 90 00 FD [14:18:36]RAPDU: 90 00 [14:18:36]wFMCommunicate OK [14:18:36]SAM_PROTO_ClearQueue done [14:18:36]KKMCreateOFDPacket [14:18:36]OFDProtocolAddRootSTLVToBuf [14:18:36]FM_MakeSignedData [14:18:36]FM_MakeSignedData [14:18:36]SAM_PROTO_SignData [14:18:36]wFMCommunicate request_size=4 [14:18:36]MH_SAM_APDU [14:18:36]CAPDU: 80 0D 01 02 [14:18:36]Write to MH i2c: E2 08 00 40 4A 80 0D 01 02 00 00 00 00 03 [14:18:36]Write i2c OK [14:18:36]MH_I2C_Read... [14:18:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:36]Read from MH i2c: E2 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: E2 03 00 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: E2 03 00 40 4A 00 90 00 FE [14:18:36]RAPDU: 90 00 [14:18:36]wFMCommunicate OK [14:18:36]wFMCommunicate request_size=255 [14:18:36]MH_SAM_APDU [14:18: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 41 9D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E F0 02 00 35 04 06 00 5C [14:18:36]Write to MH i2c: E2 02 01 41 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 41 9D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E F0 02 00 35 04 06 00 5C 00 00 5C [14:18:36]Write i2c OK [14:18:36]MH_I2C_Read... [14:18:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:36]Read from MH i2c: E2 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: E2 03 00 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: E2 03 00 41 4A 00 90 00 FF [14:18:36]RAPDU: 90 00 [14:18:36]wFMCommunicate OK [14:18:36]wFMCommunicate request_size=10 [14:18:36]MH_SAM_APDU [14:18:36]CAPDU: 80 0D 02 02 05 0C 05 D5 76 CD [14:18:36]Write to MH i2c: E2 0D 00 42 4A 80 0D 02 02 05 00 0C 05 D5 76 CD 00 00 39 [14:18:36]Write i2c OK [14:18:36]MH_I2C_Read... [14:18:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:36]Read from MH i2c: E2 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: E2 03 00 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: E2 03 00 42 4A 00 90 00 00 [14:18:36]RAPDU: 90 00 [14:18:36]wFMCommunicate OK [14:18:36]wFMCommunicate request_size=4 [14:18:36]MH_SAM_APDU [14:18:36]CAPDU: 80 0D 03 02 [14:18:36]Write to MH i2c: E2 08 00 43 4A 80 0D 03 02 00 00 00 00 08 [14:18:36]Write i2c OK [14:18:36]MH_I2C_Read... [14:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:37]Read from MH i2c: E2 [14:18:37]MH_I2C_Read... [14:18:37]Read from MH i2c: E2 0B 00 [14:18:37]MH_I2C_Read... [14:18:37]Read from MH i2c: E2 0B 00 43 4A 00 3C 00 76 F9 E6 9B 23 B3 90 00 0B [14:18:37]RAPDU: 3C 00 76 F9 E6 9B 23 B3 90 00 [14:18:37]wFMCommunicate OK [14:18:37]SAM_PROTO_SignData done [14:18:37]FM_MakeSignedData done [14:18:37]CreateOFDProtocolMessage [14:18:37]wFMCommunicate request_size=4 [14:18:37]MH_SAM_APDU [14:18:37]CAPDU: 80 11 00 00 [14:18:37]Write to MH i2c: E2 08 00 44 4A 80 11 00 00 00 00 00 00 08 [14:18:37]Write i2c OK [14:18:37]MH_I2C_Read... [14:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:37]Read from MH i2c: E2 [14:18:37]MH_I2C_Read... [14:18:37]Read from MH i2c: E2 17 00 [14:18:37]MH_I2C_Read... [14:18:37]Read from MH i2c: E2 17 00 44 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5B [14:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:18:37]wFMCommunicate OK [14:18:37]CreateOFDProtocolMessage done [14:18:37]OFDSenderStorePacket 192606 [14:18:37]StoreOFDPacket docnum=192606 [14:18:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DC 12 07 01 E4 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 41 9D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E F0 02 00 35 04 06 00 5C 0C 05 D5 76 CD 3C 00 76 F9 E6 9B 23 B3 [14:18:37]CheckFolder [14:18:37]dirname=/storage/ofd_packets [14:18:37]CheckFolder done [14:18:37]ProducePacketName [14:18:37]name=ofd_packets/00192606 [14:18:37]NVStorageSaveData ofd_packets/00192606 [14:18:37]File name is /storage/ofd_packets/00192606 [14:18:37]Write 301 bytes [14:18:37]NVStorageSaveData done [14:18:37]OFDSenderStorePacket done [14:18:37]KKMCreateOFDPacket done [14:18:37]NVStorageSaveData kkm_last_timestamp [14:18:37]File name is /storage/kkm_last_timestamp [14:18:37]Write 4 bytes [14:18:37]NVStorageSaveData done [14:18:37]ExternCall_PrintAddStr [14:18:37]wPrintStart [14:18:37]Write to MH i2c: 01 00 00 45 4A 8F [14:18:37]Write i2c OK [14:18:37]MH_I2C_Read... [14:18:37]Read from MH i2c: 01 [14:18:37]MH_I2C_Read... [14:18:37]Read from MH i2c: 01 07 00 [14:18:37]MH_I2C_Read... [14:18:37]Read from MH i2c: 01 07 00 45 4A 00 00 00 00 00 FF 0F A4 [14:18:37]RasterBufferAndPrint [14:18:37]line Счет N : (1)31926 [14:18:37]line ИНН: 02508201610067 [14:18:37]line Контрольно-Кассовый Чек [14:18:37]line ПРОДАЖА [14:18:37]line ТРК (МРК, ГНК) : 12 [14:18:37]line Товар: 2710124130 [14:18:37]line Аи-92-К-5 [14:18:37]line 14.950 * 66.90 [14:18:37]line = 1000.16 [14:18:37]line НДС 12% НСП 1% [14:18:37]line > о реализуемом товаре [14:18:37]line ОКРУГЛЕНИЕ: -0.16 [14:18:37]line ИТОГО: 1000.00 [14:18:37]line Внесено: 1000.00 [14:18:37]line СДАЧА: 0.00 [14:18:37]line НСП 1% : 8.85 [14:18:37]line НДС 12% : 106.21 [14:18:37]line Наличными: 1000.00 [14:18:37]line Безнал.: 0.00 [14:18:37]line Место: АЗС № 170 "Партнер Нефть" [14:18:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:18:37]line СНО: Общий режим [14:18:37]line Чек 154 28.10.2024 14:18 [14:18:37]line Смена: 543 ФФД: 1.0 [14:18:37]line ЗНМ: 0300000110 [14:18:37]line РНМ: 0000000000091776 [14:18:37]line Версия ККМ: 001 [14:18:37]line ФМ: 0000000000871754 [14:18:37]line ФД: 192606 [14:18:37]line ФПД: 101206707238605 [14:18:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T141841&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192606&fm=101206707238605&tin=02508201610067®Number=0000000000091776&sum=100000 [14:18:37]OFD Sender: Processing packet 192606 [packets to send 75, broken 74] [14:18:37]ProducePacketName [14:18:37]name=ofd_packets/00192606 [14:18:37]OFD Sender: To server: pG, [14:18:37]CommunicateWithHost lk.salyk.kg:30040 [14:18:37]ConnectInit lk.salyk.kg [14:18:37]written 0, free lines is 4095 [14:18:37]Connected sock=10 [14:18:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DC 12 07 01 E4 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 41 9D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E F0 02 00 35 04 06 00 5C 0C 05 D5 76 CD 3C 00 76 F9 E6 9B 23 B3 [14:18:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BA 78 47 00 05 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E F0 02 00 F4 03 04 00 04 42 1F 67 B6 04 01 00 00 D1 25 3F AC 2B 5F BB 7D [14:18:37]CommunicateWithHost err = 0 [14:18:37]CheckOFDResponse [14:18:37]1017 (14) - 77093643461234 [14:18:37]1041 (16) - 0000000000871754 [14:18:37]1040 (4) - 192606 [14:18:37]1012 (4) - 28.10.2024 07:49 [14:18:37]1206 (1) - 0 [14:18:37]OFD Sender: Remove packet 192606 [14:18:37]ProducePacketName [14:18:37]name=ofd_packets/00192606 [14:18:37]NVStorageDeleteData [14:18:37]Write to MH i2c: 01 00 00 70 4A BA [14:18:37]Write i2c OK [14:18:37]MH_I2C_Read... [14:18:37]Read from MH i2c: 01 [14:18:37]MH_I2C_Read... [14:18:37]Read from MH i2c: 01 07 00 [14:18:37]MH_I2C_Read... [14:18:37]Read from MH i2c: 01 07 00 70 4A 00 00 00 00 00 BB 0C 88 [14:18:37]RasterBufferAndPrint [14:18:37]line [14:18:37]line [14:18:37]line [14:18:37]line [14:18:37]line [14:18:37]written 0, free lines is 3265 [14:18:37]MH_Cut [14:18:37]Write to MH i2c: D1 01 00 77 4A 01 93 [14:18:37]Write i2c OK [14:18:37]MH_I2C_Read... [14:18:37]Read from MH i2c: D1 [14:18:37]MH_I2C_Read... [14:18:37]Read from MH i2c: D1 01 00 [14:18:37]MH_I2C_Read... [14:18:37]Read from MH i2c: D1 01 00 77 4A 00 92 [14:18:37]Write to MH i2c: 01 00 00 78 4A C2 [14:18:37]Write i2c OK [14:18:37]MH_I2C_Read... [14:18:38]OFD Sender: No OFD packet to send [14:18:38]*** Cut start [14:18:38]*** Partial cut [14:18:38]*** CUTSNS_PIN = 1 [14:18:38]*** CUTSNS_PIN = 0 [14:18:39]*** Brake cut motor [14:18:39]Read from MH i2c: 01 [14:18:39]MH_I2C_Read... [14:18:39]*** Stop cut motor [14:18:39]*** Cut end [14:18:39]Read from MH i2c: 01 07 00 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: 01 07 00 78 4A 00 00 00 00 00 FF 0F D7 [14:18:39]process_action close_receipt done [14:18:39]requested_data is exist [14:18:39]produce_requested_data [14:18:39]requested_item fm.sn is exist - process it [14:18:39]wFMCommunicate request_size=4 [14:18:39]MH_SAM_APDU [14:18:39]CAPDU: 80 11 00 00 [14:18:39]Write to MH i2c: E2 08 00 79 4A 80 11 00 00 00 00 00 00 3D [14:18:39]Write i2c OK [14:18:39]MH_I2C_Read... [14:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:39]Read from MH i2c: E2 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 17 00 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 17 00 79 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 90 [14:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:18:39]wFMCommunicate OK [14:18:39]requested_item fd.num is exist - process it [14:18:39]SAM_PROTO_GetFieldsCounters [14:18:39]wFMCommunicate request_size=4 [14:18:39]MH_SAM_APDU [14:18:39]CAPDU: 80 13 00 00 [14:18:39]Write to MH i2c: E2 08 00 7A 4A 80 13 00 00 00 00 00 00 40 [14:18:39]Write i2c OK [14:18:39]MH_I2C_Read... [14:18:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:39]Read from MH i2c: E2 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 62 00 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 62 00 7A 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [14:18:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:39]wFMCommunicate OK [14:18:39]SAM_PROTO_GetFieldsCounters done [14:18:39]requested_item shift.num is exist - process it [14:18:39]requested_item shift.opened is exist - process it [14:18:39]req_shift_opened [14:18:39]FM_GetShiftState [14:18:39]SAM_PROTO_GetShiftState [14:18:39]wFMCommunicate request_size=4 [14:18:39]MH_SAM_APDU [14:18:39]CAPDU: 80 13 01 00 [14:18:39]Write to MH i2c: E2 08 00 7B 4A 80 13 01 00 00 00 00 00 42 [14:18:39]Write i2c OK [14:18:39]MH_I2C_Read... [14:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:39]Read from MH i2c: E2 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 0E 00 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: E2 0E 00 7B 4A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 92 [14:18:39]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:18:39]wFMCommunicate OK [14:18:39]SAM_PROTO_GetShiftState done [14:18:39]FM_GetShiftState done [14:18:39]req_shift_opened done [14:18:39]requested_item shift.open_date is exist - process it [14:18:39]req_shift_open_date [14:18:39]req_shift_open_date done [14:18:39]produce_requested_data done [14:18:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192606,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:18:39]process_action_free close_receipt [14:18:39]json_value_free [14:18:39]json_value_free done [14:18:39]process_json_proto returns [14:18:39]Send response to host [14:18:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192606,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:18:39]free response buf [14:18:39]execute_script done [14:18:39]execute_script returns [14:18:39]free content buf [14:18:39]Sock 9.Close socket [14:18:39]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:44]accept exits with 7 [14:21:44]New connection [14:21:44]New thread 3066707300 created [14:21:44]Thread 3066563940 joined [14:21:44]Waiting for new connection... [14:21:44] Sock 7.Parse request [14:21:44]Sock 7.Check first char [14:21:44]Sock 7.First char is OK [14:21:44]request: POST /json_proto HTTP/1.0 [14:21:44]Method: POST [14:21:44]URL: /json_proto [14:21:44]Method is POST - this is cgi request [14:21:44]url: /json_proto [14:21:44]query_string will be loaded in cgi processing [14:21:44]execute_cgi json_proto POST (null) [14:21:44]execute_cgi path=json_proto method=POST [14:21:44]POST find Content-Length [14:21:44]Host: 172.17.63.131:8080 [14:21:44]Content-Length: 678 [14:21:44]Content-Type: application/json [14:21:44] [14:21:44]POST finish read [14:21:44]Found Content-Length = 678 [14:21:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:44]execute_script... [14:21:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:44]POST & json_proto [14:21:44]process_json_proto [14:21:44]json parsed OK: [14:21:44]protocol is kg_v1.0 [14:21:44]action value=close_receipt [14:21:44]process_action close_receipt [14:21:44]cmd_close_receipt [14:21:44]MH_GetDate [14:21:44]Write to MH i2c: F0 00 00 7C 4A B5 [14:21:44]Write i2c OK [14:21:44]MH_I2C_Read... [14:21:44]Read from MH i2c: F0 [14:21:44]MH_I2C_Read... [14:21:44]Read from MH i2c: F0 09 00 [14:21:44]MH_I2C_Read... [14:21:44]Read from MH i2c: F0 09 00 7C 4A 00 FE 9D 1F 67 22 05 6E 64 D8 [14:21:44]GetLastDocTimeStamp 1730125121 [14:21:44]current date 1730125310 [14:21:44]FM_GetShiftState [14:21:44]SAM_PROTO_GetShiftState [14:21:44]wFMCommunicate request_size=4 [14:21:44]MH_SAM_APDU [14:21:44]CAPDU: 80 13 01 00 [14:21:44]Write to MH i2c: E2 08 00 7D 4A 80 13 01 00 00 00 00 00 44 [14:21:44]Write i2c OK [14:21:44]MH_I2C_Read... [14:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:45]Read from MH i2c: E2 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: E2 0E 00 [14:21:45]MH_I2C_Read... [14:21:45]Read from MH i2c: E2 0E 00 7D 4A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 94 [14:21:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:21:45]wFMCommunicate OK [14:21:45]SAM_PROTO_GetShiftState done [14:21:45]FM_GetShiftState done [14:21:45]opened in 1730075620 [14:21:45]opened+sec_in_day 1730162020 [14:21:45]quantity*price = 300075 [14:21:45]sum+1 = 300077 [14:21:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 155 28.10.2024 14:21 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192607 ФПД: 41267026374567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T142150&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192607&fm=41267026374567&tin=02508201610067®Number=0000000000091776&sum=300000 [14:21:46]StoreToDocumentArchive [14:21:46]shift 543 fd 192607 [14:21:46]save to /storage/0543/doc_00192607 [14:21:46]save last doc name /storage/0543/doc_00192607 to /storage/kkm_last_doc_name [14:21:46]save OK [14:21:46]Clear old archive folders... [14:21:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:21:46]tlvbuf is 0197B6A0 [14:21:46]SAM_PROTO_ClearQueue [14:21:46]wFMCommunicate request_size=4 [14:21:46]MH_SAM_APDU [14:21:46]CAPDU: 80 09 00 00 [14:21:46]Write to MH i2c: E2 08 00 8A 4A 80 09 00 00 00 00 00 00 46 [14:21:46]Write i2c OK [14:21:46]MH_I2C_Read... [14:21:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:46]Read from MH i2c: E2 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: E2 03 00 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: E2 03 00 8A 4A 00 90 00 48 [14:21:46]RAPDU: 90 00 [14:21:46]wFMCommunicate OK [14:21:46]SAM_PROTO_ClearQueue done [14:21:46]KKMCreateOFDPacket [14:21:46]OFDProtocolAddRootSTLVToBuf [14:21:46]FM_MakeSignedData [14:21:46]FM_MakeSignedData [14:21:46]SAM_PROTO_SignData [14:21:46]wFMCommunicate request_size=4 [14:21:46]MH_SAM_APDU [14:21:46]CAPDU: 80 0D 01 02 [14:21:46]Write to MH i2c: E2 08 00 8B 4A 80 0D 01 02 00 00 00 00 4E [14:21:46]Write i2c OK [14:21:46]MH_I2C_Read... [14:21:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:46]Read from MH i2c: E2 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: E2 03 00 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: E2 03 00 8B 4A 00 90 00 49 [14:21:46]RAPDU: 90 00 [14:21:46]wFMCommunicate OK [14:21:46]wFMCommunicate request_size=255 [14:21:46]MH_SAM_APDU [14:21:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FE 9D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F F0 02 00 35 04 06 00 25 88 3A 72 [14:21:46]Write to MH i2c: E2 02 01 8C 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FE 9D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F F0 02 00 35 04 06 00 25 88 3A 72 00 00 96 [14:21:46]Write i2c OK [14:21:46]MH_I2C_Read... [14:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:46]Read from MH i2c: E2 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: E2 03 00 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: E2 03 00 8C 4A 00 90 00 4A [14:21:46]RAPDU: 90 00 [14:21:46]wFMCommunicate OK [14:21:46]wFMCommunicate request_size=7 [14:21:46]MH_SAM_APDU [14:21:46]CAPDU: 80 0D 02 02 02 AF A7 [14:21:46]Write to MH i2c: E2 0A 00 8D 4A 80 0D 02 02 02 00 AF A7 00 00 AB [14:21:46]Write i2c OK [14:21:46]MH_I2C_Read... [14:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:46]Read from MH i2c: E2 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: E2 03 00 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: E2 03 00 8D 4A 00 90 00 4B [14:21:46]RAPDU: 90 00 [14:21:46]wFMCommunicate OK [14:21:46]wFMCommunicate request_size=4 [14:21:46]MH_SAM_APDU [14:21:46]CAPDU: 80 0D 03 02 [14:21:46]Write to MH i2c: E2 08 00 8E 4A 80 0D 03 02 00 00 00 00 53 [14:21:46]Write i2c OK [14:21:46]MH_I2C_Read... [14:21:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:46]Read from MH i2c: E2 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: E2 0B 00 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: E2 0B 00 8E 4A 00 B2 2D 59 27 FF FE 86 E3 90 00 19 [14:21:46]RAPDU: B2 2D 59 27 FF FE 86 E3 90 00 [14:21:46]wFMCommunicate OK [14:21:46]SAM_PROTO_SignData done [14:21:46]FM_MakeSignedData done [14:21:46]CreateOFDProtocolMessage [14:21:46]wFMCommunicate request_size=4 [14:21:46]MH_SAM_APDU [14:21:46]CAPDU: 80 11 00 00 [14:21:46]Write to MH i2c: E2 08 00 8F 4A 80 11 00 00 00 00 00 00 53 [14:21:46]Write i2c OK [14:21:46]MH_I2C_Read... [14:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:46]Read from MH i2c: E2 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: E2 17 00 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: E2 17 00 8F 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [14:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:21:46]wFMCommunicate OK [14:21:46]CreateOFDProtocolMessage done [14:21:46]OFDSenderStorePacket 192607 [14:21:46]StoreOFDPacket docnum=192607 [14:21:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D0 A6 04 01 36 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FE 9D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F F0 02 00 35 04 06 00 25 88 3A 72 AF A7 B2 2D 59 27 FF FE 86 E3 [14:21:46]CheckFolder [14:21:46]dirname=/storage/ofd_packets [14:21:46]CheckFolder done [14:21:46]ProducePacketName [14:21:46]name=ofd_packets/00192607 [14:21:46]NVStorageSaveData ofd_packets/00192607 [14:21:46]File name is /storage/ofd_packets/00192607 [14:21:46]Write 298 bytes [14:21:46]NVStorageSaveData done [14:21:46]OFDSenderStorePacket done [14:21:46]KKMCreateOFDPacket done [14:21:46]NVStorageSaveData kkm_last_timestamp [14:21:46]File name is /storage/kkm_last_timestamp [14:21:46]Write 4 bytes [14:21:46]NVStorageSaveData done [14:21:46]ExternCall_PrintAddStr [14:21:46]wPrintStart [14:21:46]Write to MH i2c: 01 00 00 90 4A DA [14:21:46]Write i2c OK [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: 01 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: 01 07 00 [14:21:46]MH_I2C_Read... [14:21:46]Read from MH i2c: 01 07 00 90 4A 00 00 00 00 00 FF 0F EF [14:21:46]RasterBufferAndPrint [14:21:46]line Счет N : (1)31927 [14:21:46]line ИНН: 02508201610067 [14:21:46]line Контрольно-Кассовый Чек [14:21:46]line ПРОДАЖА [14:21:46]line ТРК (МРК, ГНК) : 11 [14:21:46]line Товар: 2710194210 [14:21:46]line ДТ-К-5 [14:21:46]line 39.380 * 76.20 [14:21:46]line = 3000.76 [14:21:46]line НДС 12% НСП 1% [14:21:46]line > о реализуемом товаре [14:21:46]line ОКРУГЛЕНИЕ: -0.76 [14:21:46]line ИТОГО: 3000.00 [14:21:46]line Внесено: 3000.00 [14:21:46]line СДАЧА: 0.00 [14:21:46]line НСП 1% : 26.55 [14:21:46]line НДС 12% : 318.66 [14:21:46]line Наличными: 3000.00 [14:21:46]line Безнал.: 0.00 [14:21:46]line Место: АЗС № 170 "Партнер Нефть" [14:21:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:21:46]line СНО: Общий режим [14:21:46]line Чек 155 28.10.2024 14:21 [14:21:46]line Смена: 543 ФФД: 1.0 [14:21:46]line ЗНМ: 0300000110 [14:21:46]line РНМ: 0000000000091776 [14:21:46]line Версия ККМ: 001 [14:21:46]line ФМ: 0000000000871754 [14:21:46]line ФД: 192607 [14:21:46]line ФПД: 41267026374567 [14:21:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T142150&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192607&fm=41267026374567&tin=02508201610067®Number=0000000000091776&sum=300000 [14:21:46]OFD Sender: Processing packet 192607 [packets to send 75, broken 74] [14:21:46]ProducePacketName [14:21:46]name=ofd_packets/00192607 [14:21:46]OFD Sender: To server: pG, [14:21:46]CommunicateWithHost lk.salyk.kg:30040 [14:21:46]ConnectInit lk.salyk.kg [14:21:46]written 0, free lines is 4095 [14:21:47]Connected sock=10 [14:21:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D0 A6 04 01 36 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 FE 9D 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F F0 02 00 35 04 06 00 25 88 3A 72 AF A7 B2 2D 59 27 FF FE 86 E3 [14:21:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 27 5B 47 00 95 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F F0 02 00 F4 03 04 00 C2 42 1F 67 B6 04 01 00 00 8B 58 C6 F3 A9 83 C5 29 [14:21:47]CommunicateWithHost err = 0 [14:21:47]CheckOFDResponse [14:21:47]1017 (14) - 77093643461234 [14:21:47]1041 (16) - 0000000000871754 [14:21:47]1040 (4) - 192607 [14:21:47]1012 (4) - 28.10.2024 07:52 [14:21:47]1206 (1) - 0 [14:21:47]OFD Sender: Remove packet 192607 [14:21:47]ProducePacketName [14:21:47]name=ofd_packets/00192607 [14:21:47]NVStorageDeleteData [14:21:47]Write to MH i2c: 01 00 00 BB 4A 05 [14:21:47]Write i2c OK [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: 01 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: 01 07 00 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: 01 07 00 BB 4A 00 00 00 00 00 C3 0C DB [14:21:47]RasterBufferAndPrint [14:21:47]line [14:21:47]line [14:21:47]line [14:21:47]line [14:21:47]line [14:21:47]written 0, free lines is 3273 [14:21:47]MH_Cut [14:21:47]Write to MH i2c: D1 01 00 C2 4A 01 DE [14:21:47]Write i2c OK [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: D1 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: D1 01 00 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: D1 01 00 C2 4A 00 DD [14:21:47]Write to MH i2c: 01 00 00 C3 4A 0D [14:21:47]Write i2c OK [14:21:47]MH_I2C_Read... [14:21:47]OFD Sender: No OFD packet to send [14:21:48]*** Cut start [14:21:48]*** Partial cut [14:21:48]*** CUTSNS_PIN = 1 [14:21:48]*** CUTSNS_PIN = 0 [14:21:48]*** Brake cut motor [14:21:48]Read from MH i2c: 01 [14:21:48]MH_I2C_Read... [14:21:48]*** Stop cut motor [14:21:48]*** Cut end [14:21:48]Read from MH i2c: 01 07 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: 01 07 00 C3 4A 00 00 00 00 00 FF 0F 22 [14:21:48]process_action close_receipt done [14:21:48]requested_data is exist [14:21:48]produce_requested_data [14:21:48]requested_item fm.sn is exist - process it [14:21:48]wFMCommunicate request_size=4 [14:21:48]MH_SAM_APDU [14:21:48]CAPDU: 80 11 00 00 [14:21:48]Write to MH i2c: E2 08 00 C4 4A 80 11 00 00 00 00 00 00 88 [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:48]Read from MH i2c: E2 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 17 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 17 00 C4 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [14:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:21:48]wFMCommunicate OK [14:21:48]requested_item fd.num is exist - process it [14:21:48]SAM_PROTO_GetFieldsCounters [14:21:48]wFMCommunicate request_size=4 [14:21:48]MH_SAM_APDU [14:21:48]CAPDU: 80 13 00 00 [14:21:48]Write to MH i2c: E2 08 00 C5 4A 80 13 00 00 00 00 00 00 8B [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:49]Read from MH i2c: E2 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 62 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 62 00 C5 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [14:21:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:49]wFMCommunicate OK [14:21:49]SAM_PROTO_GetFieldsCounters done [14:21:49]requested_item shift.num is exist - process it [14:21:49]requested_item shift.opened is exist - process it [14:21:49]req_shift_opened [14:21:49]FM_GetShiftState [14:21:49]SAM_PROTO_GetShiftState [14:21:49]wFMCommunicate request_size=4 [14:21:49]MH_SAM_APDU [14:21:49]CAPDU: 80 13 01 00 [14:21:49]Write to MH i2c: E2 08 00 C6 4A 80 13 01 00 00 00 00 00 8D [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:49]Read from MH i2c: E2 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 0E 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 0E 00 C6 4A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DD [14:21:49]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:21:49]wFMCommunicate OK [14:21:49]SAM_PROTO_GetShiftState done [14:21:49]FM_GetShiftState done [14:21:49]req_shift_opened done [14:21:49]requested_item shift.open_date is exist - process it [14:21:49]req_shift_open_date [14:21:49]req_shift_open_date done [14:21:49]produce_requested_data done [14:21:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192607,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:21:49]process_action_free close_receipt [14:21:49]json_value_free [14:21:49]json_value_free done [14:21:49]process_json_proto returns [14:21:49]Send response to host [14:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192607,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:21:49]free response buf [14:21:49]execute_script done [14:21:49]execute_script returns [14:21:49]free content buf [14:21:49]Sock 7.Close socket [14:21:49]Sock 7.Thread stoped [14:21:49]accept exits with 9 [14:21:49]New connection [14:21:49]New thread 3066563940 created [14:21:49]Thread 3066707300 joined [14:21:49]Waiting for new connection... [14:21:49] Sock 9.Parse request [14:21:49]Sock 9.Check first char [14:21:49]Sock 9.First char is OK [14:21:49]request: POST /json_proto HTTP/1.0 [14:21:49]Method: POST [14:21:49]URL: /json_proto [14:21:49]Method is POST - this is cgi request [14:21:49]url: /json_proto [14:21:49]query_string will be loaded in cgi processing [14:21:49]execute_cgi json_proto POST (null) [14:21:49]execute_cgi path=json_proto method=POST [14:21:49]POST find Content-Length [14:21:49]Host: 172.17.63.131:8080 [14:21:49]Content-Length: 676 [14:21:49]Content-Type: application/json [14:21:49] [14:21:49]POST finish read [14:21:49]Found Content-Length = 676 [14:21:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:49]execute_script... [14:21:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:49]POST & json_proto [14:21:49]process_json_proto [14:21:49]json parsed OK: [14:21:49]protocol is kg_v1.0 [14:21:49]action value=close_receipt [14:21:49]process_action close_receipt [14:21:49]cmd_close_receipt [14:21:49]MH_GetDate [14:21:49]Write to MH i2c: F0 00 00 C7 4A 00 [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: F0 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: F0 09 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: F0 09 00 C7 4A 00 02 9E 1F 67 22 05 6E 64 28 [14:21:49]GetLastDocTimeStamp 1730125310 [14:21:49]current date 1730125314 [14:21:49]FM_GetShiftState [14:21:49]SAM_PROTO_GetShiftState [14:21:49]wFMCommunicate request_size=4 [14:21:49]MH_SAM_APDU [14:21:49]CAPDU: 80 13 01 00 [14:21:49]Write to MH i2c: E2 08 00 C8 4A 80 13 01 00 00 00 00 00 8F [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 [14:21:49]MH_I2C_Read... [14:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:49]Read from MH i2c: E2 0E 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 0E 00 C8 4A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DF [14:21:49]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:21:49]wFMCommunicate OK [14:21:49]SAM_PROTO_GetShiftState done [14:21:49]FM_GetShiftState done [14:21:49]opened in 1730075620 [14:21:49]opened+sec_in_day 1730162020 [14:21:49]quantity*price = 50041 [14:21:49]sum+1 = 50042 [14:21:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 156 28.10.2024 14:21 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192608 ФПД: 104109718037223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T142155&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192608&fm=104109718037223&tin=02508201610067®Number=0000000000091776&sum=50000 [14:21:50]StoreToDocumentArchive [14:21:50]shift 543 fd 192608 [14:21:50]save to /storage/0543/doc_00192608 [14:21:50]save last doc name /storage/0543/doc_00192608 to /storage/kkm_last_doc_name [14:21:50]save OK [14:21:50]Clear old archive folders... [14:21:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:50]tlvbuf is B6F1CAD0 [14:21:50]SAM_PROTO_ClearQueue [14:21:50]wFMCommunicate request_size=4 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 09 00 00 [14:21:50]Write to MH i2c: E2 08 00 D5 4A 80 09 00 00 00 00 00 00 91 [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 D5 4A 00 90 00 93 [14:21:50]RAPDU: 90 00 [14:21:50]wFMCommunicate OK [14:21:50]SAM_PROTO_ClearQueue done [14:21:50]KKMCreateOFDPacket [14:21:50]OFDProtocolAddRootSTLVToBuf [14:21:50]FM_MakeSignedData [14:21:50]FM_MakeSignedData [14:21:50]SAM_PROTO_SignData [14:21:50]wFMCommunicate request_size=4 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 0D 01 02 [14:21:50]Write to MH i2c: E2 08 00 D6 4A 80 0D 01 02 00 00 00 00 99 [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:50]Read from MH i2c: E2 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: E2 03 00 D6 4A 00 90 00 94 [14:21:50]RAPDU: 90 00 [14:21:50]wFMCommunicate OK [14:21:50]wFMCommunicate request_size=255 [14:21:50]MH_SAM_APDU [14:21:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 03 9E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 F0 02 00 35 04 06 00 5E [14:21:51]Write to MH i2c: E2 02 01 D7 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 03 9E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 F0 02 00 35 04 06 00 5E 00 00 C1 [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:51]Read from MH i2c: E2 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: E2 03 00 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: E2 03 00 D7 4A 00 90 00 95 [14:21:51]RAPDU: 90 00 [14:21:51]wFMCommunicate OK [14:21:51]wFMCommunicate request_size=10 [14:21:51]MH_SAM_APDU [14:21:51]CAPDU: 80 0D 02 02 05 AF EE C2 E2 E7 [14:21:51]Write to MH i2c: E2 0D 00 D8 4A 80 0D 02 02 05 00 AF EE C2 E2 E7 00 00 CE [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:51]Read from MH i2c: E2 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: E2 03 00 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: E2 03 00 D8 4A 00 90 00 96 [14:21:51]RAPDU: 90 00 [14:21:51]wFMCommunicate OK [14:21:51]wFMCommunicate request_size=4 [14:21:51]MH_SAM_APDU [14:21:51]CAPDU: 80 0D 03 02 [14:21:51]Write to MH i2c: E2 08 00 D9 4A 80 0D 03 02 00 00 00 00 9E [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:51]Read from MH i2c: E2 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: E2 0B 00 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: E2 0B 00 D9 4A 00 72 C1 EE 8D DF 1B 06 CA 90 00 17 [14:21:51]RAPDU: 72 C1 EE 8D DF 1B 06 CA 90 00 [14:21:51]wFMCommunicate OK [14:21:51]SAM_PROTO_SignData done [14:21:51]FM_MakeSignedData done [14:21:51]CreateOFDProtocolMessage [14:21:51]wFMCommunicate request_size=4 [14:21:51]MH_SAM_APDU [14:21:51]CAPDU: 80 11 00 00 [14:21:51]Write to MH i2c: E2 08 00 DA 4A 80 11 00 00 00 00 00 00 9E [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:51]Read from MH i2c: E2 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: E2 17 00 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: E2 17 00 DA 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [14:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:21:51]wFMCommunicate OK [14:21:51]CreateOFDProtocolMessage done [14:21:51]OFDSenderStorePacket 192608 [14:21:51]StoreOFDPacket docnum=192608 [14:21:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4B D5 07 01 92 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 03 9E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 F0 02 00 35 04 06 00 5E AF EE C2 E2 E7 72 C1 EE 8D DF 1B 06 CA [14:21:51]CheckFolder [14:21:51]dirname=/storage/ofd_packets [14:21:51]CheckFolder done [14:21:51]ProducePacketName [14:21:51]name=ofd_packets/00192608 [14:21:51]NVStorageSaveData ofd_packets/00192608 [14:21:51]File name is /storage/ofd_packets/00192608 [14:21:51]Write 301 bytes [14:21:51]NVStorageSaveData done [14:21:51]OFDSenderStorePacket done [14:21:51]KKMCreateOFDPacket done [14:21:51]NVStorageSaveData kkm_last_timestamp [14:21:51]File name is /storage/kkm_last_timestamp [14:21:51]Write 4 bytes [14:21:51]NVStorageSaveData done [14:21:51]ExternCall_PrintAddStr [14:21:51]wPrintStart [14:21:51]Write to MH i2c: 01 00 00 DB 4A 25 [14:21:51]OFD Sender: Processing packet 192608 [packets to send 75, broken 74] [14:21:51]ProducePacketName [14:21:51]name=ofd_packets/00192608 [14:21:51]OFD Sender: To server: pG, [14:21:51]CommunicateWithHost lk.salyk.kg:30040 [14:21:51]ConnectInit lk.salyk.kg [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: 01 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: 01 07 00 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: 01 07 00 DB 4A 00 00 00 00 00 FF 0F 3A [14:21:51]RasterBufferAndPrint [14:21:51]line Счет N : (1)31928 [14:21:51]line ИНН: 02508201610067 [14:21:51]line Контрольно-Кассовый Чек [14:21:51]line ПРОДАЖА [14:21:51]line ТРК (МРК, ГНК) : 12 [14:21:51]line Товар: 2710124130 [14:21:51]line Аи-92-К-5 [14:21:51]line 7.480 * 66.90 [14:21:51]line = 500.41 [14:21:51]line НДС 12% НСП 1% [14:21:51]line > о реализуемом товаре [14:21:51]line ОКРУГЛЕНИЕ: -0.41 [14:21:51]line ИТОГО: 500.00 [14:21:51]line Внесено: 500.00 [14:21:51]line СДАЧА: 0.00 [14:21:51]line НСП 1% : 4.43 [14:21:51]line НДС 12% : 53.14 [14:21:51]line Наличными: 500.00 [14:21:51]line Безнал.: 0.00 [14:21:51]line Место: АЗС № 170 "Партнер Нефть" [14:21:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:21:51]line СНО: Общий режим [14:21:51]line Чек 156 28.10.2024 14:21 [14:21:51]line Смена: 543 ФФД: 1.0 [14:21:51]line ЗНМ: 0300000110 [14:21:51]line РНМ: 0000000000091776 [14:21:51]line Версия ККМ: 001 [14:21:51]line ФМ: 0000000000871754 [14:21:51]line ФД: 192608 [14:21:51]line ФПД: 104109718037223 [14:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T142155&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192608&fm=104109718037223&tin=02508201610067®Number=0000000000091776&sum=50000 [14:21:51]Connected sock=10 [14:21:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4B D5 07 01 92 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 03 9E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 F0 02 00 35 04 06 00 5E AF EE C2 E2 E7 72 C1 EE 8D DF 1B 06 CA [14:21:51]written 0, free lines is 4095 [14:21:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2C 5A 47 00 3A 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 31 37 35 34 10 04 04 00 60 F0 02 00 F4 03 04 00 C7 42 1F 67 B6 04 01 00 00 DC EF 65 69 FD 85 CC B4 [14:21:52]CommunicateWithHost err = 0 [14:21:52]CheckOFDResponse [14:21:52]1017 (14) - 77093643461234 [14:21:52]1041 (16) - 0000000000871754 [14:21:52]1040 (4) - 192608 [14:21:52]1012 (4) - 28.10.2024 07:52 [14:21:52]1206 (1) - 0 [14:21:52]OFD Sender: Remove packet 192608 [14:21:52]ProducePacketName [14:21:52]name=ofd_packets/00192608 [14:21:52]NVStorageDeleteData [14:21:52]Write to MH i2c: 01 00 00 06 4B 51 [14:21:52]Write i2c OK [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: 01 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: 01 07 00 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: 01 07 00 06 4B 00 00 00 00 00 C3 0C 27 [14:21:52]RasterBufferAndPrint [14:21:52]line [14:21:52]line [14:21:52]line [14:21:52]line [14:21:52]line [14:21:52]written 0, free lines is 3279 [14:21:52]MH_Cut [14:21:52]Write to MH i2c: D1 01 00 0D 4B 01 2A [14:21:52]Write i2c OK [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: D1 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: D1 01 00 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: D1 01 00 0D 4B 00 29 [14:21:52]Write to MH i2c: 01 00 00 0E 4B 59 [14:21:52]Write i2c OK [14:21:52]MH_I2C_Read... [14:21:52]OFD Sender: No OFD packet to send [14:21:53]*** Cut start [14:21:53]*** Partial cut [14:21:53]*** CUTSNS_PIN = 1 [14:21:53]*** CUTSNS_PIN = 0 [14:21:53]*** Brake cut motor [14:21:53]Read from MH i2c: 01 [14:21:53]MH_I2C_Read... [14:21:53]*** Stop cut motor [14:21:53]*** Cut end [14:21:53]Read from MH i2c: 01 07 00 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: 01 07 00 0E 4B 00 00 00 00 00 FF 0F 6E [14:21:53]process_action close_receipt done [14:21:53]requested_data is exist [14:21:53]produce_requested_data [14:21:53]requested_item fm.sn is exist - process it [14:21:53]wFMCommunicate request_size=4 [14:21:53]MH_SAM_APDU [14:21:53]CAPDU: 80 11 00 00 [14:21:53]Write to MH i2c: E2 08 00 0F 4B 80 11 00 00 00 00 00 00 D4 [14:21:53]Write i2c OK [14:21:53]MH_I2C_Read... [14:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:53]Read from MH i2c: E2 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: E2 17 00 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: E2 17 00 0F 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 27 [14:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:21:53]wFMCommunicate OK [14:21:53]requested_item fd.num is exist - process it [14:21:53]SAM_PROTO_GetFieldsCounters [14:21:53]wFMCommunicate request_size=4 [14:21:53]MH_SAM_APDU [14:21:53]CAPDU: 80 13 00 00 [14:21:53]Write to MH i2c: E2 08 00 10 4B 80 13 00 00 00 00 00 00 D7 [14:21:53]Write i2c OK [14:21:53]MH_I2C_Read... [14:21:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:54]Read from MH i2c: E2 [14:21:54]MH_I2C_Read... [14:21:54]Read from MH i2c: E2 62 00 [14:21:54]MH_I2C_Read... [14:21:54]Read from MH i2c: E2 62 00 10 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 60 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [14: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 60 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:54]wFMCommunicate OK [14:21:54]SAM_PROTO_GetFieldsCounters done [14:21:54]requested_item shift.num is exist - process it [14:21:54]requested_item shift.opened is exist - process it [14:21:54]req_shift_opened [14:21:54]FM_GetShiftState [14:21:54]SAM_PROTO_GetShiftState [14:21:54]wFMCommunicate request_size=4 [14:21:54]MH_SAM_APDU [14:21:54]CAPDU: 80 13 01 00 [14:21:54]Write to MH i2c: E2 08 00 11 4B 80 13 01 00 00 00 00 00 D9 [14:21:54]Write i2c OK [14:21:54]MH_I2C_Read... [14:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:54]Read from MH i2c: E2 [14:21:54]MH_I2C_Read... [14:21:54]Read from MH i2c: E2 0E 00 [14:21:54]MH_I2C_Read... [14:21:54]Read from MH i2c: E2 0E 00 11 4B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 29 [14:21:54]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:21:54]wFMCommunicate OK [14:21:54]SAM_PROTO_GetShiftState done [14:21:54]FM_GetShiftState done [14:21:54]req_shift_opened done [14:21:54]requested_item shift.open_date is exist - process it [14:21:54]req_shift_open_date [14:21:54]req_shift_open_date done [14:21:54]produce_requested_data done [14:21:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192608,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:21:54]process_action_free close_receipt [14:21:54]json_value_free [14:21:54]json_value_free done [14:21:54]process_json_proto returns [14:21:54]Send response to host [14:21:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192608,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:21:54]free response buf [14:21:54]execute_script done [14:21:54]execute_script returns [14:21:54]free content buf [14:21:54]Sock 9.Close socket [14:21:54]Sock 9.Thread stoped [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:01]accept exits with 7 [14:24:01]New connection [14:24:01]New thread 3066707300 created [14:24:01]Thread 3066563940 joined [14:24:01]Waiting for new connection... [14:24:01] Sock 7.Parse request [14:24:01]Sock 7.Check first char [14:24:01]Sock 7.First char is OK [14:24:01]request: POST /json_proto HTTP/1.0 [14:24:01]Method: POST [14:24:01]URL: /json_proto [14:24:01]Method is POST - this is cgi request [14:24:01]url: /json_proto [14:24:01]query_string will be loaded in cgi processing [14:24:01]execute_cgi json_proto POST (null) [14:24:01]execute_cgi path=json_proto method=POST [14:24:01]POST find Content-Length [14:24:01]Host: 172.17.63.131:8080 [14:24:01]Content-Length: 676 [14:24:01]Content-Type: application/json [14:24:01] [14:24:01]POST finish read [14:24:01]Found Content-Length = 676 [14:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:01]execute_script... [14:24: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)31930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:01]POST & json_proto [14:24:01]process_json_proto [14:24:01]json parsed OK: [14:24:01]protocol is kg_v1.0 [14:24:01]action value=close_receipt [14:24:01]process_action close_receipt [14:24:01]cmd_close_receipt [14:24:01]MH_GetDate [14:24:01]Write to MH i2c: F0 00 00 12 4B 4C [14:24:01]Write i2c OK [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: F0 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: F0 09 00 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: F0 09 00 12 4B 00 86 9E 1F 67 22 05 6E 64 F8 [14:24:01]GetLastDocTimeStamp 1730125315 [14:24:01]current date 1730125446 [14:24:01]FM_GetShiftState [14:24:01]SAM_PROTO_GetShiftState [14:24:01]wFMCommunicate request_size=4 [14:24:01]MH_SAM_APDU [14:24:01]CAPDU: 80 13 01 00 [14:24:01]Write to MH i2c: E2 08 00 13 4B 80 13 01 00 00 00 00 00 DB [14:24:01]Write i2c OK [14:24:01]MH_I2C_Read... [14:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:01]Read from MH i2c: E2 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: E2 0E 00 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: E2 0E 00 13 4B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2B [14:24:01]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:24:01]wFMCommunicate OK [14:24:01]SAM_PROTO_GetShiftState done [14:24:01]FM_GetShiftState done [14:24:01]opened in 1730075620 [14:24:01]opened+sec_in_day 1730162020 [14:24:01]quantity*price = 27027 [14:24:01]sum+1 = 27029 [14:24:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 157 28.10.2024 14:24 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192609 ФПД: 176521287963336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T142406&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192609&fm=176521287963336&tin=02508201610067®Number=0000000000091776&sum=27000 [14:24:02]StoreToDocumentArchive [14:24:02]shift 543 fd 192609 [14:24:02]save to /storage/0543/doc_00192609 [14:24:02]save last doc name /storage/0543/doc_00192609 to /storage/kkm_last_doc_name [14:24:02]save OK [14:24:02]Clear old archive folders... [14:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:02]tlvbuf is 01A66110 [14:24:02]SAM_PROTO_ClearQueue [14:24:02]wFMCommunicate request_size=4 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 09 00 00 [14:24:02]Write to MH i2c: E2 08 00 20 4B 80 09 00 00 00 00 00 00 DD [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 20 4B 00 90 00 DF [14:24:02]RAPDU: 90 00 [14:24:02]wFMCommunicate OK [14:24:02]SAM_PROTO_ClearQueue done [14:24:02]KKMCreateOFDPacket [14:24:02]OFDProtocolAddRootSTLVToBuf [14:24:02]FM_MakeSignedData [14:24:02]FM_MakeSignedData [14:24:02]SAM_PROTO_SignData [14:24:02]wFMCommunicate request_size=4 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 0D 01 02 [14:24:02]Write to MH i2c: E2 08 00 21 4B 80 0D 01 02 00 00 00 00 E5 [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 21 4B 00 90 00 E0 [14:24:02]RAPDU: 90 00 [14:24:02]wFMCommunicate OK [14:24:02]wFMCommunicate request_size=255 [14:24:02]MH_SAM_APDU [14:24: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 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 86 9E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 F0 02 00 35 04 06 00 A0 [14:24:02]Write to MH i2c: E2 02 01 22 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 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 86 9E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 F0 02 00 35 04 06 00 A0 00 00 51 [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]OFD Sender: No OFD packet to send [14:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 22 4B 00 90 00 E1 [14:24:02]RAPDU: 90 00 [14:24:02]wFMCommunicate OK [14:24:02]wFMCommunicate request_size=10 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 0D 02 02 05 8B 90 AA 12 C8 [14:24:02]Write to MH i2c: E2 0D 00 23 4B 80 0D 02 02 05 00 8B 90 AA 12 C8 00 00 91 [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 23 4B 00 90 00 E2 [14:24:02]RAPDU: 90 00 [14:24:02]wFMCommunicate OK [14:24:02]wFMCommunicate request_size=4 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 0D 03 02 [14:24:02]Write to MH i2c: E2 08 00 24 4B 80 0D 03 02 00 00 00 00 EA [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 0B 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 0B 00 24 4B 00 A3 91 DD 92 05 28 23 A4 90 00 82 [14:24:02]RAPDU: A3 91 DD 92 05 28 23 A4 90 00 [14:24:02]wFMCommunicate OK [14:24:02]SAM_PROTO_SignData done [14:24:02]FM_MakeSignedData done [14:24:02]CreateOFDProtocolMessage [14:24:02]wFMCommunicate request_size=4 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 11 00 00 [14:24:02]Write to MH i2c: E2 08 00 25 4B 80 11 00 00 00 00 00 00 EA [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 17 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 17 00 25 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3D [14:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:24:02]wFMCommunicate OK [14:24:02]CreateOFDProtocolMessage done [14:24:02]OFDSenderStorePacket 192609 [14:24:02]StoreOFDPacket docnum=192609 [14:24:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 17 31 07 01 38 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 86 9E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 F0 02 00 35 04 06 00 A0 8B 90 AA 12 C8 A3 91 DD 92 05 28 23 A4 [14:24:02]CheckFolder [14:24:02]dirname=/storage/ofd_packets [14:24:02]CheckFolder done [14:24:02]ProducePacketName [14:24:02]name=ofd_packets/00192609 [14:24:02]NVStorageSaveData ofd_packets/00192609 [14:24:02]File name is /storage/ofd_packets/00192609 [14:24:02]Write 301 bytes [14:24:02]NVStorageSaveData done [14:24:02]OFDSenderStorePacket done [14:24:02]KKMCreateOFDPacket done [14:24:02]NVStorageSaveData kkm_last_timestamp [14:24:02]File name is /storage/kkm_last_timestamp [14:24:02]Write 4 bytes [14:24:02]NVStorageSaveData done [14:24:02]ExternCall_PrintAddStr [14:24:02]wPrintStart [14:24:02]Write to MH i2c: 01 00 00 26 4B 71 [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: 01 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: 01 07 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: 01 07 00 26 4B 00 00 00 00 00 FF 0F 86 [14:24:02]RasterBufferAndPrint [14:24:02]line Счет N : (1)31930 [14:24:02]line ИНН: 02508201610067 [14:24:02]line Контрольно-Кассовый Чек [14:24:02]line ПРОДАЖА [14:24:02]line ТРК (МРК, ГНК) : 21 [14:24:02]line Товар: 2710124130 [14:24:02]line Аи-92-К-5 [14:24:02]line 4.040 * 66.90 [14:24:02]line = 270.28 [14:24:02]line НДС 12% НСП 1% [14:24:02]line > о реализуемом товаре [14:24:02]line ОКРУГЛЕНИЕ: -0.28 [14:24:02]line ИТОГО: 270.00 [14:24:02]line Внесено: 270.00 [14:24:02]line СДАЧА: 0.00 [14:24:02]line НСП 1% : 2.39 [14:24:02]line НДС 12% : 28.70 [14:24:02]line Наличными: 270.00 [14:24:02]line Безнал.: 0.00 [14:24:02]line Место: АЗС № 170 "Партнер Нефть" [14:24:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:24:02]line СНО: Общий режим [14:24:02]line Чек 157 28.10.2024 14:24 [14:24:02]line Смена: 543 ФФД: 1.0 [14:24:02]line ЗНМ: 0300000110 [14:24:02]line РНМ: 0000000000091776 [14:24:02]line Версия ККМ: 001 [14:24:02]line ФМ: 0000000000871754 [14:24:02]line ФД: 192609 [14:24:02]line ФПД: 176521287963336 [14:24:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T142406&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192609&fm=176521287963336&tin=02508201610067®Number=0000000000091776&sum=27000 [14:24:02]written 0, free lines is 4095 [14:24:02]OFD Sender: Processing packet 192609 [packets to send 75, broken 74] [14:24:02]ProducePacketName [14:24:02]name=ofd_packets/00192609 [14:24:02]OFD Sender: To server: pG, [14:24:03]CommunicateWithHost lk.salyk.kg:30040 [14:24:03]ConnectInit lk.salyk.kg [14:24:03]Write to MH i2c: 01 00 00 51 4B 9C [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: 01 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: 01 07 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: 01 07 00 51 4B 00 00 00 00 00 BE 0C 6D [14:24:03]RasterBufferAndPrint [14:24:03]line [14:24:03]line [14:24:03]line [14:24:03]line [14:24:03]line [14:24:03]written 0, free lines is 3268 [14:24:03]MH_Cut [14:24:03]Write to MH i2c: D1 01 00 58 4B 01 75 [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: D1 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: D1 01 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: D1 01 00 58 4B 00 74 [14:24:03]Write to MH i2c: 01 00 00 59 4B A4 [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]Connected sock=10 [14:24:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 17 31 07 01 38 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 86 9E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 F0 02 00 35 04 06 00 A0 8B 90 AA 12 C8 A3 91 DD 92 05 28 23 A4 [14:24:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E5 D7 47 00 77 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 F0 02 00 F4 03 04 00 4A 43 1F 67 B6 04 01 00 00 1A B5 78 21 E9 0C 66 3A [14:24:03]CommunicateWithHost err = 0 [14:24:03]CheckOFDResponse [14:24:03]1017 (14) - 77093643461234 [14:24:03]1041 (16) - 0000000000871754 [14:24:03]1040 (4) - 192609 [14:24:03]1012 (4) - 28.10.2024 07:54 [14:24:03]1206 (1) - 0 [14:24:03]OFD Sender: Remove packet 192609 [14:24:03]ProducePacketName [14:24:03]name=ofd_packets/00192609 [14:24:03]NVStorageDeleteData [14:24:04]OFD Sender: No OFD packet to send [14:24:04]*** Cut start [14:24:04]*** Partial cut [14:24:04]*** CUTSNS_PIN = 1 [14:24:04]*** CUTSNS_PIN = 0 [14:24:04]*** Brake cut motor [14:24:04]Read from MH i2c: 01 [14:24:04]MH_I2C_Read... [14:24:04]*** Stop cut motor [14:24:04]*** Cut end [14:24:04]Read from MH i2c: 01 07 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: 01 07 00 59 4B 00 00 00 00 00 FF 0F B9 [14:24:04]process_action close_receipt done [14:24:04]requested_data is exist [14:24:04]produce_requested_data [14:24:04]requested_item fm.sn is exist - process it [14:24:04]wFMCommunicate request_size=4 [14:24:04]MH_SAM_APDU [14:24:04]CAPDU: 80 11 00 00 [14:24:04]Write to MH i2c: E2 08 00 5A 4B 80 11 00 00 00 00 00 00 1F [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:04]Read from MH i2c: E2 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 17 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 17 00 5A 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 72 [14:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:24:04]wFMCommunicate OK [14:24:04]requested_item fd.num is exist - process it [14:24:04]SAM_PROTO_GetFieldsCounters [14:24:04]wFMCommunicate request_size=4 [14:24:04]MH_SAM_APDU [14:24:04]CAPDU: 80 13 00 00 [14:24:04]Write to MH i2c: E2 08 00 5B 4B 80 13 00 00 00 00 00 00 22 [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:05]Read from MH i2c: E2 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: E2 62 00 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: E2 62 00 5B 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 61 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [14:24:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 61 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:05]wFMCommunicate OK [14:24:05]SAM_PROTO_GetFieldsCounters done [14:24:05]requested_item shift.num is exist - process it [14:24:05]requested_item shift.opened is exist - process it [14:24:05]req_shift_opened [14:24:05]FM_GetShiftState [14:24:05]SAM_PROTO_GetShiftState [14:24:05]wFMCommunicate request_size=4 [14:24:05]MH_SAM_APDU [14:24:05]CAPDU: 80 13 01 00 [14:24:05]Write to MH i2c: E2 08 00 5C 4B 80 13 01 00 00 00 00 00 24 [14:24:05]Write i2c OK [14:24:05]MH_I2C_Read... [14:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:05]Read from MH i2c: E2 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: E2 0E 00 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: E2 0E 00 5C 4B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 74 [14:24:05]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:24:05]wFMCommunicate OK [14:24:05]SAM_PROTO_GetShiftState done [14:24:05]FM_GetShiftState done [14:24:05]req_shift_opened done [14:24:05]requested_item shift.open_date is exist - process it [14:24:05]req_shift_open_date [14:24:05]req_shift_open_date done [14:24:05]produce_requested_data done [14:24:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192609,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:24:05]process_action_free close_receipt [14:24:05]json_value_free [14:24:05]json_value_free done [14:24:05]process_json_proto returns [14:24:05]Send response to host [14:24:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192609,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:24:05]free response buf [14:24:05]execute_script done [14:24:05]execute_script returns [14:24:05]free content buf [14:24:05]Sock 7.Close socket [14:24:05]Sock 7.Thread stoped [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:25]accept exits with 9 [14:24:25]New connection [14:24:25]New thread 3066563940 created [14:24:25]Thread 3066707300 joined [14:24:25]Waiting for new connection... [14:24:25] Sock 9.Parse request [14:24:25]Sock 9.Check first char [14:24:25]Sock 9.First char is OK [14:24:25]request: POST /json_proto HTTP/1.0 [14:24:25]Method: POST [14:24:25]URL: /json_proto [14:24:25]Method is POST - this is cgi request [14:24:25]url: /json_proto [14:24:25]query_string will be loaded in cgi processing [14:24:25]execute_cgi json_proto POST (null) [14:24:25]execute_cgi path=json_proto method=POST [14:24:25]POST find Content-Length [14:24:25]Host: 172.17.63.131:8080 [14:24:25]Content-Length: 678 [14:24:25]Content-Type: application/json [14:24:25] [14:24:25]POST finish read [14:24:25]Found Content-Length = 678 [14:24:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:25]execute_script... [14:24:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:25]POST & json_proto [14:24:25]process_json_proto [14:24:25]json parsed OK: [14:24:25]protocol is kg_v1.0 [14:24:25]action value=close_receipt [14:24:25]process_action close_receipt [14:24:25]cmd_close_receipt [14:24:25]MH_GetDate [14:24:25]Write to MH i2c: F0 00 00 5D 4B 97 [14:24:25]Write i2c OK [14:24:25]MH_I2C_Read... [14:24:25]Read from MH i2c: F0 [14:24:25]MH_I2C_Read... [14:24:25]Read from MH i2c: F0 09 00 [14:24:25]MH_I2C_Read... [14:24:25]Read from MH i2c: F0 09 00 5D 4B 00 9F 9E 1F 67 22 05 6E 64 5C [14:24:25]GetLastDocTimeStamp 1730125446 [14:24:25]current date 1730125471 [14:24:25]FM_GetShiftState [14:24:25]SAM_PROTO_GetShiftState [14:24:25]wFMCommunicate request_size=4 [14:24:25]MH_SAM_APDU [14:24:25]CAPDU: 80 13 01 00 [14:24:25]Write to MH i2c: E2 08 00 5E 4B 80 13 01 00 00 00 00 00 26 [14:24:25]Write i2c OK [14:24:25]MH_I2C_Read... [14:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:25]Read from MH i2c: E2 [14:24:25]MH_I2C_Read... [14:24:25]Read from MH i2c: E2 0E 00 [14:24:25]MH_I2C_Read... [14:24:25]Read from MH i2c: E2 0E 00 5E 4B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 76 [14:24:25]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:24:25]wFMCommunicate OK [14:24:25]SAM_PROTO_GetShiftState done [14:24:25]FM_GetShiftState done [14:24:25]opened in 1730075620 [14:24:25]opened+sec_in_day 1730162020 [14:24:25]quantity*price = 150037 [14:24:25]sum+1 = 150039 [14:24:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 158 28.10.2024 14:24 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192610 ФПД: 160440196628722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T142431&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192610&fm=160440196628722&tin=02508201610067®Number=0000000000091776&sum=150000 [14:24:26]StoreToDocumentArchive [14:24:26]shift 543 fd 192610 [14:24:26]save to /storage/0543/doc_00192610 [14:24:26]save last doc name /storage/0543/doc_00192610 to /storage/kkm_last_doc_name [14:24:26]save OK [14:24:26]Clear old archive folders... [14:24:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:24:26]tlvbuf is 019C1690 [14:24:26]SAM_PROTO_ClearQueue [14:24:26]wFMCommunicate request_size=4 [14:24:26]MH_SAM_APDU [14:24:26]CAPDU: 80 09 00 00 [14:24:26]Write to MH i2c: E2 08 00 6B 4B 80 09 00 00 00 00 00 00 28 [14:24:26]Write i2c OK [14:24:26]MH_I2C_Read... [14:24:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:26]Read from MH i2c: E2 [14:24:26]MH_I2C_Read... [14:24:26]Read from MH i2c: E2 03 00 [14:24:26]MH_I2C_Read... [14:24:26]Read from MH i2c: E2 03 00 6B 4B 00 90 00 2A [14:24:26]RAPDU: 90 00 [14:24:26]wFMCommunicate OK [14:24:26]SAM_PROTO_ClearQueue done [14:24:26]KKMCreateOFDPacket [14:24:26]OFDProtocolAddRootSTLVToBuf [14:24:26]FM_MakeSignedData [14:24:26]FM_MakeSignedData [14:24:26]SAM_PROTO_SignData [14:24:26]wFMCommunicate request_size=4 [14:24:26]MH_SAM_APDU [14:24:26]CAPDU: 80 0D 01 02 [14:24:26]Write to MH i2c: E2 08 00 6C 4B 80 0D 01 02 00 00 00 00 30 [14:24:26]Write i2c OK [14:24:26]MH_I2C_Read... [14:24:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:26]Read from MH i2c: E2 [14:24:26]MH_I2C_Read... [14:24:26]Read from MH i2c: E2 03 00 [14:24:26]MH_I2C_Read... [14:24:26]Read from MH i2c: E2 03 00 6C 4B 00 90 00 2B [14:24:26]RAPDU: 90 00 [14:24:26]wFMCommunicate OK [14:24:26]wFMCommunicate request_size=255 [14:24:26]MH_SAM_APDU [14:24:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 9F 9E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 F0 02 00 35 04 06 00 91 EB 64 ED [14:24:26]Write to MH i2c: E2 02 01 6D 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 9F 9E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 F0 02 00 35 04 06 00 91 EB 64 ED 00 00 D4 [14:24:26]Write i2c OK [14:24:26]MH_I2C_Read... [14:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:26]Read from MH i2c: E2 [14:24:26]MH_I2C_Read... [14:24:26]Read from MH i2c: E2 03 00 [14:24:26]MH_I2C_Read... [14:24:26]Read from MH i2c: E2 03 00 6D 4B 00 90 00 2C [14:24:26]RAPDU: 90 00 [14:24:26]wFMCommunicate OK [14:24:26]wFMCommunicate request_size=7 [14:24:26]MH_SAM_APDU [14:24:26]CAPDU: 80 0D 02 02 02 80 F2 [14:24:26]Write to MH i2c: E2 0A 00 6E 4B 80 0D 02 02 02 00 80 F2 00 00 A9 [14:24:26]Write i2c OK [14:24:26]MH_I2C_Read... [14:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:27]Read from MH i2c: E2 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: E2 03 00 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: E2 03 00 6E 4B 00 90 00 2D [14:24:27]RAPDU: 90 00 [14:24:27]wFMCommunicate OK [14:24:27]wFMCommunicate request_size=4 [14:24:27]MH_SAM_APDU [14:24:27]CAPDU: 80 0D 03 02 [14:24:27]Write to MH i2c: E2 08 00 6F 4B 80 0D 03 02 00 00 00 00 35 [14:24:27]Write i2c OK [14:24:27]MH_I2C_Read... [14:24:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:27]Read from MH i2c: E2 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: E2 0B 00 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: E2 0B 00 6F 4B 00 6E 1C 4A FA 3C 18 2E 5A 90 00 E0 [14:24:27]RAPDU: 6E 1C 4A FA 3C 18 2E 5A 90 00 [14:24:27]wFMCommunicate OK [14:24:27]SAM_PROTO_SignData done [14:24:27]FM_MakeSignedData done [14:24:27]CreateOFDProtocolMessage [14:24:27]wFMCommunicate request_size=4 [14:24:27]MH_SAM_APDU [14:24:27]CAPDU: 80 11 00 00 [14:24:27]Write to MH i2c: E2 08 00 70 4B 80 11 00 00 00 00 00 00 35 [14:24:27]Write i2c OK [14:24:27]MH_I2C_Read... [14:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:27]Read from MH i2c: E2 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: E2 17 00 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: E2 17 00 70 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 88 [14:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:24:27]wFMCommunicate OK [14:24:27]CreateOFDProtocolMessage done [14:24:27]OFDSenderStorePacket 192610 [14:24:27]StoreOFDPacket docnum=192610 [14:24:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 47 98 04 01 F2 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 9F 9E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 F0 02 00 35 04 06 00 91 EB 64 ED 80 F2 6E 1C 4A FA 3C 18 2E 5A [14:24:27]CheckFolder [14:24:27]dirname=/storage/ofd_packets [14:24:27]CheckFolder done [14:24:27]ProducePacketName [14:24:27]name=ofd_packets/00192610 [14:24:27]NVStorageSaveData ofd_packets/00192610 [14:24:27]File name is /storage/ofd_packets/00192610 [14:24:27]Write 298 bytes [14:24:27]NVStorageSaveData done [14:24:27]OFDSenderStorePacket done [14:24:27]KKMCreateOFDPacket done [14:24:27]NVStorageSaveData kkm_last_timestamp [14:24:27]File name is /storage/kkm_last_timestamp [14:24:27]Write 4 bytes [14:24:27]NVStorageSaveData done [14:24:27]ExternCall_PrintAddStr [14:24:27]wPrintStart [14:24:27]Write to MH i2c: 01 00 00 71 4B BC [14:24:27]Write i2c OK [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: 01 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: 01 07 00 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: 01 07 00 71 4B 00 00 00 00 00 FF 0F D1 [14:24:27]RasterBufferAndPrint [14:24:27]line Счет N : (1)31929 [14:24:27]line ИНН: 02508201610067 [14:24:27]line Контрольно-Кассовый Чек [14:24:27]line ПРОДАЖА [14:24:27]line ТРК (МРК, ГНК) : 11 [14:24:27]line Товар: 2710194210 [14:24:27]line ДТ-К-5 [14:24:27]line 19.690 * 76.20 [14:24:27]line = 1500.38 [14:24:27]line НДС 12% НСП 1% [14:24:27]line > о реализуемом товаре [14:24:27]line ОКРУГЛЕНИЕ: -0.38 [14:24:27]line ИТОГО: 1500.00 [14:24:27]line Внесено: 1500.00 [14:24:27]line СДАЧА: 0.00 [14:24:27]line НСП 1% : 13.28 [14:24:27]line НДС 12% : 159.33 [14:24:27]line Наличными: 1500.00 [14:24:27]line Безнал.: 0.00 [14:24:27]line Место: АЗС № 170 "Партнер Нефть" [14:24:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:24:27]line СНО: Общий режим [14:24:27]line Чек 158 28.10.2024 14:24 [14:24:27]line Смена: 543 ФФД: 1.0 [14:24:27]line ЗНМ: 0300000110 [14:24:27]line РНМ: 0000000000091776 [14:24:27]line Версия ККМ: 001 [14:24:27]line ФМ: 0000000000871754 [14:24:27]line ФД: 192610 [14:24:27]line ФПД: 160440196628722 [14:24:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T142431&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192610&fm=160440196628722&tin=02508201610067®Number=0000000000091776&sum=150000 [14:24:27]OFD Sender: Processing packet 192610 [packets to send 75, broken 74] [14:24:27]ProducePacketName [14:24:27]name=ofd_packets/00192610 [14:24:27]OFD Sender: To server: pG, [14:24:27]CommunicateWithHost lk.salyk.kg:30040 [14:24:27]ConnectInit lk.salyk.kg [14:24:27]written 0, free lines is 4095 [14:24:27]Connected sock=11 [14:24:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 47 98 04 01 F2 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 9F 9E 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 F0 02 00 35 04 06 00 91 EB 64 ED 80 F2 6E 1C 4A FA 3C 18 2E 5A [14:24:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 40 E4 47 00 E6 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 F0 02 00 F4 03 04 00 62 43 1F 67 B6 04 01 00 00 AE D9 0F F3 B4 69 24 56 [14:24:27]CommunicateWithHost err = 0 [14:24:27]CheckOFDResponse [14:24:27]1017 (14) - 77093643461234 [14:24:27]1041 (16) - 0000000000871754 [14:24:27]1040 (4) - 192610 [14:24:27]1012 (4) - 28.10.2024 07:55 [14:24:27]1206 (1) - 0 [14:24:27]OFD Sender: Remove packet 192610 [14:24:27]ProducePacketName [14:24:27]name=ofd_packets/00192610 [14:24:27]NVStorageDeleteData [14:24:27]Write to MH i2c: 01 00 00 9C 4B E7 [14:24:27]Write i2c OK [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: 01 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: 01 07 00 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: 01 07 00 9C 4B 00 00 00 00 00 C0 0C BA [14:24:27]RasterBufferAndPrint [14:24:27]line [14:24:27]line [14:24:27]line [14:24:27]line [14:24:27]line [14:24:27]written 0, free lines is 3269 [14:24:27]MH_Cut [14:24:27]Write to MH i2c: D1 01 00 A3 4B 01 C0 [14:24:27]Write i2c OK [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: D1 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: D1 01 00 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: D1 01 00 A3 4B 00 BF [14:24:27]Write to MH i2c: 01 00 00 A4 4B EF [14:24:27]Write i2c OK [14:24:27]MH_I2C_Read... [14:24:28]OFD Sender: No OFD packet to send [14:24:28]*** Cut start [14:24:28]*** Partial cut [14:24:28]*** CUTSNS_PIN = 1 [14:24:28]*** CUTSNS_PIN = 0 [14:24:29]*** Brake cut motor [14:24:29]Read from MH i2c: 01 [14:24:29]MH_I2C_Read... [14:24:29]*** Stop cut motor [14:24:29]*** Cut end [14:24:29]Read from MH i2c: 01 07 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: 01 07 00 A4 4B 00 00 00 00 00 FF 0F 04 [14:24:29]process_action close_receipt done [14:24:29]requested_data is exist [14:24:29]produce_requested_data [14:24:29]requested_item fm.sn is exist - process it [14:24:29]wFMCommunicate request_size=4 [14:24:29]MH_SAM_APDU [14:24:29]CAPDU: 80 11 00 00 [14:24:29]Write to MH i2c: E2 08 00 A5 4B 80 11 00 00 00 00 00 00 6A [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:29]Read from MH i2c: E2 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 17 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 17 00 A5 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BD [14:24:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:24:29]wFMCommunicate OK [14:24:29]requested_item fd.num is exist - process it [14:24:29]SAM_PROTO_GetFieldsCounters [14:24:29]wFMCommunicate request_size=4 [14:24:29]MH_SAM_APDU [14:24:29]CAPDU: 80 13 00 00 [14:24:29]Write to MH i2c: E2 08 00 A6 4B 80 13 00 00 00 00 00 00 6D [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:29]Read from MH i2c: E2 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 62 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 62 00 A6 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 62 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [14:24:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 62 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:29]wFMCommunicate OK [14:24:29]SAM_PROTO_GetFieldsCounters done [14:24:29]requested_item shift.num is exist - process it [14:24:29]requested_item shift.opened is exist - process it [14:24:29]req_shift_opened [14:24:29]FM_GetShiftState [14:24:29]SAM_PROTO_GetShiftState [14:24:29]wFMCommunicate request_size=4 [14:24:29]MH_SAM_APDU [14:24:29]CAPDU: 80 13 01 00 [14:24:29]Write to MH i2c: E2 08 00 A7 4B 80 13 01 00 00 00 00 00 6F [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:29]Read from MH i2c: E2 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 0E 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 0E 00 A7 4B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 BF [14:24:29]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:24:29]wFMCommunicate OK [14:24:29]SAM_PROTO_GetShiftState done [14:24:29]FM_GetShiftState done [14:24:29]req_shift_opened done [14:24:29]requested_item shift.open_date is exist - process it [14:24:29]req_shift_open_date [14:24:29]req_shift_open_date done [14:24:29]produce_requested_data done [14:24:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192610,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:24:29]process_action_free close_receipt [14:24:29]json_value_free [14:24:29]json_value_free done [14:24:29]process_json_proto returns [14:24:29]Send response to host [14:24:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192610,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:24:29]free response buf [14:24:29]execute_script done [14:24:29]execute_script returns [14:24:29]free content buf [14:24:29]Sock 9.Close socket [14:24:29]Sock 9.Thread stoped [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]accept exits with 7 [14:26:13]New connection [14:26:13]New thread 3066707300 created [14:26:13]Thread 3066563940 joined [14:26:13]Waiting for new connection... [14:26:13] Sock 7.Parse request [14:26:13]Sock 7.Check first char [14:26:13]Sock 7.First char is OK [14:26:13]request: POST /json_proto HTTP/1.0 [14:26:13]Method: POST [14:26:13]URL: /json_proto [14:26:13]Method is POST - this is cgi request [14:26:13]url: /json_proto [14:26:13]query_string will be loaded in cgi processing [14:26:13]execute_cgi json_proto POST (null) [14:26:13]execute_cgi path=json_proto method=POST [14:26:13]POST find Content-Length [14:26:13]Host: 172.17.63.131:8080 [14:26:13]Content-Length: 678 [14:26:13]Content-Type: application/json [14:26:13] [14:26:13]POST finish read [14:26:13]Found Content-Length = 678 [14:26:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:13]execute_script... [14:26: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)31931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:13]POST & json_proto [14:26:13]process_json_proto [14:26:13]json parsed OK: [14:26:13]protocol is kg_v1.0 [14:26:13]action value=close_receipt [14:26:13]process_action close_receipt [14:26:13]cmd_close_receipt [14:26:13]MH_GetDate [14:26:13]Write to MH i2c: F0 00 00 A8 4B E2 [14:26:13]Write i2c OK [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: F0 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: F0 09 00 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: F0 09 00 A8 4B 00 0A 9F 1F 67 22 05 6E 64 13 [14:26:13]GetLastDocTimeStamp 1730125471 [14:26:13]current date 1730125578 [14:26:13]FM_GetShiftState [14:26:13]SAM_PROTO_GetShiftState [14:26:13]wFMCommunicate request_size=4 [14:26:13]MH_SAM_APDU [14:26:13]CAPDU: 80 13 01 00 [14:26:13]Write to MH i2c: E2 08 00 A9 4B 80 13 01 00 00 00 00 00 71 [14:26:13]Write i2c OK [14:26:13]MH_I2C_Read... [14:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:13]Read from MH i2c: E2 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: E2 0E 00 [14:26:13]MH_I2C_Read... [14:26:13]OFD Sender: No OFD packet to send [14:26:13]Read from MH i2c: E2 0E 00 A9 4B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C1 [14:26:13]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:26:13]wFMCommunicate OK [14:26:13]SAM_PROTO_GetShiftState done [14:26:13]FM_GetShiftState done [14:26:13]opened in 1730075620 [14:26:13]opened+sec_in_day 1730162020 [14:26:13]quantity*price = 150037 [14:26:13]sum+1 = 150039 [14:26:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 159 28.10.2024 14:26 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192611 ФПД: 241747338383770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T142619&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192611&fm=241747338383770&tin=02508201610067®Number=0000000000091776&sum=150000 [14:26:14]StoreToDocumentArchive [14:26:14]shift 543 fd 192611 [14:26:14]save to /storage/0543/doc_00192611 [14:26:14]save last doc name /storage/0543/doc_00192611 to /storage/kkm_last_doc_name [14:26:14]save OK [14:26:14]Clear old archive folders... [14:26:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:26:14]tlvbuf is 01AD8310 [14:26:14]SAM_PROTO_ClearQueue [14:26:14]wFMCommunicate request_size=4 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 09 00 00 [14:26:14]Write to MH i2c: E2 08 00 B6 4B 80 09 00 00 00 00 00 00 73 [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 B6 4B 00 90 00 75 [14:26:14]RAPDU: 90 00 [14:26:14]wFMCommunicate OK [14:26:14]SAM_PROTO_ClearQueue done [14:26:14]KKMCreateOFDPacket [14:26:14]OFDProtocolAddRootSTLVToBuf [14:26:14]FM_MakeSignedData [14:26:14]FM_MakeSignedData [14:26:14]SAM_PROTO_SignData [14:26:14]wFMCommunicate request_size=4 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 0D 01 02 [14:26:14]Write to MH i2c: E2 08 00 B7 4B 80 0D 01 02 00 00 00 00 7B [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 B7 4B 00 90 00 76 [14:26:14]RAPDU: 90 00 [14:26:14]wFMCommunicate OK [14:26:14]wFMCommunicate request_size=255 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 0B 9F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 F0 02 00 35 04 06 00 DB DE 30 3A [14:26:14]Write to MH i2c: E2 02 01 B8 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 0B 9F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 F0 02 00 35 04 06 00 DB DE 30 3A 00 00 E4 [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 B8 4B 00 90 00 77 [14:26:14]RAPDU: 90 00 [14:26:14]wFMCommunicate OK [14:26:14]wFMCommunicate request_size=7 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 0D 02 02 02 D1 9A [14:26:14]Write to MH i2c: E2 0A 00 B9 4B 80 0D 02 02 02 00 D1 9A 00 00 ED [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 B9 4B 00 90 00 78 [14:26:14]RAPDU: 90 00 [14:26:14]wFMCommunicate OK [14:26:14]wFMCommunicate request_size=4 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 0D 03 02 [14:26:14]Write to MH i2c: E2 08 00 BA 4B 80 0D 03 02 00 00 00 00 80 [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 0B 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 0B 00 BA 4B 00 A1 B2 68 56 68 0C 62 7A 90 00 E2 [14:26:14]RAPDU: A1 B2 68 56 68 0C 62 7A 90 00 [14:26:14]wFMCommunicate OK [14:26:14]SAM_PROTO_SignData done [14:26:14]FM_MakeSignedData done [14:26:14]CreateOFDProtocolMessage [14:26:14]wFMCommunicate request_size=4 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 11 00 00 [14:26:14]Write to MH i2c: E2 08 00 BB 4B 80 11 00 00 00 00 00 00 80 [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:15]Read from MH i2c: E2 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 17 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 17 00 BB 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D3 [14:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:26:15]wFMCommunicate OK [14:26:15]CreateOFDProtocolMessage done [14:26:15]OFDSenderStorePacket 192611 [14:26:15]StoreOFDPacket docnum=192611 [14:26:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 9B DB 04 01 49 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 0B 9F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 F0 02 00 35 04 06 00 DB DE 30 3A D1 9A A1 B2 68 56 68 0C 62 7A [14:26:15]CheckFolder [14:26:15]dirname=/storage/ofd_packets [14:26:15]CheckFolder done [14:26:15]ProducePacketName [14:26:15]name=ofd_packets/00192611 [14:26:15]NVStorageSaveData ofd_packets/00192611 [14:26:15]File name is /storage/ofd_packets/00192611 [14:26:15]Write 298 bytes [14:26:15]NVStorageSaveData done [14:26:15]OFDSenderStorePacket done [14:26:15]KKMCreateOFDPacket done [14:26:15]NVStorageSaveData kkm_last_timestamp [14:26:15]File name is /storage/kkm_last_timestamp [14:26:15]Write 4 bytes [14:26:15]NVStorageSaveData done [14:26:15]ExternCall_PrintAddStr [14:26:15]wPrintStart [14:26:15]Write to MH i2c: 01 00 00 BC 4B 07 [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: 01 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: 01 07 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: 01 07 00 BC 4B 00 00 00 00 00 FF 0F 1C [14:26:15]RasterBufferAndPrint [14:26:15]line Счет N : (1)31931 [14:26:15]line ИНН: 02508201610067 [14:26:15]line Контрольно-Кассовый Чек [14:26:15]line ПРОДАЖА [14:26:15]line ТРК (МРК, ГНК) : 11 [14:26:15]line Товар: 2710194210 [14:26:15]line ДТ-К-5 [14:26:15]line 19.690 * 76.20 [14:26:15]line = 1500.38 [14:26:15]line НДС 12% НСП 1% [14:26:15]line > о реализуемом товаре [14:26:15]line ОКРУГЛЕНИЕ: -0.38 [14:26:15]line ИТОГО: 1500.00 [14:26:15]line Внесено: 1500.00 [14:26:15]line СДАЧА: 0.00 [14:26:15]line НСП 1% : 13.28 [14:26:15]line НДС 12% : 159.33 [14:26:15]line Наличными: 1500.00 [14:26:15]line Безнал.: 0.00 [14:26:15]line Место: АЗС № 170 "Партнер Нефть" [14:26:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:26:15]line СНО: Общий режим [14:26:15]line Чек 159 28.10.2024 14:26 [14:26:15]line Смена: 543 ФФД: 1.0 [14:26:15]line ЗНМ: 0300000110 [14:26:15]line РНМ: 0000000000091776 [14:26:15]line Версия ККМ: 001 [14:26:15]line ФМ: 0000000000871754 [14:26:15]line ФД: 192611 [14:26:15]line ФПД: 241747338383770 [14:26:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T142619&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192611&fm=241747338383770&tin=02508201610067®Number=0000000000091776&sum=150000 [14:26:15]OFD Sender: Processing packet 192611 [packets to send 75, broken 74] [14:26:15]ProducePacketName [14:26:15]name=ofd_packets/00192611 [14:26:15]OFD Sender: To server: pG, [14:26:15]CommunicateWithHost lk.salyk.kg:30040 [14:26:15]ConnectInit lk.salyk.kg [14:26:15]written 0, free lines is 4095 [14:26:15]Connected sock=9 [14:26:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 9B DB 04 01 49 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 0B 9F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 F0 02 00 35 04 06 00 DB DE 30 3A D1 9A A1 B2 68 56 68 0C 62 7A [14:26:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 04 EE 47 00 C8 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 F0 02 00 F4 03 04 00 CE 43 1F 67 B6 04 01 00 00 AD 77 F3 BC 7A 17 D7 20 [14:26:15]CommunicateWithHost err = 0 [14:26:15]CheckOFDResponse [14:26:15]1017 (14) - 77093643461234 [14:26:15]1041 (16) - 0000000000871754 [14:26:15]1040 (4) - 192611 [14:26:15]1012 (4) - 28.10.2024 07:57 [14:26:15]1206 (1) - 0 [14:26:15]OFD Sender: Remove packet 192611 [14:26:15]ProducePacketName [14:26:15]name=ofd_packets/00192611 [14:26:15]NVStorageDeleteData [14:26:15]Write to MH i2c: 01 00 00 E7 4B 32 [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: 01 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: 01 07 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: 01 07 00 E7 4B 00 00 00 00 00 C4 0C 09 [14:26:15]RasterBufferAndPrint [14:26:15]line [14:26:15]line [14:26:15]line [14:26:15]line [14:26:15]line [14:26:15]written 0, free lines is 3274 [14:26:15]MH_Cut [14:26:15]Write to MH i2c: D1 01 00 EE 4B 01 0B [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: D1 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: D1 01 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: D1 01 00 EE 4B 00 0A [14:26:15]Write to MH i2c: 01 00 00 EF 4B 3A [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:16]OFD Sender: No OFD packet to send [14:26:16]*** Cut start [14:26:16]*** Partial cut [14:26:16]*** CUTSNS_PIN = 1 [14:26:16]*** CUTSNS_PIN = 0 [14:26:16]*** Brake cut motor [14:26:17]Read from MH i2c: 01 [14:26:17]MH_I2C_Read... [14:26:17]*** Stop cut motor [14:26:17]*** Cut end [14:26:17]Read from MH i2c: 01 07 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: 01 07 00 EF 4B 00 00 00 00 00 FF 0F 4F [14:26:17]process_action close_receipt done [14:26:17]requested_data is exist [14:26:17]produce_requested_data [14:26:17]requested_item fm.sn is exist - process it [14:26:17]wFMCommunicate request_size=4 [14:26:17]MH_SAM_APDU [14:26:17]CAPDU: 80 11 00 00 [14:26:17]Write to MH i2c: E2 08 00 F0 4B 80 11 00 00 00 00 00 00 B5 [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:17]Read from MH i2c: E2 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 17 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 17 00 F0 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 08 [14:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:26:17]wFMCommunicate OK [14:26:17]requested_item fd.num is exist - process it [14:26:17]SAM_PROTO_GetFieldsCounters [14:26:17]wFMCommunicate request_size=4 [14:26:17]MH_SAM_APDU [14:26:17]CAPDU: 80 13 00 00 [14:26:17]Write to MH i2c: E2 08 00 F1 4B 80 13 00 00 00 00 00 00 B8 [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:17]Read from MH i2c: E2 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 62 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 62 00 F1 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 63 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [14:26:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 63 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:17]wFMCommunicate OK [14:26:17]SAM_PROTO_GetFieldsCounters done [14:26:17]requested_item shift.num is exist - process it [14:26:17]requested_item shift.opened is exist - process it [14:26:17]req_shift_opened [14:26:17]FM_GetShiftState [14:26:17]SAM_PROTO_GetShiftState [14:26:17]wFMCommunicate request_size=4 [14:26:17]MH_SAM_APDU [14:26:17]CAPDU: 80 13 01 00 [14:26:17]Write to MH i2c: E2 08 00 F2 4B 80 13 01 00 00 00 00 00 BA [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:17]Read from MH i2c: E2 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 0E 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 0E 00 F2 4B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0A [14:26:17]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:26:17]wFMCommunicate OK [14:26:17]SAM_PROTO_GetShiftState done [14:26:17]FM_GetShiftState done [14:26:17]req_shift_opened done [14:26:17]requested_item shift.open_date is exist - process it [14:26:17]req_shift_open_date [14:26:17]req_shift_open_date done [14:26:17]produce_requested_data done [14:26:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192611,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:26:17]process_action_free close_receipt [14:26:17]json_value_free [14:26:17]json_value_free done [14:26:17]process_json_proto returns [14:26:17]Send response to host [14:26:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192611,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:26:17]free response buf [14:26:17]execute_script done [14:26:17]execute_script returns [14:26:17]free content buf [14:26:17]Sock 7.Close socket [14:26:17]Sock 7.Thread stoped [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]accept exits with 10 [14:29:01]New connection [14:29:01]New thread 3066563940 created [14:29:01]Thread 3066707300 joined [14:29:01]Waiting for new connection... [14:29:01] Sock 10.Parse request [14:29:01]Sock 10.Check first char [14:29:01]Sock 10.First char is OK [14:29:01]request: POST /json_proto HTTP/1.0 [14:29:01]Method: POST [14:29:01]URL: /json_proto [14:29:01]Method is POST - this is cgi request [14:29:01]url: /json_proto [14:29:01]query_string will be loaded in cgi processing [14:29:01]execute_cgi json_proto POST (null) [14:29:01]execute_cgi path=json_proto method=POST [14:29:01]POST find Content-Length [14:29:01]Host: 172.17.63.131:8080 [14:29:01]Content-Length: 676 [14:29:01]Content-Type: application/json [14:29:01] [14:29:01]POST finish read [14:29:01]Found Content-Length = 676 [14:29:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:01]execute_script... [14:29:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:01]POST & json_proto [14:29:01]process_json_proto [14:29:01]json parsed OK: [14:29:01]protocol is kg_v1.0 [14:29:01]action value=close_receipt [14:29:01]process_action close_receipt [14:29:01]cmd_close_receipt [14:29:01]MH_GetDate [14:29:01]Write to MH i2c: F0 00 00 F3 4B 2D [14:29:01]Write i2c OK [14:29:01]MH_I2C_Read... [14:29:01]Read from MH i2c: F0 [14:29:01]MH_I2C_Read... [14:29:01]Read from MH i2c: F0 09 00 [14:29:01]MH_I2C_Read... [14:29:01]Read from MH i2c: F0 09 00 F3 4B 00 B2 9F 1F 67 22 05 6E 64 06 [14:29:01]GetLastDocTimeStamp 1730125579 [14:29:01]current date 1730125746 [14:29:01]FM_GetShiftState [14:29:01]SAM_PROTO_GetShiftState [14:29:01]wFMCommunicate request_size=4 [14:29:01]MH_SAM_APDU [14:29:01]CAPDU: 80 13 01 00 [14:29:01]Write to MH i2c: E2 08 00 F4 4B 80 13 01 00 00 00 00 00 BC [14:29:01]Write i2c OK [14:29:01]MH_I2C_Read... [14:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:01]Read from MH i2c: E2 [14:29:01]MH_I2C_Read... [14:29:01]Read from MH i2c: E2 0E 00 [14:29:01]MH_I2C_Read... [14:29:01]Read from MH i2c: E2 0E 00 F4 4B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0C [14:29:01]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:29:01]wFMCommunicate OK [14:29:01]SAM_PROTO_GetShiftState done [14:29:01]FM_GetShiftState done [14:29:01]opened in 1730075620 [14:29:01]opened+sec_in_day 1730162020 [14:29:01]quantity*price = 40006 [14:29:01]sum+1 = 40007 [14:29:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 160 28.10.2024 14:29 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192612 ФПД: 52166193525863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T142906&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192612&fm=52166193525863&tin=02508201610067®Number=0000000000091776&sum=40000 [14:29:02]StoreToDocumentArchive [14:29:02]shift 543 fd 192612 [14:29:02]save to /storage/0543/doc_00192612 [14:29:02]save last doc name /storage/0543/doc_00192612 to /storage/kkm_last_doc_name [14:29:02]save OK [14:29:02]Clear old archive folders... [14:29:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:29:02]tlvbuf is 019D5460 [14:29:02]SAM_PROTO_ClearQueue [14:29:02]wFMCommunicate request_size=4 [14:29:02]MH_SAM_APDU [14:29:02]CAPDU: 80 09 00 00 [14:29:02]Write to MH i2c: E2 08 00 01 4C 80 09 00 00 00 00 00 00 BF [14:29:02]Write i2c OK [14:29:02]MH_I2C_Read... [14:29:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:02]Read from MH i2c: E2 [14:29:02]MH_I2C_Read... [14:29:02]Read from MH i2c: E2 03 00 [14:29:02]MH_I2C_Read... [14:29:02]Read from MH i2c: E2 03 00 01 4C 00 90 00 C1 [14:29:02]RAPDU: 90 00 [14:29:02]wFMCommunicate OK [14:29:02]SAM_PROTO_ClearQueue done [14:29:02]KKMCreateOFDPacket [14:29:02]OFDProtocolAddRootSTLVToBuf [14:29:02]FM_MakeSignedData [14:29:02]FM_MakeSignedData [14:29:02]SAM_PROTO_SignData [14:29:02]wFMCommunicate request_size=4 [14:29:02]MH_SAM_APDU [14:29:02]CAPDU: 80 0D 01 02 [14:29:02]Write to MH i2c: E2 08 00 02 4C 80 0D 01 02 00 00 00 00 C7 [14:29:02]Write i2c OK [14:29:02]MH_I2C_Read... [14:29:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:02]Read from MH i2c: E2 [14:29:02]MH_I2C_Read... [14:29:02]Read from MH i2c: E2 03 00 [14:29:02]MH_I2C_Read... [14:29:02]Read from MH i2c: E2 03 00 02 4C 00 90 00 C2 [14:29:02]RAPDU: 90 00 [14:29:02]wFMCommunicate OK [14:29:02]wFMCommunicate request_size=255 [14:29:02]MH_SAM_APDU [14:29:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 B2 9F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 F0 02 00 35 04 06 00 2F [14:29:02]Write to MH i2c: E2 02 01 03 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 B2 9F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 F0 02 00 35 04 06 00 2F 00 00 47 [14:29:02]Write i2c OK [14:29:02]MH_I2C_Read... [14:29:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:02]Read from MH i2c: E2 [14:29:02]MH_I2C_Read... [14:29:02]Read from MH i2c: E2 03 00 [14:29:02]MH_I2C_Read... [14:29:02]Read from MH i2c: E2 03 00 03 4C 00 90 00 C3 [14:29:02]RAPDU: 90 00 [14:29:02]wFMCommunicate OK [14:29:02]wFMCommunicate request_size=10 [14:29:02]MH_SAM_APDU [14:29:02]CAPDU: 80 0D 02 02 05 71 E3 6F 34 67 [14:29:02]Write to MH i2c: E2 0D 00 04 4C 80 0D 02 02 05 00 71 E3 6F 34 67 00 00 32 [14:29:02]Write i2c OK [14:29:02]MH_I2C_Read... [14:29:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:02]Read from MH i2c: E2 [14:29:02]MH_I2C_Read... [14:29:02]Read from MH i2c: E2 03 00 [14:29:02]MH_I2C_Read... [14:29:02]Read from MH i2c: E2 03 00 04 4C 00 90 00 C4 [14:29:02]RAPDU: 90 00 [14:29:02]wFMCommunicate OK [14:29:02]wFMCommunicate request_size=4 [14:29:02]MH_SAM_APDU [14:29:02]CAPDU: 80 0D 03 02 [14:29:02]Write to MH i2c: E2 08 00 05 4C 80 0D 03 02 00 00 00 00 CC [14:29:02]Write i2c OK [14:29:02]MH_I2C_Read... [14:29:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:02]Read from MH i2c: E2 [14:29:02]MH_I2C_Read... [14:29:02]Read from MH i2c: E2 0B 00 [14:29:02]MH_I2C_Read... [14:29:02]Read from MH i2c: E2 0B 00 05 4C 00 C0 02 E5 DB 73 8A 6C 1D 90 00 D5 [14:29:02]RAPDU: C0 02 E5 DB 73 8A 6C 1D 90 00 [14:29:02]wFMCommunicate OK [14:29:02]SAM_PROTO_SignData done [14:29:02]FM_MakeSignedData done [14:29:02]CreateOFDProtocolMessage [14:29:02]wFMCommunicate request_size=4 [14:29:02]MH_SAM_APDU [14:29:02]CAPDU: 80 11 00 00 [14:29:02]Write to MH i2c: E2 08 00 06 4C 80 11 00 00 00 00 00 00 CC [14:29:02]Write i2c OK [14:29:02]MH_I2C_Read... [14:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:02]Read from MH i2c: E2 [14:29:02]MH_I2C_Read... [14:29:02]Read from MH i2c: E2 17 00 [14:29:02]MH_I2C_Read... [14:29:02]Read from MH i2c: E2 17 00 06 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1F [14:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:29:02]wFMCommunicate OK [14:29:02]CreateOFDProtocolMessage done [14:29:02]OFDSenderStorePacket 192612 [14:29:02]StoreOFDPacket docnum=192612 [14:29:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 FE 07 01 98 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 B2 9F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 F0 02 00 35 04 06 00 2F 71 E3 6F 34 67 C0 02 E5 DB 73 8A 6C 1D [14:29:02]CheckFolder [14:29:02]dirname=/storage/ofd_packets [14:29:02]CheckFolder done [14:29:02]ProducePacketName [14:29:02]name=ofd_packets/00192612 [14:29:02]NVStorageSaveData ofd_packets/00192612 [14:29:02]File name is /storage/ofd_packets/00192612 [14:29:02]Write 301 bytes [14:29:02]NVStorageSaveData done [14:29:02]OFDSenderStorePacket done [14:29:02]KKMCreateOFDPacket done [14:29:02]NVStorageSaveData kkm_last_timestamp [14:29:02]File name is /storage/kkm_last_timestamp [14:29:02]Write 4 bytes [14:29:02]NVStorageSaveData done [14:29:02]ExternCall_PrintAddStr [14:29:02]wPrintStart [14:29:02]Write to MH i2c: 01 00 00 07 4C 53 [14:29:02]Write i2c OK [14:29:02]MH_I2C_Read... [14:29:02]Read from MH i2c: 01 [14:29:02]MH_I2C_Read... [14:29:02]Read from MH i2c: 01 07 00 [14:29:02]MH_I2C_Read... [14:29:02]Read from MH i2c: 01 07 00 07 4C 00 00 00 00 00 FF 0F 68 [14:29:02]RasterBufferAndPrint [14:29:02]line Счет N : (1)31932 [14:29:02]line ИНН: 02508201610067 [14:29:02]line Контрольно-Кассовый Чек [14:29:02]line ПРОДАЖА [14:29:02]line ТРК (МРК, ГНК) : 12 [14:29:02]line Товар: 2710124130 [14:29:02]line Аи-92-К-5 [14:29:02]line 5.980 * 66.90 [14:29:02]line = 400.06 [14:29:02]line НДС 12% НСП 1% [14:29:02]line > о реализуемом товаре [14:29:02]line ОКРУГЛЕНИЕ: -0.06 [14:29:02]line ИТОГО: 400.00 [14:29:02]line Внесено: 400.00 [14:29:02]line СДАЧА: 0.00 [14:29:02]line НСП 1% : 3.54 [14:29:02]line НДС 12% : 42.48 [14:29:02]line Наличными: 400.00 [14:29:02]line Безнал.: 0.00 [14:29:02]line Место: АЗС № 170 "Партнер Нефть" [14:29:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:29:02]line СНО: Общий режим [14:29:02]line Чек 160 28.10.2024 14:29 [14:29:02]line Смена: 543 ФФД: 1.0 [14:29:02]line ЗНМ: 0300000110 [14:29:02]line РНМ: 0000000000091776 [14:29:02]line Версия ККМ: 001 [14:29:02]line ФМ: 0000000000871754 [14:29:02]line ФД: 192612 [14:29:02]line ФПД: 52166193525863 [14:29:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T142906&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192612&fm=52166193525863&tin=02508201610067®Number=0000000000091776&sum=40000 [14:29:02]OFD Sender: Processing packet 192612 [packets to send 75, broken 74] [14:29:02]ProducePacketName [14:29:02]name=ofd_packets/00192612 [14:29:02]OFD Sender: To server: pG, [14:29:02]CommunicateWithHost lk.salyk.kg:30040 [14:29:03]ConnectInit lk.salyk.kg [14:29:03]written 0, free lines is 4095 [14:29:03]Connected sock=9 [14:29:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 FE 07 01 98 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 B2 9F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 F0 02 00 35 04 06 00 2F 71 E3 6F 34 67 C0 02 E5 DB 73 8A 6C 1D [14:29:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 68 C5 47 00 0C 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 F0 02 00 F4 03 04 00 76 44 1F 67 B6 04 01 00 00 B5 D1 F6 B5 66 B7 6D D4 [14:29:03]CommunicateWithHost err = 0 [14:29:03]CheckOFDResponse [14:29:03]1017 (14) - 77093643461234 [14:29:03]1041 (16) - 0000000000871754 [14:29:03]1040 (4) - 192612 [14:29:03]1012 (4) - 28.10.2024 07:59 [14:29:03]1206 (1) - 0 [14:29:03]OFD Sender: Remove packet 192612 [14:29:03]ProducePacketName [14:29:03]name=ofd_packets/00192612 [14:29:03]NVStorageDeleteData [14:29:03]Write to MH i2c: 01 00 00 32 4C 7E [14:29:03]Write i2c OK [14:29:03]MH_I2C_Read... [14:29:03]Read from MH i2c: 01 [14:29:03]MH_I2C_Read... [14:29:03]Read from MH i2c: 01 07 00 [14:29:03]MH_I2C_Read... [14:29:03]Read from MH i2c: 01 07 00 32 4C 00 00 00 00 00 C6 0C 57 [14:29:03]RasterBufferAndPrint [14:29:03]line [14:29:03]line [14:29:03]line [14:29:03]line [14:29:03]line [14:29:03]written 0, free lines is 3276 [14:29:03]MH_Cut [14:29:03]Write to MH i2c: D1 01 00 39 4C 01 57 [14:29:03]Write i2c OK [14:29:03]MH_I2C_Read... [14:29:03]Read from MH i2c: D1 [14:29:03]MH_I2C_Read... [14:29:03]Read from MH i2c: D1 01 00 [14:29:03]MH_I2C_Read... [14:29:03]Read from MH i2c: D1 01 00 39 4C 00 56 [14:29:03]Write to MH i2c: 01 00 00 3A 4C 86 [14:29:03]Write i2c OK [14:29:03]MH_I2C_Read... [14:29:03]OFD Sender: No OFD packet to send [14:29:04]*** Cut start [14:29:04]*** Partial cut [14:29:04]*** CUTSNS_PIN = 1 [14:29:04]*** CUTSNS_PIN = 0 [14:29:04]*** Brake cut motor [14:29:05]Read from MH i2c: 01 [14:29:05]MH_I2C_Read... [14:29:05]*** Stop cut motor [14:29:05]*** Cut end [14:29:05]Read from MH i2c: 01 07 00 [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: 01 07 00 3A 4C 00 00 00 00 00 FF 0F 9B [14:29:05]process_action close_receipt done [14:29:05]requested_data is exist [14:29:05]produce_requested_data [14:29:05]requested_item fm.sn is exist - process it [14:29:05]wFMCommunicate request_size=4 [14:29:05]MH_SAM_APDU [14:29:05]CAPDU: 80 11 00 00 [14:29:05]Write to MH i2c: E2 08 00 3B 4C 80 11 00 00 00 00 00 00 01 [14:29:05]Write i2c OK [14:29:05]MH_I2C_Read... [14:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:05]Read from MH i2c: E2 [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: E2 17 00 [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: E2 17 00 3B 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 54 [14:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:29:05]wFMCommunicate OK [14:29:05]requested_item fd.num is exist - process it [14:29:05]SAM_PROTO_GetFieldsCounters [14:29:05]wFMCommunicate request_size=4 [14:29:05]MH_SAM_APDU [14:29:05]CAPDU: 80 13 00 00 [14:29:05]Write to MH i2c: E2 08 00 3C 4C 80 13 00 00 00 00 00 00 04 [14:29:05]Write i2c OK [14:29:05]MH_I2C_Read... [14:29:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:05]Read from MH i2c: E2 [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: E2 62 00 [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: E2 62 00 3C 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 64 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [14:29:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 64 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:05]wFMCommunicate OK [14:29:05]SAM_PROTO_GetFieldsCounters done [14:29:05]requested_item shift.num is exist - process it [14:29:05]requested_item shift.opened is exist - process it [14:29:05]req_shift_opened [14:29:05]FM_GetShiftState [14:29:05]SAM_PROTO_GetShiftState [14:29:05]wFMCommunicate request_size=4 [14:29:05]MH_SAM_APDU [14:29:05]CAPDU: 80 13 01 00 [14:29:05]Write to MH i2c: E2 08 00 3D 4C 80 13 01 00 00 00 00 00 06 [14:29:05]Write i2c OK [14:29:05]MH_I2C_Read... [14:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:05]Read from MH i2c: E2 [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: E2 0E 00 [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: E2 0E 00 3D 4C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 56 [14:29:05]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:29:05]wFMCommunicate OK [14:29:05]SAM_PROTO_GetShiftState done [14:29:05]FM_GetShiftState done [14:29:05]req_shift_opened done [14:29:05]requested_item shift.open_date is exist - process it [14:29:05]req_shift_open_date [14:29:05]req_shift_open_date done [14:29:05]produce_requested_data done [14:29:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192612,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:29:05]process_action_free close_receipt [14:29:05]json_value_free [14:29:05]json_value_free done [14:29:05]process_json_proto returns [14:29:05]Send response to host [14:29:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192612,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:29:05]free response buf [14:29:05]execute_script done [14:29:05]execute_script returns [14:29:05]free content buf [14:29:05]Sock 10.Close socket [14:29:05]Sock 10.Thread stoped [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:47]accept exits with 7 [14:29:47]New connection [14:29:47]New thread 3066707300 created [14:29:47]Thread 3066563940 joined [14:29:47]Waiting for new connection... [14:29:47] Sock 7.Parse request [14:29:47]Sock 7.Check first char [14:29:47]Sock 7.First char is OK [14:29:47]request: POST /json_proto HTTP/1.0 [14:29:47]Method: POST [14:29:47]URL: /json_proto [14:29:47]Method is POST - this is cgi request [14:29:47]url: /json_proto [14:29:47]query_string will be loaded in cgi processing [14:29:47]execute_cgi json_proto POST (null) [14:29:47]execute_cgi path=json_proto method=POST [14:29:47]POST find Content-Length [14:29:47]Host: 172.17.63.131:8080 [14:29:47]Content-Length: 676 [14:29:47]Content-Type: application/json [14:29:47] [14:29:47]POST finish read [14:29:47]Found Content-Length = 676 [14:29:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:47]execute_script... [14:29: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)31933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:47]POST & json_proto [14:29:47]process_json_proto [14:29:47]json parsed OK: [14:29:47]protocol is kg_v1.0 [14:29:47]action value=close_receipt [14:29:47]process_action close_receipt [14:29:47]cmd_close_receipt [14:29:47]MH_GetDate [14:29:47]Write to MH i2c: F0 00 00 3E 4C 79 [14:29:47]Write i2c OK [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: F0 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: F0 09 00 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: F0 09 00 3E 4C 00 E1 9F 1F 67 22 05 6E 64 81 [14:29:47]GetLastDocTimeStamp 1730125746 [14:29:47]current date 1730125793 [14:29:47]FM_GetShiftState [14:29:47]SAM_PROTO_GetShiftState [14:29:47]wFMCommunicate request_size=4 [14:29:47]MH_SAM_APDU [14:29:47]CAPDU: 80 13 01 00 [14:29:47]Write to MH i2c: E2 08 00 3F 4C 80 13 01 00 00 00 00 00 08 [14:29:47]Write i2c OK [14:29:47]MH_I2C_Read... [14:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:47]Read from MH i2c: E2 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: E2 0E 00 [14:29:47]MH_I2C_Read... [14:29:47]Read from MH i2c: E2 0E 00 3F 4C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 58 [14:29:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:29:47]wFMCommunicate OK [14:29:47]SAM_PROTO_GetShiftState done [14:29:47]FM_GetShiftState done [14:29:47]opened in 1730075620 [14:29:47]opened+sec_in_day 1730162020 [14:29:47]quantity*price = 50041 [14:29:47]sum+1 = 50042 [14:29:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 161 28.10.2024 14:29 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192613 ФПД: 145696536515943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T142953&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192613&fm=145696536515943&tin=02508201610067®Number=0000000000091776&sum=50000 [14:29:49]StoreToDocumentArchive [14:29:49]shift 543 fd 192613 [14:29:49]save to /storage/0543/doc_00192613 [14:29:49]save last doc name /storage/0543/doc_00192613 to /storage/kkm_last_doc_name [14:29:49]save OK [14:29:49]Clear old archive folders... [14:29:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:29:49]tlvbuf is 019D4E40 [14:29:49]SAM_PROTO_ClearQueue [14:29:49]wFMCommunicate request_size=4 [14:29:49]MH_SAM_APDU [14:29:49]CAPDU: 80 09 00 00 [14:29:49]Write to MH i2c: E2 08 00 4C 4C 80 09 00 00 00 00 00 00 0A [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:49]Read from MH i2c: E2 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 03 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 03 00 4C 4C 00 90 00 0C [14:29:49]RAPDU: 90 00 [14:29:49]wFMCommunicate OK [14:29:49]SAM_PROTO_ClearQueue done [14:29:49]KKMCreateOFDPacket [14:29:49]OFDProtocolAddRootSTLVToBuf [14:29:49]FM_MakeSignedData [14:29:49]FM_MakeSignedData [14:29:49]SAM_PROTO_SignData [14:29:49]wFMCommunicate request_size=4 [14:29:49]MH_SAM_APDU [14:29:49]CAPDU: 80 0D 01 02 [14:29:49]Write to MH i2c: E2 08 00 4D 4C 80 0D 01 02 00 00 00 00 12 [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:49]Read from MH i2c: E2 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 03 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 03 00 4D 4C 00 90 00 0D [14:29:49]RAPDU: 90 00 [14:29:49]wFMCommunicate OK [14:29:49]wFMCommunicate request_size=255 [14:29:49]MH_SAM_APDU [14:29:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 E1 9F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 F0 02 00 35 04 06 00 84 [14:29:49]Write to MH i2c: E2 02 01 4E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 E1 9F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 F0 02 00 35 04 06 00 84 00 00 49 [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:49]Read from MH i2c: E2 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 03 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 03 00 4E 4C 00 90 00 0E [14:29:49]RAPDU: 90 00 [14:29:49]wFMCommunicate OK [14:29:49]wFMCommunicate request_size=10 [14:29:49]MH_SAM_APDU [14:29:49]CAPDU: 80 0D 02 02 05 82 9E 4D D5 67 [14:29:49]Write to MH i2c: E2 0D 00 4F 4C 80 0D 02 02 05 00 82 9E 4D D5 67 00 00 C8 [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:49]Read from MH i2c: E2 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 03 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 03 00 4F 4C 00 90 00 0F [14:29:49]RAPDU: 90 00 [14:29:49]wFMCommunicate OK [14:29:49]wFMCommunicate request_size=4 [14:29:49]MH_SAM_APDU [14:29:49]CAPDU: 80 0D 03 02 [14:29:49]Write to MH i2c: E2 08 00 50 4C 80 0D 03 02 00 00 00 00 17 [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:49]Read from MH i2c: E2 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 0B 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 0B 00 50 4C 00 20 42 AF E7 C5 0A 99 49 90 00 C1 [14:29:49]RAPDU: 20 42 AF E7 C5 0A 99 49 90 00 [14:29:49]wFMCommunicate OK [14:29:49]SAM_PROTO_SignData done [14:29:49]FM_MakeSignedData done [14:29:49]CreateOFDProtocolMessage [14:29:49]wFMCommunicate request_size=4 [14:29:49]MH_SAM_APDU [14:29:49]CAPDU: 80 11 00 00 [14:29:49]Write to MH i2c: E2 08 00 51 4C 80 11 00 00 00 00 00 00 17 [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:49]Read from MH i2c: E2 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 17 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 17 00 51 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6A [14:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:29:49]wFMCommunicate OK [14:29:49]CreateOFDProtocolMessage done [14:29:49]OFDSenderStorePacket 192613 [14:29:49]StoreOFDPacket docnum=192613 [14:29:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 0B 07 01 76 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 E1 9F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 F0 02 00 35 04 06 00 84 82 9E 4D D5 67 20 42 AF E7 C5 0A 99 49 [14:29:49]CheckFolder [14:29:49]dirname=/storage/ofd_packets [14:29:49]CheckFolder done [14:29:49]ProducePacketName [14:29:49]name=ofd_packets/00192613 [14:29:49]NVStorageSaveData ofd_packets/00192613 [14:29:49]File name is /storage/ofd_packets/00192613 [14:29:49]Write 301 bytes [14:29:49]NVStorageSaveData done [14:29:49]OFDSenderStorePacket done [14:29:49]KKMCreateOFDPacket done [14:29:49]NVStorageSaveData kkm_last_timestamp [14:29:49]File name is /storage/kkm_last_timestamp [14:29:49]Write 4 bytes [14:29:49]NVStorageSaveData done [14:29:49]ExternCall_PrintAddStr [14:29:49]wPrintStart [14:29:49]Write to MH i2c: 01 00 00 52 4C 9E [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: 01 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: 01 07 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: 01 07 00 52 4C 00 00 00 00 00 FF 0F B3 [14:29:49]RasterBufferAndPrint [14:29:49]line Счет N : (1)31933 [14:29:49]line ИНН: 02508201610067 [14:29:49]line Контрольно-Кассовый Чек [14:29:49]line ПРОДАЖА [14:29:49]line ТРК (МРК, ГНК) : 21 [14:29:49]line Товар: 2710124130 [14:29:49]line Аи-92-К-5 [14:29:49]line 7.480 * 66.90 [14:29:49]line = 500.41 [14:29:49]line НДС 12% НСП 1% [14:29:49]line > о реализуемом товаре [14:29:49]line ОКРУГЛЕНИЕ: -0.41 [14:29:49]line ИТОГО: 500.00 [14:29:49]line Внесено: 500.00 [14:29:49]line СДАЧА: 0.00 [14:29:49]line НСП 1% : 4.43 [14:29:49]line НДС 12% : 53.14 [14:29:49]line Наличными: 500.00 [14:29:49]line Безнал.: 0.00 [14:29:49]line Место: АЗС № 170 "Партнер Нефть" [14:29:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:29:49]line СНО: Общий режим [14:29:49]line Чек 161 28.10.2024 14:29 [14:29:49]line Смена: 543 ФФД: 1.0 [14:29:49]line ЗНМ: 0300000110 [14:29:49]line РНМ: 0000000000091776 [14:29:49]line Версия ККМ: 001 [14:29:49]line ФМ: 0000000000871754 [14:29:49]line ФД: 192613 [14:29:49]line ФПД: 145696536515943 [14:29:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T142953&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192613&fm=145696536515943&tin=02508201610067®Number=0000000000091776&sum=50000 [14:29:49]OFD Sender: Processing packet 192613 [packets to send 75, broken 74] [14:29:49]ProducePacketName [14:29:49]name=ofd_packets/00192613 [14:29:49]OFD Sender: To server: pG, [14:29:49]CommunicateWithHost lk.salyk.kg:30040 [14:29:49]ConnectInit lk.salyk.kg [14:29:49]written 0, free lines is 4095 [14:29:50]Connected sock=10 [14:29:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 0B 07 01 76 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 E1 9F 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 F0 02 00 35 04 06 00 84 82 9E 4D D5 67 20 42 AF E7 C5 0A 99 49 [14:29:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7A 14 47 00 9E 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 F0 02 00 F4 03 04 00 A5 44 1F 67 B6 04 01 00 00 5A E6 5D 61 6C F1 73 31 [14:29:50]CommunicateWithHost err = 0 [14:29:50]CheckOFDResponse [14:29:50]1017 (14) - 77093643461234 [14:29:50]1041 (16) - 0000000000871754 [14:29:50]1040 (4) - 192613 [14:29:50]1012 (4) - 28.10.2024 08:00 [14:29:50]1206 (1) - 0 [14:29:50]OFD Sender: Remove packet 192613 [14:29:50]ProducePacketName [14:29:50]name=ofd_packets/00192613 [14:29:50]NVStorageDeleteData [14:29:50]Write to MH i2c: 01 00 00 7D 4C C9 [14:29:50]Write i2c OK [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: 01 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: 01 07 00 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: 01 07 00 7D 4C 00 00 00 00 00 C5 0C A1 [14:29:50]RasterBufferAndPrint [14:29:50]line [14:29:50]line [14:29:50]line [14:29:50]line [14:29:50]line [14:29:50]written 0, free lines is 3275 [14:29:50]MH_Cut [14:29:50]Write to MH i2c: D1 01 00 84 4C 01 A2 [14:29:50]Write i2c OK [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: D1 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: D1 01 00 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: D1 01 00 84 4C 00 A1 [14:29:50]Write to MH i2c: 01 00 00 85 4C D1 [14:29:50]Write i2c OK [14:29:50]MH_I2C_Read... [14:29:50]OFD Sender: No OFD packet to send [14:29:51]*** Cut start [14:29:51]*** Partial cut [14:29:51]*** CUTSNS_PIN = 1 [14:29:51]*** CUTSNS_PIN = 0 [14:29:51]*** Brake cut motor [14:29:51]Read from MH i2c: 01 [14:29:51]MH_I2C_Read... [14:29:51]*** Stop cut motor [14:29:51]*** Cut end [14:29:51]Read from MH i2c: 01 07 00 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: 01 07 00 85 4C 00 00 00 00 00 FF 0F E6 [14:29:51]process_action close_receipt done [14:29:51]requested_data is exist [14:29:51]produce_requested_data [14:29:51]requested_item fm.sn is exist - process it [14:29:51]wFMCommunicate request_size=4 [14:29:51]MH_SAM_APDU [14:29:51]CAPDU: 80 11 00 00 [14:29:51]Write to MH i2c: E2 08 00 86 4C 80 11 00 00 00 00 00 00 4C [14:29:51]Write i2c OK [14:29:51]MH_I2C_Read... [14:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:51]Read from MH i2c: E2 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: E2 17 00 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: E2 17 00 86 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [14:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:29:51]wFMCommunicate OK [14:29:51]requested_item fd.num is exist - process it [14:29:51]SAM_PROTO_GetFieldsCounters [14:29:51]wFMCommunicate request_size=4 [14:29:51]MH_SAM_APDU [14:29:51]CAPDU: 80 13 00 00 [14:29:51]Write to MH i2c: E2 08 00 87 4C 80 13 00 00 00 00 00 00 4F [14:29:51]Write i2c OK [14:29:51]MH_I2C_Read... [14:29:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:52]Read from MH i2c: E2 [14:29:52]MH_I2C_Read... [14:29:52]Read from MH i2c: E2 62 00 [14:29:52]MH_I2C_Read... [14:29:52]Read from MH i2c: E2 62 00 87 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 65 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [14:29:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 65 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:52]wFMCommunicate OK [14:29:52]SAM_PROTO_GetFieldsCounters done [14:29:52]requested_item shift.num is exist - process it [14:29:52]requested_item shift.opened is exist - process it [14:29:52]req_shift_opened [14:29:52]FM_GetShiftState [14:29:52]SAM_PROTO_GetShiftState [14:29:52]wFMCommunicate request_size=4 [14:29:52]MH_SAM_APDU [14:29:52]CAPDU: 80 13 01 00 [14:29:52]Write to MH i2c: E2 08 00 88 4C 80 13 01 00 00 00 00 00 51 [14:29:52]Write i2c OK [14:29:52]MH_I2C_Read... [14:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:52]Read from MH i2c: E2 [14:29:52]MH_I2C_Read... [14:29:52]Read from MH i2c: E2 0E 00 [14:29:52]MH_I2C_Read... [14:29:52]Read from MH i2c: E2 0E 00 88 4C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A1 [14:29:52]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:29:52]wFMCommunicate OK [14:29:52]SAM_PROTO_GetShiftState done [14:29:52]FM_GetShiftState done [14:29:52]req_shift_opened done [14:29:52]requested_item shift.open_date is exist - process it [14:29:52]req_shift_open_date [14:29:52]req_shift_open_date done [14:29:52]produce_requested_data done [14:29:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192613,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:29:52]process_action_free close_receipt [14:29:52]json_value_free [14:29:52]json_value_free done [14:29:52]process_json_proto returns [14:29:52]Send response to host [14:29:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192613,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:29:52]free response buf [14:29:52]execute_script done [14:29:52]execute_script returns [14:29:52]free content buf [14:29:52]Sock 7.Close socket [14:29:52]Sock 7.Thread stoped [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:03]accept exits with 9 [14:31:03]New connection [14:31:03]New thread 3066563940 created [14:31:03]Thread 3066707300 joined [14:31:03]Waiting for new connection... [14:31:03] Sock 9.Parse request [14:31:03]Sock 9.Check first char [14:31:03]Sock 9.First char is OK [14:31:03]request: POST /json_proto HTTP/1.0 [14:31:03]Method: POST [14:31:03]URL: /json_proto [14:31:03]Method is POST - this is cgi request [14:31:03]url: /json_proto [14:31:03]query_string will be loaded in cgi processing [14:31:03]execute_cgi json_proto POST (null) [14:31:03]execute_cgi path=json_proto method=POST [14:31:03]POST find Content-Length [14:31:03]Host: 172.17.63.131:8080 [14:31:03]Content-Length: 681 [14:31:03]Content-Type: application/json [14:31:03] [14:31:03]POST finish read [14:31:03]Found Content-Length = 681 [14:31:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:03]execute_script... [14:31: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)31934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:03]POST & json_proto [14:31:03]process_json_proto [14:31:03]json parsed OK: [14:31:03]protocol is kg_v1.0 [14:31:03]action value=close_receipt [14:31:03]process_action close_receipt [14:31:03]cmd_close_receipt [14:31:03]MH_GetDate [14:31:03]Write to MH i2c: F0 00 00 89 4C C4 [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: F0 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: F0 09 00 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: F0 09 00 89 4C 00 2D A0 1F 67 22 05 6E 64 19 [14:31:03]GetLastDocTimeStamp 1730125793 [14:31:03]current date 1730125869 [14:31:03]FM_GetShiftState [14:31:03]SAM_PROTO_GetShiftState [14:31:03]wFMCommunicate request_size=4 [14:31:03]MH_SAM_APDU [14:31:03]CAPDU: 80 13 01 00 [14:31:03]Write to MH i2c: E2 08 00 8A 4C 80 13 01 00 00 00 00 00 53 [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:04]Read from MH i2c: E2 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: E2 0E 00 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: E2 0E 00 8A 4C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A3 [14:31:04]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:31:04]wFMCommunicate OK [14:31:04]SAM_PROTO_GetShiftState done [14:31:04]FM_GetShiftState done [14:31:04]opened in 1730075620 [14:31:04]opened+sec_in_day 1730162020 [14:31:04]quantity*price = 100015 [14:31:04]sum+1 = 100017 [14:31:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 162 28.10.2024 14:31 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192614 ФПД: 155712978712949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T143109&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192614&fm=155712978712949&tin=02508201610067®Number=0000000000091776&sum=100000 [14:31:05]StoreToDocumentArchive [14:31:05]shift 543 fd 192614 [14:31:05]save to /storage/0543/doc_00192614 [14:31:05]save last doc name /storage/0543/doc_00192614 to /storage/kkm_last_doc_name [14:31:05]save OK [14:31:05]Clear old archive folders... [14:31:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:05]tlvbuf is 019FE800 [14:31:05]SAM_PROTO_ClearQueue [14:31:05]wFMCommunicate request_size=4 [14:31:05]MH_SAM_APDU [14:31:05]CAPDU: 80 09 00 00 [14:31:05]Write to MH i2c: E2 08 00 97 4C 80 09 00 00 00 00 00 00 55 [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:05]Read from MH i2c: E2 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 03 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 03 00 97 4C 00 90 00 57 [14:31:05]RAPDU: 90 00 [14:31:05]wFMCommunicate OK [14:31:05]SAM_PROTO_ClearQueue done [14:31:05]KKMCreateOFDPacket [14:31:05]OFDProtocolAddRootSTLVToBuf [14:31:05]FM_MakeSignedData [14:31:05]FM_MakeSignedData [14:31:05]SAM_PROTO_SignData [14:31:05]wFMCommunicate request_size=4 [14:31:05]MH_SAM_APDU [14:31:05]CAPDU: 80 0D 01 02 [14:31:05]Write to MH i2c: E2 08 00 98 4C 80 0D 01 02 00 00 00 00 5D [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:05]Read from MH i2c: E2 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 03 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 03 00 98 4C 00 90 00 58 [14:31:05]RAPDU: 90 00 [14:31:05]wFMCommunicate OK [14:31:05]wFMCommunicate request_size=255 [14:31:05]MH_SAM_APDU [14:31: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 2D A0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 F0 02 00 35 04 06 00 8D [14:31:05]Write to MH i2c: E2 02 01 99 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 2D A0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 F0 02 00 35 04 06 00 8D 00 00 E6 [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:05]Read from MH i2c: E2 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 03 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 03 00 99 4C 00 90 00 59 [14:31:05]RAPDU: 90 00 [14:31:05]wFMCommunicate OK [14:31:05]wFMCommunicate request_size=10 [14:31:05]MH_SAM_APDU [14:31:05]CAPDU: 80 0D 02 02 05 9E C0 C8 79 75 [14:31:05]Write to MH i2c: E2 0D 00 9A 4C 80 0D 02 02 05 00 9E C0 C8 79 75 00 00 7E [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:05]Read from MH i2c: E2 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 03 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 03 00 9A 4C 00 90 00 5A [14:31:05]RAPDU: 90 00 [14:31:05]wFMCommunicate OK [14:31:05]wFMCommunicate request_size=4 [14:31:05]MH_SAM_APDU [14:31:05]CAPDU: 80 0D 03 02 [14:31:05]Write to MH i2c: E2 08 00 9B 4C 80 0D 03 02 00 00 00 00 62 [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:05]Read from MH i2c: E2 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 0B 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: E2 0B 00 9B 4C 00 74 63 CF 13 53 D6 1D E2 90 00 44 [14:31:05]RAPDU: 74 63 CF 13 53 D6 1D E2 90 00 [14:31:05]wFMCommunicate OK [14:31:05]SAM_PROTO_SignData done [14:31:05]FM_MakeSignedData done [14:31:05]CreateOFDProtocolMessage [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 9C 4C 80 11 00 00 00 00 00 00 62 [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 9C 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [14:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:31:05]wFMCommunicate OK [14:31:05]CreateOFDProtocolMessage done [14:31:05]OFDSenderStorePacket 192614 [14:31:05]StoreOFDPacket docnum=192614 [14:31:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 10 C9 07 01 4C B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 2D A0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 F0 02 00 35 04 06 00 8D 9E C0 C8 79 75 74 63 CF 13 53 D6 1D E2 [14:31:05]CheckFolder [14:31:05]dirname=/storage/ofd_packets [14:31:05]CheckFolder done [14:31:05]ProducePacketName [14:31:05]name=ofd_packets/00192614 [14:31:05]NVStorageSaveData ofd_packets/00192614 [14:31:05]File name is /storage/ofd_packets/00192614 [14:31:05]Write 301 bytes [14:31:05]NVStorageSaveData done [14:31:05]OFDSenderStorePacket done [14:31:05]KKMCreateOFDPacket done [14:31:05]NVStorageSaveData kkm_last_timestamp [14:31:05]File name is /storage/kkm_last_timestamp [14:31:05]Write 4 bytes [14:31:05]NVStorageSaveData done [14:31:05]ExternCall_PrintAddStr [14:31:05]wPrintStart [14:31:05]Write to MH i2c: 01 00 00 9D 4C E9 [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: 01 [14:31:05]MH_I2C_Read... [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 9D 4C 00 00 00 00 00 FF 0F FE [14:31:05]RasterBufferAndPrint [14:31:05]line Счет N : (1)31934 [14:31:05]line ИНН: 02508201610067 [14:31:05]line Контрольно-Кассовый Чек [14:31:05]line ПРОДАЖА [14:31:05]line ТРК (МРК, ГНК) : 12 [14:31:05]line Товар: 2710124130 [14:31:05]line Аи-92-К-5 [14:31:05]line 14.950 * 66.90 [14:31:05]line = 1000.16 [14:31:05]line НДС 12% НСП 1% [14:31:05]line > о реализуемом товаре [14:31:05]line ОКРУГЛЕНИЕ: -0.16 [14:31:05]line ИТОГО: 1000.00 [14:31:05]line Внесено: 1000.00 [14:31:05]line СДАЧА: 0.00 [14:31:05]line НСП 1% : 8.85 [14:31:05]line НДС 12% : 106.21 [14:31:05]line Наличными: 1000.00 [14:31:05]line Безнал.: 0.00 [14:31:05]line Место: АЗС № 170 "Партнер Нефть" [14:31:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:31:05]line СНО: Общий режим [14:31:05]line Чек 162 28.10.2024 14:31 [14:31:05]line Смена: 543 ФФД: 1.0 [14:31:05]line ЗНМ: 0300000110 [14:31:05]line РНМ: 0000000000091776 [14:31:05]line Версия ККМ: 001 [14:31:05]line ФМ: 0000000000871754 [14:31:05]line ФД: 192614 [14:31:05]line ФПД: 155712978712949 [14:31:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T143109&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192614&fm=155712978712949&tin=02508201610067®Number=0000000000091776&sum=100000 [14:31:05]OFD Sender: Processing packet 192614 [packets to send 75, broken 74] [14:31:05]ProducePacketName [14:31:05]name=ofd_packets/00192614 [14:31:05]OFD Sender: To server: pG, [14:31:05]CommunicateWithHost lk.salyk.kg:30040 [14:31:05]ConnectInit lk.salyk.kg [14:31:05]written 0, free lines is 4095 [14:31:06]Connected sock=10 [14:31:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 10 C9 07 01 4C B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 2D A0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 F0 02 00 35 04 06 00 8D 9E C0 C8 79 75 74 63 CF 13 53 D6 1D E2 [14:31:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 14 8C 47 00 63 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 31 37 35 34 10 04 04 00 66 F0 02 00 F4 03 04 00 F1 44 1F 67 B6 04 01 00 00 AC 09 0D E9 AF F6 2B AF [14:31:06]CommunicateWithHost err = 0 [14:31:06]CheckOFDResponse [14:31:06]1017 (14) - 77093643461234 [14:31:06]1041 (16) - 0000000000871754 [14:31:06]1040 (4) - 192614 [14:31:06]1012 (4) - 28.10.2024 08:01 [14:31:06]1206 (1) - 0 [14:31:06]OFD Sender: Remove packet 192614 [14:31:06]ProducePacketName [14:31:06]name=ofd_packets/00192614 [14:31:06]NVStorageDeleteData [14:31:06]Write to MH i2c: 01 00 00 C8 4C 14 [14:31:06]Write i2c OK [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: 01 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: 01 07 00 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: 01 07 00 C8 4C 00 00 00 00 00 C4 0C EB [14:31:06]RasterBufferAndPrint [14:31:06]line [14:31:06]line [14:31:06]line [14:31:06]line [14:31:06]line [14:31:06]written 0, free lines is 3273 [14:31:06]MH_Cut [14:31:06]Write to MH i2c: D1 01 00 CF 4C 01 ED [14:31:06]Write i2c OK [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: D1 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: D1 01 00 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: D1 01 00 CF 4C 00 EC [14:31:06]Write to MH i2c: 01 00 00 D0 4C 1C [14:31:06]Write i2c OK [14:31:06]MH_I2C_Read... [14:31:06]OFD Sender: No OFD packet to send [14:31:07]*** Cut start [14:31:07]*** Partial cut [14:31:07]*** CUTSNS_PIN = 1 [14:31:07]*** CUTSNS_PIN = 0 [14:31:07]*** Brake cut motor [14:31:07]Read from MH i2c: 01 [14:31:07]MH_I2C_Read... [14:31:07]*** Stop cut motor [14:31:07]*** Cut end [14:31:07]Read from MH i2c: 01 07 00 [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: 01 07 00 D0 4C 00 00 00 00 00 FF 0F 31 [14:31:07]process_action close_receipt done [14:31:07]requested_data is exist [14:31:07]produce_requested_data [14:31:07]requested_item fm.sn is exist - process it [14:31:07]wFMCommunicate request_size=4 [14:31:07]MH_SAM_APDU [14:31:07]CAPDU: 80 11 00 00 [14:31:07]Write to MH i2c: E2 08 00 D1 4C 80 11 00 00 00 00 00 00 97 [14:31:07]Write i2c OK [14:31:07]MH_I2C_Read... [14:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:07]Read from MH i2c: E2 [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: E2 17 00 [14:31:07]MH_I2C_Read... [14:31:07]Read from MH i2c: E2 17 00 D1 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [14:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:31:07]wFMCommunicate OK [14:31:07]requested_item fd.num is exist - process it [14:31:07]SAM_PROTO_GetFieldsCounters [14:31:07]wFMCommunicate request_size=4 [14:31:07]MH_SAM_APDU [14:31:07]CAPDU: 80 13 00 00 [14:31:07]Write to MH i2c: E2 08 00 D2 4C 80 13 00 00 00 00 00 00 9A [14:31:07]Write i2c OK [14:31:07]MH_I2C_Read... [14:31:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:08]Read from MH i2c: E2 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 62 00 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 62 00 D2 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 66 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [14:31:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 66 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:08]wFMCommunicate OK [14:31:08]SAM_PROTO_GetFieldsCounters done [14:31:08]requested_item shift.num is exist - process it [14:31:08]requested_item shift.opened is exist - process it [14:31:08]req_shift_opened [14:31:08]FM_GetShiftState [14:31:08]SAM_PROTO_GetShiftState [14:31:08]wFMCommunicate request_size=4 [14:31:08]MH_SAM_APDU [14:31:08]CAPDU: 80 13 01 00 [14:31:08]Write to MH i2c: E2 08 00 D3 4C 80 13 01 00 00 00 00 00 9C [14:31:08]Write i2c OK [14:31:08]MH_I2C_Read... [14:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:08]Read from MH i2c: E2 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 0E 00 [14:31:08]MH_I2C_Read... [14:31:08]Read from MH i2c: E2 0E 00 D3 4C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EC [14:31:08]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:31:08]wFMCommunicate OK [14:31:08]SAM_PROTO_GetShiftState done [14:31:08]FM_GetShiftState done [14:31:08]req_shift_opened done [14:31:08]requested_item shift.open_date is exist - process it [14:31:08]req_shift_open_date [14:31:08]req_shift_open_date done [14:31:08]produce_requested_data done [14:31:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192614,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:31:08]process_action_free close_receipt [14:31:08]json_value_free [14:31:08]json_value_free done [14:31:08]process_json_proto returns [14:31:08]Send response to host [14:31:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192614,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:31:08]free response buf [14:31:08]execute_script done [14:31:08]execute_script returns [14:31:08]free content buf [14:31:08]Sock 9.Close socket [14:31:08]Sock 9.Thread stoped [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:32]accept exits with 7 [14:34:32]New connection [14:34:32]New thread 3066707300 created [14:34:32]Thread 3066563940 joined [14:34:32]Waiting for new connection... [14:34:32] Sock 7.Parse request [14:34:32]Sock 7.Check first char [14:34:32]Sock 7.First char is OK [14:34:32]request: POST /json_proto HTTP/1.0 [14:34:32]Method: POST [14:34:32]URL: /json_proto [14:34:32]Method is POST - this is cgi request [14:34:32]url: /json_proto [14:34:32]query_string will be loaded in cgi processing [14:34:32]execute_cgi json_proto POST (null) [14:34:32]execute_cgi path=json_proto method=POST [14:34:32]POST find Content-Length [14:34:32]Host: 172.17.63.131:8080 [14:34:32]Content-Length: 677 [14:34:32]Content-Type: application/json [14:34:32] [14:34:32]POST finish read [14:34:32]Found Content-Length = 677 [14:34:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:32]execute_script... [14:34:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:32]POST & json_proto [14:34:32]process_json_proto [14:34:32]json parsed OK: [14:34:32]protocol is kg_v1.0 [14:34:32]action value=close_receipt [14:34:32]process_action close_receipt [14:34:32]cmd_close_receipt [14:34:32]MH_GetDate [14:34:32]Write to MH i2c: F0 00 00 D4 4C 0F [14:34:32]Write i2c OK [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: F0 [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: F0 09 00 [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: F0 09 00 D4 4C 00 FD A0 1F 67 22 05 6E 64 34 [14:34:32]GetLastDocTimeStamp 1730125869 [14:34:32]current date 1730126077 [14:34:32]FM_GetShiftState [14:34:32]SAM_PROTO_GetShiftState [14:34:32]wFMCommunicate request_size=4 [14:34:32]MH_SAM_APDU [14:34:32]CAPDU: 80 13 01 00 [14:34:32]Write to MH i2c: E2 08 00 D5 4C 80 13 01 00 00 00 00 00 9E [14:34:32]Write i2c OK [14:34:32]MH_I2C_Read... [14:34:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:32]Read from MH i2c: E2 [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: E2 0E 00 [14:34:32]MH_I2C_Read... [14:34:32]Read from MH i2c: E2 0E 00 D5 4C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EE [14:34:32]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:34:32]wFMCommunicate OK [14:34:32]SAM_PROTO_GetShiftState done [14:34:32]FM_GetShiftState done [14:34:32]opened in 1730075620 [14:34:32]opened+sec_in_day 1730162020 [14:34:32]quantity*price = 80012 [14:34:32]sum+1 = 80013 [14:34:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 163 28.10.2024 14:34 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192615 ФПД: 263741157135380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T143437&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192615&fm=263741157135380&tin=02508201610067®Number=0000000000091776&sum=80000 [14:34:33]StoreToDocumentArchive [14:34:33]shift 543 fd 192615 [14:34:33]save to /storage/0543/doc_00192615 [14:34:33]save last doc name /storage/0543/doc_00192615 to /storage/kkm_last_doc_name [14:34:33]save OK [14:34:33]Clear old archive folders... [14:34:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:33]tlvbuf is B6D6C5B0 [14:34:33]SAM_PROTO_ClearQueue [14:34:33]wFMCommunicate request_size=4 [14:34:33]MH_SAM_APDU [14:34:33]CAPDU: 80 09 00 00 [14:34:33]Write to MH i2c: E2 08 00 E2 4C 80 09 00 00 00 00 00 00 A0 [14:34:33]Write i2c OK [14:34:33]MH_I2C_Read... [14:34:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:33]Read from MH i2c: E2 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: E2 03 00 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: E2 03 00 E2 4C 00 90 00 A2 [14:34:33]RAPDU: 90 00 [14:34:33]wFMCommunicate OK [14:34:33]SAM_PROTO_ClearQueue done [14:34:33]KKMCreateOFDPacket [14:34:33]OFDProtocolAddRootSTLVToBuf [14:34:33]FM_MakeSignedData [14:34:33]FM_MakeSignedData [14:34:33]SAM_PROTO_SignData [14:34:33]wFMCommunicate request_size=4 [14:34:33]MH_SAM_APDU [14:34:33]CAPDU: 80 0D 01 02 [14:34:33]Write to MH i2c: E2 08 00 E3 4C 80 0D 01 02 00 00 00 00 A8 [14:34:33]Write i2c OK [14:34:33]MH_I2C_Read... [14:34:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:33]Read from MH i2c: E2 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: E2 03 00 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: E2 03 00 E3 4C 00 90 00 A3 [14:34:33]RAPDU: 90 00 [14:34:33]wFMCommunicate OK [14:34:33]wFMCommunicate request_size=255 [14:34:33]MH_SAM_APDU [14:34:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 FD A0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 F0 02 00 35 04 06 00 EF [14:34:33]Write to MH i2c: E2 02 01 E4 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 FD A0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 F0 02 00 35 04 06 00 EF 00 00 57 [14:34:33]Write i2c OK [14:34:33]MH_I2C_Read... [14:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:33]Read from MH i2c: E2 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: E2 03 00 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: E2 03 00 E4 4C 00 90 00 A4 [14:34:33]RAPDU: 90 00 [14:34:33]wFMCommunicate OK [14:34:33]wFMCommunicate request_size=10 [14:34:33]MH_SAM_APDU [14:34:33]CAPDU: 80 0D 02 02 05 DF 05 FB D4 14 [14:34:33]Write to MH i2c: E2 0D 00 E5 4C 80 0D 02 02 05 00 DF 05 FB D4 14 00 00 7C [14:34:33]Write i2c OK [14:34:33]MH_I2C_Read... [14:34:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:33]Read from MH i2c: E2 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: E2 03 00 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: E2 03 00 E5 4C 00 90 00 A5 [14:34:33]RAPDU: 90 00 [14:34:33]wFMCommunicate OK [14:34:33]wFMCommunicate request_size=4 [14:34:33]MH_SAM_APDU [14:34:33]CAPDU: 80 0D 03 02 [14:34:33]Write to MH i2c: E2 08 00 E6 4C 80 0D 03 02 00 00 00 00 AD [14:34:33]Write i2c OK [14:34:33]MH_I2C_Read... [14:34:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:33]Read from MH i2c: E2 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: E2 0B 00 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: E2 0B 00 E6 4C 00 2D EE 3C A9 B2 4D EB 9C 90 00 34 [14:34:33]RAPDU: 2D EE 3C A9 B2 4D EB 9C 90 00 [14:34:33]wFMCommunicate OK [14:34:33]SAM_PROTO_SignData done [14:34:33]FM_MakeSignedData done [14:34:33]CreateOFDProtocolMessage [14:34:33]wFMCommunicate request_size=4 [14:34:33]MH_SAM_APDU [14:34:33]CAPDU: 80 11 00 00 [14:34:33]Write to MH i2c: E2 08 00 E7 4C 80 11 00 00 00 00 00 00 AD [14:34:33]Write i2c OK [14:34:33]MH_I2C_Read... [14:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:33]Read from MH i2c: E2 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: E2 17 00 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: E2 17 00 E7 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 00 [14:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:34:33]wFMCommunicate OK [14:34:33]CreateOFDProtocolMessage done [14:34:33]OFDSenderStorePacket 192615 [14:34:33]StoreOFDPacket docnum=192615 [14:34:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 F1 07 01 5F BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 FD A0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 F0 02 00 35 04 06 00 EF DF 05 FB D4 14 2D EE 3C A9 B2 4D EB 9C [14:34:33]CheckFolder [14:34:33]dirname=/storage/ofd_packets [14:34:33]CheckFolder done [14:34:33]ProducePacketName [14:34:33]name=ofd_packets/00192615 [14:34:33]NVStorageSaveData ofd_packets/00192615 [14:34:33]File name is /storage/ofd_packets/00192615 [14:34:33]Write 301 bytes [14:34:33]NVStorageSaveData done [14:34:33]OFDSenderStorePacket done [14:34:33]KKMCreateOFDPacket done [14:34:33]NVStorageSaveData kkm_last_timestamp [14:34:33]File name is /storage/kkm_last_timestamp [14:34:33]Write 4 bytes [14:34:33]NVStorageSaveData done [14:34:33]ExternCall_PrintAddStr [14:34:33]wPrintStart [14:34:33]Write to MH i2c: 01 00 00 E8 4C 34 [14:34:33]Write i2c OK [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: 01 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: 01 07 00 [14:34:33]MH_I2C_Read... [14:34:33]Read from MH i2c: 01 07 00 E8 4C 00 00 00 00 00 FF 0F 49 [14:34:33]RasterBufferAndPrint [14:34:33]line Счет N : (1)31936 [14:34:33]line ИНН: 02508201610067 [14:34:33]line Контрольно-Кассовый Чек [14:34:33]line ПРОДАЖА [14:34:33]line ТРК (МРК, ГНК) : 12 [14:34:33]line Товар: 2710124130 [14:34:33]line Аи-92-К-5 [14:34:33]line 11.960 * 66.90 [14:34:33]line = 800.12 [14:34:33]line НДС 12% НСП 1% [14:34:33]line > о реализуемом товаре [14:34:33]line ОКРУГЛЕНИЕ: -0.12 [14:34:33]line ИТОГО: 800.00 [14:34:33]line Внесено: 800.00 [14:34:33]line СДАЧА: 0.00 [14:34:33]line НСП 1% : 7.08 [14:34:33]line НДС 12% : 84.97 [14:34:33]line Наличными: 800.00 [14:34:33]line Безнал.: 0.00 [14:34:33]line Место: АЗС № 170 "Партнер Нефть" [14:34:33]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:34:33]line СНО: Общий режим [14:34:33]line Чек 163 28.10.2024 14:34 [14:34:33]line Смена: 543 ФФД: 1.0 [14:34:33]line ЗНМ: 0300000110 [14:34:33]line РНМ: 0000000000091776 [14:34:33]line Версия ККМ: 001 [14:34:33]line ФМ: 0000000000871754 [14:34:33]line ФД: 192615 [14:34:33]line ФПД: 263741157135380 [14:34:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T143437&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192615&fm=263741157135380&tin=02508201610067®Number=0000000000091776&sum=80000 [14:34:33]written 0, free lines is 4095 [14:34:33]OFD Sender: Processing packet 192615 [packets to send 75, broken 74] [14:34:33]ProducePacketName [14:34:33]name=ofd_packets/00192615 [14:34:33]OFD Sender: To server: pG, [14:34:33]CommunicateWithHost lk.salyk.kg:30040 [14:34:33]ConnectInit lk.salyk.kg [14:34:34]Connected sock=10 [14:34:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 F1 07 01 5F BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 FD A0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 F0 02 00 35 04 06 00 EF DF 05 FB D4 14 2D EE 3C A9 B2 4D EB 9C [14:34:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C1 F3 47 00 33 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 F0 02 00 F4 03 04 00 C1 45 1F 67 B6 04 01 00 00 65 22 1B E1 AC F5 BF 2E [14:34:34]CommunicateWithHost err = 0 [14:34:34]CheckOFDResponse [14:34:34]1017 (14) - 77093643461234 [14:34:34]1041 (16) - 0000000000871754 [14:34:34]1040 (4) - 192615 [14:34:34]1012 (4) - 28.10.2024 08:05 [14:34:34]1206 (1) - 0 [14:34:34]OFD Sender: Remove packet 192615 [14:34:34]ProducePacketName [14:34:34]name=ofd_packets/00192615 [14:34:34]NVStorageDeleteData [14:34:34]Write to MH i2c: 01 00 00 13 4D 60 [14:34:34]Write i2c OK [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: 01 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: 01 07 00 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: 01 07 00 13 4D 00 00 00 00 00 BF 0C 32 [14:34:34]RasterBufferAndPrint [14:34:34]line [14:34:34]line [14:34:34]line [14:34:34]line [14:34:34]line [14:34:34]written 0, free lines is 3270 [14:34:34]MH_Cut [14:34:34]Write to MH i2c: D1 01 00 1A 4D 01 39 [14:34:34]Write i2c OK [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: D1 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: D1 01 00 [14:34:34]MH_I2C_Read... [14:34:34]Read from MH i2c: D1 01 00 1A 4D 00 38 [14:34:34]Write to MH i2c: 01 00 00 1B 4D 68 [14:34:34]Write i2c OK [14:34:34]MH_I2C_Read... [14:34:34]OFD Sender: No OFD packet to send [14:34:35]*** Cut start [14:34:35]*** Partial cut [14:34:35]*** CUTSNS_PIN = 1 [14:34:35]*** CUTSNS_PIN = 0 [14:34:35]*** Brake cut motor [14:34:35]Read from MH i2c: 01 [14:34:35]MH_I2C_Read... [14:34:35]*** Stop cut motor [14:34:35]*** Cut end [14:34:35]Read from MH i2c: 01 07 00 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: 01 07 00 1B 4D 00 00 00 00 00 FF 0F 7D [14:34:35]process_action close_receipt done [14:34:35]requested_data is exist [14:34:35]produce_requested_data [14:34:35]requested_item fm.sn is exist - process it [14:34:35]wFMCommunicate request_size=4 [14:34:35]MH_SAM_APDU [14:34:35]CAPDU: 80 11 00 00 [14:34:35]Write to MH i2c: E2 08 00 1C 4D 80 11 00 00 00 00 00 00 E3 [14:34:35]Write i2c OK [14:34:35]MH_I2C_Read... [14:34:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:35]Read from MH i2c: E2 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: E2 17 00 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: E2 17 00 1C 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 36 [14:34:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:34:35]wFMCommunicate OK [14:34:35]requested_item fd.num is exist - process it [14:34:35]SAM_PROTO_GetFieldsCounters [14:34:35]wFMCommunicate request_size=4 [14:34:35]MH_SAM_APDU [14:34:35]CAPDU: 80 13 00 00 [14:34:35]Write to MH i2c: E2 08 00 1D 4D 80 13 00 00 00 00 00 00 E6 [14:34:35]Write i2c OK [14:34:35]MH_I2C_Read... [14:34:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:36]Read from MH i2c: E2 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 62 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 62 00 1D 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 67 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [14:34:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 67 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:36]wFMCommunicate OK [14:34:36]SAM_PROTO_GetFieldsCounters done [14:34:36]requested_item shift.num is exist - process it [14:34:36]requested_item shift.opened is exist - process it [14:34:36]req_shift_opened [14:34:36]FM_GetShiftState [14:34:36]SAM_PROTO_GetShiftState [14:34:36]wFMCommunicate request_size=4 [14:34:36]MH_SAM_APDU [14:34:36]CAPDU: 80 13 01 00 [14:34:36]Write to MH i2c: E2 08 00 1E 4D 80 13 01 00 00 00 00 00 E8 [14:34:36]Write i2c OK [14:34:36]MH_I2C_Read... [14:34:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:36]Read from MH i2c: E2 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 0E 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 0E 00 1E 4D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 38 [14:34:36]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:34:36]wFMCommunicate OK [14:34:36]SAM_PROTO_GetShiftState done [14:34:36]FM_GetShiftState done [14:34:36]req_shift_opened done [14:34:36]requested_item shift.open_date is exist - process it [14:34:36]req_shift_open_date [14:34:36]req_shift_open_date done [14:34:36]produce_requested_data done [14:34:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192615,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:34:36]process_action_free close_receipt [14:34:36]json_value_free [14:34:36]json_value_free done [14:34:36]process_json_proto returns [14:34:36]Send response to host [14:34:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192615,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:34:36]free response buf [14:34:36]execute_script done [14:34:36]execute_script returns [14:34:36]free content buf [14:34:36]Sock 7.Close socket [14:34:36]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:13]accept exits with 9 [14:39:13]New connection [14:39:13]New thread 3066563940 created [14:39:13]Thread 3066707300 joined [14:39:13]Waiting for new connection... [14:39:13] Sock 9.Parse request [14:39:13]Sock 9.Check first char [14:39:13]Sock 9.First char is OK [14:39:13]request: POST /json_proto HTTP/1.0 [14:39:13]Method: POST [14:39:13]URL: /json_proto [14:39:13]Method is POST - this is cgi request [14:39:13]url: /json_proto [14:39:13]query_string will be loaded in cgi processing [14:39:13]execute_cgi json_proto POST (null) [14:39:13]execute_cgi path=json_proto method=POST [14:39:13]POST find Content-Length [14:39:13]Host: 172.17.63.131:8080 [14:39:13]Content-Length: 673 [14:39:13]Content-Type: application/json [14:39:13] [14:39:13]POST finish read [14:39:13]Found Content-Length = 673 [14:39:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:13]execute_script... [14:39: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)31939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.320, "sum" : 100.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:13]POST & json_proto [14:39:13]process_json_proto [14:39:13]json parsed OK: [14:39:13]protocol is kg_v1.0 [14:39:13]action value=close_receipt [14:39:13]process_action close_receipt [14:39:13]cmd_close_receipt [14:39:13]MH_GetDate [14:39:13]Write to MH i2c: F0 00 00 1F 4D 5B [14:39:13]Write i2c OK [14:39:13]MH_I2C_Read... [14:39:13]Read from MH i2c: F0 [14:39:13]MH_I2C_Read... [14:39:13]Read from MH i2c: F0 09 00 [14:39:13]MH_I2C_Read... [14:39:13]Read from MH i2c: F0 09 00 1F 4D 00 17 A2 1F 67 22 05 6E 64 9C [14:39:13]GetLastDocTimeStamp 1730126077 [14:39:13]current date 1730126359 [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 20 4D 80 13 01 00 00 00 00 00 EA [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 20 4D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3A [14:39:13]RAPDU: 09 00 01 E4 DB 1E 67 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]opened in 1730075620 [14:39:13]opened+sec_in_day 1730162020 [14:39:13]quantity*price = 10058 [14:39:13]sum+1 = 10059 [14:39:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.68 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 164 28.10.2024 14:39 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192616 ФПД: 127826227500478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T143919&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192616&fm=127826227500478&tin=02508201610067®Number=0000000000091776&sum=10000 [14:39:14]StoreToDocumentArchive [14:39:14]shift 543 fd 192616 [14:39:14]save to /storage/0543/doc_00192616 [14:39:14]save last doc name /storage/0543/doc_00192616 to /storage/kkm_last_doc_name [14:39:14]save OK [14:39:14]Clear old archive folders... [14:39:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:39:14]tlvbuf is 01B51650 [14:39:14]SAM_PROTO_ClearQueue [14:39:14]wFMCommunicate request_size=4 [14:39:14]MH_SAM_APDU [14:39:14]CAPDU: 80 09 00 00 [14:39:14]Write to MH i2c: E2 08 00 2D 4D 80 09 00 00 00 00 00 00 EC [14:39:14]Write i2c OK [14:39:14]MH_I2C_Read... [14:39:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:14]Read from MH i2c: E2 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 03 00 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 03 00 2D 4D 00 90 00 EE [14:39:14]RAPDU: 90 00 [14:39:14]wFMCommunicate OK [14:39:14]SAM_PROTO_ClearQueue done [14:39:14]KKMCreateOFDPacket [14:39:14]OFDProtocolAddRootSTLVToBuf [14:39:14]FM_MakeSignedData [14:39:14]FM_MakeSignedData [14:39:14]SAM_PROTO_SignData [14:39:14]wFMCommunicate request_size=4 [14:39:14]MH_SAM_APDU [14:39:14]CAPDU: 80 0D 01 02 [14:39:14]Write to MH i2c: E2 08 00 2E 4D 80 0D 01 02 00 00 00 00 F4 [14:39:14]Write i2c OK [14:39:14]MH_I2C_Read... [14:39:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:14]Read from MH i2c: E2 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 03 00 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 03 00 2E 4D 00 90 00 EF [14:39:14]RAPDU: 90 00 [14:39:14]wFMCommunicate OK [14:39:14]wFMCommunicate request_size=255 [14:39:14]MH_SAM_APDU [14:39:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 17 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 F0 02 00 35 04 06 00 74 41 DC E2 [14:39:14]Write to MH i2c: E2 02 01 2F 4D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 17 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 F0 02 00 35 04 06 00 74 41 DC E2 00 00 9D [14:39:14]Write i2c OK [14:39:14]MH_I2C_Read... [14:39:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:14]Read from MH i2c: E2 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 03 00 [14:39:14]MH_I2C_Read... [14:39:14]Read from MH i2c: E2 03 00 2F 4D 00 90 00 F0 [14:39:14]RAPDU: 90 00 [14:39:14]wFMCommunicate OK [14:39:14]wFMCommunicate request_size=7 [14:39:14]MH_SAM_APDU [14:39:14]CAPDU: 80 0D 02 02 02 15 BE [14:39:14]Write to MH i2c: E2 0A 00 30 4D 80 0D 02 02 02 00 15 BE 00 00 CE [14:39:14]Write i2c OK [14:39:14]MH_I2C_Read... [14:39:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:15]Read from MH i2c: E2 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 03 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 03 00 30 4D 00 90 00 F1 [14:39:15]RAPDU: 90 00 [14:39:15]wFMCommunicate OK [14:39:15]wFMCommunicate request_size=4 [14:39:15]MH_SAM_APDU [14:39:15]CAPDU: 80 0D 03 02 [14:39:15]Write to MH i2c: E2 08 00 31 4D 80 0D 03 02 00 00 00 00 F9 [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:15]Read from MH i2c: E2 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 0B 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 0B 00 31 4D 00 27 92 E7 87 5C E2 FD 1C 90 00 78 [14:39:15]RAPDU: 27 92 E7 87 5C E2 FD 1C 90 00 [14:39:15]wFMCommunicate OK [14:39:15]SAM_PROTO_SignData done [14:39:15]FM_MakeSignedData done [14:39:15]CreateOFDProtocolMessage [14:39:15]wFMCommunicate request_size=4 [14:39:15]MH_SAM_APDU [14:39:15]CAPDU: 80 11 00 00 [14:39:15]Write to MH i2c: E2 08 00 32 4D 80 11 00 00 00 00 00 00 F9 [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:15]Read from MH i2c: E2 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 17 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: E2 17 00 32 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [14:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:39:15]wFMCommunicate OK [14:39:15]CreateOFDProtocolMessage done [14:39:15]OFDSenderStorePacket 192616 [14:39:15]StoreOFDPacket docnum=192616 [14:39:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 21 EC 04 01 D5 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 17 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 F0 02 00 35 04 06 00 74 41 DC E2 15 BE 27 92 E7 87 5C E2 FD 1C [14:39:15]CheckFolder [14:39:15]dirname=/storage/ofd_packets [14:39:15]CheckFolder done [14:39:15]ProducePacketName [14:39:15]name=ofd_packets/00192616 [14:39:15]NVStorageSaveData ofd_packets/00192616 [14:39:15]File name is /storage/ofd_packets/00192616 [14:39:15]Write 298 bytes [14:39:15]NVStorageSaveData done [14:39:15]OFDSenderStorePacket done [14:39:15]KKMCreateOFDPacket done [14:39:15]NVStorageSaveData kkm_last_timestamp [14:39:15]File name is /storage/kkm_last_timestamp [14:39:15]Write 4 bytes [14:39:15]NVStorageSaveData done [14:39:15]ExternCall_PrintAddStr [14:39:15]wPrintStart [14:39:15]Write to MH i2c: 01 00 00 33 4D 80 [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: 01 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: 01 07 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: 01 07 00 33 4D 00 00 00 00 00 FF 0F 95 [14:39:15]RasterBufferAndPrint [14:39:15]line Счет N : (1)31939 [14:39:15]line ИНН: 02508201610067 [14:39:15]line Контрольно-Кассовый Чек [14:39:15]line ПРОДАЖА [14:39:15]line ТРК (МРК, ГНК) : 11 [14:39:15]line Товар: 2710194210 [14:39:15]line ДТ-К-5 [14:39:15]line 1.320 * 76.20 [14:39:15]line = 100.58 [14:39:15]line НДС 12% НСП 1% [14:39:15]line > о реализуемом товаре [14:39:15]line ОКРУГЛЕНИЕ: -0.58 [14:39:15]line ИТОГО: 100.00 [14:39:15]line Внесено: 100.00 [14:39:15]line СДАЧА: 0.00 [14:39:15]line НСП 1% : 0.89 [14:39:15]line НДС 12% : 10.68 [14:39:15]line Наличными: 100.00 [14:39:15]line Безнал.: 0.00 [14:39:15]line Место: АЗС № 170 "Партнер Нефть" [14:39:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:39:15]line СНО: Общий режим [14:39:15]line Чек 164 28.10.2024 14:39 [14:39:15]line Смена: 543 ФФД: 1.0 [14:39:15]line ЗНМ: 0300000110 [14:39:15]line РНМ: 0000000000091776 [14:39:15]line Версия ККМ: 001 [14:39:15]line ФМ: 0000000000871754 [14:39:15]line ФД: 192616 [14:39:15]line ФПД: 127826227500478 [14:39:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T143919&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192616&fm=127826227500478&tin=02508201610067®Number=0000000000091776&sum=10000 [14:39:15]OFD Sender: Processing packet 192616 [packets to send 75, broken 74] [14:39:15]ProducePacketName [14:39:15]name=ofd_packets/00192616 [14:39:15]OFD Sender: To server: pG, [14:39:15]CommunicateWithHost lk.salyk.kg:30040 [14:39:15]ConnectInit lk.salyk.kg [14:39:15]written 0, free lines is 4095 [14:39:15]Connected sock=10 [14:39:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 21 EC 04 01 D5 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 17 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 F0 02 00 35 04 06 00 74 41 DC E2 15 BE 27 92 E7 87 5C E2 FD 1C [14:39:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C7 33 47 00 CB F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 F0 02 00 F4 03 04 00 DB 46 1F 67 B6 04 01 00 00 86 62 2D 84 9F A6 F5 C5 [14:39:15]CommunicateWithHost err = 0 [14:39:15]CheckOFDResponse [14:39:15]1017 (14) - 77093643461234 [14:39:15]1041 (16) - 0000000000871754 [14:39:15]1040 (4) - 192616 [14:39:15]1012 (4) - 28.10.2024 08:10 [14:39:15]1206 (1) - 0 [14:39:15]OFD Sender: Remove packet 192616 [14:39:15]ProducePacketName [14:39:15]name=ofd_packets/00192616 [14:39:15]NVStorageDeleteData [14:39:15]Write to MH i2c: 01 00 00 5E 4D AB [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: 01 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: 01 07 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: 01 07 00 5E 4D 00 00 00 00 00 B9 0C 77 [14:39:15]RasterBufferAndPrint [14:39:15]line [14:39:15]line [14:39:15]line [14:39:15]line [14:39:15]line [14:39:15]written 0, free lines is 3265 [14:39:15]MH_Cut [14:39:15]Write to MH i2c: D1 01 00 65 4D 01 84 [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: D1 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: D1 01 00 [14:39:15]MH_I2C_Read... [14:39:15]Read from MH i2c: D1 01 00 65 4D 00 83 [14:39:15]Write to MH i2c: 01 00 00 66 4D B3 [14:39:15]Write i2c OK [14:39:15]MH_I2C_Read... [14:39:16]OFD Sender: No OFD packet to send [14:39:16]*** Cut start [14:39:16]*** Partial cut [14:39:16]*** CUTSNS_PIN = 1 [14:39:16]*** CUTSNS_PIN = 0 [14:39:17]*** Brake cut motor [14:39:17]Read from MH i2c: 01 [14:39:17]MH_I2C_Read... [14:39:17]*** Stop cut motor [14:39:17]*** Cut end [14:39:17]Read from MH i2c: 01 07 00 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: 01 07 00 66 4D 00 00 00 00 00 FF 0F C8 [14:39:17]process_action close_receipt done [14:39:17]requested_data is exist [14:39:17]produce_requested_data [14:39:17]requested_item fm.sn is exist - process it [14:39:17]wFMCommunicate request_size=4 [14:39:17]MH_SAM_APDU [14:39:17]CAPDU: 80 11 00 00 [14:39:17]Write to MH i2c: E2 08 00 67 4D 80 11 00 00 00 00 00 00 2E [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:17]Read from MH i2c: E2 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: E2 17 00 [14:39:17]MH_I2C_Read... [14:39:17]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 31 37 35 34 90 00 81 [14:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:39:17]wFMCommunicate OK [14:39:17]requested_item fd.num is exist - process it [14:39:17]SAM_PROTO_GetFieldsCounters [14:39:17]wFMCommunicate request_size=4 [14:39:17]MH_SAM_APDU [14:39:17]CAPDU: 80 13 00 00 [14:39:17]Write to MH i2c: E2 08 00 68 4D 80 13 00 00 00 00 00 00 31 [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:17]Read from MH i2c: E2 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: E2 62 00 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: E2 62 00 68 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 68 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [14:39:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 68 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:17]wFMCommunicate OK [14:39:17]SAM_PROTO_GetFieldsCounters done [14:39:17]requested_item shift.num is exist - process it [14:39:17]requested_item shift.opened is exist - process it [14:39:17]req_shift_opened [14:39:17]FM_GetShiftState [14:39:17]SAM_PROTO_GetShiftState [14:39:17]wFMCommunicate request_size=4 [14:39:17]MH_SAM_APDU [14:39:17]CAPDU: 80 13 01 00 [14:39:17]Write to MH i2c: E2 08 00 69 4D 80 13 01 00 00 00 00 00 33 [14:39:17]Write i2c OK [14:39:17]MH_I2C_Read... [14:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:17]Read from MH i2c: E2 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: E2 0E 00 [14:39:17]MH_I2C_Read... [14:39:17]Read from MH i2c: E2 0E 00 69 4D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 83 [14:39:17]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:39:17]wFMCommunicate OK [14:39:17]SAM_PROTO_GetShiftState done [14:39:17]FM_GetShiftState done [14:39:17]req_shift_opened done [14:39:17]requested_item shift.open_date is exist - process it [14:39:17]req_shift_open_date [14:39:17]req_shift_open_date done [14:39:17]produce_requested_data done [14:39:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192616,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:39:17]process_action_free close_receipt [14:39:17]json_value_free [14:39:17]json_value_free done [14:39:17]process_json_proto returns [14:39:17]Send response to host [14:39:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192616,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:39:17]free response buf [14:39:17]execute_script done [14:39:17]execute_script returns [14:39:17]free content buf [14:39:17]Sock 9.Close socket [14:39:17]Sock 9.Thread stoped [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:34]accept exits with 7 [14:40:34]New connection [14:40:34]New thread 3066707300 created [14:40:34]Thread 3066563940 joined [14:40:34]Waiting for new connection... [14:40:34] Sock 7.Parse request [14:40:34]Sock 7.Check first char [14:40:34]Sock 7.First char is OK [14:40:34]request: POST /json_proto HTTP/1.0 [14:40:34]Method: POST [14:40:34]URL: /json_proto [14:40:34]Method is POST - this is cgi request [14:40:34]url: /json_proto [14:40:34]query_string will be loaded in cgi processing [14:40:34]execute_cgi json_proto POST (null) [14:40:34]execute_cgi path=json_proto method=POST [14:40:34]POST find Content-Length [14:40:34]Host: 172.17.63.131:8080 [14:40:34]Content-Length: 674 [14:40:34]Content-Type: application/json [14:40:34] [14:40:34]POST finish read [14:40:34]Found Content-Length = 674 [14:40:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:34]execute_script... [14:40: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)31940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:34]POST & json_proto [14:40:34]process_json_proto [14:40:34]json parsed OK: [14:40:34]protocol is kg_v1.0 [14:40:34]action value=close_receipt [14:40:34]process_action close_receipt [14:40:34]cmd_close_receipt [14:40:34]MH_GetDate [14:40:34]Write to MH i2c: F0 00 00 6A 4D A6 [14:40:34]Write i2c OK [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: F0 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: F0 09 00 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: F0 09 00 6A 4D 00 67 A2 1F 67 22 05 6E 64 37 [14:40:34]GetLastDocTimeStamp 1730126359 [14:40:34]current date 1730126439 [14:40:34]FM_GetShiftState [14:40:34]SAM_PROTO_GetShiftState [14:40:34]wFMCommunicate request_size=4 [14:40:34]MH_SAM_APDU [14:40:34]CAPDU: 80 13 01 00 [14:40:34]Write to MH i2c: E2 08 00 6B 4D 80 13 01 00 00 00 00 00 35 [14:40:34]Write i2c OK [14:40:34]MH_I2C_Read... [14:40:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:34]Read from MH i2c: E2 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: E2 0E 00 [14:40:34]MH_I2C_Read... [14:40:34]Read from MH i2c: E2 0E 00 6B 4D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 85 [14:40:34]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:40:34]wFMCommunicate OK [14:40:34]SAM_PROTO_GetShiftState done [14:40:34]FM_GetShiftState done [14:40:34]opened in 1730075620 [14:40:34]opened+sec_in_day 1730162020 [14:40:34]quantity*price = 90068 [14:40:34]sum+1 = 90069 [14:40:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 165 28.10.2024 14:40 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192617 ФПД: 207514046404156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144039&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192617&fm=207514046404156&tin=02508201610067®Number=0000000000091776&sum=90000 [14:40:35]StoreToDocumentArchive [14:40:35]shift 543 fd 192617 [14:40:35]save to /storage/0543/doc_00192617 [14:40:35]save last doc name /storage/0543/doc_00192617 to /storage/kkm_last_doc_name [14:40:35]save OK [14:40:35]Clear old archive folders... [14:40:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:40:35]tlvbuf is 01A661E0 [14:40:35]SAM_PROTO_ClearQueue [14:40:35]wFMCommunicate request_size=4 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 09 00 00 [14:40:35]Write to MH i2c: E2 08 00 78 4D 80 09 00 00 00 00 00 00 37 [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 78 4D 00 90 00 39 [14:40:35]RAPDU: 90 00 [14:40:35]wFMCommunicate OK [14:40:35]SAM_PROTO_ClearQueue done [14:40:35]KKMCreateOFDPacket [14:40:35]OFDProtocolAddRootSTLVToBuf [14:40:35]FM_MakeSignedData [14:40:35]FM_MakeSignedData [14:40:35]SAM_PROTO_SignData [14:40:35]wFMCommunicate request_size=4 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 0D 01 02 [14:40:35]Write to MH i2c: E2 08 00 79 4D 80 0D 01 02 00 00 00 00 3F [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 79 4D 00 90 00 3A [14:40:35]RAPDU: 90 00 [14:40:35]wFMCommunicate OK [14:40:35]wFMCommunicate request_size=255 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 67 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 F0 02 00 35 04 06 00 BC BB A1 05 [14:40:35]Write to MH i2c: E2 02 01 7A 4D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 67 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 F0 02 00 35 04 06 00 BC BB A1 05 00 00 5F [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 7A 4D 00 90 00 3B [14:40:35]RAPDU: 90 00 [14:40:35]wFMCommunicate OK [14:40:35]wFMCommunicate request_size=7 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 0D 02 02 02 96 3C [14:40:35]Write to MH i2c: E2 0A 00 7B 4D 80 0D 02 02 02 00 96 3C 00 00 18 [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 03 00 7B 4D 00 90 00 3C [14:40:35]RAPDU: 90 00 [14:40:35]wFMCommunicate OK [14:40:35]wFMCommunicate request_size=4 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 0D 03 02 [14:40:35]Write to MH i2c: E2 08 00 7C 4D 80 0D 03 02 00 00 00 00 44 [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 0B 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 0B 00 7C 4D 00 CF 2A 72 FB 53 DD E5 A5 90 00 65 [14:40:35]RAPDU: CF 2A 72 FB 53 DD E5 A5 90 00 [14:40:35]wFMCommunicate OK [14:40:35]SAM_PROTO_SignData done [14:40:35]FM_MakeSignedData done [14:40:35]CreateOFDProtocolMessage [14:40:35]wFMCommunicate request_size=4 [14:40:35]MH_SAM_APDU [14:40:35]CAPDU: 80 11 00 00 [14:40:35]Write to MH i2c: E2 08 00 7D 4D 80 11 00 00 00 00 00 00 44 [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:35]Read from MH i2c: E2 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 17 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: E2 17 00 7D 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [14:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:40:35]wFMCommunicate OK [14:40:35]CreateOFDProtocolMessage done [14:40:35]OFDSenderStorePacket 192617 [14:40:35]StoreOFDPacket docnum=192617 [14:40:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 40 F0 04 01 D3 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 67 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 F0 02 00 35 04 06 00 BC BB A1 05 96 3C CF 2A 72 FB 53 DD E5 A5 [14:40:35]CheckFolder [14:40:35]dirname=/storage/ofd_packets [14:40:35]CheckFolder done [14:40:35]ProducePacketName [14:40:35]name=ofd_packets/00192617 [14:40:35]NVStorageSaveData ofd_packets/00192617 [14:40:35]File name is /storage/ofd_packets/00192617 [14:40:35]Write 298 bytes [14:40:35]NVStorageSaveData done [14:40:35]OFDSenderStorePacket done [14:40:35]KKMCreateOFDPacket done [14:40:35]NVStorageSaveData kkm_last_timestamp [14:40:35]File name is /storage/kkm_last_timestamp [14:40:35]Write 4 bytes [14:40:35]NVStorageSaveData done [14:40:35]ExternCall_PrintAddStr [14:40:35]wPrintStart [14:40:35]Write to MH i2c: 01 00 00 7E 4D CB [14:40:35]Write i2c OK [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: 01 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: 01 07 00 [14:40:35]MH_I2C_Read... [14:40:35]Read from MH i2c: 01 07 00 7E 4D 00 00 00 00 00 FF 0F E0 [14:40:35]RasterBufferAndPrint [14:40:35]line Счет N : (1)31940 [14:40:35]line ИНН: 02508201610067 [14:40:35]line Контрольно-Кассовый Чек [14:40:35]line ПРОДАЖА [14:40:35]line ТРК (МРК, ГНК) : 11 [14:40:35]line Товар: 2710194210 [14:40:35]line ДТ-К-5 [14:40:35]line 11.820 * 76.20 [14:40:35]line = 900.68 [14:40:35]line НДС 12% НСП 1% [14:40:35]line > о реализуемом товаре [14:40:35]line ОКРУГЛЕНИЕ: -0.68 [14:40:35]line ИТОГО: 900.00 [14:40:35]line Внесено: 900.00 [14:40:35]line СДАЧА: 0.00 [14:40:35]line НСП 1% : 7.97 [14:40:35]line НДС 12% : 95.65 [14:40:35]line Наличными: 900.00 [14:40:35]line Безнал.: 0.00 [14:40:35]line Место: АЗС № 170 "Партнер Нефть" [14:40:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:40:35]line СНО: Общий режим [14:40:35]line Чек 165 28.10.2024 14:40 [14:40:35]line Смена: 543 ФФД: 1.0 [14:40:35]line ЗНМ: 0300000110 [14:40:35]line РНМ: 0000000000091776 [14:40:35]line Версия ККМ: 001 [14:40:35]line ФМ: 0000000000871754 [14:40:35]line ФД: 192617 [14:40:35]line ФПД: 207514046404156 [14:40:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144039&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192617&fm=207514046404156&tin=02508201610067®Number=0000000000091776&sum=90000 [14:40:36]OFD Sender: Processing packet 192617 [packets to send 75, broken 74] [14:40:36]ProducePacketName [14:40:36]name=ofd_packets/00192617 [14:40:36]OFD Sender: To server: pG, [14:40:36]CommunicateWithHost lk.salyk.kg:30040 [14:40:36]ConnectInit lk.salyk.kg [14:40:36]written 0, free lines is 4095 [14:40:36]Connected sock=10 [14:40:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 40 F0 04 01 D3 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 67 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 F0 02 00 35 04 06 00 BC BB A1 05 96 3C CF 2A 72 FB 53 DD E5 A5 [14:40:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FF 58 47 00 D0 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 F0 02 00 F4 03 04 00 2B 47 1F 67 B6 04 01 00 00 1A 7D 2D 66 C8 56 E7 43 [14:40:36]CommunicateWithHost err = 0 [14:40:36]CheckOFDResponse [14:40:36]1017 (14) - 77093643461234 [14:40:36]1041 (16) - 0000000000871754 [14:40:36]1040 (4) - 192617 [14:40:36]1012 (4) - 28.10.2024 08:11 [14:40:36]1206 (1) - 0 [14:40:36]OFD Sender: Remove packet 192617 [14:40:36]ProducePacketName [14:40:36]name=ofd_packets/00192617 [14:40:36]NVStorageDeleteData [14:40:36]Write to MH i2c: 01 00 00 A9 4D F6 [14:40:36]Write i2c OK [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: 01 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: 01 07 00 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: 01 07 00 A9 4D 00 00 00 00 00 BF 0C C8 [14:40:36]RasterBufferAndPrint [14:40:36]line [14:40:36]line [14:40:36]line [14:40:36]line [14:40:36]line [14:40:36]written 0, free lines is 3269 [14:40:36]MH_Cut [14:40:36]Write to MH i2c: D1 01 00 B0 4D 01 CF [14:40:36]Write i2c OK [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: D1 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: D1 01 00 [14:40:36]MH_I2C_Read... [14:40:36]Read from MH i2c: D1 01 00 B0 4D 00 CE [14:40:36]Write to MH i2c: 01 00 00 B1 4D FE [14:40:36]Write i2c OK [14:40:36]MH_I2C_Read... [14:40:36]OFD Sender: No OFD packet to send [14:40:37]*** Cut start [14:40:37]*** Partial cut [14:40:37]*** CUTSNS_PIN = 1 [14:40:37]*** CUTSNS_PIN = 0 [14:40:37]*** Brake cut motor [14:40:37]Read from MH i2c: 01 [14:40:37]MH_I2C_Read... [14:40:37]Read from MH i2c: *** Stop cut motor [14:40:37]01 07 *** Cut end [14:40:37]00 [14:40:37]MH_I2C_Read... [14:40:37]Read from MH i2c: 01 07 00 B1 4D 00 00 00 00 00 FF 0F 13 [14:40:37]process_action close_receipt done [14:40:37]requested_data is exist [14:40:37]produce_requested_data [14:40:37]requested_item fm.sn is exist - process it [14:40:37]wFMCommunicate request_size=4 [14:40:37]MH_SAM_APDU [14:40:37]CAPDU: 80 11 00 00 [14:40:37]Write to MH i2c: E2 08 00 B2 4D 80 11 00 00 00 00 00 00 79 [14:40:37]Write i2c OK [14:40:37]MH_I2C_Read... [14:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:38]Read from MH i2c: E2 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 17 00 [14:40:38]MH_I2C_Read... [14:40:38]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 31 37 35 34 90 00 CC [14:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:40:38]wFMCommunicate OK [14:40:38]requested_item fd.num is exist - process it [14:40:38]SAM_PROTO_GetFieldsCounters [14:40:38]wFMCommunicate request_size=4 [14:40:38]MH_SAM_APDU [14:40:38]CAPDU: 80 13 00 00 [14:40:38]Write to MH i2c: E2 08 00 B3 4D 80 13 00 00 00 00 00 00 7C [14:40:38]Write i2c OK [14:40:38]MH_I2C_Read... [14:40:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:38]Read from MH i2c: E2 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 62 00 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 62 00 B3 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 69 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [14:40:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 69 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:38]wFMCommunicate OK [14:40:38]SAM_PROTO_GetFieldsCounters done [14:40:38]requested_item shift.num is exist - process it [14:40:38]requested_item shift.opened is exist - process it [14:40:38]req_shift_opened [14:40:38]FM_GetShiftState [14:40:38]SAM_PROTO_GetShiftState [14:40:38]wFMCommunicate request_size=4 [14:40:38]MH_SAM_APDU [14:40:38]CAPDU: 80 13 01 00 [14:40:38]Write to MH i2c: E2 08 00 B4 4D 80 13 01 00 00 00 00 00 7E [14:40:38]Write i2c OK [14:40:38]MH_I2C_Read... [14:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:38]Read from MH i2c: E2 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 0E 00 [14:40:38]MH_I2C_Read... [14:40:38]Read from MH i2c: E2 0E 00 B4 4D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CE [14:40:38]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:40:38]wFMCommunicate OK [14:40:38]SAM_PROTO_GetShiftState done [14:40:38]FM_GetShiftState done [14:40:38]req_shift_opened done [14:40:38]requested_item shift.open_date is exist - process it [14:40:38]req_shift_open_date [14:40:38]req_shift_open_date done [14:40:38]produce_requested_data done [14:40:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192617,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:40:38]process_action_free close_receipt [14:40:38]json_value_free [14:40:38]json_value_free done [14:40:38]process_json_proto returns [14:40:38]Send response to host [14:40:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192617,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:40:38]free response buf [14:40:38]execute_script done [14:40:38]execute_script returns [14:40:38]free content buf [14:40:38]Sock 7.Close socket [14:40:38]Sock 7.Thread stoped [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:49]accept exits with 9 [14:40:49]New connection [14:40:49]New thread 3066563940 created [14:40:49]Thread 3066707300 joined [14:40:49]Waiting for new connection... [14:40:49] Sock 9.Parse request [14:40:49]Sock 9.Check first char [14:40:49]Sock 9.First char is OK [14:40:49]request: POST /json_proto HTTP/1.0 [14:40:49]Method: POST [14:40:49]URL: /json_proto [14:40:49]Method is POST - this is cgi request [14:40:49]url: /json_proto [14:40:49]query_string will be loaded in cgi processing [14:40:49]execute_cgi json_proto POST (null) [14:40:49]execute_cgi path=json_proto method=POST [14:40:49]POST find Content-Length [14:40:49]Host: 172.17.63.131:8080 [14:40:49]Content-Length: 670 [14:40:49]Content-Type: application/json [14:40:49] [14:40:49]POST finish read [14:40:49]Found Content-Length = 670 [14:40:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:49]execute_script... [14:40:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:49]POST & json_proto [14:40:49]process_json_proto [14:40:49]json parsed OK: [14:40:49]protocol is kg_v1.0 [14:40:49]action value=close_receipt [14:40:49]process_action close_receipt [14:40:49]cmd_close_receipt [14:40:49]MH_GetDate [14:40:49]Write to MH i2c: F0 00 00 B5 4D F1 [14:40:49]Write i2c OK [14:40:49]MH_I2C_Read... [14:40:49]Read from MH i2c: F0 [14:40:49]MH_I2C_Read... [14:40:49]Read from MH i2c: F0 09 00 [14:40:49]MH_I2C_Read... [14:40:49]Read from MH i2c: F0 09 00 B5 4D 00 77 A2 1F 67 22 05 6E 64 92 [14:40:49]GetLastDocTimeStamp 1730126439 [14:40:49]current date 1730126455 [14:40:49]FM_GetShiftState [14:40:49]SAM_PROTO_GetShiftState [14:40:49]wFMCommunicate request_size=4 [14:40:49]MH_SAM_APDU [14:40:49]CAPDU: 80 13 01 00 [14:40:49]Write to MH i2c: E2 08 00 B6 4D 80 13 01 00 00 00 00 00 80 [14:40:49]Write i2c OK [14:40:49]MH_I2C_Read... [14:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:49]Read from MH i2c: E2 [14:40:49]MH_I2C_Read... [14:40:49]Read from MH i2c: E2 0E 00 [14:40:49]MH_I2C_Read... [14:40:49]Read from MH i2c: E2 0E 00 B6 4D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D0 [14:40:49]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:40:49]wFMCommunicate OK [14:40:49]SAM_PROTO_GetShiftState done [14:40:49]FM_GetShiftState done [14:40:49]opened in 1730075620 [14:40:49]opened+sec_in_day 1730162020 [14:40:49]quantity*price = 66 [14:40:49]sum+1 = 68 [14:40:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 0.00 Внесено: 700.00 СДАЧА: 700.00 НСП 1% : 0.01 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 166 28.10.2024 14:40 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192618 ФПД: 134715953560114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144055&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192618&fm=134715953560114&tin=02508201610067®Number=0000000000091776&sum=0 [14:40:50]StoreToDocumentArchive [14:40:50]shift 543 fd 192618 [14:40:50]save to /storage/0543/doc_00192618 [14:40:50]save last doc name /storage/0543/doc_00192618 to /storage/kkm_last_doc_name [14:40:50]save OK [14:40:50]Clear old archive folders... [14:40:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:50]tlvbuf is 01A7B930 [14:40:50]SAM_PROTO_ClearQueue [14:40:50]wFMCommunicate request_size=4 [14:40:50]MH_SAM_APDU [14:40:50]CAPDU: 80 09 00 00 [14:40:50]Write to MH i2c: E2 08 00 C3 4D 80 09 00 00 00 00 00 00 82 [14:40:50]Write i2c OK [14:40:50]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 C3 4D 00 90 00 84 [14:40:51]RAPDU: 90 00 [14:40:51]wFMCommunicate OK [14:40:51]SAM_PROTO_ClearQueue done [14:40:51]KKMCreateOFDPacket [14:40:51]OFDProtocolAddRootSTLVToBuf [14:40:51]FM_MakeSignedData [14:40:51]FM_MakeSignedData [14:40:51]SAM_PROTO_SignData [14:40:51]wFMCommunicate request_size=4 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 0D 01 02 [14:40:51]Write to MH i2c: E2 08 00 C4 4D 80 0D 01 02 00 00 00 00 8A [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 C4 4D 00 90 00 85 [14:40:51]RAPDU: 90 00 [14:40:51]wFMCommunicate OK [14:40:51]wFMCommunicate request_size=255 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 77 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A F0 02 00 35 04 06 00 7A [14:40:51]Write to MH i2c: E2 02 01 C5 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 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 77 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A F0 02 00 35 04 06 00 7A 00 00 66 [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 C5 4D 00 90 00 86 [14:40:51]RAPDU: 90 00 [14:40:51]wFMCommunicate OK [14:40:51]wFMCommunicate request_size=10 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 0D 02 02 05 86 00 8E BA 32 [14:40:51]Write to MH i2c: E2 0D 00 C6 4D 80 0D 02 02 05 00 86 00 8E BA 32 00 00 97 [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 03 00 C6 4D 00 90 00 87 [14:40:51]RAPDU: 90 00 [14:40:51]wFMCommunicate OK [14:40:51]wFMCommunicate request_size=4 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 0D 03 02 [14:40:51]Write to MH i2c: E2 08 00 C7 4D 80 0D 03 02 00 00 00 00 8F [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 0B 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 0B 00 C7 4D 00 4C 7E BD B0 62 23 E9 5A 90 00 8F [14:40:51]RAPDU: 4C 7E BD B0 62 23 E9 5A 90 00 [14:40:51]wFMCommunicate OK [14:40:51]SAM_PROTO_SignData done [14:40:51]FM_MakeSignedData done [14:40:51]CreateOFDProtocolMessage [14:40:51]wFMCommunicate request_size=4 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 11 00 00 [14:40:51]Write to MH i2c: E2 08 00 C8 4D 80 11 00 00 00 00 00 00 8F [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:51]Read from MH i2c: E2 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 17 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: E2 17 00 C8 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E2 [14:40:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:40:51]wFMCommunicate OK [14:40:51]CreateOFDProtocolMessage done [14:40:51]OFDSenderStorePacket 192618 [14:40:51]StoreOFDPacket docnum=192618 [14:40:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 31 2E 07 01 20 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 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 77 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A F0 02 00 35 04 06 00 7A 86 00 8E BA 32 4C 7E BD B0 62 23 E9 5A [14:40:51]CheckFolder [14:40:51]dirname=/storage/ofd_packets [14:40:51]CheckFolder done [14:40:51]ProducePacketName [14:40:51]name=ofd_packets/00192618 [14:40:51]NVStorageSaveData ofd_packets/00192618 [14:40:51]File name is /storage/ofd_packets/00192618 [14:40:51]Write 301 bytes [14:40:51]NVStorageSaveData done [14:40:51]OFDSenderStorePacket done [14:40:51]KKMCreateOFDPacket done [14:40:51]NVStorageSaveData kkm_last_timestamp [14:40:51]File name is /storage/kkm_last_timestamp [14:40:51]Write 4 bytes [14:40:51]NVStorageSaveData done [14:40:51]ExternCall_PrintAddStr [14:40:51]wPrintStart [14:40:51]Write to MH i2c: 01 00 00 C9 4D 16 [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: 01 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: 01 07 00 [14:40:51]MH_I2C_Read... [14:40:51]Read from MH i2c: 01 07 00 C9 4D 00 00 00 00 00 FF 0F 2B [14:40:51]RasterBufferAndPrint [14:40:51]line Счет N : (1)31941 [14:40:51]line ИНН: 02508201610067 [14:40:51]line Контрольно-Кассовый Чек [14:40:51]line ПРОДАЖА [14:40:51]line ТРК (МРК, ГНК) : 21 [14:40:51]line Товар: 2710124130 [14:40:51]line Аи-92-К-5 [14:40:51]line 0.010 * 66.90 [14:40:51]line = 0.67 [14:40:51]line НДС 12% НСП 1% [14:40:51]line > о реализуемом товаре [14:40:51]line ОКРУГЛЕНИЕ: -0.67 [14:40:51]line ИТОГО: 0.00 [14:40:51]line Внесено: 700.00 [14:40:51]line СДАЧА: 700.00 [14:40:51]line НСП 1% : 0.01 [14:40:51]line НДС 12% : 0.07 [14:40:51]line Наличными: 0.00 [14:40:51]line Безнал.: 0.00 [14:40:51]line Место: АЗС № 170 "Партнер Нефть" [14:40:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:40:51]line СНО: Общий режим [14:40:51]line Чек 166 28.10.2024 14:40 [14:40:51]line Смена: 543 ФФД: 1.0 [14:40:51]line ЗНМ: 0300000110 [14:40:51]line РНМ: 0000000000091776 [14:40:51]line Версия ККМ: 001 [14:40:51]line ФМ: 0000000000871754 [14:40:51]line ФД: 192618 [14:40:51]line ФПД: 134715953560114 [14:40:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144055&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192618&fm=134715953560114&tin=02508201610067®Number=0000000000091776&sum=0 [14:40:51]OFD Sender: Processing packet 192618 [packets to send 75, broken 74] [14:40:51]ProducePacketName [14:40:51]name=ofd_packets/00192618 [14:40:51]OFD Sender: To server: pG, [14:40:51]CommunicateWithHost lk.salyk.kg:30040 [14:40:51]ConnectInit lk.salyk.kg [14:40:51]written 0, free lines is 4095 [14:40:51]Connected sock=10 [14:40:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 31 2E 07 01 20 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 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 77 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A F0 02 00 35 04 06 00 7A 86 00 8E BA 32 4C 7E BD B0 62 23 E9 5A [14:40:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 11 73 47 00 FA F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A F0 02 00 F4 03 04 00 3B 47 1F 67 B6 04 01 00 00 39 16 02 D0 FF 03 B8 DE [14:40:52]CommunicateWithHost err = 0 [14:40:52]CheckOFDResponse [14:40:52]1017 (14) - 77093643461234 [14:40:52]1041 (16) - 0000000000871754 [14:40:52]1040 (4) - 192618 [14:40:52]1012 (4) - 28.10.2024 08:11 [14:40:52]1206 (1) - 0 [14:40:52]OFD Sender: Remove packet 192618 [14:40:52]ProducePacketName [14:40:52]name=ofd_packets/00192618 [14:40:52]NVStorageDeleteData [14:40:52]Write to MH i2c: 01 00 00 F4 4D 41 [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: 01 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: 01 07 00 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: 01 07 00 F4 4D 00 00 00 00 00 B0 0C 04 [14:40:52]RasterBufferAndPrint [14:40:52]line [14:40:52]line [14:40:52]line [14:40:52]line [14:40:52]line [14:40:52]written 0, free lines is 3254 [14:40:52]MH_Cut [14:40:52]Write to MH i2c: D1 01 00 FB 4D 01 1A [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: D1 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: D1 01 00 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: D1 01 00 FB 4D 00 19 [14:40:52]Write to MH i2c: 01 00 00 FC 4D 49 [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]OFD Sender: No OFD packet to send [14:40:53]*** Cut start [14:40:53]*** Partial cut [14:40:53]*** CUTSNS_PIN = 1 [14:40:53]*** CUTSNS_PIN = 0 [14:40:53]*** Brake cut motor [14:40:53]Read from MH i2c: 01 [14:40:53]MH_I2C_Read... [14:40:53]*** Stop cut motor [14:40:53]*** Cut end [14:40:53]Read from MH i2c: 01 07 00 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: 01 07 00 FC 4D 00 00 00 00 00 FF 0F 5E [14:40:53]process_action close_receipt done [14:40:53]requested_data is exist [14:40:53]produce_requested_data [14:40:53]requested_item fm.sn is exist - process it [14:40:53]wFMCommunicate request_size=4 [14:40:53]MH_SAM_APDU [14:40:53]CAPDU: 80 11 00 00 [14:40:53]Write to MH i2c: E2 08 00 FD 4D 80 11 00 00 00 00 00 00 C4 [14:40:53]Write i2c OK [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: E2 [14:40:53]MH_I2C_Read... [14:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:53]Read from MH i2c: E2 17 00 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: E2 17 00 FD 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 17 [14:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:40:53]wFMCommunicate OK [14:40:53]requested_item fd.num is exist - process it [14:40:53]SAM_PROTO_GetFieldsCounters [14:40:53]wFMCommunicate request_size=4 [14:40:53]MH_SAM_APDU [14:40:53]CAPDU: 80 13 00 00 [14:40:53]Write to MH i2c: E2 08 00 FE 4D 80 13 00 00 00 00 00 00 C7 [14:40:53]Write i2c OK [14:40:53]MH_I2C_Read... [14:40:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:53]Read from MH i2c: E2 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: E2 62 00 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: E2 62 00 FE 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [14:40:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:53]wFMCommunicate OK [14:40:53]SAM_PROTO_GetFieldsCounters done [14:40:53]requested_item shift.num is exist - process it [14:40:53]requested_item shift.opened is exist - process it [14:40:53]req_shift_opened [14:40:53]FM_GetShiftState [14:40:53]SAM_PROTO_GetShiftState [14:40:53]wFMCommunicate request_size=4 [14:40:53]MH_SAM_APDU [14:40:53]CAPDU: 80 13 01 00 [14:40:53]Write to MH i2c: E2 08 00 FF 4D 80 13 01 00 00 00 00 00 C9 [14:40:53]Write i2c OK [14:40:53]MH_I2C_Read... [14:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:53]Read from MH i2c: E2 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: E2 0E 00 [14:40:53]MH_I2C_Read... [14:40:53]Read from MH i2c: E2 0E 00 FF 4D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 19 [14:40:53]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:40:53]wFMCommunicate OK [14:40:53]SAM_PROTO_GetShiftState done [14:40:53]FM_GetShiftState done [14:40:53]req_shift_opened done [14:40:53]requested_item shift.open_date is exist - process it [14:40:53]req_shift_open_date [14:40:53]req_shift_open_date done [14:40:53]produce_requested_data done [14:40:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192618,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:40:53]process_action_free close_receipt [14:40:53]json_value_free [14:40:53]json_value_free done [14:40:53]process_json_proto returns [14:40:53]Send response to host [14:40:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192618,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:40:53]free response buf [14:40:53]execute_script done [14:40:53]execute_script returns [14:40:53]free content buf [14:40:53]Sock 9.Close socket [14:40:53]Sock 9.Thread stoped [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:33]accept exits with 7 [14:41:33]New connection [14:41:33]New thread 3066707300 created [14:41:33]Thread 3066563940 joined [14:41:33]Waiting for new connection... [14:41:33] Sock 7.Parse request [14:41:33]Sock 7.Check first char [14:41:33]Sock 7.First char is OK [14:41:33]request: POST /json_proto HTTP/1.0 [14:41:33]Method: POST [14:41:33]URL: /json_proto [14:41:33]Method is POST - this is cgi request [14:41:33]url: /json_proto [14:41:33]query_string will be loaded in cgi processing [14:41:33]execute_cgi json_proto POST (null) [14:41:33]execute_cgi path=json_proto method=POST [14:41:33]POST find Content-Length [14:41:33]Host: 172.17.63.131:8080 [14:41:33]Content-Length: 677 [14:41:33]Content-Type: application/json [14:41:33] [14:41:33]POST finish read [14:41:33]Found Content-Length = 677 [14:41:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:33]execute_script... [14:41:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:33]POST & json_proto [14:41:33]process_json_proto [14:41:33]json parsed OK: [14:41:33]protocol is kg_v1.0 [14:41:33]action value=close_receipt [14:41:33]process_action close_receipt [14:41:33]cmd_close_receipt [14:41:33]MH_GetDate [14:41:33]Write to MH i2c: F0 00 00 00 4E 3D [14:41:33]Write i2c OK [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: F0 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: F0 09 00 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: F0 09 00 00 4E 00 A2 A2 1F 67 22 05 6E 64 09 [14:41:33]GetLastDocTimeStamp 1730126455 [14:41:33]current date 1730126498 [14:41:33]FM_GetShiftState [14:41:33]SAM_PROTO_GetShiftState [14:41:33]wFMCommunicate request_size=4 [14:41:33]MH_SAM_APDU [14:41:33]CAPDU: 80 13 01 00 [14:41:33]Write to MH i2c: E2 08 00 01 4E 80 13 01 00 00 00 00 00 CC [14:41:33]Write i2c OK [14:41:33]MH_I2C_Read... [14:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:33]Read from MH i2c: E2 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 0E 00 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 0E 00 01 4E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1C [14:41:33]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:41:33]wFMCommunicate OK [14:41:33]SAM_PROTO_GetShiftState done [14:41:33]FM_GetShiftState done [14:41:33]opened in 1730075620 [14:41:33]opened+sec_in_day 1730162020 [14:41:33]quantity*price = 70044 [14:41:33]sum+1 = 70045 [14:41:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 167 28.10.2024 14:41 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192619 ФПД: 88229032232063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144138&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192619&fm=88229032232063&tin=02508201610067®Number=0000000000091776&sum=70000 [14:41:34]StoreToDocumentArchive [14:41:34]shift 543 fd 192619 [14:41:34]save to /storage/0543/doc_00192619 [14:41:34]save last doc name /storage/0543/doc_00192619 to /storage/kkm_last_doc_name [14:41:34]save OK [14:41:34]Clear old archive folders... [14:41:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:34]tlvbuf is 0197D820 [14:41:34]SAM_PROTO_ClearQueue [14:41:34]wFMCommunicate request_size=4 [14:41:34]MH_SAM_APDU [14:41:34]CAPDU: 80 09 00 00 [14:41:34]Write to MH i2c: E2 08 00 0E 4E 80 09 00 00 00 00 00 00 CE [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:34]Read from MH i2c: E2 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 03 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 03 00 0E 4E 00 90 00 D0 [14:41:34]RAPDU: 90 00 [14:41:34]wFMCommunicate OK [14:41:34]SAM_PROTO_ClearQueue done [14:41:34]KKMCreateOFDPacket [14:41:34]OFDProtocolAddRootSTLVToBuf [14:41:34]FM_MakeSignedData [14:41:34]FM_MakeSignedData [14:41:34]SAM_PROTO_SignData [14:41:34]wFMCommunicate request_size=4 [14:41:34]MH_SAM_APDU [14:41:34]CAPDU: 80 0D 01 02 [14:41:34]Write to MH i2c: E2 08 00 0F 4E 80 0D 01 02 00 00 00 00 D6 [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:34]Read from MH i2c: E2 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 03 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 03 00 0F 4E 00 90 00 D1 [14:41:34]RAPDU: 90 00 [14:41:34]wFMCommunicate OK [14:41:34]wFMCommunicate request_size=255 [14:41:34]MH_SAM_APDU [14:41:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A2 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B F0 02 00 35 04 06 00 50 [14:41:34]Write to MH i2c: E2 02 01 10 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A2 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B F0 02 00 35 04 06 00 50 00 00 B9 [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:34]Read from MH i2c: E2 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 03 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 03 00 10 4E 00 90 00 D2 [14:41:34]RAPDU: 90 00 [14:41:34]wFMCommunicate OK [14:41:34]wFMCommunicate request_size=10 [14:41:34]MH_SAM_APDU [14:41:34]CAPDU: 80 0D 02 02 05 3E 6C 20 04 7F [14:41:34]Write to MH i2c: E2 0D 00 11 4E 80 0D 02 02 05 00 3E 6C 20 04 7F 00 00 30 [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:34]Read from MH i2c: E2 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 03 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 03 00 11 4E 00 90 00 D3 [14:41:34]RAPDU: 90 00 [14:41:34]wFMCommunicate OK [14:41:34]wFMCommunicate request_size=4 [14:41:34]MH_SAM_APDU [14:41:34]CAPDU: 80 0D 03 02 [14:41:34]Write to MH i2c: E2 08 00 12 4E 80 0D 03 02 00 00 00 00 DB [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:34]Read from MH i2c: E2 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 0B 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 0B 00 12 4E 00 FD 35 A2 A1 D2 C2 A1 BD 90 00 43 [14:41:34]RAPDU: FD 35 A2 A1 D2 C2 A1 BD 90 00 [14:41:34]wFMCommunicate OK [14:41:34]SAM_PROTO_SignData done [14:41:34]FM_MakeSignedData done [14:41:34]CreateOFDProtocolMessage [14:41:34]wFMCommunicate request_size=4 [14:41:34]MH_SAM_APDU [14:41:34]CAPDU: 80 11 00 00 [14:41:34]Write to MH i2c: E2 08 00 13 4E 80 11 00 00 00 00 00 00 DB [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:34]Read from MH i2c: E2 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 17 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: E2 17 00 13 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2E [14:41:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:41:34]wFMCommunicate OK [14:41:34]CreateOFDProtocolMessage done [14:41:34]OFDSenderStorePacket 192619 [14:41:34]StoreOFDPacket docnum=192619 [14:41:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BA 72 07 01 7A 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A2 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B F0 02 00 35 04 06 00 50 3E 6C 20 04 7F FD 35 A2 A1 D2 C2 A1 BD [14:41:34]CheckFolder [14:41:34]dirname=/storage/ofd_packets [14:41:34]CheckFolder done [14:41:34]ProducePacketName [14:41:34]name=ofd_packets/00192619 [14:41:34]NVStorageSaveData ofd_packets/00192619 [14:41:34]File name is /storage/ofd_packets/00192619 [14:41:34]Write 301 bytes [14:41:34]NVStorageSaveData done [14:41:34]OFDSenderStorePacket done [14:41:34]KKMCreateOFDPacket done [14:41:34]NVStorageSaveData kkm_last_timestamp [14:41:34]File name is /storage/kkm_last_timestamp [14:41:34]Write 4 bytes [14:41:34]NVStorageSaveData done [14:41:34]ExternCall_PrintAddStr [14:41:34]wPrintStart [14:41:34]Write to MH i2c: 01 00 00 14 4E 62 [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: 01 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: 01 07 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: 01 07 00 14 4E 00 00 00 00 00 FF 0F 77 [14:41:34]RasterBufferAndPrint [14:41:34]line Счет N : (1)31943 [14:41:34]line ИНН: 02508201610067 [14:41:34]line Контрольно-Кассовый Чек [14:41:34]line ПРОДАЖА [14:41:34]line ТРК (МРК, ГНК) : 21 [14:41:34]line Товар: 2710124130 [14:41:34]line Аи-92-К-5 [14:41:34]line 10.470 * 66.90 [14:41:34]line = 700.44 [14:41:34]line НДС 12% НСП 1% [14:41:34]line > о реализуемом товаре [14:41:34]line ОКРУГЛЕНИЕ: -0.44 [14:41:34]line ИТОГО: 700.00 [14:41:34]line Внесено: 700.00 [14:41:34]line СДАЧА: 0.00 [14:41:34]line НСП 1% : 6.20 [14:41:34]line НДС 12% : 74.38 [14:41:34]line Наличными: 700.00 [14:41:34]line Безнал.: 0.00 [14:41:34]line Место: АЗС № 170 "Партнер Нефть" [14:41:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:41:34]line СНО: Общий режим [14:41:34]line Чек 167 28.10.2024 14:41 [14:41:34]line Смена: 543 ФФД: 1.0 [14:41:34]line ЗНМ: 0300000110 [14:41:34]line РНМ: 0000000000091776 [14:41:34]line Версия ККМ: 001 [14:41:34]line ФМ: 0000000000871754 [14:41:34]line ФД: 192619 [14:41:34]line ФПД: 88229032232063 [14:41:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144138&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192619&fm=88229032232063&tin=02508201610067®Number=0000000000091776&sum=70000 [14:41:35]OFD Sender: Processing packet 192619 [packets to send 75, broken 74] [14:41:35]ProducePacketName [14:41:35]name=ofd_packets/00192619 [14:41:35]OFD Sender: To server: pG, [14:41:35]CommunicateWithHost lk.salyk.kg:30040 [14:41:35]ConnectInit lk.salyk.kg [14:41:35]written 0, free lines is 4095 [14:41:35]Connected sock=11 [14:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BA 72 07 01 7A 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 A2 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B F0 02 00 35 04 06 00 50 3E 6C 20 04 7F FD 35 A2 A1 D2 C2 A1 BD [14:41:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 76 7E 47 00 24 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B F0 02 00 F4 03 04 00 66 47 1F 67 B6 04 01 00 00 6B F1 5F F3 0E EF EF 9A [14:41:35]CommunicateWithHost err = 0 [14:41:35]CheckOFDResponse [14:41:35]1017 (14) - 77093643461234 [14:41:35]1041 (16) - 0000000000871754 [14:41:35]1040 (4) - 192619 [14:41:35]1012 (4) - 28.10.2024 08:12 [14:41:35]1206 (1) - 0 [14:41:35]OFD Sender: Remove packet 192619 [14:41:35]ProducePacketName [14:41:35]name=ofd_packets/00192619 [14:41:35]NVStorageDeleteData [14:41:35]Write to MH i2c: 01 00 00 3F 4E 8D [14:41:35]Write i2c OK [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: 01 [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: 01 07 00 [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: 01 07 00 3F 4E 00 00 00 00 00 B7 0C 57 [14:41:35]RasterBufferAndPrint [14:41:35]line [14:41:35]line [14:41:35]line [14:41:35]line [14:41:35]line [14:41:35]written 0, free lines is 3262 [14:41:35]MH_Cut [14:41:35]Write to MH i2c: D1 01 00 46 4E 01 66 [14:41:35]Write i2c OK [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: D1 [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: D1 01 00 [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: D1 01 00 46 4E 00 65 [14:41:35]Write to MH i2c: 01 00 00 47 4E 95 [14:41:35]Write i2c OK [14:41:35]MH_I2C_Read... [14:41:35]OFD Sender: No OFD packet to send [14:41:36]*** Cut start [14:41:36]*** Partial cut [14:41:36]*** CUTSNS_PIN = 1 [14:41:36]*** CUTSNS_PIN = 0 [14:41:36]*** Brake cut motor [14:41:36]Read from MH i2c: 01 [14:41:36]*** Stop cut motor [14:41:36]*** Cut end [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: 01 07 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: 01 07 00 47 4E 00 00 00 00 00 FF 0F AA [14:41:36]process_action close_receipt done [14:41:36]requested_data is exist [14:41:36]produce_requested_data [14:41:36]requested_item fm.sn is exist - process it [14:41:36]wFMCommunicate request_size=4 [14:41:36]MH_SAM_APDU [14:41:36]CAPDU: 80 11 00 00 [14:41:36]Write to MH i2c: E2 08 00 48 4E 80 11 00 00 00 00 00 00 10 [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:37]Read from MH i2c: E2 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 17 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 17 00 48 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 63 [14:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:41:37]wFMCommunicate OK [14:41:37]requested_item fd.num is exist - process it [14:41:37]SAM_PROTO_GetFieldsCounters [14:41:37]wFMCommunicate request_size=4 [14:41:37]MH_SAM_APDU [14:41:37]CAPDU: 80 13 00 00 [14:41:37]Write to MH i2c: E2 08 00 49 4E 80 13 00 00 00 00 00 00 13 [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:37]Read from MH i2c: E2 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 62 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 62 00 49 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [14:41:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:37]wFMCommunicate OK [14:41:37]SAM_PROTO_GetFieldsCounters done [14:41:37]requested_item shift.num is exist - process it [14:41:37]requested_item shift.opened is exist - process it [14:41:37]req_shift_opened [14:41:37]FM_GetShiftState [14:41:37]SAM_PROTO_GetShiftState [14:41:37]wFMCommunicate request_size=4 [14:41:37]MH_SAM_APDU [14:41:37]CAPDU: 80 13 01 00 [14:41:37]Write to MH i2c: E2 08 00 4A 4E 80 13 01 00 00 00 00 00 15 [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:37]Read from MH i2c: E2 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 0E 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 0E 00 4A 4E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 65 [14:41:37]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:41:37]wFMCommunicate OK [14:41:37]SAM_PROTO_GetShiftState done [14:41:37]FM_GetShiftState done [14:41:37]req_shift_opened done [14:41:37]requested_item shift.open_date is exist - process it [14:41:37]req_shift_open_date [14:41:37]req_shift_open_date done [14:41:37]produce_requested_data done [14:41:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192619,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:41:37]process_action_free close_receipt [14:41:37]json_value_free [14:41:37]json_value_free done [14:41:37]process_json_proto returns [14:41:37]Send response to host [14:41:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192619,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:41:37]free response buf [14:41:37]execute_script done [14:41:37]execute_script returns [14:41:37]free content buf [14:41:37]Sock 7.Close socket [14:41:37]Sock 7.Thread stoped [14:41:38]accept exits with 9 [14:41:38]New connection [14:41:38]New thread 3066563940 created [14:41:38]Thread 3066707300 joined [14:41:38]Waiting for new connection... [14:41:38] Sock 9.Parse request [14:41:38]Sock 9.Check first char [14:41:38]Sock 9.First char is OK [14:41:38]request: POST /json_proto HTTP/1.0 [14:41:38]Method: POST [14:41:38]URL: /json_proto [14:41:38]Method is POST - this is cgi request [14:41:38]url: /json_proto [14:41:38]query_string will be loaded in cgi processing [14:41:38]execute_cgi json_proto POST (null) [14:41:38]execute_cgi path=json_proto method=POST [14:41:38]POST find Content-Length [14:41:38]Host: 172.17.63.131:8080 [14:41:38]Content-Length: 681 [14:41:38]Content-Type: application/json [14:41:38] [14:41:38]POST finish read [14:41:38]Found Content-Length = 681 [14:41:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:38]execute_script... [14:41:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:38]POST & json_proto [14:41:38]process_json_proto [14:41:38]json parsed OK: [14:41:38]protocol is kg_v1.0 [14:41:38]action value=close_receipt [14:41:38]process_action close_receipt [14:41:38]cmd_close_receipt [14:41:38]MH_GetDate [14:41:38]Write to MH i2c: F0 00 00 4B 4E 88 [14:41:38]Write i2c OK [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: F0 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: F0 09 00 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: F0 09 00 4B 4E 00 A7 A2 1F 67 22 05 6E 64 59 [14:41:38]GetLastDocTimeStamp 1730126498 [14:41:38]current date 1730126503 [14:41:38]FM_GetShiftState [14:41:38]SAM_PROTO_GetShiftState [14:41:38]wFMCommunicate request_size=4 [14:41:38]MH_SAM_APDU [14:41:38]CAPDU: 80 13 01 00 [14:41:38]Write to MH i2c: E2 08 00 4C 4E 80 13 01 00 00 00 00 00 17 [14:41:38]Write i2c OK [14:41:38]MH_I2C_Read... [14:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:38]Read from MH i2c: E2 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: E2 0E 00 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: E2 0E 00 4C 4E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 67 [14:41:38]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:41:38]wFMCommunicate OK [14:41:38]SAM_PROTO_GetShiftState done [14:41:38]FM_GetShiftState done [14:41:38]opened in 1730075620 [14:41:38]opened+sec_in_day 1730162020 [14:41:38]quantity*price = 100015 [14:41:38]sum+1 = 100017 [14:41:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 168 28.10.2024 14:41 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192620 ФПД: 117940614301964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144143&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192620&fm=117940614301964&tin=02508201610067®Number=0000000000091776&sum=100000 [14:41:39]StoreToDocumentArchive [14:41:39]shift 543 fd 192620 [14:41:39]save to /storage/0543/doc_00192620 [14:41:39]save last doc name /storage/0543/doc_00192620 to /storage/kkm_last_doc_name [14:41:39]save OK [14:41:39]Clear old archive folders... [14:41:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:39]tlvbuf is 01AA1B60 [14:41:39]SAM_PROTO_ClearQueue [14:41:39]wFMCommunicate request_size=4 [14:41:39]MH_SAM_APDU [14:41:39]CAPDU: 80 09 00 00 [14:41:39]Write to MH i2c: E2 08 00 59 4E 80 09 00 00 00 00 00 00 19 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:39]Read from MH i2c: E2 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 03 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 03 00 59 4E 00 90 00 1B [14:41:39]RAPDU: 90 00 [14:41:39]wFMCommunicate OK [14:41:39]SAM_PROTO_ClearQueue done [14:41:39]KKMCreateOFDPacket [14:41:39]OFDProtocolAddRootSTLVToBuf [14:41:39]FM_MakeSignedData [14:41:39]FM_MakeSignedData [14:41:39]SAM_PROTO_SignData [14:41:39]wFMCommunicate request_size=4 [14:41:39]MH_SAM_APDU [14:41:39]CAPDU: 80 0D 01 02 [14:41:39]Write to MH i2c: E2 08 00 5A 4E 80 0D 01 02 00 00 00 00 21 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:39]Read from MH i2c: E2 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 03 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: E2 03 00 5A 4E 00 90 00 1C [14:41:39]RAPDU: 90 00 [14:41:39]wFMCommunicate OK [14:41:39]wFMCommunicate request_size=255 [14:41:39]MH_SAM_APDU [14:41:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 A7 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C F0 02 00 35 04 06 00 6B [14:41:39]Write to MH i2c: E2 02 01 5B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 A7 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C F0 02 00 35 04 06 00 6B 00 00 10 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:40]Read from MH i2c: E2 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: E2 03 00 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: E2 03 00 5B 4E 00 90 00 1D [14:41:40]RAPDU: 90 00 [14:41:40]wFMCommunicate OK [14:41:40]wFMCommunicate request_size=10 [14:41:40]MH_SAM_APDU [14:41:40]CAPDU: 80 0D 02 02 05 44 30 6B 89 0C [14:41:40]Write to MH i2c: E2 0D 00 5C 4E 80 0D 02 02 05 00 44 30 6B 89 0C 00 00 A2 [14:41:40]Write i2c OK [14:41:40]MH_I2C_Read... [14:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:40]Read from MH i2c: E2 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: E2 03 00 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: E2 03 00 5C 4E 00 90 00 1E [14:41:40]RAPDU: 90 00 [14:41:40]wFMCommunicate OK [14:41:40]wFMCommunicate request_size=4 [14:41:40]MH_SAM_APDU [14:41:40]CAPDU: 80 0D 03 02 [14:41:40]Write to MH i2c: E2 08 00 5D 4E 80 0D 03 02 00 00 00 00 26 [14:41:40]Write i2c OK [14:41:40]MH_I2C_Read... [14:41:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:40]Read from MH i2c: E2 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: E2 0B 00 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: E2 0B 00 5D 4E 00 87 4D FC 14 1D 43 55 6C 90 00 2C [14:41:40]RAPDU: 87 4D FC 14 1D 43 55 6C 90 00 [14:41:40]wFMCommunicate OK [14:41:40]SAM_PROTO_SignData done [14:41:40]FM_MakeSignedData done [14:41:40]CreateOFDProtocolMessage [14:41:40]wFMCommunicate request_size=4 [14:41:40]MH_SAM_APDU [14:41:40]CAPDU: 80 11 00 00 [14:41:40]Write to MH i2c: E2 08 00 5E 4E 80 11 00 00 00 00 00 00 26 [14:41:40]Write i2c OK [14:41:40]MH_I2C_Read... [14:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:40]Read from MH i2c: E2 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: E2 17 00 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: E2 17 00 5E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 79 [14:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:41:40]wFMCommunicate OK [14:41:40]CreateOFDProtocolMessage done [14:41:40]OFDSenderStorePacket 192620 [14:41:40]StoreOFDPacket docnum=192620 [14:41:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A4 44 07 01 3E 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 A7 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C F0 02 00 35 04 06 00 6B 44 30 6B 89 0C 87 4D FC 14 1D 43 55 6C [14:41:40]CheckFolder [14:41:40]dirname=/storage/ofd_packets [14:41:40]CheckFolder done [14:41:40]ProducePacketName [14:41:40]name=ofd_packets/00192620 [14:41:40]NVStorageSaveData ofd_packets/00192620 [14:41:40]File name is /storage/ofd_packets/00192620 [14:41:40]Write 301 bytes [14:41:40]NVStorageSaveData done [14:41:40]OFDSenderStorePacket done [14:41:40]KKMCreateOFDPacket done [14:41:40]NVStorageSaveData kkm_last_timestamp [14:41:40]File name is /storage/kkm_last_timestamp [14:41:40]Write 4 bytes [14:41:40]NVStorageSaveData done [14:41:40]ExternCall_PrintAddStr [14:41:40]wPrintStart [14:41:40]Write to MH i2c: 01 00 00 5F 4E AD [14:41:40]Write i2c OK [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: 01 [14:41:40]MH_I2C_Read... [14:41:40]OFD Sender: Processing packet 192620 [packets to send 75, broken 74] [14:41:40]ProducePacketName [14:41:40]name=ofd_packets/00192620 [14:41:40]OFD Sender: To server: pG, [14:41:40]CommunicateWithHost lk.salyk.kg:30040 [14:41:40]ConnectInit lk.salyk.kg [14:41:40]Read from MH i2c: 01 07 00 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: 01 07 00 5F 4E 00 00 00 00 00 FF 0F C2 [14:41:40]RasterBufferAndPrint [14:41:40]line Счет N : (1)31942 [14:41:40]line ИНН: 02508201610067 [14:41:40]line Контрольно-Кассовый Чек [14:41:40]line ПРОДАЖА [14:41:40]line ТРК (МРК, ГНК) : 12 [14:41:40]line Товар: 2710124130 [14:41:40]line Аи-92-К-5 [14:41:40]line 14.950 * 66.90 [14:41:40]line = 1000.16 [14:41:40]line НДС 12% НСП 1% [14:41:40]line > о реализуемом товаре [14:41:40]line ОКРУГЛЕНИЕ: -0.16 [14:41:40]line ИТОГО: 1000.00 [14:41:40]line Внесено: 1000.00 [14:41:40]line СДАЧА: 0.00 [14:41:40]line НСП 1% : 8.85 [14:41:40]line НДС 12% : 106.21 [14:41:40]line Наличными: 1000.00 [14:41:40]line Безнал.: 0.00 [14:41:40]line Место: АЗС № 170 "Партнер Нефть" [14:41:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:41:40]line СНО: Общий режим [14:41:40]line Чек 168 28.10.2024 14:41 [14:41:40]line Смена: 543 ФФД: 1.0 [14:41:40]line ЗНМ: 0300000110 [14:41:40]line РНМ: 0000000000091776 [14:41:40]line Версия ККМ: 001 [14:41:40]line ФМ: 0000000000871754 [14:41:40]line ФД: 192620 [14:41:40]line ФПД: 117940614301964 [14:41:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144143&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192620&fm=117940614301964&tin=02508201610067®Number=0000000000091776&sum=100000 [14:41:40]written 0, free lines is 4095 [14:41:40]Connected sock=11 [14:41:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A4 44 07 01 3E 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 A7 A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C F0 02 00 35 04 06 00 6B 44 30 6B 89 0C 87 4D FC 14 1D 43 55 6C [14:41:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 25 12 47 00 C5 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C F0 02 00 F4 03 04 00 6B 47 1F 67 B6 04 01 00 00 A6 72 4D B5 06 94 26 51 [14:41:40]CommunicateWithHost err = 0 [14:41:40]CheckOFDResponse [14:41:40]1017 (14) - 77093643461234 [14:41:40]1041 (16) - 0000000000871754 [14:41:40]1040 (4) - 192620 [14:41:40]1012 (4) - 28.10.2024 08:12 [14:41:40]1206 (1) - 0 [14:41:40]OFD Sender: Remove packet 192620 [14:41:40]ProducePacketName [14:41:40]name=ofd_packets/00192620 [14:41:40]NVStorageDeleteData [14:41:40]Write to MH i2c: 01 00 00 8A 4E D8 [14:41:40]Write i2c OK [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: 01 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: 01 07 00 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: 01 07 00 8A 4E 00 00 00 00 00 C4 0C AF [14:41:40]RasterBufferAndPrint [14:41:40]line [14:41:40]line [14:41:40]line [14:41:40]line [14:41:40]line [14:41:40]written 0, free lines is 3277 [14:41:40]MH_Cut [14:41:40]Write to MH i2c: D1 01 00 91 4E 01 B1 [14:41:40]Write i2c OK [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: D1 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: D1 01 00 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: D1 01 00 91 4E 00 B0 [14:41:40]Write to MH i2c: 01 00 00 92 4E E0 [14:41:40]Write i2c OK [14:41:40]MH_I2C_Read... [14:41:41]OFD Sender: No OFD packet to send [14:41:41]*** Cut start [14:41:41]*** Partial cut [14:41:41]*** CUTSNS_PIN = 1 [14:41:41]*** CUTSNS_PIN = 0 [14:41:41]*** Brake cut motor [14:41:42]Read from MH i2c: 01 [14:41:42]MH_I2C_Read... [14:41:42]*** Stop cut motor [14:41:42]*** Cut end [14:41:42]Read from MH i2c: 01 07 00 [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: 01 07 00 92 4E 00 00 00 00 00 FF 0F F5 [14:41:42]process_action close_receipt done [14:41:42]requested_data is exist [14:41:42]produce_requested_data [14:41:42]requested_item fm.sn is exist - process it [14:41:42]wFMCommunicate request_size=4 [14:41:42]MH_SAM_APDU [14:41:42]CAPDU: 80 11 00 00 [14:41:42]Write to MH i2c: E2 08 00 93 4E 80 11 00 00 00 00 00 00 5B [14:41:42]Write i2c OK [14:41:42]MH_I2C_Read... [14:41:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:42]Read from MH i2c: E2 [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: E2 17 00 [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: E2 17 00 93 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AE [14:41:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:41:42]wFMCommunicate OK [14:41:42]requested_item fd.num is exist - process it [14:41:42]SAM_PROTO_GetFieldsCounters [14:41:42]wFMCommunicate request_size=4 [14:41:42]MH_SAM_APDU [14:41:42]CAPDU: 80 13 00 00 [14:41:42]Write to MH i2c: E2 08 00 94 4E 80 13 00 00 00 00 00 00 5E [14:41:42]Write i2c OK [14:41:42]MH_I2C_Read... [14:41:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:42]Read from MH i2c: E2 [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: E2 62 00 [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: E2 62 00 94 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [14:41:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:42]wFMCommunicate OK [14:41:42]SAM_PROTO_GetFieldsCounters done [14:41:42]requested_item shift.num is exist - process it [14:41:42]requested_item shift.opened is exist - process it [14:41:42]req_shift_opened [14:41:42]FM_GetShiftState [14:41:42]SAM_PROTO_GetShiftState [14:41:42]wFMCommunicate request_size=4 [14:41:42]MH_SAM_APDU [14:41:42]CAPDU: 80 13 01 00 [14:41:42]Write to MH i2c: E2 08 00 95 4E 80 13 01 00 00 00 00 00 60 [14:41:42]Write i2c OK [14:41:42]MH_I2C_Read... [14:41:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:42]Read from MH i2c: E2 [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: E2 0E 00 [14:41:42]MH_I2C_Read... [14:41:42]Read from MH i2c: E2 0E 00 95 4E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B0 [14:41:42]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:41:42]wFMCommunicate OK [14:41:42]SAM_PROTO_GetShiftState done [14:41:42]FM_GetShiftState done [14:41:42]req_shift_opened done [14:41:42]requested_item shift.open_date is exist - process it [14:41:42]req_shift_open_date [14:41:42]req_shift_open_date done [14:41:42]produce_requested_data done [14:41:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192620,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:41:42]process_action_free close_receipt [14:41:42]json_value_free [14:41:42]json_value_free done [14:41:42]process_json_proto returns [14:41:42]Send response to host [14:41:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192620,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:41:42]free response buf [14:41:42]execute_script done [14:41:42]execute_script returns [14:41:42]free content buf [14:41:42]Sock 9.Close socket [14:41:42]Sock 9.Thread stoped [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:02]accept exits with 7 [14:43:02]New connection [14:43:02]New thread 3066707300 created [14:43:02]Thread 3066563940 joined [14:43:02]Waiting for new connection... [14:43:02] Sock 7.Parse request [14:43:02]Sock 7.Check first char [14:43:02]Sock 7.First char is OK [14:43:02]request: POST /json_proto HTTP/1.0 [14:43:02]Method: POST [14:43:02]URL: /json_proto [14:43:02]Method is POST - this is cgi request [14:43:02]url: /json_proto [14:43:02]query_string will be loaded in cgi processing [14:43:02]execute_cgi json_proto POST (null) [14:43:02]execute_cgi path=json_proto method=POST [14:43:02]POST find Content-Length [14:43:02]Host: 172.17.63.131:8080 [14:43:02]Content-Length: 678 [14:43:02]Content-Type: application/json [14:43:02] [14:43:02]POST finish read [14:43:02]Found Content-Length = 678 [14:43:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:02]execute_script... [14:43:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:02]POST & json_proto [14:43:02]process_json_proto [14:43:02]json parsed OK: [14:43:02]protocol is kg_v1.0 [14:43:02]action value=close_receipt [14:43:02]process_action close_receipt [14:43:02]cmd_close_receipt [14:43:02]MH_GetDate [14:43:02]Write to MH i2c: F0 00 00 96 4E D3 [14:43:02]Write i2c OK [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: F0 [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: F0 09 00 [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: F0 09 00 96 4E 00 FB A2 1F 67 22 05 6E 64 F8 [14:43:02]GetLastDocTimeStamp 1730126503 [14:43:02]current date 1730126587 [14:43:02]FM_GetShiftState [14:43:02]SAM_PROTO_GetShiftState [14:43:02]wFMCommunicate request_size=4 [14:43:02]MH_SAM_APDU [14:43:02]CAPDU: 80 13 01 00 [14:43:02]Write to MH i2c: E2 08 00 97 4E 80 13 01 00 00 00 00 00 62 [14:43:02]Write i2c OK [14:43:02]MH_I2C_Read... [14:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:02]Read from MH i2c: E2 [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: E2 0E 00 [14:43:02]MH_I2C_Read... [14:43:02]Read from MH i2c: E2 0E 00 97 4E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B2 [14:43:02]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:43:02]wFMCommunicate OK [14:43:02]SAM_PROTO_GetShiftState done [14:43:02]FM_GetShiftState done [14:43:02]opened in 1730075620 [14:43:02]opened+sec_in_day 1730162020 [14:43:02]quantity*price = 100050 [14:43:02]sum+1 = 100052 [14:43:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 169 28.10.2024 14:43 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192621 ФПД: 267134017452177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144307&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192621&fm=267134017452177&tin=02508201610067®Number=0000000000091776&sum=100000 [14:43:03]StoreToDocumentArchive [14:43:03]shift 543 fd 192621 [14:43:03]save to /storage/0543/doc_00192621 [14:43:03]save last doc name /storage/0543/doc_00192621 to /storage/kkm_last_doc_name [14:43:03]save OK [14:43:03]Clear old archive folders... [14:43:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:43:03]tlvbuf is 019B6C30 [14:43:03]SAM_PROTO_ClearQueue [14:43:03]wFMCommunicate request_size=4 [14:43:03]MH_SAM_APDU [14:43:03]CAPDU: 80 09 00 00 [14:43:03]Write to MH i2c: E2 08 00 A4 4E 80 09 00 00 00 00 00 00 64 [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:03]Read from MH i2c: E2 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 03 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 03 00 A4 4E 00 90 00 66 [14:43:03]RAPDU: 90 00 [14:43:03]wFMCommunicate OK [14:43:03]SAM_PROTO_ClearQueue done [14:43:03]KKMCreateOFDPacket [14:43:03]OFDProtocolAddRootSTLVToBuf [14:43:03]FM_MakeSignedData [14:43:03]FM_MakeSignedData [14:43:03]SAM_PROTO_SignData [14:43:03]wFMCommunicate request_size=4 [14:43:03]MH_SAM_APDU [14:43:03]CAPDU: 80 0D 01 02 [14:43:03]Write to MH i2c: E2 08 00 A5 4E 80 0D 01 02 00 00 00 00 6C [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:03]Read from MH i2c: E2 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 03 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 03 00 A5 4E 00 90 00 67 [14:43:03]RAPDU: 90 00 [14:43:03]wFMCommunicate OK [14:43:03]wFMCommunicate request_size=255 [14:43:03]MH_SAM_APDU [14:43:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 FB A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D F0 02 00 35 04 06 00 F2 F4 FC 37 [14:43:03]Write to MH i2c: E2 02 01 A6 4E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 FB A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D F0 02 00 35 04 06 00 F2 F4 FC 37 00 00 5B [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:03]Read from MH i2c: E2 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 03 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 03 00 A6 4E 00 90 00 68 [14:43:03]RAPDU: 90 00 [14:43:03]wFMCommunicate OK [14:43:03]wFMCommunicate request_size=7 [14:43:03]MH_SAM_APDU [14:43:03]CAPDU: 80 0D 02 02 02 B8 91 [14:43:03]Write to MH i2c: E2 0A 00 A7 4E 80 0D 02 02 02 00 B8 91 00 00 BC [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:03]Read from MH i2c: E2 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 03 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 03 00 A7 4E 00 90 00 69 [14:43:03]RAPDU: 90 00 [14:43:03]wFMCommunicate OK [14:43:03]wFMCommunicate request_size=4 [14:43:03]MH_SAM_APDU [14:43:03]CAPDU: 80 0D 03 02 [14:43:03]Write to MH i2c: E2 08 00 A8 4E 80 0D 03 02 00 00 00 00 71 [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:03]Read from MH i2c: E2 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 0B 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 0B 00 A8 4E 00 CD 02 08 D8 F1 B9 DD 85 90 00 2D [14:43:03]RAPDU: CD 02 08 D8 F1 B9 DD 85 90 00 [14:43:03]wFMCommunicate OK [14:43:03]SAM_PROTO_SignData done [14:43:03]FM_MakeSignedData done [14:43:03]CreateOFDProtocolMessage [14:43:03]wFMCommunicate request_size=4 [14:43:03]MH_SAM_APDU [14:43:03]CAPDU: 80 11 00 00 [14:43:03]Write to MH i2c: E2 08 00 A9 4E 80 11 00 00 00 00 00 00 71 [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:03]Read from MH i2c: E2 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 17 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 17 00 A9 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C4 [14:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:43:03]wFMCommunicate OK [14:43:03]CreateOFDProtocolMessage done [14:43:03]OFDSenderStorePacket 192621 [14:43:03]StoreOFDPacket docnum=192621 [14:43:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 CE 6A 04 01 8B 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 FB A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D F0 02 00 35 04 06 00 F2 F4 FC 37 B8 91 CD 02 08 D8 F1 B9 DD 85 [14:43:03]CheckFolder [14:43:03]dirname=/storage/ofd_packets [14:43:03]CheckFolder done [14:43:03]ProducePacketName [14:43:03]name=ofd_packets/00192621 [14:43:03]NVStorageSaveData ofd_packets/00192621 [14:43:03]File name is /storage/ofd_packets/00192621 [14:43:03]Write 298 bytes [14:43:03]NVStorageSaveData done [14:43:03]OFDSenderStorePacket done [14:43:03]KKMCreateOFDPacket done [14:43:03]NVStorageSaveData kkm_last_timestamp [14:43:03]File name is /storage/kkm_last_timestamp [14:43:03]Write 4 bytes [14:43:03]NVStorageSaveData done [14:43:03]ExternCall_PrintAddStr [14:43:03]wPrintStart [14:43:03]Write to MH i2c: 01 00 00 AA 4E F8 [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: 01 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: 01 07 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: 01 07 00 AA 4E 00 00 00 00 00 FF 0F 0D [14:43:03]RasterBufferAndPrint [14:43:03]line Счет N : (1)31945 [14:43:03]line ИНН: 02508201610067 [14:43:03]line Контрольно-Кассовый Чек [14:43:03]line ПРОДАЖА [14:43:03]line ТРК (МРК, ГНК) : 11 [14:43:03]line Товар: 2710194210 [14:43:03]line ДТ-К-5 [14:43:03]line 13.130 * 76.20 [14:43:03]line = 1000.51 [14:43:03]line НДС 12% НСП 1% [14:43:03]line > о реализуемом товаре [14:43:03]line ОКРУГЛЕНИЕ: -0.51 [14:43:03]line ИТОГО: 1000.00 [14:43:03]line Внесено: 1000.00 [14:43:03]line СДАЧА: 0.00 [14:43:03]line НСП 1% : 8.85 [14:43:03]line НДС 12% : 106.25 [14:43:03]line Наличными: 1000.00 [14:43:03]line Безнал.: 0.00 [14:43:03]line Место: АЗС № 170 "Партнер Нефть" [14:43:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:43:03]line СНО: Общий режим [14:43:03]line Чек 169 28.10.2024 14:43 [14:43:03]line Смена: 543 ФФД: 1.0 [14:43:03]line ЗНМ: 0300000110 [14:43:03]line РНМ: 0000000000091776 [14:43:03]line Версия ККМ: 001 [14:43:03]line ФМ: 0000000000871754 [14:43:03]line ФД: 192621 [14:43:03]line ФПД: 267134017452177 [14:43:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144307&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192621&fm=267134017452177&tin=02508201610067®Number=0000000000091776&sum=100000 [14:43:04]OFD Sender: Processing packet 192621 [packets to send 75, broken 74] [14:43:04]ProducePacketName [14:43:04]name=ofd_packets/00192621 [14:43:04]OFD Sender: To server: pG, [14:43:04]CommunicateWithHost lk.salyk.kg:30040 [14:43:04]ConnectInit lk.salyk.kg [14:43:04]written 0, free lines is 4095 [14:43:04]Connected sock=10 [14: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 31 37 35 34 0C 01 00 00 CE 6A 04 01 8B 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 FB A2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D F0 02 00 35 04 06 00 F2 F4 FC 37 B8 91 CD 02 08 D8 F1 B9 DD 85 [14:43:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2D 92 47 00 FB 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D F0 02 00 F4 03 04 00 BF 47 1F 67 B6 04 01 00 00 1C B1 78 E4 1B A9 EC E7 [14:43:04]CommunicateWithHost err = 0 [14:43:04]CheckOFDResponse [14:43:04]1017 (14) - 77093643461234 [14:43:04]1041 (16) - 0000000000871754 [14:43:04]1040 (4) - 192621 [14:43:04]1012 (4) - 28.10.2024 08:13 [14:43:04]1206 (1) - 0 [14:43:04]OFD Sender: Remove packet 192621 [14:43:04]ProducePacketName [14:43:04]name=ofd_packets/00192621 [14:43:04]NVStorageDeleteData [14:43:04]Write to MH i2c: 01 00 00 D5 4E 23 [14:43:04]Write i2c OK [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: 01 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: 01 07 00 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: 01 07 00 D5 4E 00 00 00 00 00 B4 0C EA [14:43:04]RasterBufferAndPrint [14:43:04]line [14:43:04]line [14:43:04]line [14:43:04]line [14:43:04]line [14:43:04]written 0, free lines is 3258 [14:43:04]MH_Cut [14:43:04]Write to MH i2c: D1 01 00 DC 4E 01 FC [14:43:04]Write i2c OK [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: D1 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: D1 01 00 [14:43:04]MH_I2C_Read... [14:43:04]Read from MH i2c: D1 01 00 DC 4E 00 FB [14:43:04]Write to MH i2c: 01 00 00 DD 4E 2B [14:43:04]Write i2c OK [14:43:04]MH_I2C_Read... [14:43:04]OFD Sender: No OFD packet to send [14:43:05]*** Cut start [14:43:05]*** Partial cut [14:43:05]*** CUTSNS_PIN = 1 [14:43:05]*** CUTSNS_PIN = 0 [14:43:05]*** Brake cut motor [14:43:06]Read from MH i2c: 01 [14:43:06]MH_I2C_Read... [14:43:06]*** Stop cut motor [14:43:06]*** Cut end [14:43:06]Read from MH i2c: 01 07 00 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: 01 07 00 DD 4E 00 00 00 00 00 FF 0F 40 [14:43:06]process_action close_receipt done [14:43:06]requested_data is exist [14:43:06]produce_requested_data [14:43:06]requested_item fm.sn is exist - process it [14:43:06]wFMCommunicate request_size=4 [14:43:06]MH_SAM_APDU [14:43:06]CAPDU: 80 11 00 00 [14:43:06]Write to MH i2c: E2 08 00 DE 4E 80 11 00 00 00 00 00 00 A6 [14:43:06]Write i2c OK [14:43:06]MH_I2C_Read... [14:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:06]Read from MH i2c: E2 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 17 00 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 17 00 DE 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F9 [14:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:43:06]wFMCommunicate OK [14:43:06]requested_item fd.num is exist - process it [14:43:06]SAM_PROTO_GetFieldsCounters [14:43:06]wFMCommunicate request_size=4 [14:43:06]MH_SAM_APDU [14:43:06]CAPDU: 80 13 00 00 [14:43:06]Write to MH i2c: E2 08 00 DF 4E 80 13 00 00 00 00 00 00 A9 [14:43:06]Write i2c OK [14:43:06]MH_I2C_Read... [14:43:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:06]Read from MH i2c: E2 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 62 00 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 62 00 DF 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [14: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:06]wFMCommunicate OK [14:43:06]SAM_PROTO_GetFieldsCounters done [14:43:06]requested_item shift.num is exist - process it [14:43:06]requested_item shift.opened is exist - process it [14:43:06]req_shift_opened [14:43:06]FM_GetShiftState [14:43:06]SAM_PROTO_GetShiftState [14:43:06]wFMCommunicate request_size=4 [14:43:06]MH_SAM_APDU [14:43:06]CAPDU: 80 13 01 00 [14:43:06]Write to MH i2c: E2 08 00 E0 4E 80 13 01 00 00 00 00 00 AB [14:43:06]Write i2c OK [14:43:06]MH_I2C_Read... [14:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:06]Read from MH i2c: E2 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 0E 00 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: E2 0E 00 E0 4E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FB [14:43:06]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:43:06]wFMCommunicate OK [14:43:06]SAM_PROTO_GetShiftState done [14:43:06]FM_GetShiftState done [14:43:06]req_shift_opened done [14:43:06]requested_item shift.open_date is exist - process it [14:43:06]req_shift_open_date [14:43:06]req_shift_open_date done [14:43:06]produce_requested_data done [14:43:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192621,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:43:06]process_action_free close_receipt [14:43:06]json_value_free [14:43:06]json_value_free done [14:43:06]process_json_proto returns [14:43:06]Send response to host [14:43:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192621,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:43:06]free response buf [14:43:06]execute_script done [14:43:06]execute_script returns [14:43:06]free content buf [14:43:06]Sock 7.Close socket [14:43:06]Sock 7.Thread stoped [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:44:56]accept exits with 9 [14:44:56]New connection [14:44:56]New thread 3066563940 created [14:44:56]Thread 3066707300 joined [14:44:56]Waiting for new connection... [14:44:56] Sock 9.Parse request [14:44:56]Sock 9.Check first char [14:44:56]Sock 9.First char is OK [14:44:56]request: POST /json_proto HTTP/1.0 [14:44:56]Method: POST [14:44:56]URL: /json_proto [14:44:56]Method is POST - this is cgi request [14:44:56]url: /json_proto [14:44:56]query_string will be loaded in cgi processing [14:44:56]execute_cgi json_proto POST (null) [14:44:56]execute_cgi path=json_proto method=POST [14:44:56]POST find Content-Length [14:44:56]Host: 172.17.63.131:8080 [14:44:56]Content-Length: 673 [14:44:56]Content-Type: application/json [14:44:56] [14:44:56]POST finish read [14:44:56]Found Content-Length = 673 [14:44:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:56]execute_script... [14:44: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)31946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:56]POST & json_proto [14:44:56]process_json_proto [14:44:56]json parsed OK: [14:44:56]protocol is kg_v1.0 [14:44:56]action value=close_receipt [14:44:56]process_action close_receipt [14:44:56]cmd_close_receipt [14:44:56]MH_GetDate [14:44:56]Write to MH i2c: F0 00 00 E1 4E 1E [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: F0 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: F0 09 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: F0 09 00 E1 4E 00 6E A3 1F 67 22 05 6E 64 B7 [14:44:56]GetLastDocTimeStamp 1730126587 [14:44:56]current date 1730126702 [14:44:56]FM_GetShiftState [14:44:56]SAM_PROTO_GetShiftState [14:44:56]wFMCommunicate request_size=4 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 13 01 00 [14:44:56]Write to MH i2c: E2 08 00 E2 4E 80 13 01 00 00 00 00 00 AD [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 0E 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 0E 00 E2 4E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FD [14:44:56]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:44:56]wFMCommunicate OK [14:44:56]SAM_PROTO_GetShiftState done [14:44:56]FM_GetShiftState done [14:44:56]opened in 1730075620 [14:44:56]opened+sec_in_day 1730162020 [14:44:56]quantity*price = 50063 [14:44:56]sum+1 = 50064 [14:44:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 170 28.10.2024 14:45 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192622 ФПД: 109224407094050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144502&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192622&fm=109224407094050&tin=02508201610067®Number=0000000000091776&sum=50000 [14:44:57]StoreToDocumentArchive [14:44:57]shift 543 fd 192622 [14:44:57]save to /storage/0543/doc_00192622 [14:44:57]save last doc name /storage/0543/doc_00192622 to /storage/kkm_last_doc_name [14:44:57]save OK [14:44:57]Clear old archive folders... [14:44:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:44:57]tlvbuf is 01AC8B10 [14:44:57]SAM_PROTO_ClearQueue [14:44:57]wFMCommunicate request_size=4 [14:44:57]MH_SAM_APDU [14:44:57]CAPDU: 80 09 00 00 [14:44:57]Write to MH i2c: E2 08 00 EF 4E 80 09 00 00 00 00 00 00 AF [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:57]Read from MH i2c: E2 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: E2 03 00 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: E2 03 00 EF 4E 00 90 00 B1 [14:44:57]RAPDU: 90 00 [14:44:57]wFMCommunicate OK [14:44:57]SAM_PROTO_ClearQueue done [14:44:57]KKMCreateOFDPacket [14:44:57]OFDProtocolAddRootSTLVToBuf [14:44:57]FM_MakeSignedData [14:44:57]FM_MakeSignedData [14:44:57]SAM_PROTO_SignData [14:44:57]wFMCommunicate request_size=4 [14:44:57]MH_SAM_APDU [14:44:57]CAPDU: 80 0D 01 02 [14:44:57]Write to MH i2c: E2 08 00 F0 4E 80 0D 01 02 00 00 00 00 B7 [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:57]Read from MH i2c: E2 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: E2 03 00 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: E2 03 00 F0 4E 00 90 00 B2 [14:44:57]RAPDU: 90 00 [14:44:57]wFMCommunicate OK [14:44:57]wFMCommunicate request_size=255 [14:44:57]MH_SAM_APDU [14:44:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 6E A3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E F0 02 00 35 04 06 00 63 56 C9 FC [14:44:57]Write to MH i2c: E2 02 01 F1 4E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 6E A3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E F0 02 00 35 04 06 00 63 56 C9 FC 00 00 09 [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:57]Read from MH i2c: E2 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: E2 03 00 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: E2 03 00 F1 4E 00 90 00 B3 [14:44:57]RAPDU: 90 00 [14:44:57]wFMCommunicate OK [14:44:57]wFMCommunicate request_size=7 [14:44:57]MH_SAM_APDU [14:44:57]CAPDU: 80 0D 02 02 02 53 22 [14:44:57]Write to MH i2c: E2 0A 00 F2 4E 80 0D 02 02 02 00 53 22 00 00 33 [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:57]Read from MH i2c: E2 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: E2 03 00 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: E2 03 00 F2 4E 00 90 00 B4 [14:44:57]RAPDU: 90 00 [14:44:57]wFMCommunicate OK [14:44:57]wFMCommunicate request_size=4 [14:44:57]MH_SAM_APDU [14:44:57]CAPDU: 80 0D 03 02 [14:44:57]Write to MH i2c: E2 08 00 F3 4E 80 0D 03 02 00 00 00 00 BC [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:57]Read from MH i2c: E2 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: E2 0B 00 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: E2 0B 00 F3 4E 00 D9 12 59 FF 82 00 10 E6 90 00 78 [14:44:57]RAPDU: D9 12 59 FF 82 00 10 E6 90 00 [14:44:57]wFMCommunicate OK [14:44:57]SAM_PROTO_SignData done [14:44:57]FM_MakeSignedData done [14:44:57]CreateOFDProtocolMessage [14:44:57]wFMCommunicate request_size=4 [14:44:57]MH_SAM_APDU [14:44:57]CAPDU: 80 11 00 00 [14:44:57]Write to MH i2c: E2 08 00 F4 4E 80 11 00 00 00 00 00 00 BC [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:58]Read from MH i2c: E2 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 17 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 17 00 F4 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0F [14:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:44:58]wFMCommunicate OK [14:44:58]CreateOFDProtocolMessage done [14:44:58]OFDSenderStorePacket 192622 [14:44:58]StoreOFDPacket docnum=192622 [14:44:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E3 A6 04 01 1B DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 6E A3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E F0 02 00 35 04 06 00 63 56 C9 FC 53 22 D9 12 59 FF 82 00 10 E6 [14:44:58]CheckFolder [14:44:58]dirname=/storage/ofd_packets [14:44:58]CheckFolder done [14:44:58]ProducePacketName [14:44:58]name=ofd_packets/00192622 [14:44:58]NVStorageSaveData ofd_packets/00192622 [14:44:58]File name is /storage/ofd_packets/00192622 [14:44:58]Write 298 bytes [14:44:58]NVStorageSaveData done [14:44:58]OFDSenderStorePacket done [14:44:58]KKMCreateOFDPacket done [14:44:58]NVStorageSaveData kkm_last_timestamp [14:44:58]File name is /storage/kkm_last_timestamp [14:44:58]Write 4 bytes [14:44:58]NVStorageSaveData done [14:44:58]ExternCall_PrintAddStr [14:44:58]wPrintStart [14:44:58]Write to MH i2c: 01 00 00 F5 4E 43 [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: 01 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: 01 07 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: 01 07 00 F5 4E 00 00 00 00 00 FF 0F 58 [14:44:58]RasterBufferAndPrint [14:44:58]line Счет N : (1)31946 [14:44:58]line ИНН: 02508201610067 [14:44:58]line Контрольно-Кассовый Чек [14:44:58]line ПРОДАЖА [14:44:58]line ТРК (МРК, ГНК) : 11 [14:44:58]line Товар: 2710194210 [14:44:58]line ДТ-К-5 [14:44:58]line 6.570 * 76.20 [14:44:58]line = 500.63 [14:44:58]line НДС 12% НСП 1% [14:44:58]line > о реализуемом товаре [14:44:58]line ОКРУГЛЕНИЕ: -0.63 [14:44:58]line ИТОГО: 500.00 [14:44:58]line Внесено: 500.00 [14:44:58]line СДАЧА: 0.00 [14:44:58]line НСП 1% : 4.43 [14:44:58]line НДС 12% : 53.16 [14:44:58]line Наличными: 500.00 [14:44:58]line Безнал.: 0.00 [14:44:58]line Место: АЗС № 170 "Партнер Нефть" [14:44:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:44:58]line СНО: Общий режим [14:44:58]line Чек 170 28.10.2024 14:45 [14:44:58]line Смена: 543 ФФД: 1.0 [14:44:58]line ЗНМ: 0300000110 [14:44:58]line РНМ: 0000000000091776 [14:44:58]line Версия ККМ: 001 [14:44:58]line ФМ: 0000000000871754 [14:44:58]line ФД: 192622 [14:44:58]line ФПД: 109224407094050 [14:44:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144502&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192622&fm=109224407094050&tin=02508201610067®Number=0000000000091776&sum=50000 [14:44:58]OFD Sender: Processing packet 192622 [packets to send 75, broken 74] [14:44:58]ProducePacketName [14:44:58]name=ofd_packets/00192622 [14:44:58]OFD Sender: To server: pG, [14:44:58]CommunicateWithHost lk.salyk.kg:30040 [14:44:58]ConnectInit lk.salyk.kg [14:44:58]written 0, free lines is 4095 [14:44:58]Connected sock=10 [14:44:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E3 A6 04 01 1B DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 6E A3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E F0 02 00 35 04 06 00 63 56 C9 FC 53 22 D9 12 59 FF 82 00 10 E6 [14:44:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 59 C1 47 00 38 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E F0 02 00 F4 03 04 00 31 48 1F 67 B6 04 01 00 00 23 4A 39 EC D4 C6 BD 75 [14:44:58]CommunicateWithHost err = 0 [14:44:58]CheckOFDResponse [14:44:58]1017 (14) - 77093643461234 [14:44:58]1041 (16) - 0000000000871754 [14:44:58]1040 (4) - 192622 [14:44:58]1012 (4) - 28.10.2024 08:15 [14:44:58]1206 (1) - 0 [14:44:58]OFD Sender: Remove packet 192622 [14:44:58]ProducePacketName [14:44:58]name=ofd_packets/00192622 [14:44:58]NVStorageDeleteData [14:44:58]Write to MH i2c: 01 00 00 20 4F 6F [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: 01 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: 01 07 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: 01 07 00 20 4F 00 00 00 00 00 B8 0C 3A [14:44:58]RasterBufferAndPrint [14:44:58]line [14:44:58]line [14:44:58]line [14:44:58]line [14:44:58]line [14:44:58]written 0, free lines is 3263 [14:44:58]MH_Cut [14:44:58]Write to MH i2c: D1 01 00 27 4F 01 48 [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: D1 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: D1 01 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: D1 01 00 27 4F 00 47 [14:44:58]Write to MH i2c: 01 00 00 28 4F 77 [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:59]OFD Sender: No OFD packet to send [14:44:59]*** Cut start [14:44:59]*** Partial cut [14:44:59]*** CUTSNS_PIN = 1 [14:44:59]*** CUTSNS_PIN = 0 [14:44:59]*** Brake cut motor [14:45:00]Read from MH i2c: 01 [14:45:00]MH_I2C_Read... [14:45:00]*** Stop cut motor [14:45:00]*** Cut end [14:45:00]Read from MH i2c: 01 07 00 [14:45:00]MH_I2C_Read... [14:45:00]Read from MH i2c: 01 07 00 28 4F 00 00 00 00 00 FF 0F 8C [14:45:00]process_action close_receipt done [14:45:00]requested_data is exist [14:45:00]produce_requested_data [14:45:00]requested_item fm.sn is exist - process it [14:45:00]wFMCommunicate request_size=4 [14:45:00]MH_SAM_APDU [14:45:00]CAPDU: 80 11 00 00 [14:45:00]Write to MH i2c: E2 08 00 29 4F 80 11 00 00 00 00 00 00 F2 [14:45:00]Write i2c OK [14:45:00]MH_I2C_Read... [14:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:00]Read from MH i2c: E2 [14:45:00]MH_I2C_Read... [14:45:00]Read from MH i2c: E2 17 00 [14:45:00]MH_I2C_Read... [14:45:00]Read from MH i2c: E2 17 00 29 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 45 [14:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:45:00]wFMCommunicate OK [14:45:00]requested_item fd.num is exist - process it [14:45:00]SAM_PROTO_GetFieldsCounters [14:45:00]wFMCommunicate request_size=4 [14:45:00]MH_SAM_APDU [14:45:00]CAPDU: 80 13 00 00 [14:45:00]Write to MH i2c: E2 08 00 2A 4F 80 13 00 00 00 00 00 00 F5 [14:45:00]Write i2c OK [14:45:00]MH_I2C_Read... [14:45:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:00]Read from MH i2c: E2 [14:45:00]MH_I2C_Read... [14:45:00]Read from MH i2c: E2 62 00 [14:45:00]MH_I2C_Read... [14:45:00]Read from MH i2c: E2 62 00 2A 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [14:45:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:45:00]wFMCommunicate OK [14:45:00]SAM_PROTO_GetFieldsCounters done [14:45:00]requested_item shift.num is exist - process it [14:45:00]requested_item shift.opened is exist - process it [14:45:00]req_shift_opened [14:45:00]FM_GetShiftState [14:45:00]SAM_PROTO_GetShiftState [14:45:00]wFMCommunicate request_size=4 [14:45:00]MH_SAM_APDU [14:45:00]CAPDU: 80 13 01 00 [14:45:00]Write to MH i2c: E2 08 00 2B 4F 80 13 01 00 00 00 00 00 F7 [14:45:00]Write i2c OK [14:45:00]MH_I2C_Read... [14:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:00]Read from MH i2c: E2 [14:45:00]MH_I2C_Read... [14:45:00]Read from MH i2c: E2 0E 00 [14:45:00]MH_I2C_Read... [14:45:00]Read from MH i2c: E2 0E 00 2B 4F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 47 [14:45:00]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:45:00]wFMCommunicate OK [14:45:00]SAM_PROTO_GetShiftState done [14:45:00]FM_GetShiftState done [14:45:00]req_shift_opened done [14:45:00]requested_item shift.open_date is exist - process it [14:45:00]req_shift_open_date [14:45:00]req_shift_open_date done [14:45:00]produce_requested_data done [14:45:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192622,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:45:00]process_action_free close_receipt [14:45:00]json_value_free [14:45:00]json_value_free done [14:45:00]process_json_proto returns [14:45:00]Send response to host [14:45:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192622,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:45:00]free response buf [14:45:00]execute_script done [14:45:00]execute_script returns [14:45:00]free content buf [14:45:00]Sock 9.Close socket [14:45:00]Sock 9.Thread stoped [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:04]OFD Sender: No OFD packet to send [14:46:09]OFD Sender: No OFD packet to send [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:46:59]accept exits with 7 [14:46:59]New connection [14:46:59]New thread 3066707300 created [14:46:59]Thread 3066563940 joined [14:46:59]Waiting for new connection... [14:46:59] Sock 7.Parse request [14:46:59]Sock 7.Check first char [14:46:59]Sock 7.First char is OK [14:46:59]request: POST /json_proto HTTP/1.0 [14:46:59]Method: POST [14:46:59]URL: /json_proto [14:46:59]Method is POST - this is cgi request [14:46:59]url: /json_proto [14:46:59]query_string will be loaded in cgi processing [14:46:59]execute_cgi json_proto POST (null) [14:46:59]execute_cgi path=json_proto method=POST [14:46:59]POST find Content-Length [14:46:59]Host: 172.17.63.131:8080 [14:46:59]Content-Length: 673 [14:46:59]Content-Type: application/json [14:46:59] [14:46:59]POST finish read [14:46:59]Found Content-Length = 673 [14:46:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:59]execute_script... [14:46: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)31947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:59]POST & json_proto [14:46:59]process_json_proto [14:46:59]json parsed OK: [14:46:59]protocol is kg_v1.0 [14:46:59]action value=close_receipt [14:46:59]process_action close_receipt [14:46:59]cmd_close_receipt [14:46:59]MH_GetDate [14:46:59]Write to MH i2c: F0 00 00 2C 4F 6A [14:46:59]Write i2c OK [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: F0 [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: F0 09 00 [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: F0 09 00 2C 4F 00 E9 A3 1F 67 22 05 6E 64 7E [14:46:59]GetLastDocTimeStamp 1730126702 [14:46:59]current date 1730126825 [14:46:59]FM_GetShiftState [14:46:59]SAM_PROTO_GetShiftState [14:46:59]wFMCommunicate request_size=4 [14:46:59]MH_SAM_APDU [14:46:59]CAPDU: 80 13 01 00 [14:46:59]Write to MH i2c: E2 08 00 2D 4F 80 13 01 00 00 00 00 00 F9 [14:46:59]Write i2c OK [14:46:59]MH_I2C_Read... [14:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:59]Read from MH i2c: E2 [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: E2 0E 00 [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: E2 0E 00 2D 4F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 49 [14:46:59]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:46:59]wFMCommunicate OK [14:46:59]SAM_PROTO_GetShiftState done [14:46:59]FM_GetShiftState done [14:46:59]opened in 1730075620 [14:46:59]opened+sec_in_day 1730162020 [14:46:59]quantity*price = 40005 [14:46:59]sum+1 = 40006 [14:46:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 171 28.10.2024 14:47 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192623 ФПД: 119833852627973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144705&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192623&fm=119833852627973&tin=02508201610067®Number=0000000000091776&sum=40000 [14:47:00]StoreToDocumentArchive [14:47:00]shift 543 fd 192623 [14:47:00]save to /storage/0543/doc_00192623 [14:47:00]save last doc name /storage/0543/doc_00192623 to /storage/kkm_last_doc_name [14:47:00]save OK [14:47:00]Clear old archive folders... [14:47:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:47:00]tlvbuf is 01970DC0 [14:47:00]SAM_PROTO_ClearQueue [14:47:00]wFMCommunicate request_size=4 [14:47:00]MH_SAM_APDU [14:47:00]CAPDU: 80 09 00 00 [14:47:00]Write to MH i2c: E2 08 00 3A 4F 80 09 00 00 00 00 00 00 FB [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:00]Read from MH i2c: E2 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 03 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 03 00 3A 4F 00 90 00 FD [14:47:00]RAPDU: 90 00 [14:47:00]wFMCommunicate OK [14:47:00]SAM_PROTO_ClearQueue done [14:47:00]KKMCreateOFDPacket [14:47:00]OFDProtocolAddRootSTLVToBuf [14:47:00]FM_MakeSignedData [14:47:00]FM_MakeSignedData [14:47:00]SAM_PROTO_SignData [14:47:00]wFMCommunicate request_size=4 [14:47:00]MH_SAM_APDU [14:47:00]CAPDU: 80 0D 01 02 [14:47:00]Write to MH i2c: E2 08 00 3B 4F 80 0D 01 02 00 00 00 00 03 [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:00]Read from MH i2c: E2 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 03 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 03 00 3B 4F 00 90 00 FE [14:47:00]RAPDU: 90 00 [14:47:00]wFMCommunicate OK [14:47:00]wFMCommunicate request_size=255 [14:47:00]MH_SAM_APDU [14:47: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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 E9 A3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F F0 02 00 35 04 06 00 6C FC FE 37 [14:47:00]Write to MH i2c: E2 02 01 3C 4F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 E9 A3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F F0 02 00 35 04 06 00 6C FC FE 37 00 00 5C [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 3C 4F 00 90 00 FF [14:47:01]RAPDU: 90 00 [14:47:01]wFMCommunicate OK [14:47:01]wFMCommunicate request_size=7 [14:47:01]MH_SAM_APDU [14:47:01]CAPDU: 80 0D 02 02 02 CC 05 [14:47:01]Write to MH i2c: E2 0A 00 3D 4F 80 0D 02 02 02 00 CC 05 00 00 DB [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 3D 4F 00 90 00 00 [14:47:01]RAPDU: 90 00 [14:47:01]wFMCommunicate OK [14:47:01]wFMCommunicate request_size=4 [14:47:01]MH_SAM_APDU [14:47:01]CAPDU: 80 0D 03 02 [14:47:01]Write to MH i2c: E2 08 00 3E 4F 80 0D 03 02 00 00 00 00 08 [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 0B 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 0B 00 3E 4F 00 E1 AE 8F F7 76 04 00 8B 90 00 23 [14:47:01]RAPDU: E1 AE 8F F7 76 04 00 8B 90 00 [14:47:01]wFMCommunicate OK [14:47:01]SAM_PROTO_SignData done [14:47:01]FM_MakeSignedData done [14:47:01]CreateOFDProtocolMessage [14:47:01]wFMCommunicate request_size=4 [14:47:01]MH_SAM_APDU [14:47:01]CAPDU: 80 11 00 00 [14:47:01]Write to MH i2c: E2 08 00 3F 4F 80 11 00 00 00 00 00 00 08 [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 17 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 17 00 3F 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5B [14:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:47:01]wFMCommunicate OK [14:47:01]CreateOFDProtocolMessage done [14:47:01]OFDSenderStorePacket 192623 [14:47:01]StoreOFDPacket docnum=192623 [14:47:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 53 BF 04 01 F9 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 E9 A3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F F0 02 00 35 04 06 00 6C FC FE 37 CC 05 E1 AE 8F F7 76 04 00 8B [14:47:01]CheckFolder [14:47:01]dirname=/storage/ofd_packets [14:47:01]CheckFolder done [14:47:01]ProducePacketName [14:47:01]name=ofd_packets/00192623 [14:47:01]NVStorageSaveData ofd_packets/00192623 [14:47:01]File name is /storage/ofd_packets/00192623 [14:47:01]Write 298 bytes [14:47:01]NVStorageSaveData done [14:47:01]OFDSenderStorePacket done [14:47:01]KKMCreateOFDPacket done [14:47:01]NVStorageSaveData kkm_last_timestamp [14:47:01]File name is /storage/kkm_last_timestamp [14:47:01]Write 4 bytes [14:47:01]NVStorageSaveData done [14:47:01]ExternCall_PrintAddStr [14:47:01]wPrintStart [14:47:01]Write to MH i2c: 01 00 00 40 4F 8F [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: 01 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: 01 07 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: 01 07 00 40 4F 00 00 00 00 00 FF 0F A4 [14:47:01]RasterBufferAndPrint [14:47:01]line Счет N : (1)31947 [14:47:01]line ИНН: 02508201610067 [14:47:01]line Контрольно-Кассовый Чек [14:47:01]line ПРОДАЖА [14:47:01]line ТРК (МРК, ГНК) : 11 [14:47:01]line Товар: 2710194210 [14:47:01]line ДТ-К-5 [14:47:01]line 5.250 * 76.20 [14:47:01]line = 400.05 [14:47:01]line НДС 12% НСП 1% [14:47:01]line > о реализуемом товаре [14:47:01]line ОКРУГЛЕНИЕ: -0.05 [14:47:01]line ИТОГО: 400.00 [14:47:01]line Внесено: 400.00 [14:47:01]line СДАЧА: 0.00 [14:47:01]line НСП 1% : 3.54 [14:47:01]line НДС 12% : 42.48 [14:47:01]line Наличными: 400.00 [14:47:01]line Безнал.: 0.00 [14:47:01]line Место: АЗС № 170 "Партнер Нефть" [14:47:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:47:01]line СНО: Общий режим [14:47:01]line Чек 171 28.10.2024 14:47 [14:47:01]line Смена: 543 ФФД: 1.0 [14:47:01]line ЗНМ: 0300000110 [14:47:01]line РНМ: 0000000000091776 [14:47:01]line Версия ККМ: 001 [14:47:01]line ФМ: 0000000000871754 [14:47:01]line ФД: 192623 [14:47:01]line ФПД: 119833852627973 [14:47:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144705&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192623&fm=119833852627973&tin=02508201610067®Number=0000000000091776&sum=40000 [14:47:01]OFD Sender: Processing packet 192623 [packets to send 75, broken 74] [14:47:01]ProducePacketName [14:47:01]name=ofd_packets/00192623 [14:47:01]OFD Sender: To server: pG, [14:47:01]CommunicateWithHost lk.salyk.kg:30040 [14:47:01]ConnectInit lk.salyk.kg [14:47:01]written 0, free lines is 4095 [14:47:01]Connected sock=10 [14:47:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 53 BF 04 01 F9 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 E9 A3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F F0 02 00 35 04 06 00 6C FC FE 37 CC 05 E1 AE 8F F7 76 04 00 8B [14:47:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 66 38 47 00 AB 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F F0 02 00 F4 03 04 00 AD 48 1F 67 B6 04 01 00 00 2B 11 E5 B4 03 5B BD E6 [14:47:01]CommunicateWithHost err = 0 [14:47:01]CheckOFDResponse [14:47:01]1017 (14) - 77093643461234 [14:47:01]1041 (16) - 0000000000871754 [14:47:01]1040 (4) - 192623 [14:47:01]1012 (4) - 28.10.2024 08:17 [14:47:01]1206 (1) - 0 [14:47:01]OFD Sender: Remove packet 192623 [14:47:01]ProducePacketName [14:47:01]name=ofd_packets/00192623 [14:47:01]NVStorageDeleteData [14:47:02]Write to MH i2c: 01 00 00 6B 4F BA [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 07 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 07 00 6B 4F 00 00 00 00 00 B6 0C 83 [14:47:02]RasterBufferAndPrint [14:47:02]line [14:47:02]line [14:47:02]line [14:47:02]line [14:47:02]line [14:47:02]written 0, free lines is 3262 [14:47:02]MH_Cut [14:47:02]Write to MH i2c: D1 01 00 72 4F 01 93 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: D1 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: D1 01 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: D1 01 00 72 4F 00 92 [14:47:02]Write to MH i2c: 01 00 00 73 4F C2 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]OFD Sender: No OFD packet to send [14:47:02]*** Cut start [14:47:02]*** Partial cut [14:47:02]*** CUTSNS_PIN = 1 [14:47:02]*** CUTSNS_PIN = 0 [14:47:03]*** Brake cut motor [14:47:03]Read from MH i2c: 01 [14:47:03]MH_I2C_Read... [14:47:03]*** Stop cut motor [14:47:03]*** Cut end [14:47:03]Read from MH i2c: 01 07 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: 01 07 00 73 4F 00 00 00 00 00 FF 0F D7 [14:47:03]process_action close_receipt done [14:47:03]requested_data is exist [14:47:03]produce_requested_data [14:47:03]requested_item fm.sn is exist - process it [14:47:03]wFMCommunicate request_size=4 [14:47:03]MH_SAM_APDU [14:47:03]CAPDU: 80 11 00 00 [14:47:03]Write to MH i2c: E2 08 00 74 4F 80 11 00 00 00 00 00 00 3D [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:03]Read from MH i2c: E2 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 17 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 17 00 74 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 90 [14:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:47:03]wFMCommunicate OK [14:47:03]requested_item fd.num is exist - process it [14:47:03]SAM_PROTO_GetFieldsCounters [14:47:03]wFMCommunicate request_size=4 [14:47:03]MH_SAM_APDU [14:47:03]CAPDU: 80 13 00 00 [14:47:03]Write to MH i2c: E2 08 00 75 4F 80 13 00 00 00 00 00 00 40 [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:03]Read from MH i2c: E2 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 62 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 62 00 75 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [14:47:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:03]wFMCommunicate OK [14:47:03]SAM_PROTO_GetFieldsCounters done [14:47:03]requested_item shift.num is exist - process it [14:47:03]requested_item shift.opened is exist - process it [14:47:03]req_shift_opened [14:47:03]FM_GetShiftState [14:47:03]SAM_PROTO_GetShiftState [14:47:03]wFMCommunicate request_size=4 [14:47:03]MH_SAM_APDU [14:47:03]CAPDU: 80 13 01 00 [14:47:03]Write to MH i2c: E2 08 00 76 4F 80 13 01 00 00 00 00 00 42 [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:03]Read from MH i2c: E2 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 0E 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 0E 00 76 4F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 92 [14:47:03]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:47:03]wFMCommunicate OK [14:47:03]SAM_PROTO_GetShiftState done [14:47:03]FM_GetShiftState done [14:47:03]req_shift_opened done [14:47:03]requested_item shift.open_date is exist - process it [14:47:03]req_shift_open_date [14:47:03]req_shift_open_date done [14:47:03]produce_requested_data done [14:47:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192623,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:47:03]process_action_free close_receipt [14:47:03]json_value_free [14:47:03]json_value_free done [14:47:03]process_json_proto returns [14:47:03]Send response to host [14:47:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192623,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:47:03]free response buf [14:47:03]execute_script done [14:47:03]execute_script returns [14:47:03]free content buf [14:47:03]Sock 7.Close socket [14:47:03]Sock 7.Thread stoped [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:28]accept exits with 9 [14:47:28]New connection [14:47:28]New thread 3066563940 created [14:47:28]Thread 3066707300 joined [14:47:28]Waiting for new connection... [14:47:28] Sock 9.Parse request [14:47:28]Sock 9.Check first char [14:47:28]Sock 9.First char is OK [14:47:28]request: POST /json_proto HTTP/1.0 [14:47:28]Method: POST [14:47:28]URL: /json_proto [14:47:28]Method is POST - this is cgi request [14:47:28]url: /json_proto [14:47:28]query_string will be loaded in cgi processing [14:47:28]execute_cgi json_proto POST (null) [14:47:28]execute_cgi path=json_proto method=POST [14:47:28]POST find Content-Length [14:47:28]Host: 172.17.63.131:8080 [14:47:28]Content-Length: 676 [14:47:28]Content-Type: application/json [14:47:28] [14:47:28]POST finish read [14:47:28]Found Content-Length = 676 [14:47:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:28]execute_script... [14:47:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:28]POST & json_proto [14:47:28]process_json_proto [14:47:28]json parsed OK: [14:47:28]protocol is kg_v1.0 [14:47:28]action value=close_receipt [14:47:28]process_action close_receipt [14:47:28]cmd_close_receipt [14:47:28]MH_GetDate [14:47:28]Write to MH i2c: F0 00 00 77 4F B5 [14:47:28]Write i2c OK [14:47:28]MH_I2C_Read... [14:47:28]Read from MH i2c: F0 [14:47:28]MH_I2C_Read... [14:47:29]Read from MH i2c: F0 09 00 [14:47:29]MH_I2C_Read... [14:47:29]Read from MH i2c: F0 09 00 77 4F 00 06 A4 1F 67 22 05 6E 64 E7 [14:47:29]GetLastDocTimeStamp 1730126825 [14:47:29]current date 1730126854 [14:47:29]FM_GetShiftState [14:47:29]SAM_PROTO_GetShiftState [14:47:29]wFMCommunicate request_size=4 [14:47:29]MH_SAM_APDU [14:47:29]CAPDU: 80 13 01 00 [14:47:29]Write to MH i2c: E2 08 00 78 4F 80 13 01 00 00 00 00 00 44 [14:47:29]Write i2c OK [14:47:29]MH_I2C_Read... [14:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:29]Read from MH i2c: E2 [14:47:29]MH_I2C_Read... [14:47:29]Read from MH i2c: E2 0E 00 [14:47:29]MH_I2C_Read... [14:47:29]Read from MH i2c: E2 0E 00 78 4F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 94 [14:47:29]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:47:29]wFMCommunicate OK [14:47:29]SAM_PROTO_GetShiftState done [14:47:29]FM_GetShiftState done [14:47:29]opened in 1730075620 [14:47:29]opened+sec_in_day 1730162020 [14:47:29]quantity*price = 40006 [14:47:29]sum+1 = 40007 [14:47:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 172 28.10.2024 14:47 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192624 ФПД: 1955487822307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144734&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192624&fm=1955487822307&tin=02508201610067®Number=0000000000091776&sum=40000 [14:47:30]StoreToDocumentArchive [14:47:30]shift 543 fd 192624 [14:47:30]save to /storage/0543/doc_00192624 [14:47:30]save last doc name /storage/0543/doc_00192624 to /storage/kkm_last_doc_name [14:47:30]save OK [14:47:30]Clear old archive folders... [14:47:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:30]tlvbuf is 019B0E00 [14:47:30]SAM_PROTO_ClearQueue [14:47:30]wFMCommunicate request_size=4 [14:47:30]MH_SAM_APDU [14:47:30]CAPDU: 80 09 00 00 [14:47:30]Write to MH i2c: E2 08 00 85 4F 80 09 00 00 00 00 00 00 46 [14:47:30]Write i2c OK [14:47:30]MH_I2C_Read... [14:47:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:30]Read from MH i2c: E2 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 03 00 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 03 00 85 4F 00 90 00 48 [14:47:30]RAPDU: 90 00 [14:47:30]wFMCommunicate OK [14:47:30]SAM_PROTO_ClearQueue done [14:47:30]KKMCreateOFDPacket [14:47:30]OFDProtocolAddRootSTLVToBuf [14:47:30]FM_MakeSignedData [14:47:30]FM_MakeSignedData [14:47:30]SAM_PROTO_SignData [14:47:30]wFMCommunicate request_size=4 [14:47:30]MH_SAM_APDU [14:47:30]CAPDU: 80 0D 01 02 [14:47:30]Write to MH i2c: E2 08 00 86 4F 80 0D 01 02 00 00 00 00 4E [14:47:30]Write i2c OK [14:47:30]MH_I2C_Read... [14:47:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:30]Read from MH i2c: E2 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 03 00 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 03 00 86 4F 00 90 00 49 [14:47:30]RAPDU: 90 00 [14:47:30]wFMCommunicate OK [14:47:30]wFMCommunicate request_size=255 [14:47:30]MH_SAM_APDU [14:47: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 06 A4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 F0 02 00 35 04 06 00 01 [14:47:30]Write to MH i2c: E2 02 01 87 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 06 A4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 F0 02 00 35 04 06 00 01 00 00 11 [14:47:30]Write i2c OK [14:47:30]MH_I2C_Read... [14:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:30]Read from MH i2c: E2 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 03 00 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 03 00 87 4F 00 90 00 4A [14:47:30]RAPDU: 90 00 [14:47:30]wFMCommunicate OK [14:47:30]wFMCommunicate request_size=10 [14:47:30]MH_SAM_APDU [14:47:30]CAPDU: 80 0D 02 02 05 C7 4C 28 31 E3 [14:47:30]Write to MH i2c: E2 0D 00 88 4F 80 0D 02 02 05 00 C7 4C 28 31 E3 00 00 AA [14:47:30]Write i2c OK [14:47:30]MH_I2C_Read... [14:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:30]Read from MH i2c: E2 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 03 00 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 03 00 88 4F 00 90 00 4B [14:47:30]RAPDU: 90 00 [14:47:30]wFMCommunicate OK [14:47:30]wFMCommunicate request_size=4 [14:47:30]MH_SAM_APDU [14:47:30]CAPDU: 80 0D 03 02 [14:47:30]Write to MH i2c: E2 08 00 89 4F 80 0D 03 02 00 00 00 00 53 [14:47:30]Write i2c OK [14:47:30]MH_I2C_Read... [14:47:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:30]Read from MH i2c: E2 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 0B 00 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 0B 00 89 4F 00 31 A2 E6 6C 77 1A 2B 6C 90 00 A1 [14:47:30]RAPDU: 31 A2 E6 6C 77 1A 2B 6C 90 00 [14:47:30]wFMCommunicate OK [14:47:30]SAM_PROTO_SignData done [14:47:30]FM_MakeSignedData done [14:47:30]CreateOFDProtocolMessage [14:47:30]wFMCommunicate request_size=4 [14:47:30]MH_SAM_APDU [14:47:30]CAPDU: 80 11 00 00 [14:47:30]Write to MH i2c: E2 08 00 8A 4F 80 11 00 00 00 00 00 00 53 [14:47:30]Write i2c OK [14:47:30]MH_I2C_Read... [14:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:30]Read from MH i2c: E2 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 17 00 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: E2 17 00 8A 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [14:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:47:30]wFMCommunicate OK [14:47:30]CreateOFDProtocolMessage done [14:47:30]OFDSenderStorePacket 192624 [14:47:30]StoreOFDPacket docnum=192624 [14:47:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 85 07 01 45 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 06 A4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 F0 02 00 35 04 06 00 01 C7 4C 28 31 E3 31 A2 E6 6C 77 1A 2B 6C [14:47:30]CheckFolder [14:47:30]dirname=/storage/ofd_packets [14:47:30]CheckFolder done [14:47:30]ProducePacketName [14:47:30]name=ofd_packets/00192624 [14:47:30]NVStorageSaveData ofd_packets/00192624 [14:47:30]File name is /storage/ofd_packets/00192624 [14:47:30]Write 301 bytes [14:47:30]NVStorageSaveData done [14:47:30]OFDSenderStorePacket done [14:47:30]KKMCreateOFDPacket done [14:47:30]NVStorageSaveData kkm_last_timestamp [14:47:30]File name is /storage/kkm_last_timestamp [14:47:30]Write 4 bytes [14:47:30]NVStorageSaveData done [14:47:30]ExternCall_PrintAddStr [14:47:30]wPrintStart [14:47:30]Write to MH i2c: 01 00 00 8B 4F DA [14:47:30]Write i2c OK [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: 01 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: 01 07 00 [14:47:30]MH_I2C_Read... [14:47:30]Read from MH i2c: 01 07 00 8B 4F 00 00 00 00 00 FF 0F EF [14:47:30]RasterBufferAndPrint [14:47:30]line Счет N : (1)31948 [14:47:30]line ИНН: 02508201610067 [14:47:30]line Контрольно-Кассовый Чек [14:47:30]line ПРОДАЖА [14:47:30]line ТРК (МРК, ГНК) : 21 [14:47:30]line Товар: 2710124130 [14:47:30]line Аи-92-К-5 [14:47:30]line 5.980 * 66.90 [14:47:30]line = 400.06 [14:47:30]line НДС 12% НСП 1% [14:47:30]line > о реализуемом товаре [14:47:30]line ОКРУГЛЕНИЕ: -0.06 [14:47:30]line ИТОГО: 400.00 [14:47:30]line Внесено: 400.00 [14:47:30]line СДАЧА: 0.00 [14:47:30]line НСП 1% : 3.54 [14:47:30]line НДС 12% : 42.48 [14:47:30]line Наличными: 400.00 [14:47:30]line Безнал.: 0.00 [14:47:30]line Место: АЗС № 170 "Партнер Нефть" [14:47:30]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:47:30]line СНО: Общий режим [14:47:30]line Чек 172 28.10.2024 14:47 [14:47:30]line Смена: 543 ФФД: 1.0 [14:47:30]line ЗНМ: 0300000110 [14:47:30]line РНМ: 0000000000091776 [14:47:30]line Версия ККМ: 001 [14:47:30]line ФМ: 0000000000871754 [14:47:30]line ФД: 192624 [14:47:30]line ФПД: 1955487822307 [14:47:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144734&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192624&fm=1955487822307&tin=02508201610067®Number=0000000000091776&sum=40000 [14:47:31]OFD Sender: Processing packet 192624 [packets to send 75, broken 74] [14:47:31]ProducePacketName [14:47:31]name=ofd_packets/00192624 [14:47:31]OFD Sender: To server: pG, [14:47:31]CommunicateWithHost lk.salyk.kg:30040 [14:47:31]ConnectInit lk.salyk.kg [14:47:31]written 0, free lines is 4095 [14:47:31]Connected sock=10 [14:47:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 85 07 01 45 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 06 A4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 F0 02 00 35 04 06 00 01 C7 4C 28 31 E3 31 A2 E6 6C 77 1A 2B 6C [14:47:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6D 4E 47 00 43 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 F0 02 00 F4 03 04 00 CA 48 1F 67 B6 04 01 00 00 E6 F4 55 84 7B 6C E2 DF [14:47:31]CommunicateWithHost err = 0 [14:47:31]CheckOFDResponse [14:47:31]1017 (14) - 77093643461234 [14:47:31]1041 (16) - 0000000000871754 [14:47:31]1040 (4) - 192624 [14:47:31]1012 (4) - 28.10.2024 08:18 [14:47:31]1206 (1) - 0 [14:47:31]OFD Sender: Remove packet 192624 [14:47:31]ProducePacketName [14:47:31]name=ofd_packets/00192624 [14:47:31]NVStorageDeleteData [14:47:31]Write to MH i2c: 01 00 00 B6 4F 05 [14:47:31]Write i2c OK [14:47:31]MH_I2C_Read... [14:47:31]Read from MH i2c: 01 [14:47:31]MH_I2C_Read... [14:47:31]Read from MH i2c: 01 07 00 [14:47:31]MH_I2C_Read... [14:47:31]Read from MH i2c: 01 07 00 B6 4F 00 00 00 00 00 B6 0C CE [14:47:31]RasterBufferAndPrint [14:47:31]line [14:47:31]line [14:47:31]line [14:47:31]line [14:47:31]line [14:47:31]written 0, free lines is 3262 [14:47:31]MH_Cut [14:47:31]Write to MH i2c: D1 01 00 BD 4F 01 DE [14:47:31]Write i2c OK [14:47:31]MH_I2C_Read... [14:47:31]Read from MH i2c: D1 [14:47:31]MH_I2C_Read... [14:47:31]Read from MH i2c: D1 01 00 [14:47:31]MH_I2C_Read... [14:47:31]Read from MH i2c: D1 01 00 BD 4F 00 DD [14:47:31]Write to MH i2c: 01 00 00 BE 4F 0D [14:47:31]Write i2c OK [14:47:31]MH_I2C_Read... [14:47:31]OFD Sender: No OFD packet to send [14:47:32]*** Cut start [14:47:32]*** Partial cut [14:47:32]*** CUTSNS_PIN = 1 [14:47:32]*** CUTSNS_PIN = 0 [14:47:32]*** Brake cut motor [14:47:32]Read from MH i2c: 01 [14:47:32]MH_I2C_Read... [14:47:32]*** Stop cut motor [14:47:32]*** Cut end [14:47:32]Read from MH i2c: 01 07 00 [14:47:32]MH_I2C_Read... [14:47:32]Read from MH i2c: 01 07 00 BE 4F 00 00 00 00 00 FF 0F 22 [14:47:32]process_action close_receipt done [14:47:32]requested_data is exist [14:47:32]produce_requested_data [14:47:32]requested_item fm.sn is exist - process it [14:47:32]wFMCommunicate request_size=4 [14:47:32]MH_SAM_APDU [14:47:32]CAPDU: 80 11 00 00 [14:47:32]Write to MH i2c: E2 08 00 BF 4F 80 11 00 00 00 00 00 00 88 [14:47:32]Write i2c OK [14:47:32]MH_I2C_Read... [14:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:33]Read from MH i2c: E2 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: E2 17 00 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: E2 17 00 BF 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [14:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:47:33]wFMCommunicate OK [14:47:33]requested_item fd.num is exist - process it [14:47:33]SAM_PROTO_GetFieldsCounters [14:47:33]wFMCommunicate request_size=4 [14:47:33]MH_SAM_APDU [14:47:33]CAPDU: 80 13 00 00 [14:47:33]Write to MH i2c: E2 08 00 C0 4F 80 13 00 00 00 00 00 00 8B [14:47:33]Write i2c OK [14:47:33]MH_I2C_Read... [14:47:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:33]Read from MH i2c: E2 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: E2 62 00 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: E2 62 00 C0 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 70 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [14:47:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 70 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:33]wFMCommunicate OK [14:47:33]SAM_PROTO_GetFieldsCounters done [14:47:33]requested_item shift.num is exist - process it [14:47:33]requested_item shift.opened is exist - process it [14:47:33]req_shift_opened [14:47:33]FM_GetShiftState [14:47:33]SAM_PROTO_GetShiftState [14:47:33]wFMCommunicate request_size=4 [14:47:33]MH_SAM_APDU [14:47:33]CAPDU: 80 13 01 00 [14:47:33]Write to MH i2c: E2 08 00 C1 4F 80 13 01 00 00 00 00 00 8D [14:47:33]Write i2c OK [14:47:33]MH_I2C_Read... [14:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:33]Read from MH i2c: E2 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: E2 0E 00 [14:47:33]MH_I2C_Read... [14:47:33]Read from MH i2c: E2 0E 00 C1 4F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DD [14:47:33]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:47:33]wFMCommunicate OK [14:47:33]SAM_PROTO_GetShiftState done [14:47:33]FM_GetShiftState done [14:47:33]req_shift_opened done [14:47:33]requested_item shift.open_date is exist - process it [14:47:33]req_shift_open_date [14:47:33]req_shift_open_date done [14:47:33]produce_requested_data done [14:47:33]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192624,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:47:33]process_action_free close_receipt [14:47:33]json_value_free [14:47:33]json_value_free done [14:47:33]process_json_proto returns [14:47:33]Send response to host [14:47:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192624,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:47:33]free response buf [14:47:33]execute_script done [14:47:33]execute_script returns [14:47:33]free content buf [14:47:33]Sock 9.Close socket [14:47:33]Sock 9.Thread stoped [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49: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:24]accept exits with 7 [14:52:24]New connection [14:52:24]New thread 3066707300 created [14:52:24]Thread 3066563940 joined [14:52:24]Waiting for new connection... [14:52:24] Sock 7.Parse request [14:52:24]Sock 7.Check first char [14:52:24]Sock 7.First char is OK [14:52:24]request: POST /json_proto HTTP/1.0 [14:52:24]Method: POST [14:52:24]URL: /json_proto [14:52:24]Method is POST - this is cgi request [14:52:24]url: /json_proto [14:52:24]query_string will be loaded in cgi processing [14:52:24]execute_cgi json_proto POST (null) [14:52:24]execute_cgi path=json_proto method=POST [14:52:24]POST find Content-Length [14:52:24]Host: 172.17.63.131:8080 [14:52:24]Content-Length: 678 [14:52:24]Content-Type: application/json [14:52:24] [14:52:24]POST finish read [14:52:24]Found Content-Length = 678 [14:52:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:24]execute_script... [14:52:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:24]POST & json_proto [14:52:24]process_json_proto [14:52:24]json parsed OK: [14:52:24]protocol is kg_v1.0 [14:52:24]action value=close_receipt [14:52:24]process_action close_receipt [14:52:24]cmd_close_receipt [14:52:24]MH_GetDate [14:52:24]Write to MH i2c: F0 00 00 C2 4F 00 [14:52:24]Write i2c OK [14:52:24]MH_I2C_Read... [14:52:24]Read from MH i2c: F0 [14:52:24]MH_I2C_Read... [14:52:24]Read from MH i2c: F0 09 00 [14:52:24]MH_I2C_Read... [14:52:24]Read from MH i2c: F0 09 00 C2 4F 00 2D A5 1F 67 22 05 6E 64 5A [14:52:24]GetLastDocTimeStamp 1730126854 [14:52:24]current date 1730127149 [14:52:24]FM_GetShiftState [14:52:24]SAM_PROTO_GetShiftState [14:52:24]wFMCommunicate request_size=4 [14:52:24]MH_SAM_APDU [14:52:24]CAPDU: 80 13 01 00 [14:52:24]Write to MH i2c: E2 08 00 C3 4F 80 13 01 00 00 00 00 00 8F [14:52:24]Write i2c OK [14:52:24]MH_I2C_Read... [14:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:24]Read from MH i2c: E2 [14:52:24]MH_I2C_Read... [14:52:24]Read from MH i2c: E2 0E 00 [14:52:24]MH_I2C_Read... [14:52:24]Read from MH i2c: E2 0E 00 C3 4F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DF [14:52:24]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:52:24]wFMCommunicate OK [14:52:24]SAM_PROTO_GetShiftState done [14:52:24]FM_GetShiftState done [14:52:24]opened in 1730075620 [14:52:24]opened+sec_in_day 1730162020 [14:52:24]quantity*price = 200025 [14:52:24]sum+1 = 200026 [14:52:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 173 28.10.2024 14:52 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192625 ФПД: 111134475085695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T145230&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192625&fm=111134475085695&tin=02508201610067®Number=0000000000091776&sum=200000 [14:52:25]StoreToDocumentArchive [14:52:25]shift 543 fd 192625 [14:52:25]save to /storage/0543/doc_00192625 [14:52:25]save last doc name /storage/0543/doc_00192625 to /storage/kkm_last_doc_name [14:52:25]save OK [14:52:25]Clear old archive folders... [14:52:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:52:25]tlvbuf is 01A50A40 [14:52:25]SAM_PROTO_ClearQueue [14:52:25]wFMCommunicate request_size=4 [14:52:25]MH_SAM_APDU [14:52:25]CAPDU: 80 09 00 00 [14:52:25]Write to MH i2c: E2 08 00 D0 4F 80 09 00 00 00 00 00 00 91 [14:52:25]Write i2c OK [14:52:25]MH_I2C_Read... [14:52:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:25]Read from MH i2c: E2 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 03 00 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 03 00 D0 4F 00 90 00 93 [14:52:25]RAPDU: 90 00 [14:52:25]wFMCommunicate OK [14:52:25]SAM_PROTO_ClearQueue done [14:52:25]KKMCreateOFDPacket [14:52:25]OFDProtocolAddRootSTLVToBuf [14:52:25]FM_MakeSignedData [14:52:25]FM_MakeSignedData [14:52:25]SAM_PROTO_SignData [14:52:25]wFMCommunicate request_size=4 [14:52:25]MH_SAM_APDU [14:52:25]CAPDU: 80 0D 01 02 [14:52:25]Write to MH i2c: E2 08 00 D1 4F 80 0D 01 02 00 00 00 00 99 [14:52:25]Write i2c OK [14:52:25]MH_I2C_Read... [14:52:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:25]Read from MH i2c: E2 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 03 00 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 03 00 D1 4F 00 90 00 94 [14:52:25]RAPDU: 90 00 [14:52:25]wFMCommunicate OK [14:52:25]wFMCommunicate request_size=255 [14:52:25]MH_SAM_APDU [14:52:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 2E A5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 F0 02 00 35 04 06 00 65 13 82 E8 [14:52:25]Write to MH i2c: E2 02 01 D2 4F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 2E A5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 F0 02 00 35 04 06 00 65 13 82 E8 00 00 7D [14:52:25]Write i2c OK [14:52:25]MH_I2C_Read... [14:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:25]Read from MH i2c: E2 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 03 00 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 03 00 D2 4F 00 90 00 95 [14:52:25]RAPDU: 90 00 [14:52:25]wFMCommunicate OK [14:52:25]wFMCommunicate request_size=7 [14:52:25]MH_SAM_APDU [14:52:25]CAPDU: 80 0D 02 02 02 E7 7F [14:52:25]Write to MH i2c: E2 0A 00 D3 4F 80 0D 02 02 02 00 E7 7F 00 00 06 [14:52:25]Write i2c OK [14:52:25]MH_I2C_Read... [14:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:25]Read from MH i2c: E2 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 03 00 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 03 00 D3 4F 00 90 00 96 [14:52:25]RAPDU: 90 00 [14:52:25]wFMCommunicate OK [14:52:25]wFMCommunicate request_size=4 [14:52:25]MH_SAM_APDU [14:52:25]CAPDU: 80 0D 03 02 [14:52:25]Write to MH i2c: E2 08 00 D4 4F 80 0D 03 02 00 00 00 00 9E [14:52:25]Write i2c OK [14:52:25]MH_I2C_Read... [14:52:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:25]Read from MH i2c: E2 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 0B 00 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 0B 00 D4 4F 00 52 E0 76 35 96 C3 BB 31 90 00 C1 [14:52:25]RAPDU: 52 E0 76 35 96 C3 BB 31 90 00 [14:52:25]wFMCommunicate OK [14:52:25]SAM_PROTO_SignData done [14:52:25]FM_MakeSignedData done [14:52:25]CreateOFDProtocolMessage [14:52:25]wFMCommunicate request_size=4 [14:52:25]MH_SAM_APDU [14:52:25]CAPDU: 80 11 00 00 [14:52:25]Write to MH i2c: E2 08 00 D5 4F 80 11 00 00 00 00 00 00 9E [14:52:25]Write i2c OK [14:52:25]MH_I2C_Read... [14:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:25]Read from MH i2c: E2 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 17 00 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: E2 17 00 D5 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [14:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:52:25]wFMCommunicate OK [14:52:25]CreateOFDProtocolMessage done [14:52:25]OFDSenderStorePacket 192625 [14:52:25]StoreOFDPacket docnum=192625 [14:52:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C2 82 04 01 FB 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 2E A5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 F0 02 00 35 04 06 00 65 13 82 E8 E7 7F 52 E0 76 35 96 C3 BB 31 [14:52:25]CheckFolder [14:52:25]dirname=/storage/ofd_packets [14:52:25]CheckFolder done [14:52:25]ProducePacketName [14:52:25]name=ofd_packets/00192625 [14:52:25]NVStorageSaveData ofd_packets/00192625 [14:52:25]File name is /storage/ofd_packets/00192625 [14:52:25]Write 298 bytes [14:52:25]NVStorageSaveData done [14:52:25]OFDSenderStorePacket done [14:52:25]KKMCreateOFDPacket done [14:52:25]NVStorageSaveData kkm_last_timestamp [14:52:25]File name is /storage/kkm_last_timestamp [14:52:25]Write 4 bytes [14:52:25]NVStorageSaveData done [14:52:25]ExternCall_PrintAddStr [14:52:25]wPrintStart [14:52:25]Write to MH i2c: 01 00 00 D6 4F 25 [14:52:25]Write i2c OK [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: 01 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: 01 07 00 [14:52:25]MH_I2C_Read... [14:52:25]Read from MH i2c: 01 07 00 D6 4F 00 00 00 00 00 FF 0F 3A [14:52:25]RasterBufferAndPrint [14:52:25]line Счет N : (1)31949 [14:52:25]line ИНН: 02508201610067 [14:52:25]line Контрольно-Кассовый Чек [14:52:25]line ПРОДАЖА [14:52:25]line ТРК (МРК, ГНК) : 11 [14:52:25]line Товар: 2710194210 [14:52:25]line ДТ-К-5 [14:52:25]line 26.250 * 76.20 [14:52:25]line = 2000.25 [14:52:25]line НДС 12% НСП 1% [14:52:25]line > о реализуемом товаре [14:52:25]line ОКРУГЛЕНИЕ: -0.25 [14:52:25]line ИТОГО: 2000.00 [14:52:25]line Внесено: 2000.00 [14:52:25]line СДАЧА: 0.00 [14:52:25]line НСП 1% : 17.70 [14:52:25]line НДС 12% : 212.42 [14:52:25]line Наличными: 2000.00 [14:52:25]line Безнал.: 0.00 [14:52:25]line Место: АЗС № 170 "Партнер Нефть" [14:52:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:52:25]line СНО: Общий режим [14:52:25]line Чек 173 28.10.2024 14:52 [14:52:25]line Смена: 543 ФФД: 1.0 [14:52:25]line ЗНМ: 0300000110 [14:52:25]line РНМ: 0000000000091776 [14:52:25]line Версия ККМ: 001 [14:52:25]line ФМ: 0000000000871754 [14:52:25]line ФД: 192625 [14:52:25]line ФПД: 111134475085695 [14:52:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T145230&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192625&fm=111134475085695&tin=02508201610067®Number=0000000000091776&sum=200000 [14:52:26]OFD Sender: Processing packet 192625 [packets to send 75, broken 74] [14:52:26]ProducePacketName [14:52:26]name=ofd_packets/00192625 [14:52:26]OFD Sender: To server: pG, [14:52:26]CommunicateWithHost lk.salyk.kg:30040 [14:52:26]ConnectInit lk.salyk.kg [14:52:26]written 0, free lines is 4095 [14:52:26]Connected sock=10 [14:52:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C2 82 04 01 FB 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 2E A5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 F0 02 00 35 04 06 00 65 13 82 E8 E7 7F 52 E0 76 35 96 C3 BB 31 [14:52:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DE CB 47 00 AC B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 F0 02 00 F4 03 04 00 F1 49 1F 67 B6 04 01 00 00 67 40 BD 68 1C 1E 41 3C [14:52:26]CommunicateWithHost err = 0 [14:52:26]CheckOFDResponse [14:52:26]1017 (14) - 77093643461234 [14:52:26]1041 (16) - 0000000000871754 [14:52:26]1040 (4) - 192625 [14:52:26]1012 (4) - 28.10.2024 08:23 [14:52:26]1206 (1) - 0 [14:52:26]OFD Sender: Remove packet 192625 [14:52:26]ProducePacketName [14:52:26]name=ofd_packets/00192625 [14:52:26]NVStorageDeleteData [14:52:26]Write to MH i2c: 01 00 00 01 50 51 [14:52:26]Write i2c OK [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: 01 [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: 01 07 00 [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: 01 07 00 01 50 00 00 00 00 00 B1 0C 15 [14:52:26]RasterBufferAndPrint [14:52:26]line [14:52:26]line [14:52:26]line [14:52:26]line [14:52:26]line [14:52:26]written 0, free lines is 3254 [14:52:26]MH_Cut [14:52:26]Write to MH i2c: D1 01 00 08 50 01 2A [14:52:26]Write i2c OK [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: D1 [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: D1 01 00 [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: D1 01 00 08 50 00 29 [14:52:26]Write to MH i2c: 01 00 00 09 50 59 [14:52:26]Write i2c OK [14:52:26]MH_I2C_Read... [14:52:27]OFD Sender: No OFD packet to send [14:52:27]*** Cut start [14:52:27]*** Partial cut [14:52:27]*** CUTSNS_PIN = 1 [14:52:27]*** CUTSNS_PIN = 0 [14:52:27]*** Brake cut motor [14:52:28]Read from MH i2c: 01 [14:52:28]MH_I2C_Read... [14:52:28]*** Stop cut motor [14:52:28]*** Cut end [14:52:28]Read from MH i2c: 01 07 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: 01 07 00 09 50 00 00 00 00 00 FF 0F 6E [14:52:28]process_action close_receipt done [14:52:28]requested_data is exist [14:52:28]produce_requested_data [14:52:28]requested_item fm.sn is exist - process it [14:52:28]wFMCommunicate request_size=4 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 11 00 00 [14:52:28]Write to MH i2c: E2 08 00 0A 50 80 11 00 00 00 00 00 00 D4 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 17 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 17 00 0A 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 27 [14:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:52:28]wFMCommunicate OK [14:52:28]requested_item fd.num is exist - process it [14:52:28]SAM_PROTO_GetFieldsCounters [14:52:28]wFMCommunicate request_size=4 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 13 00 00 [14:52:28]Write to MH i2c: E2 08 00 0B 50 80 13 00 00 00 00 00 00 D7 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 62 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 62 00 0B 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 71 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [14:52:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 71 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:28]wFMCommunicate OK [14:52:28]SAM_PROTO_GetFieldsCounters done [14:52:28]requested_item shift.num is exist - process it [14:52:28]requested_item shift.opened is exist - process it [14:52:28]req_shift_opened [14:52:28]FM_GetShiftState [14:52:28]SAM_PROTO_GetShiftState [14:52:28]wFMCommunicate request_size=4 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 13 01 00 [14:52:28]Write to MH i2c: E2 08 00 0C 50 80 13 01 00 00 00 00 00 D9 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 0E 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 0E 00 0C 50 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 29 [14:52:28]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:52:28]wFMCommunicate OK [14:52:28]SAM_PROTO_GetShiftState done [14:52:28]FM_GetShiftState done [14:52:28]req_shift_opened done [14:52:28]requested_item shift.open_date is exist - process it [14:52:28]req_shift_open_date [14:52:28]req_shift_open_date done [14:52:28]produce_requested_data done [14:52:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192625,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:52:28]process_action_free close_receipt [14:52:28]json_value_free [14:52:28]json_value_free done [14:52:28]process_json_proto returns [14:52:28]Send response to host [14:52:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192625,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:52:28]free response buf [14:52:28]execute_script done [14:52:28]execute_script returns [14:52:28]free content buf [14:52:28]Sock 7.Close socket [14:52:28]Sock 7.Thread stoped [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:18]accept exits with 9 [14:54:18]New connection [14:54:18]New thread 3066563940 created [14:54:18]Thread 3066707300 joined [14:54:18]Waiting for new connection... [14:54:18] Sock 9.Parse request [14:54:18]Sock 9.Check first char [14:54:18]Sock 9.First char is OK [14:54:18]request: POST /json_proto HTTP/1.0 [14:54:18]Method: POST [14:54:18]URL: /json_proto [14:54:18]Method is POST - this is cgi request [14:54:18]url: /json_proto [14:54:18]query_string will be loaded in cgi processing [14:54:18]execute_cgi json_proto POST (null) [14:54:18]execute_cgi path=json_proto method=POST [14:54:18]POST find Content-Length [14:54:18]Host: 172.17.63.131:8080 [14:54:18]Content-Length: 681 [14:54:18]Content-Type: application/json [14:54:18] [14:54:18]POST finish read [14:54:18]Found Content-Length = 681 [14:54:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:18]execute_script... [14:54:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:18]POST & json_proto [14:54:18]process_json_proto [14:54:18]json parsed OK: [14:54:18]protocol is kg_v1.0 [14:54:18]action value=close_receipt [14:54:18]process_action close_receipt [14:54:18]cmd_close_receipt [14:54:18]MH_GetDate [14:54:18]Write to MH i2c: F0 00 00 0D 50 4C [14:54:18]Write i2c OK [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: F0 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: F0 09 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: F0 09 00 0D 50 00 9F A5 1F 67 22 05 6E 64 18 [14:54:18]GetLastDocTimeStamp 1730127150 [14:54:18]current date 1730127263 [14:54:18]FM_GetShiftState [14:54:18]SAM_PROTO_GetShiftState [14:54:18]wFMCommunicate request_size=4 [14:54:18]MH_SAM_APDU [14:54:18]CAPDU: 80 13 01 00 [14:54:18]Write to MH i2c: E2 08 00 0E 50 80 13 01 00 00 00 00 00 DB [14:54:18]Write i2c OK [14:54:18]MH_I2C_Read... [14:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:18]Read from MH i2c: E2 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 0E 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 0E 00 0E 50 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2B [14:54:18]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:54:18]wFMCommunicate OK [14:54:18]SAM_PROTO_GetShiftState done [14:54:18]FM_GetShiftState done [14:54:18]opened in 1730075620 [14:54:18]opened+sec_in_day 1730162020 [14:54:18]quantity*price = 150056 [14:54:18]sum+1 = 150058 [14:54:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 174 28.10.2024 14:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192626 ФПД: 185532348225045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T145423&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192626&fm=185532348225045&tin=02508201610067®Number=0000000000091776&sum=150000 [14:54:19]StoreToDocumentArchive [14:54:19]shift 543 fd 192626 [14:54:19]save to /storage/0543/doc_00192626 [14:54:19]save last doc name /storage/0543/doc_00192626 to /storage/kkm_last_doc_name [14:54:19]save OK [14:54:19]Clear old archive folders... [14:54:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:54:19]tlvbuf is 019D4FA0 [14:54:19]SAM_PROTO_ClearQueue [14:54:19]wFMCommunicate request_size=4 [14:54:19]MH_SAM_APDU [14:54:19]CAPDU: 80 09 00 00 [14:54:19]Write to MH i2c: E2 08 00 1B 50 80 09 00 00 00 00 00 00 DD [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:19]Read from MH i2c: E2 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 03 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 03 00 1B 50 00 90 00 DF [14:54:19]RAPDU: 90 00 [14:54:19]wFMCommunicate OK [14:54:19]SAM_PROTO_ClearQueue done [14:54:19]KKMCreateOFDPacket [14:54:19]OFDProtocolAddRootSTLVToBuf [14:54:19]FM_MakeSignedData [14:54:19]FM_MakeSignedData [14:54:19]SAM_PROTO_SignData [14:54:19]wFMCommunicate request_size=4 [14:54:19]MH_SAM_APDU [14:54:19]CAPDU: 80 0D 01 02 [14:54:19]Write to MH i2c: E2 08 00 1C 50 80 0D 01 02 00 00 00 00 E5 [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:19]Read from MH i2c: E2 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 03 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 03 00 1C 50 00 90 00 E0 [14:54:19]RAPDU: 90 00 [14:54:19]wFMCommunicate OK [14:54:19]wFMCommunicate request_size=255 [14:54:19]MH_SAM_APDU [14:54:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 9F A5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 F0 02 00 35 04 06 00 A8 [14:54:19]Write to MH i2c: E2 02 01 1D 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 9F A5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 F0 02 00 35 04 06 00 A8 00 00 67 [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:19]Read from MH i2c: E2 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 03 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 03 00 1D 50 00 90 00 E1 [14:54:19]RAPDU: 90 00 [14:54:19]wFMCommunicate OK [14:54:19]wFMCommunicate request_size=10 [14:54:19]MH_SAM_APDU [14:54:19]CAPDU: 80 0D 02 02 05 BD 9D B5 D6 15 [14:54:19]Write to MH i2c: E2 0D 00 1E 50 80 0D 02 02 05 00 BD 9D B5 D6 15 00 00 EC [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:19]Read from MH i2c: E2 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 03 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 03 00 1E 50 00 90 00 E2 [14:54:19]RAPDU: 90 00 [14:54:19]wFMCommunicate OK [14:54:19]wFMCommunicate request_size=4 [14:54:19]MH_SAM_APDU [14:54:19]CAPDU: 80 0D 03 02 [14:54:19]Write to MH i2c: E2 08 00 1F 50 80 0D 03 02 00 00 00 00 EA [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:19]Read from MH i2c: E2 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 0B 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 0B 00 1F 50 00 B0 F4 F6 D6 5B 5B 21 50 90 00 82 [14:54:19]RAPDU: B0 F4 F6 D6 5B 5B 21 50 90 00 [14:54:19]wFMCommunicate OK [14:54:19]SAM_PROTO_SignData done [14:54:19]FM_MakeSignedData done [14:54:19]CreateOFDProtocolMessage [14:54:19]wFMCommunicate request_size=4 [14:54:19]MH_SAM_APDU [14:54:19]CAPDU: 80 11 00 00 [14:54:19]Write to MH i2c: E2 08 00 20 50 80 11 00 00 00 00 00 00 EA [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:19]Read from MH i2c: E2 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 17 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: E2 17 00 20 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3D [14:54:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:54:19]wFMCommunicate OK [14:54:19]CreateOFDProtocolMessage done [14:54:19]OFDSenderStorePacket 192626 [14:54:19]StoreOFDPacket docnum=192626 [14:54:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5C 9D 07 01 77 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 9F A5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 F0 02 00 35 04 06 00 A8 BD 9D B5 D6 15 B0 F4 F6 D6 5B 5B 21 50 [14:54:19]CheckFolder [14:54:19]dirname=/storage/ofd_packets [14:54:19]CheckFolder done [14:54:19]ProducePacketName [14:54:19]name=ofd_packets/00192626 [14:54:19]NVStorageSaveData ofd_packets/00192626 [14:54:19]File name is /storage/ofd_packets/00192626 [14:54:19]Write 301 bytes [14:54:19]NVStorageSaveData done [14:54:19]OFDSenderStorePacket done [14:54:19]KKMCreateOFDPacket done [14:54:19]NVStorageSaveData kkm_last_timestamp [14:54:19]File name is /storage/kkm_last_timestamp [14:54:19]Write 4 bytes [14:54:19]NVStorageSaveData done [14:54:19]OFD Sender: Processing packet 192626 [packets to send 75, broken 74] [14:54:19]ProducePacketName [14:54:19]name=ofd_packets/00192626 [14:54:19]OFD Sender: To server: pG, [14:54:19]CommunicateWithHost lk.salyk.kg:30040 [14:54:19]ConnectInit lk.salyk.kg [14:54:19]ExternCall_PrintAddStr [14:54:19]wPrintStart [14:54:19]Write to MH i2c: 01 00 00 21 50 71 [14:54:19]Write i2c OK [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: 01 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: 01 07 00 [14:54:19]MH_I2C_Read... [14:54:19]Read from MH i2c: 01 07 00 21 50 00 00 00 00 00 FF 0F 86 [14:54:19]RasterBufferAndPrint [14:54:19]line Счет N : (1)31950 [14:54:19]line ИНН: 02508201610067 [14:54:19]line Контрольно-Кассовый Чек [14:54:19]line ПРОДАЖА [14:54:19]line ТРК (МРК, ГНК) : 21 [14:54:19]line Товар: 2710124130 [14:54:19]line Аи-92-К-5 [14:54:19]line 22.430 * 66.90 [14:54:19]line = 1500.57 [14:54:19]line НДС 12% НСП 1% [14:54:19]line > о реализуемом товаре [14:54:19]line ОКРУГЛЕНИЕ: -0.57 [14:54:19]line ИТОГО: 1500.00 [14:54:19]line Внесено: 1500.00 [14:54:19]line СДАЧА: 0.00 [14:54:19]line НСП 1% : 13.28 [14:54:19]line НДС 12% : 159.35 [14:54:19]line Наличными: 1500.00 [14:54:19]line Безнал.: 0.00 [14:54:19]line Место: АЗС № 170 "Партнер Нефть" [14:54:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:54:19]line СНО: Общий режим [14:54:19]line Чек 174 28.10.2024 14:54 [14:54:19]line Смена: 543 ФФД: 1.0 [14:54:19]line ЗНМ: 0300000110 [14:54:19]line РНМ: 0000000000091776 [14:54:19]line Версия ККМ: 001 [14:54:19]line ФМ: 0000000000871754 [14:54:19]line ФД: 192626 [14:54:20]line ФПД: 185532348225045 [14:54:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T145423&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192626&fm=185532348225045&tin=02508201610067®Number=0000000000091776&sum=150000 [14:54:20]Connected sock=11 [14: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 31 37 35 34 0F 01 00 00 5C 9D 07 01 77 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 9F A5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 F0 02 00 35 04 06 00 A8 BD 9D B5 D6 15 B0 F4 F6 D6 5B 5B 21 50 [14:54:20]written 0, free lines is 4095 [14:54:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CB 7E 47 00 E7 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 F0 02 00 F4 03 04 00 63 4A 1F 67 B6 04 01 00 00 2D 40 C5 76 E0 70 63 F6 [14:54:20]CommunicateWithHost err = 0 [14:54:20]CheckOFDResponse [14:54:20]1017 (14) - 77093643461234 [14:54:20]1041 (16) - 0000000000871754 [14:54:20]1040 (4) - 192626 [14:54:20]1012 (4) - 28.10.2024 08:25 [14:54:20]1206 (1) - 0 [14:54:20]OFD Sender: Remove packet 192626 [14:54:20]ProducePacketName [14:54:20]name=ofd_packets/00192626 [14:54:20]NVStorageDeleteData [14:54:20]Write to MH i2c: 01 00 00 4C 50 9C [14:54:20]Write i2c OK [14:54:20]MH_I2C_Read... [14:54:20]Read from MH i2c: 01 [14:54:20]MH_I2C_Read... [14:54:20]Read from MH i2c: 01 07 00 [14:54:20]MH_I2C_Read... [14:54:20]Read from MH i2c: 01 07 00 4C 50 00 00 00 00 00 BA 0C 69 [14:54:20]RasterBufferAndPrint [14:54:20]line [14:54:20]line [14:54:20]line [14:54:20]line [14:54:20]line [14:54:20]written 0, free lines is 3265 [14:54:20]MH_Cut [14:54:20]Write to MH i2c: D1 01 00 53 50 01 75 [14:54:20]Write i2c OK [14:54:20]MH_I2C_Read... [14:54:20]Read from MH i2c: D1 [14:54:20]MH_I2C_Read... [14:54:20]Read from MH i2c: D1 01 00 [14:54:20]MH_I2C_Read... [14:54:20]Read from MH i2c: D1 01 00 53 50 00 74 [14:54:20]Write to MH i2c: 01 00 00 54 50 A4 [14:54:20]Write i2c OK [14:54:20]MH_I2C_Read... [14:54:20]OFD Sender: No OFD packet to send [14:54:21]*** Cut start [14:54:21]*** Partial cut [14:54:21]*** CUTSNS_PIN = 1 [14:54:21]*** CUTSNS_PIN = 0 [14:54:21]*** Brake cut motor [14:54:21]Read from MH i2c: 01 [14:54:22]MH_I2C_Read... [14:54:22]*** Stop cut motor [14:54:22]*** Cut end [14:54:22]Read from MH i2c: 01 07 00 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: 01 07 00 54 50 00 00 00 00 00 FF 0F B9 [14:54:22]process_action close_receipt done [14:54:22]requested_data is exist [14:54:22]produce_requested_data [14:54:22]requested_item fm.sn is exist - process it [14:54:22]wFMCommunicate request_size=4 [14:54:22]MH_SAM_APDU [14:54:22]CAPDU: 80 11 00 00 [14:54:22]Write to MH i2c: E2 08 00 55 50 80 11 00 00 00 00 00 00 1F [14:54:22]Write i2c OK [14:54:22]MH_I2C_Read... [14:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:22]Read from MH i2c: E2 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 17 00 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 17 00 55 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 72 [14:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:54:22]wFMCommunicate OK [14:54:22]requested_item fd.num is exist - process it [14:54:22]SAM_PROTO_GetFieldsCounters [14:54:22]wFMCommunicate request_size=4 [14:54:22]MH_SAM_APDU [14:54:22]CAPDU: 80 13 00 00 [14:54:22]Write to MH i2c: E2 08 00 56 50 80 13 00 00 00 00 00 00 22 [14:54:22]Write i2c OK [14:54:22]MH_I2C_Read... [14:54:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:22]Read from MH i2c: E2 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 62 00 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 62 00 56 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 72 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [14: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 72 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:22]wFMCommunicate OK [14:54:22]SAM_PROTO_GetFieldsCounters done [14:54:22]requested_item shift.num is exist - process it [14:54:22]requested_item shift.opened is exist - process it [14:54:22]req_shift_opened [14:54:22]FM_GetShiftState [14:54:22]SAM_PROTO_GetShiftState [14:54:22]wFMCommunicate request_size=4 [14:54:22]MH_SAM_APDU [14:54:22]CAPDU: 80 13 01 00 [14:54:22]Write to MH i2c: E2 08 00 57 50 80 13 01 00 00 00 00 00 24 [14:54:22]Write i2c OK [14:54:22]MH_I2C_Read... [14:54:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:22]Read from MH i2c: E2 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 0E 00 [14:54:22]MH_I2C_Read... [14:54:22]Read from MH i2c: E2 0E 00 57 50 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 74 [14:54:22]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:54:22]wFMCommunicate OK [14:54:22]SAM_PROTO_GetShiftState done [14:54:22]FM_GetShiftState done [14:54:22]req_shift_opened done [14:54:22]requested_item shift.open_date is exist - process it [14:54:22]req_shift_open_date [14:54:22]req_shift_open_date done [14:54:22]produce_requested_data done [14:54:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192626,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:54:22]process_action_free close_receipt [14:54:22]json_value_free [14:54:22]json_value_free done [14:54:22]process_json_proto returns [14:54:22]Send response to host [14:54:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192626,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:54:22]free response buf [14:54:22]execute_script done [14:54:22]execute_script returns [14:54:22]free content buf [14:54:22]Sock 9.Close socket [14:54:22]Sock 9.Thread stoped [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]accept exits with 7 [14:55:35]New connection [14:55:35]New thread 3066707300 created [14:55:35]Thread 3066563940 joined [14:55:35]Waiting for new connection... [14:55:35] Sock 7.Parse request [14:55:35]Sock 7.Check first char [14:55:35]Sock 7.First char is OK [14:55:35]request: POST /json_proto HTTP/1.0 [14:55:35]Method: POST [14:55:35]URL: /json_proto [14:55:35]Method is POST - this is cgi request [14:55:35]url: /json_proto [14:55:35]query_string will be loaded in cgi processing [14:55:35]execute_cgi json_proto POST (null) [14:55:35]execute_cgi path=json_proto method=POST [14:55:35]POST find Content-Length [14:55:35]Host: 172.17.63.131:8080 [14:55:35]Content-Length: 676 [14:55:35]Content-Type: application/json [14:55:35] [14:55:35]POST finish read [14:55:35]Found Content-Length = 676 [14:55:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:35]execute_script... [14:55: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)31951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:35]POST & json_proto [14:55:35]process_json_proto [14:55:35]json parsed OK: [14:55:35]protocol is kg_v1.0 [14:55:35]action value=close_receipt [14:55:35]process_action close_receipt [14:55:35]cmd_close_receipt [14:55:35]MH_GetDate [14:55:35]Write to MH i2c: F0 00 00 58 50 97 [14:55:35]Write i2c OK [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: F0 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: F0 09 00 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: F0 09 00 58 50 00 EC A5 1F 67 22 05 6E 64 B0 [14:55:35]GetLastDocTimeStamp 1730127263 [14:55:35]current date 1730127340 [14:55:35]FM_GetShiftState [14:55:35]SAM_PROTO_GetShiftState [14:55:35]wFMCommunicate request_size=4 [14:55:35]MH_SAM_APDU [14:55:35]CAPDU: 80 13 01 00 [14:55:35]Write to MH i2c: E2 08 00 59 50 80 13 01 00 00 00 00 00 26 [14:55:35]Write i2c OK [14:55:35]MH_I2C_Read... [14:55:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:35]Read from MH i2c: E2 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: E2 0E 00 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: E2 0E 00 59 50 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 76 [14:55:35]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:55:35]wFMCommunicate OK [14:55:35]SAM_PROTO_GetShiftState done [14:55:35]FM_GetShiftState done [14:55:35]opened in 1730075620 [14:55:35]opened+sec_in_day 1730162020 [14:55:35]quantity*price = 50041 [14:55:35]sum+1 = 50042 [14:55:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 175 28.10.2024 14:55 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192627 ФПД: 260706757711939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T145540&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192627&fm=260706757711939&tin=02508201610067®Number=0000000000091776&sum=50000 [14:55:36]StoreToDocumentArchive [14:55:36]shift 543 fd 192627 [14:55:36]save to /storage/0543/doc_00192627 [14:55:36]save last doc name /storage/0543/doc_00192627 to /storage/kkm_last_doc_name [14:55:36]save OK [14:55:36]Clear old archive folders... [14:55:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:36]tlvbuf is B6E9EA40 [14:55:36]SAM_PROTO_ClearQueue [14:55:36]wFMCommunicate request_size=4 [14:55:36]MH_SAM_APDU [14:55:36]CAPDU: 80 09 00 00 [14:55:36]Write to MH i2c: E2 08 00 66 50 80 09 00 00 00 00 00 00 28 [14:55:36]Write i2c OK [14:55:36]MH_I2C_Read... [14:55:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:36]Read from MH i2c: E2 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 03 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 03 00 66 50 00 90 00 2A [14:55:36]RAPDU: 90 00 [14:55:36]wFMCommunicate OK [14:55:36]SAM_PROTO_ClearQueue done [14:55:36]KKMCreateOFDPacket [14:55:36]OFDProtocolAddRootSTLVToBuf [14:55:36]FM_MakeSignedData [14:55:36]FM_MakeSignedData [14:55:36]SAM_PROTO_SignData [14:55:36]wFMCommunicate request_size=4 [14:55:36]MH_SAM_APDU [14:55:36]CAPDU: 80 0D 01 02 [14:55:36]Write to MH i2c: E2 08 00 67 50 80 0D 01 02 00 00 00 00 30 [14:55:36]Write i2c OK [14:55:36]MH_I2C_Read... [14:55:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:36]Read from MH i2c: E2 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 03 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 03 00 67 50 00 90 00 2B [14:55:36]RAPDU: 90 00 [14:55:36]wFMCommunicate OK [14:55:36]wFMCommunicate request_size=255 [14:55:36]MH_SAM_APDU [14:55:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 EC A5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 F0 02 00 35 04 06 00 ED [14:55:36]Write to MH i2c: E2 02 01 68 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 EC A5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 F0 02 00 35 04 06 00 ED 00 00 FD [14:55:36]Write i2c OK [14:55:36]MH_I2C_Read... [14:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:36]Read from MH i2c: E2 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 03 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 03 00 68 50 00 90 00 2C [14:55:36]RAPDU: 90 00 [14:55:36]wFMCommunicate OK [14:55:36]wFMCommunicate request_size=10 [14:55:36]MH_SAM_APDU [14:55:36]CAPDU: 80 0D 02 02 05 1C 85 AF 18 43 [14:55:36]Write to MH i2c: E2 0D 00 69 50 80 0D 02 02 05 00 1C 85 AF 18 43 00 00 E8 [14:55:36]Write i2c OK [14:55:36]MH_I2C_Read... [14:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:36]Read from MH i2c: E2 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 03 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 03 00 69 50 00 90 00 2D [14:55:36]RAPDU: 90 00 [14:55:36]wFMCommunicate OK [14:55:36]wFMCommunicate request_size=4 [14:55:36]MH_SAM_APDU [14:55:36]CAPDU: 80 0D 03 02 [14:55:36]Write to MH i2c: E2 08 00 6A 50 80 0D 03 02 00 00 00 00 35 [14:55:36]Write i2c OK [14:55:36]MH_I2C_Read... [14:55:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:36]Read from MH i2c: E2 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 0B 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 0B 00 6A 50 00 31 0E B3 04 7F BA B7 F1 90 00 0D [14:55:36]RAPDU: 31 0E B3 04 7F BA B7 F1 90 00 [14:55:36]wFMCommunicate OK [14:55:36]SAM_PROTO_SignData done [14:55:36]FM_MakeSignedData done [14:55:36]CreateOFDProtocolMessage [14:55:36]wFMCommunicate request_size=4 [14:55:36]MH_SAM_APDU [14:55:36]CAPDU: 80 11 00 00 [14:55:36]Write to MH i2c: E2 08 00 6B 50 80 11 00 00 00 00 00 00 35 [14:55:36]Write i2c OK [14:55:36]MH_I2C_Read... [14:55:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:36]Read from MH i2c: E2 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 17 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 17 00 6B 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 88 [14:55:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:55:36]wFMCommunicate OK [14:55:36]CreateOFDProtocolMessage done [14:55:36]OFDSenderStorePacket 192627 [14:55:36]StoreOFDPacket docnum=192627 [14:55:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 67 82 07 01 19 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 EC A5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 F0 02 00 35 04 06 00 ED 1C 85 AF 18 43 31 0E B3 04 7F BA B7 F1 [14:55:36]CheckFolder [14:55:36]dirname=/storage/ofd_packets [14:55:36]CheckFolder done [14:55:36]ProducePacketName [14:55:36]name=ofd_packets/00192627 [14:55:36]NVStorageSaveData ofd_packets/00192627 [14:55:36]File name is /storage/ofd_packets/00192627 [14:55:36]Write 301 bytes [14:55:36]NVStorageSaveData done [14:55:36]OFDSenderStorePacket done [14:55:36]KKMCreateOFDPacket done [14:55:36]NVStorageSaveData kkm_last_timestamp [14:55:36]File name is /storage/kkm_last_timestamp [14:55:36]Write 4 bytes [14:55:36]NVStorageSaveData done [14:55:36]ExternCall_PrintAddStr [14:55:36]wPrintStart [14:55:36]Write to MH i2c: 01 00 00 6C 50 BC [14:55:36]Write i2c OK [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: 01 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: 01 07 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: 01 07 00 6C 50 00 00 00 00 00 FF 0F D1 [14:55:36]RasterBufferAndPrint [14:55:36]line Счет N : (1)31951 [14:55:36]line ИНН: 02508201610067 [14:55:36]line Контрольно-Кассовый Чек [14:55:36]line ПРОДАЖА [14:55:36]line ТРК (МРК, ГНК) : 21 [14:55:36]line Товар: 2710124130 [14:55:36]line Аи-92-К-5 [14:55:36]line 7.480 * 66.90 [14:55:36]line = 500.41 [14:55:36]line НДС 12% НСП 1% [14:55:36]line > о реализуемом товаре [14:55:36]line ОКРУГЛЕНИЕ: -0.41 [14:55:36]line ИТОГО: 500.00 [14:55:36]line Внесено: 500.00 [14:55:36]line СДАЧА: 0.00 [14:55:36]line НСП 1% : 4.43 [14:55:36]line НДС 12% : 53.14 [14:55:36]line Наличными: 500.00 [14:55:36]line Безнал.: 0.00 [14:55:36]line Место: АЗС № 170 "Партнер Нефть" [14:55:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:55:36]line СНО: Общий режим [14:55:36]line Чек 175 28.10.2024 14:55 [14:55:36]line Смена: 543 ФФД: 1.0 [14:55:36]line ЗНМ: 0300000110 [14:55:36]line РНМ: 0000000000091776 [14:55:36]line Версия ККМ: 001 [14:55:36]line ФМ: 0000000000871754 [14:55:36]line ФД: 192627 [14:55:36]line ФПД: 260706757711939 [14:55:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T145540&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192627&fm=260706757711939&tin=02508201610067®Number=0000000000091776&sum=50000 [14:55:37]OFD Sender: Processing packet 192627 [packets to send 75, broken 74] [14:55:37]ProducePacketName [14:55:37]name=ofd_packets/00192627 [14:55:37]OFD Sender: To server: pG, [14:55:37]CommunicateWithHost lk.salyk.kg:30040 [14:55:37]ConnectInit lk.salyk.kg [14:55:37]written 0, free lines is 4095 [14:55:37]Connected sock=10 [14:55:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 67 82 07 01 19 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 EC A5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 F0 02 00 35 04 06 00 ED 1C 85 AF 18 43 31 0E B3 04 7F BA B7 F1 [14:55:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C3 DA 47 00 BB AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 F0 02 00 F4 03 04 00 B0 4A 1F 67 B6 04 01 00 00 73 CA 6D 8C 81 48 43 0E [14:55:37]CommunicateWithHost err = 0 [14:55:37]CheckOFDResponse [14:55:37]1017 (14) - 77093643461234 [14:55:37]1041 (16) - 0000000000871754 [14:55:37]1040 (4) - 192627 [14:55:37]1012 (4) - 28.10.2024 08:26 [14:55:37]1206 (1) - 0 [14:55:37]OFD Sender: Remove packet 192627 [14:55:37]ProducePacketName [14:55:37]name=ofd_packets/00192627 [14:55:37]NVStorageDeleteData [14:55:37]Write to MH i2c: 01 00 00 97 50 E7 [14:55:37]Write i2c OK [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: 01 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: 01 07 00 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: 01 07 00 97 50 00 00 00 00 00 BB 0C B5 [14:55:37]RasterBufferAndPrint [14:55:37]line [14:55:37]line [14:55:37]line [14:55:37]line [14:55:37]line [14:55:37]written 0, free lines is 3264 [14:55:37]MH_Cut [14:55:37]Write to MH i2c: D1 01 00 9E 50 01 C0 [14:55:37]Write i2c OK [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: D1 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: D1 01 00 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: D1 01 00 9E 50 00 BF [14:55:37]Write to MH i2c: 01 00 00 9F 50 EF [14:55:37]Write i2c OK [14:55:37]MH_I2C_Read... [14:55:37]OFD Sender: No OFD packet to send [14:55:38]*** Cut start [14:55:38]*** Partial cut [14:55:38]*** CUTSNS_PIN = 1 [14:55:38]*** CUTSNS_PIN = 0 [14:55:38]*** Brake cut motor [14:55:39]Read from MH i2c: 01 [14:55:39]MH_I2C_Read... [14:55:39]*** Stop cut motor [14:55:39]*** Cut end [14:55:39]Read from MH i2c: 01 07 00 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: 01 07 00 9F 50 00 00 00 00 00 FF 0F 04 [14:55:39]process_action close_receipt done [14:55:39]requested_data is exist [14:55:39]produce_requested_data [14:55:39]requested_item fm.sn is exist - process it [14:55:39]wFMCommunicate request_size=4 [14:55:39]MH_SAM_APDU [14:55:39]CAPDU: 80 11 00 00 [14:55:39]Write to MH i2c: E2 08 00 A0 50 80 11 00 00 00 00 00 00 6A [14:55:39]Write i2c OK [14:55:39]MH_I2C_Read... [14:55:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:39]Read from MH i2c: E2 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: E2 17 00 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: E2 17 00 A0 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BD [14:55:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:55:39]wFMCommunicate OK [14:55:39]requested_item fd.num is exist - process it [14:55:39]SAM_PROTO_GetFieldsCounters [14:55:39]wFMCommunicate request_size=4 [14:55:39]MH_SAM_APDU [14:55:39]CAPDU: 80 13 00 00 [14:55:39]Write to MH i2c: E2 08 00 A1 50 80 13 00 00 00 00 00 00 6D [14:55:39]Write i2c OK [14:55:39]MH_I2C_Read... [14:55:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:39]Read from MH i2c: E2 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: E2 62 00 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: E2 62 00 A1 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 73 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [14:55:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 73 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:39]wFMCommunicate OK [14:55:39]SAM_PROTO_GetFieldsCounters done [14:55:39]requested_item shift.num is exist - process it [14:55:39]requested_item shift.opened is exist - process it [14:55:39]req_shift_opened [14:55:39]FM_GetShiftState [14:55:39]SAM_PROTO_GetShiftState [14:55:39]wFMCommunicate request_size=4 [14:55:39]MH_SAM_APDU [14:55:39]CAPDU: 80 13 01 00 [14:55:39]Write to MH i2c: E2 08 00 A2 50 80 13 01 00 00 00 00 00 6F [14:55:39]Write i2c OK [14:55:39]MH_I2C_Read... [14:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:39]Read from MH i2c: E2 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: E2 0E 00 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: E2 0E 00 A2 50 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 BF [14:55:39]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [14:55:39]wFMCommunicate OK [14:55:39]SAM_PROTO_GetShiftState done [14:55:39]FM_GetShiftState done [14:55:39]req_shift_opened done [14:55:39]requested_item shift.open_date is exist - process it [14:55:39]req_shift_open_date [14:55:39]req_shift_open_date done [14:55:39]produce_requested_data done [14:55:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192627,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [14:55:39]process_action_free close_receipt [14:55:39]json_value_free [14:55:39]json_value_free done [14:55:39]process_json_proto returns [14:55:39]Send response to host [14:55:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192627,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [14:55:39]free response buf [14:55:39]execute_script done [14:55:39]execute_script returns [14:55:39]free content buf [14:55:39]Sock 7.Close socket [14:55:39]Sock 7.Thread stoped [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:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:23]OFD Sender: No OFD packet to send [14:56:28]OFD Sender: No OFD packet to send [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:58]OFD Sender: No OFD packet to send [14:57:03]OFD Sender: No OFD packet to send [14:57:08]OFD Sender: No OFD packet to send [14:57:13]OFD Sender: No OFD packet to send [14:57:18]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:28]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:43]accept exits with 9 [15:01:43]New connection [15:01:43]New thread 3066563940 created [15:01:43]Thread 3066707300 joined [15:01:43]Waiting for new connection... [15:01:43] Sock 9.Parse request [15:01:43]Sock 9.Check first char [15:01:43]Sock 9.First char is OK [15:01:43]request: POST /json_proto HTTP/1.0 [15:01:43]Method: POST [15:01:43]URL: /json_proto [15:01:43]Method is POST - this is cgi request [15:01:43]url: /json_proto [15:01:43]query_string will be loaded in cgi processing [15:01:43]execute_cgi json_proto POST (null) [15:01:43]execute_cgi path=json_proto method=POST [15:01:43]POST find Content-Length [15:01:43]Host: 172.17.63.131:8080 [15:01:43]Content-Length: 678 [15:01:43]Content-Type: application/json [15:01:43] [15:01:43]POST finish read [15:01:43]Found Content-Length = 678 [15:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:43]execute_script... [15:01: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)31952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:43]POST & json_proto [15:01:43]process_json_proto [15:01:43]json parsed OK: [15:01:43]protocol is kg_v1.0 [15:01:43]action value=close_receipt [15:01:43]process_action close_receipt [15:01:43]cmd_close_receipt [15:01:43]MH_GetDate [15:01:43]Write to MH i2c: F0 00 00 A3 50 E2 [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: F0 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: F0 09 00 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: F0 09 00 A3 50 00 5D A7 1F 67 22 05 6E 64 6E [15:01:43]GetLastDocTimeStamp 1730127340 [15:01:43]current date 1730127709 [15:01:43]FM_GetShiftState [15:01:43]SAM_PROTO_GetShiftState [15:01:43]wFMCommunicate request_size=4 [15:01:43]MH_SAM_APDU [15:01:43]CAPDU: 80 13 01 00 [15:01:43]Write to MH i2c: E2 08 00 A4 50 80 13 01 00 00 00 00 00 71 [15:01:43]Write i2c OK [15:01:43]MH_I2C_Read... [15:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:43]Read from MH i2c: E2 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 0E 00 [15:01:43]MH_I2C_Read... [15:01:43]Read from MH i2c: E2 0E 00 A4 50 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C1 [15:01:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:01:43]wFMCommunicate OK [15:01:43]SAM_PROTO_GetShiftState done [15:01:43]FM_GetShiftState done [15:01:43]opened in 1730075620 [15:01:43]opened+sec_in_day 1730162020 [15:01:43]quantity*price = 100050 [15:01:43]sum+1 = 100052 [15:01:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 176 28.10.2024 15:01 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192628 ФПД: 275152799819357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T150149&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192628&fm=275152799819357&tin=02508201610067®Number=0000000000091776&sum=100000 [15:01:45]StoreToDocumentArchive [15:01:45]shift 543 fd 192628 [15:01:45]save to /storage/0543/doc_00192628 [15:01:45]save last doc name /storage/0543/doc_00192628 to /storage/kkm_last_doc_name [15:01:45]save OK [15:01:45]Clear old archive folders... [15:01:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:01:45]tlvbuf is 0197DA60 [15:01:45]SAM_PROTO_ClearQueue [15:01:45]wFMCommunicate request_size=4 [15:01:45]MH_SAM_APDU [15:01:45]CAPDU: 80 09 00 00 [15:01:45]Write to MH i2c: E2 08 00 B1 50 80 09 00 00 00 00 00 00 73 [15:01:45]Write i2c OK [15:01:45]MH_I2C_Read... [15:01:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:45]Read from MH i2c: E2 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 03 00 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 03 00 B1 50 00 90 00 75 [15:01:45]RAPDU: 90 00 [15:01:45]wFMCommunicate OK [15:01:45]SAM_PROTO_ClearQueue done [15:01:45]KKMCreateOFDPacket [15:01:45]OFDProtocolAddRootSTLVToBuf [15:01:45]FM_MakeSignedData [15:01:45]FM_MakeSignedData [15:01:45]SAM_PROTO_SignData [15:01:45]wFMCommunicate request_size=4 [15:01:45]MH_SAM_APDU [15:01:45]CAPDU: 80 0D 01 02 [15:01:45]Write to MH i2c: E2 08 00 B2 50 80 0D 01 02 00 00 00 00 7B [15:01:45]Write i2c OK [15:01:45]MH_I2C_Read... [15:01:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:45]Read from MH i2c: E2 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 03 00 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 03 00 B2 50 00 90 00 76 [15:01:45]RAPDU: 90 00 [15:01:45]wFMCommunicate OK [15:01:45]wFMCommunicate request_size=255 [15:01:45]MH_SAM_APDU [15:01:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 5D A7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 F0 02 00 35 04 06 00 FA 40 00 E4 [15:01:45]Write to MH i2c: E2 02 01 B3 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 5D A7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 F0 02 00 35 04 06 00 FA 40 00 E4 00 00 E4 [15:01:45]Write i2c OK [15:01:45]MH_I2C_Read... [15:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:45]Read from MH i2c: E2 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 03 00 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 03 00 B3 50 00 90 00 77 [15:01:45]RAPDU: 90 00 [15:01:45]wFMCommunicate OK [15:01:45]wFMCommunicate request_size=7 [15:01:45]MH_SAM_APDU [15:01:45]CAPDU: 80 0D 02 02 02 66 5D [15:01:45]Write to MH i2c: E2 0A 00 B4 50 80 0D 02 02 02 00 66 5D 00 00 45 [15:01:45]Write i2c OK [15:01:45]MH_I2C_Read... [15:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:45]Read from MH i2c: E2 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 03 00 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 03 00 B4 50 00 90 00 78 [15:01:45]RAPDU: 90 00 [15:01:45]wFMCommunicate OK [15:01:45]wFMCommunicate request_size=4 [15:01:45]MH_SAM_APDU [15:01:45]CAPDU: 80 0D 03 02 [15:01:45]Write to MH i2c: E2 08 00 B5 50 80 0D 03 02 00 00 00 00 80 [15:01:45]Write i2c OK [15:01:45]MH_I2C_Read... [15:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:45]Read from MH i2c: E2 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 0B 00 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 0B 00 B5 50 00 64 63 85 AF 5B 11 9A 47 90 00 C9 [15:01:45]RAPDU: 64 63 85 AF 5B 11 9A 47 90 00 [15:01:45]wFMCommunicate OK [15:01:45]SAM_PROTO_SignData done [15:01:45]FM_MakeSignedData done [15:01:45]CreateOFDProtocolMessage [15:01:45]wFMCommunicate request_size=4 [15:01:45]MH_SAM_APDU [15:01:45]CAPDU: 80 11 00 00 [15:01:45]Write to MH i2c: E2 08 00 B6 50 80 11 00 00 00 00 00 00 80 [15:01:45]Write i2c OK [15:01:45]MH_I2C_Read... [15:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:45]Read from MH i2c: E2 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 17 00 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: E2 17 00 B6 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D3 [15:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:01:45]wFMCommunicate OK [15:01:45]CreateOFDProtocolMessage done [15:01:45]OFDSenderStorePacket 192628 [15:01:45]StoreOFDPacket docnum=192628 [15:01:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 21 01 04 01 18 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 5D A7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 F0 02 00 35 04 06 00 FA 40 00 E4 66 5D 64 63 85 AF 5B 11 9A 47 [15:01:45]CheckFolder [15:01:45]dirname=/storage/ofd_packets [15:01:45]CheckFolder done [15:01:45]ProducePacketName [15:01:45]name=ofd_packets/00192628 [15:01:45]NVStorageSaveData ofd_packets/00192628 [15:01:45]File name is /storage/ofd_packets/00192628 [15:01:45]Write 298 bytes [15:01:45]NVStorageSaveData done [15:01:45]OFDSenderStorePacket done [15:01:45]KKMCreateOFDPacket done [15:01:45]NVStorageSaveData kkm_last_timestamp [15:01:45]File name is /storage/kkm_last_timestamp [15:01:45]Write 4 bytes [15:01:45]NVStorageSaveData done [15:01:45]ExternCall_PrintAddStr [15:01:45]wPrintStart [15:01:45]Write to MH i2c: 01 00 00 B7 50 07 [15:01:45]Write i2c OK [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: 01 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: 01 07 00 [15:01:45]MH_I2C_Read... [15:01:45]Read from MH i2c: 01 07 00 B7 50 00 00 00 00 00 FF 0F 1C [15:01:45]RasterBufferAndPrint [15:01:45]line Счет N : (1)31952 [15:01:45]line ИНН: 02508201610067 [15:01:45]line Контрольно-Кассовый Чек [15:01:45]line ПРОДАЖА [15:01:45]line ТРК (МРК, ГНК) : 11 [15:01:45]line Товар: 2710194210 [15:01:45]line ДТ-К-5 [15:01:45]line 13.130 * 76.20 [15:01:45]line = 1000.51 [15:01:45]line НДС 12% НСП 1% [15:01:45]line > о реализуемом товаре [15:01:45]line ОКРУГЛЕНИЕ: -0.51 [15:01:45]line ИТОГО: 1000.00 [15:01:45]line Внесено: 1000.00 [15:01:45]line СДАЧА: 0.00 [15:01:45]line НСП 1% : 8.85 [15:01:45]line НДС 12% : 106.25 [15:01:45]line Наличными: 1000.00 [15:01:45]line Безнал.: 0.00 [15:01:45]line Место: АЗС № 170 "Партнер Нефть" [15:01:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:01:45]line СНО: Общий режим [15:01:45]line Чек 176 28.10.2024 15:01 [15:01:45]line Смена: 543 ФФД: 1.0 [15:01:45]line ЗНМ: 0300000110 [15:01:45]line РНМ: 0000000000091776 [15:01:45]line Версия ККМ: 001 [15:01:45]line ФМ: 0000000000871754 [15:01:45]line ФД: 192628 [15:01:45]line ФПД: 275152799819357 [15:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T150149&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192628&fm=275152799819357&tin=02508201610067®Number=0000000000091776&sum=100000 [15:01:45]OFD Sender: Processing packet 192628 [packets to send 75, broken 74] [15:01:45]ProducePacketName [15:01:45]name=ofd_packets/00192628 [15:01:45]OFD Sender: To server: pG, [15:01:45]CommunicateWithHost lk.salyk.kg:30040 [15:01:45]ConnectInit lk.salyk.kg [15:01:45]written 0, free lines is 4095 [15:01:45]Connected sock=10 [15:01:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 21 01 04 01 18 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 5D A7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 F0 02 00 35 04 06 00 FA 40 00 E4 66 5D 64 63 85 AF 5B 11 9A 47 [15:01:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 69 83 47 00 34 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 F0 02 00 F4 03 04 00 21 4C 1F 67 B6 04 01 00 00 DE 4F 09 B5 C4 36 10 F7 [15:01:46]CommunicateWithHost err = 0 [15:01:46]CheckOFDResponse [15:01:46]1017 (14) - 77093643461234 [15:01:46]1041 (16) - 0000000000871754 [15:01:46]1040 (4) - 192628 [15:01:46]1012 (4) - 28.10.2024 08:32 [15:01:46]1206 (1) - 0 [15:01:46]OFD Sender: Remove packet 192628 [15:01:46]ProducePacketName [15:01:46]name=ofd_packets/00192628 [15:01:46]NVStorageDeleteData [15:01:46]Write to MH i2c: 01 00 00 E2 50 32 [15:01:46]Write i2c OK [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: 01 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: 01 07 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: 01 07 00 E2 50 00 00 00 00 00 CD 0C 12 [15:01:46]RasterBufferAndPrint [15:01:46]line [15:01:46]line [15:01:46]line [15:01:46]line [15:01:46]line [15:01:46]written 0, free lines is 3284 [15:01:46]MH_Cut [15:01:46]Write to MH i2c: D1 01 00 E9 50 01 0B [15:01:46]Write i2c OK [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: D1 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: D1 01 00 [15:01:46]MH_I2C_Read... [15:01:46]Read from MH i2c: D1 01 00 E9 50 00 0A [15:01:46]Write to MH i2c: 01 00 00 EA 50 3A [15:01:46]Write i2c OK [15:01:46]MH_I2C_Read... [15:01:46]OFD Sender: No OFD packet to send [15:01:47]*** Cut start [15:01:47]*** Partial cut [15:01:47]*** CUTSNS_PIN = 1 [15:01:47]*** CUTSNS_PIN = 0 [15:01:47]*** Brake cut motor [15:01:47]Read from MH i2c: 01 [15:01:47]MH_I2C_Read... [15:01:47]*** Stop cut motor [15:01:47]*** Cut end [15:01:47]Read from MH i2c: 01 07 00 [15:01:47]MH_I2C_Read... [15:01:47]Read from MH i2c: 01 07 00 EA 50 00 00 00 00 00 FF 0F 4F [15:01:47]process_action close_receipt done [15:01:47]requested_data is exist [15:01:47]produce_requested_data [15:01:47]requested_item fm.sn is exist - process it [15:01:47]wFMCommunicate request_size=4 [15:01:47]MH_SAM_APDU [15:01:47]CAPDU: 80 11 00 00 [15:01:47]Write to MH i2c: E2 08 00 EB 50 80 11 00 00 00 00 00 00 B5 [15:01:47]Write i2c OK [15:01:47]MH_I2C_Read... [15:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:47]Read from MH i2c: E2 [15:01:47]MH_I2C_Read... [15:01:47]Read from MH i2c: E2 17 00 [15:01:47]MH_I2C_Read... [15:01:47]Read from MH i2c: E2 17 00 EB 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 08 [15:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:01:47]wFMCommunicate OK [15:01:47]requested_item fd.num is exist - process it [15:01:47]SAM_PROTO_GetFieldsCounters [15:01:47]wFMCommunicate request_size=4 [15:01:47]MH_SAM_APDU [15:01:47]CAPDU: 80 13 00 00 [15:01:47]Write to MH i2c: E2 08 00 EC 50 80 13 00 00 00 00 00 00 B8 [15:01:47]Write i2c OK [15:01:47]MH_I2C_Read... [15:01:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:47]Read from MH i2c: E2 [15:01:47]MH_I2C_Read... [15:01:47]Read from MH i2c: E2 62 00 [15:01:47]MH_I2C_Read... [15:01:48]Read from MH i2c: E2 62 00 EC 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 74 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [15:01:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 74 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:48]wFMCommunicate OK [15:01:48]SAM_PROTO_GetFieldsCounters done [15:01:48]requested_item shift.num is exist - process it [15:01:48]requested_item shift.opened is exist - process it [15:01:48]req_shift_opened [15:01:48]FM_GetShiftState [15:01:48]SAM_PROTO_GetShiftState [15:01:48]wFMCommunicate request_size=4 [15:01:48]MH_SAM_APDU [15:01:48]CAPDU: 80 13 01 00 [15:01:48]Write to MH i2c: E2 08 00 ED 50 80 13 01 00 00 00 00 00 BA [15:01:48]Write i2c OK [15:01:48]MH_I2C_Read... [15:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:48]Read from MH i2c: E2 [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: E2 0E 00 [15:01:48]MH_I2C_Read... [15:01:48]Read from MH i2c: E2 0E 00 ED 50 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0A [15:01:48]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:01:48]wFMCommunicate OK [15:01:48]SAM_PROTO_GetShiftState done [15:01:48]FM_GetShiftState done [15:01:48]req_shift_opened done [15:01:48]requested_item shift.open_date is exist - process it [15:01:48]req_shift_open_date [15:01:48]req_shift_open_date done [15:01:48]produce_requested_data done [15:01:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192628,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:01:48]process_action_free close_receipt [15:01:48]json_value_free [15:01:48]json_value_free done [15:01:48]process_json_proto returns [15:01:48]Send response to host [15:01:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192628,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:01:48]free response buf [15:01:48]execute_script done [15:01:48]execute_script returns [15:01:48]free content buf [15:01:48]Sock 9.Close socket [15:01:48]Sock 9.Thread stoped [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:33]accept exits with 7 [15:03:33]New connection [15:03:33]New thread 3066707300 created [15:03:33]Thread 3066563940 joined [15:03:33]Waiting for new connection... [15:03:33] Sock 7.Parse request [15:03:33]Sock 7.Check first char [15:03:33]Sock 7.First char is OK [15:03:33]request: POST /json_proto HTTP/1.0 [15:03:33]Method: POST [15:03:33]URL: /json_proto [15:03:33]Method is POST - this is cgi request [15:03:33]url: /json_proto [15:03:33]query_string will be loaded in cgi processing [15:03:33]execute_cgi json_proto POST (null) [15:03:33]execute_cgi path=json_proto method=POST [15:03:33]POST find Content-Length [15:03:33]Host: 172.17.63.131:8080 [15:03:33]Content-Length: 676 [15:03:33]Content-Type: application/json [15:03:33] [15:03:33]POST finish read [15:03:33]Found Content-Length = 676 [15:03:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:33]execute_script... [15:03: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)31953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:33]POST & json_proto [15:03:33]process_json_proto [15:03:33]json parsed OK: [15:03:33]protocol is kg_v1.0 [15:03:33]action value=close_receipt [15:03:33]process_action close_receipt [15:03:33]cmd_close_receipt [15:03:33]MH_GetDate [15:03:33]Write to MH i2c: F0 00 00 EE 50 2D [15:03:33]Write i2c OK [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: F0 [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: F0 09 00 [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: F0 09 00 EE 50 00 CA A7 1F 67 22 05 6E 64 26 [15:03:33]GetLastDocTimeStamp 1730127709 [15:03:33]current date 1730127818 [15:03:33]FM_GetShiftState [15:03:33]SAM_PROTO_GetShiftState [15:03:33]wFMCommunicate request_size=4 [15:03:33]MH_SAM_APDU [15:03:33]CAPDU: 80 13 01 00 [15:03:33]Write to MH i2c: E2 08 00 EF 50 80 13 01 00 00 00 00 00 BC [15:03:33]Write i2c OK [15:03:33]MH_I2C_Read... [15:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:33]Read from MH i2c: E2 [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: E2 0E 00 [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: E2 0E 00 EF 50 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0C [15:03:33]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:03:33]wFMCommunicate OK [15:03:33]SAM_PROTO_GetShiftState done [15:03:33]FM_GetShiftState done [15:03:33]opened in 1730075620 [15:03:33]opened+sec_in_day 1730162020 [15:03:33]quantity*price = 20003 [15:03:33]sum+1 = 20004 [15:03:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 177 28.10.2024 15:03 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192629 ФПД: 43686986997848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T150338&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192629&fm=43686986997848&tin=02508201610067®Number=0000000000091776&sum=20000 [15:03:34]StoreToDocumentArchive [15:03:34]shift 543 fd 192629 [15:03:34]save to /storage/0543/doc_00192629 [15:03:34]save last doc name /storage/0543/doc_00192629 to /storage/kkm_last_doc_name [15:03:34]save OK [15:03:34]Clear old archive folders... [15:03:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:34]tlvbuf is 019C3A50 [15:03:34]SAM_PROTO_ClearQueue [15:03:34]wFMCommunicate request_size=4 [15:03:34]MH_SAM_APDU [15:03:34]CAPDU: 80 09 00 00 [15:03:34]Write to MH i2c: E2 08 00 FC 50 80 09 00 00 00 00 00 00 BE [15:03:34]Write i2c OK [15:03:34]MH_I2C_Read... [15:03:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:34]Read from MH i2c: E2 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: E2 03 00 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: E2 03 00 FC 50 00 90 00 C0 [15:03:34]RAPDU: 90 00 [15:03:34]wFMCommunicate OK [15:03:34]SAM_PROTO_ClearQueue done [15:03:34]KKMCreateOFDPacket [15:03:34]OFDProtocolAddRootSTLVToBuf [15:03:34]FM_MakeSignedData [15:03:34]FM_MakeSignedData [15:03:34]SAM_PROTO_SignData [15:03:34]wFMCommunicate request_size=4 [15:03:34]MH_SAM_APDU [15:03:34]CAPDU: 80 0D 01 02 [15:03:34]Write to MH i2c: E2 08 00 FD 50 80 0D 01 02 00 00 00 00 C6 [15:03:34]Write i2c OK [15:03:34]MH_I2C_Read... [15:03:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:34]Read from MH i2c: E2 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: E2 03 00 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: E2 03 00 FD 50 00 90 00 C1 [15:03:34]RAPDU: 90 00 [15:03:34]wFMCommunicate OK [15:03:34]wFMCommunicate request_size=255 [15:03:34]MH_SAM_APDU [15:03:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 CA A7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 F0 02 00 35 04 06 00 27 [15:03:34]Write to MH i2c: E2 02 01 FE 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 CA A7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 F0 02 00 35 04 06 00 27 00 00 73 [15:03:34]Write i2c OK [15:03:34]MH_I2C_Read... [15:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:34]Read from MH i2c: E2 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: E2 03 00 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: E2 03 00 FE 50 00 90 00 C2 [15:03:34]RAPDU: 90 00 [15:03:34]wFMCommunicate OK [15:03:34]wFMCommunicate request_size=10 [15:03:34]MH_SAM_APDU [15:03:34]CAPDU: 80 0D 02 02 05 BB AB 57 60 58 [15:03:34]Write to MH i2c: E2 0D 00 FF 50 80 0D 02 02 05 00 BB AB 57 60 58 00 00 48 [15:03:34]Write i2c OK [15:03:34]MH_I2C_Read... [15:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:34]Read from MH i2c: E2 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: E2 03 00 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: E2 03 00 FF 50 00 90 00 C3 [15:03:34]RAPDU: 90 00 [15:03:34]wFMCommunicate OK [15:03:34]wFMCommunicate request_size=4 [15:03:34]MH_SAM_APDU [15:03:34]CAPDU: 80 0D 03 02 [15:03:34]Write to MH i2c: E2 08 00 00 51 80 0D 03 02 00 00 00 00 CC [15:03:34]Write i2c OK [15:03:34]MH_I2C_Read... [15:03:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:34]Read from MH i2c: E2 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: E2 0B 00 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: E2 0B 00 00 51 00 82 98 AF F6 A4 49 39 75 90 00 27 [15:03:34]RAPDU: 82 98 AF F6 A4 49 39 75 90 00 [15:03:34]wFMCommunicate OK [15:03:34]SAM_PROTO_SignData done [15:03:34]FM_MakeSignedData done [15:03:34]CreateOFDProtocolMessage [15:03:34]wFMCommunicate request_size=4 [15:03:34]MH_SAM_APDU [15:03:34]CAPDU: 80 11 00 00 [15:03:34]Write to MH i2c: E2 08 00 01 51 80 11 00 00 00 00 00 00 CC [15:03:34]Write i2c OK [15:03:34]MH_I2C_Read... [15:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:34]Read from MH i2c: E2 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: E2 17 00 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: E2 17 00 01 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1F [15:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:03:34]wFMCommunicate OK [15:03:34]CreateOFDProtocolMessage done [15:03:34]OFDSenderStorePacket 192629 [15:03:34]StoreOFDPacket docnum=192629 [15:03:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2B E0 07 01 6C 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 CA A7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 F0 02 00 35 04 06 00 27 BB AB 57 60 58 82 98 AF F6 A4 49 39 75 [15:03:34]CheckFolder [15:03:34]dirname=/storage/ofd_packets [15:03:34]CheckFolder done [15:03:34]ProducePacketName [15:03:34]name=ofd_packets/00192629 [15:03:34]NVStorageSaveData ofd_packets/00192629 [15:03:34]File name is /storage/ofd_packets/00192629 [15:03:34]Write 301 bytes [15:03:34]NVStorageSaveData done [15:03:34]OFDSenderStorePacket done [15:03:34]KKMCreateOFDPacket done [15:03:34]NVStorageSaveData kkm_last_timestamp [15:03:34]File name is /storage/kkm_last_timestamp [15:03:34]Write 4 bytes [15:03:34]NVStorageSaveData done [15:03:34]ExternCall_PrintAddStr [15:03:34]wPrintStart [15:03:34]Write to MH i2c: 01 00 00 02 51 53 [15:03:34]Write i2c OK [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: 01 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: 01 07 00 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: 01 07 00 02 51 00 00 00 00 00 FF 0F 68 [15:03:34]RasterBufferAndPrint [15:03:34]line Счет N : (1)31953 [15:03:34]line ИНН: 02508201610067 [15:03:34]line Контрольно-Кассовый Чек [15:03:34]line ПРОДАЖА [15:03:34]line ТРК (МРК, ГНК) : 21 [15:03:34]line Товар: 2710124130 [15:03:34]line Аи-92-К-5 [15:03:34]line 2.990 * 66.90 [15:03:34]line = 200.03 [15:03:34]line НДС 12% НСП 1% [15:03:34]line > о реализуемом товаре [15:03:34]line ОКРУГЛЕНИЕ: -0.03 [15:03:34]line ИТОГО: 200.00 [15:03:34]line Внесено: 200.00 [15:03:34]line СДАЧА: 0.00 [15:03:34]line НСП 1% : 1.77 [15:03:34]line НДС 12% : 21.24 [15:03:34]line Наличными: 200.00 [15:03:34]line Безнал.: 0.00 [15:03:34]line Место: АЗС № 170 "Партнер Нефть" [15:03:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:03:34]line СНО: Общий режим [15:03:34]line Чек 177 28.10.2024 15:03 [15:03:34]line Смена: 543 ФФД: 1.0 [15:03:34]line ЗНМ: 0300000110 [15:03:34]line РНМ: 0000000000091776 [15:03:34]line Версия ККМ: 001 [15:03:34]line ФМ: 0000000000871754 [15:03:34]line ФД: 192629 [15:03:34]line ФПД: 43686986997848 [15:03:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T150338&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192629&fm=43686986997848&tin=02508201610067®Number=0000000000091776&sum=20000 [15:03:35]OFD Sender: Processing packet 192629 [packets to send 75, broken 74] [15:03:35]ProducePacketName [15:03:35]name=ofd_packets/00192629 [15:03:35]OFD Sender: To server: pG, [15:03:35]CommunicateWithHost lk.salyk.kg:30040 [15:03:35]ConnectInit lk.salyk.kg [15:03:35]written 0, free lines is 4095 [15:03:35]Connected sock=9 [15:03:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2B E0 07 01 6C 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 CA A7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 F0 02 00 35 04 06 00 27 BB AB 57 60 58 82 98 AF F6 A4 49 39 75 [15:03:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2E 58 47 00 5A 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 F0 02 00 F4 03 04 00 8E 4C 1F 67 B6 04 01 00 00 0A 46 E0 68 A1 5B 11 84 [15:03:35]CommunicateWithHost err = 0 [15:03:35]CheckOFDResponse [15:03:35]1017 (14) - 77093643461234 [15:03:35]1041 (16) - 0000000000871754 [15:03:35]1040 (4) - 192629 [15:03:35]1012 (4) - 28.10.2024 08:34 [15:03:35]1206 (1) - 0 [15:03:35]OFD Sender: Remove packet 192629 [15:03:35]ProducePacketName [15:03:35]name=ofd_packets/00192629 [15:03:35]NVStorageDeleteData [15:03:35]Write to MH i2c: 01 00 00 2D 51 7E [15:03:35]Write i2c OK [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: 01 [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: 01 07 00 [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: 01 07 00 2D 51 00 00 00 00 00 C5 0C 56 [15:03:35]RasterBufferAndPrint [15:03:35]line [15:03:35]line [15:03:35]line [15:03:35]line [15:03:35]line [15:03:35]written 0, free lines is 3275 [15:03:35]MH_Cut [15:03:35]Write to MH i2c: D1 01 00 34 51 01 57 [15:03:35]Write i2c OK [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: D1 [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: D1 01 00 [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: D1 01 00 34 51 00 56 [15:03:35]Write to MH i2c: 01 00 00 35 51 86 [15:03:35]Write i2c OK [15:03:35]MH_I2C_Read... [15:03:35]OFD Sender: No OFD packet to send [15:03:36]*** Cut start [15:03:36]*** Partial cut [15:03:36]*** CUTSNS_PIN = 1 [15:03:36]*** CUTSNS_PIN = 0 [15:03:36]*** Brake cut motor [15:03:36]Read from MH i2c: 01 [15:03:36]MH_I2C_Read... [15:03:36]*** Stop cut motor [15:03:36]*** Cut end [15:03:36]Read from MH i2c: 01 07 00 [15:03:36]MH_I2C_Read... [15:03:36]Read from MH i2c: 01 07 00 35 51 00 00 00 00 00 FF 0F 9B [15:03:36]process_action close_receipt done [15:03:36]requested_data is exist [15:03:36]produce_requested_data [15:03:36]requested_item fm.sn is exist - process it [15:03:36]wFMCommunicate request_size=4 [15:03:36]MH_SAM_APDU [15:03:36]CAPDU: 80 11 00 00 [15:03:36]Write to MH i2c: E2 08 00 36 51 80 11 00 00 00 00 00 00 01 [15:03:36]Write i2c OK [15:03:36]MH_I2C_Read... [15:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:37]Read from MH i2c: E2 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 17 00 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 17 00 36 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 54 [15:03:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:03:37]wFMCommunicate OK [15:03:37]requested_item fd.num is exist - process it [15:03:37]SAM_PROTO_GetFieldsCounters [15:03:37]wFMCommunicate request_size=4 [15:03:37]MH_SAM_APDU [15:03:37]CAPDU: 80 13 00 00 [15:03:37]Write to MH i2c: E2 08 00 37 51 80 13 00 00 00 00 00 00 04 [15:03:37]Write i2c OK [15:03:37]MH_I2C_Read... [15:03:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:37]Read from MH i2c: E2 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 62 00 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 62 00 37 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 75 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [15:03:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 75 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:37]wFMCommunicate OK [15:03:37]SAM_PROTO_GetFieldsCounters done [15:03:37]requested_item shift.num is exist - process it [15:03:37]requested_item shift.opened is exist - process it [15:03:37]req_shift_opened [15:03:37]FM_GetShiftState [15:03:37]SAM_PROTO_GetShiftState [15:03:37]wFMCommunicate request_size=4 [15:03:37]MH_SAM_APDU [15:03:37]CAPDU: 80 13 01 00 [15:03:37]Write to MH i2c: E2 08 00 38 51 80 13 01 00 00 00 00 00 06 [15:03:37]Write i2c OK [15:03:37]MH_I2C_Read... [15:03:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:37]Read from MH i2c: E2 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 0E 00 [15:03:37]MH_I2C_Read... [15:03:37]Read from MH i2c: E2 0E 00 38 51 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 56 [15:03:37]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:03:37]wFMCommunicate OK [15:03:37]SAM_PROTO_GetShiftState done [15:03:37]FM_GetShiftState done [15:03:37]req_shift_opened done [15:03:37]requested_item shift.open_date is exist - process it [15:03:37]req_shift_open_date [15:03:37]req_shift_open_date done [15:03:37]produce_requested_data done [15:03:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192629,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:03:37]process_action_free close_receipt [15:03:37]json_value_free [15:03:37]json_value_free done [15:03:37]process_json_proto returns [15:03:37]Send response to host [15:03:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192629,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:03:37]free response buf [15:03:37]execute_script done [15:03:37]execute_script returns [15:03:37]free content buf [15:03:37]Sock 7.Close socket [15:03:37]Sock 7.Thread stoped [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]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:11]accept exits with 10 [15:05:11]New connection [15:05:11]New thread 3066563940 created [15:05:11]Thread 3066707300 joined [15:05:11]Waiting for new connection... [15:05:11] Sock 10.Parse request [15:05:11]Sock 10.Check first char [15:05:11]Sock 10.First char is OK [15:05:11]request: POST /json_proto HTTP/1.0 [15:05:11]Method: POST [15:05:11]URL: /json_proto [15:05:11]Method is POST - this is cgi request [15:05:11]url: /json_proto [15:05:11]query_string will be loaded in cgi processing [15:05:11]execute_cgi json_proto POST (null) [15:05:11]execute_cgi path=json_proto method=POST [15:05:11]POST find Content-Length [15:05:11]Host: 172.17.63.131:8080 [15:05:11]Content-Length: 676 [15:05:11]Content-Type: application/json [15:05:11] [15:05:11]POST finish read [15:05:11]Found Content-Length = 676 [15:05:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:11]execute_script... [15:05:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:11]POST & json_proto [15:05:11]process_json_proto [15:05:11]json parsed OK: [15:05:11]protocol is kg_v1.0 [15:05:11]action value=close_receipt [15:05:11]process_action close_receipt [15:05:11]cmd_close_receipt [15:05:11]MH_GetDate [15:05:11]Write to MH i2c: F0 00 00 39 51 79 [15:05:11]Write i2c OK [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: F0 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: F0 09 00 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: F0 09 00 39 51 00 2D A8 1F 67 22 05 6E 64 D6 [15:05:11]GetLastDocTimeStamp 1730127818 [15:05:11]current date 1730127917 [15:05:11]FM_GetShiftState [15:05:11]SAM_PROTO_GetShiftState [15:05:11]wFMCommunicate request_size=4 [15:05:11]MH_SAM_APDU [15:05:11]CAPDU: 80 13 01 00 [15:05:11]Write to MH i2c: E2 08 00 3A 51 80 13 01 00 00 00 00 00 08 [15:05:11]Write i2c OK [15:05:11]MH_I2C_Read... [15:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:11]Read from MH i2c: E2 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: E2 0E 00 [15:05:11]MH_I2C_Read... [15:05:11]Read from MH i2c: E2 0E 00 3A 51 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 58 [15:05:11]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:05:11]wFMCommunicate OK [15:05:11]SAM_PROTO_GetShiftState done [15:05:11]FM_GetShiftState done [15:05:11]opened in 1730075620 [15:05:11]opened+sec_in_day 1730162020 [15:05:11]quantity*price = 60009 [15:05:11]sum+1 = 60010 [15:05:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 178 28.10.2024 15:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192630 ФПД: 83589125953482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T150517&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192630&fm=83589125953482&tin=02508201610067®Number=0000000000091776&sum=60000 [15:05:12]StoreToDocumentArchive [15:05:12]shift 543 fd 192630 [15:05:12]save to /storage/0543/doc_00192630 [15:05:12]save last doc name /storage/0543/doc_00192630 to /storage/kkm_last_doc_name [15:05:12]save OK [15:05:12]Clear old archive folders... [15:05:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:05:12]tlvbuf is 01A88640 [15:05:12]SAM_PROTO_ClearQueue [15:05:12]wFMCommunicate request_size=4 [15:05:12]MH_SAM_APDU [15:05:12]CAPDU: 80 09 00 00 [15:05:12]Write to MH i2c: E2 08 00 47 51 80 09 00 00 00 00 00 00 0A [15:05:12]Write i2c OK [15:05:12]MH_I2C_Read... [15:05:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:12]Read from MH i2c: E2 [15:05:12]MH_I2C_Read... [15:05:12]Read from MH i2c: E2 03 00 [15:05:12]MH_I2C_Read... [15:05:12]Read from MH i2c: E2 03 00 47 51 00 90 00 0C [15:05:12]RAPDU: 90 00 [15:05:12]wFMCommunicate OK [15:05:12]SAM_PROTO_ClearQueue done [15:05:12]KKMCreateOFDPacket [15:05:12]OFDProtocolAddRootSTLVToBuf [15:05:12]FM_MakeSignedData [15:05:12]FM_MakeSignedData [15:05:12]SAM_PROTO_SignData [15:05:12]wFMCommunicate request_size=4 [15:05:12]MH_SAM_APDU [15:05:12]CAPDU: 80 0D 01 02 [15:05:12]Write to MH i2c: E2 08 00 48 51 80 0D 01 02 00 00 00 00 12 [15:05:12]Write i2c OK [15:05:12]MH_I2C_Read... [15:05:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:13]Read from MH i2c: E2 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: E2 03 00 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: E2 03 00 48 51 00 90 00 0D [15:05:13]RAPDU: 90 00 [15:05:13]wFMCommunicate OK [15:05:13]wFMCommunicate request_size=255 [15:05:13]MH_SAM_APDU [15:05:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 2D A8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 F0 02 00 35 04 06 00 4C [15:05:13]Write to MH i2c: E2 02 01 49 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 2D A8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 F0 02 00 35 04 06 00 4C 00 00 65 [15:05:13]Write i2c OK [15:05:13]MH_I2C_Read... [15:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:13]Read from MH i2c: E2 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: E2 03 00 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: E2 03 00 49 51 00 90 00 0E [15:05:13]RAPDU: 90 00 [15:05:13]wFMCommunicate OK [15:05:13]wFMCommunicate request_size=10 [15:05:13]MH_SAM_APDU [15:05:13]CAPDU: 80 0D 02 02 05 06 1C 28 D7 CA [15:05:13]Write to MH i2c: E2 0D 00 4A 51 80 0D 02 02 05 00 06 1C 28 D7 CA 00 00 0A [15:05:13]Write i2c OK [15:05:13]MH_I2C_Read... [15:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:13]Read from MH i2c: E2 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: E2 03 00 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: E2 03 00 4A 51 00 90 00 0F [15:05:13]RAPDU: 90 00 [15:05:13]wFMCommunicate OK [15:05:13]wFMCommunicate request_size=4 [15:05:13]MH_SAM_APDU [15:05:13]CAPDU: 80 0D 03 02 [15:05:13]Write to MH i2c: E2 08 00 4B 51 80 0D 03 02 00 00 00 00 17 [15:05:13]Write i2c OK [15:05:13]MH_I2C_Read... [15:05:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:13]Read from MH i2c: E2 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: E2 0B 00 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: E2 0B 00 4B 51 00 87 51 9E EA 66 E0 25 FB 90 00 DE [15:05:13]RAPDU: 87 51 9E EA 66 E0 25 FB 90 00 [15:05:13]wFMCommunicate OK [15:05:13]SAM_PROTO_SignData done [15:05:13]FM_MakeSignedData done [15:05:13]CreateOFDProtocolMessage [15:05:13]wFMCommunicate request_size=4 [15:05:13]MH_SAM_APDU [15:05:13]CAPDU: 80 11 00 00 [15:05:13]Write to MH i2c: E2 08 00 4C 51 80 11 00 00 00 00 00 00 17 [15:05:13]Write i2c OK [15:05:13]MH_I2C_Read... [15:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:13]Read from MH i2c: E2 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: E2 17 00 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: E2 17 00 4C 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6A [15:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:05:13]wFMCommunicate OK [15:05:13]CreateOFDProtocolMessage done [15:05:13]OFDSenderStorePacket 192630 [15:05:13]StoreOFDPacket docnum=192630 [15:05:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 A4 07 01 38 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 2D A8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 F0 02 00 35 04 06 00 4C 06 1C 28 D7 CA 87 51 9E EA 66 E0 25 FB [15:05:13]CheckFolder [15:05:13]dirname=/storage/ofd_packets [15:05:13]CheckFolder done [15:05:13]ProducePacketName [15:05:13]name=ofd_packets/00192630 [15:05:13]NVStorageSaveData ofd_packets/00192630 [15:05:13]File name is /storage/ofd_packets/00192630 [15:05:13]Write 301 bytes [15:05:13]NVStorageSaveData done [15:05:13]OFDSenderStorePacket done [15:05:13]KKMCreateOFDPacket done [15:05:13]NVStorageSaveData kkm_last_timestamp [15:05:13]File name is /storage/kkm_last_timestamp [15:05:13]Write 4 bytes [15:05:13]NVStorageSaveData done [15:05:13]ExternCall_PrintAddStr [15:05:13]wPrintStart [15:05:13]Write to MH i2c: 01 00 00 4D 51 9E [15:05:13]Write i2c OK [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: 01 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: 01 07 00 [15:05:13]MH_I2C_Read... [15:05:13]Read from MH i2c: 01 07 00 4D 51 00 00 00 00 00 FF 0F B3 [15:05:13]RasterBufferAndPrint [15:05:13]line Счет N : (1)31954 [15:05:13]line ИНН: 02508201610067 [15:05:13]line Контрольно-Кассовый Чек [15:05:13]line ПРОДАЖА [15:05:13]line ТРК (МРК, ГНК) : 21 [15:05:13]line Товар: 2710124130 [15:05:13]line Аи-92-К-5 [15:05:13]line 8.970 * 66.90 [15:05:13]line = 600.09 [15:05:13]line НДС 12% НСП 1% [15:05:13]line > о реализуемом товаре [15:05:13]line ОКРУГЛЕНИЕ: -0.09 [15:05:13]line ИТОГО: 600.00 [15:05:13]line Внесено: 600.00 [15:05:13]line СДАЧА: 0.00 [15:05:13]line НСП 1% : 5.31 [15:05:13]line НДС 12% : 63.73 [15:05:13]line Наличными: 600.00 [15:05:13]line Безнал.: 0.00 [15:05:13]line Место: АЗС № 170 "Партнер Нефть" [15:05:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:05:13]line СНО: Общий режим [15:05:13]line Чек 178 28.10.2024 15:05 [15:05:13]line Смена: 543 ФФД: 1.0 [15:05:13]line ЗНМ: 0300000110 [15:05:13]line РНМ: 0000000000091776 [15:05:13]line Версия ККМ: 001 [15:05:13]line ФМ: 0000000000871754 [15:05:13]line ФД: 192630 [15:05:13]line ФПД: 83589125953482 [15:05:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T150517&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192630&fm=83589125953482&tin=02508201610067®Number=0000000000091776&sum=60000 [15:05:13]OFD Sender: Processing packet 192630 [packets to send 75, broken 74] [15:05:13]ProducePacketName [15:05:13]name=ofd_packets/00192630 [15:05:13]OFD Sender: To server: pG, [15:05:13]CommunicateWithHost lk.salyk.kg:30040 [15:05:13]ConnectInit lk.salyk.kg [15:05:13]written 0, free lines is 4095 [15:05:13]Connected sock=11 [15:05:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 A4 07 01 38 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 2D A8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 F0 02 00 35 04 06 00 4C 06 1C 28 D7 CA 87 51 9E EA 66 E0 25 FB [15:05:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F3 79 47 00 5A ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 F0 02 00 F4 03 04 00 F1 4C 1F 67 B6 04 01 00 00 6F A2 29 7E 6B F2 98 EB [15:05:14]CommunicateWithHost err = 0 [15:05:14]CheckOFDResponse [15:05:14]1017 (14) - 77093643461234 [15:05:14]1041 (16) - 0000000000871754 [15:05:14]1040 (4) - 192630 [15:05:14]1012 (4) - 28.10.2024 08:36 [15:05:14]1206 (1) - 0 [15:05:14]OFD Sender: Remove packet 192630 [15:05:14]ProducePacketName [15:05:14]name=ofd_packets/00192630 [15:05:14]NVStorageDeleteData [15:05:14]Write to MH i2c: 01 00 00 78 51 C9 [15:05:14]Write i2c OK [15:05:14]MH_I2C_Read... [15:05:14]Read from MH i2c: 01 [15:05:14]MH_I2C_Read... [15:05:14]Read from MH i2c: 01 07 00 [15:05:14]MH_I2C_Read... [15:05:14]Read from MH i2c: 01 07 00 78 51 00 00 00 00 00 C8 0C A4 [15:05:14]RasterBufferAndPrint [15:05:14]line [15:05:14]line [15:05:14]line [15:05:14]line [15:05:14]line [15:05:14]written 0, free lines is 3278 [15:05:14]MH_Cut [15:05:14]Write to MH i2c: D1 01 00 7F 51 01 A2 [15:05:14]Write i2c OK [15:05:14]MH_I2C_Read... [15:05:14]Read from MH i2c: D1 [15:05:14]MH_I2C_Read... [15:05:14]Read from MH i2c: D1 01 00 [15:05:14]MH_I2C_Read... [15:05:14]Read from MH i2c: D1 01 00 7F 51 00 A1 [15:05:14]Write to MH i2c: 01 00 00 80 51 D1 [15:05:14]Write i2c OK [15:05:14]MH_I2C_Read... [15:05:14]OFD Sender: No OFD packet to send [15:05:15]*** Cut start [15:05:15]*** Partial cut [15:05:15]*** CUTSNS_PIN = 1 [15:05:15]*** CUTSNS_PIN = 0 [15:05:15]*** Brake cut motor [15:05:15]Read from MH i2c: 01 [15:05:15]MH_I2C_Read... [15:05:15]*** Stop cut motor [15:05:15]*** Cut end [15:05:15]Read from MH i2c: 01 07 00 [15:05:15]MH_I2C_Read... [15:05:15]Read from MH i2c: 01 07 00 80 51 00 00 00 00 00 FF 0F E6 [15:05:15]process_action close_receipt done [15:05:15]requested_data is exist [15:05:15]produce_requested_data [15:05:15]requested_item fm.sn is exist - process it [15:05:15]wFMCommunicate request_size=4 [15:05:15]MH_SAM_APDU [15:05:15]CAPDU: 80 11 00 00 [15:05:15]Write to MH i2c: E2 08 00 81 51 80 11 00 00 00 00 00 00 4C [15:05:15]Write i2c OK [15:05:15]MH_I2C_Read... [15:05:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:15]Read from MH i2c: E2 [15:05:15]MH_I2C_Read... [15:05:15]Read from MH i2c: E2 17 00 [15:05:15]MH_I2C_Read... [15:05:15]Read from MH i2c: E2 17 00 81 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [15:05:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:05:15]wFMCommunicate OK [15:05:15]requested_item fd.num is exist - process it [15:05:15]SAM_PROTO_GetFieldsCounters [15:05:15]wFMCommunicate request_size=4 [15:05:15]MH_SAM_APDU [15:05:15]CAPDU: 80 13 00 00 [15:05:15]Write to MH i2c: E2 08 00 82 51 80 13 00 00 00 00 00 00 4F [15:05:15]Write i2c OK [15:05:15]MH_I2C_Read... [15:05:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:15]Read from MH i2c: E2 [15:05:15]MH_I2C_Read... [15:05:15]Read from MH i2c: E2 62 00 [15:05:15]MH_I2C_Read... [15:05:15]Read from MH i2c: E2 62 00 82 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 76 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [15:05:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 76 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:15]wFMCommunicate OK [15:05:15]SAM_PROTO_GetFieldsCounters done [15:05:15]requested_item shift.num is exist - process it [15:05:15]requested_item shift.opened is exist - process it [15:05:15]req_shift_opened [15:05:15]FM_GetShiftState [15:05:15]SAM_PROTO_GetShiftState [15:05:15]wFMCommunicate request_size=4 [15:05:15]MH_SAM_APDU [15:05:15]CAPDU: 80 13 01 00 [15:05:15]Write to MH i2c: E2 08 00 83 51 80 13 01 00 00 00 00 00 51 [15:05:15]Write i2c OK [15:05:15]MH_I2C_Read... [15:05:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:15]Read from MH i2c: E2 [15:05:15]MH_I2C_Read... [15:05:15]Read from MH i2c: E2 0E 00 [15:05:15]MH_I2C_Read... [15:05:15]Read from MH i2c: E2 0E 00 83 51 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A1 [15:05:15]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:05:15]wFMCommunicate OK [15:05:15]SAM_PROTO_GetShiftState done [15:05:15]FM_GetShiftState done [15:05:15]req_shift_opened done [15:05:15]requested_item shift.open_date is exist - process it [15:05:15]req_shift_open_date [15:05:15]req_shift_open_date done [15:05:15]produce_requested_data done [15:05:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192630,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:05:15]process_action_free close_receipt [15:05:15]json_value_free [15:05:15]json_value_free done [15:05:15]process_json_proto returns [15:05:15]Send response to host [15:05:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192630,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:05:15]free response buf [15:05:15]execute_script done [15:05:15]execute_script returns [15:05:15]free content buf [15:05:15]Sock 10.Close socket [15:05:15]Sock 10.Thread stoped [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:16]accept exits with 7 [15:07:16]New connection [15:07:16]New thread 3066707300 created [15:07:16]Thread 3066563940 joined [15:07:16]Waiting for new connection... [15:07:16] Sock 7.Parse request [15:07:16]Sock 7.Check first char [15:07:16]Sock 7.First char is OK [15:07:16]request: POST /json_proto HTTP/1.0 [15:07:16]Method: POST [15:07:16]URL: /json_proto [15:07:16]Method is POST - this is cgi request [15:07:16]url: /json_proto [15:07:16]query_string will be loaded in cgi processing [15:07:16]execute_cgi json_proto POST (null) [15:07:16]execute_cgi path=json_proto method=POST [15:07:16]POST find Content-Length [15:07:16]Host: 172.17.63.131:8080 [15:07:16]Content-Length: 676 [15:07:16]Content-Type: application/json [15:07:16] [15:07:16]POST finish read [15:07:16]Found Content-Length = 676 [15:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:16]execute_script... [15:07:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:16]POST & json_proto [15:07:16]process_json_proto [15:07:16]json parsed OK: [15:07:16]protocol is kg_v1.0 [15:07:16]action value=close_receipt [15:07:16]process_action close_receipt [15:07:16]cmd_close_receipt [15:07:16]MH_GetDate [15:07:16]Write to MH i2c: F0 00 00 84 51 C4 [15:07:16]Write i2c OK [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: F0 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: F0 09 00 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: F0 09 00 84 51 00 AA A8 1F 67 22 05 6E 64 9E [15:07:16]GetLastDocTimeStamp 1730127917 [15:07:16]current date 1730128042 [15:07:16]FM_GetShiftState [15:07:16]SAM_PROTO_GetShiftState [15:07:16]wFMCommunicate request_size=4 [15:07:16]MH_SAM_APDU [15:07:16]CAPDU: 80 13 01 00 [15:07:16]Write to MH i2c: E2 08 00 85 51 80 13 01 00 00 00 00 00 53 [15:07:16]Write i2c OK [15:07:16]MH_I2C_Read... [15:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:16]Read from MH i2c: E2 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: E2 0E 00 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: E2 0E 00 85 51 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A3 [15:07:16]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:07:16]wFMCommunicate OK [15:07:16]SAM_PROTO_GetShiftState done [15:07:16]FM_GetShiftState done [15:07:16]opened in 1730075620 [15:07:16]opened+sec_in_day 1730162020 [15:07:16]quantity*price = 50041 [15:07:16]sum+1 = 50042 [15:07:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 179 28.10.2024 15:07 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192631 ФПД: 253850460978303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T150722&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192631&fm=253850460978303&tin=02508201610067®Number=0000000000091776&sum=50000 [15:07:17]StoreToDocumentArchive [15:07:17]shift 543 fd 192631 [15:07:17]save to /storage/0543/doc_00192631 [15:07:17]save last doc name /storage/0543/doc_00192631 to /storage/kkm_last_doc_name [15:07:17]save OK [15:07:17]Clear old archive folders... [15:07:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:17]tlvbuf is 01970D20 [15:07:17]SAM_PROTO_ClearQueue [15:07:17]wFMCommunicate request_size=4 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 09 00 00 [15:07:17]Write to MH i2c: E2 08 00 92 51 80 09 00 00 00 00 00 00 55 [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 92 51 00 90 00 57 [15:07:17]RAPDU: 90 00 [15:07:17]wFMCommunicate OK [15:07:17]SAM_PROTO_ClearQueue done [15:07:17]KKMCreateOFDPacket [15:07:17]OFDProtocolAddRootSTLVToBuf [15:07:17]FM_MakeSignedData [15:07:17]FM_MakeSignedData [15:07:17]SAM_PROTO_SignData [15:07:17]wFMCommunicate request_size=4 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 0D 01 02 [15:07:17]Write to MH i2c: E2 08 00 93 51 80 0D 01 02 00 00 00 00 5D [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 93 51 00 90 00 58 [15:07:17]RAPDU: 90 00 [15:07:17]wFMCommunicate OK [15:07:17]wFMCommunicate request_size=255 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 AA A8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 F0 02 00 35 04 06 00 E6 [15:07:17]Write to MH i2c: E2 02 01 94 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 AA A8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 F0 02 00 35 04 06 00 E6 00 00 EC [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:18]Read from MH i2c: E2 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 03 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 03 00 94 51 00 90 00 59 [15:07:18]RAPDU: 90 00 [15:07:18]wFMCommunicate OK [15:07:18]wFMCommunicate request_size=10 [15:07:18]MH_SAM_APDU [15:07:18]CAPDU: 80 0D 02 02 05 E0 2A 8D 7C 7F [15:07:18]Write to MH i2c: E2 0D 00 95 51 80 0D 02 02 05 00 E0 2A 8D 7C 7F 00 00 FC [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:18]Read from MH i2c: E2 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 03 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 03 00 95 51 00 90 00 5A [15:07:18]RAPDU: 90 00 [15:07:18]wFMCommunicate OK [15:07:18]wFMCommunicate request_size=4 [15:07:18]MH_SAM_APDU [15:07:18]CAPDU: 80 0D 03 02 [15:07:18]Write to MH i2c: E2 08 00 96 51 80 0D 03 02 00 00 00 00 62 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:18]Read from MH i2c: E2 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 0B 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 0B 00 96 51 00 13 28 2D 64 3D F8 B1 BC 90 00 D1 [15:07:18]RAPDU: 13 28 2D 64 3D F8 B1 BC 90 00 [15:07:18]wFMCommunicate OK [15:07:18]SAM_PROTO_SignData done [15:07:18]FM_MakeSignedData done [15:07:18]CreateOFDProtocolMessage [15:07:18]wFMCommunicate request_size=4 [15:07:18]MH_SAM_APDU [15:07:18]CAPDU: 80 11 00 00 [15:07:18]Write to MH i2c: E2 08 00 97 51 80 11 00 00 00 00 00 00 62 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:18]Read from MH i2c: E2 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 17 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 17 00 97 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [15:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:07:18]wFMCommunicate OK [15:07:18]CreateOFDProtocolMessage done [15:07:18]OFDSenderStorePacket 192631 [15:07:18]StoreOFDPacket docnum=192631 [15:07:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2B BC 07 01 05 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 AA A8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 F0 02 00 35 04 06 00 E6 E0 2A 8D 7C 7F 13 28 2D 64 3D F8 B1 BC [15:07:18]CheckFolder [15:07:18]dirname=/storage/ofd_packets [15:07:18]CheckFolder done [15:07:18]ProducePacketName [15:07:18]name=ofd_packets/00192631 [15:07:18]NVStorageSaveData ofd_packets/00192631 [15:07:18]File name is /storage/ofd_packets/00192631 [15:07:18]Write 301 bytes [15:07:18]NVStorageSaveData done [15:07:18]OFDSenderStorePacket done [15:07:18]KKMCreateOFDPacket done [15:07:18]NVStorageSaveData kkm_last_timestamp [15:07:18]File name is /storage/kkm_last_timestamp [15:07:18]Write 4 bytes [15:07:18]NVStorageSaveData done [15:07:18]ExternCall_PrintAddStr [15:07:18]wPrintStart [15:07:18]Write to MH i2c: 01 00 00 98 51 E9 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 07 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 07 00 98 51 00 00 00 00 00 FF 0F FE [15:07:18]RasterBufferAndPrint [15:07:18]line Счет N : (1)31955 [15:07:18]line ИНН: 02508201610067 [15:07:18]line Контрольно-Кассовый Чек [15:07:18]line ПРОДАЖА [15:07:18]line ТРК (МРК, ГНК) : 12 [15:07:18]line Товар: 2710124130 [15:07:18]line Аи-92-К-5 [15:07:18]line 7.480 * 66.90 [15:07:18]line = 500.41 [15:07:18]line НДС 12% НСП 1% [15:07:18]line > о реализуемом товаре [15:07:18]line ОКРУГЛЕНИЕ: -0.41 [15:07:18]line ИТОГО: 500.00 [15:07:18]line Внесено: 500.00 [15:07:18]line СДАЧА: 0.00 [15:07:18]line НСП 1% : 4.43 [15:07:18]line НДС 12% : 53.14 [15:07:18]line Наличными: 500.00 [15:07:18]line Безнал.: 0.00 [15:07:18]line Место: АЗС № 170 "Партнер Нефть" [15:07:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:07:18]line СНО: Общий режим [15:07:18]line Чек 179 28.10.2024 15:07 [15:07:18]line Смена: 543 ФФД: 1.0 [15:07:18]line ЗНМ: 0300000110 [15:07:18]line РНМ: 0000000000091776 [15:07:18]line Версия ККМ: 001 [15:07:18]line ФМ: 0000000000871754 [15:07:18]line ФД: 192631 [15:07:18]line ФПД: 253850460978303 [15:07:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T150722&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192631&fm=253850460978303&tin=02508201610067®Number=0000000000091776&sum=50000 [15:07:18]OFD Sender: Processing packet 192631 [packets to send 75, broken 74] [15:07:18]ProducePacketName [15:07:18]name=ofd_packets/00192631 [15:07:18]OFD Sender: To server: pG, [15:07:18]CommunicateWithHost lk.salyk.kg:30040 [15:07:18]ConnectInit lk.salyk.kg [15:07:18]written 0, free lines is 4095 [15:07:18]Connected sock=10 [15:07:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2B BC 07 01 05 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 AA A8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 F0 02 00 35 04 06 00 E6 E0 2A 8D 7C 7F 13 28 2D 64 3D F8 B1 BC [15:07:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 04 30 47 00 A6 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 31 37 35 34 10 04 04 00 77 F0 02 00 F4 03 04 00 6E 4D 1F 67 B6 04 01 00 00 90 2A 28 1A 24 C6 66 E8 [15:07:18]CommunicateWithHost err = 0 [15:07:18]CheckOFDResponse [15:07:18]1017 (14) - 77093643461234 [15:07:18]1041 (16) - 0000000000871754 [15:07:18]1040 (4) - 192631 [15:07:18]1012 (4) - 28.10.2024 08:38 [15:07:18]1206 (1) - 0 [15:07:18]OFD Sender: Remove packet 192631 [15:07:18]ProducePacketName [15:07:18]name=ofd_packets/00192631 [15:07:18]NVStorageDeleteData [15:07:18]Write to MH i2c: 01 00 00 C3 51 14 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 07 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 07 00 C3 51 00 00 00 00 00 BE 0C E5 [15:07:18]RasterBufferAndPrint [15:07:18]line [15:07:18]line [15:07:18]line [15:07:18]line [15:07:18]line [15:07:18]written 0, free lines is 3268 [15:07:19]MH_Cut [15:07:19]Write to MH i2c: D1 01 00 CA 51 01 ED [15:07:19]Write i2c OK [15:07:19]MH_I2C_Read... [15:07:19]Read from MH i2c: D1 [15:07:19]MH_I2C_Read... [15:07:19]Read from MH i2c: D1 01 00 [15:07:19]MH_I2C_Read... [15:07:19]Read from MH i2c: D1 01 00 CA 51 00 EC [15:07:19]Write to MH i2c: 01 00 00 CB 51 1C [15:07:19]Write i2c OK [15:07:19]MH_I2C_Read... [15:07:19]OFD Sender: No OFD packet to send [15:07:19]*** Cut start [15:07:19]*** Partial cut [15:07:19]*** CUTSNS_PIN = 1 [15:07:19]*** CUTSNS_PIN = 0 [15:07:20]*** Brake cut motor [15:07:20]Read from MH i2c: 01 [15:07:20]MH_I2C_Read... [15:07:20]*** Stop cut motor [15:07:20]*** Cut end [15:07:20]Read from MH i2c: 01 07 00 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: 01 07 00 CB 51 00 00 00 00 00 FF 0F 31 [15:07:20]process_action close_receipt done [15:07:20]requested_data is exist [15:07:20]produce_requested_data [15:07:20]requested_item fm.sn is exist - process it [15:07:20]wFMCommunicate request_size=4 [15:07:20]MH_SAM_APDU [15:07:20]CAPDU: 80 11 00 00 [15:07:20]Write to MH i2c: E2 08 00 CC 51 80 11 00 00 00 00 00 00 97 [15:07:20]Write i2c OK [15:07:20]MH_I2C_Read... [15:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:20]Read from MH i2c: E2 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: E2 17 00 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: E2 17 00 CC 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [15:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:07:20]wFMCommunicate OK [15:07:20]requested_item fd.num is exist - process it [15:07:20]SAM_PROTO_GetFieldsCounters [15:07:20]wFMCommunicate request_size=4 [15:07:20]MH_SAM_APDU [15:07:20]CAPDU: 80 13 00 00 [15:07:20]Write to MH i2c: E2 08 00 CD 51 80 13 00 00 00 00 00 00 9A [15:07:20]Write i2c OK [15:07:20]MH_I2C_Read... [15:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:20]Read from MH i2c: E2 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: E2 62 00 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: E2 62 00 CD 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 77 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [15:07:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 77 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:20]wFMCommunicate OK [15:07:20]SAM_PROTO_GetFieldsCounters done [15:07:20]requested_item shift.num is exist - process it [15:07:20]requested_item shift.opened is exist - process it [15:07:20]req_shift_opened [15:07:20]FM_GetShiftState [15:07:20]SAM_PROTO_GetShiftState [15:07:20]wFMCommunicate request_size=4 [15:07:20]MH_SAM_APDU [15:07:20]CAPDU: 80 13 01 00 [15:07:20]Write to MH i2c: E2 08 00 CE 51 80 13 01 00 00 00 00 00 9C [15:07:20]Write i2c OK [15:07:20]MH_I2C_Read... [15:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:20]Read from MH i2c: E2 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: E2 0E 00 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: E2 0E 00 CE 51 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EC [15:07:20]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:07:20]wFMCommunicate OK [15:07:20]SAM_PROTO_GetShiftState done [15:07:20]FM_GetShiftState done [15:07:20]req_shift_opened done [15:07:20]requested_item shift.open_date is exist - process it [15:07:20]req_shift_open_date [15:07:20]req_shift_open_date done [15:07:20]produce_requested_data done [15:07:20]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192631,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:07:20]process_action_free close_receipt [15:07:20]json_value_free [15:07:20]json_value_free done [15:07:20]process_json_proto returns [15:07:20]Send response to host [15:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192631,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:07:20]free response buf [15:07:20]execute_script done [15:07:20]execute_script returns [15:07:20]free content buf [15:07:20]Sock 7.Close socket [15:07:20]Sock 7.Thread stoped [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:09]accept exits with 9 [15:10:09]New connection [15:10:09]New thread 3066563940 created [15:10:09]Thread 3066707300 joined [15:10:09]Waiting for new connection... [15:10:09] Sock 9.Parse request [15:10:09]Sock 9.Check first char [15:10:09]Sock 9.First char is OK [15:10:09]request: POST /json_proto HTTP/1.0 [15:10:09]Method: POST [15:10:09]URL: /json_proto [15:10:09]Method is POST - this is cgi request [15:10:09]url: /json_proto [15:10:09]query_string will be loaded in cgi processing [15:10:09]execute_cgi json_proto POST (null) [15:10:09]execute_cgi path=json_proto method=POST [15:10:09]POST find Content-Length [15:10:09]Host: 172.17.63.131:8080 [15:10:09]Content-Length: 678 [15:10:09]Content-Type: application/json [15:10:09] [15:10:09]POST finish read [15:10:09]Found Content-Length = 678 [15:10:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:09]execute_script... [15:10: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)31956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:09]POST & json_proto [15:10:09]process_json_proto [15:10:09]json parsed OK: [15:10:09]protocol is kg_v1.0 [15:10:09]action value=close_receipt [15:10:09]process_action close_receipt [15:10:09]cmd_close_receipt [15:10:09]MH_GetDate [15:10:09]Write to MH i2c: F0 00 00 CF 51 0F [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: F0 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: F0 09 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: F0 09 00 CF 51 00 57 A9 1F 67 22 05 6E 64 97 [15:10:09]GetLastDocTimeStamp 1730128042 [15:10:09]current date 1730128215 [15:10:09]FM_GetShiftState [15:10:09]SAM_PROTO_GetShiftState [15:10:09]wFMCommunicate request_size=4 [15:10:09]MH_SAM_APDU [15:10:09]CAPDU: 80 13 01 00 [15:10:09]Write to MH i2c: E2 08 00 D0 51 80 13 01 00 00 00 00 00 9E [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 0E 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 0E 00 D0 51 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EE [15:10:09]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:10:09]wFMCommunicate OK [15:10:09]SAM_PROTO_GetShiftState done [15:10:09]FM_GetShiftState done [15:10:09]opened in 1730075620 [15:10:09]opened+sec_in_day 1730162020 [15:10:09]quantity*price = 150037 [15:10:09]sum+1 = 150039 [15:10:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 180 28.10.2024 15:10 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192632 ФПД: 14602580912431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151015&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192632&fm=14602580912431&tin=02508201610067®Number=0000000000091776&sum=150000 [15:10:10]StoreToDocumentArchive [15:10:10]shift 543 fd 192632 [15:10:10]save to /storage/0543/doc_00192632 [15:10:10]save last doc name /storage/0543/doc_00192632 to /storage/kkm_last_doc_name [15:10:10]save OK [15:10:10]Clear old archive folders... [15:10:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:10:10]tlvbuf is 019B6470 [15:10:10]SAM_PROTO_ClearQueue [15:10:10]wFMCommunicate request_size=4 [15:10:10]MH_SAM_APDU [15:10:10]CAPDU: 80 09 00 00 [15:10:10]Write to MH i2c: E2 08 00 DD 51 80 09 00 00 00 00 00 00 A0 [15:10:10]Write i2c OK [15:10:10]MH_I2C_Read... [15:10:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:10]Read from MH i2c: E2 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: E2 03 00 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: E2 03 00 DD 51 00 90 00 A2 [15:10:10]RAPDU: 90 00 [15:10:10]wFMCommunicate OK [15:10:10]SAM_PROTO_ClearQueue done [15:10:10]KKMCreateOFDPacket [15:10:10]OFDProtocolAddRootSTLVToBuf [15:10:10]FM_MakeSignedData [15:10:10]FM_MakeSignedData [15:10:10]SAM_PROTO_SignData [15:10:10]wFMCommunicate request_size=4 [15:10:10]MH_SAM_APDU [15:10:10]CAPDU: 80 0D 01 02 [15:10:10]Write to MH i2c: E2 08 00 DE 51 80 0D 01 02 00 00 00 00 A8 [15:10:10]Write i2c OK [15:10:10]MH_I2C_Read... [15:10:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:10]Read from MH i2c: E2 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: E2 03 00 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: E2 03 00 DE 51 00 90 00 A3 [15:10:10]RAPDU: 90 00 [15:10:10]wFMCommunicate OK [15:10:10]wFMCommunicate request_size=255 [15:10:10]MH_SAM_APDU [15:10:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 57 A9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 F0 02 00 35 04 06 00 0D 47 ED A5 [15:10:10]Write to MH i2c: E2 02 01 DF 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 57 A9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 F0 02 00 35 04 06 00 0D 47 ED A5 00 00 54 [15:10:10]Write i2c OK [15:10:10]MH_I2C_Read... [15:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:11]Read from MH i2c: E2 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 03 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 03 00 DF 51 00 90 00 A4 [15:10:11]RAPDU: 90 00 [15:10:11]wFMCommunicate OK [15:10:11]wFMCommunicate request_size=7 [15:10:11]MH_SAM_APDU [15:10:11]CAPDU: 80 0D 02 02 02 E9 2F [15:10:11]Write to MH i2c: E2 0A 00 E0 51 80 0D 02 02 02 00 E9 2F 00 00 C7 [15:10:11]Write i2c OK [15:10:11]MH_I2C_Read... [15:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:11]Read from MH i2c: E2 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 03 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 03 00 E0 51 00 90 00 A5 [15:10:11]RAPDU: 90 00 [15:10:11]wFMCommunicate OK [15:10:11]wFMCommunicate request_size=4 [15:10:11]MH_SAM_APDU [15:10:11]CAPDU: 80 0D 03 02 [15:10:11]Write to MH i2c: E2 08 00 E1 51 80 0D 03 02 00 00 00 00 AD [15:10:11]Write i2c OK [15:10:11]MH_I2C_Read... [15:10:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:11]Read from MH i2c: E2 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 0B 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 0B 00 E1 51 00 28 6E 69 5C E5 25 65 A7 90 00 1F [15:10:11]RAPDU: 28 6E 69 5C E5 25 65 A7 90 00 [15:10:11]wFMCommunicate OK [15:10:11]SAM_PROTO_SignData done [15:10:11]FM_MakeSignedData done [15:10:11]CreateOFDProtocolMessage [15:10:11]wFMCommunicate request_size=4 [15:10:11]MH_SAM_APDU [15:10:11]CAPDU: 80 11 00 00 [15:10:11]Write to MH i2c: E2 08 00 E2 51 80 11 00 00 00 00 00 00 AD [15:10:11]Write i2c OK [15:10:11]MH_I2C_Read... [15:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:11]Read from MH i2c: E2 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 17 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 17 00 E2 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 00 [15:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:10:11]wFMCommunicate OK [15:10:11]CreateOFDProtocolMessage done [15:10:11]OFDSenderStorePacket 192632 [15:10:11]StoreOFDPacket docnum=192632 [15:10:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BA 3F 04 01 A0 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 57 A9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 F0 02 00 35 04 06 00 0D 47 ED A5 E9 2F 28 6E 69 5C E5 25 65 A7 [15:10:11]CheckFolder [15:10:11]dirname=/storage/ofd_packets [15:10:11]CheckFolder done [15:10:11]ProducePacketName [15:10:11]name=ofd_packets/00192632 [15:10:11]NVStorageSaveData ofd_packets/00192632 [15:10:11]File name is /storage/ofd_packets/00192632 [15:10:11]Write 298 bytes [15:10:11]NVStorageSaveData done [15:10:11]OFDSenderStorePacket done [15:10:11]KKMCreateOFDPacket done [15:10:11]NVStorageSaveData kkm_last_timestamp [15:10:11]File name is /storage/kkm_last_timestamp [15:10:11]Write 4 bytes [15:10:11]NVStorageSaveData done [15:10:11]ExternCall_PrintAddStr [15:10:11]wPrintStart [15:10:11]Write to MH i2c: 01 00 00 E3 51 34 [15:10:11]Write i2c OK [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: 01 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: 01 07 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: 01 07 00 E3 51 00 00 00 00 00 FF 0F 49 [15:10:11]RasterBufferAndPrint [15:10:11]line Счет N : (1)31956 [15:10:11]line ИНН: 02508201610067 [15:10:11]line Контрольно-Кассовый Чек [15:10:11]line ПРОДАЖА [15:10:11]line ТРК (МРК, ГНК) : 11 [15:10:11]line Товар: 2710194210 [15:10:11]line ДТ-К-5 [15:10:11]line 19.690 * 76.20 [15:10:11]line = 1500.38 [15:10:11]line НДС 12% НСП 1% [15:10:11]line > о реализуемом товаре [15:10:11]line ОКРУГЛЕНИЕ: -0.38 [15:10:11]line ИТОГО: 1500.00 [15:10:11]line Внесено: 1500.00 [15:10:11]line СДАЧА: 0.00 [15:10:11]line НСП 1% : 13.28 [15:10:11]line НДС 12% : 159.33 [15:10:11]line Наличными: 1500.00 [15:10:11]line Безнал.: 0.00 [15:10:11]line Место: АЗС № 170 "Партнер Нефть" [15:10:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:10:11]line СНО: Общий режим [15:10:11]line Чек 180 28.10.2024 15:10 [15:10:11]line Смена: 543 ФФД: 1.0 [15:10:11]line ЗНМ: 0300000110 [15:10:11]line РНМ: 0000000000091776 [15:10:11]line Версия ККМ: 001 [15:10:11]line ФМ: 0000000000871754 [15:10:11]line ФД: 192632 [15:10:11]line ФПД: 14602580912431 [15:10:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151015&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192632&fm=14602580912431&tin=02508201610067®Number=0000000000091776&sum=150000 [15:10:11]OFD Sender: Processing packet 192632 [packets to send 75, broken 74] [15:10:11]ProducePacketName [15:10:11]name=ofd_packets/00192632 [15:10:11]OFD Sender: To server: pG, [15:10:11]CommunicateWithHost lk.salyk.kg:30040 [15:10:11]ConnectInit lk.salyk.kg [15:10:11]written 0, free lines is 4095 [15:10:11]Connected sock=10 [15:10:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BA 3F 04 01 A0 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 57 A9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 F0 02 00 35 04 06 00 0D 47 ED A5 E9 2F 28 6E 69 5C E5 25 65 A7 [15:10:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4E 9B 47 00 C6 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 31 37 35 34 10 04 04 00 78 F0 02 00 F4 03 04 00 1B 4E 1F 67 B6 04 01 00 00 57 2B 0E 72 E0 93 F1 4A [15:10:12]CommunicateWithHost err = 0 [15:10:12]CheckOFDResponse [15:10:12]1017 (14) - 77093643461234 [15:10:12]1041 (16) - 0000000000871754 [15:10:12]1040 (4) - 192632 [15:10:12]1012 (4) - 28.10.2024 08:40 [15:10:12]1206 (1) - 0 [15:10:12]OFD Sender: Remove packet 192632 [15:10:12]ProducePacketName [15:10:12]name=ofd_packets/00192632 [15:10:12]NVStorageDeleteData [15:10:12]Write to MH i2c: 01 00 00 0E 52 60 [15:10:12]Write i2c OK [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: 01 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: 01 07 00 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: 01 07 00 0E 52 00 00 00 00 00 BF 0C 32 [15:10:12]RasterBufferAndPrint [15:10:12]line [15:10:12]line [15:10:12]line [15:10:12]line [15:10:12]line [15:10:12]written 0, free lines is 3270 [15:10:12]MH_Cut [15:10:12]Write to MH i2c: D1 01 00 15 52 01 39 [15:10:12]Write i2c OK [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: D1 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: D1 01 00 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: D1 01 00 15 52 00 38 [15:10:12]Write to MH i2c: 01 00 00 16 52 68 [15:10:12]Write i2c OK [15:10:12]MH_I2C_Read... [15:10:12]OFD Sender: No OFD packet to send [15:10:13]*** Cut start [15:10:13]*** Partial cut [15:10:13]*** CUTSNS_PIN = 1 [15:10:13]*** CUTSNS_PIN = 0 [15:10:13]*** Brake cut motor [15:10:13]Read from MH i2c: 01 [15:10:13]MH_I2C_Read... [15:10:13]*** Stop cut motor [15:10:13]*** Cut end [15:10:13]Read from MH i2c: 01 07 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: 01 07 00 16 52 00 00 00 00 00 FF 0F 7D [15:10:13]process_action close_receipt done [15:10:13]requested_data is exist [15:10:13]produce_requested_data [15:10:13]requested_item fm.sn is exist - process it [15:10:13]wFMCommunicate request_size=4 [15:10:13]MH_SAM_APDU [15:10:13]CAPDU: 80 11 00 00 [15:10:13]Write to MH i2c: E2 08 00 17 52 80 11 00 00 00 00 00 00 E3 [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:13]Read from MH i2c: E2 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 17 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 17 00 17 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 36 [15:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:10:13]wFMCommunicate OK [15:10:13]requested_item fd.num is exist - process it [15:10:13]SAM_PROTO_GetFieldsCounters [15:10:13]wFMCommunicate request_size=4 [15:10:13]MH_SAM_APDU [15:10:13]CAPDU: 80 13 00 00 [15:10:13]Write to MH i2c: E2 08 00 18 52 80 13 00 00 00 00 00 00 E6 [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:13]Read from MH i2c: E2 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 62 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 62 00 18 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 78 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [15:10:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 78 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:13]wFMCommunicate OK [15:10:13]SAM_PROTO_GetFieldsCounters done [15:10:13]requested_item shift.num is exist - process it [15:10:13]requested_item shift.opened is exist - process it [15:10:13]req_shift_opened [15:10:13]FM_GetShiftState [15:10:13]SAM_PROTO_GetShiftState [15:10:13]wFMCommunicate request_size=4 [15:10:13]MH_SAM_APDU [15:10:13]CAPDU: 80 13 01 00 [15:10:13]Write to MH i2c: E2 08 00 19 52 80 13 01 00 00 00 00 00 E8 [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:13]Read from MH i2c: E2 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 0E 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: E2 0E 00 19 52 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 38 [15:10:13]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:10:13]wFMCommunicate OK [15:10:13]SAM_PROTO_GetShiftState done [15:10:13]FM_GetShiftState done [15:10:13]req_shift_opened done [15:10:13]requested_item shift.open_date is exist - process it [15:10:13]req_shift_open_date [15:10:13]req_shift_open_date done [15:10:13]produce_requested_data done [15:10:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192632,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:10:13]process_action_free close_receipt [15:10:13]json_value_free [15:10:13]json_value_free done [15:10:13]process_json_proto returns [15:10:13]Send response to host [15:10:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192632,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:10:13]free response buf [15:10:13]execute_script done [15:10:13]execute_script returns [15:10:13]free content buf [15:10:13]Sock 9.Close socket [15:10:13]Sock 9.Thread stoped [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:43]accept exits with 7 [15:10:43]New connection [15:10:43]New thread 3066707300 created [15:10:43]Thread 3066563940 joined [15:10:43]Waiting for new connection... [15:10:43] Sock 7.Parse request [15:10:43]Sock 7.Check first char [15:10:43]Sock 7.First char is OK [15:10:43]request: POST /json_proto HTTP/1.0 [15:10:43]Method: POST [15:10:43]URL: /json_proto [15:10:43]Method is POST - this is cgi request [15:10:43]url: /json_proto [15:10:43]query_string will be loaded in cgi processing [15:10:43]execute_cgi json_proto POST (null) [15:10:43]execute_cgi path=json_proto method=POST [15:10:43]POST find Content-Length [15:10:43]Host: 172.17.63.131:8080 [15:10:43]Content-Length: 676 [15:10:43]Content-Type: application/json [15:10:43] [15:10:43]POST finish read [15:10:43]Found Content-Length = 676 [15:10:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:43]execute_script... [15:10: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)31957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:43]POST & json_proto [15:10:43]process_json_proto [15:10:43]json parsed OK: [15:10:43]protocol is kg_v1.0 [15:10:43]action value=close_receipt [15:10:43]process_action close_receipt [15:10:43]cmd_close_receipt [15:10:43]MH_GetDate [15:10:43]Write to MH i2c: F0 00 00 1A 52 5B [15:10:43]Write i2c OK [15:10:43]MH_I2C_Read... [15:10:43]Read from MH i2c: F0 [15:10:43]MH_I2C_Read... [15:10:43]Read from MH i2c: F0 09 00 [15:10:43]MH_I2C_Read... [15:10:43]Read from MH i2c: F0 09 00 1A 52 00 79 A9 1F 67 22 05 6E 64 05 [15:10:43]GetLastDocTimeStamp 1730128215 [15:10:43]current date 1730128249 [15:10:43]FM_GetShiftState [15:10:43]SAM_PROTO_GetShiftState [15:10:43]wFMCommunicate request_size=4 [15:10:43]MH_SAM_APDU [15:10:43]CAPDU: 80 13 01 00 [15:10:43]Write to MH i2c: E2 08 00 1B 52 80 13 01 00 00 00 00 00 EA [15:10:43]Write i2c OK [15:10:43]MH_I2C_Read... [15:10:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:43]Read from MH i2c: E2 [15:10:43]MH_I2C_Read... [15:10:43]Read from MH i2c: E2 0E 00 [15:10:43]MH_I2C_Read... [15:10:43]Read from MH i2c: E2 0E 00 1B 52 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3A [15:10:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:10:43]wFMCommunicate OK [15:10:43]SAM_PROTO_GetShiftState done [15:10:43]FM_GetShiftState done [15:10:43]opened in 1730075620 [15:10:43]opened+sec_in_day 1730162020 [15:10:43]quantity*price = 50041 [15:10:43]sum+1 = 50042 [15:10:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 181 28.10.2024 15:10 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192633 ФПД: 273715423849884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151049&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192633&fm=273715423849884&tin=02508201610067®Number=0000000000091776&sum=50000 [15:10:44]StoreToDocumentArchive [15:10:44]shift 543 fd 192633 [15:10:44]save to /storage/0543/doc_00192633 [15:10:44]save last doc name /storage/0543/doc_00192633 to /storage/kkm_last_doc_name [15:10:44]save OK [15:10:44]Clear old archive folders... [15:10:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:44]tlvbuf is 01B51520 [15:10:44]SAM_PROTO_ClearQueue [15:10:44]wFMCommunicate request_size=4 [15:10:44]MH_SAM_APDU [15:10:44]CAPDU: 80 09 00 00 [15:10:44]Write to MH i2c: E2 08 00 28 52 80 09 00 00 00 00 00 00 EC [15:10:44]Write i2c OK [15:10:44]MH_I2C_Read... [15:10:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:44]Read from MH i2c: E2 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: E2 03 00 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: E2 03 00 28 52 00 90 00 EE [15:10:44]RAPDU: 90 00 [15:10:44]wFMCommunicate OK [15:10:44]SAM_PROTO_ClearQueue done [15:10:44]KKMCreateOFDPacket [15:10:44]OFDProtocolAddRootSTLVToBuf [15:10:44]FM_MakeSignedData [15:10:44]FM_MakeSignedData [15:10:44]SAM_PROTO_SignData [15:10:44]wFMCommunicate request_size=4 [15:10:44]MH_SAM_APDU [15:10:44]CAPDU: 80 0D 01 02 [15:10:44]Write to MH i2c: E2 08 00 29 52 80 0D 01 02 00 00 00 00 F4 [15:10:44]Write i2c OK [15:10:44]MH_I2C_Read... [15:10:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:44]Read from MH i2c: E2 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: E2 03 00 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: E2 03 00 29 52 00 90 00 EF [15:10:44]RAPDU: 90 00 [15:10:44]wFMCommunicate OK [15:10:44]wFMCommunicate request_size=255 [15:10:44]MH_SAM_APDU [15:10:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 79 A9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 F0 02 00 35 04 06 00 F8 [15:10:44]Write to MH i2c: E2 02 01 2A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 79 A9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 F0 02 00 35 04 06 00 F8 00 00 69 [15:10:44]Write i2c OK [15:10:44]MH_I2C_Read... [15:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:44]Read from MH i2c: E2 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: E2 03 00 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: E2 03 00 2A 52 00 90 00 F0 [15:10:44]RAPDU: 90 00 [15:10:44]wFMCommunicate OK [15:10:44]wFMCommunicate request_size=10 [15:10:44]MH_SAM_APDU [15:10:44]CAPDU: 80 0D 02 02 05 F1 56 9B AD 9C [15:10:44]Write to MH i2c: E2 0D 00 2B 52 80 0D 02 02 05 00 F1 56 9B AD 9C 00 00 2C [15:10:44]Write i2c OK [15:10:44]MH_I2C_Read... [15:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:44]Read from MH i2c: E2 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: E2 03 00 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: E2 03 00 2B 52 00 90 00 F1 [15:10:44]RAPDU: 90 00 [15:10:44]wFMCommunicate OK [15:10:44]wFMCommunicate request_size=4 [15:10:44]MH_SAM_APDU [15:10:44]CAPDU: 80 0D 03 02 [15:10:44]Write to MH i2c: E2 08 00 2C 52 80 0D 03 02 00 00 00 00 F9 [15:10:44]Write i2c OK [15:10:44]MH_I2C_Read... [15:10:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:44]Read from MH i2c: E2 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: E2 0B 00 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: E2 0B 00 2C 52 00 AC 96 25 2A 01 7B 0D A1 90 00 B5 [15:10:44]RAPDU: AC 96 25 2A 01 7B 0D A1 90 00 [15:10:44]wFMCommunicate OK [15:10:44]SAM_PROTO_SignData done [15:10:44]FM_MakeSignedData done [15:10:44]CreateOFDProtocolMessage [15:10:44]wFMCommunicate request_size=4 [15:10:44]MH_SAM_APDU [15:10:44]CAPDU: 80 11 00 00 [15:10:44]Write to MH i2c: E2 08 00 2D 52 80 11 00 00 00 00 00 00 F9 [15:10:44]Write i2c OK [15:10:44]MH_I2C_Read... [15:10:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:45]Read from MH i2c: E2 [15:10:45]MH_I2C_Read... [15:10:45]Read from MH i2c: E2 17 00 [15:10:45]MH_I2C_Read... [15:10:45]Read from MH i2c: E2 17 00 2D 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [15:10:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:10:45]wFMCommunicate OK [15:10:45]CreateOFDProtocolMessage done [15:10:45]OFDSenderStorePacket 192633 [15:10:45]StoreOFDPacket docnum=192633 [15:10:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 27 25 07 01 85 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 79 A9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 F0 02 00 35 04 06 00 F8 F1 56 9B AD 9C AC 96 25 2A 01 7B 0D A1 [15:10:45]CheckFolder [15:10:45]dirname=/storage/ofd_packets [15:10:45]CheckFolder done [15:10:45]ProducePacketName [15:10:45]name=ofd_packets/00192633 [15:10:45]NVStorageSaveData ofd_packets/00192633 [15:10:45]File name is /storage/ofd_packets/00192633 [15:10:45]Write 301 bytes [15:10:45]NVStorageSaveData done [15:10:45]OFDSenderStorePacket done [15:10:45]KKMCreateOFDPacket done [15:10:45]NVStorageSaveData kkm_last_timestamp [15:10:45]File name is /storage/kkm_last_timestamp [15:10:45]Write 4 bytes [15:10:45]NVStorageSaveData done [15:10:45]ExternCall_PrintAddStr [15:10:45]wPrintStart [15:10:45]Write to MH i2c: 01 00 00 2E 52 80 [15:10:45]Write i2c OK [15:10:45]MH_I2C_Read... [15:10:45]Read from MH i2c: 01 [15:10:45]MH_I2C_Read... [15:10:45]Read from MH i2c: 01 07 00 [15:10:45]MH_I2C_Read... [15:10:45]Read from MH i2c: 01 07 00 2E 52 00 00 00 00 00 FF 0F 95 [15:10:45]RasterBufferAndPrint [15:10:45]line Счет N : (1)31957 [15:10:45]line ИНН: 02508201610067 [15:10:45]line Контрольно-Кассовый Чек [15:10:45]line ПРОДАЖА [15:10:45]line ТРК (МРК, ГНК) : 21 [15:10:45]line Товар: 2710124130 [15:10:45]line Аи-92-К-5 [15:10:45]line 7.480 * 66.90 [15:10:45]line = 500.41 [15:10:45]line НДС 12% НСП 1% [15:10:45]line > о реализуемом товаре [15:10:45]line ОКРУГЛЕНИЕ: -0.41 [15:10:45]line ИТОГО: 500.00 [15:10:45]line Внесено: 500.00 [15:10:45]line СДАЧА: 0.00 [15:10:45]line НСП 1% : 4.43 [15:10:45]line НДС 12% : 53.14 [15:10:45]line Наличными: 500.00 [15:10:45]line Безнал.: 0.00 [15:10:45]line Место: АЗС № 170 "Партнер Нефть" [15:10:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:10:45]line СНО: Общий режим [15:10:45]line Чек 181 28.10.2024 15:10 [15:10:45]line Смена: 543 ФФД: 1.0 [15:10:45]line ЗНМ: 0300000110 [15:10:45]line РНМ: 0000000000091776 [15:10:45]line Версия ККМ: 001 [15:10:45]line ФМ: 0000000000871754 [15:10:45]line ФД: 192633 [15:10:45]line ФПД: 273715423849884 [15:10:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151049&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192633&fm=273715423849884&tin=02508201610067®Number=0000000000091776&sum=50000 [15:10:45]OFD Sender: Processing packet 192633 [packets to send 75, broken 74] [15:10:45]ProducePacketName [15:10:45]name=ofd_packets/00192633 [15:10:45]OFD Sender: To server: pG, [15:10:45]CommunicateWithHost lk.salyk.kg:30040 [15:10:45]ConnectInit lk.salyk.kg [15:10:45]written 0, free lines is 4095 [15:10:45]Connected sock=10 [15:10:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 27 25 07 01 85 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 79 A9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 F0 02 00 35 04 06 00 F8 F1 56 9B AD 9C AC 96 25 2A 01 7B 0D A1 [15:10:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C5 83 47 00 63 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 31 37 35 34 10 04 04 00 79 F0 02 00 F4 03 04 00 3C 4E 1F 67 B6 04 01 00 00 7F F9 BD 0B EB 36 AA 0C [15:10:45]CommunicateWithHost err = 0 [15:10:45]CheckOFDResponse [15:10:45]1017 (14) - 77093643461234 [15:10:45]1041 (16) - 0000000000871754 [15:10:45]1040 (4) - 192633 [15:10:45]1012 (4) - 28.10.2024 08:41 [15:10:45]1206 (1) - 0 [15:10:45]OFD Sender: Remove packet 192633 [15:10:45]ProducePacketName [15:10:45]name=ofd_packets/00192633 [15:10:45]NVStorageDeleteData [15:10:45]Write to MH i2c: 01 00 00 59 52 AB [15:10:45]Write i2c OK [15:10:45]MH_I2C_Read... [15:10:45]Read from MH i2c: 01 [15:10:45]MH_I2C_Read... [15:10:45]Read from MH i2c: 01 07 00 [15:10:45]MH_I2C_Read... [15:10:45]Read from MH i2c: 01 07 00 59 52 00 00 00 00 00 BB 0C 79 [15:10:45]RasterBufferAndPrint [15:10:45]line [15:10:45]line [15:10:45]line [15:10:45]line [15:10:45]line [15:10:45]written 0, free lines is 3269 [15:10:45]MH_Cut [15:10:45]Write to MH i2c: D1 01 00 60 52 01 84 [15:10:45]Write i2c OK [15:10:45]MH_I2C_Read... [15:10:45]Read from MH i2c: D1 [15:10:45]MH_I2C_Read... [15:10:45]Read from MH i2c: D1 01 00 [15:10:45]MH_I2C_Read... [15:10:45]Read from MH i2c: D1 01 00 60 52 00 83 [15:10:45]Write to MH i2c: 01 00 00 61 52 B3 [15:10:45]Write i2c OK [15:10:45]MH_I2C_Read... [15:10:46]OFD Sender: No OFD packet to send [15:10:46]*** Cut start [15:10:46]*** Partial cut [15:10:46]*** CUTSNS_PIN = 1 [15:10:46]*** CUTSNS_PIN = 0 [15:10:46]*** Brake cut motor [15:10:47]Read from MH i2c: 01 [15:10:47]MH_I2C_Read... [15:10:47]*** Stop cut motor [15:10:47]*** Cut end [15:10:47]Read from MH i2c: 01 07 00 [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: 01 07 00 61 52 00 00 00 00 00 FF 0F C8 [15:10:47]process_action close_receipt done [15:10:47]requested_data is exist [15:10:47]produce_requested_data [15:10:47]requested_item fm.sn is exist - process it [15:10:47]wFMCommunicate request_size=4 [15:10:47]MH_SAM_APDU [15:10:47]CAPDU: 80 11 00 00 [15:10:47]Write to MH i2c: E2 08 00 62 52 80 11 00 00 00 00 00 00 2E [15:10:47]Write i2c OK [15:10:47]MH_I2C_Read... [15:10:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:47]Read from MH i2c: E2 [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: E2 17 00 [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: E2 17 00 62 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 81 [15:10:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:10:47]wFMCommunicate OK [15:10:47]requested_item fd.num is exist - process it [15:10:47]SAM_PROTO_GetFieldsCounters [15:10:47]wFMCommunicate request_size=4 [15:10:47]MH_SAM_APDU [15:10:47]CAPDU: 80 13 00 00 [15:10:47]Write to MH i2c: E2 08 00 63 52 80 13 00 00 00 00 00 00 31 [15:10:47]Write i2c OK [15:10:47]MH_I2C_Read... [15:10:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:47]Read from MH i2c: E2 [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: E2 62 00 [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: E2 62 00 63 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 79 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [15:10:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 79 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:47]wFMCommunicate OK [15:10:47]SAM_PROTO_GetFieldsCounters done [15:10:47]requested_item shift.num is exist - process it [15:10:47]requested_item shift.opened is exist - process it [15:10:47]req_shift_opened [15:10:47]FM_GetShiftState [15:10:47]SAM_PROTO_GetShiftState [15:10:47]wFMCommunicate request_size=4 [15:10:47]MH_SAM_APDU [15:10:47]CAPDU: 80 13 01 00 [15:10:47]Write to MH i2c: E2 08 00 64 52 80 13 01 00 00 00 00 00 33 [15:10:47]Write i2c OK [15:10:47]MH_I2C_Read... [15:10:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:47]Read from MH i2c: E2 [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: E2 0E 00 [15:10:47]MH_I2C_Read... [15:10:47]Read from MH i2c: E2 0E 00 64 52 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 83 [15:10:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:10:47]wFMCommunicate OK [15:10:47]SAM_PROTO_GetShiftState done [15:10:47]FM_GetShiftState done [15:10:47]req_shift_opened done [15:10:47]requested_item shift.open_date is exist - process it [15:10:47]req_shift_open_date [15:10:47]req_shift_open_date done [15:10:47]produce_requested_data done [15:10:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192633,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:10:47]process_action_free close_receipt [15:10:47]json_value_free [15:10:47]json_value_free done [15:10:47]process_json_proto returns [15:10:47]Send response to host [15:10:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192633,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:10:47]free response buf [15:10:47]execute_script done [15:10:47]execute_script returns [15:10:47]free content buf [15:10:47]Sock 7.Close socket [15:10:47]Sock 7.Thread stoped [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:36]accept exits with 9 [15:13:36]New connection [15:13:36]New thread 3066563940 created [15:13:36]Thread 3066707300 joined [15:13:36]Waiting for new connection... [15:13:36] Sock 9.Parse request [15:13:36]Sock 9.Check first char [15:13:36]Sock 9.First char is OK [15:13:36]request: POST /json_proto HTTP/1.0 [15:13:36]Method: POST [15:13:36]URL: /json_proto [15:13:36]Method is POST - this is cgi request [15:13:36]url: /json_proto [15:13:36]query_string will be loaded in cgi processing [15:13:36]execute_cgi json_proto POST (null) [15:13:36]execute_cgi path=json_proto method=POST [15:13:36]POST find Content-Length [15:13:36]Host: 172.17.63.131:8080 [15:13:36]Content-Length: 676 [15:13:36]Content-Type: application/json [15:13:36] [15:13:36]POST finish read [15:13:36]Found Content-Length = 676 [15:13:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:36]execute_script... [15:13: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)31958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:36]POST & json_proto [15:13:36]process_json_proto [15:13:36]json parsed OK: [15:13:36]protocol is kg_v1.0 [15:13:36]action value=close_receipt [15:13:36]process_action close_receipt [15:13:36]cmd_close_receipt [15:13:36]MH_GetDate [15:13:36]Write to MH i2c: F0 00 00 65 52 A6 [15:13:36]Write i2c OK [15:13:36]MH_I2C_Read... [15:13:36]Read from MH i2c: F0 [15:13:36]MH_I2C_Read... [15:13:36]Read from MH i2c: F0 09 00 [15:13:36]MH_I2C_Read... [15:13:36]Read from MH i2c: F0 09 00 65 52 00 26 AA 1F 67 22 05 6E 64 FE [15:13:36]GetLastDocTimeStamp 1730128249 [15:13:36]current date 1730128422 [15:13:36]FM_GetShiftState [15:13:36]SAM_PROTO_GetShiftState [15:13:36]wFMCommunicate request_size=4 [15:13:36]MH_SAM_APDU [15:13:36]CAPDU: 80 13 01 00 [15:13:36]Write to MH i2c: E2 08 00 66 52 80 13 01 00 00 00 00 00 35 [15:13:36]Write i2c OK [15:13:36]MH_I2C_Read... [15:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:37]Read from MH i2c: E2 [15:13:37]MH_I2C_Read... [15:13:37]Read from MH i2c: E2 0E 00 [15:13:37]MH_I2C_Read... [15:13:37]Read from MH i2c: E2 0E 00 66 52 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 85 [15:13:37]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:13:37]wFMCommunicate OK [15:13:37]SAM_PROTO_GetShiftState done [15:13:37]FM_GetShiftState done [15:13:37]opened in 1730075620 [15:13:37]opened+sec_in_day 1730162020 [15:13:37]quantity*price = 50041 [15:13:37]sum+1 = 50042 [15:13:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 182 28.10.2024 15:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192634 ФПД: 188184135817623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151342&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192634&fm=188184135817623&tin=02508201610067®Number=0000000000091776&sum=50000 [15:13:38]StoreToDocumentArchive [15:13:38]shift 543 fd 192634 [15:13:38]save to /storage/0543/doc_00192634 [15:13:38]save last doc name /storage/0543/doc_00192634 to /storage/kkm_last_doc_name [15:13:38]save OK [15:13:38]Clear old archive folders... [15:13:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:38]tlvbuf is 01A394A0 [15:13:38]SAM_PROTO_ClearQueue [15:13:38]wFMCommunicate request_size=4 [15:13:38]MH_SAM_APDU [15:13:38]CAPDU: 80 09 00 00 [15:13:38]Write to MH i2c: E2 08 00 73 52 80 09 00 00 00 00 00 00 37 [15:13:38]Write i2c OK [15:13:38]MH_I2C_Read... [15:13:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:38]Read from MH i2c: E2 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 03 00 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 03 00 73 52 00 90 00 39 [15:13:38]RAPDU: 90 00 [15:13:38]wFMCommunicate OK [15:13:38]SAM_PROTO_ClearQueue done [15:13:38]KKMCreateOFDPacket [15:13:38]OFDProtocolAddRootSTLVToBuf [15:13:38]FM_MakeSignedData [15:13:38]FM_MakeSignedData [15:13:38]SAM_PROTO_SignData [15:13:38]wFMCommunicate request_size=4 [15:13:38]MH_SAM_APDU [15:13:38]CAPDU: 80 0D 01 02 [15:13:38]Write to MH i2c: E2 08 00 74 52 80 0D 01 02 00 00 00 00 3F [15:13:38]Write i2c OK [15:13:38]MH_I2C_Read... [15:13:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:38]Read from MH i2c: E2 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 03 00 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 03 00 74 52 00 90 00 3A [15:13:38]RAPDU: 90 00 [15:13:38]wFMCommunicate OK [15:13:38]wFMCommunicate request_size=255 [15:13:38]MH_SAM_APDU [15:13: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 26 AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A F0 02 00 35 04 06 00 AB [15:13:38]Write to MH i2c: E2 02 01 75 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 26 AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A F0 02 00 35 04 06 00 AB 00 00 17 [15:13:38]Write i2c OK [15:13:38]MH_I2C_Read... [15:13:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:38]Read from MH i2c: E2 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 03 00 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 03 00 75 52 00 90 00 3B [15:13:38]RAPDU: 90 00 [15:13:38]wFMCommunicate OK [15:13:38]wFMCommunicate request_size=10 [15:13:38]MH_SAM_APDU [15:13:38]CAPDU: 80 0D 02 02 05 27 08 91 59 97 [15:13:38]Write to MH i2c: E2 0D 00 76 52 80 0D 02 02 05 00 27 08 91 59 97 00 00 FC [15:13:38]Write i2c OK [15:13:38]MH_I2C_Read... [15:13:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:38]Read from MH i2c: E2 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 03 00 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 03 00 76 52 00 90 00 3C [15:13:38]RAPDU: 90 00 [15:13:38]wFMCommunicate OK [15:13:38]wFMCommunicate request_size=4 [15:13:38]MH_SAM_APDU [15:13:38]CAPDU: 80 0D 03 02 [15:13:38]Write to MH i2c: E2 08 00 77 52 80 0D 03 02 00 00 00 00 44 [15:13:38]Write i2c OK [15:13:38]MH_I2C_Read... [15:13:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:38]Read from MH i2c: E2 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 0B 00 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 0B 00 77 52 00 AB 45 2C E0 50 B6 FF B9 90 00 FF [15:13:38]RAPDU: AB 45 2C E0 50 B6 FF B9 90 00 [15:13:38]wFMCommunicate OK [15:13:38]SAM_PROTO_SignData done [15:13:38]FM_MakeSignedData done [15:13:38]CreateOFDProtocolMessage [15:13:38]wFMCommunicate request_size=4 [15:13:38]MH_SAM_APDU [15:13:38]CAPDU: 80 11 00 00 [15:13:38]Write to MH i2c: E2 08 00 78 52 80 11 00 00 00 00 00 00 44 [15:13:38]Write i2c OK [15:13:38]MH_I2C_Read... [15:13:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:38]Read from MH i2c: E2 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 17 00 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 17 00 78 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [15:13:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:13:38]wFMCommunicate OK [15:13:38]CreateOFDProtocolMessage done [15:13:38]OFDSenderStorePacket 192634 [15:13:38]StoreOFDPacket docnum=192634 [15:13:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 1E 07 01 D3 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 26 AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A F0 02 00 35 04 06 00 AB 27 08 91 59 97 AB 45 2C E0 50 B6 FF B9 [15:13:38]CheckFolder [15:13:38]dirname=/storage/ofd_packets [15:13:38]CheckFolder done [15:13:38]ProducePacketName [15:13:38]name=ofd_packets/00192634 [15:13:38]NVStorageSaveData ofd_packets/00192634 [15:13:38]File name is /storage/ofd_packets/00192634 [15:13:38]Write 301 bytes [15:13:38]NVStorageSaveData done [15:13:38]OFDSenderStorePacket done [15:13:38]KKMCreateOFDPacket done [15:13:38]NVStorageSaveData kkm_last_timestamp [15:13:38]File name is /storage/kkm_last_timestamp [15:13:38]Write 4 bytes [15:13:38]NVStorageSaveData done [15:13:38]ExternCall_PrintAddStr [15:13:38]wPrintStart [15:13:38]Write to MH i2c: 01 00 00 79 52 CB [15:13:38]Write i2c OK [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: 01 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: 01 07 00 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: 01 07 00 79 52 00 00 00 00 00 FF 0F E0 [15:13:38]RasterBufferAndPrint [15:13:38]line Счет N : (1)31958 [15:13:38]line ИНН: 02508201610067 [15:13:38]line Контрольно-Кассовый Чек [15:13:38]line ПРОДАЖА [15:13:38]line ТРК (МРК, ГНК) : 12 [15:13:38]line Товар: 2710124130 [15:13:38]line Аи-92-К-5 [15:13:38]line 7.480 * 66.90 [15:13:38]line = 500.41 [15:13:38]line НДС 12% НСП 1% [15:13:38]line > о реализуемом товаре [15:13:38]line ОКРУГЛЕНИЕ: -0.41 [15:13:38]line ИТОГО: 500.00 [15:13:38]line Внесено: 500.00 [15:13:38]line СДАЧА: 0.00 [15:13:38]line НСП 1% : 4.43 [15:13:38]line НДС 12% : 53.14 [15:13:38]line Наличными: 500.00 [15:13:38]line Безнал.: 0.00 [15:13:38]line Место: АЗС № 170 "Партнер Нефть" [15:13:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:13:38]line СНО: Общий режим [15:13:38]line Чек 182 28.10.2024 15:13 [15:13:38]line Смена: 543 ФФД: 1.0 [15:13:38]line ЗНМ: 0300000110 [15:13:38]line РНМ: 0000000000091776 [15:13:38]line Версия ККМ: 001 [15:13:38]line ФМ: 0000000000871754 [15:13:38]line ФД: 192634 [15:13:38]line ФПД: 188184135817623 [15:13:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151342&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192634&fm=188184135817623&tin=02508201610067®Number=0000000000091776&sum=50000 [15:13:39]OFD Sender: Processing packet 192634 [packets to send 75, broken 74] [15:13:39]ProducePacketName [15:13:39]name=ofd_packets/00192634 [15:13:39]OFD Sender: To server: pG, [15:13:39]CommunicateWithHost lk.salyk.kg:30040 [15:13:39]ConnectInit lk.salyk.kg [15:13:39]written 0, free lines is 4095 [15:13:39]Connected sock=10 [15:13:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 1E 07 01 D3 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 26 AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A F0 02 00 35 04 06 00 AB 27 08 91 59 97 AB 45 2C E0 50 B6 FF B9 [15:13:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 39 7A 47 00 0C 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A F0 02 00 F4 03 04 00 EA 4E 1F 67 B6 04 01 00 00 7C C5 27 A3 3D EC 8C 2F [15:13:39]CommunicateWithHost err = 0 [15:13:39]CheckOFDResponse [15:13:39]1017 (14) - 77093643461234 [15:13:39]1041 (16) - 0000000000871754 [15:13:39]1040 (4) - 192634 [15:13:39]1012 (4) - 28.10.2024 08:44 [15:13:39]1206 (1) - 0 [15:13:39]OFD Sender: Remove packet 192634 [15:13:39]ProducePacketName [15:13:39]name=ofd_packets/00192634 [15:13:39]NVStorageDeleteData [15:13:39]Write to MH i2c: 01 00 00 A4 52 F6 [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: 01 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: 01 07 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: 01 07 00 A4 52 00 00 00 00 00 C2 0C CB [15:13:39]RasterBufferAndPrint [15:13:39]line [15:13:39]line [15:13:39]line [15:13:39]line [15:13:39]line [15:13:39]written 0, free lines is 3275 [15:13:39]MH_Cut [15:13:39]Write to MH i2c: D1 01 00 AB 52 01 CF [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: D1 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: D1 01 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: D1 01 00 AB 52 00 CE [15:13:39]Write to MH i2c: 01 00 00 AC 52 FE [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]OFD Sender: No OFD packet to send [15:13:40]*** Cut start [15:13:40]*** Partial cut [15:13:40]*** CUTSNS_PIN = 1 [15:13:40]*** CUTSNS_PIN = 0 [15:13:40]*** Brake cut motor [15:13:40]Read from MH i2c: 01 [15:13:40]MH_I2C_Read... [15:13:40]*** Stop cut motor [15:13:40]*** Cut end [15:13:40]Read from MH i2c: 01 07 00 [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: 01 07 00 AC 52 00 00 00 00 00 FF 0F 13 [15:13:40]process_action close_receipt done [15:13:40]requested_data is exist [15:13:40]produce_requested_data [15:13:40]requested_item fm.sn is exist - process it [15:13:40]wFMCommunicate request_size=4 [15:13:40]MH_SAM_APDU [15:13:40]CAPDU: 80 11 00 00 [15:13:40]Write to MH i2c: E2 08 00 AD 52 80 11 00 00 00 00 00 00 79 [15:13:40]Write i2c OK [15:13:40]MH_I2C_Read... [15:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:40]Read from MH i2c: E2 [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: E2 17 00 [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: E2 17 00 AD 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CC [15:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:13:40]wFMCommunicate OK [15:13:40]requested_item fd.num is exist - process it [15:13:40]SAM_PROTO_GetFieldsCounters [15:13:40]wFMCommunicate request_size=4 [15:13:40]MH_SAM_APDU [15:13:40]CAPDU: 80 13 00 00 [15:13:40]Write to MH i2c: E2 08 00 AE 52 80 13 00 00 00 00 00 00 7C [15:13:40]Write i2c OK [15:13:40]MH_I2C_Read... [15:13:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:41]Read from MH i2c: E2 [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: E2 62 00 [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: E2 62 00 AE 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [15:13: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:13:41]wFMCommunicate OK [15:13:41]SAM_PROTO_GetFieldsCounters done [15:13:41]requested_item shift.num is exist - process it [15:13:41]requested_item shift.opened is exist - process it [15:13:41]req_shift_opened [15:13:41]FM_GetShiftState [15:13:41]SAM_PROTO_GetShiftState [15:13:41]wFMCommunicate request_size=4 [15:13:41]MH_SAM_APDU [15:13:41]CAPDU: 80 13 01 00 [15:13:41]Write to MH i2c: E2 08 00 AF 52 80 13 01 00 00 00 00 00 7E [15:13:41]Write i2c OK [15:13:41]MH_I2C_Read... [15:13:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:41]Read from MH i2c: E2 [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: E2 0E 00 [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: E2 0E 00 AF 52 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CE [15:13:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:13:41]wFMCommunicate OK [15:13:41]SAM_PROTO_GetShiftState done [15:13:41]FM_GetShiftState done [15:13:41]req_shift_opened done [15:13:41]requested_item shift.open_date is exist - process it [15:13:41]req_shift_open_date [15:13:41]req_shift_open_date done [15:13:41]produce_requested_data done [15:13:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192634,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:13:41]process_action_free close_receipt [15:13:41]json_value_free [15:13:41]json_value_free done [15:13:41]process_json_proto returns [15:13:41]Send response to host [15:13:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192634,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:13:41]free response buf [15:13:41]execute_script done [15:13:41]execute_script returns [15:13:41]free content buf [15:13:41]Sock 9.Close socket [15:13:41]Sock 9.Thread stoped [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:50]accept exits with 7 [15:13:50]New connection [15:13:50]New thread 3066707300 created [15:13:50]Thread 3066563940 joined [15:13:50]Waiting for new connection... [15:13:50] Sock 7.Parse request [15:13:50]Sock 7.Check first char [15:13:50]Sock 7.First char is OK [15:13:50]request: POST /json_proto HTTP/1.0 [15:13:50]Method: POST [15:13:50]URL: /json_proto [15:13:50]Method is POST - this is cgi request [15:13:50]url: /json_proto [15:13:50]query_string will be loaded in cgi processing [15:13:50]execute_cgi json_proto POST (null) [15:13:50]execute_cgi path=json_proto method=POST [15:13:50]POST find Content-Length [15:13:50]Host: 172.17.63.131:8080 [15:13:50]Content-Length: 862 [15:13:50]Content-Type: application/json [15:13:50] [15:13:50]POST finish read [15:13:50]Found Content-Length = 862 [15:13:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:50]execute_script... [15:13:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:50]POST & json_proto [15:13:50]process_json_proto [15:13:50]json parsed OK: [15:13:50]protocol is kg_v1.0 [15:13:50]action value=close_receipt [15:13:50]process_action close_receipt [15:13:50]cmd_close_receipt [15:13:50]MH_GetDate [15:13:50]Write to MH i2c: F0 00 00 B0 52 F1 [15:13:50]Write i2c OK [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: F0 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: F0 09 00 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: F0 09 00 B0 52 00 34 AA 1F 67 22 05 6E 64 57 [15:13:50]GetLastDocTimeStamp 1730128422 [15:13:50]current date 1730128436 [15:13:50]FM_GetShiftState [15:13:50]SAM_PROTO_GetShiftState [15:13:50]wFMCommunicate request_size=4 [15:13:50]MH_SAM_APDU [15:13:50]CAPDU: 80 13 01 00 [15:13:50]Write to MH i2c: E2 08 00 B1 52 80 13 01 00 00 00 00 00 80 [15:13:50]Write i2c OK [15:13:50]MH_I2C_Read... [15:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:50]Read from MH i2c: E2 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 0E 00 [15:13:50]MH_I2C_Read... [15:13:50]Read from MH i2c: E2 0E 00 B1 52 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D0 [15:13:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:13:50]wFMCommunicate OK [15:13:50]SAM_PROTO_GetShiftState done [15:13:50]FM_GetShiftState done [15:13:50]opened in 1730075620 [15:13:50]opened+sec_in_day 1730162020 [15:13:50]quantity*price = 20003 [15:13:50]sum+1 = 20004 [15:13:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 183 28.10.2024 15:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192635 ФПД: 24455032892765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151356&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192635&fm=24455032892765&tin=02508201610067®Number=0000000000091776&sum=20003 [15:13:52]StoreToDocumentArchive [15:13:52]shift 543 fd 192635 [15:13:52]save to /storage/0543/doc_00192635 [15:13:52]save last doc name /storage/0543/doc_00192635 to /storage/kkm_last_doc_name [15:13:52]save OK [15:13:52]Clear old archive folders... [15:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:52]tlvbuf is 01B0CFC0 [15:13:52]SAM_PROTO_ClearQueue [15:13:52]wFMCommunicate request_size=4 [15:13:52]MH_SAM_APDU [15:13:52]CAPDU: 80 09 00 00 [15:13:52]Write to MH i2c: E2 08 00 BE 52 80 09 00 00 00 00 00 00 82 [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:52]Read from MH i2c: E2 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 03 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 03 00 BE 52 00 90 00 84 [15:13:52]RAPDU: 90 00 [15:13:52]wFMCommunicate OK [15:13:52]SAM_PROTO_ClearQueue done [15:13:52]KKMCreateOFDPacket [15:13:52]OFDProtocolAddRootSTLVToBuf [15:13:52]FM_MakeSignedData [15:13:52]FM_MakeSignedData [15:13:52]SAM_PROTO_SignData [15:13:52]wFMCommunicate request_size=4 [15:13:52]MH_SAM_APDU [15:13:52]CAPDU: 80 0D 01 02 [15:13:52]Write to MH i2c: E2 08 00 BF 52 80 0D 01 02 00 00 00 00 8A [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:52]Read from MH i2c: E2 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 03 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 03 00 BF 52 00 90 00 85 [15:13:52]RAPDU: 90 00 [15:13:52]wFMCommunicate OK [15:13:52]wFMCommunicate request_size=255 [15:13:52]MH_SAM_APDU [15:13:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 34 AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B F0 02 00 35 04 06 00 16 [15:13:52]Write to MH i2c: E2 02 01 C0 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 34 AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B F0 02 00 35 04 06 00 16 00 00 A5 [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:52]Read from MH i2c: E2 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 03 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 03 00 C0 52 00 90 00 86 [15:13:52]RAPDU: 90 00 [15:13:52]wFMCommunicate OK [15:13:52]wFMCommunicate request_size=10 [15:13:52]MH_SAM_APDU [15:13:52]CAPDU: 80 0D 02 02 05 3D E1 8C 6D 5D [15:13:52]Write to MH i2c: E2 0D 00 C1 52 80 0D 02 02 05 00 3D E1 8C 6D 5D 00 00 0B [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:52]Read from MH i2c: E2 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 03 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 03 00 C1 52 00 90 00 87 [15:13:52]RAPDU: 90 00 [15:13:52]wFMCommunicate OK [15:13:52]wFMCommunicate request_size=4 [15:13:52]MH_SAM_APDU [15:13:52]CAPDU: 80 0D 03 02 [15:13:52]Write to MH i2c: E2 08 00 C2 52 80 0D 03 02 00 00 00 00 8F [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:52]Read from MH i2c: E2 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 0B 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 0B 00 C2 52 00 EA DD BF B0 35 53 46 23 90 00 B7 [15:13:52]RAPDU: EA DD BF B0 35 53 46 23 90 00 [15:13:52]wFMCommunicate OK [15:13:52]SAM_PROTO_SignData done [15:13:52]FM_MakeSignedData done [15:13:52]CreateOFDProtocolMessage [15:13:52]wFMCommunicate request_size=4 [15:13:52]MH_SAM_APDU [15:13:52]CAPDU: 80 11 00 00 [15:13:52]Write to MH i2c: E2 08 00 C3 52 80 11 00 00 00 00 00 00 8F [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:52]Read from MH i2c: E2 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 17 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 17 00 C3 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E2 [15:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:13:52]wFMCommunicate OK [15:13:52]CreateOFDProtocolMessage done [15:13:52]OFDSenderStorePacket 192635 [15:13:52]StoreOFDPacket docnum=192635 [15:13:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 47 1A 07 01 94 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 34 AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B F0 02 00 35 04 06 00 16 3D E1 8C 6D 5D EA DD BF B0 35 53 46 23 [15:13:52]CheckFolder [15:13:52]dirname=/storage/ofd_packets [15:13:52]CheckFolder done [15:13:52]ProducePacketName [15:13:52]name=ofd_packets/00192635 [15:13:52]NVStorageSaveData ofd_packets/00192635 [15:13:52]File name is /storage/ofd_packets/00192635 [15:13:52]Write 301 bytes [15:13:52]NVStorageSaveData done [15:13:52]OFDSenderStorePacket done [15:13:52]KKMCreateOFDPacket done [15:13:52]NVStorageSaveData kkm_last_timestamp [15:13:52]File name is /storage/kkm_last_timestamp [15:13:52]Write 4 bytes [15:13:52]NVStorageSaveData done [15:13:52]OFD Sender: Processing packet 192635 [packets to send 75, broken 74] [15:13:52]ProducePacketName [15:13:52]name=ofd_packets/00192635 [15:13:52]OFD Sender: To server: pG, [15:13:52]CommunicateWithHost lk.salyk.kg:30040 [15:13:52]ConnectInit lk.salyk.kg [15:13:52]ExternCall_PrintAddStr [15:13:52]wPrintStart [15:13:52]Write to MH i2c: 01 00 00 C4 52 16 [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: 01 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: 01 07 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: 01 07 00 C4 52 00 00 00 00 00 FF 0F 2B [15:13:52]RasterBufferAndPrint [15:13:52]line Счет N : (1)31959 [15:13:52]line ИНН: 02508201610067 [15:13:52]line Контрольно-Кассовый Чек [15:13:52]line ПРОДАЖА [15:13:52]line ТРК (МРК, ГНК) : 21 [15:13:52]line Товар: 2710124130 [15:13:52]line Аи-92-К-5 [15:13:52]line 2.990 * 66.90 [15:13:52]line = 200.03 [15:13:52]line НДС 12% НСП 1% [15:13:52]line > о реализуемом товаре [15:13:52]line ИТОГО: 200.03 [15:13:52]line НСП 1% : 1.77 [15:13:52]line НДС 12% : 21.24 [15:13:52]line Наличными: 0.00 [15:13:52]line Безнал.: 200.03 [15:13:52]line Место: АЗС № 170 "Партнер Нефть" [15:13:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:13:52]line СНО: Общий режим [15:13:52]line Чек 183 28.10.2024 15:13 [15:13:52]line Смена: 543 ФФД: 1.0 [15:13:52]line ЗНМ: 0300000110 [15:13:52]line РНМ: 0000000000091776 [15:13:52]line Версия ККМ: 001 [15:13:52]line Платежная система: Кыргызкоммерцбанк [15:13:52]line ФМ: 0000000000871754 [15:13:52]line ФД: 192635 [15:13:52]line ФПД: 24455032892765 [15:13:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151356&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192635&fm=24455032892765&tin=02508201610067®Number=0000000000091776&sum=20003 [15:13:52]written 0, free lines is 4095 [15:13:52]Connected sock=12 [15:13:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 47 1A 07 01 94 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 34 AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B F0 02 00 35 04 06 00 16 3D E1 8C 6D 5D EA DD BF B0 35 53 46 23 [15:13:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F5 4C 47 00 24 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 31 37 35 34 10 04 04 00 7B F0 02 00 F4 03 04 00 F8 4E 1F 67 B6 04 01 00 00 11 27 3C 4A 20 1E 39 14 [15:13:52]CommunicateWithHost err = 0 [15:13:52]CheckOFDResponse [15:13:52]1017 (14) - 77093643461234 [15:13:52]1041 (16) - 0000000000871754 [15:13:52]1040 (4) - 192635 [15:13:52]1012 (4) - 28.10.2024 08:44 [15:13:52]1206 (1) - 0 [15:13:52]OFD Sender: Remove packet 192635 [15:13:52]ProducePacketName [15:13:52]name=ofd_packets/00192635 [15:13:52]NVStorageDeleteData [15:13:53]Write to MH i2c: 01 00 00 EE 52 40 [15:13:53]Write i2c OK [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: 01 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: 01 07 00 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: 01 07 00 EE 52 00 00 00 00 00 DD 0C 30 [15:13:53]RasterBufferAndPrint [15:13:53]line [15:13:53]line [15:13:53]line [15:13:53]line [15:13:53]line [15:13:53]written 0, free lines is 3300 [15:13:53]MH_Cut [15:13:53]Write to MH i2c: D1 01 00 F5 52 01 19 [15:13:53]Write i2c OK [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: D1 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: D1 01 00 [15:13:53]MH_I2C_Read... [15:13:53]Read from MH i2c: D1 01 00 F5 52 00 18 [15:13:53]Write to MH i2c: 01 00 00 F6 52 48 [15:13:53]Write i2c OK [15:13:53]MH_I2C_Read... [15:13:53]OFD Sender: No OFD packet to send [15:13:53]*** Cut start [15:13:53]*** Partial cut [15:13:53]*** CUTSNS_PIN = 1 [15:13:53]*** CUTSNS_PIN = 0 [15:13:54]*** Brake cut motor [15:13:54]Read from MH i2c: 01 [15:13:54]MH_I2C_Read... [15:13:54]*** Stop cut motor [15:13:54]*** Cut end [15:13:54]Read from MH i2c: 01 07 00 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: 01 07 00 F6 52 00 00 00 00 00 FF 0F 5D [15:13:54]process_action close_receipt done [15:13:54]requested_data is exist [15:13:54]produce_requested_data [15:13:54]requested_item fm.sn is exist - process it [15:13:54]wFMCommunicate request_size=4 [15:13:54]MH_SAM_APDU [15:13:54]CAPDU: 80 11 00 00 [15:13:54]Write to MH i2c: E2 08 00 F7 52 80 11 00 00 00 00 00 00 C3 [15:13:54]Write i2c OK [15:13:54]MH_I2C_Read... [15:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:54]Read from MH i2c: E2 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 17 00 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 17 00 F7 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 16 [15:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:13:54]wFMCommunicate OK [15:13:54]requested_item fd.num is exist - process it [15:13:54]SAM_PROTO_GetFieldsCounters [15:13:54]wFMCommunicate request_size=4 [15:13:54]MH_SAM_APDU [15:13:54]CAPDU: 80 13 00 00 [15:13:54]Write to MH i2c: E2 08 00 F8 52 80 13 00 00 00 00 00 00 C6 [15:13:54]Write i2c OK [15:13:54]MH_I2C_Read... [15:13:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:54]Read from MH i2c: E2 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 62 00 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 62 00 F8 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [15:13:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:13:54]wFMCommunicate OK [15:13:54]SAM_PROTO_GetFieldsCounters done [15:13:54]requested_item shift.num is exist - process it [15:13:54]requested_item shift.opened is exist - process it [15:13:54]req_shift_opened [15:13:54]FM_GetShiftState [15:13:54]SAM_PROTO_GetShiftState [15:13:54]wFMCommunicate request_size=4 [15:13:54]MH_SAM_APDU [15:13:54]CAPDU: 80 13 01 00 [15:13:54]Write to MH i2c: E2 08 00 F9 52 80 13 01 00 00 00 00 00 C8 [15:13:54]Write i2c OK [15:13:54]MH_I2C_Read... [15:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:54]Read from MH i2c: E2 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 0E 00 [15:13:54]MH_I2C_Read... [15:13:54]Read from MH i2c: E2 0E 00 F9 52 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 18 [15:13:54]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:13:54]wFMCommunicate OK [15:13:54]SAM_PROTO_GetShiftState done [15:13:54]FM_GetShiftState done [15:13:54]req_shift_opened done [15:13:54]requested_item shift.open_date is exist - process it [15:13:54]req_shift_open_date [15:13:54]req_shift_open_date done [15:13:54]produce_requested_data done [15:13:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192635,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:13:54]process_action_free close_receipt [15:13:54]json_value_free [15:13:54]json_value_free done [15:13:54]process_json_proto returns [15:13:54]Send response to host [15:13:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192635,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:13:54]free response buf [15:13:54]execute_script done [15:13:54]execute_script returns [15:13:54]free content buf [15:13:54]Sock 7.Close socket [15:13:54]Sock 7.Thread stoped [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:32]accept exits with 9 [15:15:32]New connection [15:15:32]New thread 3066563940 created [15:15:32]Thread 3066707300 joined [15:15:32]Waiting for new connection... [15:15:32] Sock 9.Parse request [15:15:32]Sock 9.Check first char [15:15:32]Sock 9.First char is OK [15:15:32]request: POST /json_proto HTTP/1.0 [15:15:32]Method: POST [15:15:32]URL: /json_proto [15:15:32]Method is POST - this is cgi request [15:15:32]url: /json_proto [15:15:32]query_string will be loaded in cgi processing [15:15:32]execute_cgi json_proto POST (null) [15:15:32]execute_cgi path=json_proto method=POST [15:15:32]POST find Content-Length [15:15:32]Host: 172.17.63.131:8080 [15:15:32]Content-Length: 677 [15:15:32]Content-Type: application/json [15:15:32] [15:15:32]POST finish read [15:15:32]Found Content-Length = 677 [15:15:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:32]execute_script... [15:15:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:32]POST & json_proto [15:15:32]process_json_proto [15:15:32]json parsed OK: [15:15:32]protocol is kg_v1.0 [15:15:32]action value=close_receipt [15:15:32]process_action close_receipt [15:15:32]cmd_close_receipt [15:15:32]MH_GetDate [15:15:32]Write to MH i2c: F0 00 00 FA 52 3B [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: F0 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: F0 09 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: F0 09 00 FA 52 00 9A AA 1F 67 22 05 6E 64 07 [15:15:32]GetLastDocTimeStamp 1730128436 [15:15:32]current date 1730128538 [15:15:32]FM_GetShiftState [15:15:32]SAM_PROTO_GetShiftState [15:15:32]wFMCommunicate request_size=4 [15:15:32]MH_SAM_APDU [15:15:32]CAPDU: 80 13 01 00 [15:15:32]Write to MH i2c: E2 08 00 FB 52 80 13 01 00 00 00 00 00 CA [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:32]Read from MH i2c: E2 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 0E 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 0E 00 FB 52 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1A [15:15:32]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:15:32]wFMCommunicate OK [15:15:32]SAM_PROTO_GetShiftState done [15:15:32]FM_GetShiftState done [15:15:32]opened in 1730075620 [15:15:32]opened+sec_in_day 1730162020 [15:15:32]quantity*price = 70044 [15:15:32]sum+1 = 70045 [15:15:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 184 28.10.2024 15:15 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192636 ФПД: 156278687314262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151538&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192636&fm=156278687314262&tin=02508201610067®Number=0000000000091776&sum=70000 [15:15:34]StoreToDocumentArchive [15:15:34]shift 543 fd 192636 [15:15:34]save to /storage/0543/doc_00192636 [15:15:34]save last doc name /storage/0543/doc_00192636 to /storage/kkm_last_doc_name [15:15:34]save OK [15:15:34]Clear old archive folders... [15:15:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:34]tlvbuf is 019E6940 [15:15:34]SAM_PROTO_ClearQueue [15:15:34]wFMCommunicate request_size=4 [15:15:34]MH_SAM_APDU [15:15:34]CAPDU: 80 09 00 00 [15:15:34]Write to MH i2c: E2 08 00 08 53 80 09 00 00 00 00 00 00 CD [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:34]Read from MH i2c: E2 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 03 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 03 00 08 53 00 90 00 CF [15:15:34]RAPDU: 90 00 [15:15:34]wFMCommunicate OK [15:15:34]SAM_PROTO_ClearQueue done [15:15:34]KKMCreateOFDPacket [15:15:34]OFDProtocolAddRootSTLVToBuf [15:15:34]FM_MakeSignedData [15:15:34]FM_MakeSignedData [15:15:34]SAM_PROTO_SignData [15:15:34]wFMCommunicate request_size=4 [15:15:34]MH_SAM_APDU [15:15:34]CAPDU: 80 0D 01 02 [15:15:34]Write to MH i2c: E2 08 00 09 53 80 0D 01 02 00 00 00 00 D5 [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:34]Read from MH i2c: E2 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 03 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 03 00 09 53 00 90 00 D0 [15:15:34]RAPDU: 90 00 [15:15:34]wFMCommunicate OK [15:15:34]wFMCommunicate request_size=255 [15:15:34]MH_SAM_APDU [15:15:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 9A AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C F0 02 00 35 04 06 00 8E [15:15:34]Write to MH i2c: E2 02 01 0A 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 9A AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C F0 02 00 35 04 06 00 8E 00 00 18 [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:34]Read from MH i2c: E2 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 03 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 03 00 0A 53 00 90 00 D1 [15:15:34]RAPDU: 90 00 [15:15:34]wFMCommunicate OK [15:15:34]wFMCommunicate request_size=10 [15:15:34]MH_SAM_APDU [15:15:34]CAPDU: 80 0D 02 02 05 22 77 A4 B1 56 [15:15:34]Write to MH i2c: E2 0D 00 0B 53 80 0D 02 02 05 00 22 77 A4 B1 56 00 00 26 [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:34]Read from MH i2c: E2 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 03 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 03 00 0B 53 00 90 00 D2 [15:15:34]RAPDU: 90 00 [15:15:34]wFMCommunicate OK [15:15:34]wFMCommunicate request_size=4 [15:15:34]MH_SAM_APDU [15:15:34]CAPDU: 80 0D 03 02 [15:15:34]Write to MH i2c: E2 08 00 0C 53 80 0D 03 02 00 00 00 00 DA [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:34]Read from MH i2c: E2 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 0B 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 0B 00 0C 53 00 E1 34 68 C5 73 72 77 23 90 00 9C [15:15:34]RAPDU: E1 34 68 C5 73 72 77 23 90 00 [15:15:34]wFMCommunicate OK [15:15:34]SAM_PROTO_SignData done [15:15:34]FM_MakeSignedData done [15:15:34]CreateOFDProtocolMessage [15:15:34]wFMCommunicate request_size=4 [15:15:34]MH_SAM_APDU [15:15:34]CAPDU: 80 11 00 00 [15:15:34]Write to MH i2c: E2 08 00 0D 53 80 11 00 00 00 00 00 00 DA [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:34]Read from MH i2c: E2 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 17 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 17 00 0D 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2D [15:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:15:34]wFMCommunicate OK [15:15:34]CreateOFDProtocolMessage done [15:15:34]OFDSenderStorePacket 192636 [15:15:34]StoreOFDPacket docnum=192636 [15:15:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C1 CF 07 01 AA 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 9A AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C F0 02 00 35 04 06 00 8E 22 77 A4 B1 56 E1 34 68 C5 73 72 77 23 [15:15:34]CheckFolder [15:15:34]dirname=/storage/ofd_packets [15:15:34]CheckFolder done [15:15:34]ProducePacketName [15:15:34]name=ofd_packets/00192636 [15:15:34]NVStorageSaveData ofd_packets/00192636 [15:15:34]File name is /storage/ofd_packets/00192636 [15:15:34]Write 301 bytes [15:15:34]NVStorageSaveData done [15:15:34]OFDSenderStorePacket done [15:15:34]KKMCreateOFDPacket done [15:15:34]NVStorageSaveData kkm_last_timestamp [15:15:34]File name is /storage/kkm_last_timestamp [15:15:34]Write 4 bytes [15:15:34]NVStorageSaveData done [15:15:34]OFD Sender: Processing packet 192636 [packets to send 75, broken 74] [15:15:34]ProducePacketName [15:15:34]name=ofd_packets/00192636 [15:15:34]OFD Sender: To server: pG, [15:15:34]CommunicateWithHost lk.salyk.kg:30040 [15:15:34]ConnectInit lk.salyk.kg [15:15:34]ExternCall_PrintAddStr [15:15:34]wPrintStart [15:15:34]Write to MH i2c: 01 00 00 0E 53 61 [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: 01 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: 01 07 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: 01 07 00 0E 53 00 00 00 00 00 FF 0F 76 [15:15:34]RasterBufferAndPrint [15:15:34]line Счет N : (1)31961 [15:15:34]line ИНН: 02508201610067 [15:15:34]line Контрольно-Кассовый Чек [15:15:34]line ПРОДАЖА [15:15:34]line ТРК (МРК, ГНК) : 21 [15:15:34]line Товар: 2710124130 [15:15:34]line Аи-92-К-5 [15:15:34]line 10.470 * 66.90 [15:15:34]line = 700.44 [15:15:34]line НДС 12% НСП 1% [15:15:34]line > о реализуемом товаре [15:15:34]line ОКРУГЛЕНИЕ: -0.44 [15:15:34]line ИТОГО: 700.00 [15:15:34]line Внесено: 700.00 [15:15:34]line СДАЧА: 0.00 [15:15:34]line НСП 1% : 6.20 [15:15:34]line НДС 12% : 74.38 [15:15:34]line Наличными: 700.00 [15:15:34]line Безнал.: 0.00 [15:15:34]line Место: АЗС № 170 "Партнер Нефть" [15:15:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:15:34]line СНО: Общий режим [15:15:34]line Чек 184 28.10.2024 15:15 [15:15:34]line Смена: 543 ФФД: 1.0 [15:15:34]line ЗНМ: 0300000110 [15:15:34]line РНМ: 0000000000091776 [15:15:34]line Версия ККМ: 001 [15:15:34]line ФМ: 0000000000871754 [15:15:34]line ФД: 192636 [15:15:34]line ФПД: 156278687314262 [15:15:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151538&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192636&fm=156278687314262&tin=02508201610067®Number=0000000000091776&sum=70000 [15:15:34]Connected sock=11 [15:15:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C1 CF 07 01 AA 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 9A AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C F0 02 00 35 04 06 00 8E 22 77 A4 B1 56 E1 34 68 C5 73 72 77 23 [15:15:34]written 0, free lines is 4095 [15:15:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 09 37 47 00 A9 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C F0 02 00 F4 03 04 00 5E 4F 1F 67 B6 04 01 00 00 44 12 E4 A7 EF 68 20 C2 [15:15:35]CommunicateWithHost err = 0 [15:15:35]CheckOFDResponse [15:15:35]1017 (14) - 77093643461234 [15:15:35]1041 (16) - 0000000000871754 [15:15:35]1040 (4) - 192636 [15:15:35]1012 (4) - 28.10.2024 08:46 [15:15:35]1206 (1) - 0 [15:15:35]OFD Sender: Remove packet 192636 [15:15:35]ProducePacketName [15:15:35]name=ofd_packets/00192636 [15:15:35]NVStorageDeleteData [15:15:35]Write to MH i2c: 01 00 00 39 53 8C [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: 01 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: 01 07 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: 01 07 00 39 53 00 00 00 00 00 C4 0C 63 [15:15:35]RasterBufferAndPrint [15:15:35]line [15:15:35]line [15:15:35]line [15:15:35]line [15:15:35]line [15:15:35]written 0, free lines is 3274 [15:15:35]MH_Cut [15:15:35]Write to MH i2c: D1 01 00 40 53 01 65 [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: D1 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: D1 01 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: D1 01 00 40 53 00 64 [15:15:35]Write to MH i2c: 01 00 00 41 53 94 [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]OFD Sender: No OFD packet to send [15:15:36]*** Cut start [15:15:36]*** Partial cut [15:15:36]*** CUTSNS_PIN = 1 [15:15:36]*** CUTSNS_PIN = 0 [15:15:36]*** Brake cut motor [15:15:36]Read from MH i2c: 01 [15:15:36]MH_I2C_Read... [15:15:36]*** Stop cut motor [15:15:36]*** Cut end [15:15:36]Read from MH i2c: 01 07 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: 01 07 00 41 53 00 00 00 00 00 FF 0F A9 [15:15:36]process_action close_receipt done [15:15:36]requested_data is exist [15:15:36]produce_requested_data [15:15:36]requested_item fm.sn is exist - process it [15:15:36]wFMCommunicate request_size=4 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 11 00 00 [15:15:36]Write to MH i2c: E2 08 00 42 53 80 11 00 00 00 00 00 00 0F [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 17 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 17 00 42 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 62 [15:15:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:15:36]wFMCommunicate OK [15:15:36]requested_item fd.num is exist - process it [15:15:36]SAM_PROTO_GetFieldsCounters [15:15:36]wFMCommunicate request_size=4 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 13 00 00 [15:15:36]Write to MH i2c: E2 08 00 43 53 80 13 00 00 00 00 00 00 12 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:37]Read from MH i2c: E2 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 62 00 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 62 00 43 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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [15:15:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:37]wFMCommunicate OK [15:15:37]SAM_PROTO_GetFieldsCounters done [15:15:37]requested_item shift.num is exist - process it [15:15:37]requested_item shift.opened is exist - process it [15:15:37]req_shift_opened [15:15:37]FM_GetShiftState [15:15:37]SAM_PROTO_GetShiftState [15:15:37]wFMCommunicate request_size=4 [15:15:37]MH_SAM_APDU [15:15:37]CAPDU: 80 13 01 00 [15:15:37]Write to MH i2c: E2 08 00 44 53 80 13 01 00 00 00 00 00 14 [15:15:37]Write i2c OK [15:15:37]MH_I2C_Read... [15:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:37]Read from MH i2c: E2 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 0E 00 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 0E 00 44 53 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 64 [15:15:37]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:15:37]wFMCommunicate OK [15:15:37]SAM_PROTO_GetShiftState done [15:15:37]FM_GetShiftState done [15:15:37]req_shift_opened done [15:15:37]requested_item shift.open_date is exist - process it [15:15:37]req_shift_open_date [15:15:37]req_shift_open_date done [15:15:37]produce_requested_data done [15:15:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192636,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:15:37]process_action_free close_receipt [15:15:37]json_value_free [15:15:37]json_value_free done [15:15:37]process_json_proto returns [15:15:37]Send response to host [15:15:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192636,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:15:37]free response buf [15:15:37]execute_script done [15:15:37]execute_script returns [15:15:37]free content buf [15:15:37]Sock 9.Close socket [15:15:37]Sock 9.Thread stoped [15:15:40]OFD Sender: No OFD packet to send [15:15:42]accept exits with 7 [15:15:42]New connection [15:15:42]New thread 3066707300 created [15:15:42]Thread 3066563940 joined [15:15:42]Waiting for new connection... [15:15:42] Sock 7.Parse request [15:15:42]Sock 7.Check first char [15:15:42]Sock 7.First char is OK [15:15:42]request: POST /json_proto HTTP/1.0 [15:15:42]Method: POST [15:15:42]URL: /json_proto [15:15:42]Method is POST - this is cgi request [15:15:42]url: /json_proto [15:15:42]query_string will be loaded in cgi processing [15:15:42]execute_cgi json_proto POST (null) [15:15:42]execute_cgi path=json_proto method=POST [15:15:42]POST find Content-Length [15:15:42]Host: 172.17.63.131:8080 [15:15:42]Content-Length: 676 [15:15:42]Content-Type: application/json [15:15:42] [15:15:42]POST finish read [15:15:42]Found Content-Length = 676 [15:15:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:42]execute_script... [15:15: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)31962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:42]POST & json_proto [15:15:42]process_json_proto [15:15:42]json parsed OK: [15:15:42]protocol is kg_v1.0 [15:15:42]action value=close_receipt [15:15:42]process_action close_receipt [15:15:42]cmd_close_receipt [15:15:42]MH_GetDate [15:15:42]Write to MH i2c: F0 00 00 45 53 87 [15:15:42]Write i2c OK [15:15:42]MH_I2C_Read... [15:15:42]Read from MH i2c: F0 [15:15:42]MH_I2C_Read... [15:15:42]Read from MH i2c: F0 09 00 [15:15:42]MH_I2C_Read... [15:15:42]Read from MH i2c: F0 09 00 45 53 00 A4 AA 1F 67 22 05 6E 64 5D [15:15:42]GetLastDocTimeStamp 1730128538 [15:15:42]current date 1730128548 [15:15:42]FM_GetShiftState [15:15:42]SAM_PROTO_GetShiftState [15:15:42]wFMCommunicate request_size=4 [15:15:42]MH_SAM_APDU [15:15:42]CAPDU: 80 13 01 00 [15:15:42]Write to MH i2c: E2 08 00 46 53 80 13 01 00 00 00 00 00 16 [15:15:42]Write i2c OK [15:15:42]MH_I2C_Read... [15:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:43]Read from MH i2c: E2 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: E2 0E 00 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: E2 0E 00 46 53 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 66 [15:15:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:15:43]wFMCommunicate OK [15:15:43]SAM_PROTO_GetShiftState done [15:15:43]FM_GetShiftState done [15:15:43]opened in 1730075620 [15:15:43]opened+sec_in_day 1730162020 [15:15:43]quantity*price = 60009 [15:15:43]sum+1 = 60010 [15:15:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 185 28.10.2024 15:15 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192637 ФПД: 25272980031016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151548&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192637&fm=25272980031016&tin=02508201610067®Number=0000000000091776&sum=60000 [15:15:44]StoreToDocumentArchive [15:15:44]shift 543 fd 192637 [15:15:44]save to /storage/0543/doc_00192637 [15:15:44]save last doc name /storage/0543/doc_00192637 to /storage/kkm_last_doc_name [15:15:44]save OK [15:15:44]Clear old archive folders... [15:15:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:44]tlvbuf is 01B21020 [15:15:44]SAM_PROTO_ClearQueue [15:15:44]wFMCommunicate request_size=4 [15:15:44]MH_SAM_APDU [15:15:44]CAPDU: 80 09 00 00 [15:15:44]Write to MH i2c: E2 08 00 53 53 80 09 00 00 00 00 00 00 18 [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:44]Read from MH i2c: E2 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 03 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 03 00 53 53 00 90 00 1A [15:15:44]RAPDU: 90 00 [15:15:44]wFMCommunicate OK [15:15:44]SAM_PROTO_ClearQueue done [15:15:44]KKMCreateOFDPacket [15:15:44]OFDProtocolAddRootSTLVToBuf [15:15:44]FM_MakeSignedData [15:15:44]FM_MakeSignedData [15:15:44]SAM_PROTO_SignData [15:15:44]wFMCommunicate request_size=4 [15:15:44]MH_SAM_APDU [15:15:44]CAPDU: 80 0D 01 02 [15:15:44]Write to MH i2c: E2 08 00 54 53 80 0D 01 02 00 00 00 00 20 [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:44]Read from MH i2c: E2 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 03 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 03 00 54 53 00 90 00 1B [15:15:44]RAPDU: 90 00 [15:15:44]wFMCommunicate OK [15:15:44]wFMCommunicate request_size=255 [15:15:44]MH_SAM_APDU [15:15: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 A4 AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D F0 02 00 35 04 06 00 16 [15:15:44]Write to MH i2c: E2 02 01 55 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 A4 AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D F0 02 00 35 04 06 00 16 00 00 C4 [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:44]Read from MH i2c: E2 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 03 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 03 00 55 53 00 90 00 1C [15:15:44]RAPDU: 90 00 [15:15:44]wFMCommunicate OK [15:15:44]wFMCommunicate request_size=10 [15:15:44]MH_SAM_APDU [15:15:44]CAPDU: 80 0D 02 02 05 FC 52 FF 46 28 [15:15:44]Write to MH i2c: E2 0D 00 56 53 80 0D 02 02 05 00 FC 52 FF 46 28 00 00 E8 [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:44]Read from MH i2c: E2 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 03 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 03 00 56 53 00 90 00 1D [15:15:44]RAPDU: 90 00 [15:15:44]wFMCommunicate OK [15:15:44]wFMCommunicate request_size=4 [15:15:44]MH_SAM_APDU [15:15:44]CAPDU: 80 0D 03 02 [15:15:44]Write to MH i2c: E2 08 00 57 53 80 0D 03 02 00 00 00 00 25 [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:44]Read from MH i2c: E2 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 0B 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 0B 00 57 53 00 AF 43 84 7F 7B 76 90 D7 90 00 73 [15:15:44]RAPDU: AF 43 84 7F 7B 76 90 D7 90 00 [15:15:44]wFMCommunicate OK [15:15:44]SAM_PROTO_SignData done [15:15:44]FM_MakeSignedData done [15:15:44]CreateOFDProtocolMessage [15:15:44]wFMCommunicate request_size=4 [15:15:44]MH_SAM_APDU [15:15:44]CAPDU: 80 11 00 00 [15:15:44]Write to MH i2c: E2 08 00 58 53 80 11 00 00 00 00 00 00 25 [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:44]Read from MH i2c: E2 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 17 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 17 00 58 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [15:15:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:15:44]wFMCommunicate OK [15:15:44]CreateOFDProtocolMessage done [15:15:44]OFDSenderStorePacket 192637 [15:15:44]StoreOFDPacket docnum=192637 [15:15:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 89 7E 07 01 94 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 A4 AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D F0 02 00 35 04 06 00 16 FC 52 FF 46 28 AF 43 84 7F 7B 76 90 D7 [15:15:44]CheckFolder [15:15:44]dirname=/storage/ofd_packets [15:15:44]CheckFolder done [15:15:44]ProducePacketName [15:15:44]name=ofd_packets/00192637 [15:15:44]NVStorageSaveData ofd_packets/00192637 [15:15:44]File name is /storage/ofd_packets/00192637 [15:15:44]Write 301 bytes [15:15:44]NVStorageSaveData done [15:15:44]OFDSenderStorePacket done [15:15:44]KKMCreateOFDPacket done [15:15:44]NVStorageSaveData kkm_last_timestamp [15:15:44]File name is /storage/kkm_last_timestamp [15:15:44]Write 4 bytes [15:15:44]NVStorageSaveData done [15:15:44]ExternCall_PrintAddStr [15:15:44]wPrintStart [15:15:44]Write to MH i2c: 01 00 00 59 53 AC [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: 01 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: 01 07 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: 01 07 00 59 53 00 00 00 00 00 FF 0F C1 [15:15:44]RasterBufferAndPrint [15:15:44]line Счет N : (1)31962 [15:15:44]line ИНН: 02508201610067 [15:15:44]line Контрольно-Кассовый Чек [15:15:44]line ПРОДАЖА [15:15:44]line ТРК (МРК, ГНК) : 12 [15:15:44]line Товар: 2710124130 [15:15:44]line Аи-92-К-5 [15:15:44]line 8.970 * 66.90 [15:15:44]line = 600.09 [15:15:44]line НДС 12% НСП 1% [15:15:44]line > о реализуемом товаре [15:15:44]line ОКРУГЛЕНИЕ: -0.09 [15:15:44]line ИТОГО: 600.00 [15:15:44]line Внесено: 600.00 [15:15:44]line СДАЧА: 0.00 [15:15:44]line НСП 1% : 5.31 [15:15:44]line НДС 12% : 63.73 [15:15:44]line Наличными: 600.00 [15:15:44]line Безнал.: 0.00 [15:15:44]line Место: АЗС № 170 "Партнер Нефть" [15:15:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:15:44]line СНО: Общий режим [15:15:44]line Чек 185 28.10.2024 15:15 [15:15:44]line Смена: 543 ФФД: 1.0 [15:15:44]line ЗНМ: 0300000110 [15:15:44]line РНМ: 0000000000091776 [15:15:44]line Версия ККМ: 001 [15:15:44]line ФМ: 0000000000871754 [15:15:44]line ФД: 192637 [15:15:44]line ФПД: 25272980031016 [15:15:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151548&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192637&fm=25272980031016&tin=02508201610067®Number=0000000000091776&sum=60000 [15:15:44]written 0, free lines is 4095 [15:15:44]OFD Sender: Processing packet 192637 [packets to send 75, broken 74] [15:15:44]ProducePacketName [15:15:44]name=ofd_packets/00192637 [15:15:44]OFD Sender: To server: pG, [15:15:44]CommunicateWithHost lk.salyk.kg:30040 [15:15:44]ConnectInit lk.salyk.kg [15:15:44]Connected sock=10 [15:15:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 89 7E 07 01 94 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 A4 AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D F0 02 00 35 04 06 00 16 FC 52 FF 46 28 AF 43 84 7F 7B 76 90 D7 [15:15:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 85 3C 47 00 B1 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D F0 02 00 F4 03 04 00 68 4F 1F 67 B6 04 01 00 00 18 05 E1 FD 62 1D E2 6A [15:15:45]CommunicateWithHost err = 0 [15:15:45]CheckOFDResponse [15:15:45]1017 (14) - 77093643461234 [15:15:45]1041 (16) - 0000000000871754 [15:15:45]1040 (4) - 192637 [15:15:45]1012 (4) - 28.10.2024 08:46 [15:15:45]1206 (1) - 0 [15:15:45]OFD Sender: Remove packet 192637 [15:15:45]ProducePacketName [15:15:45]name=ofd_packets/00192637 [15:15:45]NVStorageDeleteData [15:15:45]Write to MH i2c: 01 00 00 84 53 D7 [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: 01 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: 01 07 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: 01 07 00 84 53 00 00 00 00 00 BF 0C A9 [15:15:45]RasterBufferAndPrint [15:15:45]line [15:15:45]line [15:15:45]line [15:15:45]line [15:15:45]line [15:15:45]written 0, free lines is 3272 [15:15:45]MH_Cut [15:15:45]Write to MH i2c: D1 01 00 8B 53 01 B0 [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: D1 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: D1 01 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: D1 01 00 8B 53 00 AF [15:15:45]Write to MH i2c: 01 00 00 8C 53 DF [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]OFD Sender: No OFD packet to send [15:15:45]*** Cut start [15:15:45]*** Partial cut [15:15:45]*** CUTSNS_PIN = 1 [15:15:46]*** CUTSNS_PIN = 0 [15:15:46]*** Brake cut motor [15:15:46]Read from MH i2c: 01 [15:15:46]MH_I2C_Read... [15:15:46]*** Stop cut motor [15:15:46]*** Cut end [15:15:46]Read from MH i2c: 01 07 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: 01 07 00 8C 53 00 00 00 00 00 FF 0F F4 [15:15:46]process_action close_receipt done [15:15:46]requested_data is exist [15:15:46]produce_requested_data [15:15:46]requested_item fm.sn is exist - process it [15:15:46]wFMCommunicate request_size=4 [15:15:46]MH_SAM_APDU [15:15:46]CAPDU: 80 11 00 00 [15:15:46]Write to MH i2c: E2 08 00 8D 53 80 11 00 00 00 00 00 00 5A [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:46]Read from MH i2c: E2 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 17 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 17 00 8D 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AD [15:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:15:46]wFMCommunicate OK [15:15:46]requested_item fd.num is exist - process it [15:15:46]SAM_PROTO_GetFieldsCounters [15:15:46]wFMCommunicate request_size=4 [15:15:46]MH_SAM_APDU [15:15:46]CAPDU: 80 13 00 00 [15:15:46]Write to MH i2c: E2 08 00 8E 53 80 13 00 00 00 00 00 00 5D [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 [15:15:46]MH_I2C_Read... [15:15:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:46]Read from MH i2c: E2 62 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 62 00 8E 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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [15:15:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:46]wFMCommunicate OK [15:15:46]SAM_PROTO_GetFieldsCounters done [15:15:46]requested_item shift.num is exist - process it [15:15:46]requested_item shift.opened is exist - process it [15:15:46]req_shift_opened [15:15:46]FM_GetShiftState [15:15:46]SAM_PROTO_GetShiftState [15:15:46]wFMCommunicate request_size=4 [15:15:46]MH_SAM_APDU [15:15:46]CAPDU: 80 13 01 00 [15:15:46]Write to MH i2c: E2 08 00 8F 53 80 13 01 00 00 00 00 00 5F [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:46]Read from MH i2c: E2 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 0E 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 0E 00 8F 53 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 AF [15:15:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:15:46]wFMCommunicate OK [15:15:46]SAM_PROTO_GetShiftState done [15:15:46]FM_GetShiftState done [15:15:46]req_shift_opened done [15:15:46]requested_item shift.open_date is exist - process it [15:15:46]req_shift_open_date [15:15:46]req_shift_open_date done [15:15:46]produce_requested_data done [15:15:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192637,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:15:46]process_action_free close_receipt [15:15:46]json_value_free [15:15:46]json_value_free done [15:15:46]process_json_proto returns [15:15:46]Send response to host [15:15:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192637,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:15:46]free response buf [15:15:46]execute_script done [15:15:46]execute_script returns [15:15:46]free content buf [15:15:46]Sock 7.Close socket [15:15:46]Sock 7.Thread stoped [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:20]accept exits with 9 [15:16:20]New connection [15:16:20]New thread 3066563940 created [15:16:20]Thread 3066707300 joined [15:16:20]Waiting for new connection... [15:16:20] Sock 9.Parse request [15:16:20]Sock 9.Check first char [15:16:20]Sock 9.First char is OK [15:16:20]request: POST /json_proto HTTP/1.0 [15:16:20]Method: POST [15:16:20]URL: /json_proto [15:16:20]Method is POST - this is cgi request [15:16:20]url: /json_proto [15:16:20]query_string will be loaded in cgi processing [15:16:20]execute_cgi json_proto POST (null) [15:16:20]execute_cgi path=json_proto method=POST [15:16:20]POST find Content-Length [15:16:20]Host: 172.17.63.131:8080 [15:16:20]Content-Length: 676 [15:16:20]Content-Type: application/json [15:16:20] [15:16:20]POST finish read [15:16:20]Found Content-Length = 676 [15:16:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:20]execute_script... [15:16:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:20]POST & json_proto [15:16:20]process_json_proto [15:16:20]json parsed OK: [15:16:20]protocol is kg_v1.0 [15:16:20]action value=close_receipt [15:16:20]process_action close_receipt [15:16:20]cmd_close_receipt [15:16:20]MH_GetDate [15:16:20]Write to MH i2c: F0 00 00 90 53 D2 [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: F0 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: F0 09 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: F0 09 00 90 53 00 CA AA 1F 67 22 05 6E 64 CE [15:16:20]GetLastDocTimeStamp 1730128548 [15:16:20]current date 1730128586 [15:16:20]FM_GetShiftState [15:16:20]SAM_PROTO_GetShiftState [15:16:20]wFMCommunicate request_size=4 [15:16:20]MH_SAM_APDU [15:16:20]CAPDU: 80 13 01 00 [15:16:20]Write to MH i2c: E2 08 00 91 53 80 13 01 00 00 00 00 00 61 [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:21]Read from MH i2c: E2 [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: E2 0E 00 [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: E2 0E 00 91 53 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B1 [15:16:21]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:16:21]wFMCommunicate OK [15:16:21]SAM_PROTO_GetShiftState done [15:16:21]FM_GetShiftState done [15:16:21]opened in 1730075620 [15:16:21]opened+sec_in_day 1730162020 [15:16:21]quantity*price = 10035 [15:16:21]sum+1 = 10036 [15:16:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 186 28.10.2024 15:16 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192638 ФПД: 83122248628437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151626&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192638&fm=83122248628437&tin=02508201610067®Number=0000000000091776&sum=10000 [15:16:22]StoreToDocumentArchive [15:16:22]shift 543 fd 192638 [15:16:22]save to /storage/0543/doc_00192638 [15:16:22]save last doc name /storage/0543/doc_00192638 to /storage/kkm_last_doc_name [15:16:22]save OK [15:16:22]Clear old archive folders... [15:16:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:22]tlvbuf is 019C38F0 [15:16:22]SAM_PROTO_ClearQueue [15:16:22]wFMCommunicate request_size=4 [15:16:22]MH_SAM_APDU [15:16:22]CAPDU: 80 09 00 00 [15:16:22]Write to MH i2c: E2 08 00 9E 53 80 09 00 00 00 00 00 00 63 [15:16:22]Write i2c OK [15:16:22]MH_I2C_Read... [15:16:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:22]Read from MH i2c: E2 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 03 00 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 03 00 9E 53 00 90 00 65 [15:16:22]RAPDU: 90 00 [15:16:22]wFMCommunicate OK [15:16:22]SAM_PROTO_ClearQueue done [15:16:22]KKMCreateOFDPacket [15:16:22]OFDProtocolAddRootSTLVToBuf [15:16:22]FM_MakeSignedData [15:16:22]FM_MakeSignedData [15:16:22]SAM_PROTO_SignData [15:16:22]wFMCommunicate request_size=4 [15:16:22]MH_SAM_APDU [15:16:22]CAPDU: 80 0D 01 02 [15:16:22]Write to MH i2c: E2 08 00 9F 53 80 0D 01 02 00 00 00 00 6B [15:16:22]Write i2c OK [15:16:22]MH_I2C_Read... [15:16:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:22]Read from MH i2c: E2 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 03 00 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 03 00 9F 53 00 90 00 66 [15:16:22]RAPDU: 90 00 [15:16:22]wFMCommunicate OK [15:16:22]wFMCommunicate request_size=255 [15:16:22]MH_SAM_APDU [15:16: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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 CA AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E F0 02 00 35 04 06 00 4B [15:16:22]Write to MH i2c: E2 02 01 A0 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 CA AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E F0 02 00 35 04 06 00 4B 00 00 76 [15:16:22]Write i2c OK [15:16:22]MH_I2C_Read... [15:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:22]Read from MH i2c: E2 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 03 00 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 03 00 A0 53 00 90 00 67 [15:16:22]RAPDU: 90 00 [15:16:22]wFMCommunicate OK [15:16:22]wFMCommunicate request_size=10 [15:16:22]MH_SAM_APDU [15:16:22]CAPDU: 80 0D 02 02 05 99 68 1A 38 D5 [15:16:22]Write to MH i2c: E2 0D 00 A1 53 80 0D 02 02 05 00 99 68 1A 38 D5 00 00 A0 [15:16:22]Write i2c OK [15:16:22]MH_I2C_Read... [15:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:22]Read from MH i2c: E2 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 03 00 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 03 00 A1 53 00 90 00 68 [15:16:22]RAPDU: 90 00 [15:16:22]wFMCommunicate OK [15:16:22]wFMCommunicate request_size=4 [15:16:22]MH_SAM_APDU [15:16:22]CAPDU: 80 0D 03 02 [15:16:22]Write to MH i2c: E2 08 00 A2 53 80 0D 03 02 00 00 00 00 70 [15:16:22]Write i2c OK [15:16:22]MH_I2C_Read... [15:16:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:22]Read from MH i2c: E2 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 0B 00 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 0B 00 A2 53 00 60 0F F1 03 65 8A 32 32 90 00 27 [15:16:22]RAPDU: 60 0F F1 03 65 8A 32 32 90 00 [15:16:22]wFMCommunicate OK [15:16:22]SAM_PROTO_SignData done [15:16:22]FM_MakeSignedData done [15:16:22]CreateOFDProtocolMessage [15:16:22]wFMCommunicate request_size=4 [15:16:22]MH_SAM_APDU [15:16:22]CAPDU: 80 11 00 00 [15:16:22]Write to MH i2c: E2 08 00 A3 53 80 11 00 00 00 00 00 00 70 [15:16:22]Write i2c OK [15:16:22]MH_I2C_Read... [15:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:22]Read from MH i2c: E2 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 17 00 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: E2 17 00 A3 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [15:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:16:22]wFMCommunicate OK [15:16:22]CreateOFDProtocolMessage done [15:16:22]OFDSenderStorePacket 192638 [15:16:22]StoreOFDPacket docnum=192638 [15:16:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6D 71 07 01 46 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 CA AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E F0 02 00 35 04 06 00 4B 99 68 1A 38 D5 60 0F F1 03 65 8A 32 32 [15:16:22]CheckFolder [15:16:22]dirname=/storage/ofd_packets [15:16:22]CheckFolder done [15:16:22]ProducePacketName [15:16:22]name=ofd_packets/00192638 [15:16:22]NVStorageSaveData ofd_packets/00192638 [15:16:22]File name is /storage/ofd_packets/00192638 [15:16:22]Write 301 bytes [15:16:22]NVStorageSaveData done [15:16:22]OFDSenderStorePacket done [15:16:22]KKMCreateOFDPacket done [15:16:22]NVStorageSaveData kkm_last_timestamp [15:16:22]File name is /storage/kkm_last_timestamp [15:16:22]Write 4 bytes [15:16:22]NVStorageSaveData done [15:16:22]ExternCall_PrintAddStr [15:16:22]wPrintStart [15:16:22]Write to MH i2c: 01 00 00 A4 53 F7 [15:16:22]Write i2c OK [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: 01 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: 01 07 00 [15:16:22]MH_I2C_Read... [15:16:22]Read from MH i2c: 01 07 00 A4 53 00 00 00 00 00 FF 0F 0C [15:16:22]RasterBufferAndPrint [15:16:22]line Счет N : (1)31963 [15:16:22]line ИНН: 02508201610067 [15:16:22]line Контрольно-Кассовый Чек [15:16:22]line ПРОДАЖА [15:16:22]line ТРК (МРК, ГНК) : 21 [15:16:22]line Товар: 2710124130 [15:16:22]line Аи-92-К-5 [15:16:22]line 1.500 * 66.90 [15:16:22]line = 100.35 [15:16:22]line НДС 12% НСП 1% [15:16:22]line > о реализуемом товаре [15:16:22]line ОКРУГЛЕНИЕ: -0.35 [15:16:22]line ИТОГО: 100.00 [15:16:22]line Внесено: 100.00 [15:16:22]line СДАЧА: 0.00 [15:16:22]line НСП 1% : 0.89 [15:16:22]line НДС 12% : 10.66 [15:16:22]line Наличными: 100.00 [15:16:22]line Безнал.: 0.00 [15:16:22]line Место: АЗС № 170 "Партнер Нефть" [15:16:22]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:16:22]line СНО: Общий режим [15:16:22]line Чек 186 28.10.2024 15:16 [15:16:22]line Смена: 543 ФФД: 1.0 [15:16:22]line ЗНМ: 0300000110 [15:16:22]line РНМ: 0000000000091776 [15:16:22]line Версия ККМ: 001 [15:16:22]line ФМ: 0000000000871754 [15:16:22]line ФД: 192638 [15:16:22]line ФПД: 83122248628437 [15:16:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151626&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192638&fm=83122248628437&tin=02508201610067®Number=0000000000091776&sum=10000 [15:16:23]OFD Sender: Processing packet 192638 [packets to send 75, broken 74] [15:16:23]ProducePacketName [15:16:23]name=ofd_packets/00192638 [15:16:23]OFD Sender: To server: pG, [15:16:23]CommunicateWithHost lk.salyk.kg:30040 [15:16:23]ConnectInit lk.salyk.kg [15:16:23]written 0, free lines is 4095 [15:16:23]Connected sock=10 [15:16:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6D 71 07 01 46 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 CA AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E F0 02 00 35 04 06 00 4B 99 68 1A 38 D5 60 0F F1 03 65 8A 32 32 [15:16:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F5 E5 47 00 68 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E F0 02 00 F4 03 04 00 8E 4F 1F 67 B6 04 01 00 00 0D 44 26 0E F1 AD 38 A3 [15:16:23]CommunicateWithHost err = 0 [15:16:23]CheckOFDResponse [15:16:23]1017 (14) - 77093643461234 [15:16:23]1041 (16) - 0000000000871754 [15:16:23]1040 (4) - 192638 [15:16:23]1012 (4) - 28.10.2024 08:47 [15:16:23]1206 (1) - 0 [15:16:23]OFD Sender: Remove packet 192638 [15:16:23]ProducePacketName [15:16:23]name=ofd_packets/00192638 [15:16:23]NVStorageDeleteData [15:16:23]Write to MH i2c: 01 00 00 CF 53 22 [15:16:23]Write i2c OK [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: 01 [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: 01 07 00 [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: 01 07 00 CF 53 00 00 00 00 00 C7 0C FC [15:16:23]RasterBufferAndPrint [15:16:23]line [15:16:23]line [15:16:23]line [15:16:23]line [15:16:23]line [15:16:23]written 0, free lines is 3277 [15:16:23]MH_Cut [15:16:23]Write to MH i2c: D1 01 00 D6 53 01 FB [15:16:23]Write i2c OK [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: D1 [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: D1 01 00 [15:16:23]MH_I2C_Read... [15:16:23]Read from MH i2c: D1 01 00 D6 53 00 FA [15:16:23]Write to MH i2c: 01 00 00 D7 53 2A [15:16:23]Write i2c OK [15:16:23]MH_I2C_Read... [15:16:23]OFD Sender: No OFD packet to send [15:16:24]*** Cut start [15:16:24]*** Partial cut [15:16:24]*** CUTSNS_PIN = 1 [15:16:24]*** CUTSNS_PIN = 0 [15:16:24]*** Brake cut motor [15:16:24]Read from MH i2c: 01 [15:16:24]MH_I2C_Read... [15:16:24]*** Stop cut motor [15:16:24]*** Cut end [15:16:24]Read from MH i2c: 01 07 00 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: 01 07 00 D7 53 00 00 00 00 00 FF 0F 3F [15:16:24]process_action close_receipt done [15:16:24]requested_data is exist [15:16:24]produce_requested_data [15:16:24]requested_item fm.sn is exist - process it [15:16:24]wFMCommunicate request_size=4 [15:16:24]MH_SAM_APDU [15:16:24]CAPDU: 80 11 00 00 [15:16:24]Write to MH i2c: E2 08 00 D8 53 80 11 00 00 00 00 00 00 A5 [15:16:24]Write i2c OK [15:16:24]MH_I2C_Read... [15:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:24]Read from MH i2c: E2 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: E2 17 00 [15:16:24]MH_I2C_Read... [15:16:24]Read from MH i2c: E2 17 00 D8 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F8 [15:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:16:24]wFMCommunicate OK [15:16:24]requested_item fd.num is exist - process it [15:16:24]SAM_PROTO_GetFieldsCounters [15:16:24]wFMCommunicate request_size=4 [15:16:24]MH_SAM_APDU [15:16:24]CAPDU: 80 13 00 00 [15:16:24]Write to MH i2c: E2 08 00 D9 53 80 13 00 00 00 00 00 00 A8 [15:16:24]Write i2c OK [15:16:24]MH_I2C_Read... [15:16:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:25]Read from MH i2c: E2 [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: E2 62 00 [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: E2 62 00 D9 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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [15:16:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:25]wFMCommunicate OK [15:16:25]SAM_PROTO_GetFieldsCounters done [15:16:25]requested_item shift.num is exist - process it [15:16:25]requested_item shift.opened is exist - process it [15:16:25]req_shift_opened [15:16:25]FM_GetShiftState [15:16:25]SAM_PROTO_GetShiftState [15:16:25]wFMCommunicate request_size=4 [15:16:25]MH_SAM_APDU [15:16:25]CAPDU: 80 13 01 00 [15:16:25]Write to MH i2c: E2 08 00 DA 53 80 13 01 00 00 00 00 00 AA [15:16:25]Write i2c OK [15:16:25]MH_I2C_Read... [15:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:25]Read from MH i2c: E2 [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: E2 0E 00 [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: E2 0E 00 DA 53 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FA [15:16:25]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:16:25]wFMCommunicate OK [15:16:25]SAM_PROTO_GetShiftState done [15:16:25]FM_GetShiftState done [15:16:25]req_shift_opened done [15:16:25]requested_item shift.open_date is exist - process it [15:16:25]req_shift_open_date [15:16:25]req_shift_open_date done [15:16:25]produce_requested_data done [15:16:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192638,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:16:25]process_action_free close_receipt [15:16:25]json_value_free [15:16:25]json_value_free done [15:16:25]process_json_proto returns [15:16:25]Send response to host [15:16:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192638,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:16:25]free response buf [15:16:25]execute_script done [15:16:25]execute_script returns [15:16:25]free content buf [15:16:25]Sock 9.Close socket [15:16:25]Sock 9.Thread stoped [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:41]accept exits with 7 [15:16:41]New connection [15:16:41]New thread 3066707300 created [15:16:41]Thread 3066563940 joined [15:16:41]Waiting for new connection... [15:16:41] Sock 7.Parse request [15:16:41]Sock 7.Check first char [15:16:41]Sock 7.First char is OK [15:16:41]request: POST /json_proto HTTP/1.0 [15:16:41]Method: POST [15:16:41]URL: /json_proto [15:16:41]Method is POST - this is cgi request [15:16:41]url: /json_proto [15:16:41]query_string will be loaded in cgi processing [15:16:41]execute_cgi json_proto POST (null) [15:16:41]execute_cgi path=json_proto method=POST [15:16:41]POST find Content-Length [15:16:41]Host: 172.17.63.131:8080 [15:16:41]Content-Length: 678 [15:16:41]Content-Type: application/json [15:16:41] [15:16:41]POST finish read [15:16:41]Found Content-Length = 678 [15:16:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:41]execute_script... [15:16:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:41]POST & json_proto [15:16:41]process_json_proto [15:16:41]json parsed OK: [15:16:41]protocol is kg_v1.0 [15:16:41]action value=close_receipt [15:16:41]process_action close_receipt [15:16:41]cmd_close_receipt [15:16:41]MH_GetDate [15:16:41]Write to MH i2c: F0 00 00 DB 53 1D [15:16:41]Write i2c OK [15:16:41]MH_I2C_Read... [15:16:41]Read from MH i2c: F0 [15:16:41]MH_I2C_Read... [15:16:41]Read from MH i2c: F0 09 00 [15:16:41]MH_I2C_Read... [15:16:41]Read from MH i2c: F0 09 00 DB 53 00 DE AA 1F 67 22 05 6E 64 2D [15:16:41]GetLastDocTimeStamp 1730128586 [15:16:41]current date 1730128606 [15:16:41]FM_GetShiftState [15:16:41]SAM_PROTO_GetShiftState [15:16:41]wFMCommunicate request_size=4 [15:16:41]MH_SAM_APDU [15:16:41]CAPDU: 80 13 01 00 [15:16:41]Write to MH i2c: E2 08 00 DC 53 80 13 01 00 00 00 00 00 AC [15:16:41]Write i2c OK [15:16:41]MH_I2C_Read... [15:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:41]Read from MH i2c: E2 [15:16:41]MH_I2C_Read... [15:16:41]Read from MH i2c: E2 0E 00 [15:16:41]MH_I2C_Read... [15:16:41]Read from MH i2c: E2 0E 00 DC 53 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FC [15:16:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:16:41]wFMCommunicate OK [15:16:41]SAM_PROTO_GetShiftState done [15:16:41]FM_GetShiftState done [15:16:41]opened in 1730075620 [15:16:41]opened+sec_in_day 1730162020 [15:16:41]quantity*price = 200025 [15:16:41]sum+1 = 200026 [15:16:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 187 28.10.2024 15:16 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192639 ФПД: 78437340803783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151646&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192639&fm=78437340803783&tin=02508201610067®Number=0000000000091776&sum=200000 [15:16:42]StoreToDocumentArchive [15:16:42]shift 543 fd 192639 [15:16:42]save to /storage/0543/doc_00192639 [15:16:42]save last doc name /storage/0543/doc_00192639 to /storage/kkm_last_doc_name [15:16:42]save OK [15:16:42]Clear old archive folders... [15:16:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:16:42]tlvbuf is 019867B0 [15:16:42]SAM_PROTO_ClearQueue [15:16:42]wFMCommunicate request_size=4 [15:16:42]MH_SAM_APDU [15:16:42]CAPDU: 80 09 00 00 [15:16:42]Write to MH i2c: E2 08 00 E9 53 80 09 00 00 00 00 00 00 AE [15:16:42]Write i2c OK [15:16:42]MH_I2C_Read... [15:16:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:42]Read from MH i2c: E2 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 03 00 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 03 00 E9 53 00 90 00 B0 [15:16:42]RAPDU: 90 00 [15:16:42]wFMCommunicate OK [15:16:42]SAM_PROTO_ClearQueue done [15:16:42]KKMCreateOFDPacket [15:16:42]OFDProtocolAddRootSTLVToBuf [15:16:42]FM_MakeSignedData [15:16:42]FM_MakeSignedData [15:16:42]SAM_PROTO_SignData [15:16:42]wFMCommunicate request_size=4 [15:16:42]MH_SAM_APDU [15:16:42]CAPDU: 80 0D 01 02 [15:16:42]Write to MH i2c: E2 08 00 EA 53 80 0D 01 02 00 00 00 00 B6 [15:16:42]Write i2c OK [15:16:42]MH_I2C_Read... [15:16:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:42]Read from MH i2c: E2 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 03 00 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 03 00 EA 53 00 90 00 B1 [15:16:42]RAPDU: 90 00 [15:16:42]wFMCommunicate OK [15:16:42]wFMCommunicate request_size=255 [15:16:42]MH_SAM_APDU [15:16:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 DE AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F F0 02 00 35 04 06 00 47 56 9D D5 [15:16:42]Write to MH i2c: E2 02 01 EB 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 DE AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F F0 02 00 35 04 06 00 47 56 9D D5 00 00 98 [15:16:42]Write i2c OK [15:16:42]MH_I2C_Read... [15:16:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:42]Read from MH i2c: E2 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 03 00 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 03 00 EB 53 00 90 00 B2 [15:16:42]RAPDU: 90 00 [15:16:42]wFMCommunicate OK [15:16:42]wFMCommunicate request_size=7 [15:16:42]MH_SAM_APDU [15:16:42]CAPDU: 80 0D 02 02 02 F2 C7 [15:16:42]Write to MH i2c: E2 0A 00 EC 53 80 0D 02 02 02 00 F2 C7 00 00 76 [15:16:42]Write i2c OK [15:16:42]MH_I2C_Read... [15:16:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:42]Read from MH i2c: E2 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 03 00 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 03 00 EC 53 00 90 00 B3 [15:16:42]RAPDU: 90 00 [15:16:42]wFMCommunicate OK [15:16:42]wFMCommunicate request_size=4 [15:16:42]MH_SAM_APDU [15:16:42]CAPDU: 80 0D 03 02 [15:16:42]Write to MH i2c: E2 08 00 ED 53 80 0D 03 02 00 00 00 00 BB [15:16:42]Write i2c OK [15:16:42]MH_I2C_Read... [15:16:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:42]Read from MH i2c: E2 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 0B 00 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 0B 00 ED 53 00 3C B7 9A 10 4E C2 E7 A9 90 00 F9 [15:16:42]RAPDU: 3C B7 9A 10 4E C2 E7 A9 90 00 [15:16:42]wFMCommunicate OK [15:16:42]SAM_PROTO_SignData done [15:16:42]FM_MakeSignedData done [15:16:42]CreateOFDProtocolMessage [15:16:42]wFMCommunicate request_size=4 [15:16:42]MH_SAM_APDU [15:16:42]CAPDU: 80 11 00 00 [15:16:42]Write to MH i2c: E2 08 00 EE 53 80 11 00 00 00 00 00 00 BB [15:16:42]Write i2c OK [15:16:42]MH_I2C_Read... [15:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:42]Read from MH i2c: E2 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 17 00 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: E2 17 00 EE 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0E [15:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:16:42]wFMCommunicate OK [15:16:42]CreateOFDProtocolMessage done [15:16:42]OFDSenderStorePacket 192639 [15:16:42]StoreOFDPacket docnum=192639 [15:16:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 2C 7B 04 01 22 BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 DE AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F F0 02 00 35 04 06 00 47 56 9D D5 F2 C7 3C B7 9A 10 4E C2 E7 A9 [15:16:42]CheckFolder [15:16:42]dirname=/storage/ofd_packets [15:16:42]CheckFolder done [15:16:42]ProducePacketName [15:16:42]name=ofd_packets/00192639 [15:16:42]NVStorageSaveData ofd_packets/00192639 [15:16:42]File name is /storage/ofd_packets/00192639 [15:16:42]Write 298 bytes [15:16:42]NVStorageSaveData done [15:16:42]OFDSenderStorePacket done [15:16:42]KKMCreateOFDPacket done [15:16:42]NVStorageSaveData kkm_last_timestamp [15:16:42]File name is /storage/kkm_last_timestamp [15:16:42]Write 4 bytes [15:16:42]NVStorageSaveData done [15:16:42]ExternCall_PrintAddStr [15:16:42]wPrintStart [15:16:42]Write to MH i2c: 01 00 00 EF 53 42 [15:16:42]Write i2c OK [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: 01 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: 01 07 00 [15:16:42]MH_I2C_Read... [15:16:42]Read from MH i2c: 01 07 00 EF 53 00 00 00 00 00 FF 0F 57 [15:16:42]RasterBufferAndPrint [15:16:42]line Счет N : (1)31960 [15:16:42]line ИНН: 02508201610067 [15:16:42]line Контрольно-Кассовый Чек [15:16:42]line ПРОДАЖА [15:16:42]line ТРК (МРК, ГНК) : 11 [15:16:42]line Товар: 2710194210 [15:16:42]line ДТ-К-5 [15:16:42]line 26.250 * 76.20 [15:16:42]line = 2000.25 [15:16:42]line НДС 12% НСП 1% [15:16:42]line > о реализуемом товаре [15:16:42]line ОКРУГЛЕНИЕ: -0.25 [15:16:42]line ИТОГО: 2000.00 [15:16:42]line Внесено: 2000.00 [15:16:42]line СДАЧА: 0.00 [15:16:42]line НСП 1% : 17.70 [15:16:42]line НДС 12% : 212.42 [15:16:42]line Наличными: 2000.00 [15:16:42]line Безнал.: 0.00 [15:16:42]line Место: АЗС № 170 "Партнер Нефть" [15:16:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:16:42]line СНО: Общий режим [15:16:42]line Чек 187 28.10.2024 15:16 [15:16:42]line Смена: 543 ФФД: 1.0 [15:16:42]line ЗНМ: 0300000110 [15:16:42]line РНМ: 0000000000091776 [15:16:42]line Версия ККМ: 001 [15:16:42]line ФМ: 0000000000871754 [15:16:42]line ФД: 192639 [15:16:42]line ФПД: 78437340803783 [15:16:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151646&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192639&fm=78437340803783&tin=02508201610067®Number=0000000000091776&sum=200000 [15:16:43]OFD Sender: Processing packet 192639 [packets to send 75, broken 74] [15:16:43]ProducePacketName [15:16:43]name=ofd_packets/00192639 [15:16:43]OFD Sender: To server: pG, [15:16:43]CommunicateWithHost lk.salyk.kg:30040 [15:16:43]ConnectInit lk.salyk.kg [15:16:43]written 0, free lines is 4095 [15:16:43]Connected sock=10 [15:16:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 2C 7B 04 01 22 BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 DE AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F F0 02 00 35 04 06 00 47 56 9D D5 F2 C7 3C B7 9A 10 4E C2 E7 A9 [15:16:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 39 DF 47 00 78 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F F0 02 00 F4 03 04 00 A2 4F 1F 67 B6 04 01 00 00 32 62 59 2B 9C D0 E6 47 [15:16:43]CommunicateWithHost err = 0 [15:16:43]CheckOFDResponse [15:16:43]1017 (14) - 77093643461234 [15:16:43]1041 (16) - 0000000000871754 [15:16:43]1040 (4) - 192639 [15:16:43]1012 (4) - 28.10.2024 08:47 [15:16:43]1206 (1) - 0 [15:16:43]OFD Sender: Remove packet 192639 [15:16:43]ProducePacketName [15:16:43]name=ofd_packets/00192639 [15:16:43]NVStorageDeleteData [15:16:43]Write to MH i2c: 01 00 00 1A 54 6E [15:16:43]Write i2c OK [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: 01 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: 01 07 00 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: 01 07 00 1A 54 00 00 00 00 00 BA 0C 3B [15:16:43]RasterBufferAndPrint [15:16:43]line [15:16:43]line [15:16:43]line [15:16:43]line [15:16:43]line [15:16:43]written 0, free lines is 3264 [15:16:43]MH_Cut [15:16:43]Write to MH i2c: D1 01 00 21 54 01 47 [15:16:43]Write i2c OK [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: D1 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: D1 01 00 [15:16:43]MH_I2C_Read... [15:16:43]Read from MH i2c: D1 01 00 21 54 00 46 [15:16:43]Write to MH i2c: 01 00 00 22 54 76 [15:16:43]Write i2c OK [15:16:43]MH_I2C_Read... [15:16:43]OFD Sender: No OFD packet to send [15:16:44]*** Cut start [15:16:44]*** Partial cut [15:16:44]*** CUTSNS_PIN = 1 [15:16:44]*** CUTSNS_PIN = 0 [15:16:44]*** Brake cut motor [15:16:44]Read from MH i2c: 01 [15:16:45]MH_I2C_Read... [15:16:45]*** Stop cut motor [15:16:45]*** Cut end [15:16:45]Read from MH i2c: 01 07 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: 01 07 00 22 54 00 00 00 00 00 FF 0F 8B [15:16:45]process_action close_receipt done [15:16:45]requested_data is exist [15:16:45]produce_requested_data [15:16:45]requested_item fm.sn is exist - process it [15:16:45]wFMCommunicate request_size=4 [15:16:45]MH_SAM_APDU [15:16:45]CAPDU: 80 11 00 00 [15:16:45]Write to MH i2c: E2 08 00 23 54 80 11 00 00 00 00 00 00 F1 [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:45]Read from MH i2c: E2 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 17 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 17 00 23 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 44 [15:16:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:16:45]wFMCommunicate OK [15:16:45]requested_item fd.num is exist - process it [15:16:45]SAM_PROTO_GetFieldsCounters [15:16:45]wFMCommunicate request_size=4 [15:16:45]MH_SAM_APDU [15:16:45]CAPDU: 80 13 00 00 [15:16:45]Write to MH i2c: E2 08 00 24 54 80 13 00 00 00 00 00 00 F4 [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:45]Read from MH i2c: E2 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 62 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 62 00 24 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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [15:16:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:45]wFMCommunicate OK [15:16:45]SAM_PROTO_GetFieldsCounters done [15:16:45]requested_item shift.num is exist - process it [15:16:45]requested_item shift.opened is exist - process it [15:16:45]req_shift_opened [15:16:45]FM_GetShiftState [15:16:45]SAM_PROTO_GetShiftState [15:16:45]wFMCommunicate request_size=4 [15:16:45]MH_SAM_APDU [15:16:45]CAPDU: 80 13 01 00 [15:16:45]Write to MH i2c: E2 08 00 25 54 80 13 01 00 00 00 00 00 F6 [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:45]Read from MH i2c: E2 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 0E 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 0E 00 25 54 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 46 [15:16:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:16:45]wFMCommunicate OK [15:16:45]SAM_PROTO_GetShiftState done [15:16:45]FM_GetShiftState done [15:16:45]req_shift_opened done [15:16:45]requested_item shift.open_date is exist - process it [15:16:45]req_shift_open_date [15:16:45]req_shift_open_date done [15:16:45]produce_requested_data done [15:16:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192639,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:16:45]process_action_free close_receipt [15:16:45]json_value_free [15:16:45]json_value_free done [15:16:45]process_json_proto returns [15:16:45]Send response to host [15:16:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192639,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:16:45]free response buf [15:16:45]execute_script done [15:16:45]execute_script returns [15:16:45]free content buf [15:16:45]Sock 7.Close socket [15:16:45]Sock 7.Thread stoped [15:16:45]accept exits with 9 [15:16:45]New connection [15:16:45]New thread 3066563940 created [15:16:45]Thread 3066707300 joined [15:16:45]Waiting for new connection... [15:16:45] Sock 9.Parse request [15:16:45]Sock 9.Check first char [15:16:45]Sock 9.First char is OK [15:16:45]request: POST /json_proto HTTP/1.0 [15:16:45]Method: POST [15:16:45]URL: /json_proto [15:16:45]Method is POST - this is cgi request [15:16:45]url: /json_proto [15:16:45]query_string will be loaded in cgi processing [15:16:45]execute_cgi json_proto POST (null) [15:16:45]execute_cgi path=json_proto method=POST [15:16:45]POST find Content-Length [15:16:45]Host: 172.17.63.131:8080 [15:16:45]Content-Length: 676 [15:16:45]Content-Type: application/json [15:16:45] [15:16:45]POST finish read [15:16:45]Found Content-Length = 676 [15:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:45]execute_script... [15:16:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.590, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:45]POST & json_proto [15:16:45]process_json_proto [15:16:45]json parsed OK: [15:16:45]protocol is kg_v1.0 [15:16:45]action value=close_receipt [15:16:45]process_action close_receipt [15:16:45]cmd_close_receipt [15:16:45]MH_GetDate [15:16:45]Write to MH i2c: F0 00 00 26 54 69 [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: F0 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: F0 09 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: F0 09 00 26 54 00 E3 AA 1F 67 22 05 6E 64 7E [15:16:45]GetLastDocTimeStamp 1730128606 [15:16:45]current date 1730128611 [15:16:45]FM_GetShiftState [15:16:45]SAM_PROTO_GetShiftState [15:16:45]wFMCommunicate request_size=4 [15:16:45]MH_SAM_APDU [15:16:45]CAPDU: 80 13 01 00 [15:16:45]Write to MH i2c: E2 08 00 27 54 80 13 01 00 00 00 00 00 F8 [15:16:45]Write i2c OK [15:16:45]MH_I2C_Read... [15:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:45]Read from MH i2c: E2 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 0E 00 [15:16:45]MH_I2C_Read... [15:16:45]Read from MH i2c: E2 0E 00 27 54 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 48 [15:16:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:16:45]wFMCommunicate OK [15:16:45]SAM_PROTO_GetShiftState done [15:16:45]FM_GetShiftState done [15:16:45]opened in 1730075620 [15:16:45]opened+sec_in_day 1730162020 [15:16:45]quantity*price = 24017 [15:16:45]sum+1 = 24018 [15:16:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 188 28.10.2024 15:16 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192640 ФПД: 132000026260210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151651&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192640&fm=132000026260210&tin=02508201610067®Number=0000000000091776&sum=24000 [15:16:47]StoreToDocumentArchive [15:16:47]shift 543 fd 192640 [15:16:47]save to /storage/0543/doc_00192640 [15:16:47]save last doc name /storage/0543/doc_00192640 to /storage/kkm_last_doc_name [15:16:47]save OK [15:16:47]Clear old archive folders... [15:16:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:47]tlvbuf is 019BD3A0 [15:16:47]SAM_PROTO_ClearQueue [15:16:47]wFMCommunicate request_size=4 [15:16:47]MH_SAM_APDU [15:16:47]CAPDU: 80 09 00 00 [15:16:47]Write to MH i2c: E2 08 00 34 54 80 09 00 00 00 00 00 00 FA [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:47]Read from MH i2c: E2 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 03 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 03 00 34 54 00 90 00 FC [15:16:47]RAPDU: 90 00 [15:16:47]wFMCommunicate OK [15:16:47]SAM_PROTO_ClearQueue done [15:16:47]KKMCreateOFDPacket [15:16:47]OFDProtocolAddRootSTLVToBuf [15:16:47]FM_MakeSignedData [15:16:47]FM_MakeSignedData [15:16:47]SAM_PROTO_SignData [15:16:47]wFMCommunicate request_size=4 [15:16:47]MH_SAM_APDU [15:16:47]CAPDU: 80 0D 01 02 [15:16:47]Write to MH i2c: E2 08 00 35 54 80 0D 01 02 00 00 00 00 02 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:47]Read from MH i2c: E2 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 03 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 03 00 35 54 00 90 00 FD [15:16:47]RAPDU: 90 00 [15:16:47]wFMCommunicate OK [15:16:47]wFMCommunicate request_size=255 [15:16:47]MH_SAM_APDU [15: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 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 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 F6 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 BC 00 00 00 F4 03 04 00 E3 AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 F0 02 00 35 04 06 00 78 [15:16:47]Write to MH i2c: E2 02 01 36 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 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 F6 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 BC 00 00 00 F4 03 04 00 E3 AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 F0 02 00 35 04 06 00 78 00 00 76 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:47]Read from MH i2c: E2 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 03 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 03 00 36 54 00 90 00 FE [15:16:47]RAPDU: 90 00 [15:16:47]wFMCommunicate OK [15:16:47]wFMCommunicate request_size=10 [15:16:47]MH_SAM_APDU [15:16:47]CAPDU: 80 0D 02 02 05 0D A6 AC F2 F2 [15:16:47]Write to MH i2c: E2 0D 00 37 54 80 0D 02 02 05 00 0D A6 AC F2 F2 00 00 52 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:47]Read from MH i2c: E2 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 03 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 03 00 37 54 00 90 00 FF [15:16:47]RAPDU: 90 00 [15:16:47]wFMCommunicate OK [15:16:47]wFMCommunicate request_size=4 [15:16:47]MH_SAM_APDU [15:16:47]CAPDU: 80 0D 03 02 [15:16:47]Write to MH i2c: E2 08 00 38 54 80 0D 03 02 00 00 00 00 07 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:47]Read from MH i2c: E2 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 0B 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 0B 00 38 54 00 C4 58 31 97 D0 3B 03 44 90 00 3E [15:16:47]RAPDU: C4 58 31 97 D0 3B 03 44 90 00 [15:16:47]wFMCommunicate OK [15:16:47]SAM_PROTO_SignData done [15:16:47]FM_MakeSignedData done [15:16:47]CreateOFDProtocolMessage [15:16:47]wFMCommunicate request_size=4 [15:16:47]MH_SAM_APDU [15:16:47]CAPDU: 80 11 00 00 [15:16:47]Write to MH i2c: E2 08 00 39 54 80 11 00 00 00 00 00 00 07 [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:47]Read from MH i2c: E2 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 17 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: E2 17 00 39 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [15:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:16:47]wFMCommunicate OK [15:16:47]CreateOFDProtocolMessage done [15:16:47]OFDSenderStorePacket 192640 [15:16:47]StoreOFDPacket docnum=192640 [15:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 77 46 07 01 3B 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 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 F6 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 BC 00 00 00 F4 03 04 00 E3 AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 F0 02 00 35 04 06 00 78 0D A6 AC F2 F2 C4 58 31 97 D0 3B 03 44 [15:16:47]CheckFolder [15:16:47]dirname=/storage/ofd_packets [15:16:47]CheckFolder done [15:16:47]ProducePacketName [15:16:47]name=ofd_packets/00192640 [15:16:47]NVStorageSaveData ofd_packets/00192640 [15:16:47]File name is /storage/ofd_packets/00192640 [15:16:47]Write 301 bytes [15:16:47]NVStorageSaveData done [15:16:47]OFDSenderStorePacket done [15:16:47]KKMCreateOFDPacket done [15:16:47]NVStorageSaveData kkm_last_timestamp [15:16:47]File name is /storage/kkm_last_timestamp [15:16:47]Write 4 bytes [15:16:47]NVStorageSaveData done [15:16:47]ExternCall_PrintAddStr [15:16:47]wPrintStart [15:16:47]Write to MH i2c: 01 00 00 3A 54 8E [15:16:47]Write i2c OK [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 07 00 [15:16:47]MH_I2C_Read... [15:16:47]Read from MH i2c: 01 07 00 3A 54 00 00 00 00 00 FF 0F A3 [15:16:47]RasterBufferAndPrint [15:16:47]line Счет N : (1)31964 [15:16:47]line ИНН: 02508201610067 [15:16:47]line Контрольно-Кассовый Чек [15:16:47]line ПРОДАЖА [15:16:47]line ТРК (МРК, ГНК) : 21 [15:16:47]line Товар: 2710124130 [15:16:47]line Аи-92-К-5 [15:16:47]line 3.590 * 66.90 [15:16:47]line = 240.17 [15:16:47]line НДС 12% НСП 1% [15:16:47]line > о реализуемом товаре [15:16:47]line ОКРУГЛЕНИЕ: -0.17 [15:16:47]line ИТОГО: 240.00 [15:16:47]line Внесено: 240.00 [15:16:47]line СДАЧА: 0.00 [15:16:47]line НСП 1% : 2.12 [15:16:47]line НДС 12% : 25.50 [15:16:47]line Наличными: 240.00 [15:16:47]line Безнал.: 0.00 [15:16:47]line Место: АЗС № 170 "Партнер Нефть" [15:16:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:16:47]line СНО: Общий режим [15:16:47]line Чек 188 28.10.2024 15:16 [15:16:47]line Смена: 543 ФФД: 1.0 [15:16:47]line ЗНМ: 0300000110 [15:16:47]line РНМ: 0000000000091776 [15:16:47]line Версия ККМ: 001 [15:16:47]line ФМ: 0000000000871754 [15:16:47]line ФД: 192640 [15:16:47]line ФПД: 132000026260210 [15:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T151651&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192640&fm=132000026260210&tin=02508201610067®Number=0000000000091776&sum=24000 [15:16:47]OFD Sender: Processing packet 192640 [packets to send 75, broken 74] [15:16:47]ProducePacketName [15:16:47]name=ofd_packets/00192640 [15:16:47]OFD Sender: To server: pG, [15:16:47]CommunicateWithHost lk.salyk.kg:30040 [15:16:47]ConnectInit lk.salyk.kg [15:16:47]written 0, free lines is 4095 [15:16:47]Connected sock=10 [15:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 77 46 07 01 3B 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D1 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 F6 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 BC 00 00 00 F4 03 04 00 E3 AA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 F0 02 00 35 04 06 00 78 0D A6 AC F2 F2 C4 58 31 97 D0 3B 03 44 [15:16:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D3 05 47 00 14 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 F0 02 00 F4 03 04 00 A7 4F 1F 67 B6 04 01 00 00 68 E4 F5 DE FA 84 A6 32 [15:16:48]CommunicateWithHost err = 0 [15:16:48]CheckOFDResponse [15:16:48]1017 (14) - 77093643461234 [15:16:48]1041 (16) - 0000000000871754 [15:16:48]1040 (4) - 192640 [15:16:48]1012 (4) - 28.10.2024 08:47 [15:16:48]1206 (1) - 0 [15:16:48]OFD Sender: Remove packet 192640 [15:16:48]ProducePacketName [15:16:48]name=ofd_packets/00192640 [15:16:48]NVStorageDeleteData [15:16:48]Write to MH i2c: 01 00 00 65 54 B9 [15:16:48]Write i2c OK [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: 01 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: 01 07 00 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: 01 07 00 65 54 00 00 00 00 00 D1 0C 9D [15:16:48]RasterBufferAndPrint [15:16:48]line [15:16:48]line [15:16:48]line [15:16:48]line [15:16:48]line [15:16:48]written 0, free lines is 3293 [15:16:48]MH_Cut [15:16:48]Write to MH i2c: D1 01 00 6C 54 01 92 [15:16:48]Write i2c OK [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: D1 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: D1 01 00 [15:16:48]MH_I2C_Read... [15:16:48]Read from MH i2c: D1 01 00 6C 54 00 91 [15:16:48]Write to MH i2c: 01 00 00 6D 54 C1 [15:16:48]Write i2c OK [15:16:48]MH_I2C_Read... [15:16:48]OFD Sender: No OFD packet to send [15:16:49]*** Cut start [15:16:49]*** Partial cut [15:16:49]*** CUTSNS_PIN = 1 [15:16:49]*** CUTSNS_PIN = 0 [15:16:49]*** Brake cut motor [15:16:49]Read from MH i2c: 01 [15:16:49]MH_I2C_Read... [15:16:49]*** Stop cut motor [15:16:49]*** Cut end [15:16:49]Read from MH i2c: 01 07 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: 01 07 00 6D 54 00 00 00 00 00 FF 0F D6 [15:16:49]process_action close_receipt done [15:16:49]requested_data is exist [15:16:49]produce_requested_data [15:16:49]requested_item fm.sn is exist - process it [15:16:49]wFMCommunicate request_size=4 [15:16:49]MH_SAM_APDU [15:16:49]CAPDU: 80 11 00 00 [15:16:49]Write to MH i2c: E2 08 00 6E 54 80 11 00 00 00 00 00 00 3C [15:16:49]Write i2c OK [15:16:49]MH_I2C_Read... [15:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:49]Read from MH i2c: E2 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 17 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 17 00 6E 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8F [15:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:16:49]wFMCommunicate OK [15:16:49]requested_item fd.num is exist - process it [15:16:49]SAM_PROTO_GetFieldsCounters [15:16:49]wFMCommunicate request_size=4 [15:16:49]MH_SAM_APDU [15:16:49]CAPDU: 80 13 00 00 [15:16:49]Write to MH i2c: E2 08 00 6F 54 80 13 00 00 00 00 00 00 3F [15:16:49]Write i2c OK [15:16:49]MH_I2C_Read... [15:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:49]Read from MH i2c: E2 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 62 00 [15:16:49]MH_I2C_Read... [15:16:49]Read from MH i2c: E2 62 00 6F 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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 80 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [15:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 80 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:50]wFMCommunicate OK [15:16:50]SAM_PROTO_GetFieldsCounters done [15:16:50]requested_item shift.num is exist - process it [15:16:50]requested_item shift.opened is exist - process it [15:16:50]req_shift_opened [15:16:50]FM_GetShiftState [15:16:50]SAM_PROTO_GetShiftState [15:16:50]wFMCommunicate request_size=4 [15:16:50]MH_SAM_APDU [15:16:50]CAPDU: 80 13 01 00 [15:16:50]Write to MH i2c: E2 08 00 70 54 80 13 01 00 00 00 00 00 41 [15:16:50]Write i2c OK [15:16:50]MH_I2C_Read... [15:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:50]Read from MH i2c: E2 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 0E 00 [15:16:50]MH_I2C_Read... [15:16:50]Read from MH i2c: E2 0E 00 70 54 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 91 [15:16:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:16:50]wFMCommunicate OK [15:16:50]SAM_PROTO_GetShiftState done [15:16:50]FM_GetShiftState done [15:16:50]req_shift_opened done [15:16:50]requested_item shift.open_date is exist - process it [15:16:50]req_shift_open_date [15:16:50]req_shift_open_date done [15:16:50]produce_requested_data done [15:16:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192640,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:16:50]process_action_free close_receipt [15:16:50]json_value_free [15:16:50]json_value_free done [15:16:50]process_json_proto returns [15:16:50]Send response to host [15:16:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192640,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:16:50]free response buf [15:16:50]execute_script done [15:16:50]execute_script returns [15:16:50]free content buf [15:16:50]Sock 9.Close socket [15:16:50]Sock 9.Thread stoped [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]accept exits with 7 [15:20:48]New connection [15:20:48]New thread 3066707300 created [15:20:48]Thread 3066563940 joined [15:20:48]Waiting for new connection... [15:20:48] Sock 7.Parse request [15:20:48]Sock 7.Check first char [15:20:48]Sock 7.First char is OK [15:20:48]request: POST /json_proto HTTP/1.0 [15:20:48]Method: POST [15:20:48]URL: /json_proto [15:20:48]Method is POST - this is cgi request [15:20:48]url: /json_proto [15:20:48]query_string will be loaded in cgi processing [15:20:48]execute_cgi json_proto POST (null) [15:20:48]execute_cgi path=json_proto method=POST [15:20:48]POST find Content-Length [15:20:48]Host: 172.17.63.131:8080 [15:20:48]Content-Length: 681 [15:20:48]Content-Type: application/json [15:20:48] [15:20:48]POST finish read [15:20:48]Found Content-Length = 681 [15:20:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:48]execute_script... [15:20: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)31967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:48]POST & json_proto [15:20:48]process_json_proto [15:20:48]json parsed OK: [15:20:48]protocol is kg_v1.0 [15:20:48]action value=close_receipt [15:20:48]process_action close_receipt [15:20:48]cmd_close_receipt [15:20:48]MH_GetDate [15:20:48]Write to MH i2c: F0 00 00 71 54 B4 [15:20:48]Write i2c OK [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: F0 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: F0 09 00 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: F0 09 00 71 54 00 D6 AB 1F 67 22 05 6E 64 BD [15:20:48]GetLastDocTimeStamp 1730128611 [15:20:48]current date 1730128854 [15:20:48]FM_GetShiftState [15:20:48]SAM_PROTO_GetShiftState [15:20:48]wFMCommunicate request_size=4 [15:20:48]MH_SAM_APDU [15:20:48]CAPDU: 80 13 01 00 [15:20:48]Write to MH i2c: E2 08 00 72 54 80 13 01 00 00 00 00 00 43 [15:20:48]Write i2c OK [15:20:48]MH_I2C_Read... [15:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:48]Read from MH i2c: E2 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: E2 0E 00 [15:20:48]MH_I2C_Read... [15:20:48]Read from MH i2c: E2 0E 00 72 54 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 93 [15:20:48]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:20:48]wFMCommunicate OK [15:20:48]SAM_PROTO_GetShiftState done [15:20:48]FM_GetShiftState done [15:20:48]opened in 1730075620 [15:20:48]opened+sec_in_day 1730162020 [15:20:48]quantity*price = 100015 [15:20:48]sum+1 = 100017 [15:20:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 189 28.10.2024 15:20 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192641 ФПД: 111781268735256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T152054&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192641&fm=111781268735256&tin=02508201610067®Number=0000000000091776&sum=100000 [15:20:49]StoreToDocumentArchive [15:20:49]shift 543 fd 192641 [15:20:49]save to /storage/0543/doc_00192641 [15:20:49]save last doc name /storage/0543/doc_00192641 to /storage/kkm_last_doc_name [15:20:49]save OK [15:20:49]Clear old archive folders... [15:20:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:20:49]tlvbuf is 01B40F80 [15:20:49]SAM_PROTO_ClearQueue [15:20:49]wFMCommunicate request_size=4 [15:20:49]MH_SAM_APDU [15:20:49]CAPDU: 80 09 00 00 [15:20:49]Write to MH i2c: E2 08 00 7F 54 80 09 00 00 00 00 00 00 45 [15:20:49]Write i2c OK [15:20:49]MH_I2C_Read... [15:20:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:49]Read from MH i2c: E2 [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: E2 03 00 [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: E2 03 00 7F 54 00 90 00 47 [15:20:49]RAPDU: 90 00 [15:20:49]wFMCommunicate OK [15:20:49]SAM_PROTO_ClearQueue done [15:20:49]KKMCreateOFDPacket [15:20:49]OFDProtocolAddRootSTLVToBuf [15:20:49]FM_MakeSignedData [15:20:49]FM_MakeSignedData [15:20:49]SAM_PROTO_SignData [15:20:49]wFMCommunicate request_size=4 [15:20:49]MH_SAM_APDU [15:20:49]CAPDU: 80 0D 01 02 [15:20:49]Write to MH i2c: E2 08 00 80 54 80 0D 01 02 00 00 00 00 4D [15:20:49]Write i2c OK [15:20:49]MH_I2C_Read... [15:20:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:49]Read from MH i2c: E2 [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: E2 03 00 [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: E2 03 00 80 54 00 90 00 48 [15:20:49]RAPDU: 90 00 [15:20:49]wFMCommunicate OK [15:20:49]wFMCommunicate request_size=255 [15:20:49]MH_SAM_APDU [15:20:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 D6 AB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 F0 02 00 35 04 06 00 65 [15:20:49]Write to MH i2c: E2 02 01 81 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 D6 AB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 F0 02 00 35 04 06 00 65 00 00 98 [15:20:49]Write i2c OK [15:20:49]MH_I2C_Read... [15:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:50]Read from MH i2c: E2 [15:20:50]MH_I2C_Read... [15:20:50]Read from MH i2c: E2 03 00 [15:20:50]MH_I2C_Read... [15:20:50]Read from MH i2c: E2 03 00 81 54 00 90 00 49 [15:20:50]RAPDU: 90 00 [15:20:50]wFMCommunicate OK [15:20:50]wFMCommunicate request_size=10 [15:20:50]MH_SAM_APDU [15:20:50]CAPDU: 80 0D 02 02 05 AA 1A D0 C5 18 [15:20:50]Write to MH i2c: E2 0D 00 82 54 80 0D 02 02 05 00 AA 1A D0 C5 18 00 00 CB [15:20:50]Write i2c OK [15:20:50]MH_I2C_Read... [15:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:50]Read from MH i2c: E2 [15:20:50]MH_I2C_Read... [15:20:50]Read from MH i2c: E2 03 00 [15:20:50]MH_I2C_Read... [15:20:50]Read from MH i2c: E2 03 00 82 54 00 90 00 4A [15:20:50]RAPDU: 90 00 [15:20:50]wFMCommunicate OK [15:20:50]wFMCommunicate request_size=4 [15:20:50]MH_SAM_APDU [15:20:50]CAPDU: 80 0D 03 02 [15:20:50]Write to MH i2c: E2 08 00 83 54 80 0D 03 02 00 00 00 00 52 [15:20:50]Write i2c OK [15:20:50]MH_I2C_Read... [15:20:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:50]Read from MH i2c: E2 [15:20:50]MH_I2C_Read... [15:20:50]Read from MH i2c: E2 0B 00 [15:20:50]MH_I2C_Read... [15:20:50]Read from MH i2c: E2 0B 00 83 54 00 95 3A E3 55 17 B8 02 94 90 00 BF [15:20:50]RAPDU: 95 3A E3 55 17 B8 02 94 90 00 [15:20:50]wFMCommunicate OK [15:20:50]SAM_PROTO_SignData done [15:20:50]FM_MakeSignedData done [15:20:50]CreateOFDProtocolMessage [15:20:50]wFMCommunicate request_size=4 [15:20:50]MH_SAM_APDU [15:20:50]CAPDU: 80 11 00 00 [15:20:50]Write to MH i2c: E2 08 00 84 54 80 11 00 00 00 00 00 00 52 [15:20:50]Write i2c OK [15:20:50]MH_I2C_Read... [15:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:50]Read from MH i2c: E2 [15:20:50]MH_I2C_Read... [15:20:50]Read from MH i2c: E2 17 00 [15:20:50]MH_I2C_Read... [15:20:50]Read from MH i2c: E2 17 00 84 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [15:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:20:50]wFMCommunicate OK [15:20:50]CreateOFDProtocolMessage done [15:20:50]OFDSenderStorePacket 192641 [15:20:50]StoreOFDPacket docnum=192641 [15:20:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1F F9 07 01 3B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 D6 AB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 F0 02 00 35 04 06 00 65 AA 1A D0 C5 18 95 3A E3 55 17 B8 02 94 [15:20:50]CheckFolder [15:20:50]dirname=/storage/ofd_packets [15:20:50]CheckFolder done [15:20:50]ProducePacketName [15:20:50]name=ofd_packets/00192641 [15:20:50]NVStorageSaveData ofd_packets/00192641 [15:20:50]File name is /storage/ofd_packets/00192641 [15:20:50]Write 301 bytes [15:20:50]NVStorageSaveData done [15:20:50]OFDSenderStorePacket done [15:20:50]KKMCreateOFDPacket done [15:20:50]NVStorageSaveData kkm_last_timestamp [15:20:50]File name is /storage/kkm_last_timestamp [15:20:50]Write 4 bytes [15:20:50]NVStorageSaveData done [15:20:50]ExternCall_PrintAddStr [15:20:50]wPrintStart [15:20:50]Write to MH i2c: 01 00 00 85 54 D9 [15:20:50]Write i2c OK [15:20:50]MH_I2C_Read... [15:20:50]Read from MH i2c: 01 [15:20:50]MH_I2C_Read... [15:20:50]Read from MH i2c: 01 07 00 [15:20:50]MH_I2C_Read... [15:20:50]Read from MH i2c: 01 07 00 85 54 00 00 00 00 00 FF 0F EE [15:20:50]RasterBufferAndPrint [15:20:50]line Счет N : (1)31967 [15:20:50]line ИНН: 02508201610067 [15:20:50]line Контрольно-Кассовый Чек [15:20:50]line ПРОДАЖА [15:20:50]line ТРК (МРК, ГНК) : 21 [15:20:50]line Товар: 2710124130 [15:20:50]line Аи-92-К-5 [15:20:50]line 14.950 * 66.90 [15:20:50]line = 1000.16 [15:20:50]line НДС 12% НСП 1% [15:20:50]line > о реализуемом товаре [15:20:50]line ОКРУГЛЕНИЕ: -0.16 [15:20:50]line ИТОГО: 1000.00 [15:20:50]line Внесено: 1000.00 [15:20:50]line СДАЧА: 0.00 [15:20:50]line НСП 1% : 8.85 [15:20:50]line НДС 12% : 106.21 [15:20:50]line Наличными: 1000.00 [15:20:50]line Безнал.: 0.00 [15:20:50]line Место: АЗС № 170 "Партнер Нефть" [15:20:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:20:50]line СНО: Общий режим [15:20:50]line Чек 189 28.10.2024 15:20 [15:20:50]line Смена: 543 ФФД: 1.0 [15:20:50]line ЗНМ: 0300000110 [15:20:50]line РНМ: 0000000000091776 [15:20:50]line Версия ККМ: 001 [15:20:50]line ФМ: 0000000000871754 [15:20:50]line ФД: 192641 [15:20:50]line ФПД: 111781268735256 [15:20:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T152054&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192641&fm=111781268735256&tin=02508201610067®Number=0000000000091776&sum=100000 [15:20:50]OFD Sender: Processing packet 192641 [packets to send 75, broken 74] [15:20:50]ProducePacketName [15:20:50]name=ofd_packets/00192641 [15:20:50]OFD Sender: To server: pG, [15:20:50]CommunicateWithHost lk.salyk.kg:30040 [15:20:50]ConnectInit lk.salyk.kg [15:20:50]written 0, free lines is 4095 [15:20:50]Connected sock=10 [15:20:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1F F9 07 01 3B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 D6 AB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 F0 02 00 35 04 06 00 65 AA 1A D0 C5 18 95 3A E3 55 17 B8 02 94 [15:20:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 ED 89 47 00 42 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 31 37 35 34 10 04 04 00 81 F0 02 00 F4 03 04 00 9A 50 1F 67 B6 04 01 00 00 5B F0 5D 4A A9 1F 29 CD [15:20:50]CommunicateWithHost err = 0 [15:20:50]CheckOFDResponse [15:20:50]1017 (14) - 77093643461234 [15:20:50]1041 (16) - 0000000000871754 [15:20:50]1040 (4) - 192641 [15:20:50]1012 (4) - 28.10.2024 08:51 [15:20:50]1206 (1) - 0 [15:20:50]OFD Sender: Remove packet 192641 [15:20:50]ProducePacketName [15:20:50]name=ofd_packets/00192641 [15:20:50]NVStorageDeleteData [15:20:51]Write to MH i2c: 01 00 00 B0 54 04 [15:20:51]Write i2c OK [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: 01 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: 01 07 00 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: 01 07 00 B0 54 00 00 00 00 00 C4 0C DB [15:20:51]RasterBufferAndPrint [15:20:51]line [15:20:51]line [15:20:51]line [15:20:51]line [15:20:51]line [15:20:51]written 0, free lines is 3273 [15:20:51]MH_Cut [15:20:51]Write to MH i2c: D1 01 00 B7 54 01 DD [15:20:51]Write i2c OK [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: D1 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: D1 01 00 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: D1 01 00 B7 54 00 DC [15:20:51]Write to MH i2c: 01 00 00 B8 54 0C [15:20:51]Write i2c OK [15:20:51]MH_I2C_Read... [15:20:51]OFD Sender: No OFD packet to send [15:20:51]*** Cut start [15:20:51]*** Partial cut [15:20:51]*** CUTSNS_PIN = 1 [15:20:51]*** CUTSNS_PIN = 0 [15:20:52]*** Brake cut motor [15:20:52]Read from MH i2c: 01 [15:20:52]MH_I2C_Read... [15:20:52]*** Stop cut motor [15:20:52]*** Cut end [15:20:52]Read from MH i2c: 01 07 00 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: 01 07 00 B8 54 00 00 00 00 00 FF 0F 21 [15:20:52]process_action close_receipt done [15:20:52]requested_data is exist [15:20:52]produce_requested_data [15:20:52]requested_item fm.sn is exist - process it [15:20:52]wFMCommunicate request_size=4 [15:20:52]MH_SAM_APDU [15:20:52]CAPDU: 80 11 00 00 [15:20:52]Write to MH i2c: E2 08 00 B9 54 80 11 00 00 00 00 00 00 87 [15:20:52]Write i2c OK [15:20:52]MH_I2C_Read... [15:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:52]Read from MH i2c: E2 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: E2 17 00 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: E2 17 00 B9 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DA [15:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:20:52]wFMCommunicate OK [15:20:52]requested_item fd.num is exist - process it [15:20:52]SAM_PROTO_GetFieldsCounters [15:20:52]wFMCommunicate request_size=4 [15:20:52]MH_SAM_APDU [15:20:52]CAPDU: 80 13 00 00 [15:20:52]Write to MH i2c: E2 08 00 BA 54 80 13 00 00 00 00 00 00 8A [15:20:52]Write i2c OK [15:20:52]MH_I2C_Read... [15:20:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:52]Read from MH i2c: E2 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: E2 62 00 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: E2 62 00 BA 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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 81 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [15:20:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 81 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:52]wFMCommunicate OK [15:20:52]SAM_PROTO_GetFieldsCounters done [15:20:52]requested_item shift.num is exist - process it [15:20:52]requested_item shift.opened is exist - process it [15:20:52]req_shift_opened [15:20:52]FM_GetShiftState [15:20:52]SAM_PROTO_GetShiftState [15:20:52]wFMCommunicate request_size=4 [15:20:52]MH_SAM_APDU [15:20:52]CAPDU: 80 13 01 00 [15:20:52]Write to MH i2c: E2 08 00 BB 54 80 13 01 00 00 00 00 00 8C [15:20:52]Write i2c OK [15:20:52]MH_I2C_Read... [15:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:52]Read from MH i2c: E2 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: E2 0E 00 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: E2 0E 00 BB 54 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DC [15:20:52]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:20:52]wFMCommunicate OK [15:20:52]SAM_PROTO_GetShiftState done [15:20:52]FM_GetShiftState done [15:20:52]req_shift_opened done [15:20:52]requested_item shift.open_date is exist - process it [15:20:52]req_shift_open_date [15:20:52]req_shift_open_date done [15:20:52]produce_requested_data done [15:20:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192641,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:20:52]process_action_free close_receipt [15:20:52]json_value_free [15:20:52]json_value_free done [15:20:52]process_json_proto returns [15:20:52]Send response to host [15:20:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192641,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:20:52]free response buf [15:20:52]execute_script done [15:20:52]execute_script returns [15:20:52]free content buf [15:20:52]Sock 7.Close socket [15:20:52]Sock 7.Thread stoped [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:22]accept exits with 9 [15:21:22]New connection [15:21:22]New thread 3066563940 created [15:21:22]Thread 3066707300 joined [15:21:22]Waiting for new connection... [15:21:22] Sock 9.Parse request [15:21:22]Sock 9.Check first char [15:21:22]Sock 9.First char is OK [15:21:22]request: POST /json_proto HTTP/1.0 [15:21:22]Method: POST [15:21:22]URL: /json_proto [15:21:22]Method is POST - this is cgi request [15:21:22]url: /json_proto [15:21:22]query_string will be loaded in cgi processing [15:21:22]execute_cgi json_proto POST (null) [15:21:22]execute_cgi path=json_proto method=POST [15:21:22]POST find Content-Length [15:21:22]Host: 172.17.63.131:8080 [15:21:22]Content-Length: 676 [15:21:22]Content-Type: application/json [15:21:22] [15:21:22]POST finish read [15:21:22]Found Content-Length = 676 [15:21:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:22]execute_script... [15:21:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:22]POST & json_proto [15:21:22]process_json_proto [15:21:22]json parsed OK: [15:21:22]protocol is kg_v1.0 [15:21:22]action value=close_receipt [15:21:22]process_action close_receipt [15:21:22]cmd_close_receipt [15:21:22]MH_GetDate [15:21:22]Write to MH i2c: F0 00 00 BC 54 FF [15:21:22]Write i2c OK [15:21:22]MH_I2C_Read... [15:21:22]Read from MH i2c: F0 [15:21:22]MH_I2C_Read... [15:21:22]Read from MH i2c: F0 09 00 [15:21:22]MH_I2C_Read... [15:21:22]Read from MH i2c: F0 09 00 BC 54 00 F8 AB 1F 67 22 05 6E 64 2A [15:21:22]GetLastDocTimeStamp 1730128854 [15:21:22]current date 1730128888 [15:21:22]FM_GetShiftState [15:21:22]SAM_PROTO_GetShiftState [15:21:22]wFMCommunicate request_size=4 [15:21:22]MH_SAM_APDU [15:21:22]CAPDU: 80 13 01 00 [15:21:22]Write to MH i2c: E2 08 00 BD 54 80 13 01 00 00 00 00 00 8E [15:21:22]Write i2c OK [15:21:22]MH_I2C_Read... [15:21:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:22]Read from MH i2c: E2 [15:21:22]MH_I2C_Read... [15:21:22]Read from MH i2c: E2 0E 00 [15:21:22]MH_I2C_Read... [15:21:22]Read from MH i2c: E2 0E 00 BD 54 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DE [15:21:22]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:21:22]wFMCommunicate OK [15:21:22]SAM_PROTO_GetShiftState done [15:21:22]FM_GetShiftState done [15:21:22]opened in 1730075620 [15:21:22]opened+sec_in_day 1730162020 [15:21:22]quantity*price = 50041 [15:21:22]sum+1 = 50042 [15:21:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 190 28.10.2024 15:21 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192642 ФПД: 123824034564171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T152128&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192642&fm=123824034564171&tin=02508201610067®Number=0000000000091776&sum=50000 [15:21:24]StoreToDocumentArchive [15:21:24]shift 543 fd 192642 [15:21:24]save to /storage/0543/doc_00192642 [15:21:24]save last doc name /storage/0543/doc_00192642 to /storage/kkm_last_doc_name [15:21:24]save OK [15:21:24]Clear old archive folders... [15:21:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:24]tlvbuf is 019B66D0 [15:21:24]SAM_PROTO_ClearQueue [15:21:24]wFMCommunicate request_size=4 [15:21:24]MH_SAM_APDU [15:21:24]CAPDU: 80 09 00 00 [15:21:24]Write to MH i2c: E2 08 00 CA 54 80 09 00 00 00 00 00 00 90 [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 CA 54 00 90 00 92 [15:21:24]RAPDU: 90 00 [15:21:24]wFMCommunicate OK [15:21:24]SAM_PROTO_ClearQueue done [15:21:24]KKMCreateOFDPacket [15:21:24]OFDProtocolAddRootSTLVToBuf [15:21:24]FM_MakeSignedData [15:21:24]FM_MakeSignedData [15:21:24]SAM_PROTO_SignData [15:21:24]wFMCommunicate request_size=4 [15:21:24]MH_SAM_APDU [15:21:24]CAPDU: 80 0D 01 02 [15:21:24]Write to MH i2c: E2 08 00 CB 54 80 0D 01 02 00 00 00 00 98 [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 CB 54 00 90 00 93 [15:21:24]RAPDU: 90 00 [15:21:24]wFMCommunicate OK [15:21:24]wFMCommunicate request_size=255 [15:21:24]MH_SAM_APDU [15:21:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 F8 AB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 F0 02 00 35 04 06 00 70 [15:21:24]Write to MH i2c: E2 02 01 CC 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 F8 AB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 F0 02 00 35 04 06 00 70 00 00 18 [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 CC 54 00 90 00 94 [15:21:24]RAPDU: 90 00 [15:21:24]wFMCommunicate OK [15:21:24]wFMCommunicate request_size=10 [15:21:24]MH_SAM_APDU [15:21:24]CAPDU: 80 0D 02 02 05 9E 07 98 48 4B [15:21:24]Write to MH i2c: E2 0D 00 CD 54 80 0D 02 02 05 00 9E 07 98 48 4B 00 00 75 [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 CD 54 00 90 00 95 [15:21:24]RAPDU: 90 00 [15:21:24]wFMCommunicate OK [15:21:24]wFMCommunicate request_size=4 [15:21:24]MH_SAM_APDU [15:21:24]CAPDU: 80 0D 03 02 [15:21:24]Write to MH i2c: E2 08 00 CE 54 80 0D 03 02 00 00 00 00 9D [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 0B 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 0B 00 CE 54 00 A2 06 9E C7 F5 84 86 DC 90 00 86 [15:21:24]RAPDU: A2 06 9E C7 F5 84 86 DC 90 00 [15:21:24]wFMCommunicate OK [15:21:24]SAM_PROTO_SignData done [15:21:24]FM_MakeSignedData done [15:21:24]CreateOFDProtocolMessage [15:21:24]wFMCommunicate request_size=4 [15:21:24]MH_SAM_APDU [15:21:24]CAPDU: 80 11 00 00 [15:21:24]Write to MH i2c: E2 08 00 CF 54 80 11 00 00 00 00 00 00 9D [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 17 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 17 00 CF 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F0 [15:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:21:24]wFMCommunicate OK [15:21:24]CreateOFDProtocolMessage done [15:21:24]OFDSenderStorePacket 192642 [15:21:24]StoreOFDPacket docnum=192642 [15:21:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E6 AF 07 01 53 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 F8 AB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 F0 02 00 35 04 06 00 70 9E 07 98 48 4B A2 06 9E C7 F5 84 86 DC [15:21:24]CheckFolder [15:21:24]dirname=/storage/ofd_packets [15:21:24]CheckFolder done [15:21:24]ProducePacketName [15:21:24]name=ofd_packets/00192642 [15:21:24]NVStorageSaveData ofd_packets/00192642 [15:21:24]File name is /storage/ofd_packets/00192642 [15:21:24]Write 301 bytes [15:21:24]NVStorageSaveData done [15:21:24]OFDSenderStorePacket done [15:21:24]KKMCreateOFDPacket done [15:21:24]NVStorageSaveData kkm_last_timestamp [15:21:24]File name is /storage/kkm_last_timestamp [15:21:24]Write 4 bytes [15:21:24]NVStorageSaveData done [15:21:24]ExternCall_PrintAddStr [15:21:24]wPrintStart [15:21:24]Write to MH i2c: 01 00 00 D0 54 24 [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: 01 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: 01 07 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: 01 07 00 D0 54 00 00 00 00 00 FF 0F 39 [15:21:24]RasterBufferAndPrint [15:21:24]line Счет N : (1)31968 [15:21:24]line ИНН: 02508201610067 [15:21:24]line Контрольно-Кассовый Чек [15:21:24]line ПРОДАЖА [15:21:24]line ТРК (МРК, ГНК) : 21 [15:21:24]line Товар: 2710124130 [15:21:24]line Аи-92-К-5 [15:21:24]line 7.480 * 66.90 [15:21:24]line = 500.41 [15:21:24]line НДС 12% НСП 1% [15:21:24]line > о реализуемом товаре [15:21:24]line ОКРУГЛЕНИЕ: -0.41 [15:21:24]line ИТОГО: 500.00 [15:21:24]line Внесено: 500.00 [15:21:24]line СДАЧА: 0.00 [15:21:24]line НСП 1% : 4.43 [15:21:24]line НДС 12% : 53.14 [15:21:24]line Наличными: 500.00 [15:21:24]line Безнал.: 0.00 [15:21:24]line Место: АЗС № 170 "Партнер Нефть" [15:21:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:21:24]line СНО: Общий режим [15:21:24]line Чек 190 28.10.2024 15:21 [15:21:24]line Смена: 543 ФФД: 1.0 [15:21:24]line ЗНМ: 0300000110 [15:21:24]line РНМ: 0000000000091776 [15:21:24]line Версия ККМ: 001 [15:21:24]line ФМ: 0000000000871754 [15:21:24]line ФД: 192642 [15:21:24]line ФПД: 123824034564171 [15:21:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T152128&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192642&fm=123824034564171&tin=02508201610067®Number=0000000000091776&sum=50000 [15:21:24]OFD Sender: Processing packet 192642 [packets to send 75, broken 74] [15:21:24]ProducePacketName [15:21:24]name=ofd_packets/00192642 [15:21:24]OFD Sender: To server: pG, [15:21:24]CommunicateWithHost lk.salyk.kg:30040 [15:21:24]ConnectInit lk.salyk.kg [15:21:24]written 0, free lines is 4095 [15:21:25]Connected sock=10 [15:21:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E6 AF 07 01 53 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 F8 AB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 F0 02 00 35 04 06 00 70 9E 07 98 48 4B A2 06 9E C7 F5 84 86 DC [15:21:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6B F6 47 00 55 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 F0 02 00 F4 03 04 00 BC 50 1F 67 B6 04 01 00 00 A2 D4 23 09 85 07 93 85 [15:21:25]CommunicateWithHost err = 0 [15:21:25]CheckOFDResponse [15:21:25]1017 (14) - 77093643461234 [15:21:25]1041 (16) - 0000000000871754 [15:21:25]1040 (4) - 192642 [15:21:25]1012 (4) - 28.10.2024 08:52 [15:21:25]1206 (1) - 0 [15:21:25]OFD Sender: Remove packet 192642 [15:21:25]ProducePacketName [15:21:25]name=ofd_packets/00192642 [15:21:25]NVStorageDeleteData [15:21:25]Write to MH i2c: 01 00 00 FB 54 4F [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: 01 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: 01 07 00 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: 01 07 00 FB 54 00 00 00 00 00 C2 0C 24 [15:21:25]RasterBufferAndPrint [15:21:25]line [15:21:25]line [15:21:25]line [15:21:25]line [15:21:25]line [15:21:25]written 0, free lines is 3274 [15:21:25]MH_Cut [15:21:25]Write to MH i2c: D1 01 00 02 55 01 29 [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: D1 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: D1 01 00 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: D1 01 00 02 55 00 28 [15:21:25]Write to MH i2c: 01 00 00 03 55 58 [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]OFD Sender: No OFD packet to send [15:21:26]*** Cut start [15:21:26]*** Partial cut [15:21:26]*** CUTSNS_PIN = 1 [15:21:26]*** CUTSNS_PIN = 0 [15:21:26]*** Brake cut motor [15:21:26]Read from MH i2c: 01 [15:21:26]MH_I2C_Read... [15:21:26]*** Stop cut motor [15:21:26]*** Cut end [15:21:26]Read from MH i2c: 01 07 00 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: 01 07 00 03 55 00 00 00 00 00 FF 0F 6D [15:21:26]process_action close_receipt done [15:21:26]requested_data is exist [15:21:26]produce_requested_data [15:21:26]requested_item fm.sn is exist - process it [15:21:26]wFMCommunicate request_size=4 [15:21:26]MH_SAM_APDU [15:21:26]CAPDU: 80 11 00 00 [15:21:26]Write to MH i2c: E2 08 00 04 55 80 11 00 00 00 00 00 00 D3 [15:21:26]Write i2c OK [15:21:26]MH_I2C_Read... [15:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:26]Read from MH i2c: E2 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 17 00 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 17 00 04 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 26 [15:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:21:26]wFMCommunicate OK [15:21:26]requested_item fd.num is exist - process it [15:21:26]SAM_PROTO_GetFieldsCounters [15:21:26]wFMCommunicate request_size=4 [15:21:26]MH_SAM_APDU [15:21:26]CAPDU: 80 13 00 00 [15:21:26]Write to MH i2c: E2 08 00 05 55 80 13 00 00 00 00 00 00 D6 [15:21:26]Write i2c OK [15:21:26]MH_I2C_Read... [15:21:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:27]Read from MH i2c: E2 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: E2 62 00 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: E2 62 00 05 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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 82 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [15:21:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 82 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:27]wFMCommunicate OK [15:21:27]SAM_PROTO_GetFieldsCounters done [15:21:27]requested_item shift.num is exist - process it [15:21:27]requested_item shift.opened is exist - process it [15:21:27]req_shift_opened [15:21:27]FM_GetShiftState [15:21:27]SAM_PROTO_GetShiftState [15:21:27]wFMCommunicate request_size=4 [15:21:27]MH_SAM_APDU [15:21:27]CAPDU: 80 13 01 00 [15:21:27]Write to MH i2c: E2 08 00 06 55 80 13 01 00 00 00 00 00 D8 [15:21:27]Write i2c OK [15:21:27]MH_I2C_Read... [15:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:27]Read from MH i2c: E2 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: E2 0E 00 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: E2 0E 00 06 55 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 28 [15:21:27]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:21:27]wFMCommunicate OK [15:21:27]SAM_PROTO_GetShiftState done [15:21:27]FM_GetShiftState done [15:21:27]req_shift_opened done [15:21:27]requested_item shift.open_date is exist - process it [15:21:27]req_shift_open_date [15:21:27]req_shift_open_date done [15:21:27]produce_requested_data done [15:21:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192642,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:21:27]process_action_free close_receipt [15:21:27]json_value_free [15:21:27]json_value_free done [15:21:27]process_json_proto returns [15:21:27]Send response to host [15:21:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192642,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:21:27]free response buf [15:21:27]execute_script done [15:21:27]execute_script returns [15:21:27]free content buf [15:21:27]Sock 9.Close socket [15:21:27]Sock 9.Thread stoped [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:49]accept exits with 7 [15:25:49]New connection [15:25:49]New thread 3066707300 created [15:25:49]Thread 3066563940 joined [15:25:49]Waiting for new connection... [15:25:49] Sock 7.Parse request [15:25:49]Sock 7.Check first char [15:25:49]Sock 7.First char is OK [15:25:49]request: POST /json_proto HTTP/1.0 [15:25:49]Method: POST [15:25:49]URL: /json_proto [15:25:49]Method is POST - this is cgi request [15:25:49]url: /json_proto [15:25:49]query_string will be loaded in cgi processing [15:25:49]execute_cgi json_proto POST (null) [15:25:49]execute_cgi path=json_proto method=POST [15:25:49]POST find Content-Length [15:25:49]Host: 172.17.63.131:8080 [15:25:49]Content-Length: 678 [15:25:49]Content-Type: application/json [15:25:49] [15:25:49]POST finish read [15:25:49]Found Content-Length = 678 [15:25:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 35.440, "sum" : 2700.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:49]execute_script... [15:25:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 35.440, "sum" : 2700.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:49]POST & json_proto [15:25:49]process_json_proto [15:25:49]json parsed OK: [15:25:49]protocol is kg_v1.0 [15:25:49]action value=close_receipt [15:25:49]process_action close_receipt [15:25:49]cmd_close_receipt [15:25:49]MH_GetDate [15:25:49]Write to MH i2c: F0 00 00 07 55 4B [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: F0 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: F0 09 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: F0 09 00 07 55 00 03 AD 1F 67 22 05 6E 64 83 [15:25:49]GetLastDocTimeStamp 1730128888 [15:25:49]current date 1730129155 [15:25:49]FM_GetShiftState [15:25:49]SAM_PROTO_GetShiftState [15:25:49]wFMCommunicate request_size=4 [15:25:49]MH_SAM_APDU [15:25:49]CAPDU: 80 13 01 00 [15:25:49]Write to MH i2c: E2 08 00 08 55 80 13 01 00 00 00 00 00 DA [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:49]Read from MH i2c: E2 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 0E 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 0E 00 08 55 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2A [15:25:49]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:25:49]wFMCommunicate OK [15:25:49]SAM_PROTO_GetShiftState done [15:25:49]FM_GetShiftState done [15:25:49]opened in 1730075620 [15:25:49]opened+sec_in_day 1730162020 [15:25:49]quantity*price = 270052 [15:25:49]sum+1 = 270054 [15:25:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 2700.00 Внесено: 2700.00 СДАЧА: 0.00 НСП 1% : 23.90 НДС 12% : 286.78 Наличными: 2700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 191 28.10.2024 15:25 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192643 ФПД: 100812353828998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T152555&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192643&fm=100812353828998&tin=02508201610067®Number=0000000000091776&sum=270000 [15:25:50]StoreToDocumentArchive [15:25:50]shift 543 fd 192643 [15:25:50]save to /storage/0543/doc_00192643 [15:25:50]save last doc name /storage/0543/doc_00192643 to /storage/kkm_last_doc_name [15:25:50]save OK [15:25:50]Clear old archive folders... [15:25:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:25:50]tlvbuf is 01B513B0 [15:25:50]SAM_PROTO_ClearQueue [15:25:50]wFMCommunicate request_size=4 [15:25:50]MH_SAM_APDU [15:25:50]CAPDU: 80 09 00 00 [15:25:50]Write to MH i2c: E2 08 00 15 55 80 09 00 00 00 00 00 00 DC [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:50]Read from MH i2c: E2 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 03 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 03 00 15 55 00 90 00 DE [15:25:50]RAPDU: 90 00 [15:25:50]wFMCommunicate OK [15:25:50]SAM_PROTO_ClearQueue done [15:25:50]KKMCreateOFDPacket [15:25:50]OFDProtocolAddRootSTLVToBuf [15:25:50]FM_MakeSignedData [15:25:50]FM_MakeSignedData [15:25:50]SAM_PROTO_SignData [15:25:50]wFMCommunicate request_size=4 [15:25:50]MH_SAM_APDU [15:25:50]CAPDU: 80 0D 01 02 [15:25:50]Write to MH i2c: E2 08 00 16 55 80 0D 01 02 00 00 00 00 E4 [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:50]Read from MH i2c: E2 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 03 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 03 00 16 55 00 90 00 DF [15:25:50]RAPDU: 90 00 [15:25:50]wFMCommunicate OK [15:25:50]wFMCommunicate request_size=255 [15:25:50]MH_SAM_APDU [15:25:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 8A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E5 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 03 AD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 F0 02 00 35 04 06 00 5B B0 34 89 [15:25:50]Write to MH i2c: E2 02 01 17 55 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 8A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E5 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 03 AD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 F0 02 00 35 04 06 00 5B B0 34 89 00 00 F4 [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:51]OFD Sender: No OFD packet to send [15:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:51]Read from MH i2c: E2 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 03 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 03 00 17 55 00 90 00 E0 [15:25:51]RAPDU: 90 00 [15:25:51]wFMCommunicate OK [15:25:51]wFMCommunicate request_size=7 [15:25:51]MH_SAM_APDU [15:25:51]CAPDU: 80 0D 02 02 02 F8 86 [15:25:51]Write to MH i2c: E2 0A 00 18 55 80 0D 02 02 02 00 F8 86 00 00 69 [15:25:51]Write i2c OK [15:25:51]MH_I2C_Read... [15:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:51]Read from MH i2c: E2 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 03 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 03 00 18 55 00 90 00 E1 [15:25:51]RAPDU: 90 00 [15:25:51]wFMCommunicate OK [15:25:51]wFMCommunicate request_size=4 [15:25:51]MH_SAM_APDU [15:25:51]CAPDU: 80 0D 03 02 [15:25:51]Write to MH i2c: E2 08 00 19 55 80 0D 03 02 00 00 00 00 E9 [15:25:51]Write i2c OK [15:25:51]MH_I2C_Read... [15:25:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:51]Read from MH i2c: E2 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 0B 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 0B 00 19 55 00 2F C2 F9 1B 87 09 29 C9 90 00 71 [15:25:51]RAPDU: 2F C2 F9 1B 87 09 29 C9 90 00 [15:25:51]wFMCommunicate OK [15:25:51]SAM_PROTO_SignData done [15:25:51]FM_MakeSignedData done [15:25:51]CreateOFDProtocolMessage [15:25:51]wFMCommunicate request_size=4 [15:25:51]MH_SAM_APDU [15:25:51]CAPDU: 80 11 00 00 [15:25:51]Write to MH i2c: E2 08 00 1A 55 80 11 00 00 00 00 00 00 E9 [15:25:51]Write i2c OK [15:25:51]MH_I2C_Read... [15:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:51]Read from MH i2c: E2 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 17 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 17 00 1A 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3C [15:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:25:51]wFMCommunicate OK [15:25:51]CreateOFDProtocolMessage done [15:25:51]OFDSenderStorePacket 192643 [15:25:51]StoreOFDPacket docnum=192643 [15:25:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E8 26 04 01 4A 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 8A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E5 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 03 AD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 F0 02 00 35 04 06 00 5B B0 34 89 F8 86 2F C2 F9 1B 87 09 29 C9 [15:25:51]CheckFolder [15:25:51]dirname=/storage/ofd_packets [15:25:51]CheckFolder done [15:25:51]ProducePacketName [15:25:51]name=ofd_packets/00192643 [15:25:51]NVStorageSaveData ofd_packets/00192643 [15:25:51]File name is /storage/ofd_packets/00192643 [15:25:51]Write 298 bytes [15:25:51]NVStorageSaveData done [15:25:51]OFDSenderStorePacket done [15:25:51]KKMCreateOFDPacket done [15:25:51]NVStorageSaveData kkm_last_timestamp [15:25:51]File name is /storage/kkm_last_timestamp [15:25:51]Write 4 bytes [15:25:51]NVStorageSaveData done [15:25:51]ExternCall_PrintAddStr [15:25:51]wPrintStart [15:25:51]Write to MH i2c: 01 00 00 1B 55 70 [15:25:51]Write i2c OK [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: 01 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: 01 07 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: 01 07 00 1B 55 00 00 00 00 00 FF 0F 85 [15:25:51]RasterBufferAndPrint [15:25:51]line Счет N : (1)31969 [15:25:51]line ИНН: 02508201610067 [15:25:51]line Контрольно-Кассовый Чек [15:25:51]line ПРОДАЖА [15:25:51]line ТРК (МРК, ГНК) : 11 [15:25:51]line Товар: 2710194210 [15:25:51]line ДТ-К-5 [15:25:51]line 35.440 * 76.20 [15:25:51]line = 2700.53 [15:25:51]line НДС 12% НСП 1% [15:25:51]line > о реализуемом товаре [15:25:51]line ОКРУГЛЕНИЕ: -0.53 [15:25:51]line ИТОГО: 2700.00 [15:25:51]line Внесено: 2700.00 [15:25:51]line СДАЧА: 0.00 [15:25:51]line НСП 1% : 23.90 [15:25:51]line НДС 12% : 286.78 [15:25:51]line Наличными: 2700.00 [15:25:51]line Безнал.: 0.00 [15:25:51]line Место: АЗС № 170 "Партнер Нефть" [15:25:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:25:51]line СНО: Общий режим [15:25:51]line Чек 191 28.10.2024 15:25 [15:25:51]line Смена: 543 ФФД: 1.0 [15:25:51]line ЗНМ: 0300000110 [15:25:51]line РНМ: 0000000000091776 [15:25:51]line Версия ККМ: 001 [15:25:51]line ФМ: 0000000000871754 [15:25:51]line ФД: 192643 [15:25:51]line ФПД: 100812353828998 [15:25:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T152555&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192643&fm=100812353828998&tin=02508201610067®Number=0000000000091776&sum=270000 [15:25:51]OFD Sender: Processing packet 192643 [packets to send 75, broken 74] [15:25:51]ProducePacketName [15:25:51]name=ofd_packets/00192643 [15:25:51]OFD Sender: To server: pG, [15:25:51]CommunicateWithHost lk.salyk.kg:30040 [15:25:51]ConnectInit lk.salyk.kg [15:25:51]written 0, free lines is 4095 [15:25:51]Connected sock=10 [15:25:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E8 26 04 01 4A 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 8A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E5 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 03 AD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 F0 02 00 35 04 06 00 5B B0 34 89 F8 86 2F C2 F9 1B 87 09 29 C9 [15:25:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 87 15 47 00 1A 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 F0 02 00 F4 03 04 00 C7 51 1F 67 B6 04 01 00 00 A6 E9 97 29 1E 43 9C 21 [15:25:51]CommunicateWithHost err = 0 [15:25:51]CheckOFDResponse [15:25:51]1017 (14) - 77093643461234 [15:25:51]1041 (16) - 0000000000871754 [15:25:51]1040 (4) - 192643 [15:25:51]1012 (4) - 28.10.2024 08:56 [15:25:51]1206 (1) - 0 [15:25:51]OFD Sender: Remove packet 192643 [15:25:51]ProducePacketName [15:25:51]name=ofd_packets/00192643 [15:25:51]NVStorageDeleteData [15:25:52]Write to MH i2c: 01 00 00 46 55 9B [15:25:52]Write i2c OK [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: 01 [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: 01 07 00 [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: 01 07 00 46 55 00 00 00 00 00 C7 0C 75 [15:25:52]RasterBufferAndPrint [15:25:52]line [15:25:52]line [15:25:52]line [15:25:52]line [15:25:52]line [15:25:52]written 0, free lines is 3277 [15:25:52]MH_Cut [15:25:52]Write to MH i2c: D1 01 00 4D 55 01 74 [15:25:52]Write i2c OK [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: D1 [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: D1 01 00 [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: D1 01 00 4D 55 00 73 [15:25:52]Write to MH i2c: 01 00 00 4E 55 A3 [15:25:52]Write i2c OK [15:25:52]MH_I2C_Read... [15:25:52]OFD Sender: No OFD packet to send [15:25:52]*** Cut start [15:25:52]*** Partial cut [15:25:52]*** CUTSNS_PIN = 1 [15:25:52]*** CUTSNS_PIN = 0 [15:25:53]*** Brake cut motor [15:25:53]Read from MH i2c: 01 [15:25:53]MH_I2C_Read... [15:25:53]*** Stop cut motor [15:25:53]*** Cut end [15:25:53]Read from MH i2c: 01 07 00 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: 01 07 00 4E 55 00 00 00 00 00 FF 0F B8 [15:25:53]process_action close_receipt done [15:25:53]requested_data is exist [15:25:53]produce_requested_data [15:25:53]requested_item fm.sn is exist - process it [15:25:53]wFMCommunicate request_size=4 [15:25:53]MH_SAM_APDU [15:25:53]CAPDU: 80 11 00 00 [15:25:53]Write to MH i2c: E2 08 00 4F 55 80 11 00 00 00 00 00 00 1E [15:25:53]Write i2c OK [15:25:53]MH_I2C_Read... [15:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:53]Read from MH i2c: E2 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 17 00 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 17 00 4F 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 71 [15:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:25:53]wFMCommunicate OK [15:25:53]requested_item fd.num is exist - process it [15:25:53]SAM_PROTO_GetFieldsCounters [15:25:53]wFMCommunicate request_size=4 [15:25:53]MH_SAM_APDU [15:25:53]CAPDU: 80 13 00 00 [15:25:53]Write to MH i2c: E2 08 00 50 55 80 13 00 00 00 00 00 00 21 [15:25:53]Write i2c OK [15:25:53]MH_I2C_Read... [15:25:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:53]Read from MH i2c: E2 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 62 00 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 62 00 50 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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 83 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [15:25:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 83 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:53]wFMCommunicate OK [15:25:53]SAM_PROTO_GetFieldsCounters done [15:25:53]requested_item shift.num is exist - process it [15:25:53]requested_item shift.opened is exist - process it [15:25:53]req_shift_opened [15:25:53]FM_GetShiftState [15:25:53]SAM_PROTO_GetShiftState [15:25:53]wFMCommunicate request_size=4 [15:25:53]MH_SAM_APDU [15:25:53]CAPDU: 80 13 01 00 [15:25:53]Write to MH i2c: E2 08 00 51 55 80 13 01 00 00 00 00 00 23 [15:25:53]Write i2c OK [15:25:53]MH_I2C_Read... [15:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:53]Read from MH i2c: E2 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 0E 00 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 0E 00 51 55 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 73 [15:25:53]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:25:53]wFMCommunicate OK [15:25:53]SAM_PROTO_GetShiftState done [15:25:53]FM_GetShiftState done [15:25:53]req_shift_opened done [15:25:53]requested_item shift.open_date is exist - process it [15:25:53]req_shift_open_date [15:25:53]req_shift_open_date done [15:25:53]produce_requested_data done [15:25:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192643,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:25:53]process_action_free close_receipt [15:25:53]json_value_free [15:25:53]json_value_free done [15:25:53]process_json_proto returns [15:25:53]Send response to host [15:25:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192643,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:25:53]free response buf [15:25:53]execute_script done [15:25:53]execute_script returns [15:25:53]free content buf [15:25:53]Sock 7.Close socket [15:25:53]Sock 7.Thread stoped [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:42]accept exits with 9 [15:27:42]New connection [15:27:42]New thread 3066563940 created [15:27:42]Thread 3066707300 joined [15:27:42]Waiting for new connection... [15:27:42] Sock 9.Parse request [15:27:42]Sock 9.Check first char [15:27:42]Sock 9.First char is OK [15:27:42]request: POST /json_proto HTTP/1.0 [15:27:42]Method: POST [15:27:42]URL: /json_proto [15:27:42]Method is POST - this is cgi request [15:27:42]url: /json_proto [15:27:42]query_string will be loaded in cgi processing [15:27:42]execute_cgi json_proto POST (null) [15:27:42]execute_cgi path=json_proto method=POST [15:27:42]POST find Content-Length [15:27:42]Host: 172.17.63.131:8080 [15:27:42]Content-Length: 681 [15:27:42]Content-Type: application/json [15:27:42] [15:27:42]POST finish read [15:27:42]Found Content-Length = 681 [15:27:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:42]execute_script... [15:27: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)31971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:42]POST & json_proto [15:27:42]process_json_proto [15:27:42]json parsed OK: [15:27:42]protocol is kg_v1.0 [15:27:42]action value=close_receipt [15:27:42]process_action close_receipt [15:27:42]cmd_close_receipt [15:27:42]MH_GetDate [15:27:42]Write to MH i2c: F0 00 00 52 55 96 [15:27:43]Write i2c OK [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: F0 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: F0 09 00 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: F0 09 00 52 55 00 74 AD 1F 67 22 05 6E 64 3F [15:27:43]GetLastDocTimeStamp 1730129155 [15:27:43]current date 1730129268 [15:27:43]FM_GetShiftState [15:27:43]SAM_PROTO_GetShiftState [15:27:43]wFMCommunicate request_size=4 [15:27:43]MH_SAM_APDU [15:27:43]CAPDU: 80 13 01 00 [15:27:43]Write to MH i2c: E2 08 00 53 55 80 13 01 00 00 00 00 00 25 [15:27:43]Write i2c OK [15:27:43]MH_I2C_Read... [15:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:43]Read from MH i2c: E2 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: E2 0E 00 [15:27:43]MH_I2C_Read... [15:27:43]Read from MH i2c: E2 0E 00 53 55 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 75 [15:27:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:27:43]wFMCommunicate OK [15:27:43]SAM_PROTO_GetShiftState done [15:27:43]FM_GetShiftState done [15:27:43]opened in 1730075620 [15:27:43]opened+sec_in_day 1730162020 [15:27:43]quantity*price = 100015 [15:27:43]sum+1 = 100017 [15:27:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 192 28.10.2024 15:27 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192644 ФПД: 236481751984074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T152748&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192644&fm=236481751984074&tin=02508201610067®Number=0000000000091776&sum=100000 [15:27:44]StoreToDocumentArchive [15:27:44]shift 543 fd 192644 [15:27:44]save to /storage/0543/doc_00192644 [15:27:44]save last doc name /storage/0543/doc_00192644 to /storage/kkm_last_doc_name [15:27:44]save OK [15:27:44]Clear old archive folders... [15:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:44]tlvbuf is 019EC3E0 [15:27:44]SAM_PROTO_ClearQueue [15:27:44]wFMCommunicate request_size=4 [15:27:44]MH_SAM_APDU [15:27:44]CAPDU: 80 09 00 00 [15:27:44]Write to MH i2c: E2 08 00 60 55 80 09 00 00 00 00 00 00 27 [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:44]Read from MH i2c: E2 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 03 00 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 03 00 60 55 00 90 00 29 [15:27:44]RAPDU: 90 00 [15:27:44]wFMCommunicate OK [15:27:44]SAM_PROTO_ClearQueue done [15:27:44]KKMCreateOFDPacket [15:27:44]OFDProtocolAddRootSTLVToBuf [15:27:44]FM_MakeSignedData [15:27:44]FM_MakeSignedData [15:27:44]SAM_PROTO_SignData [15:27:44]wFMCommunicate request_size=4 [15:27:44]MH_SAM_APDU [15:27:44]CAPDU: 80 0D 01 02 [15:27:44]Write to MH i2c: E2 08 00 61 55 80 0D 01 02 00 00 00 00 2F [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:44]Read from MH i2c: E2 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 03 00 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 03 00 61 55 00 90 00 2A [15:27:44]RAPDU: 90 00 [15:27:44]wFMCommunicate OK [15:27:44]wFMCommunicate request_size=255 [15:27:44]MH_SAM_APDU [15:27:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 74 AD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 F0 02 00 35 04 06 00 D7 [15:27:44]Write to MH i2c: E2 02 01 62 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 74 AD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 F0 02 00 35 04 06 00 D7 00 00 92 [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:44]Read from MH i2c: E2 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 03 00 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 03 00 62 55 00 90 00 2B [15:27:44]RAPDU: 90 00 [15:27:44]wFMCommunicate OK [15:27:44]wFMCommunicate request_size=10 [15:27:44]MH_SAM_APDU [15:27:44]CAPDU: 80 0D 02 02 05 14 32 D2 A7 CA [15:27:44]Write to MH i2c: E2 0D 00 63 55 80 0D 02 02 05 00 14 32 D2 A7 CA 00 00 C5 [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:44]Read from MH i2c: E2 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 03 00 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 03 00 63 55 00 90 00 2C [15:27:44]RAPDU: 90 00 [15:27:44]wFMCommunicate OK [15:27:44]wFMCommunicate request_size=4 [15:27:44]MH_SAM_APDU [15:27:44]CAPDU: 80 0D 03 02 [15:27:44]Write to MH i2c: E2 08 00 64 55 80 0D 03 02 00 00 00 00 34 [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:44]Read from MH i2c: E2 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 0B 00 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 0B 00 64 55 00 15 A9 D1 21 3F 7B 6A 9E 90 00 A7 [15:27:44]RAPDU: 15 A9 D1 21 3F 7B 6A 9E 90 00 [15:27:44]wFMCommunicate OK [15:27:44]SAM_PROTO_SignData done [15:27:44]FM_MakeSignedData done [15:27:44]CreateOFDProtocolMessage [15:27:44]wFMCommunicate request_size=4 [15:27:44]MH_SAM_APDU [15:27:44]CAPDU: 80 11 00 00 [15:27:44]Write to MH i2c: E2 08 00 65 55 80 11 00 00 00 00 00 00 34 [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:44]Read from MH i2c: E2 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 17 00 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 17 00 65 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 87 [15:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:27:44]wFMCommunicate OK [15:27:44]CreateOFDProtocolMessage done [15:27:44]OFDSenderStorePacket 192644 [15:27:44]StoreOFDPacket docnum=192644 [15:27:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 53 F2 07 01 77 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 74 AD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 F0 02 00 35 04 06 00 D7 14 32 D2 A7 CA 15 A9 D1 21 3F 7B 6A 9E [15:27:44]CheckFolder [15:27:44]dirname=/storage/ofd_packets [15:27:44]CheckFolder done [15:27:44]ProducePacketName [15:27:44]name=ofd_packets/00192644 [15:27:44]NVStorageSaveData ofd_packets/00192644 [15:27:44]File name is /storage/ofd_packets/00192644 [15:27:44]Write 301 bytes [15:27:44]NVStorageSaveData done [15:27:44]OFDSenderStorePacket done [15:27:44]KKMCreateOFDPacket done [15:27:44]NVStorageSaveData kkm_last_timestamp [15:27:44]File name is /storage/kkm_last_timestamp [15:27:44]Write 4 bytes [15:27:44]NVStorageSaveData done [15:27:44]ExternCall_PrintAddStr [15:27:44]wPrintStart [15:27:44]Write to MH i2c: 01 00 00 66 55 BB [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: 01 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: 01 07 00 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: 01 07 00 66 55 00 00 00 00 00 FF 0F D0 [15:27:44]RasterBufferAndPrint [15:27:44]line Счет N : (1)31971 [15:27:44]line ИНН: 02508201610067 [15:27:44]line Контрольно-Кассовый Чек [15:27:44]line ПРОДАЖА [15:27:44]line ТРК (МРК, ГНК) : 21 [15:27:44]line Товар: 2710124130 [15:27:44]line Аи-92-К-5 [15:27:44]line 14.950 * 66.90 [15:27:44]line = 1000.16 [15:27:44]line НДС 12% НСП 1% [15:27:44]line > о реализуемом товаре [15:27:44]line ОКРУГЛЕНИЕ: -0.16 [15:27:44]line ИТОГО: 1000.00 [15:27:44]line Внесено: 1000.00 [15:27:44]line СДАЧА: 0.00 [15:27:44]line НСП 1% : 8.85 [15:27:44]line НДС 12% : 106.21 [15:27:44]line Наличными: 1000.00 [15:27:44]line Безнал.: 0.00 [15:27:44]line Место: АЗС № 170 "Партнер Нефть" [15:27:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:27:44]line СНО: Общий режим [15:27:44]line Чек 192 28.10.2024 15:27 [15:27:44]line Смена: 543 ФФД: 1.0 [15:27:44]line ЗНМ: 0300000110 [15:27:44]line РНМ: 0000000000091776 [15:27:44]line Версия ККМ: 001 [15:27:44]line ФМ: 0000000000871754 [15:27:44]line ФД: 192644 [15:27:44]line ФПД: 236481751984074 [15:27:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T152748&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192644&fm=236481751984074&tin=02508201610067®Number=0000000000091776&sum=100000 [15:27:45]OFD Sender: Processing packet 192644 [packets to send 75, broken 74] [15:27:45]ProducePacketName [15:27:45]name=ofd_packets/00192644 [15:27:45]OFD Sender: To server: pG, [15:27:45]CommunicateWithHost lk.salyk.kg:30040 [15:27:45]ConnectInit lk.salyk.kg [15:27:45]written 0, free lines is 4095 [15:27:45]Connected sock=10 [15:27:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 53 F2 07 01 77 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 74 AD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 F0 02 00 35 04 06 00 D7 14 32 D2 A7 CA 15 A9 D1 21 3F 7B 6A 9E [15:27:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 85 FA 47 00 E9 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 F0 02 00 F4 03 04 00 38 52 1F 67 B6 04 01 00 00 C2 D9 7E 98 CF 02 87 C3 [15:27:45]CommunicateWithHost err = 0 [15:27:45]CheckOFDResponse [15:27:45]1017 (14) - 77093643461234 [15:27:45]1041 (16) - 0000000000871754 [15:27:45]1040 (4) - 192644 [15:27:45]1012 (4) - 28.10.2024 08:58 [15:27:45]1206 (1) - 0 [15:27:45]OFD Sender: Remove packet 192644 [15:27:45]ProducePacketName [15:27:45]name=ofd_packets/00192644 [15:27:45]NVStorageDeleteData [15:27:45]Write to MH i2c: 01 00 00 91 55 E6 [15:27:45]Write i2c OK [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: 01 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: 01 07 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: 01 07 00 91 55 00 00 00 00 00 C5 0C BE [15:27:45]RasterBufferAndPrint [15:27:45]line [15:27:45]line [15:27:45]line [15:27:45]line [15:27:45]line [15:27:45]written 0, free lines is 3274 [15:27:45]MH_Cut [15:27:45]Write to MH i2c: D1 01 00 98 55 01 BF [15:27:45]Write i2c OK [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: D1 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: D1 01 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: D1 01 00 98 55 00 BE [15:27:45]Write to MH i2c: 01 00 00 99 55 EE [15:27:45]Write i2c OK [15:27:45]MH_I2C_Read... [15:27:45]OFD Sender: No OFD packet to send [15:27:46]*** Cut start [15:27:46]*** Partial cut [15:27:46]*** CUTSNS_PIN = 1 [15:27:46]*** CUTSNS_PIN = 0 [15:27:46]*** Brake cut motor [15:27:46]Read from MH i2c: 01 [15:27:46]MH_I2C_Read... [15:27:46]*** Stop cut motor [15:27:46]*** Cut end [15:27:46]Read from MH i2c: 01 07 00 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: 01 07 00 99 55 00 00 00 00 00 FF 0F 03 [15:27:46]process_action close_receipt done [15:27:46]requested_data is exist [15:27:46]produce_requested_data [15:27:46]requested_item fm.sn is exist - process it [15:27:46]wFMCommunicate request_size=4 [15:27:46]MH_SAM_APDU [15:27:46]CAPDU: 80 11 00 00 [15:27:46]Write to MH i2c: E2 08 00 9A 55 80 11 00 00 00 00 00 00 69 [15:27:46]Write i2c OK [15:27:46]MH_I2C_Read... [15:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:46]Read from MH i2c: E2 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: E2 17 00 [15:27:46]MH_I2C_Read... [15:27:46]Read from MH i2c: E2 17 00 9A 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BC [15:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:27:46]wFMCommunicate OK [15:27:46]requested_item fd.num is exist - process it [15:27:46]SAM_PROTO_GetFieldsCounters [15:27:46]wFMCommunicate request_size=4 [15:27:46]MH_SAM_APDU [15:27:46]CAPDU: 80 13 00 00 [15:27:46]Write to MH i2c: E2 08 00 9B 55 80 13 00 00 00 00 00 00 6C [15:27:46]Write i2c OK [15:27:46]MH_I2C_Read... [15:27:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:47]Read from MH i2c: E2 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 62 00 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 62 00 9B 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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 84 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [15:27:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 84 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:47]wFMCommunicate OK [15:27:47]SAM_PROTO_GetFieldsCounters done [15:27:47]requested_item shift.num is exist - process it [15:27:47]requested_item shift.opened is exist - process it [15:27:47]req_shift_opened [15:27:47]FM_GetShiftState [15:27:47]SAM_PROTO_GetShiftState [15:27:47]wFMCommunicate request_size=4 [15:27:47]MH_SAM_APDU [15:27:47]CAPDU: 80 13 01 00 [15:27:47]Write to MH i2c: E2 08 00 9C 55 80 13 01 00 00 00 00 00 6E [15:27:47]Write i2c OK [15:27:47]MH_I2C_Read... [15:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:47]Read from MH i2c: E2 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 0E 00 [15:27:47]MH_I2C_Read... [15:27:47]Read from MH i2c: E2 0E 00 9C 55 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 BE [15:27:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:27:47]wFMCommunicate OK [15:27:47]SAM_PROTO_GetShiftState done [15:27:47]FM_GetShiftState done [15:27:47]req_shift_opened done [15:27:47]requested_item shift.open_date is exist - process it [15:27:47]req_shift_open_date [15:27:47]req_shift_open_date done [15:27:47]produce_requested_data done [15:27:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192644,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:27:47]process_action_free close_receipt [15:27:47]json_value_free [15:27:47]json_value_free done [15:27:47]process_json_proto returns [15:27:47]Send response to host [15:27:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192644,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:27:47]free response buf [15:27:47]execute_script done [15:27:47]execute_script returns [15:27:47]free content buf [15:27:47]Sock 9.Close socket [15:27:47]Sock 9.Thread stoped [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:38]accept exits with 7 [15:28:38]New connection [15:28:38]New thread 3066707300 created [15:28:38]Thread 3066563940 joined [15:28:38]Waiting for new connection... [15:28:38] Sock 7.Parse request [15:28:38]Sock 7.Check first char [15:28:38]Sock 7.First char is OK [15:28:38]request: POST /json_proto HTTP/1.0 [15:28:38]Method: POST [15:28:38]URL: /json_proto [15:28:38]Method is POST - this is cgi request [15:28:38]url: /json_proto [15:28:38]query_string will be loaded in cgi processing [15:28:38]execute_cgi json_proto POST (null) [15:28:38]execute_cgi path=json_proto method=POST [15:28:38]POST find Content-Length [15:28:38]Host: 172.17.63.131:8080 [15:28:38]Content-Length: 780 [15:28:38]Content-Type: application/json [15:28:38] [15:28:38]POST finish read [15:28:38]Found Content-Length = 780 [15:28:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 300.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A61746", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:38]execute_script... [15:28:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 300.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A61746", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:38]POST & json_proto [15:28:38]process_json_proto [15:28:38]json parsed OK: [15:28:38]protocol is kg_v1.0 [15:28:38]action value=close_receipt [15:28:38]process_action close_receipt [15:28:38]cmd_close_receipt [15:28:38]MH_GetDate [15:28:38]Write to MH i2c: F0 00 00 9D 55 E1 [15:28:38]Write i2c OK [15:28:38]MH_I2C_Read... [15:28:38]Read from MH i2c: F0 [15:28:38]MH_I2C_Read... [15:28:38]Read from MH i2c: F0 09 00 [15:28:38]MH_I2C_Read... [15:28:38]Read from MH i2c: F0 09 00 9D 55 00 AC AD 1F 67 22 05 6E 64 C2 [15:28:38]GetLastDocTimeStamp 1730129268 [15:28:38]current date 1730129324 [15:28:38]FM_GetShiftState [15:28:38]SAM_PROTO_GetShiftState [15:28:38]wFMCommunicate request_size=4 [15:28:38]MH_SAM_APDU [15:28:38]CAPDU: 80 13 01 00 [15:28:38]Write to MH i2c: E2 08 00 9E 55 80 13 01 00 00 00 00 00 70 [15:28:38]Write i2c OK [15:28:38]MH_I2C_Read... [15:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:38]Read from MH i2c: E2 [15:28:38]MH_I2C_Read... [15:28:38]Read from MH i2c: E2 0E 00 [15:28:38]MH_I2C_Read... [15:28:38]Read from MH i2c: E2 0E 00 9E 55 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C0 [15:28:38]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:28:38]wFMCommunicate OK [15:28:38]SAM_PROTO_GetShiftState done [15:28:38]FM_GetShiftState done [15:28:38]opened in 1730075620 [15:28:38]opened+sec_in_day 1730162020 [15:28:38]quantity*price = 0 [15:28:38]sum+1 = 1 [15:28:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 193 28.10.2024 15:28 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Партнер нефть 61746 ФМ: 0000000000871754 ФД: 192645 ФПД: 27325880922596 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T152844&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192645&fm=27325880922596&tin=02508201610067®Number=0000000000091776&sum=0 [15:28:40]StoreToDocumentArchive [15:28:40]shift 543 fd 192645 [15:28:40]save to /storage/0543/doc_00192645 [15:28:40]save last doc name /storage/0543/doc_00192645 to /storage/kkm_last_doc_name [15:28:40]save OK [15:28:40]Clear old archive folders... [15:28:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:40]tlvbuf is 01B12800 [15:28:40]SAM_PROTO_ClearQueue [15:28:40]wFMCommunicate request_size=4 [15:28:40]MH_SAM_APDU [15:28:40]CAPDU: 80 09 00 00 [15:28:40]Write to MH i2c: E2 08 00 AB 55 80 09 00 00 00 00 00 00 72 [15:28:40]Write i2c OK [15:28:40]MH_I2C_Read... [15:28:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:40]Read from MH i2c: E2 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: E2 03 00 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: E2 03 00 AB 55 00 90 00 74 [15:28:40]RAPDU: 90 00 [15:28:40]wFMCommunicate OK [15:28:40]SAM_PROTO_ClearQueue done [15:28:40]KKMCreateOFDPacket [15:28:40]OFDProtocolAddRootSTLVToBuf [15:28:40]FM_MakeSignedData [15:28:40]FM_MakeSignedData [15:28:40]SAM_PROTO_SignData [15:28:40]wFMCommunicate request_size=4 [15:28:40]MH_SAM_APDU [15:28:40]CAPDU: 80 0D 01 02 [15:28:40]Write to MH i2c: E2 08 00 AC 55 80 0D 01 02 00 00 00 00 7A [15:28:40]Write i2c OK [15:28:40]MH_I2C_Read... [15:28:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:40]Read from MH i2c: E2 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: E2 03 00 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: E2 03 00 AC 55 00 90 00 75 [15:28:40]RAPDU: 90 00 [15:28:40]wFMCommunicate OK [15:28:40]wFMCommunicate request_size=255 [15:28:40]MH_SAM_APDU [15:28:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 93 04 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 AC AD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 F0 02 00 35 04 06 00 18 [15:28:40]Write to MH i2c: E2 02 01 AD 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 93 04 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 AC AD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 F0 02 00 35 04 06 00 18 00 00 50 [15:28:40]Write i2c OK [15:28:40]MH_I2C_Read... [15:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:40]Read from MH i2c: E2 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: E2 03 00 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: E2 03 00 AD 55 00 90 00 76 [15:28:40]RAPDU: 90 00 [15:28:40]wFMCommunicate OK [15:28:40]wFMCommunicate request_size=10 [15:28:40]MH_SAM_APDU [15:28:40]CAPDU: 80 0D 02 02 05 DA 4D 6C F1 E4 [15:28:40]Write to MH i2c: E2 0D 00 AE 55 80 0D 02 02 05 00 DA 4D 6C F1 E4 00 00 EF [15:28:40]Write i2c OK [15:28:40]MH_I2C_Read... [15:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:40]Read from MH i2c: E2 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: E2 03 00 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: E2 03 00 AE 55 00 90 00 77 [15:28:40]RAPDU: 90 00 [15:28:40]wFMCommunicate OK [15:28:40]wFMCommunicate request_size=4 [15:28:40]MH_SAM_APDU [15:28:40]CAPDU: 80 0D 03 02 [15:28:40]Write to MH i2c: E2 08 00 AF 55 80 0D 03 02 00 00 00 00 7F [15:28:40]Write i2c OK [15:28:40]MH_I2C_Read... [15:28:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:40]Read from MH i2c: E2 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: E2 0B 00 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: E2 0B 00 AF 55 00 EB 51 A8 E8 D2 A2 01 76 90 00 37 [15:28:40]RAPDU: EB 51 A8 E8 D2 A2 01 76 90 00 [15:28:40]wFMCommunicate OK [15:28:40]SAM_PROTO_SignData done [15:28:40]FM_MakeSignedData done [15:28:40]CreateOFDProtocolMessage [15:28:40]wFMCommunicate request_size=4 [15:28:40]MH_SAM_APDU [15:28:40]CAPDU: 80 11 00 00 [15:28:40]Write to MH i2c: E2 08 00 B0 55 80 11 00 00 00 00 00 00 7F [15:28:40]Write i2c OK [15:28:40]MH_I2C_Read... [15:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:40]Read from MH i2c: E2 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: E2 17 00 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: E2 17 00 B0 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [15:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:28:40]wFMCommunicate OK [15:28:40]CreateOFDProtocolMessage done [15:28:40]OFDSenderStorePacket 192645 [15:28:40]StoreOFDPacket docnum=192645 [15:28:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 60 D3 07 01 61 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 E0 93 04 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 AC AD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 F0 02 00 35 04 06 00 18 DA 4D 6C F1 E4 EB 51 A8 E8 D2 A2 01 76 [15:28:40]CheckFolder [15:28:40]dirname=/storage/ofd_packets [15:28:40]CheckFolder done [15:28:40]ProducePacketName [15:28:40]name=ofd_packets/00192645 [15:28:40]NVStorageSaveData ofd_packets/00192645 [15:28:40]File name is /storage/ofd_packets/00192645 [15:28:40]Write 301 bytes [15:28:40]NVStorageSaveData done [15:28:40]OFDSenderStorePacket done [15:28:40]KKMCreateOFDPacket done [15:28:40]NVStorageSaveData kkm_last_timestamp [15:28:40]File name is /storage/kkm_last_timestamp [15:28:40]Write 4 bytes [15:28:40]NVStorageSaveData done [15:28:40]ExternCall_PrintAddStr [15:28:40]wPrintStart [15:28:40]Write to MH i2c: 01 00 00 B1 55 06 [15:28:40]Write i2c OK [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: 01 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: 01 07 00 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: 01 07 00 B1 55 00 00 00 00 00 FF 0F 1B [15:28:40]RasterBufferAndPrint [15:28:40]line Счет N : (1)31966 [15:28:40]line ИНН: 02508201610067 [15:28:40]line Контрольно-Кассовый Чек [15:28:40]line ПРОДАЖА [15:28:40]line ТРК (МРК, ГНК) : 12 [15:28:40]line Товар: 2710124130 [15:28:40]line Аи-92-К-5 [15:28:40]line 300.000 * 0.00 [15:28:40]line = 0.00 [15:28:40]line НДС 12% НСП 1% [15:28:40]line > о реализуемом товаре [15:28:40]line ИТОГО: 0.00 [15:28:40]line НСП 1% : 0.00 [15:28:40]line НДС 12% : 0.00 [15:28:40]line Наличными: 0.00 [15:28:40]line Безнал.: 0.00 [15:28:40]line Место: АЗС № 170 "Партнер Нефть" [15:28:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:28:40]line СНО: Общий режим [15:28:40]line Чек 193 28.10.2024 15:28 [15:28:40]line Смена: 543 ФФД: 1.0 [15:28:40]line ЗНМ: 0300000110 [15:28:40]line РНМ: 0000000000091776 [15:28:40]line Версия ККМ: 001 [15:28:40]line Талоны: Партнер нефть [15:28:40]line 61746 [15:28:40]line ФМ: 0000000000871754 [15:28:40]line ФД: 192645 [15:28:40]line ФПД: 27325880922596 [15:28:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T152844&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192645&fm=27325880922596&tin=02508201610067®Number=0000000000091776&sum=0 [15:28:40]OFD Sender: Processing packet 192645 [packets to send 75, broken 74] [15:28:40]ProducePacketName [15:28:40]name=ofd_packets/00192645 [15:28:40]OFD Sender: To server: pG, [15:28:40]CommunicateWithHost lk.salyk.kg:30040 [15:28:40]ConnectInit lk.salyk.kg [15:28:40]written 0, free lines is 4095 [15:28:40]Connected sock=10 [15:28:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 60 D3 07 01 61 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 E0 93 04 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 AC AD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 F0 02 00 35 04 06 00 18 DA 4D 6C F1 E4 EB 51 A8 E8 D2 A2 01 76 [15:28:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F9 DF 47 00 03 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 F0 02 00 F4 03 04 00 70 52 1F 67 B6 04 01 00 00 A3 A1 CC 66 E3 7F 8A 81 [15:28:41]CommunicateWithHost err = 0 [15:28:41]CheckOFDResponse [15:28:41]1017 (14) - 77093643461234 [15:28:41]1041 (16) - 0000000000871754 [15:28:41]1040 (4) - 192645 [15:28:41]1012 (4) - 28.10.2024 08:59 [15:28:41]1206 (1) - 0 [15:28:41]OFD Sender: Remove packet 192645 [15:28:41]ProducePacketName [15:28:41]name=ofd_packets/00192645 [15:28:41]NVStorageDeleteData [15:28:41]Write to MH i2c: 01 00 00 DB 55 30 [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: 01 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: 01 07 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: 01 07 00 DB 55 00 00 00 00 00 D9 0C 1C [15:28:41]RasterBufferAndPrint [15:28:41]line [15:28:41]line [15:28:41]line [15:28:41]line [15:28:41]line [15:28:41]written 0, free lines is 3296 [15:28:41]MH_Cut [15:28:41]Write to MH i2c: D1 01 00 E2 55 01 09 [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: D1 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: D1 01 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: D1 01 00 E2 55 00 08 [15:28:41]Write to MH i2c: 01 00 00 E3 55 38 [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]OFD Sender: No OFD packet to send [15:28:42]*** Cut start [15:28:42]*** Partial cut [15:28:42]*** CUTSNS_PIN = 1 [15:28:42]*** CUTSNS_PIN = 0 [15:28:42]*** Brake cut motor [15:28:42]Read from MH i2c: 01 [15:28:42]MH_I2C_Read... [15:28:42]*** Stop cut motor [15:28:42]*** Cut end [15:28:42]Read from MH i2c: 01 07 00 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: 01 07 00 E3 55 00 00 00 00 00 FF 0F 4D [15:28:42]process_action close_receipt done [15:28:42]requested_data is exist [15:28:42]produce_requested_data [15:28:42]requested_item fm.sn is exist - process it [15:28:42]wFMCommunicate request_size=4 [15:28:42]MH_SAM_APDU [15:28:42]CAPDU: 80 11 00 00 [15:28:42]Write to MH i2c: E2 08 00 E4 55 80 11 00 00 00 00 00 00 B3 [15:28:42]Write i2c OK [15:28:42]MH_I2C_Read... [15:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:42]Read from MH i2c: E2 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: E2 17 00 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: E2 17 00 E4 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 06 [15:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:28:42]wFMCommunicate OK [15:28:42]requested_item fd.num is exist - process it [15:28:42]SAM_PROTO_GetFieldsCounters [15:28:42]wFMCommunicate request_size=4 [15:28:42]MH_SAM_APDU [15:28:42]CAPDU: 80 13 00 00 [15:28:42]Write to MH i2c: E2 08 00 E5 55 80 13 00 00 00 00 00 00 B6 [15:28:42]Write i2c OK [15:28:42]MH_I2C_Read... [15:28:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:42]Read from MH i2c: E2 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: E2 62 00 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: E2 62 00 E5 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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 85 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [15:28:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 85 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:42]wFMCommunicate OK [15:28:42]SAM_PROTO_GetFieldsCounters done [15:28:42]requested_item shift.num is exist - process it [15:28:42]requested_item shift.opened is exist - process it [15:28:42]req_shift_opened [15:28:42]FM_GetShiftState [15:28:42]SAM_PROTO_GetShiftState [15:28:42]wFMCommunicate request_size=4 [15:28:42]MH_SAM_APDU [15:28:42]CAPDU: 80 13 01 00 [15:28:42]Write to MH i2c: E2 08 00 E6 55 80 13 01 00 00 00 00 00 B8 [15:28:42]Write i2c OK [15:28:42]MH_I2C_Read... [15:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:43]Read from MH i2c: E2 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: E2 0E 00 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: E2 0E 00 E6 55 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 08 [15:28:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:28:43]wFMCommunicate OK [15:28:43]SAM_PROTO_GetShiftState done [15:28:43]FM_GetShiftState done [15:28:43]req_shift_opened done [15:28:43]requested_item shift.open_date is exist - process it [15:28:43]req_shift_open_date [15:28:43]req_shift_open_date done [15:28:43]produce_requested_data done [15:28:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192645,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:28:43]process_action_free close_receipt [15:28:43]json_value_free [15:28:43]json_value_free done [15:28:43]process_json_proto returns [15:28:43]Send response to host [15:28:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192645,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:28:43]free response buf [15:28:43]execute_script done [15:28:43]execute_script returns [15:28:43]free content buf [15:28:43]Sock 7.Close socket [15:28:43]Sock 7.Thread stoped [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:23]accept exits with 9 [15:31:23]New connection [15:31:23]New thread 3066563940 created [15:31:23]Thread 3066707300 joined [15:31:23]Waiting for new connection... [15:31:23] Sock 9.Parse request [15:31:23]Sock 9.Check first char [15:31:23]Sock 9.First char is OK [15:31:23]request: POST /json_proto HTTP/1.0 [15:31:23]Method: POST [15:31:23]URL: /json_proto [15:31:23]Method is POST - this is cgi request [15:31:23]url: /json_proto [15:31:23]query_string will be loaded in cgi processing [15:31:23]execute_cgi json_proto POST (null) [15:31:23]execute_cgi path=json_proto method=POST [15:31:23]POST find Content-Length [15:31:23]Host: 172.17.63.131:8080 [15:31:23]Content-Length: 779 [15:31:23]Content-Type: application/json [15:31:23] [15:31:23]POST finish read [15:31:23]Found Content-Length = 779 [15:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 22.420, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A61746", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:23]execute_script... [15:31:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 22.420, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A61746", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:23]POST & json_proto [15:31:23]process_json_proto [15:31:23]json parsed OK: [15:31:23]protocol is kg_v1.0 [15:31:23]action value=close_receipt [15:31:23]process_action close_receipt [15:31:23]cmd_close_receipt [15:31:23]MH_GetDate [15:31:23]Write to MH i2c: F0 00 00 E7 55 2B [15:31:23]Write i2c OK [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: F0 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: F0 09 00 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: F0 09 00 E7 55 00 51 AE 1F 67 22 05 6E 64 B2 [15:31:23]GetLastDocTimeStamp 1730129324 [15:31:23]current date 1730129489 [15:31:23]FM_GetShiftState [15:31:23]SAM_PROTO_GetShiftState [15:31:23]wFMCommunicate request_size=4 [15:31:23]MH_SAM_APDU [15:31:23]CAPDU: 80 13 01 00 [15:31:23]Write to MH i2c: E2 08 00 E8 55 80 13 01 00 00 00 00 00 BA [15:31:23]Write i2c OK [15:31:23]MH_I2C_Read... [15:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:23]Read from MH i2c: E2 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: E2 0E 00 [15:31:23]MH_I2C_Read... [15:31:23]Read from MH i2c: E2 0E 00 E8 55 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0A [15:31:23]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:31:23]wFMCommunicate OK [15:31:23]SAM_PROTO_GetShiftState done [15:31:23]FM_GetShiftState done [15:31:23]opened in 1730075620 [15:31:23]opened+sec_in_day 1730162020 [15:31:23]quantity*price = 0 [15:31:23]sum+1 = 1 [15:31:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 194 28.10.2024 15:31 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Партнер нефть 61746 ФМ: 0000000000871754 ФД: 192646 ФПД: 242645107183471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T153129&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192646&fm=242645107183471&tin=02508201610067®Number=0000000000091776&sum=0 [15:31:24]StoreToDocumentArchive [15:31:24]shift 543 fd 192646 [15:31:24]save to /storage/0543/doc_00192646 [15:31:24]save last doc name /storage/0543/doc_00192646 to /storage/kkm_last_doc_name [15:31:24]save OK [15:31:24]Clear old archive folders... [15:31:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:24]tlvbuf is 019EE910 [15:31:24]SAM_PROTO_ClearQueue [15:31:24]wFMCommunicate request_size=4 [15:31:24]MH_SAM_APDU [15:31:24]CAPDU: 80 09 00 00 [15:31:24]Write to MH i2c: E2 08 00 F5 55 80 09 00 00 00 00 00 00 BC [15:31:24]Write i2c OK [15:31:24]MH_I2C_Read... [15:31:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:24]Read from MH i2c: E2 [15:31:24]MH_I2C_Read... [15:31:24]Read from MH i2c: E2 03 00 [15:31:24]MH_I2C_Read... [15:31:24]Read from MH i2c: E2 03 00 F5 55 00 90 00 BE [15:31:24]RAPDU: 90 00 [15:31:24]wFMCommunicate OK [15:31:24]SAM_PROTO_ClearQueue done [15:31:24]KKMCreateOFDPacket [15:31:24]OFDProtocolAddRootSTLVToBuf [15:31:24]FM_MakeSignedData [15:31:24]FM_MakeSignedData [15:31:24]SAM_PROTO_SignData [15:31:24]wFMCommunicate request_size=4 [15:31:24]MH_SAM_APDU [15:31:24]CAPDU: 80 0D 01 02 [15:31:24]Write to MH i2c: E2 08 00 F6 55 80 0D 01 02 00 00 00 00 C4 [15:31:24]Write i2c OK [15:31:24]MH_I2C_Read... [15:31:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:24]Read from MH i2c: E2 [15:31:24]MH_I2C_Read... [15:31:24]Read from MH i2c: E2 03 00 [15:31:24]MH_I2C_Read... [15:31:24]Read from MH i2c: E2 03 00 F6 55 00 90 00 BF [15:31:24]RAPDU: 90 00 [15:31:24]wFMCommunicate OK [15:31:24]wFMCommunicate request_size=255 [15:31:24]MH_SAM_APDU [15:31: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 94 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 51 AE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 F0 02 00 35 04 06 00 DC [15:31:24]Write to MH i2c: E2 02 01 F7 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 51 AE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 F0 02 00 35 04 06 00 DC 00 00 7A [15:31:24]Write i2c OK [15:31:24]MH_I2C_Read... [15:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:25]Read from MH i2c: E2 [15:31:25]MH_I2C_Read... [15:31:25]Read from MH i2c: E2 03 00 [15:31:25]MH_I2C_Read... [15:31:25]Read from MH i2c: E2 03 00 F7 55 00 90 00 C0 [15:31:25]RAPDU: 90 00 [15:31:25]wFMCommunicate OK [15:31:25]wFMCommunicate request_size=10 [15:31:25]MH_SAM_APDU [15:31:25]CAPDU: 80 0D 02 02 05 AF 37 6B 8F 6F [15:31:25]Write to MH i2c: E2 0D 00 F8 55 80 0D 02 02 05 00 AF 37 6B 8F 6F 00 00 20 [15:31:25]Write i2c OK [15:31:25]MH_I2C_Read... [15:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:25]Read from MH i2c: E2 [15:31:25]MH_I2C_Read... [15:31:25]Read from MH i2c: E2 03 00 [15:31:25]MH_I2C_Read... [15:31:25]Read from MH i2c: E2 03 00 F8 55 00 90 00 C1 [15:31:25]RAPDU: 90 00 [15:31:25]wFMCommunicate OK [15:31:25]wFMCommunicate request_size=4 [15:31:25]MH_SAM_APDU [15:31:25]CAPDU: 80 0D 03 02 [15:31:25]Write to MH i2c: E2 08 00 F9 55 80 0D 03 02 00 00 00 00 C9 [15:31:25]Write i2c OK [15:31:25]MH_I2C_Read... [15:31:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:25]Read from MH i2c: E2 [15:31:25]MH_I2C_Read... [15:31:25]Read from MH i2c: E2 0B 00 [15:31:25]MH_I2C_Read... [15:31:25]Read from MH i2c: E2 0B 00 F9 55 00 3F F5 EA D7 39 75 AD 98 90 00 B2 [15:31:25]RAPDU: 3F F5 EA D7 39 75 AD 98 90 00 [15:31:25]wFMCommunicate OK [15:31:25]SAM_PROTO_SignData done [15:31:25]FM_MakeSignedData done [15:31:25]CreateOFDProtocolMessage [15:31:25]wFMCommunicate request_size=4 [15:31:25]MH_SAM_APDU [15:31:25]CAPDU: 80 11 00 00 [15:31:25]Write to MH i2c: E2 08 00 FA 55 80 11 00 00 00 00 00 00 C9 [15:31:25]Write i2c OK [15:31:25]MH_I2C_Read... [15:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:25]Read from MH i2c: E2 [15:31:25]MH_I2C_Read... [15:31:25]Read from MH i2c: E2 17 00 [15:31:25]MH_I2C_Read... [15:31:25]Read from MH i2c: E2 17 00 FA 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1C [15:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:31:25]wFMCommunicate OK [15:31:25]CreateOFDProtocolMessage done [15:31:25]OFDSenderStorePacket 192646 [15:31:25]StoreOFDPacket docnum=192646 [15:31:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7A E8 07 01 CF 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 51 AE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 F0 02 00 35 04 06 00 DC AF 37 6B 8F 6F 3F F5 EA D7 39 75 AD 98 [15:31:25]CheckFolder [15:31:25]dirname=/storage/ofd_packets [15:31:25]CheckFolder done [15:31:25]ProducePacketName [15:31:25]name=ofd_packets/00192646 [15:31:25]NVStorageSaveData ofd_packets/00192646 [15:31:25]File name is /storage/ofd_packets/00192646 [15:31:25]Write 301 bytes [15:31:25]NVStorageSaveData done [15:31:25]OFDSenderStorePacket done [15:31:25]KKMCreateOFDPacket done [15:31:25]NVStorageSaveData kkm_last_timestamp [15:31:25]File name is /storage/kkm_last_timestamp [15:31:25]Write 4 bytes [15:31:25]NVStorageSaveData done [15:31:25]ExternCall_PrintAddStr [15:31:25]wPrintStart [15:31:25]Write to MH i2c: 01 00 00 FB 55 50 [15:31:25]Write i2c OK [15:31:25]MH_I2C_Read... [15:31:25]Read from MH i2c: 01 [15:31:25]MH_I2C_Read... [15:31:25]Read from MH i2c: 01 07 00 [15:31:25]MH_I2C_Read... [15:31:25]Read from MH i2c: 01 07 00 FB 55 00 00 00 00 00 FF 0F 65 [15:31:25]RasterBufferAndPrint [15:31:25]line Счет N : (1)31972 [15:31:25]line ИНН: 02508201610067 [15:31:25]line Контрольно-Кассовый Чек [15:31:25]line ПРОДАЖА [15:31:25]line ТРК (МРК, ГНК) : 21 [15:31:25]line Товар: 2710124130 [15:31:25]line Аи-92-К-5 [15:31:25]line 22.420 * 0.00 [15:31:25]line = 0.00 [15:31:25]line НДС 12% НСП 1% [15:31:25]line > о реализуемом товаре [15:31:25]line ИТОГО: 0.00 [15:31:25]line НСП 1% : 0.00 [15:31:25]line НДС 12% : 0.00 [15:31:25]line Наличными: 0.00 [15:31:25]line Безнал.: 0.00 [15:31:25]line Место: АЗС № 170 "Партнер Нефть" [15:31:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:31:25]line СНО: Общий режим [15:31:25]line Чек 194 28.10.2024 15:31 [15:31:25]line Смена: 543 ФФД: 1.0 [15:31:25]line ЗНМ: 0300000110 [15:31:25]line РНМ: 0000000000091776 [15:31:25]line Версия ККМ: 001 [15:31:25]line Талоны: Партнер нефть [15:31:25]line 61746 [15:31:25]line ФМ: 0000000000871754 [15:31:25]line ФД: 192646 [15:31:25]line ФПД: 242645107183471 [15:31:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T153129&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192646&fm=242645107183471&tin=02508201610067®Number=0000000000091776&sum=0 [15:31:25]written 0, free lines is 4095 [15:31:25]OFD Sender: Processing packet 192646 [packets to send 75, broken 74] [15:31:25]ProducePacketName [15:31:25]name=ofd_packets/00192646 [15:31:25]OFD Sender: To server: pG, [15:31:25]CommunicateWithHost lk.salyk.kg:30040 [15:31:25]ConnectInit lk.salyk.kg [15:31:25]Connected sock=10 [15:31:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7A E8 07 01 CF 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 57 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 51 AE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 F0 02 00 35 04 06 00 DC AF 37 6B 8F 6F 3F F5 EA D7 39 75 AD 98 [15:31:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 88 B6 47 00 F5 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 F0 02 00 F4 03 04 00 15 53 1F 67 B6 04 01 00 00 CA 72 A9 98 FE 58 34 8C [15:31:26]CommunicateWithHost err = 0 [15:31:26]CheckOFDResponse [15:31:26]1017 (14) - 77093643461234 [15:31:26]1041 (16) - 0000000000871754 [15:31:26]1040 (4) - 192646 [15:31:26]1012 (4) - 28.10.2024 09:02 [15:31:26]1206 (1) - 0 [15:31:26]OFD Sender: Remove packet 192646 [15:31:26]ProducePacketName [15:31:26]name=ofd_packets/00192646 [15:31:26]NVStorageDeleteData [15:31:26]Write to MH i2c: 01 00 00 25 56 7B [15:31:26]Write i2c OK [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: 01 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: 01 07 00 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: 01 07 00 25 56 00 00 00 00 00 DD 0C 6B [15:31:26]RasterBufferAndPrint [15:31:26]line [15:31:26]line [15:31:26]line [15:31:26]line [15:31:26]line [15:31:26]written 0, free lines is 3296 [15:31:26]MH_Cut [15:31:26]Write to MH i2c: D1 01 00 2C 56 01 54 [15:31:26]Write i2c OK [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: D1 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: D1 01 00 [15:31:26]MH_I2C_Read... [15:31:26]Read from MH i2c: D1 01 00 2C 56 00 53 [15:31:26]Write to MH i2c: 01 00 00 2D 56 83 [15:31:26]Write i2c OK [15:31:26]MH_I2C_Read... [15:31:26]OFD Sender: No OFD packet to send [15:31:26]*** Cut start [15:31:26]*** Partial cut [15:31:26]*** CUTSNS_PIN = 1 [15:31:27]*** CUTSNS_PIN = 0 [15:31:27]*** Brake cut motor [15:31:27]Read from MH i2c: 01 [15:31:27]MH_I2C_Read... [15:31:27]*** Stop cut motor [15:31:27]*** Cut end [15:31:27]Read from MH i2c: 01 07 00 [15:31:27]MH_I2C_Read... [15:31:27]Read from MH i2c: 01 07 00 2D 56 00 00 00 00 00 FF 0F 98 [15:31:27]process_action close_receipt done [15:31:27]requested_data is exist [15:31:27]produce_requested_data [15:31:27]requested_item fm.sn is exist - process it [15:31:27]wFMCommunicate request_size=4 [15:31:27]MH_SAM_APDU [15:31:27]CAPDU: 80 11 00 00 [15:31:27]Write to MH i2c: E2 08 00 2E 56 80 11 00 00 00 00 00 00 FE [15:31:27]Write i2c OK [15:31:27]MH_I2C_Read... [15:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:27]Read from MH i2c: E2 [15:31:27]MH_I2C_Read... [15:31:27]Read from MH i2c: E2 17 00 [15:31:27]MH_I2C_Read... [15:31:27]Read from MH i2c: E2 17 00 2E 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 51 [15:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:31:27]wFMCommunicate OK [15:31:27]requested_item fd.num is exist - process it [15:31:27]SAM_PROTO_GetFieldsCounters [15:31:27]wFMCommunicate request_size=4 [15:31:27]MH_SAM_APDU [15:31:27]CAPDU: 80 13 00 00 [15:31:27]Write to MH i2c: E2 08 00 2F 56 80 13 00 00 00 00 00 00 01 [15:31:27]Write i2c OK [15:31:27]MH_I2C_Read... [15:31:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:27]Read from MH i2c: E2 [15:31:27]MH_I2C_Read... [15:31:27]Read from MH i2c: E2 62 00 [15:31:27]MH_I2C_Read... [15:31:27]Read from MH i2c: E2 62 00 2F 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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 86 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [15:31:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 86 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:27]wFMCommunicate OK [15:31:27]SAM_PROTO_GetFieldsCounters done [15:31:27]requested_item shift.num is exist - process it [15:31:27]requested_item shift.opened is exist - process it [15:31:27]req_shift_opened [15:31:27]FM_GetShiftState [15:31:27]SAM_PROTO_GetShiftState [15:31:27]wFMCommunicate request_size=4 [15:31:27]MH_SAM_APDU [15:31:27]CAPDU: 80 13 01 00 [15:31:27]Write to MH i2c: E2 08 00 30 56 80 13 01 00 00 00 00 00 03 [15:31:27]Write i2c OK [15:31:27]MH_I2C_Read... [15:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:27]Read from MH i2c: E2 [15:31:27]MH_I2C_Read... [15:31:27]Read from MH i2c: E2 0E 00 [15:31:27]MH_I2C_Read... [15:31:27]Read from MH i2c: E2 0E 00 30 56 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 53 [15:31:27]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:31:27]wFMCommunicate OK [15:31:27]SAM_PROTO_GetShiftState done [15:31:27]FM_GetShiftState done [15:31:27]req_shift_opened done [15:31:27]requested_item shift.open_date is exist - process it [15:31:27]req_shift_open_date [15:31:27]req_shift_open_date done [15:31:27]produce_requested_data done [15:31:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192646,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:31:27]process_action_free close_receipt [15:31:27]json_value_free [15:31:27]json_value_free done [15:31:27]process_json_proto returns [15:31:27]Send response to host [15:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192646,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:31:27]free response buf [15:31:27]execute_script done [15:31:27]execute_script returns [15:31:27]free content buf [15:31:27]Sock 9.Close socket [15:31:27]Sock 9.Thread stoped [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:18]accept exits with 7 [15:32:18]New connection [15:32:18]New thread 3066707300 created [15:32:18]Thread 3066563940 joined [15:32:18]Waiting for new connection... [15:32:18] Sock 7.Parse request [15:32:18]Sock 7.Check first char [15:32:18]Sock 7.First char is OK [15:32:18]request: POST /json_proto HTTP/1.0 [15:32:18]Method: POST [15:32:18]URL: /json_proto [15:32:18]Method is POST - this is cgi request [15:32:18]url: /json_proto [15:32:18]query_string will be loaded in cgi processing [15:32:18]execute_cgi json_proto POST (null) [15:32:18]execute_cgi path=json_proto method=POST [15:32:18]POST find Content-Length [15:32:18]Host: 172.17.63.131:8080 [15:32:18]Content-Length: 681 [15:32:18]Content-Type: application/json [15:32:18] [15:32:18]POST finish read [15:32:18]Found Content-Length = 681 [15:32:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:18]execute_script... [15:32:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:18]POST & json_proto [15:32:18]process_json_proto [15:32:18]json parsed OK: [15:32:18]protocol is kg_v1.0 [15:32:18]action value=close_receipt [15:32:18]process_action close_receipt [15:32:18]cmd_close_receipt [15:32:18]MH_GetDate [15:32:18]Write to MH i2c: F0 00 00 31 56 76 [15:32:18]Write i2c OK [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: F0 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: F0 09 00 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: F0 09 00 31 56 00 88 AE 1F 67 22 05 6E 64 34 [15:32:18]GetLastDocTimeStamp 1730129489 [15:32:18]current date 1730129544 [15:32:18]FM_GetShiftState [15:32:18]SAM_PROTO_GetShiftState [15:32:18]wFMCommunicate request_size=4 [15:32:18]MH_SAM_APDU [15:32:18]CAPDU: 80 13 01 00 [15:32:18]Write to MH i2c: E2 08 00 32 56 80 13 01 00 00 00 00 00 05 [15:32:18]Write i2c OK [15:32:18]MH_I2C_Read... [15:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:18]Read from MH i2c: E2 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: E2 0E 00 [15:32:18]MH_I2C_Read... [15:32:18]Read from MH i2c: E2 0E 00 32 56 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 55 [15:32:18]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:32:18]wFMCommunicate OK [15:32:18]SAM_PROTO_GetShiftState done [15:32:18]FM_GetShiftState done [15:32:18]opened in 1730075620 [15:32:18]opened+sec_in_day 1730162020 [15:32:18]quantity*price = 100015 [15:32:18]sum+1 = 100017 [15:32:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 195 28.10.2024 15:32 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192647 ФПД: 140160739084594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T153224&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192647&fm=140160739084594&tin=02508201610067®Number=0000000000091776&sum=100000 [15:32:19]StoreToDocumentArchive [15:32:19]shift 543 fd 192647 [15:32:19]save to /storage/0543/doc_00192647 [15:32:19]save last doc name /storage/0543/doc_00192647 to /storage/kkm_last_doc_name [15:32:19]save OK [15:32:19]Clear old archive folders... [15:32:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:19]tlvbuf is 01AD87C0 [15:32:19]SAM_PROTO_ClearQueue [15:32:19]wFMCommunicate request_size=4 [15:32:19]MH_SAM_APDU [15:32:19]CAPDU: 80 09 00 00 [15:32:19]Write to MH i2c: E2 08 00 3F 56 80 09 00 00 00 00 00 00 07 [15:32:19]Write i2c OK [15:32:19]MH_I2C_Read... [15:32:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:19]Read from MH i2c: E2 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: E2 03 00 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: E2 03 00 3F 56 00 90 00 09 [15:32:19]RAPDU: 90 00 [15:32:19]wFMCommunicate OK [15:32:19]SAM_PROTO_ClearQueue done [15:32:19]KKMCreateOFDPacket [15:32:19]OFDProtocolAddRootSTLVToBuf [15:32:19]FM_MakeSignedData [15:32:19]FM_MakeSignedData [15:32:19]SAM_PROTO_SignData [15:32:19]wFMCommunicate request_size=4 [15:32:19]MH_SAM_APDU [15:32:19]CAPDU: 80 0D 01 02 [15:32:19]Write to MH i2c: E2 08 00 40 56 80 0D 01 02 00 00 00 00 0F [15:32:19]Write i2c OK [15:32:19]MH_I2C_Read... [15:32:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:19]Read from MH i2c: E2 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: E2 03 00 [15:32:19]MH_I2C_Read... [15:32:19]Read from MH i2c: E2 03 00 40 56 00 90 00 0A [15:32:19]RAPDU: 90 00 [15:32:19]wFMCommunicate OK [15:32:19]wFMCommunicate request_size=255 [15:32:19]MH_SAM_APDU [15:32:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 88 AE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 F0 02 00 35 04 06 00 7F [15:32:19]Write to MH i2c: E2 02 01 41 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 88 AE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 F0 02 00 35 04 06 00 7F 00 00 35 [15:32:20]Write i2c OK [15:32:20]MH_I2C_Read... [15:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:20]Read from MH i2c: E2 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: E2 03 00 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: E2 03 00 41 56 00 90 00 0B [15:32:20]RAPDU: 90 00 [15:32:20]wFMCommunicate OK [15:32:20]wFMCommunicate request_size=10 [15:32:20]MH_SAM_APDU [15:32:20]CAPDU: 80 0D 02 02 05 79 B7 10 89 32 [15:32:20]Write to MH i2c: E2 0D 00 42 56 80 0D 02 02 05 00 79 B7 10 89 32 00 00 17 [15:32:20]Write i2c OK [15:32:20]MH_I2C_Read... [15:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:20]Read from MH i2c: E2 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: E2 03 00 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: E2 03 00 42 56 00 90 00 0C [15:32:20]RAPDU: 90 00 [15:32:20]wFMCommunicate OK [15:32:20]wFMCommunicate request_size=4 [15:32:20]MH_SAM_APDU [15:32:20]CAPDU: 80 0D 03 02 [15:32:20]Write to MH i2c: E2 08 00 43 56 80 0D 03 02 00 00 00 00 14 [15:32:20]Write i2c OK [15:32:20]MH_I2C_Read... [15:32:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:20]Read from MH i2c: E2 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: E2 0B 00 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: E2 0B 00 43 56 00 EE 82 A9 E7 4E C1 0E 19 90 00 4B [15:32:20]RAPDU: EE 82 A9 E7 4E C1 0E 19 90 00 [15:32:20]wFMCommunicate OK [15:32:20]SAM_PROTO_SignData done [15:32:20]FM_MakeSignedData done [15:32:20]CreateOFDProtocolMessage [15:32:20]wFMCommunicate request_size=4 [15:32:20]MH_SAM_APDU [15:32:20]CAPDU: 80 11 00 00 [15:32:20]Write to MH i2c: E2 08 00 44 56 80 11 00 00 00 00 00 00 14 [15:32:20]Write i2c OK [15:32:20]MH_I2C_Read... [15:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:20]Read from MH i2c: E2 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: E2 17 00 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: E2 17 00 44 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 67 [15:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:32:20]wFMCommunicate OK [15:32:20]CreateOFDProtocolMessage done [15:32:20]OFDSenderStorePacket 192647 [15:32:20]StoreOFDPacket docnum=192647 [15:32:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C2 3C 07 01 8F 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 88 AE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 F0 02 00 35 04 06 00 7F 79 B7 10 89 32 EE 82 A9 E7 4E C1 0E 19 [15:32:20]CheckFolder [15:32:20]dirname=/storage/ofd_packets [15:32:20]CheckFolder done [15:32:20]ProducePacketName [15:32:20]name=ofd_packets/00192647 [15:32:20]NVStorageSaveData ofd_packets/00192647 [15:32:20]File name is /storage/ofd_packets/00192647 [15:32:20]Write 301 bytes [15:32:20]NVStorageSaveData done [15:32:20]OFDSenderStorePacket done [15:32:20]KKMCreateOFDPacket done [15:32:20]NVStorageSaveData kkm_last_timestamp [15:32:20]File name is /storage/kkm_last_timestamp [15:32:20]Write 4 bytes [15:32:20]NVStorageSaveData done [15:32:20]ExternCall_PrintAddStr [15:32:20]wPrintStart [15:32:20]Write to MH i2c: 01 00 00 45 56 9B [15:32:20]Write i2c OK [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: 01 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: 01 07 00 [15:32:20]MH_I2C_Read... [15:32:20]Read from MH i2c: 01 07 00 45 56 00 00 00 00 00 FF 0F B0 [15:32:20]RasterBufferAndPrint [15:32:20]line Счет N : (1)31973 [15:32:20]line ИНН: 02508201610067 [15:32:20]line Контрольно-Кассовый Чек [15:32:20]line ПРОДАЖА [15:32:20]line ТРК (МРК, ГНК) : 12 [15:32:20]line Товар: 2710124130 [15:32:20]line Аи-92-К-5 [15:32:20]line 14.950 * 66.90 [15:32:20]line = 1000.16 [15:32:20]line НДС 12% НСП 1% [15:32:20]line > о реализуемом товаре [15:32:20]line ОКРУГЛЕНИЕ: -0.16 [15:32:20]line ИТОГО: 1000.00 [15:32:20]line Внесено: 1000.00 [15:32:20]line СДАЧА: 0.00 [15:32:20]line НСП 1% : 8.85 [15:32:20]line НДС 12% : 106.21 [15:32:20]line Наличными: 1000.00 [15:32:20]line Безнал.: 0.00 [15:32:20]line Место: АЗС № 170 "Партнер Нефть" [15:32:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:32:20]line СНО: Общий режим [15:32:20]line Чек 195 28.10.2024 15:32 [15:32:20]line Смена: 543 ФФД: 1.0 [15:32:20]line ЗНМ: 0300000110 [15:32:20]line РНМ: 0000000000091776 [15:32:20]line Версия ККМ: 001 [15:32:20]line ФМ: 0000000000871754 [15:32:20]line ФД: 192647 [15:32:20]line ФПД: 140160739084594 [15:32:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T153224&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192647&fm=140160739084594&tin=02508201610067®Number=0000000000091776&sum=100000 [15:32:20]OFD Sender: Processing packet 192647 [packets to send 75, broken 74] [15:32:20]ProducePacketName [15:32:20]name=ofd_packets/00192647 [15:32:20]OFD Sender: To server: pG, [15:32:20]CommunicateWithHost lk.salyk.kg:30040 [15:32:20]ConnectInit lk.salyk.kg [15:32:20]written 0, free lines is 4095 [15:32:20]Connected sock=10 [15:32:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C2 3C 07 01 8F 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 88 AE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 F0 02 00 35 04 06 00 7F 79 B7 10 89 32 EE 82 A9 E7 4E C1 0E 19 [15:32:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CA 89 47 00 E3 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 F0 02 00 F4 03 04 00 4C 53 1F 67 B6 04 01 00 00 A9 63 60 8D 13 2A A6 51 [15:32:21]CommunicateWithHost err = 0 [15:32:21]CheckOFDResponse [15:32:21]1017 (14) - 77093643461234 [15:32:21]1041 (16) - 0000000000871754 [15:32:21]1040 (4) - 192647 [15:32:21]1012 (4) - 28.10.2024 09:03 [15:32:21]1206 (1) - 0 [15:32:21]OFD Sender: Remove packet 192647 [15:32:21]ProducePacketName [15:32:21]name=ofd_packets/00192647 [15:32:21]NVStorageDeleteData [15:32:21]Write to MH i2c: 01 00 00 70 56 C6 [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: 01 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: 01 07 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: 01 07 00 70 56 00 00 00 00 00 C7 0C A0 [15:32:21]RasterBufferAndPrint [15:32:21]line [15:32:21]line [15:32:21]line [15:32:21]line [15:32:21]line [15:32:21]written 0, free lines is 3277 [15:32:21]MH_Cut [15:32:21]Write to MH i2c: D1 01 00 77 56 01 9F [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: D1 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: D1 01 00 [15:32:21]MH_I2C_Read... [15:32:21]Read from MH i2c: D1 01 00 77 56 00 9E [15:32:21]Write to MH i2c: 01 00 00 78 56 CE [15:32:21]Write i2c OK [15:32:21]MH_I2C_Read... [15:32:21]OFD Sender: No OFD packet to send [15:32:22]*** Cut start [15:32:22]*** Partial cut [15:32:22]*** CUTSNS_PIN = 1 [15:32:22]*** CUTSNS_PIN = 0 [15:32:22]*** Brake cut motor [15:32:22]Read from MH i2c: 01 [15:32:22]MH_I2C_Read... [15:32:22]*** Stop cut motor [15:32:22]*** Cut end [15:32:22]Read from MH i2c: 01 07 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: 01 07 00 78 56 00 00 00 00 00 FF 0F E3 [15:32:22]process_action close_receipt done [15:32:22]requested_data is exist [15:32:22]produce_requested_data [15:32:22]requested_item fm.sn is exist - process it [15:32:22]wFMCommunicate request_size=4 [15:32:22]MH_SAM_APDU [15:32:22]CAPDU: 80 11 00 00 [15:32:22]Write to MH i2c: E2 08 00 79 56 80 11 00 00 00 00 00 00 49 [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 17 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 17 00 79 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9C [15:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:32:22]wFMCommunicate OK [15:32:22]requested_item fd.num is exist - process it [15:32:22]SAM_PROTO_GetFieldsCounters [15:32:22]wFMCommunicate request_size=4 [15:32:22]MH_SAM_APDU [15:32:22]CAPDU: 80 13 00 00 [15:32:22]Write to MH i2c: E2 08 00 7A 56 80 13 00 00 00 00 00 00 4C [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 62 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 62 00 7A 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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 87 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [15:32:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 87 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:22]wFMCommunicate OK [15:32:22]SAM_PROTO_GetFieldsCounters done [15:32:22]requested_item shift.num is exist - process it [15:32:22]requested_item shift.opened is exist - process it [15:32:22]req_shift_opened [15:32:22]FM_GetShiftState [15:32:22]SAM_PROTO_GetShiftState [15:32:22]wFMCommunicate request_size=4 [15:32:22]MH_SAM_APDU [15:32:22]CAPDU: 80 13 01 00 [15:32:22]Write to MH i2c: E2 08 00 7B 56 80 13 01 00 00 00 00 00 4E [15:32:22]Write i2c OK [15:32:22]MH_I2C_Read... [15:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:22]Read from MH i2c: E2 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 0E 00 [15:32:22]MH_I2C_Read... [15:32:22]Read from MH i2c: E2 0E 00 7B 56 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 9E [15:32:22]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:32:22]wFMCommunicate OK [15:32:22]SAM_PROTO_GetShiftState done [15:32:22]FM_GetShiftState done [15:32:22]req_shift_opened done [15:32:22]requested_item shift.open_date is exist - process it [15:32:22]req_shift_open_date [15:32:22]req_shift_open_date done [15:32:22]produce_requested_data done [15:32:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192647,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:32:22]process_action_free close_receipt [15:32:22]json_value_free [15:32:22]json_value_free done [15:32:22]process_json_proto returns [15:32:22]Send response to host [15:32:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192647,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:32:22]free response buf [15:32:22]execute_script done [15:32:22]execute_script returns [15:32:22]free content buf [15:32:22]Sock 7.Close socket [15:32:22]Sock 7.Thread stoped [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]accept exits with 9 [15:33:11]New connection [15:33:11]New thread 3066563940 created [15:33:11]Thread 3066707300 joined [15:33:11]Waiting for new connection... [15:33:11] Sock 9.Parse request [15:33:11]Sock 9.Check first char [15:33:11]Sock 9.First char is OK [15:33:11]request: POST /json_proto HTTP/1.0 [15:33:11]Method: POST [15:33:11]URL: /json_proto [15:33:11]Method is POST - this is cgi request [15:33:11]url: /json_proto [15:33:11]query_string will be loaded in cgi processing [15:33:11]execute_cgi json_proto POST (null) [15:33:11]execute_cgi path=json_proto method=POST [15:33:11]POST find Content-Length [15:33:11]Host: 172.17.63.131:8080 [15:33:11]Content-Length: 677 [15:33:11]Content-Type: application/json [15:33:11] [15:33:11]POST finish read [15:33:11]Found Content-Length = 677 [15:33:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:11]execute_script... [15:33:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:11]POST & json_proto [15:33:11]process_json_proto [15:33:11]json parsed OK: [15:33:11]protocol is kg_v1.0 [15:33:11]action value=close_receipt [15:33:11]process_action close_receipt [15:33:11]cmd_close_receipt [15:33:11]MH_GetDate [15:33:11]Write to MH i2c: F0 00 00 7C 56 C1 [15:33:11]Write i2c OK [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: F0 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: F0 09 00 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: F0 09 00 7C 56 00 BD AE 1F 67 22 05 6E 64 B4 [15:33:11]GetLastDocTimeStamp 1730129544 [15:33:11]current date 1730129597 [15:33:11]FM_GetShiftState [15:33:11]SAM_PROTO_GetShiftState [15:33:11]wFMCommunicate request_size=4 [15:33:11]MH_SAM_APDU [15:33:11]CAPDU: 80 13 01 00 [15:33:11]Write to MH i2c: E2 08 00 7D 56 80 13 01 00 00 00 00 00 50 [15:33:11]Write i2c OK [15:33:11]MH_I2C_Read... [15:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:11]Read from MH i2c: E2 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 0E 00 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 0E 00 7D 56 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A0 [15:33:11]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:33:11]wFMCommunicate OK [15:33:11]SAM_PROTO_GetShiftState done [15:33:11]FM_GetShiftState done [15:33:11]opened in 1730075620 [15:33:11]opened+sec_in_day 1730162020 [15:33:11]quantity*price = 90047 [15:33:11]sum+1 = 90048 [15:33:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 196 28.10.2024 15:33 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192648 ФПД: 111572325516855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T153317&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192648&fm=111572325516855&tin=02508201610067®Number=0000000000091776&sum=90000 [15:33:12]StoreToDocumentArchive [15:33:12]shift 543 fd 192648 [15:33:12]save to /storage/0543/doc_00192648 [15:33:12]save last doc name /storage/0543/doc_00192648 to /storage/kkm_last_doc_name [15:33:12]save OK [15:33:12]Clear old archive folders... [15:33:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:12]tlvbuf is 019C6160 [15:33:12]SAM_PROTO_ClearQueue [15:33:12]wFMCommunicate request_size=4 [15:33:12]MH_SAM_APDU [15:33:12]CAPDU: 80 09 00 00 [15:33:12]Write to MH i2c: E2 08 00 8A 56 80 09 00 00 00 00 00 00 52 [15:33:12]Write i2c OK [15:33:12]MH_I2C_Read... [15:33:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:12]Read from MH i2c: E2 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: E2 03 00 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: E2 03 00 8A 56 00 90 00 54 [15:33:12]RAPDU: 90 00 [15:33:12]wFMCommunicate OK [15:33:12]SAM_PROTO_ClearQueue done [15:33:12]KKMCreateOFDPacket [15:33:12]OFDProtocolAddRootSTLVToBuf [15:33:12]FM_MakeSignedData [15:33:12]FM_MakeSignedData [15:33:12]SAM_PROTO_SignData [15:33:12]wFMCommunicate request_size=4 [15:33:12]MH_SAM_APDU [15:33:12]CAPDU: 80 0D 01 02 [15:33:12]Write to MH i2c: E2 08 00 8B 56 80 0D 01 02 00 00 00 00 5A [15:33:12]Write i2c OK [15:33:12]MH_I2C_Read... [15:33:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:12]Read from MH i2c: E2 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: E2 03 00 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: E2 03 00 8B 56 00 90 00 55 [15:33:12]RAPDU: 90 00 [15:33:12]wFMCommunicate OK [15:33:12]wFMCommunicate request_size=255 [15:33:12]MH_SAM_APDU [15:33:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 BD AE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 F0 02 00 35 04 06 00 65 [15:33:12]Write to MH i2c: E2 02 01 8C 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 BD AE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 F0 02 00 35 04 06 00 65 00 00 C0 [15:33:12]Write i2c OK [15:33:12]MH_I2C_Read... [15:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:12]Read from MH i2c: E2 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: E2 03 00 [15:33:12]MH_I2C_Read... [15:33:12]Read from MH i2c: E2 03 00 8C 56 00 90 00 56 [15:33:12]RAPDU: 90 00 [15:33:12]wFMCommunicate OK [15:33:12]wFMCommunicate request_size=10 [15:33:12]MH_SAM_APDU [15:33:12]CAPDU: 80 0D 02 02 05 79 74 D4 46 37 [15:33:12]Write to MH i2c: E2 0D 00 8D 56 80 0D 02 02 05 00 79 74 D4 46 37 00 00 A5 [15:33:12]Write i2c OK [15:33:12]MH_I2C_Read... [15:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 03 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 03 00 8D 56 00 90 00 57 [15:33:13]RAPDU: 90 00 [15:33:13]wFMCommunicate OK [15:33:13]wFMCommunicate request_size=4 [15:33:13]MH_SAM_APDU [15:33:13]CAPDU: 80 0D 03 02 [15:33:13]Write to MH i2c: E2 08 00 8E 56 80 0D 03 02 00 00 00 00 5F [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 0B 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 0B 00 8E 56 00 16 05 9E D2 F6 D5 9A 6C 90 00 BC [15:33:13]RAPDU: 16 05 9E D2 F6 D5 9A 6C 90 00 [15:33:13]wFMCommunicate OK [15:33:13]SAM_PROTO_SignData done [15:33:13]FM_MakeSignedData done [15:33:13]CreateOFDProtocolMessage [15:33:13]wFMCommunicate request_size=4 [15:33:13]MH_SAM_APDU [15:33:13]CAPDU: 80 11 00 00 [15:33:13]Write to MH i2c: E2 08 00 8F 56 80 11 00 00 00 00 00 00 5F [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 17 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 17 00 8F 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B2 [15:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:33:13]wFMCommunicate OK [15:33:13]CreateOFDProtocolMessage done [15:33:13]OFDSenderStorePacket 192648 [15:33:13]StoreOFDPacket docnum=192648 [15:33:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 16 D1 07 01 9B 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 BD AE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 F0 02 00 35 04 06 00 65 79 74 D4 46 37 16 05 9E D2 F6 D5 9A 6C [15:33:13]CheckFolder [15:33:13]dirname=/storage/ofd_packets [15:33:13]CheckFolder done [15:33:13]ProducePacketName [15:33:13]name=ofd_packets/00192648 [15:33:13]NVStorageSaveData ofd_packets/00192648 [15:33:13]File name is /storage/ofd_packets/00192648 [15:33:13]Write 301 bytes [15:33:13]NVStorageSaveData done [15:33:13]OFDSenderStorePacket done [15:33:13]KKMCreateOFDPacket done [15:33:13]NVStorageSaveData kkm_last_timestamp [15:33:13]File name is /storage/kkm_last_timestamp [15:33:13]Write 4 bytes [15:33:13]NVStorageSaveData done [15:33:13]ExternCall_PrintAddStr [15:33:13]wPrintStart [15:33:13]Write to MH i2c: 01 00 00 90 56 E6 [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: 01 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: 01 07 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: 01 07 00 90 56 00 00 00 00 00 FF 0F FB [15:33:13]RasterBufferAndPrint [15:33:13]line Счет N : (1)31974 [15:33:13]line ИНН: 02508201610067 [15:33:13]line Контрольно-Кассовый Чек [15:33:13]line ПРОДАЖА [15:33:13]line ТРК (МРК, ГНК) : 21 [15:33:13]line Товар: 2710124130 [15:33:13]line Аи-92-К-5 [15:33:13]line 13.460 * 66.90 [15:33:13]line = 900.47 [15:33:13]line НДС 12% НСП 1% [15:33:13]line > о реализуемом товаре [15:33:13]line ОКРУГЛЕНИЕ: -0.47 [15:33:13]line ИТОГО: 900.00 [15:33:13]line Внесено: 900.00 [15:33:13]line СДАЧА: 0.00 [15:33:13]line НСП 1% : 7.97 [15:33:13]line НДС 12% : 95.62 [15:33:13]line Наличными: 900.00 [15:33:13]line Безнал.: 0.00 [15:33:13]line Место: АЗС № 170 "Партнер Нефть" [15:33:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:33:13]line СНО: Общий режим [15:33:13]line Чек 196 28.10.2024 15:33 [15:33:13]line Смена: 543 ФФД: 1.0 [15:33:13]line ЗНМ: 0300000110 [15:33:13]line РНМ: 0000000000091776 [15:33:13]line Версия ККМ: 001 [15:33:13]line ФМ: 0000000000871754 [15:33:13]line ФД: 192648 [15:33:13]line ФПД: 111572325516855 [15:33:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T153317&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192648&fm=111572325516855&tin=02508201610067®Number=0000000000091776&sum=90000 [15:33:13]OFD Sender: Processing packet 192648 [packets to send 75, broken 74] [15:33:13]ProducePacketName [15:33:13]name=ofd_packets/00192648 [15:33:13]OFD Sender: To server: pG, [15:33:13]CommunicateWithHost lk.salyk.kg:30040 [15:33:13]ConnectInit lk.salyk.kg [15:33:13]written 0, free lines is 4095 [15:33:13]Connected sock=10 [15:33:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 16 D1 07 01 9B 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 BD AE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 F0 02 00 35 04 06 00 65 79 74 D4 46 37 16 05 9E D2 F6 D5 9A 6C [15:33:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C5 DF 47 00 8A BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 F0 02 00 F4 03 04 00 81 53 1F 67 B6 04 01 00 00 2C 49 8C 5A C4 D7 64 D8 [15:33:13]CommunicateWithHost err = 0 [15:33:13]CheckOFDResponse [15:33:13]1017 (14) - 77093643461234 [15:33:13]1041 (16) - 0000000000871754 [15:33:13]1040 (4) - 192648 [15:33:13]1012 (4) - 28.10.2024 09:04 [15:33:13]1206 (1) - 0 [15:33:13]OFD Sender: Remove packet 192648 [15:33:13]ProducePacketName [15:33:13]name=ofd_packets/00192648 [15:33:13]NVStorageDeleteData [15:33:13]Write to MH i2c: 01 00 00 BB 56 11 [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: 01 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: 01 07 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: 01 07 00 BB 56 00 00 00 00 00 C2 0C E6 [15:33:13]RasterBufferAndPrint [15:33:13]line [15:33:13]line [15:33:13]line [15:33:13]line [15:33:13]line [15:33:13]written 0, free lines is 3271 [15:33:13]MH_Cut [15:33:13]Write to MH i2c: D1 01 00 C2 56 01 EA [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: D1 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: D1 01 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: D1 01 00 C2 56 00 E9 [15:33:13]Write to MH i2c: 01 00 00 C3 56 19 [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:14]OFD Sender: No OFD packet to send [15:33:14]*** Cut start [15:33:14]*** Partial cut [15:33:14]*** CUTSNS_PIN = 1 [15:33:14]*** CUTSNS_PIN = 0 [15:33:15]*** Brake cut motor [15:33:15]Read from MH i2c: 01 [15:33:15]MH_I2C_Read... [15:33:15]*** Stop cut motor [15:33:15]*** Cut end [15:33:15]Read from MH i2c: 01 07 00 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: 01 07 00 C3 56 00 00 00 00 00 FF 0F 2E [15:33:15]process_action close_receipt done [15:33:15]requested_data is exist [15:33:15]produce_requested_data [15:33:15]requested_item fm.sn is exist - process it [15:33:15]wFMCommunicate request_size=4 [15:33:15]MH_SAM_APDU [15:33:15]CAPDU: 80 11 00 00 [15:33:15]Write to MH i2c: E2 08 00 C4 56 80 11 00 00 00 00 00 00 94 [15:33:15]Write i2c OK [15:33:15]MH_I2C_Read... [15:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:15]Read from MH i2c: E2 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 17 00 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 17 00 C4 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E7 [15:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:33:15]wFMCommunicate OK [15:33:15]requested_item fd.num is exist - process it [15:33:15]SAM_PROTO_GetFieldsCounters [15:33:15]wFMCommunicate request_size=4 [15:33:15]MH_SAM_APDU [15:33:15]CAPDU: 80 13 00 00 [15:33:15]Write to MH i2c: E2 08 00 C5 56 80 13 00 00 00 00 00 00 97 [15:33:15]Write i2c OK [15:33:15]MH_I2C_Read... [15:33:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:15]Read from MH i2c: E2 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 62 00 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 62 00 C5 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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 88 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [15:33:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 88 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:15]wFMCommunicate OK [15:33:15]SAM_PROTO_GetFieldsCounters done [15:33:15]requested_item shift.num is exist - process it [15:33:15]requested_item shift.opened is exist - process it [15:33:15]req_shift_opened [15:33:15]FM_GetShiftState [15:33:15]SAM_PROTO_GetShiftState [15:33:15]wFMCommunicate request_size=4 [15:33:15]MH_SAM_APDU [15:33:15]CAPDU: 80 13 01 00 [15:33:15]Write to MH i2c: E2 08 00 C6 56 80 13 01 00 00 00 00 00 99 [15:33:15]Write i2c OK [15:33:15]MH_I2C_Read... [15:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:15]Read from MH i2c: E2 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 0E 00 [15:33:15]MH_I2C_Read... [15:33:15]Read from MH i2c: E2 0E 00 C6 56 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E9 [15:33:15]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:33:15]wFMCommunicate OK [15:33:15]SAM_PROTO_GetShiftState done [15:33:15]FM_GetShiftState done [15:33:15]req_shift_opened done [15:33:15]requested_item shift.open_date is exist - process it [15:33:15]req_shift_open_date [15:33:15]req_shift_open_date done [15:33:15]produce_requested_data done [15:33:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192648,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:33:15]process_action_free close_receipt [15:33:15]json_value_free [15:33:15]json_value_free done [15:33:15]process_json_proto returns [15:33:15]Send response to host [15:33:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192648,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:33:15]free response buf [15:33:15]execute_script done [15:33:15]execute_script returns [15:33:15]free content buf [15:33:15]Sock 9.Close socket [15:33:15]Sock 9.Thread stoped [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:41]accept exits with 7 [15:36:41]New connection [15:36:41]New thread 3066707300 created [15:36:41]Thread 3066563940 joined [15:36:41]Waiting for new connection... [15:36:41] Sock 7.Parse request [15:36:41]Sock 7.Check first char [15:36:41]Sock 7.First char is OK [15:36:41]request: POST /json_proto HTTP/1.0 [15:36:41]Method: POST [15:36:41]URL: /json_proto [15:36:41]Method is POST - this is cgi request [15:36:41]url: /json_proto [15:36:41]query_string will be loaded in cgi processing [15:36:41]execute_cgi json_proto POST (null) [15:36:41]execute_cgi path=json_proto method=POST [15:36:41]POST find Content-Length [15:36:41]Host: 172.17.63.131:8080 [15:36:41]Content-Length: 681 [15:36:41]Content-Type: application/json [15:36:41] [15:36:41]POST finish read [15:36:41]Found Content-Length = 681 [15:36:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:41]execute_script... [15:36:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:41]POST & json_proto [15:36:41]process_json_proto [15:36:41]json parsed OK: [15:36:41]protocol is kg_v1.0 [15:36:41]action value=close_receipt [15:36:41]process_action close_receipt [15:36:41]cmd_close_receipt [15:36:41]MH_GetDate [15:36:41]Write to MH i2c: F0 00 00 C7 56 0C [15:36:41]Write i2c OK [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: F0 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: F0 09 00 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: F0 09 00 C7 56 00 8F AF 1F 67 22 05 6E 64 D2 [15:36:41]GetLastDocTimeStamp 1730129597 [15:36:41]current date 1730129807 [15:36:41]FM_GetShiftState [15:36:41]SAM_PROTO_GetShiftState [15:36:41]wFMCommunicate request_size=4 [15:36:41]MH_SAM_APDU [15:36:41]CAPDU: 80 13 01 00 [15:36:41]Write to MH i2c: E2 08 00 C8 56 80 13 01 00 00 00 00 00 9B [15:36:41]Write i2c OK [15:36:41]MH_I2C_Read... [15:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:41]Read from MH i2c: E2 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: E2 0E 00 [15:36:41]MH_I2C_Read... [15:36:41]Read from MH i2c: E2 0E 00 C8 56 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EB [15:36:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:36:41]wFMCommunicate OK [15:36:41]SAM_PROTO_GetShiftState done [15:36:41]FM_GetShiftState done [15:36:41]opened in 1730075620 [15:36:41]opened+sec_in_day 1730162020 [15:36:41]quantity*price = 100015 [15:36:41]sum+1 = 100017 [15:36:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 197 28.10.2024 15:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192649 ФПД: 44600299779229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T153647&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192649&fm=44600299779229&tin=02508201610067®Number=0000000000091776&sum=100000 [15:36:42]StoreToDocumentArchive [15:36:42]shift 543 fd 192649 [15:36:42]save to /storage/0543/doc_00192649 [15:36:42]save last doc name /storage/0543/doc_00192649 to /storage/kkm_last_doc_name [15:36:42]save OK [15:36:42]Clear old archive folders... [15:36:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:42]tlvbuf is 01A87F10 [15:36:42]SAM_PROTO_ClearQueue [15:36:42]wFMCommunicate request_size=4 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 09 00 00 [15:36:42]Write to MH i2c: E2 08 00 D5 56 80 09 00 00 00 00 00 00 9D [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 D5 56 00 90 00 9F [15:36:42]RAPDU: 90 00 [15:36:42]wFMCommunicate OK [15:36:42]SAM_PROTO_ClearQueue done [15:36:42]KKMCreateOFDPacket [15:36:42]OFDProtocolAddRootSTLVToBuf [15:36:42]FM_MakeSignedData [15:36:42]FM_MakeSignedData [15:36:42]SAM_PROTO_SignData [15:36:42]wFMCommunicate request_size=4 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 0D 01 02 [15:36:42]Write to MH i2c: E2 08 00 D6 56 80 0D 01 02 00 00 00 00 A5 [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:42]Read from MH i2c: E2 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 [15:36:42]MH_I2C_Read... [15:36:42]Read from MH i2c: E2 03 00 D6 56 00 90 00 A0 [15:36:42]RAPDU: 90 00 [15:36:42]wFMCommunicate OK [15:36:42]wFMCommunicate request_size=255 [15:36:42]MH_SAM_APDU [15:36:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 8F AF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 F0 02 00 35 04 06 00 28 [15:36:42]Write to MH i2c: E2 02 01 D7 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 8F AF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 F0 02 00 35 04 06 00 28 00 00 80 [15:36:42]Write i2c OK [15:36:42]MH_I2C_Read... [15:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:43]Read from MH i2c: E2 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 03 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 03 00 D7 56 00 90 00 A1 [15:36:43]RAPDU: 90 00 [15:36:43]wFMCommunicate OK [15:36:43]wFMCommunicate request_size=10 [15:36:43]MH_SAM_APDU [15:36:43]CAPDU: 80 0D 02 02 05 90 51 06 74 9D [15:36:43]Write to MH i2c: E2 0D 00 D8 56 80 0D 02 02 05 00 90 51 06 74 9D 00 00 AA [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:43]Read from MH i2c: E2 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 03 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 03 00 D8 56 00 90 00 A2 [15:36:43]RAPDU: 90 00 [15:36:43]wFMCommunicate OK [15:36:43]wFMCommunicate request_size=4 [15:36:43]MH_SAM_APDU [15:36:43]CAPDU: 80 0D 03 02 [15:36:43]Write to MH i2c: E2 08 00 D9 56 80 0D 03 02 00 00 00 00 AA [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:43]Read from MH i2c: E2 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 0B 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 0B 00 D9 56 00 98 CC 11 31 7D 0C 57 09 90 00 3A [15:36:43]RAPDU: 98 CC 11 31 7D 0C 57 09 90 00 [15:36:43]wFMCommunicate OK [15:36:43]SAM_PROTO_SignData done [15:36:43]FM_MakeSignedData done [15:36:43]CreateOFDProtocolMessage [15:36:43]wFMCommunicate request_size=4 [15:36:43]MH_SAM_APDU [15:36:43]CAPDU: 80 11 00 00 [15:36:43]Write to MH i2c: E2 08 00 DA 56 80 11 00 00 00 00 00 00 AA [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:43]Read from MH i2c: E2 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 17 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: E2 17 00 DA 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FD [15:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:36:43]wFMCommunicate OK [15:36:43]CreateOFDProtocolMessage done [15:36:43]OFDSenderStorePacket 192649 [15:36:43]StoreOFDPacket docnum=192649 [15:36:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B5 35 07 01 27 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 8F AF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 F0 02 00 35 04 06 00 28 90 51 06 74 9D 98 CC 11 31 7D 0C 57 09 [15:36:43]CheckFolder [15:36:43]dirname=/storage/ofd_packets [15:36:43]CheckFolder done [15:36:43]ProducePacketName [15:36:43]name=ofd_packets/00192649 [15:36:43]NVStorageSaveData ofd_packets/00192649 [15:36:43]File name is /storage/ofd_packets/00192649 [15:36:43]Write 301 bytes [15:36:43]NVStorageSaveData done [15:36:43]OFDSenderStorePacket done [15:36:43]KKMCreateOFDPacket done [15:36:43]NVStorageSaveData kkm_last_timestamp [15:36:43]File name is /storage/kkm_last_timestamp [15:36:43]Write 4 bytes [15:36:43]NVStorageSaveData done [15:36:43]ExternCall_PrintAddStr [15:36:43]wPrintStart [15:36:43]Write to MH i2c: 01 00 00 DB 56 31 [15:36:43]Write i2c OK [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: 01 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: 01 07 00 [15:36:43]MH_I2C_Read... [15:36:43]Read from MH i2c: 01 07 00 DB 56 00 00 00 00 00 FF 0F 46 [15:36:43]RasterBufferAndPrint [15:36:43]line Счет N : (1)31975 [15:36:43]line ИНН: 02508201610067 [15:36:43]line Контрольно-Кассовый Чек [15:36:43]line ПРОДАЖА [15:36:43]line ТРК (МРК, ГНК) : 12 [15:36:43]line Товар: 2710124130 [15:36:43]line Аи-92-К-5 [15:36:43]line 14.950 * 66.90 [15:36:43]line = 1000.16 [15:36:43]line НДС 12% НСП 1% [15:36:43]line > о реализуемом товаре [15:36:43]line ОКРУГЛЕНИЕ: -0.16 [15:36:43]line ИТОГО: 1000.00 [15:36:43]line Внесено: 1000.00 [15:36:43]line СДАЧА: 0.00 [15:36:43]line НСП 1% : 8.85 [15:36:43]line НДС 12% : 106.21 [15:36:43]line Наличными: 1000.00 [15:36:43]line Безнал.: 0.00 [15:36:43]line Место: АЗС № 170 "Партнер Нефть" [15:36:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:36:43]line СНО: Общий режим [15:36:43]line Чек 197 28.10.2024 15:36 [15:36:43]line Смена: 543 ФФД: 1.0 [15:36:43]line ЗНМ: 0300000110 [15:36:43]line РНМ: 0000000000091776 [15:36:43]line Версия ККМ: 001 [15:36:43]line ФМ: 0000000000871754 [15:36:43]line ФД: 192649 [15:36:43]line ФПД: 44600299779229 [15:36:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T153647&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192649&fm=44600299779229&tin=02508201610067®Number=0000000000091776&sum=100000 [15:36:43]OFD Sender: Processing packet 192649 [packets to send 75, broken 74] [15:36:43]ProducePacketName [15:36:43]name=ofd_packets/00192649 [15:36:43]OFD Sender: To server: pG, [15:36:43]CommunicateWithHost lk.salyk.kg:30040 [15:36:43]ConnectInit lk.salyk.kg [15:36:43]written 0, free lines is 4095 [15:36:43]Connected sock=10 [15:36:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B5 35 07 01 27 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 8F AF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 F0 02 00 35 04 06 00 28 90 51 06 74 9D 98 CC 11 31 7D 0C 57 09 [15:36:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B8 EF 47 00 5E E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 F0 02 00 F4 03 04 00 53 54 1F 67 B6 04 01 00 00 AD 0E 55 EB 17 02 1C A1 [15:36:43]CommunicateWithHost err = 0 [15:36:43]CheckOFDResponse [15:36:43]1017 (14) - 77093643461234 [15:36:43]1041 (16) - 0000000000871754 [15:36:43]1040 (4) - 192649 [15:36:43]1012 (4) - 28.10.2024 09:07 [15:36:43]1206 (1) - 0 [15:36:43]OFD Sender: Remove packet 192649 [15:36:43]ProducePacketName [15:36:43]name=ofd_packets/00192649 [15:36:43]NVStorageDeleteData [15:36:44]Write to MH i2c: 01 00 00 06 57 5D [15:36:44]Write i2c OK [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: 01 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: 01 07 00 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: 01 07 00 06 57 00 00 00 00 00 CD 0C 3D [15:36:44]RasterBufferAndPrint [15:36:44]line [15:36:44]line [15:36:44]line [15:36:44]line [15:36:44]line [15:36:44]written 0, free lines is 3282 [15:36:44]MH_Cut [15:36:44]Write to MH i2c: D1 01 00 0D 57 01 36 [15:36:44]Write i2c OK [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: D1 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: D1 01 00 [15:36:44]MH_I2C_Read... [15:36:44]Read from MH i2c: D1 01 00 0D 57 00 35 [15:36:44]Write to MH i2c: 01 00 00 0E 57 65 [15:36:44]Write i2c OK [15:36:44]MH_I2C_Read... [15:36:44]OFD Sender: No OFD packet to send [15:36:44]*** Cut start [15:36:44]*** Partial cut [15:36:44]*** CUTSNS_PIN = 1 [15:36:44]*** CUTSNS_PIN = 0 [15:36:45]*** Brake cut motor [15:36:45]Read from MH i2c: 01 [15:36:45]MH_I2C_Read... [15:36:45]*** Stop cut motor [15:36:45]*** Cut end [15:36:45]Read from MH i2c: 01 07 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: 01 07 00 0E 57 00 00 00 00 00 FF 0F 7A [15:36:45]process_action close_receipt done [15:36:45]requested_data is exist [15:36:45]produce_requested_data [15:36:45]requested_item fm.sn is exist - process it [15:36:45]wFMCommunicate request_size=4 [15:36:45]MH_SAM_APDU [15:36:45]CAPDU: 80 11 00 00 [15:36:45]Write to MH i2c: E2 08 00 0F 57 80 11 00 00 00 00 00 00 E0 [15:36:45]Write i2c OK [15:36:45]MH_I2C_Read... [15:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:45]Read from MH i2c: E2 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 17 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 17 00 0F 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 33 [15:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:36:45]wFMCommunicate OK [15:36:45]requested_item fd.num is exist - process it [15:36:45]SAM_PROTO_GetFieldsCounters [15:36:45]wFMCommunicate request_size=4 [15:36:45]MH_SAM_APDU [15:36:45]CAPDU: 80 13 00 00 [15:36:45]Write to MH i2c: E2 08 00 10 57 80 13 00 00 00 00 00 00 E3 [15:36:45]Write i2c OK [15:36:45]MH_I2C_Read... [15:36:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:45]Read from MH i2c: E2 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 62 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 62 00 10 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 89 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [15:36:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 89 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:45]wFMCommunicate OK [15:36:45]SAM_PROTO_GetFieldsCounters done [15:36:45]requested_item shift.num is exist - process it [15:36:45]requested_item shift.opened is exist - process it [15:36:45]req_shift_opened [15:36:45]FM_GetShiftState [15:36:45]SAM_PROTO_GetShiftState [15:36:45]wFMCommunicate request_size=4 [15:36:45]MH_SAM_APDU [15:36:45]CAPDU: 80 13 01 00 [15:36:45]Write to MH i2c: E2 08 00 11 57 80 13 01 00 00 00 00 00 E5 [15:36:45]Write i2c OK [15:36:45]MH_I2C_Read... [15:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:45]Read from MH i2c: E2 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 0E 00 [15:36:45]MH_I2C_Read... [15:36:45]Read from MH i2c: E2 0E 00 11 57 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 35 [15:36:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:36:45]wFMCommunicate OK [15:36:45]SAM_PROTO_GetShiftState done [15:36:45]FM_GetShiftState done [15:36:45]req_shift_opened done [15:36:45]requested_item shift.open_date is exist - process it [15:36:45]req_shift_open_date [15:36:45]req_shift_open_date done [15:36:45]produce_requested_data done [15:36:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192649,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:36:45]process_action_free close_receipt [15:36:45]json_value_free [15:36:45]json_value_free done [15:36:45]process_json_proto returns [15:36:45]Send response to host [15:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192649,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:36:45]free response buf [15:36:45]execute_script done [15:36:45]execute_script returns [15:36:45]free content buf [15:36:45]Sock 7.Close socket [15:36:45]Sock 7.Thread stoped [15:36:46]accept exits with 9 [15:36:46]New connection [15:36:46]New thread 3066563940 created [15:36:46]Thread 3066707300 joined [15:36:46]Waiting for new connection... [15:36:46] Sock 9.Parse request [15:36:46]Sock 9.Check first char [15:36:46]Sock 9.First char is OK [15:36:46]request: POST /json_proto HTTP/1.0 [15:36:46]Method: POST [15:36:46]URL: /json_proto [15:36:46]Method is POST - this is cgi request [15:36:46]url: /json_proto [15:36:46]query_string will be loaded in cgi processing [15:36:46]execute_cgi json_proto POST (null) [15:36:46]execute_cgi path=json_proto method=POST [15:36:46]POST find Content-Length [15:36:46]Host: 172.17.63.131:8080 [15:36:46]Content-Length: 676 [15:36:46]Content-Type: application/json [15:36:46] [15:36:46]POST finish read [15:36:46]Found Content-Length = 676 [15:36:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:46]execute_script... [15:36:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:46]POST & json_proto [15:36:46]process_json_proto [15:36:46]json parsed OK: [15:36:46]protocol is kg_v1.0 [15:36:46]action value=close_receipt [15:36:46]process_action close_receipt [15:36:46]cmd_close_receipt [15:36:46]MH_GetDate [15:36:46]Write to MH i2c: F0 00 00 12 57 58 [15:36:46]Write i2c OK [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: F0 [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: F0 09 00 [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: F0 09 00 12 57 00 94 AF 1F 67 22 05 6E 64 23 [15:36:46]GetLastDocTimeStamp 1730129807 [15:36:46]current date 1730129812 [15:36:46]FM_GetShiftState [15:36:46]SAM_PROTO_GetShiftState [15:36:46]wFMCommunicate request_size=4 [15:36:46]MH_SAM_APDU [15:36:46]CAPDU: 80 13 01 00 [15:36:46]Write to MH i2c: E2 08 00 13 57 80 13 01 00 00 00 00 00 E7 [15:36:46]Write i2c OK [15:36:46]MH_I2C_Read... [15:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:46]Read from MH i2c: E2 [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: E2 0E 00 [15:36:46]MH_I2C_Read... [15:36:46]Read from MH i2c: E2 0E 00 13 57 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 37 [15:36:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:36:46]wFMCommunicate OK [15:36:46]SAM_PROTO_GetShiftState done [15:36:46]FM_GetShiftState done [15:36:46]opened in 1730075620 [15:36:46]opened+sec_in_day 1730162020 [15:36:46]quantity*price = 60009 [15:36:46]sum+1 = 60010 [15:36:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 198 28.10.2024 15:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192650 ФПД: 50343600662694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T153652&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192650&fm=50343600662694&tin=02508201610067®Number=0000000000091776&sum=60000 [15:36:47]StoreToDocumentArchive [15:36:47]shift 543 fd 192650 [15:36:47]save to /storage/0543/doc_00192650 [15:36:47]save last doc name /storage/0543/doc_00192650 to /storage/kkm_last_doc_name [15:36:47]save OK [15:36:47]Clear old archive folders... [15:36:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:47]tlvbuf is 01A43AD0 [15:36:47]SAM_PROTO_ClearQueue [15:36:47]wFMCommunicate request_size=4 [15:36:47]MH_SAM_APDU [15:36:47]CAPDU: 80 09 00 00 [15:36:47]Write to MH i2c: E2 08 00 20 57 80 09 00 00 00 00 00 00 E9 [15:36:47]Write i2c OK [15:36:47]MH_I2C_Read... [15:36:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:47]Read from MH i2c: E2 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 03 00 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 03 00 20 57 00 90 00 EB [15:36:47]RAPDU: 90 00 [15:36:47]wFMCommunicate OK [15:36:47]SAM_PROTO_ClearQueue done [15:36:47]KKMCreateOFDPacket [15:36:47]OFDProtocolAddRootSTLVToBuf [15:36:47]FM_MakeSignedData [15:36:47]FM_MakeSignedData [15:36:47]SAM_PROTO_SignData [15:36:47]wFMCommunicate request_size=4 [15:36:47]MH_SAM_APDU [15:36:47]CAPDU: 80 0D 01 02 [15:36:47]Write to MH i2c: E2 08 00 21 57 80 0D 01 02 00 00 00 00 F1 [15:36:47]Write i2c OK [15:36:47]MH_I2C_Read... [15:36:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:47]Read from MH i2c: E2 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 03 00 [15:36:47]MH_I2C_Read... [15:36:47]Read from MH i2c: E2 03 00 21 57 00 90 00 EC [15:36:47]RAPDU: 90 00 [15:36:47]wFMCommunicate OK [15:36:47]wFMCommunicate request_size=255 [15:36:47]MH_SAM_APDU [15:36:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 94 AF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A F0 02 00 35 04 06 00 2D [15:36:47]Write to MH i2c: E2 02 01 22 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 94 AF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A F0 02 00 35 04 06 00 2D 00 00 BB [15:36:47]Write i2c OK [15:36:47]MH_I2C_Read... [15:36:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:48]Read from MH i2c: E2 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: E2 03 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: E2 03 00 22 57 00 90 00 ED [15:36:48]RAPDU: 90 00 [15:36:48]wFMCommunicate OK [15:36:48]wFMCommunicate request_size=10 [15:36:48]MH_SAM_APDU [15:36:48]CAPDU: 80 0D 02 02 05 C9 88 6F 28 A6 [15:36:48]Write to MH i2c: E2 0D 00 23 57 80 0D 02 02 05 00 C9 88 6F 28 A6 00 00 8C [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:48]Read from MH i2c: E2 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: E2 03 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: E2 03 00 23 57 00 90 00 EE [15:36:48]RAPDU: 90 00 [15:36:48]wFMCommunicate OK [15:36:48]wFMCommunicate request_size=4 [15:36:48]MH_SAM_APDU [15:36:48]CAPDU: 80 0D 03 02 [15:36:48]Write to MH i2c: E2 08 00 24 57 80 0D 03 02 00 00 00 00 F6 [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:48]Read from MH i2c: E2 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: E2 0B 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: E2 0B 00 24 57 00 88 E0 37 BE 4F A3 71 96 90 00 4D [15:36:48]RAPDU: 88 E0 37 BE 4F A3 71 96 90 00 [15:36:48]wFMCommunicate OK [15:36:48]SAM_PROTO_SignData done [15:36:48]FM_MakeSignedData done [15:36:48]CreateOFDProtocolMessage [15:36:48]wFMCommunicate request_size=4 [15:36:48]MH_SAM_APDU [15:36:48]CAPDU: 80 11 00 00 [15:36:48]Write to MH i2c: E2 08 00 25 57 80 11 00 00 00 00 00 00 F6 [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:48]Read from MH i2c: E2 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: E2 17 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: E2 17 00 25 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 49 [15:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:36:48]wFMCommunicate OK [15:36:48]CreateOFDProtocolMessage done [15:36:48]OFDSenderStorePacket 192650 [15:36:48]StoreOFDPacket docnum=192650 [15:36:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7D 2F 07 01 83 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 94 AF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A F0 02 00 35 04 06 00 2D C9 88 6F 28 A6 88 E0 37 BE 4F A3 71 96 [15:36:48]CheckFolder [15:36:48]dirname=/storage/ofd_packets [15:36:48]CheckFolder done [15:36:48]ProducePacketName [15:36:48]name=ofd_packets/00192650 [15:36:48]NVStorageSaveData ofd_packets/00192650 [15:36:48]File name is /storage/ofd_packets/00192650 [15:36:48]Write 301 bytes [15:36:48]NVStorageSaveData done [15:36:48]OFDSenderStorePacket done [15:36:48]KKMCreateOFDPacket done [15:36:48]NVStorageSaveData kkm_last_timestamp [15:36:48]File name is /storage/kkm_last_timestamp [15:36:48]Write 4 bytes [15:36:48]NVStorageSaveData done [15:36:48]ExternCall_PrintAddStr [15:36:48]wPrintStart [15:36:48]Write to MH i2c: 01 00 00 26 57 7D [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: 01 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: 01 07 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: 01 07 00 26 57 00 00 00 00 00 FF 0F 92 [15:36:48]RasterBufferAndPrint [15:36:48]line Счет N : (1)31976 [15:36:48]line ИНН: 02508201610067 [15:36:48]line Контрольно-Кассовый Чек [15:36:48]line ПРОДАЖА [15:36:48]line ТРК (МРК, ГНК) : 21 [15:36:48]line Товар: 2710124130 [15:36:48]line Аи-92-К-5 [15:36:48]line 8.970 * 66.90 [15:36:48]line = 600.09 [15:36:48]line НДС 12% НСП 1% [15:36:48]line > о реализуемом товаре [15:36:48]line ОКРУГЛЕНИЕ: -0.09 [15:36:48]line ИТОГО: 600.00 [15:36:48]line Внесено: 600.00 [15:36:48]line СДАЧА: 0.00 [15:36:48]line НСП 1% : 5.31 [15:36:48]line НДС 12% : 63.73 [15:36:48]line Наличными: 600.00 [15:36:48]line Безнал.: 0.00 [15:36:48]line Место: АЗС № 170 "Партнер Нефть" [15:36:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:36:48]line СНО: Общий режим [15:36:48]line Чек 198 28.10.2024 15:36 [15:36:48]line Смена: 543 ФФД: 1.0 [15:36:48]line ЗНМ: 0300000110 [15:36:48]line РНМ: 0000000000091776 [15:36:48]line Версия ККМ: 001 [15:36:48]line ФМ: 0000000000871754 [15:36:48]line ФД: 192650 [15:36:48]line ФПД: 50343600662694 [15:36:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T153652&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192650&fm=50343600662694&tin=02508201610067®Number=0000000000091776&sum=60000 [15:36:48]written 0, free lines is 4095 [15:36:48]OFD Sender: Processing packet 192650 [packets to send 75, broken 74] [15:36:48]ProducePacketName [15:36:48]name=ofd_packets/00192650 [15:36:48]OFD Sender: To server: pG, [15:36:48]CommunicateWithHost lk.salyk.kg:30040 [15:36:48]ConnectInit lk.salyk.kg [15:36:48]Connected sock=10 [15:36:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7D 2F 07 01 83 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 94 AF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A F0 02 00 35 04 06 00 2D C9 88 6F 28 A6 88 E0 37 BE 4F A3 71 96 [15:36:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 44 2A 47 00 23 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A F0 02 00 F4 03 04 00 58 54 1F 67 B6 04 01 00 00 2F EB 6B 51 D7 C6 19 24 [15:36:48]CommunicateWithHost err = 0 [15:36:48]CheckOFDResponse [15:36:48]1017 (14) - 77093643461234 [15:36:48]1041 (16) - 0000000000871754 [15:36:48]1040 (4) - 192650 [15:36:48]1012 (4) - 28.10.2024 09:07 [15:36:48]1206 (1) - 0 [15:36:48]OFD Sender: Remove packet 192650 [15:36:48]ProducePacketName [15:36:48]name=ofd_packets/00192650 [15:36:48]NVStorageDeleteData [15:36:48]Write to MH i2c: 01 00 00 51 57 A8 [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: 01 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: 01 07 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: 01 07 00 51 57 00 00 00 00 00 D6 0C 91 [15:36:48]RasterBufferAndPrint [15:36:48]line [15:36:48]line [15:36:48]line [15:36:48]line [15:36:48]line [15:36:48]written 0, free lines is 3300 [15:36:48]MH_Cut [15:36:48]Write to MH i2c: D1 01 00 58 57 01 81 [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: D1 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: D1 01 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: D1 01 00 58 57 00 80 [15:36:48]Write to MH i2c: 01 00 00 59 57 B0 [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:49]OFD Sender: No OFD packet to send [15:36:49]*** Cut start [15:36:49]*** Partial cut [15:36:49]*** CUTSNS_PIN = 1 [15:36:49]*** CUTSNS_PIN = 0 [15:36:49]*** Brake cut motor [15:36:50]Read from MH i2c: 01 [15:36:50]MH_I2C_Read... [15:36:50]*** Stop cut motor [15:36:50]*** Cut end [15:36:50]Read from MH i2c: 01 07 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: 01 07 00 59 57 00 00 00 00 00 FF 0F C5 [15:36:50]process_action close_receipt done [15:36:50]requested_data is exist [15:36:50]produce_requested_data [15:36:50]requested_item fm.sn is exist - process it [15:36:50]wFMCommunicate request_size=4 [15:36:50]MH_SAM_APDU [15:36:50]CAPDU: 80 11 00 00 [15:36:50]Write to MH i2c: E2 08 00 5A 57 80 11 00 00 00 00 00 00 2B [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:50]Read from MH i2c: E2 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 17 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 17 00 5A 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7E [15:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:36:50]wFMCommunicate OK [15:36:50]requested_item fd.num is exist - process it [15:36:50]SAM_PROTO_GetFieldsCounters [15:36:50]wFMCommunicate request_size=4 [15:36:50]MH_SAM_APDU [15:36:50]CAPDU: 80 13 00 00 [15:36:50]Write to MH i2c: E2 08 00 5B 57 80 13 00 00 00 00 00 00 2E [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:50]Read from MH i2c: E2 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 62 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 62 00 5B 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [15:36:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:50]wFMCommunicate OK [15:36:50]SAM_PROTO_GetFieldsCounters done [15:36:50]requested_item shift.num is exist - process it [15:36:50]requested_item shift.opened is exist - process it [15:36:50]req_shift_opened [15:36:50]FM_GetShiftState [15:36:50]SAM_PROTO_GetShiftState [15:36:50]wFMCommunicate request_size=4 [15:36:50]MH_SAM_APDU [15:36:50]CAPDU: 80 13 01 00 [15:36:50]Write to MH i2c: E2 08 00 5C 57 80 13 01 00 00 00 00 00 30 [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:50]Read from MH i2c: E2 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 0E 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 0E 00 5C 57 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 80 [15:36:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:36:50]wFMCommunicate OK [15:36:50]SAM_PROTO_GetShiftState done [15:36:50]FM_GetShiftState done [15:36:50]req_shift_opened done [15:36:50]requested_item shift.open_date is exist - process it [15:36:50]req_shift_open_date [15:36:50]req_shift_open_date done [15:36:50]produce_requested_data done [15:36:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192650,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:36:50]process_action_free close_receipt [15:36:50]json_value_free [15:36:50]json_value_free done [15:36:50]process_json_proto returns [15:36:50]Send response to host [15:36:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192650,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:36:50]free response buf [15:36:50]execute_script done [15:36:50]execute_script returns [15:36:50]free content buf [15:36:50]Sock 9.Close socket [15:36:50]Sock 9.Thread stoped [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:32]accept exits with 7 [15:38:32]New connection [15:38:32]New thread 3066707300 created [15:38:32]Thread 3066563940 joined [15:38:32]Waiting for new connection... [15:38:32] Sock 7.Parse request [15:38:32]Sock 7.Check first char [15:38:32]Sock 7.First char is OK [15:38:32]request: POST /json_proto HTTP/1.0 [15:38:32]Method: POST [15:38:32]URL: /json_proto [15:38:32]Method is POST - this is cgi request [15:38:32]url: /json_proto [15:38:32]query_string will be loaded in cgi processing [15:38:32]execute_cgi json_proto POST (null) [15:38:32]execute_cgi path=json_proto method=POST [15:38:32]POST find Content-Length [15:38:32]Host: 172.17.63.131:8080 [15:38:32]Content-Length: 983 [15:38:32]Content-Type: application/json [15:38:32] [15:38:32]POST finish read [15:38:32]Found Content-Length = 983 [15:38:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "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 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \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" ] } } [15:38:32]execute_script... [15:38:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "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 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \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" ] } } [15:38:32]POST & json_proto [15:38:32]process_json_proto [15:38:32]json parsed OK: [15:38:32]protocol is kg_v1.0 [15:38:32]action value=close_receipt [15:38:32]process_action close_receipt [15:38:32]cmd_close_receipt [15:38:32]MH_GetDate [15:38:32]Write to MH i2c: F0 00 00 5D 57 A3 [15:38:32]Write i2c OK [15:38:32]MH_I2C_Read... [15:38:32]Read from MH i2c: F0 [15:38:32]MH_I2C_Read... [15:38:32]Read from MH i2c: F0 09 00 [15:38:32]MH_I2C_Read... [15:38:32]Read from MH i2c: F0 09 00 5D 57 00 FD AF 1F 67 22 05 6E 64 D7 [15:38:32]GetLastDocTimeStamp 1730129812 [15:38:32]current date 1730129917 [15:38:32]FM_GetShiftState [15:38:32]SAM_PROTO_GetShiftState [15:38:32]wFMCommunicate request_size=4 [15:38:32]MH_SAM_APDU [15:38:32]CAPDU: 80 13 01 00 [15:38:32]Write to MH i2c: E2 08 00 5E 57 80 13 01 00 00 00 00 00 32 [15:38:32]Write i2c OK [15:38:32]MH_I2C_Read... [15:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:32]Read from MH i2c: E2 [15:38:32]MH_I2C_Read... [15:38:32]Read from MH i2c: E2 0E 00 [15:38:32]MH_I2C_Read... [15:38:32]Read from MH i2c: E2 0E 00 5E 57 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 82 [15:38:32]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:38:32]wFMCommunicate OK [15:38:32]SAM_PROTO_GetShiftState done [15:38:32]FM_GetShiftState done [15:38:32]opened in 1730075620 [15:38:32]opened+sec_in_day 1730162020 [15:38:32]quantity*price = 150054 [15:38:32]sum+1 = 150055 [15:38:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 199 28.10.2024 15:38 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 22.77 сом ФМ: 0000000000871754 ФД: 192651 ФПД: 261560608413639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T153838&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192651&fm=261560608413639&tin=02508201610067®Number=0000000000091776&sum=150000 [15:38:33]StoreToDocumentArchive [15:38:33]shift 543 fd 192651 [15:38:33]save to /storage/0543/doc_00192651 [15:38:33]save last doc name /storage/0543/doc_00192651 to /storage/kkm_last_doc_name [15:38:33]save OK [15:38:33]Clear old archive folders... [15:38:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:33]tlvbuf is B6E9ED10 [15:38:33]SAM_PROTO_ClearQueue [15:38:33]wFMCommunicate request_size=4 [15:38:33]MH_SAM_APDU [15:38:33]CAPDU: 80 09 00 00 [15:38:33]Write to MH i2c: E2 08 00 6B 57 80 09 00 00 00 00 00 00 34 [15:38:33]Write i2c OK [15:38:33]MH_I2C_Read... [15:38:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:33]Read from MH i2c: E2 [15:38:33]MH_I2C_Read... [15:38:33]Read from MH i2c: E2 03 00 [15:38:33]MH_I2C_Read... [15:38:33]Read from MH i2c: E2 03 00 6B 57 00 90 00 36 [15:38:33]RAPDU: 90 00 [15:38:33]wFMCommunicate OK [15:38:33]SAM_PROTO_ClearQueue done [15:38:33]KKMCreateOFDPacket [15:38:33]OFDProtocolAddRootSTLVToBuf [15:38:33]FM_MakeSignedData [15:38:33]FM_MakeSignedData [15:38:33]SAM_PROTO_SignData [15:38:33]wFMCommunicate request_size=4 [15:38:33]MH_SAM_APDU [15:38:33]CAPDU: 80 0D 01 02 [15:38:33]Write to MH i2c: E2 08 00 6C 57 80 0D 01 02 00 00 00 00 3C [15:38:33]Write i2c OK [15:38:33]MH_I2C_Read... [15:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:33]Read from MH i2c: E2 [15:38:33]MH_I2C_Read... [15:38:33]Read from MH i2c: E2 03 00 [15:38:33]MH_I2C_Read... [15:38:33]Read from MH i2c: E2 03 00 6C 57 00 90 00 37 [15:38:33]RAPDU: 90 00 [15:38:33]wFMCommunicate OK [15:38:33]wFMCommunicate request_size=255 [15:38:33]MH_SAM_APDU [15:38:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 FE AF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B F0 02 00 35 04 06 00 ED [15:38:33]Write to MH i2c: E2 02 01 6D 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 FE AF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B F0 02 00 35 04 06 00 ED 00 00 8B [15:38:33]Write i2c OK [15:38:33]MH_I2C_Read... [15:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:33]Read from MH i2c: E2 [15:38:33]MH_I2C_Read... [15:38:33]Read from MH i2c: E2 03 00 [15:38:33]MH_I2C_Read... [15:38:33]Read from MH i2c: E2 03 00 6D 57 00 90 00 38 [15:38:33]RAPDU: 90 00 [15:38:33]wFMCommunicate OK [15:38:33]wFMCommunicate request_size=10 [15:38:33]MH_SAM_APDU [15:38:33]CAPDU: 80 0D 02 02 05 E3 53 26 D7 C7 [15:38:33]Write to MH i2c: E2 0D 00 6E 57 80 0D 02 02 05 00 E3 53 26 D7 C7 00 00 43 [15:38:33]Write i2c OK [15:38:33]MH_I2C_Read... [15:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:33]Read from MH i2c: E2 [15:38:33]MH_I2C_Read... [15:38:33]Read from MH i2c: E2 03 00 [15:38:33]MH_I2C_Read... [15:38:33]Read from MH i2c: E2 03 00 6E 57 00 90 00 39 [15:38:33]RAPDU: 90 00 [15:38:33]wFMCommunicate OK [15:38:33]wFMCommunicate request_size=4 [15:38:33]MH_SAM_APDU [15:38:33]CAPDU: 80 0D 03 02 [15:38:33]Write to MH i2c: E2 08 00 6F 57 80 0D 03 02 00 00 00 00 41 [15:38:33]Write i2c OK [15:38:33]MH_I2C_Read... [15:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:33]Read from MH i2c: E2 [15:38:33]MH_I2C_Read... [15:38:33]Read from MH i2c: E2 0B 00 [15:38:33]MH_I2C_Read... [15:38:33]Read from MH i2c: E2 0B 00 6F 57 00 E2 3A 82 66 B7 EA A5 07 90 00 93 [15:38:33]RAPDU: E2 3A 82 66 B7 EA A5 07 90 00 [15:38:33]wFMCommunicate OK [15:38:33]SAM_PROTO_SignData done [15:38:33]FM_MakeSignedData done [15:38:33]CreateOFDProtocolMessage [15:38:33]wFMCommunicate request_size=4 [15:38:33]MH_SAM_APDU [15:38:33]CAPDU: 80 11 00 00 [15:38:33]Write to MH i2c: E2 08 00 70 57 80 11 00 00 00 00 00 00 41 [15:38:33]Write i2c OK [15:38:33]MH_I2C_Read... [15:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:33]Read from MH i2c: E2 [15:38:33]MH_I2C_Read... [15:38:33]Read from MH i2c: E2 17 00 [15:38:33]MH_I2C_Read... [15:38:33]Read from MH i2c: E2 17 00 70 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 94 [15:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:38:33]wFMCommunicate OK [15:38:33]CreateOFDProtocolMessage done [15:38:33]OFDSenderStorePacket 192651 [15:38:33]StoreOFDPacket docnum=192651 [15:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F5 D5 07 01 E3 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 FE AF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B F0 02 00 35 04 06 00 ED E3 53 26 D7 C7 E2 3A 82 66 B7 EA A5 07 [15:38:33]CheckFolder [15:38:33]dirname=/storage/ofd_packets [15:38:33]CheckFolder done [15:38:33]ProducePacketName [15:38:33]name=ofd_packets/00192651 [15:38:33]NVStorageSaveData ofd_packets/00192651 [15:38:33]File name is /storage/ofd_packets/00192651 [15:38:33]Write 301 bytes [15:38:33]NVStorageSaveData done [15:38:33]OFDSenderStorePacket done [15:38:33]KKMCreateOFDPacket done [15:38:33]NVStorageSaveData kkm_last_timestamp [15:38:33]File name is /storage/kkm_last_timestamp [15:38:33]Write 4 bytes [15:38:33]NVStorageSaveData done [15:38:33]ExternCall_PrintAddStr [15:38:33]wPrintStart [15:38:33]Write to MH i2c: 01 00 00 71 57 C8 [15:38:33]Write i2c OK [15:38:33]MH_I2C_Read... [15:38:33]Read from MH i2c: 01 [15:38:33]MH_I2C_Read... [15:38:33]Read from MH i2c: 01 07 00 [15:38:33]MH_I2C_Read... [15:38:33]Read from MH i2c: 01 07 00 71 57 00 00 00 00 00 FF 0F DD [15:38:33]RasterBufferAndPrint [15:38:33]line Счет N : (1)31977 [15:38:33]line ИНН: 02508201610067 [15:38:33]line Контрольно-Кассовый Чек [15:38:33]line ПРОДАЖА [15:38:33]line ТРК (МРК, ГНК) : 21 [15:38:33]line Товар: 2710124130 [15:38:33]line Аи-92-К-5 [15:38:33]line 22.770 * 65.90 [15:38:33]line = 1500.54 [15:38:33]line НДС 12% НСП 1% [15:38:33]line > о реализуемом товаре [15:38:33]line ОКРУГЛЕНИЕ: -0.54 [15:38:33]line ИТОГО: 1500.00 [15:38:33]line Внесено: 1500.00 [15:38:33]line СДАЧА: 0.00 [15:38:33]line НСП 1% : 13.28 [15:38:33]line НДС 12% : 159.35 [15:38:33]line Наличными: 1500.00 [15:38:33]line Безнал.: 0.00 [15:38:33]line Место: АЗС № 170 "Партнер Нефть" [15:38:33]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:38:33]line СНО: Общий режим [15:38:33]line Чек 199 28.10.2024 15:38 [15:38:33]line Смена: 543 ФФД: 1.0 [15:38:33]line ЗНМ: 0300000110 [15:38:33]line РНМ: 0000000000091776 [15:38:33]line Версия ККМ: 001 [15:38:33]line [15:38:33]line Дисконтная программа [15:38:33]line АИ-92 [15:38:33]line номер 170 [15:38:33]line сэкономлено 22.77 сом [15:38:33]line ФМ: 0000000000871754 [15:38:33]line ФД: 192651 [15:38:33]line ФПД: 261560608413639 [15:38:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T153838&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192651&fm=261560608413639&tin=02508201610067®Number=0000000000091776&sum=150000 [15:38:34]OFD Sender: Processing packet 192651 [packets to send 75, broken 74] [15:38:34]ProducePacketName [15:38:34]name=ofd_packets/00192651 [15:38:34]OFD Sender: To server: pG, [15:38:34]CommunicateWithHost lk.salyk.kg:30040 [15:38:34]ConnectInit lk.salyk.kg [15:38:34]written 0, free lines is 4095 [15:38:34]Connected sock=10 [15:38:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F5 D5 07 01 E3 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 FE AF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B F0 02 00 35 04 06 00 ED E3 53 26 D7 C7 E2 3A 82 66 B7 EA A5 07 [15:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 43 90 47 00 D2 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B F0 02 00 F4 03 04 00 C1 54 1F 67 B6 04 01 00 00 B8 0E F6 0C 86 E6 03 87 [15:38:34]CommunicateWithHost err = 0 [15:38:34]CheckOFDResponse [15:38:34]1017 (14) - 77093643461234 [15:38:34]1041 (16) - 0000000000871754 [15:38:34]1040 (4) - 192651 [15:38:34]1012 (4) - 28.10.2024 09:09 [15:38:34]1206 (1) - 0 [15:38:34]OFD Sender: Remove packet 192651 [15:38:34]ProducePacketName [15:38:34]name=ofd_packets/00192651 [15:38:34]NVStorageDeleteData [15:38:34]Write to MH i2c: 01 00 00 A1 57 F8 [15:38:34]Write i2c OK [15:38:34]MH_I2C_Read... [15:38:34]Read from MH i2c: 01 [15:38:34]MH_I2C_Read... [15:38:34]Read from MH i2c: 01 07 00 [15:38:34]MH_I2C_Read... [15:38:34]Read from MH i2c: 01 07 00 A1 57 00 00 00 00 00 6D 0C 78 [15:38:34]RasterBufferAndPrint [15:38:34]line [15:38:34]line [15:38:34]line [15:38:34]line [15:38:34]line [15:38:34]written 0, free lines is 3187 [15:38:34]MH_Cut [15:38:34]Write to MH i2c: D1 01 00 A8 57 01 D1 [15:38:34]Write i2c OK [15:38:34]MH_I2C_Read... [15:38:34]Read from MH i2c: D1 [15:38:34]MH_I2C_Read... [15:38:34]Read from MH i2c: D1 01 00 [15:38:34]MH_I2C_Read... [15:38:34]Read from MH i2c: D1 01 00 A8 57 00 D0 [15:38:34]Write to MH i2c: 01 00 00 A9 57 00 [15:38:34]Write i2c OK [15:38:34]MH_I2C_Read... [15:38:34]OFD Sender: No OFD packet to send [15:38:35]*** Cut start [15:38:35]*** Partial cut [15:38:35]*** CUTSNS_PIN = 1 [15:38:35]*** CUTSNS_PIN = 0 [15:38:35]*** Brake cut motor [15:38:36]Read from MH i2c: 01 [15:38:36]MH_I2C_Read... [15:38:36]*** Stop cut motor [15:38:36]*** Cut end [15:38:36]Read from MH i2c: 01 07 00 [15:38:36]MH_I2C_Read... [15:38:36]Read from MH i2c: 01 07 00 A9 57 00 00 00 00 00 FF 0F 15 [15:38:36]process_action close_receipt done [15:38:36]requested_data is exist [15:38:36]produce_requested_data [15:38:36]requested_item fm.sn is exist - process it [15:38:36]wFMCommunicate request_size=4 [15:38:36]MH_SAM_APDU [15:38:36]CAPDU: 80 11 00 00 [15:38:36]Write to MH i2c: E2 08 00 AA 57 80 11 00 00 00 00 00 00 7B [15:38:36]Write i2c OK [15:38:36]MH_I2C_Read... [15:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:36]Read from MH i2c: E2 [15:38:36]MH_I2C_Read... [15:38:36]Read from MH i2c: E2 17 00 [15:38:36]MH_I2C_Read... [15:38:36]Read from MH i2c: E2 17 00 AA 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CE [15:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:38:36]wFMCommunicate OK [15:38:36]requested_item fd.num is exist - process it [15:38:36]SAM_PROTO_GetFieldsCounters [15:38:36]wFMCommunicate request_size=4 [15:38:36]MH_SAM_APDU [15:38:36]CAPDU: 80 13 00 00 [15:38:36]Write to MH i2c: E2 08 00 AB 57 80 13 00 00 00 00 00 00 7E [15:38:36]Write i2c OK [15:38:36]MH_I2C_Read... [15:38:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:36]Read from MH i2c: E2 [15:38:36]MH_I2C_Read... [15:38:36]Read from MH i2c: E2 62 00 [15:38:36]MH_I2C_Read... [15:38:36]Read from MH i2c: E2 62 00 AB 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [15:38:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:36]wFMCommunicate OK [15:38:36]SAM_PROTO_GetFieldsCounters done [15:38:36]requested_item shift.num is exist - process it [15:38:36]requested_item shift.opened is exist - process it [15:38:36]req_shift_opened [15:38:36]FM_GetShiftState [15:38:36]SAM_PROTO_GetShiftState [15:38:36]wFMCommunicate request_size=4 [15:38:36]MH_SAM_APDU [15:38:36]CAPDU: 80 13 01 00 [15:38:36]Write to MH i2c: E2 08 00 AC 57 80 13 01 00 00 00 00 00 80 [15:38:36]Write i2c OK [15:38:36]MH_I2C_Read... [15:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:36]Read from MH i2c: E2 [15:38:36]MH_I2C_Read... [15:38:36]Read from MH i2c: E2 0E 00 [15:38:36]MH_I2C_Read... [15:38:36]Read from MH i2c: E2 0E 00 AC 57 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D0 [15:38:36]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:38:36]wFMCommunicate OK [15:38:36]SAM_PROTO_GetShiftState done [15:38:36]FM_GetShiftState done [15:38:36]req_shift_opened done [15:38:36]requested_item shift.open_date is exist - process it [15:38:36]req_shift_open_date [15:38:36]req_shift_open_date done [15:38:36]produce_requested_data done [15:38:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192651,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:38:36]process_action_free close_receipt [15:38:36]json_value_free [15:38:36]json_value_free done [15:38:36]process_json_proto returns [15:38:36]Send response to host [15:38:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192651,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:38:36]free response buf [15:38:36]execute_script done [15:38:36]execute_script returns [15:38:36]free content buf [15:38:36]Sock 7.Close socket [15:38:36]Sock 7.Thread stoped [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:57]accept exits with 9 [15:38:57]New connection [15:38:57]New thread 3066563940 created [15:38:57]Thread 3066707300 joined [15:38:57]Waiting for new connection... [15:38:57] Sock 9.Parse request [15:38:57]Sock 9.Check first char [15:38:57]Sock 9.First char is OK [15:38:57]request: POST /json_proto HTTP/1.0 [15:38:57]Method: POST [15:38:57]URL: /json_proto [15:38:57]Method is POST - this is cgi request [15:38:57]url: /json_proto [15:38:57]query_string will be loaded in cgi processing [15:38:57]execute_cgi json_proto POST (null) [15:38:57]execute_cgi path=json_proto method=POST [15:38:57]POST find Content-Length [15:38:57]Host: 172.17.63.131:8080 [15:38:57]Content-Length: 676 [15:38:57]Content-Type: application/json [15:38:57] [15:38:57]POST finish read [15:38:57]Found Content-Length = 676 [15:38:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:57]execute_script... [15:38:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:57]POST & json_proto [15:38:57]process_json_proto [15:38:57]json parsed OK: [15:38:57]protocol is kg_v1.0 [15:38:57]action value=close_receipt [15:38:57]process_action close_receipt [15:38:57]cmd_close_receipt [15:38:57]MH_GetDate [15:38:57]Write to MH i2c: F0 00 00 AD 57 F3 [15:38:57]Write i2c OK [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: F0 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: F0 09 00 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: F0 09 00 AD 57 00 17 B0 1F 67 22 05 6E 64 42 [15:38:57]GetLastDocTimeStamp 1730129918 [15:38:57]current date 1730129943 [15:38:57]FM_GetShiftState [15:38:57]SAM_PROTO_GetShiftState [15:38:57]wFMCommunicate request_size=4 [15:38:57]MH_SAM_APDU [15:38:57]CAPDU: 80 13 01 00 [15:38:57]Write to MH i2c: E2 08 00 AE 57 80 13 01 00 00 00 00 00 82 [15:38:57]Write i2c OK [15:38:57]MH_I2C_Read... [15:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:57]Read from MH i2c: E2 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: E2 0E 00 [15:38:57]MH_I2C_Read... [15:38:57]Read from MH i2c: E2 0E 00 AE 57 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D2 [15:38:57]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:38:57]wFMCommunicate OK [15:38:57]SAM_PROTO_GetShiftState done [15:38:57]FM_GetShiftState done [15:38:57]opened in 1730075620 [15:38:57]opened+sec_in_day 1730162020 [15:38:57]quantity*price = 50041 [15:38:57]sum+1 = 50042 [15:38:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 200 28.10.2024 15:39 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192652 ФПД: 36670426565348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T153903&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192652&fm=36670426565348&tin=02508201610067®Number=0000000000091776&sum=50000 [15:38:58]StoreToDocumentArchive [15:38:58]shift 543 fd 192652 [15:38:58]save to /storage/0543/doc_00192652 [15:38:58]save last doc name /storage/0543/doc_00192652 to /storage/kkm_last_doc_name [15:38:58]save OK [15:38:58]Clear old archive folders... [15:38:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:58]tlvbuf is 01AD84F0 [15:38:58]SAM_PROTO_ClearQueue [15:38:58]wFMCommunicate request_size=4 [15:38:58]MH_SAM_APDU [15:38:58]CAPDU: 80 09 00 00 [15:38:58]Write to MH i2c: E2 08 00 BB 57 80 09 00 00 00 00 00 00 84 [15:38:58]Write i2c OK [15:38:58]MH_I2C_Read... [15:38:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:58]Read from MH i2c: E2 [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: E2 03 00 [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: E2 03 00 BB 57 00 90 00 86 [15:38:58]RAPDU: 90 00 [15:38:58]wFMCommunicate OK [15:38:58]SAM_PROTO_ClearQueue done [15:38:58]KKMCreateOFDPacket [15:38:58]OFDProtocolAddRootSTLVToBuf [15:38:58]FM_MakeSignedData [15:38:58]FM_MakeSignedData [15:38:58]SAM_PROTO_SignData [15:38:58]wFMCommunicate request_size=4 [15:38:58]MH_SAM_APDU [15:38:58]CAPDU: 80 0D 01 02 [15:38:58]Write to MH i2c: E2 08 00 BC 57 80 0D 01 02 00 00 00 00 8C [15:38:58]Write i2c OK [15:38:58]MH_I2C_Read... [15:38:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:58]Read from MH i2c: E2 [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: E2 03 00 [15:38:58]MH_I2C_Read... [15:38:58]Read from MH i2c: E2 03 00 BC 57 00 90 00 87 [15:38:58]RAPDU: 90 00 [15:38:58]wFMCommunicate OK [15:38:58]wFMCommunicate request_size=255 [15:38:58]MH_SAM_APDU [15:38:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 17 B0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C F0 02 00 35 04 06 00 21 [15:38:58]Write to MH i2c: E2 02 01 BD 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 17 B0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C F0 02 00 35 04 06 00 21 00 00 F5 [15:38:58]Write i2c OK [15:38:58]MH_I2C_Read... [15:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:59]Read from MH i2c: E2 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: E2 03 00 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: E2 03 00 BD 57 00 90 00 88 [15:38:59]RAPDU: 90 00 [15:38:59]wFMCommunicate OK [15:38:59]wFMCommunicate request_size=10 [15:38:59]MH_SAM_APDU [15:38:59]CAPDU: 80 0D 02 02 05 59 FF BF CA E4 [15:38:59]Write to MH i2c: E2 0D 00 BE 57 80 0D 02 02 05 00 59 FF BF CA E4 00 00 5E [15:38:59]Write i2c OK [15:38:59]MH_I2C_Read... [15:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:59]Read from MH i2c: E2 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: E2 03 00 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: E2 03 00 BE 57 00 90 00 89 [15:38:59]RAPDU: 90 00 [15:38:59]wFMCommunicate OK [15:38:59]wFMCommunicate request_size=4 [15:38:59]MH_SAM_APDU [15:38:59]CAPDU: 80 0D 03 02 [15:38:59]Write to MH i2c: E2 08 00 BF 57 80 0D 03 02 00 00 00 00 91 [15:38:59]Write i2c OK [15:38:59]MH_I2C_Read... [15:38:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:59]Read from MH i2c: E2 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: E2 0B 00 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: E2 0B 00 BF 57 00 96 AA 38 30 44 9D 47 2C 90 00 8E [15:38:59]RAPDU: 96 AA 38 30 44 9D 47 2C 90 00 [15:38:59]wFMCommunicate OK [15:38:59]SAM_PROTO_SignData done [15:38:59]FM_MakeSignedData done [15:38:59]CreateOFDProtocolMessage [15:38:59]wFMCommunicate request_size=4 [15:38:59]MH_SAM_APDU [15:38:59]CAPDU: 80 11 00 00 [15:38:59]Write to MH i2c: E2 08 00 C0 57 80 11 00 00 00 00 00 00 91 [15:38:59]Write i2c OK [15:38:59]MH_I2C_Read... [15:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:59]Read from MH i2c: E2 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: E2 17 00 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: E2 17 00 C0 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E4 [15:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:38:59]wFMCommunicate OK [15:38:59]CreateOFDProtocolMessage done [15:38:59]OFDSenderStorePacket 192652 [15:38:59]StoreOFDPacket docnum=192652 [15:38:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 41 3E 07 01 E2 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 17 B0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C F0 02 00 35 04 06 00 21 59 FF BF CA E4 96 AA 38 30 44 9D 47 2C [15:38:59]CheckFolder [15:38:59]dirname=/storage/ofd_packets [15:38:59]CheckFolder done [15:38:59]ProducePacketName [15:38:59]name=ofd_packets/00192652 [15:38:59]NVStorageSaveData ofd_packets/00192652 [15:38:59]File name is /storage/ofd_packets/00192652 [15:38:59]Write 301 bytes [15:38:59]NVStorageSaveData done [15:38:59]OFDSenderStorePacket done [15:38:59]KKMCreateOFDPacket done [15:38:59]NVStorageSaveData kkm_last_timestamp [15:38:59]File name is /storage/kkm_last_timestamp [15:38:59]Write 4 bytes [15:38:59]NVStorageSaveData done [15:38:59]ExternCall_PrintAddStr [15:38:59]wPrintStart [15:38:59]Write to MH i2c: 01 00 00 C1 57 18 [15:38:59]Write i2c OK [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: 01 [15:38:59]MH_I2C_Read... [15:38:59]Read from MH i2c: 01 07 00 [15:38:59]MH_I2C_Read... [15:38:59]OFD Sender: Processing packet 192652 [packets to send 75, broken 74] [15:38:59]ProducePacketName [15:38:59]name=ofd_packets/00192652 [15:38:59]OFD Sender: To server: pG, [15:38:59]CommunicateWithHost lk.salyk.kg:30040 [15:38:59]ConnectInit lk.salyk.kg [15:38:59]Read from MH i2c: 01 07 00 C1 57 00 00 00 00 00 FF 0F 2D [15:38:59]RasterBufferAndPrint [15:38:59]line Счет N : (1)31978 [15:38:59]line ИНН: 02508201610067 [15:38:59]line Контрольно-Кассовый Чек [15:38:59]line ПРОДАЖА [15:38:59]line ТРК (МРК, ГНК) : 12 [15:38:59]line Товар: 2710124130 [15:38:59]line Аи-92-К-5 [15:38:59]line 7.480 * 66.90 [15:38:59]line = 500.41 [15:38:59]line НДС 12% НСП 1% [15:38:59]line > о реализуемом товаре [15:38:59]line ОКРУГЛЕНИЕ: -0.41 [15:38:59]line ИТОГО: 500.00 [15:38:59]line Внесено: 500.00 [15:38:59]line СДАЧА: 0.00 [15:38:59]line НСП 1% : 4.43 [15:38:59]line НДС 12% : 53.14 [15:38:59]line Наличными: 500.00 [15:38:59]line Безнал.: 0.00 [15:38:59]line Место: АЗС № 170 "Партнер Нефть" [15:38:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:38:59]line СНО: Общий режим [15:38:59]line Чек 200 28.10.2024 15:39 [15:38:59]line Смена: 543 ФФД: 1.0 [15:38:59]line ЗНМ: 0300000110 [15:38:59]line РНМ: 0000000000091776 [15:38:59]line Версия ККМ: 001 [15:38:59]line ФМ: 0000000000871754 [15:38:59]line ФД: 192652 [15:38:59]line ФПД: 36670426565348 [15:38:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T153903&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192652&fm=36670426565348&tin=02508201610067®Number=0000000000091776&sum=50000 [15:38:59]Connected sock=10 [15:38:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 41 3E 07 01 E2 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 17 B0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C F0 02 00 35 04 06 00 21 59 FF BF CA E4 96 AA 38 30 44 9D 47 2C [15:38:59]written 0, free lines is 4095 [15:38:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6D 9C 47 00 70 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C F0 02 00 F4 03 04 00 DB 54 1F 67 B6 04 01 00 00 AB E7 C9 79 35 11 90 B9 [15:38:59]CommunicateWithHost err = 0 [15:38:59]CheckOFDResponse [15:38:59]1017 (14) - 77093643461234 [15:38:59]1041 (16) - 0000000000871754 [15:38:59]1040 (4) - 192652 [15:38:59]1012 (4) - 28.10.2024 09:09 [15:38:59]1206 (1) - 0 [15:38:59]OFD Sender: Remove packet 192652 [15:38:59]ProducePacketName [15:38:59]name=ofd_packets/00192652 [15:38:59]NVStorageDeleteData [15:39:00]Write to MH i2c: 01 00 00 EC 57 43 [15:39:00]Write i2c OK [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: 01 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: 01 07 00 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: 01 07 00 EC 57 00 00 00 00 00 D4 0C 2A [15:39:00]RasterBufferAndPrint [15:39:00]line [15:39:00]line [15:39:00]line [15:39:00]line [15:39:00]line [15:39:00]written 0, free lines is 3292 [15:39:00]MH_Cut [15:39:00]Write to MH i2c: D1 01 00 F3 57 01 1C [15:39:00]Write i2c OK [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: D1 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: D1 01 00 [15:39:00]MH_I2C_Read... [15:39:00]Read from MH i2c: D1 01 00 F3 57 00 1B [15:39:00]Write to MH i2c: 01 00 00 F4 57 4B [15:39:00]Write i2c OK [15:39:00]MH_I2C_Read... [15:39:00]OFD Sender: No OFD packet to send [15:39:00]*** Cut start [15:39:00]*** Partial cut [15:39:00]*** CUTSNS_PIN = 1 [15:39:00]*** CUTSNS_PIN = 0 [15:39:01]*** Brake cut motor [15:39:01]Read from MH i2c: 01 [15:39:01]MH_I2C_Read... [15:39:01]*** Stop cut motor [15:39:01]*** Cut end [15:39:01]Read from MH i2c: 01 07 00 [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: 01 07 00 F4 57 00 00 00 00 00 FF 0F 60 [15:39:01]process_action close_receipt done [15:39:01]requested_data is exist [15:39:01]produce_requested_data [15:39:01]requested_item fm.sn is exist - process it [15:39:01]wFMCommunicate request_size=4 [15:39:01]MH_SAM_APDU [15:39:01]CAPDU: 80 11 00 00 [15:39:01]Write to MH i2c: E2 08 00 F5 57 80 11 00 00 00 00 00 00 C6 [15:39:01]Write i2c OK [15:39:01]MH_I2C_Read... [15:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:01]Read from MH i2c: E2 [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: E2 17 00 [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: E2 17 00 F5 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 19 [15:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:39:01]wFMCommunicate OK [15:39:01]requested_item fd.num is exist - process it [15:39:01]SAM_PROTO_GetFieldsCounters [15:39:01]wFMCommunicate request_size=4 [15:39:01]MH_SAM_APDU [15:39:01]CAPDU: 80 13 00 00 [15:39:01]Write to MH i2c: E2 08 00 F6 57 80 13 00 00 00 00 00 00 C9 [15:39:01]Write i2c OK [15:39:01]MH_I2C_Read... [15:39:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:01]Read from MH i2c: E2 [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: E2 62 00 [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: E2 62 00 F6 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [15:39:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:01]wFMCommunicate OK [15:39:01]SAM_PROTO_GetFieldsCounters done [15:39:01]requested_item shift.num is exist - process it [15:39:01]requested_item shift.opened is exist - process it [15:39:01]req_shift_opened [15:39:01]FM_GetShiftState [15:39:01]SAM_PROTO_GetShiftState [15:39:01]wFMCommunicate request_size=4 [15:39:01]MH_SAM_APDU [15:39:01]CAPDU: 80 13 01 00 [15:39:01]Write to MH i2c: E2 08 00 F7 57 80 13 01 00 00 00 00 00 CB [15:39:01]Write i2c OK [15:39:01]MH_I2C_Read... [15:39:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:01]Read from MH i2c: E2 [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: E2 0E 00 [15:39:01]MH_I2C_Read... [15:39:01]Read from MH i2c: E2 0E 00 F7 57 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1B [15:39:01]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:39:01]wFMCommunicate OK [15:39:01]SAM_PROTO_GetShiftState done [15:39:01]FM_GetShiftState done [15:39:01]req_shift_opened done [15:39:01]requested_item shift.open_date is exist - process it [15:39:01]req_shift_open_date [15:39:01]req_shift_open_date done [15:39:01]produce_requested_data done [15:39:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192652,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:39:01]process_action_free close_receipt [15:39:01]json_value_free [15:39:01]json_value_free done [15:39:01]process_json_proto returns [15:39:01]Send response to host [15:39:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192652,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:39:01]free response buf [15:39:01]execute_script done [15:39:01]execute_script returns [15:39:01]free content buf [15:39:01]Sock 9.Close socket [15:39:01]Sock 9.Thread stoped [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:23]accept exits with 7 [15:40:23]New connection [15:40:23]New thread 3066707300 created [15:40:23]Thread 3066563940 joined [15:40:23]Waiting for new connection... [15:40:23] Sock 7.Parse request [15:40:23]Sock 7.Check first char [15:40:23]Sock 7.First char is OK [15:40:23]request: POST /json_proto HTTP/1.0 [15:40:23]Method: POST [15:40:23]URL: /json_proto [15:40:23]Method is POST - this is cgi request [15:40:23]url: /json_proto [15:40:23]query_string will be loaded in cgi processing [15:40:23]execute_cgi json_proto POST (null) [15:40:23]execute_cgi path=json_proto method=POST [15:40:23]POST find Content-Length [15:40:23]Host: 172.17.63.131:8080 [15:40:23]Content-Length: 676 [15:40:23]Content-Type: application/json [15:40:23] [15:40:23]POST finish read [15:40:23]Found Content-Length = 676 [15:40:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:23]execute_script... [15:40: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)31979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:23]POST & json_proto [15:40:23]process_json_proto [15:40:23]json parsed OK: [15:40:23]protocol is kg_v1.0 [15:40:23]action value=close_receipt [15:40:23]process_action close_receipt [15:40:23]cmd_close_receipt [15:40:23]MH_GetDate [15:40:23]Write to MH i2c: F0 00 00 F8 57 3E [15:40:23]Write i2c OK [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: F0 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: F0 09 00 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: F0 09 00 F8 57 00 6D B0 1F 67 22 05 6E 64 E3 [15:40:23]GetLastDocTimeStamp 1730129943 [15:40:23]current date 1730130029 [15:40:23]FM_GetShiftState [15:40:23]SAM_PROTO_GetShiftState [15:40:23]wFMCommunicate request_size=4 [15:40:23]MH_SAM_APDU [15:40:23]CAPDU: 80 13 01 00 [15:40:23]Write to MH i2c: E2 08 00 F9 57 80 13 01 00 00 00 00 00 CD [15:40:23]Write i2c OK [15:40:23]MH_I2C_Read... [15:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:23]Read from MH i2c: E2 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: E2 0E 00 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: E2 0E 00 F9 57 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1D [15:40:23]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:40:23]wFMCommunicate OK [15:40:23]SAM_PROTO_GetShiftState done [15:40:23]FM_GetShiftState done [15:40:23]opened in 1730075620 [15:40:23]opened+sec_in_day 1730162020 [15:40:23]quantity*price = 40006 [15:40:23]sum+1 = 40007 [15:40:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 201 28.10.2024 15:40 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192653 ФПД: 246493803023668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T154029&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192653&fm=246493803023668&tin=02508201610067®Number=0000000000091776&sum=40000 [15:40:24]StoreToDocumentArchive [15:40:24]shift 543 fd 192653 [15:40:24]save to /storage/0543/doc_00192653 [15:40:24]save last doc name /storage/0543/doc_00192653 to /storage/kkm_last_doc_name [15:40:24]save OK [15:40:24]Clear old archive folders... [15:40:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:24]tlvbuf is B6D6C450 [15:40:24]SAM_PROTO_ClearQueue [15:40:24]wFMCommunicate request_size=4 [15:40:24]MH_SAM_APDU [15:40:24]CAPDU: 80 09 00 00 [15:40:24]Write to MH i2c: E2 08 00 06 58 80 09 00 00 00 00 00 00 D0 [15:40:24]Write i2c OK [15:40:24]MH_I2C_Read... [15:40:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:24]Read from MH i2c: E2 [15:40:24]MH_I2C_Read... [15:40:24]Read from MH i2c: E2 03 00 [15:40:24]MH_I2C_Read... [15:40:24]Read from MH i2c: E2 03 00 06 58 00 90 00 D2 [15:40:24]RAPDU: 90 00 [15:40:24]wFMCommunicate OK [15:40:24]SAM_PROTO_ClearQueue done [15:40:24]KKMCreateOFDPacket [15:40:24]OFDProtocolAddRootSTLVToBuf [15:40:24]FM_MakeSignedData [15:40:24]FM_MakeSignedData [15:40:24]SAM_PROTO_SignData [15:40:24]wFMCommunicate request_size=4 [15:40:24]MH_SAM_APDU [15:40:24]CAPDU: 80 0D 01 02 [15:40:24]Write to MH i2c: E2 08 00 07 58 80 0D 01 02 00 00 00 00 D8 [15:40:24]Write i2c OK [15:40:24]MH_I2C_Read... [15:40:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:24]Read from MH i2c: E2 [15:40:24]MH_I2C_Read... [15:40:24]Read from MH i2c: E2 03 00 [15:40:24]MH_I2C_Read... [15:40:24]Read from MH i2c: E2 03 00 07 58 00 90 00 D3 [15:40:24]RAPDU: 90 00 [15:40:24]wFMCommunicate OK [15:40:24]wFMCommunicate request_size=255 [15:40:24]MH_SAM_APDU [15:40: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 6D B0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D F0 02 00 35 04 06 00 E0 [15:40:24]Write to MH i2c: E2 02 01 08 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 6D B0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D F0 02 00 35 04 06 00 E0 00 00 27 [15:40:24]Write i2c OK [15:40:24]MH_I2C_Read... [15:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:25]Read from MH i2c: E2 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 03 00 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 03 00 08 58 00 90 00 D4 [15:40:25]RAPDU: 90 00 [15:40:25]wFMCommunicate OK [15:40:25]wFMCommunicate request_size=10 [15:40:25]MH_SAM_APDU [15:40:25]CAPDU: 80 0D 02 02 05 2F 4F 91 8D 34 [15:40:25]Write to MH i2c: E2 0D 00 09 58 80 0D 02 02 05 00 2F 4F 91 8D 34 00 00 B5 [15:40:25]Write i2c OK [15:40:25]MH_I2C_Read... [15:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:25]Read from MH i2c: E2 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 03 00 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 03 00 09 58 00 90 00 D5 [15:40:25]RAPDU: 90 00 [15:40:25]wFMCommunicate OK [15:40:25]wFMCommunicate request_size=4 [15:40:25]MH_SAM_APDU [15:40:25]CAPDU: 80 0D 03 02 [15:40:25]Write to MH i2c: E2 08 00 0A 58 80 0D 03 02 00 00 00 00 DD [15:40:25]Write i2c OK [15:40:25]MH_I2C_Read... [15:40:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:25]Read from MH i2c: E2 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 0B 00 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 0B 00 0A 58 00 0D FC 7F 48 72 65 36 2F 90 00 EA [15:40:25]RAPDU: 0D FC 7F 48 72 65 36 2F 90 00 [15:40:25]wFMCommunicate OK [15:40:25]SAM_PROTO_SignData done [15:40:25]FM_MakeSignedData done [15:40:25]CreateOFDProtocolMessage [15:40:25]wFMCommunicate request_size=4 [15:40:25]MH_SAM_APDU [15:40:25]CAPDU: 80 11 00 00 [15:40:25]Write to MH i2c: E2 08 00 0B 58 80 11 00 00 00 00 00 00 DD [15:40:25]Write i2c OK [15:40:25]MH_I2C_Read... [15:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:25]Read from MH i2c: E2 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 17 00 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 17 00 0B 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 30 [15:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:40:25]wFMCommunicate OK [15:40:25]CreateOFDProtocolMessage done [15:40:25]OFDSenderStorePacket 192653 [15:40:25]StoreOFDPacket docnum=192653 [15:40:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 83 B4 07 01 48 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 6D B0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D F0 02 00 35 04 06 00 E0 2F 4F 91 8D 34 0D FC 7F 48 72 65 36 2F [15:40:25]CheckFolder [15:40:25]dirname=/storage/ofd_packets [15:40:25]CheckFolder done [15:40:25]ProducePacketName [15:40:25]name=ofd_packets/00192653 [15:40:25]NVStorageSaveData ofd_packets/00192653 [15:40:25]File name is /storage/ofd_packets/00192653 [15:40:25]Write 301 bytes [15:40:25]NVStorageSaveData done [15:40:25]OFDSenderStorePacket done [15:40:25]KKMCreateOFDPacket done [15:40:25]NVStorageSaveData kkm_last_timestamp [15:40:25]File name is /storage/kkm_last_timestamp [15:40:25]Write 4 bytes [15:40:25]NVStorageSaveData done [15:40:25]ExternCall_PrintAddStr [15:40:25]wPrintStart [15:40:25]Write to MH i2c: 01 00 00 0C 58 64 [15:40:25]Write i2c OK [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: 01 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: 01 07 00 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: 01 07 00 0C 58 00 00 00 00 00 FF 0F 79 [15:40:25]RasterBufferAndPrint [15:40:25]line Счет N : (1)31979 [15:40:25]line ИНН: 02508201610067 [15:40:25]line Контрольно-Кассовый Чек [15:40:25]line ПРОДАЖА [15:40:25]line ТРК (МРК, ГНК) : 21 [15:40:25]line Товар: 2710124130 [15:40:25]line Аи-92-К-5 [15:40:25]line 5.980 * 66.90 [15:40:25]line = 400.06 [15:40:25]line НДС 12% НСП 1% [15:40:25]line > о реализуемом товаре [15:40:25]line ОКРУГЛЕНИЕ: -0.06 [15:40:25]line ИТОГО: 400.00 [15:40:25]line Внесено: 400.00 [15:40:25]line СДАЧА: 0.00 [15:40:25]line НСП 1% : 3.54 [15:40:25]line НДС 12% : 42.48 [15:40:25]line Наличными: 400.00 [15:40:25]line Безнал.: 0.00 [15:40:25]line Место: АЗС № 170 "Партнер Нефть" [15:40:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:40:25]line СНО: Общий режим [15:40:25]line Чек 201 28.10.2024 15:40 [15:40:25]line Смена: 543 ФФД: 1.0 [15:40:25]line ЗНМ: 0300000110 [15:40:25]line РНМ: 0000000000091776 [15:40:25]line Версия ККМ: 001 [15:40:25]line ФМ: 0000000000871754 [15:40:25]line ФД: 192653 [15:40:25]line ФПД: 246493803023668 [15:40:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T154029&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192653&fm=246493803023668&tin=02508201610067®Number=0000000000091776&sum=40000 [15:40:25]OFD Sender: Processing packet 192653 [packets to send 75, broken 74] [15:40:25]ProducePacketName [15:40:25]name=ofd_packets/00192653 [15:40:25]OFD Sender: To server: pG, [15:40:25]CommunicateWithHost lk.salyk.kg:30040 [15:40:25]ConnectInit lk.salyk.kg [15:40:25]written 0, free lines is 4095 [15:40:25]Connected sock=10 [15:40:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 83 B4 07 01 48 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 6D B0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D F0 02 00 35 04 06 00 E0 2F 4F 91 8D 34 0D FC 7F 48 72 65 36 2F [15:40:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 54 95 47 00 54 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D F0 02 00 F4 03 04 00 31 55 1F 67 B6 04 01 00 00 4B 82 2D 7C CC 8F 31 F4 [15:40:25]CommunicateWithHost err = 0 [15:40:25]CheckOFDResponse [15:40:25]1017 (14) - 77093643461234 [15:40:25]1041 (16) - 0000000000871754 [15:40:25]1040 (4) - 192653 [15:40:25]1012 (4) - 28.10.2024 09:11 [15:40:25]1206 (1) - 0 [15:40:25]OFD Sender: Remove packet 192653 [15:40:25]ProducePacketName [15:40:25]name=ofd_packets/00192653 [15:40:25]NVStorageDeleteData [15:40:26]Write to MH i2c: 01 00 00 37 58 8F [15:40:26]Write i2c OK [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: 01 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: 01 07 00 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: 01 07 00 37 58 00 00 00 00 00 C6 0C 68 [15:40:26]RasterBufferAndPrint [15:40:26]line [15:40:26]line [15:40:26]line [15:40:26]line [15:40:26]line [15:40:26]written 0, free lines is 3276 [15:40:26]MH_Cut [15:40:26]Write to MH i2c: D1 01 00 3E 58 01 68 [15:40:26]Write i2c OK [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: D1 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: D1 01 00 [15:40:26]MH_I2C_Read... [15:40:26]Read from MH i2c: D1 01 00 3E 58 00 67 [15:40:26]Write to MH i2c: 01 00 00 3F 58 97 [15:40:26]Write i2c OK [15:40:26]MH_I2C_Read... [15:40:26]OFD Sender: No OFD packet to send [15:40:26]*** Cut start [15:40:26]*** Partial cut [15:40:26]*** CUTSNS_PIN = 1 [15:40:26]*** CUTSNS_PIN = 0 [15:40:27]*** Brake cut motor [15:40:27]Read from MH i2c: 01 [15:40:27]MH_I2C_Read... [15:40:27]*** Stop cut motor [15:40:27]*** Cut end [15:40:27]Read from MH i2c: 01 07 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: 01 07 00 3F 58 00 00 00 00 00 FF 0F AC [15:40:27]process_action close_receipt done [15:40:27]requested_data is exist [15:40:27]produce_requested_data [15:40:27]requested_item fm.sn is exist - process it [15:40:27]wFMCommunicate request_size=4 [15:40:27]MH_SAM_APDU [15:40:27]CAPDU: 80 11 00 00 [15:40:27]Write to MH i2c: E2 08 00 40 58 80 11 00 00 00 00 00 00 12 [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:27]Read from MH i2c: E2 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 17 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 17 00 40 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 65 [15:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:40:27]wFMCommunicate OK [15:40:27]requested_item fd.num is exist - process it [15:40:27]SAM_PROTO_GetFieldsCounters [15:40:27]wFMCommunicate request_size=4 [15:40:27]MH_SAM_APDU [15:40:27]CAPDU: 80 13 00 00 [15:40:27]Write to MH i2c: E2 08 00 41 58 80 13 00 00 00 00 00 00 15 [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:27]Read from MH i2c: E2 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 62 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 62 00 41 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [15:40:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:27]wFMCommunicate OK [15:40:27]SAM_PROTO_GetFieldsCounters done [15:40:27]requested_item shift.num is exist - process it [15:40:27]requested_item shift.opened is exist - process it [15:40:27]req_shift_opened [15:40:27]FM_GetShiftState [15:40:27]SAM_PROTO_GetShiftState [15:40:27]wFMCommunicate request_size=4 [15:40:27]MH_SAM_APDU [15:40:27]CAPDU: 80 13 01 00 [15:40:27]Write to MH i2c: E2 08 00 42 58 80 13 01 00 00 00 00 00 17 [15:40:27]Write i2c OK [15:40:27]MH_I2C_Read... [15:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:27]Read from MH i2c: E2 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 0E 00 [15:40:27]MH_I2C_Read... [15:40:27]Read from MH i2c: E2 0E 00 42 58 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 67 [15:40:27]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:40:27]wFMCommunicate OK [15:40:27]SAM_PROTO_GetShiftState done [15:40:27]FM_GetShiftState done [15:40:27]req_shift_opened done [15:40:27]requested_item shift.open_date is exist - process it [15:40:27]req_shift_open_date [15:40:27]req_shift_open_date done [15:40:27]produce_requested_data done [15:40:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192653,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:40:27]process_action_free close_receipt [15:40:27]json_value_free [15:40:27]json_value_free done [15:40:27]process_json_proto returns [15:40:27]Send response to host [15:40:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192653,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:40:27]free response buf [15:40:27]execute_script done [15:40:27]execute_script returns [15:40:27]free content buf [15:40:27]Sock 7.Close socket [15:40:27]Sock 7.Thread stoped [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]accept exits with 9 [15:42:51]New connection [15:42:51]New thread 3066563940 created [15:42:51]Thread 3066707300 joined [15:42:51]Waiting for new connection... [15:42:51] Sock 9.Parse request [15:42:51]Sock 9.Check first char [15:42:51]Sock 9.First char is OK [15:42:51]request: POST /json_proto HTTP/1.0 [15:42:51]Method: POST [15:42:51]URL: /json_proto [15:42:51]Method is POST - this is cgi request [15:42:51]url: /json_proto [15:42:51]query_string will be loaded in cgi processing [15:42:51]execute_cgi json_proto POST (null) [15:42:51]execute_cgi path=json_proto method=POST [15:42:51]POST find Content-Length [15:42:51]Host: 172.17.63.131:8080 [15:42:51]Content-Length: 677 [15:42:51]Content-Type: application/json [15:42:51] [15:42:51]POST finish read [15:42:51]Found Content-Length = 677 [15:42:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.710, "sum" : 850.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:51]execute_script... [15:42: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)31981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.710, "sum" : 850.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:51]POST & json_proto [15:42:51]process_json_proto [15:42:51]json parsed OK: [15:42:51]protocol is kg_v1.0 [15:42:51]action value=close_receipt [15:42:51]process_action close_receipt [15:42:51]cmd_close_receipt [15:42:51]MH_GetDate [15:42:51]Write to MH i2c: F0 00 00 43 58 8A [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: F0 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: F0 09 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: F0 09 00 43 58 00 01 B1 1F 67 22 05 6E 64 C4 [15:42:51]GetLastDocTimeStamp 1730130029 [15:42:51]current date 1730130177 [15:42:51]FM_GetShiftState [15:42:51]SAM_PROTO_GetShiftState [15:42:51]wFMCommunicate request_size=4 [15:42:51]MH_SAM_APDU [15:42:51]CAPDU: 80 13 01 00 [15:42:51]Write to MH i2c: E2 08 00 44 58 80 13 01 00 00 00 00 00 19 [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:51]Read from MH i2c: E2 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 0E 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 0E 00 44 58 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 69 [15:42:51]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:42:51]wFMCommunicate OK [15:42:51]SAM_PROTO_GetShiftState done [15:42:51]FM_GetShiftState done [15:42:51]opened in 1730075620 [15:42:51]opened+sec_in_day 1730162020 [15:42:51]quantity*price = 85029 [15:42:51]sum+1 = 85031 [15:42:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.30 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 202 28.10.2024 15:42 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192654 ФПД: 250357139970132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T154257&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192654&fm=250357139970132&tin=02508201610067®Number=0000000000091776&sum=85000 [15:42:52]StoreToDocumentArchive [15:42:52]shift 543 fd 192654 [15:42:52]save to /storage/0543/doc_00192654 [15:42:52]save last doc name /storage/0543/doc_00192654 to /storage/kkm_last_doc_name [15:42:52]save OK [15:42:52]Clear old archive folders... [15:42:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:52]tlvbuf is 01AC8330 [15:42:52]SAM_PROTO_ClearQueue [15:42:52]wFMCommunicate request_size=4 [15:42:52]MH_SAM_APDU [15:42:52]CAPDU: 80 09 00 00 [15:42:52]Write to MH i2c: E2 08 00 51 58 80 09 00 00 00 00 00 00 1B [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:52]Read from MH i2c: E2 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 03 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 03 00 51 58 00 90 00 1D [15:42:52]RAPDU: 90 00 [15:42:52]wFMCommunicate OK [15:42:52]SAM_PROTO_ClearQueue done [15:42:52]KKMCreateOFDPacket [15:42:52]OFDProtocolAddRootSTLVToBuf [15:42:52]FM_MakeSignedData [15:42:52]FM_MakeSignedData [15:42:52]SAM_PROTO_SignData [15:42:52]wFMCommunicate request_size=4 [15:42:52]MH_SAM_APDU [15:42:52]CAPDU: 80 0D 01 02 [15:42:52]Write to MH i2c: E2 08 00 52 58 80 0D 01 02 00 00 00 00 23 [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:52]Read from MH i2c: E2 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 03 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 03 00 52 58 00 90 00 1E [15:42:52]RAPDU: 90 00 [15:42:52]wFMCommunicate OK [15:42:52]wFMCommunicate request_size=255 [15:42:52]MH_SAM_APDU [15:42:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 01 B1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E F0 02 00 35 04 06 00 E3 [15:42:52]Write to MH i2c: E2 02 01 53 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 01 B1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E F0 02 00 35 04 06 00 E3 00 00 43 [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:52]Read from MH i2c: E2 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 03 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 03 00 53 58 00 90 00 1F [15:42:52]RAPDU: 90 00 [15:42:52]wFMCommunicate OK [15:42:52]wFMCommunicate request_size=10 [15:42:52]MH_SAM_APDU [15:42:52]CAPDU: 80 0D 02 02 05 B2 D0 65 18 54 [15:42:52]Write to MH i2c: E2 0D 00 54 58 80 0D 02 02 05 00 B2 D0 65 18 54 00 00 83 [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:52]Read from MH i2c: E2 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 03 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 03 00 54 58 00 90 00 20 [15:42:52]RAPDU: 90 00 [15:42:52]wFMCommunicate OK [15:42:52]wFMCommunicate request_size=4 [15:42:52]MH_SAM_APDU [15:42:52]CAPDU: 80 0D 03 02 [15:42:52]Write to MH i2c: E2 08 00 55 58 80 0D 03 02 00 00 00 00 28 [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:52]Read from MH i2c: E2 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 0B 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 0B 00 55 58 00 18 B4 B7 99 9B 43 FA 45 90 00 62 [15:42:52]RAPDU: 18 B4 B7 99 9B 43 FA 45 90 00 [15:42:52]wFMCommunicate OK [15:42:52]SAM_PROTO_SignData done [15:42:52]FM_MakeSignedData done [15:42:52]CreateOFDProtocolMessage [15:42:52]wFMCommunicate request_size=4 [15:42:52]MH_SAM_APDU [15:42:52]CAPDU: 80 11 00 00 [15:42:52]Write to MH i2c: E2 08 00 56 58 80 11 00 00 00 00 00 00 28 [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:52]Read from MH i2c: E2 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 17 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: E2 17 00 56 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7B [15:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:42:52]wFMCommunicate OK [15:42:52]CreateOFDProtocolMessage done [15:42:52]OFDSenderStorePacket 192654 [15:42:52]StoreOFDPacket docnum=192654 [15:42:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0C 1C 07 01 4E D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 01 B1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E F0 02 00 35 04 06 00 E3 B2 D0 65 18 54 18 B4 B7 99 9B 43 FA 45 [15:42:52]CheckFolder [15:42:52]dirname=/storage/ofd_packets [15:42:52]CheckFolder done [15:42:52]ProducePacketName [15:42:52]name=ofd_packets/00192654 [15:42:52]NVStorageSaveData ofd_packets/00192654 [15:42:52]File name is /storage/ofd_packets/00192654 [15:42:52]Write 301 bytes [15:42:52]NVStorageSaveData done [15:42:52]OFDSenderStorePacket done [15:42:52]KKMCreateOFDPacket done [15:42:52]NVStorageSaveData kkm_last_timestamp [15:42:52]File name is /storage/kkm_last_timestamp [15:42:52]Write 4 bytes [15:42:52]NVStorageSaveData done [15:42:52]ExternCall_PrintAddStr [15:42:52]wPrintStart [15:42:52]Write to MH i2c: 01 00 00 57 58 AF [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: 01 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: 01 07 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: 01 07 00 57 58 00 00 00 00 00 FF 0F C4 [15:42:52]RasterBufferAndPrint [15:42:52]line Счет N : (1)31981 [15:42:52]line ИНН: 02508201610067 [15:42:52]line Контрольно-Кассовый Чек [15:42:52]line ПРОДАЖА [15:42:52]line ТРК (МРК, ГНК) : 12 [15:42:52]line Товар: 2710124130 [15:42:52]line Аи-92-К-5 [15:42:52]line 12.710 * 66.90 [15:42:52]line = 850.30 [15:42:52]line НДС 12% НСП 1% [15:42:52]line > о реализуемом товаре [15:42:52]line ОКРУГЛЕНИЕ: -0.30 [15:42:52]line ИТОГО: 850.00 [15:42:52]line Внесено: 850.00 [15:42:52]line СДАЧА: 0.00 [15:42:52]line НСП 1% : 7.52 [15:42:52]line НДС 12% : 90.30 [15:42:52]line Наличными: 850.00 [15:42:52]line Безнал.: 0.00 [15:42:52]line Место: АЗС № 170 "Партнер Нефть" [15:42:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:42:52]line СНО: Общий режим [15:42:52]line Чек 202 28.10.2024 15:42 [15:42:52]line Смена: 543 ФФД: 1.0 [15:42:52]line ЗНМ: 0300000110 [15:42:52]line РНМ: 0000000000091776 [15:42:52]line Версия ККМ: 001 [15:42:52]line ФМ: 0000000000871754 [15:42:52]line ФД: 192654 [15:42:52]line ФПД: 250357139970132 [15:42:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T154257&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192654&fm=250357139970132&tin=02508201610067®Number=0000000000091776&sum=85000 [15:42:53]OFD Sender: Processing packet 192654 [packets to send 75, broken 74] [15:42:53]ProducePacketName [15:42:53]name=ofd_packets/00192654 [15:42:53]OFD Sender: To server: pG, [15:42:53]CommunicateWithHost lk.salyk.kg:30040 [15:42:53]ConnectInit lk.salyk.kg [15:42:53]written 0, free lines is 4095 [15:42:53]Connected sock=10 [15:42:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0C 1C 07 01 4E D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 01 B1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E F0 02 00 35 04 06 00 E3 B2 D0 65 18 54 18 B4 B7 99 9B 43 FA 45 [15:42:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1F 3F 47 00 04 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E F0 02 00 F4 03 04 00 C4 55 1F 67 B6 04 01 00 00 BF 08 35 29 D0 D3 29 AC [15:42:53]CommunicateWithHost err = 0 [15:42:53]CheckOFDResponse [15:42:53]1017 (14) - 77093643461234 [15:42:53]1041 (16) - 0000000000871754 [15:42:53]1040 (4) - 192654 [15:42:53]1012 (4) - 28.10.2024 09:13 [15:42:53]1206 (1) - 0 [15:42:53]OFD Sender: Remove packet 192654 [15:42:53]ProducePacketName [15:42:53]name=ofd_packets/00192654 [15:42:53]NVStorageDeleteData [15:42:53]Write to MH i2c: 01 00 00 82 58 DA [15:42:53]Write i2c OK [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: 01 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: 01 07 00 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: 01 07 00 82 58 00 00 00 00 00 C1 0C AE [15:42:53]RasterBufferAndPrint [15:42:53]line [15:42:53]line [15:42:53]line [15:42:53]line [15:42:53]line [15:42:53]written 0, free lines is 3274 [15:42:53]MH_Cut [15:42:53]Write to MH i2c: D1 01 00 89 58 01 B3 [15:42:53]Write i2c OK [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: D1 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: D1 01 00 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: D1 01 00 89 58 00 B2 [15:42:53]Write to MH i2c: 01 00 00 8A 58 E2 [15:42:53]Write i2c OK [15:42:53]MH_I2C_Read... [15:42:54]OFD Sender: No OFD packet to send [15:42:54]*** Cut start [15:42:54]*** Partial cut [15:42:54]*** CUTSNS_PIN = 1 [15:42:54]*** CUTSNS_PIN = 0 [15:42:54]*** Brake cut motor [15:42:55]Read from MH i2c: 01 [15:42:55]MH_I2C_Read... [15:42:55]*** Stop cut motor [15:42:55]*** Cut end [15:42:55]Read from MH i2c: 01 07 00 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: 01 07 00 8A 58 00 00 00 00 00 FF 0F F7 [15:42:55]process_action close_receipt done [15:42:55]requested_data is exist [15:42:55]produce_requested_data [15:42:55]requested_item fm.sn is exist - process it [15:42:55]wFMCommunicate request_size=4 [15:42:55]MH_SAM_APDU [15:42:55]CAPDU: 80 11 00 00 [15:42:55]Write to MH i2c: E2 08 00 8B 58 80 11 00 00 00 00 00 00 5D [15:42:55]Write i2c OK [15:42:55]MH_I2C_Read... [15:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:55]Read from MH i2c: E2 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 17 00 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 17 00 8B 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B0 [15:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:42:55]wFMCommunicate OK [15:42:55]requested_item fd.num is exist - process it [15:42:55]SAM_PROTO_GetFieldsCounters [15:42:55]wFMCommunicate request_size=4 [15:42:55]MH_SAM_APDU [15:42:55]CAPDU: 80 13 00 00 [15:42:55]Write to MH i2c: E2 08 00 8C 58 80 13 00 00 00 00 00 00 60 [15:42:55]Write i2c OK [15:42:55]MH_I2C_Read... [15:42:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:55]Read from MH i2c: E2 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 62 00 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 62 00 8C 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [15:42:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:55]wFMCommunicate OK [15:42:55]SAM_PROTO_GetFieldsCounters done [15:42:55]requested_item shift.num is exist - process it [15:42:55]requested_item shift.opened is exist - process it [15:42:55]req_shift_opened [15:42:55]FM_GetShiftState [15:42:55]SAM_PROTO_GetShiftState [15:42:55]wFMCommunicate request_size=4 [15:42:55]MH_SAM_APDU [15:42:55]CAPDU: 80 13 01 00 [15:42:55]Write to MH i2c: E2 08 00 8D 58 80 13 01 00 00 00 00 00 62 [15:42:55]Write i2c OK [15:42:55]MH_I2C_Read... [15:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:55]Read from MH i2c: E2 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 0E 00 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 0E 00 8D 58 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B2 [15:42:55]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:42:55]wFMCommunicate OK [15:42:55]SAM_PROTO_GetShiftState done [15:42:55]FM_GetShiftState done [15:42:55]req_shift_opened done [15:42:55]requested_item shift.open_date is exist - process it [15:42:55]req_shift_open_date [15:42:55]req_shift_open_date done [15:42:55]produce_requested_data done [15:42:55]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192654,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:42:55]process_action_free close_receipt [15:42:55]json_value_free [15:42:55]json_value_free done [15:42:55]process_json_proto returns [15:42:55]Send response to host [15:42:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192654,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:42:55]free response buf [15:42:55]execute_script done [15:42:55]execute_script returns [15:42:55]free content buf [15:42:55]Sock 9.Close socket [15:42:55]Sock 9.Thread stoped [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:37]accept exits with 7 [15:44:37]New connection [15:44:37]New thread 3066707300 created [15:44:37]Thread 3066563940 joined [15:44:37]Waiting for new connection... [15:44:37] Sock 7.Parse request [15:44:37]Sock 7.Check first char [15:44:37]Sock 7.First char is OK [15:44:37]request: POST /json_proto HTTP/1.0 [15:44:37]Method: POST [15:44:37]URL: /json_proto [15:44:37]Method is POST - this is cgi request [15:44:37]url: /json_proto [15:44:37]query_string will be loaded in cgi processing [15:44:37]execute_cgi json_proto POST (null) [15:44:37]execute_cgi path=json_proto method=POST [15:44:37]POST find Content-Length [15:44:37]Host: 172.17.63.131:8080 [15:44:37]Content-Length: 678 [15:44:37]Content-Type: application/json [15:44:37] [15:44:37]POST finish read [15:44:37]Found Content-Length = 678 [15:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:37]execute_script... [15:44: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)31982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:37]POST & json_proto [15:44:37]process_json_proto [15:44:37]json parsed OK: [15:44:37]protocol is kg_v1.0 [15:44:37]action value=close_receipt [15:44:37]process_action close_receipt [15:44:37]cmd_close_receipt [15:44:37]MH_GetDate [15:44:37]Write to MH i2c: F0 00 00 8E 58 D5 [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: F0 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: F0 09 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: F0 09 00 8E 58 00 6A B1 1F 67 22 05 6E 64 78 [15:44:37]GetLastDocTimeStamp 1730130177 [15:44:37]current date 1730130282 [15:44:37]FM_GetShiftState [15:44:37]SAM_PROTO_GetShiftState [15:44:37]wFMCommunicate request_size=4 [15:44:37]MH_SAM_APDU [15:44:37]CAPDU: 80 13 01 00 [15:44:37]Write to MH i2c: E2 08 00 8F 58 80 13 01 00 00 00 00 00 64 [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:37]Read from MH i2c: E2 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 0E 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 0E 00 8F 58 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B4 [15:44:37]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:44:37]wFMCommunicate OK [15:44:37]SAM_PROTO_GetShiftState done [15:44:37]FM_GetShiftState done [15:44:37]opened in 1730075620 [15:44:37]opened+sec_in_day 1730162020 [15:44:37]quantity*price = 100050 [15:44:37]sum+1 = 100052 [15:44:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 203 28.10.2024 15:44 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192655 ФПД: 105172999702061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T154443&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192655&fm=105172999702061&tin=02508201610067®Number=0000000000091776&sum=100000 [15:44:38]StoreToDocumentArchive [15:44:38]shift 543 fd 192655 [15:44:38]save to /storage/0543/doc_00192655 [15:44:38]save last doc name /storage/0543/doc_00192655 to /storage/kkm_last_doc_name [15:44:38]save OK [15:44:38]Clear old archive folders... [15:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:44:38]tlvbuf is 01B40EB0 [15:44:38]SAM_PROTO_ClearQueue [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 09 00 00 [15:44:38]Write to MH i2c: E2 08 00 9C 58 80 09 00 00 00 00 00 00 66 [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 03 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 03 00 9C 58 00 90 00 68 [15:44:38]RAPDU: 90 00 [15:44:38]wFMCommunicate OK [15:44:38]SAM_PROTO_ClearQueue done [15:44:38]KKMCreateOFDPacket [15:44:38]OFDProtocolAddRootSTLVToBuf [15:44:38]FM_MakeSignedData [15:44:38]FM_MakeSignedData [15:44:38]SAM_PROTO_SignData [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 0D 01 02 [15:44:38]Write to MH i2c: E2 08 00 9D 58 80 0D 01 02 00 00 00 00 6E [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 03 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 03 00 9D 58 00 90 00 69 [15:44:38]RAPDU: 90 00 [15:44:38]wFMCommunicate OK [15:44:38]wFMCommunicate request_size=255 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 6B B1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F F0 02 00 35 04 06 00 5F A7 7F 49 [15:44:38]Write to MH i2c: E2 02 01 9E 58 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 6B B1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F F0 02 00 35 04 06 00 5F A7 7F 49 00 00 D5 [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 03 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 03 00 9E 58 00 90 00 6A [15:44:38]RAPDU: 90 00 [15:44:38]wFMCommunicate OK [15:44:38]wFMCommunicate request_size=7 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 0D 02 02 02 86 2D [15:44:38]Write to MH i2c: E2 0A 00 9F 58 80 0D 02 02 02 00 86 2D 00 00 28 [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 03 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 03 00 9F 58 00 90 00 6B [15:44:38]RAPDU: 90 00 [15:44:38]wFMCommunicate OK [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 0D 03 02 [15:44:38]Write to MH i2c: E2 08 00 A0 58 80 0D 03 02 00 00 00 00 73 [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 0B 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 0B 00 A0 58 00 BE 30 30 95 C9 2C 61 5A 90 00 D7 [15:44:38]RAPDU: BE 30 30 95 C9 2C 61 5A 90 00 [15:44:38]wFMCommunicate OK [15:44:38]SAM_PROTO_SignData done [15:44:38]FM_MakeSignedData done [15:44:38]CreateOFDProtocolMessage [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 11 00 00 [15:44:38]Write to MH i2c: E2 08 00 A1 58 80 11 00 00 00 00 00 00 73 [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 17 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 17 00 A1 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C6 [15:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:44:38]wFMCommunicate OK [15:44:38]CreateOFDProtocolMessage done [15:44:38]OFDSenderStorePacket 192655 [15:44:38]StoreOFDPacket docnum=192655 [15:44:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 63 A4 04 01 5A E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 6B B1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F F0 02 00 35 04 06 00 5F A7 7F 49 86 2D BE 30 30 95 C9 2C 61 5A [15:44:38]CheckFolder [15:44:38]dirname=/storage/ofd_packets [15:44:38]CheckFolder done [15:44:38]ProducePacketName [15:44:38]name=ofd_packets/00192655 [15:44:38]NVStorageSaveData ofd_packets/00192655 [15:44:38]File name is /storage/ofd_packets/00192655 [15:44:38]Write 298 bytes [15:44:38]NVStorageSaveData done [15:44:38]OFDSenderStorePacket done [15:44:38]KKMCreateOFDPacket done [15:44:38]NVStorageSaveData kkm_last_timestamp [15:44:38]File name is /storage/kkm_last_timestamp [15:44:38]Write 4 bytes [15:44:38]NVStorageSaveData done [15:44:38]ExternCall_PrintAddStr [15:44:38]wPrintStart [15:44:38]Write to MH i2c: 01 00 00 A2 58 FA [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: 01 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: 01 07 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: 01 07 00 A2 58 00 00 00 00 00 FF 0F 0F [15:44:38]RasterBufferAndPrint [15:44:38]line Счет N : (1)31982 [15:44:38]line ИНН: 02508201610067 [15:44:38]line Контрольно-Кассовый Чек [15:44:38]line ПРОДАЖА [15:44:38]line ТРК (МРК, ГНК) : 11 [15:44:38]line Товар: 2710194210 [15:44:38]line ДТ-К-5 [15:44:38]line 13.130 * 76.20 [15:44:38]line = 1000.51 [15:44:38]line НДС 12% НСП 1% [15:44:38]line > о реализуемом товаре [15:44:38]line ОКРУГЛЕНИЕ: -0.51 [15:44:38]line ИТОГО: 1000.00 [15:44:38]line Внесено: 1000.00 [15:44:38]line СДАЧА: 0.00 [15:44:38]line НСП 1% : 8.85 [15:44:38]line НДС 12% : 106.25 [15:44:38]line Наличными: 1000.00 [15:44:38]line Безнал.: 0.00 [15:44:38]line Место: АЗС № 170 "Партнер Нефть" [15:44:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:44:38]line СНО: Общий режим [15:44:38]line Чек 203 28.10.2024 15:44 [15:44:38]line Смена: 543 ФФД: 1.0 [15:44:38]line ЗНМ: 0300000110 [15:44:38]line РНМ: 0000000000091776 [15:44:38]line Версия ККМ: 001 [15:44:38]line ФМ: 0000000000871754 [15:44:38]line ФД: 192655 [15:44:38]line ФПД: 105172999702061 [15:44:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T154443&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192655&fm=105172999702061&tin=02508201610067®Number=0000000000091776&sum=100000 [15:44:39]OFD Sender: Processing packet 192655 [packets to send 75, broken 74] [15:44:39]ProducePacketName [15:44:39]name=ofd_packets/00192655 [15:44:39]OFD Sender: To server: pG, [15:44:39]CommunicateWithHost lk.salyk.kg:30040 [15:44:39]ConnectInit lk.salyk.kg [15:44:39]written 0, free lines is 4095 [15:44:39]Connected sock=10 [15:44:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 63 A4 04 01 5A E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 6B B1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F F0 02 00 35 04 06 00 5F A7 7F 49 86 2D BE 30 30 95 C9 2C 61 5A [15:44:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4B 73 47 00 86 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F F0 02 00 F4 03 04 00 2E 56 1F 67 B6 04 01 00 00 B9 E4 3E 40 4A E8 40 D9 [15:44:39]CommunicateWithHost err = 0 [15:44:39]CheckOFDResponse [15:44:39]1017 (14) - 77093643461234 [15:44:39]1041 (16) - 0000000000871754 [15:44:39]1040 (4) - 192655 [15:44:39]1012 (4) - 28.10.2024 09:15 [15:44:39]1206 (1) - 0 [15:44:39]OFD Sender: Remove packet 192655 [15:44:39]ProducePacketName [15:44:39]name=ofd_packets/00192655 [15:44:39]NVStorageDeleteData [15:44:39]Write to MH i2c: 01 00 00 CD 58 25 [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: 01 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: 01 07 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: 01 07 00 CD 58 00 00 00 00 00 B4 0C EC [15:44:39]RasterBufferAndPrint [15:44:39]line [15:44:39]line [15:44:39]line [15:44:39]line [15:44:39]line [15:44:39]written 0, free lines is 3258 [15:44:39]MH_Cut [15:44:39]Write to MH i2c: D1 01 00 D4 58 01 FE [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: D1 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: D1 01 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: D1 01 00 D4 58 00 FD [15:44:39]Write to MH i2c: 01 00 00 D5 58 2D [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]OFD Sender: No OFD packet to send [15:44:40]*** Cut start [15:44:40]*** Partial cut [15:44:40]*** CUTSNS_PIN = 1 [15:44:40]*** CUTSNS_PIN = 0 [15:44:40]*** Brake cut motor [15:44:40]Read from MH i2c: 01 [15:44:40]MH_I2C_Read... [15:44:40]*** Stop cut motor [15:44:40]*** Cut end [15:44:40]Read from MH i2c: 01 07 00 [15:44:40]MH_I2C_Read... [15:44:40]Read from MH i2c: 01 07 00 D5 58 00 00 00 00 00 FF 0F 42 [15:44:40]process_action close_receipt done [15:44:40]requested_data is exist [15:44:40]produce_requested_data [15:44:40]requested_item fm.sn is exist - process it [15:44:40]wFMCommunicate request_size=4 [15:44:40]MH_SAM_APDU [15:44:40]CAPDU: 80 11 00 00 [15:44:40]Write to MH i2c: E2 08 00 D6 58 80 11 00 00 00 00 00 00 A8 [15:44:40]Write i2c OK [15:44:40]MH_I2C_Read... [15:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:40]Read from MH i2c: E2 [15:44:40]MH_I2C_Read... [15:44:40]Read from MH i2c: E2 17 00 [15:44:40]MH_I2C_Read... [15:44:40]Read from MH i2c: E2 17 00 D6 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FB [15:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:44:40]wFMCommunicate OK [15:44:40]requested_item fd.num is exist - process it [15:44:40]SAM_PROTO_GetFieldsCounters [15:44:40]wFMCommunicate request_size=4 [15:44:40]MH_SAM_APDU [15:44:40]CAPDU: 80 13 00 00 [15:44:40]Write to MH i2c: E2 08 00 D7 58 80 13 00 00 00 00 00 00 AB [15:44:40]Write i2c OK [15:44:40]MH_I2C_Read... [15:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:41]Read from MH i2c: E2 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: E2 62 00 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: E2 62 00 D7 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [15:44: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:41]wFMCommunicate OK [15:44:41]SAM_PROTO_GetFieldsCounters done [15:44:41]requested_item shift.num is exist - process it [15:44:41]requested_item shift.opened is exist - process it [15:44:41]req_shift_opened [15:44:41]FM_GetShiftState [15:44:41]SAM_PROTO_GetShiftState [15:44:41]wFMCommunicate request_size=4 [15:44:41]MH_SAM_APDU [15:44:41]CAPDU: 80 13 01 00 [15:44:41]Write to MH i2c: E2 08 00 D8 58 80 13 01 00 00 00 00 00 AD [15:44:41]Write i2c OK [15:44:41]MH_I2C_Read... [15:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:41]Read from MH i2c: E2 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: E2 0E 00 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: E2 0E 00 D8 58 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FD [15:44:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:44:41]wFMCommunicate OK [15:44:41]SAM_PROTO_GetShiftState done [15:44:41]FM_GetShiftState done [15:44:41]req_shift_opened done [15:44:41]requested_item shift.open_date is exist - process it [15:44:41]req_shift_open_date [15:44:41]req_shift_open_date done [15:44:41]produce_requested_data done [15:44:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192655,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:44:41]process_action_free close_receipt [15:44:41]json_value_free [15:44:41]json_value_free done [15:44:41]process_json_proto returns [15:44:41]Send response to host [15:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192655,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:44:41]free response buf [15:44:41]execute_script done [15:44:41]execute_script returns [15:44:41]free content buf [15:44:41]Sock 7.Close socket [15:44:41]Sock 7.Thread stoped [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:10]accept exits with 9 [15:45:10]New connection [15:45:10]New thread 3066563940 created [15:45:10]Thread 3066707300 joined [15:45:10]Waiting for new connection... [15:45:10] Sock 9.Parse request [15:45:10]Sock 9.Check first char [15:45:10]Sock 9.First char is OK [15:45:10]request: POST /json_proto HTTP/1.0 [15:45:10]Method: POST [15:45:10]URL: /json_proto [15:45:10]Method is POST - this is cgi request [15:45:10]url: /json_proto [15:45:10]query_string will be loaded in cgi processing [15:45:10]execute_cgi json_proto POST (null) [15:45:10]execute_cgi path=json_proto method=POST [15:45:10]POST find Content-Length [15:45:10]Host: 172.17.63.131:8080 [15:45:10]Content-Length: 676 [15:45:10]Content-Type: application/json [15:45:10] [15:45:10]POST finish read [15:45:10]Found Content-Length = 676 [15:45:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:10]execute_script... [15:45: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)31983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:10]POST & json_proto [15:45:10]process_json_proto [15:45:10]json parsed OK: [15:45:10]protocol is kg_v1.0 [15:45:10]action value=close_receipt [15:45:10]process_action close_receipt [15:45:10]cmd_close_receipt [15:45:10]MH_GetDate [15:45:10]Write to MH i2c: F0 00 00 D9 58 20 [15:45:10]Write i2c OK [15:45:10]MH_I2C_Read... [15:45:10]Read from MH i2c: F0 [15:45:10]MH_I2C_Read... [15:45:10]Read from MH i2c: F0 09 00 [15:45:10]MH_I2C_Read... [15:45:10]Read from MH i2c: F0 09 00 D9 58 00 8C B1 1F 67 22 05 6E 64 E5 [15:45:10]GetLastDocTimeStamp 1730130283 [15:45:10]current date 1730130316 [15:45:10]FM_GetShiftState [15:45:10]SAM_PROTO_GetShiftState [15:45:10]wFMCommunicate request_size=4 [15:45:10]MH_SAM_APDU [15:45:10]CAPDU: 80 13 01 00 [15:45:10]Write to MH i2c: E2 08 00 DA 58 80 13 01 00 00 00 00 00 AF [15:45:10]Write i2c OK [15:45:10]MH_I2C_Read... [15:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:10]Read from MH i2c: E2 [15:45:10]MH_I2C_Read... [15:45:10]Read from MH i2c: E2 0E 00 [15:45:10]MH_I2C_Read... [15:45:10]Read from MH i2c: E2 0E 00 DA 58 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FF [15:45:10]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:45:10]wFMCommunicate OK [15:45:10]SAM_PROTO_GetShiftState done [15:45:10]FM_GetShiftState done [15:45:10]opened in 1730075620 [15:45:10]opened+sec_in_day 1730162020 [15:45:10]quantity*price = 50041 [15:45:10]sum+1 = 50042 [15:45:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 204 28.10.2024 15:45 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192656 ФПД: 113486858513399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T154516&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192656&fm=113486858513399&tin=02508201610067®Number=0000000000091776&sum=50000 [15:45:11]StoreToDocumentArchive [15:45:11]shift 543 fd 192656 [15:45:11]save to /storage/0543/doc_00192656 [15:45:11]save last doc name /storage/0543/doc_00192656 to /storage/kkm_last_doc_name [15:45:11]save OK [15:45:11]Clear old archive folders... [15:45:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:11]tlvbuf is B6D6C2D0 [15:45:11]SAM_PROTO_ClearQueue [15:45:11]wFMCommunicate request_size=4 [15:45:11]MH_SAM_APDU [15:45:11]CAPDU: 80 09 00 00 [15:45:11]Write to MH i2c: E2 08 00 E7 58 80 09 00 00 00 00 00 00 B1 [15:45:11]Write i2c OK [15:45:11]MH_I2C_Read... [15:45:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:11]Read from MH i2c: E2 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: E2 03 00 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: E2 03 00 E7 58 00 90 00 B3 [15:45:11]RAPDU: 90 00 [15:45:11]wFMCommunicate OK [15:45:11]SAM_PROTO_ClearQueue done [15:45:11]KKMCreateOFDPacket [15:45:11]OFDProtocolAddRootSTLVToBuf [15:45:11]FM_MakeSignedData [15:45:11]FM_MakeSignedData [15:45:11]SAM_PROTO_SignData [15:45:11]wFMCommunicate request_size=4 [15:45:11]MH_SAM_APDU [15:45:11]CAPDU: 80 0D 01 02 [15:45:11]Write to MH i2c: E2 08 00 E8 58 80 0D 01 02 00 00 00 00 B9 [15:45:11]Write i2c OK [15:45:11]MH_I2C_Read... [15:45:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:11]Read from MH i2c: E2 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: E2 03 00 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: E2 03 00 E8 58 00 90 00 B4 [15:45:11]RAPDU: 90 00 [15:45:11]wFMCommunicate OK [15:45:11]wFMCommunicate request_size=255 [15:45:11]MH_SAM_APDU [15:45: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 8C B1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 F0 02 00 35 04 06 00 67 [15:45:11]Write to MH i2c: E2 02 01 E9 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 8C B1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 F0 02 00 35 04 06 00 67 00 00 E6 [15:45:11]Write i2c OK [15:45:11]MH_I2C_Read... [15:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:11]Read from MH i2c: E2 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: E2 03 00 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: E2 03 00 E9 58 00 90 00 B5 [15:45:11]RAPDU: 90 00 [15:45:11]wFMCommunicate OK [15:45:11]wFMCommunicate request_size=10 [15:45:11]MH_SAM_APDU [15:45:11]CAPDU: 80 0D 02 02 05 37 37 E3 6B F7 [15:45:11]Write to MH i2c: E2 0D 00 EA 58 80 0D 02 02 05 00 37 37 E3 6B F7 00 00 79 [15:45:11]Write i2c OK [15:45:11]MH_I2C_Read... [15:45:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:12]Read from MH i2c: E2 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: E2 03 00 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: E2 03 00 EA 58 00 90 00 B6 [15:45:12]RAPDU: 90 00 [15:45:12]wFMCommunicate OK [15:45:12]wFMCommunicate request_size=4 [15:45:12]MH_SAM_APDU [15:45:12]CAPDU: 80 0D 03 02 [15:45:12]Write to MH i2c: E2 08 00 EB 58 80 0D 03 02 00 00 00 00 BE [15:45:12]Write i2c OK [15:45:12]MH_I2C_Read... [15:45:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:12]Read from MH i2c: E2 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: E2 0B 00 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: E2 0B 00 EB 58 00 A9 54 94 12 21 F4 67 DB 90 00 B9 [15:45:12]RAPDU: A9 54 94 12 21 F4 67 DB 90 00 [15:45:12]wFMCommunicate OK [15:45:12]SAM_PROTO_SignData done [15:45:12]FM_MakeSignedData done [15:45:12]CreateOFDProtocolMessage [15:45:12]wFMCommunicate request_size=4 [15:45:12]MH_SAM_APDU [15:45:12]CAPDU: 80 11 00 00 [15:45:12]Write to MH i2c: E2 08 00 EC 58 80 11 00 00 00 00 00 00 BE [15:45:12]Write i2c OK [15:45:12]MH_I2C_Read... [15:45:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:12]Read from MH i2c: E2 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: E2 17 00 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: E2 17 00 EC 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 11 [15:45:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:45:12]wFMCommunicate OK [15:45:12]CreateOFDProtocolMessage done [15:45:12]OFDSenderStorePacket 192656 [15:45:12]StoreOFDPacket docnum=192656 [15:45:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0C 2F 07 01 22 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 8C B1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 F0 02 00 35 04 06 00 67 37 37 E3 6B F7 A9 54 94 12 21 F4 67 DB [15:45:12]CheckFolder [15:45:12]dirname=/storage/ofd_packets [15:45:12]CheckFolder done [15:45:12]ProducePacketName [15:45:12]name=ofd_packets/00192656 [15:45:12]NVStorageSaveData ofd_packets/00192656 [15:45:12]File name is /storage/ofd_packets/00192656 [15:45:12]Write 301 bytes [15:45:12]NVStorageSaveData done [15:45:12]OFDSenderStorePacket done [15:45:12]KKMCreateOFDPacket done [15:45:12]NVStorageSaveData kkm_last_timestamp [15:45:12]File name is /storage/kkm_last_timestamp [15:45:12]Write 4 bytes [15:45:12]NVStorageSaveData done [15:45:12]OFD Sender: Processing packet 192656 [packets to send 75, broken 74] [15:45:12]ProducePacketName [15:45:12]name=ofd_packets/00192656 [15:45:12]OFD Sender: To server: pG, [15:45:12]CommunicateWithHost lk.salyk.kg:30040 [15:45:12]ConnectInit lk.salyk.kg [15:45:12]ExternCall_PrintAddStr [15:45:12]wPrintStart [15:45:12]Write to MH i2c: 01 00 00 ED 58 45 [15:45:12]Write i2c OK [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: 01 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: 01 07 00 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: 01 07 00 ED 58 00 00 00 00 00 FF 0F 5A [15:45:12]RasterBufferAndPrint [15:45:12]line Счет N : (1)31983 [15:45:12]line ИНН: 02508201610067 [15:45:12]line Контрольно-Кассовый Чек [15:45:12]line ПРОДАЖА [15:45:12]line ТРК (МРК, ГНК) : 12 [15:45:12]line Товар: 2710124130 [15:45:12]line Аи-92-К-5 [15:45:12]line 7.480 * 66.90 [15:45:12]line = 500.41 [15:45:12]line НДС 12% НСП 1% [15:45:12]line > о реализуемом товаре [15:45:12]line ОКРУГЛЕНИЕ: -0.41 [15:45:12]line ИТОГО: 500.00 [15:45:12]line Внесено: 500.00 [15:45:12]line СДАЧА: 0.00 [15:45:12]line НСП 1% : 4.43 [15:45:12]line НДС 12% : 53.14 [15:45:12]line Наличными: 500.00 [15:45:12]line Безнал.: 0.00 [15:45:12]line Место: АЗС № 170 "Партнер Нефть" [15:45:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:45:12]line СНО: Общий режим [15:45:12]line Чек 204 28.10.2024 15:45 [15:45:12]line Смена: 543 ФФД: 1.0 [15:45:12]line ЗНМ: 0300000110 [15:45:12]line РНМ: 0000000000091776 [15:45:12]line Версия ККМ: 001 [15:45:12]line ФМ: 0000000000871754 [15:45:12]line ФД: 192656 [15:45:12]line ФПД: 113486858513399 [15:45:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T154516&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192656&fm=113486858513399&tin=02508201610067®Number=0000000000091776&sum=50000 [15:45:12]Connected sock=11 [15:45:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0C 2F 07 01 22 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 8C B1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 F0 02 00 35 04 06 00 67 37 37 E3 6B F7 A9 54 94 12 21 F4 67 DB [15:45:12]written 0, free lines is 4095 [15:45:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 31 A9 47 00 34 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 F0 02 00 F4 03 04 00 4F 56 1F 67 B6 04 01 00 00 9A 24 24 09 46 07 34 B7 [15:45:12]CommunicateWithHost err = 0 [15:45:12]CheckOFDResponse [15:45:12]1017 (14) - 77093643461234 [15:45:12]1041 (16) - 0000000000871754 [15:45:12]1040 (4) - 192656 [15:45:12]1012 (4) - 28.10.2024 09:15 [15:45:12]1206 (1) - 0 [15:45:12]OFD Sender: Remove packet 192656 [15:45:12]ProducePacketName [15:45:12]name=ofd_packets/00192656 [15:45:12]NVStorageDeleteData [15:45:12]Write to MH i2c: 01 00 00 18 59 71 [15:45:12]Write i2c OK [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: 01 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: 01 07 00 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: 01 07 00 18 59 00 00 00 00 00 C2 0C 46 [15:45:12]RasterBufferAndPrint [15:45:12]line [15:45:12]line [15:45:12]line [15:45:12]line [15:45:12]line [15:45:12]written 0, free lines is 3272 [15:45:12]MH_Cut [15:45:12]Write to MH i2c: D1 01 00 1F 59 01 4A [15:45:12]Write i2c OK [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: D1 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: D1 01 00 [15:45:12]MH_I2C_Read... [15:45:12]Read from MH i2c: D1 01 00 1F 59 00 49 [15:45:12]Write to MH i2c: 01 00 00 20 59 79 [15:45:12]Write i2c OK [15:45:12]MH_I2C_Read... [15:45:13]OFD Sender: No OFD packet to send [15:45:13]*** Cut start [15:45:13]*** Partial cut [15:45:13]*** CUTSNS_PIN = 1 [15:45:13]*** CUTSNS_PIN = 0 [15:45:14]*** Brake cut motor [15:45:14]Read from MH i2c: 01 [15:45:14]MH_I2C_Read... [15:45:14]*** Stop cut motor [15:45:14]*** Cut end [15:45:14]Read from MH i2c: 01 07 00 [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: 01 07 00 20 59 00 00 00 00 00 FF 0F 8E [15:45:14]process_action close_receipt done [15:45:14]requested_data is exist [15:45:14]produce_requested_data [15:45:14]requested_item fm.sn is exist - process it [15:45:14]wFMCommunicate request_size=4 [15:45:14]MH_SAM_APDU [15:45:14]CAPDU: 80 11 00 00 [15:45:14]Write to MH i2c: E2 08 00 21 59 80 11 00 00 00 00 00 00 F4 [15:45:14]Write i2c OK [15:45:14]MH_I2C_Read... [15:45:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:14]Read from MH i2c: E2 [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: E2 17 00 [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: E2 17 00 21 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 47 [15:45:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:45:14]wFMCommunicate OK [15:45:14]requested_item fd.num is exist - process it [15:45:14]SAM_PROTO_GetFieldsCounters [15:45:14]wFMCommunicate request_size=4 [15:45:14]MH_SAM_APDU [15:45:14]CAPDU: 80 13 00 00 [15:45:14]Write to MH i2c: E2 08 00 22 59 80 13 00 00 00 00 00 00 F7 [15:45:14]Write i2c OK [15:45:14]MH_I2C_Read... [15:45:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:14]Read from MH i2c: E2 [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: E2 62 00 [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: E2 62 00 22 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 90 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [15:45:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 90 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:14]wFMCommunicate OK [15:45:14]SAM_PROTO_GetFieldsCounters done [15:45:14]requested_item shift.num is exist - process it [15:45:14]requested_item shift.opened is exist - process it [15:45:14]req_shift_opened [15:45:14]FM_GetShiftState [15:45:14]SAM_PROTO_GetShiftState [15:45:14]wFMCommunicate request_size=4 [15:45:14]MH_SAM_APDU [15:45:14]CAPDU: 80 13 01 00 [15:45:14]Write to MH i2c: E2 08 00 23 59 80 13 01 00 00 00 00 00 F9 [15:45:14]Write i2c OK [15:45:14]MH_I2C_Read... [15:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:14]Read from MH i2c: E2 [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: E2 0E 00 [15:45:14]MH_I2C_Read... [15:45:14]Read from MH i2c: E2 0E 00 23 59 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 49 [15:45:14]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:45:14]wFMCommunicate OK [15:45:14]SAM_PROTO_GetShiftState done [15:45:14]FM_GetShiftState done [15:45:14]req_shift_opened done [15:45:14]requested_item shift.open_date is exist - process it [15:45:14]req_shift_open_date [15:45:14]req_shift_open_date done [15:45:14]produce_requested_data done [15:45:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192656,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:45:14]process_action_free close_receipt [15:45:14]json_value_free [15:45:14]json_value_free done [15:45:14]process_json_proto returns [15:45:14]Send response to host [15:45:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192656,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:45:14]free response buf [15:45:14]execute_script done [15:45:14]execute_script returns [15:45:14]free content buf [15:45:14]Sock 9.Close socket [15:45:14]Sock 9.Thread stoped [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:04]accept exits with 7 [15:47:04]New connection [15:47:04]New thread 3066707300 created [15:47:04]Thread 3066563940 joined [15:47:04]Waiting for new connection... [15:47:04] Sock 7.Parse request [15:47:04]Sock 7.Check first char [15:47:04]Sock 7.First char is OK [15:47:04]request: POST /json_proto HTTP/1.0 [15:47:04]Method: POST [15:47:04]URL: /json_proto [15:47:04]Method is POST - this is cgi request [15:47:04]url: /json_proto [15:47:04]query_string will be loaded in cgi processing [15:47:04]execute_cgi json_proto POST (null) [15:47:04]execute_cgi path=json_proto method=POST [15:47:04]POST find Content-Length [15:47:04]Host: 172.17.63.131:8080 [15:47:04]Content-Length: 676 [15:47:04]Content-Type: application/json [15:47:04] [15:47:04]POST finish read [15:47:04]Found Content-Length = 676 [15:47:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:04]execute_script... [15:47:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:04]POST & json_proto [15:47:04]process_json_proto [15:47:04]json parsed OK: [15:47:04]protocol is kg_v1.0 [15:47:04]action value=close_receipt [15:47:04]process_action close_receipt [15:47:04]cmd_close_receipt [15:47:04]MH_GetDate [15:47:04]Write to MH i2c: F0 00 00 24 59 6C [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: F0 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: F0 09 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: F0 09 00 24 59 00 FE B1 1F 67 22 05 6E 64 A3 [15:47:04]GetLastDocTimeStamp 1730130316 [15:47:04]current date 1730130430 [15:47:04]FM_GetShiftState [15:47:04]SAM_PROTO_GetShiftState [15:47:04]wFMCommunicate request_size=4 [15:47:04]MH_SAM_APDU [15:47:04]CAPDU: 80 13 01 00 [15:47:04]Write to MH i2c: E2 08 00 25 59 80 13 01 00 00 00 00 00 FB [15:47:04]Write i2c OK [15:47:04]MH_I2C_Read... [15:47:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:04]Read from MH i2c: E2 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 0E 00 [15:47:04]MH_I2C_Read... [15:47:04]Read from MH i2c: E2 0E 00 25 59 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 4B [15:47:04]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:47:04]wFMCommunicate OK [15:47:04]SAM_PROTO_GetShiftState done [15:47:04]FM_GetShiftState done [15:47:04]opened in 1730075620 [15:47:04]opened+sec_in_day 1730162020 [15:47:04]quantity*price = 10035 [15:47:04]sum+1 = 10036 [15:47:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 205 28.10.2024 15:47 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192657 ФПД: 179697576627666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T154710&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192657&fm=179697576627666&tin=02508201610067®Number=0000000000091776&sum=10000 [15:47:05]StoreToDocumentArchive [15:47:05]shift 543 fd 192657 [15:47:05]save to /storage/0543/doc_00192657 [15:47:05]save last doc name /storage/0543/doc_00192657 to /storage/kkm_last_doc_name [15:47:05]save OK [15:47:05]Clear old archive folders... [15:47:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:05]tlvbuf is 019D4A50 [15:47:05]SAM_PROTO_ClearQueue [15:47:05]wFMCommunicate request_size=4 [15:47:05]MH_SAM_APDU [15:47:05]CAPDU: 80 09 00 00 [15:47:05]Write to MH i2c: E2 08 00 32 59 80 09 00 00 00 00 00 00 FD [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:05]Read from MH i2c: E2 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: E2 03 00 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: E2 03 00 32 59 00 90 00 FF [15:47:05]RAPDU: 90 00 [15:47:05]wFMCommunicate OK [15:47:05]SAM_PROTO_ClearQueue done [15:47:05]KKMCreateOFDPacket [15:47:05]OFDProtocolAddRootSTLVToBuf [15:47:05]FM_MakeSignedData [15:47:05]FM_MakeSignedData [15:47:05]SAM_PROTO_SignData [15:47:05]wFMCommunicate request_size=4 [15:47:05]MH_SAM_APDU [15:47:05]CAPDU: 80 0D 01 02 [15:47:05]Write to MH i2c: E2 08 00 33 59 80 0D 01 02 00 00 00 00 05 [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:05]Read from MH i2c: E2 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: E2 03 00 [15:47:05]MH_I2C_Read... [15:47:05]Read from MH i2c: E2 03 00 33 59 00 90 00 00 [15:47:05]RAPDU: 90 00 [15:47:05]wFMCommunicate OK [15:47:05]wFMCommunicate request_size=255 [15:47:05]MH_SAM_APDU [15:47: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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 FE B1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 F0 02 00 35 04 06 00 A3 [15:47:05]Write to MH i2c: E2 02 01 34 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 FE B1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 F0 02 00 35 04 06 00 A3 00 00 C9 [15:47:05]Write i2c OK [15:47:05]MH_I2C_Read... [15:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:06]Read from MH i2c: E2 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 03 00 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 03 00 34 59 00 90 00 01 [15:47:06]RAPDU: 90 00 [15:47:06]wFMCommunicate OK [15:47:06]wFMCommunicate request_size=10 [15:47:06]MH_SAM_APDU [15:47:06]CAPDU: 80 0D 02 02 05 6F 1A 38 CD D2 [15:47:06]Write to MH i2c: E2 0D 00 35 59 80 0D 02 02 05 00 6F 1A 38 CD D2 00 00 72 [15:47:06]Write i2c OK [15:47:06]MH_I2C_Read... [15:47:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:06]Read from MH i2c: E2 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 03 00 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 03 00 35 59 00 90 00 02 [15:47:06]RAPDU: 90 00 [15:47:06]wFMCommunicate OK [15:47:06]wFMCommunicate request_size=4 [15:47:06]MH_SAM_APDU [15:47:06]CAPDU: 80 0D 03 02 [15:47:06]Write to MH i2c: E2 08 00 36 59 80 0D 03 02 00 00 00 00 0A [15:47:06]Write i2c OK [15:47:06]MH_I2C_Read... [15:47:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:06]Read from MH i2c: E2 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 0B 00 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 0B 00 36 59 00 6A AA 7A 21 72 83 B0 65 90 00 C4 [15:47:06]RAPDU: 6A AA 7A 21 72 83 B0 65 90 00 [15:47:06]wFMCommunicate OK [15:47:06]SAM_PROTO_SignData done [15:47:06]FM_MakeSignedData done [15:47:06]CreateOFDProtocolMessage [15:47:06]wFMCommunicate request_size=4 [15:47:06]MH_SAM_APDU [15:47:06]CAPDU: 80 11 00 00 [15:47:06]Write to MH i2c: E2 08 00 37 59 80 11 00 00 00 00 00 00 0A [15:47:06]Write i2c OK [15:47:06]MH_I2C_Read... [15:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:06]Read from MH i2c: E2 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 17 00 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: E2 17 00 37 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5D [15:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:47:06]wFMCommunicate OK [15:47:06]CreateOFDProtocolMessage done [15:47:06]OFDSenderStorePacket 192657 [15:47:06]StoreOFDPacket docnum=192657 [15:47:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CE 77 07 01 7D 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 FE B1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 F0 02 00 35 04 06 00 A3 6F 1A 38 CD D2 6A AA 7A 21 72 83 B0 65 [15:47:06]CheckFolder [15:47:06]dirname=/storage/ofd_packets [15:47:06]CheckFolder done [15:47:06]ProducePacketName [15:47:06]name=ofd_packets/00192657 [15:47:06]NVStorageSaveData ofd_packets/00192657 [15:47:06]File name is /storage/ofd_packets/00192657 [15:47:06]Write 301 bytes [15:47:06]NVStorageSaveData done [15:47:06]OFDSenderStorePacket done [15:47:06]KKMCreateOFDPacket done [15:47:06]NVStorageSaveData kkm_last_timestamp [15:47:06]File name is /storage/kkm_last_timestamp [15:47:06]Write 4 bytes [15:47:06]NVStorageSaveData done [15:47:06]ExternCall_PrintAddStr [15:47:06]wPrintStart [15:47:06]Write to MH i2c: 01 00 00 38 59 91 [15:47:06]Write i2c OK [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: 01 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: 01 07 00 [15:47:06]MH_I2C_Read... [15:47:06]Read from MH i2c: 01 07 00 38 59 00 00 00 00 00 FF 0F A6 [15:47:06]RasterBufferAndPrint [15:47:06]line Счет N : (1)31985 [15:47:06]line ИНН: 02508201610067 [15:47:06]line Контрольно-Кассовый Чек [15:47:06]line ПРОДАЖА [15:47:06]line ТРК (МРК, ГНК) : 12 [15:47:06]line Товар: 2710124130 [15:47:06]line Аи-92-К-5 [15:47:06]line 1.500 * 66.90 [15:47:06]line = 100.35 [15:47:06]line НДС 12% НСП 1% [15:47:06]line > о реализуемом товаре [15:47:06]line ОКРУГЛЕНИЕ: -0.35 [15:47:06]line ИТОГО: 100.00 [15:47:06]line Внесено: 100.00 [15:47:06]line СДАЧА: 0.00 [15:47:06]line НСП 1% : 0.89 [15:47:06]line НДС 12% : 10.66 [15:47:06]line Наличными: 100.00 [15:47:06]line Безнал.: 0.00 [15:47:06]line Место: АЗС № 170 "Партнер Нефть" [15:47:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:47:06]line СНО: Общий режим [15:47:06]line Чек 205 28.10.2024 15:47 [15:47:06]line Смена: 543 ФФД: 1.0 [15:47:06]line ЗНМ: 0300000110 [15:47:06]line РНМ: 0000000000091776 [15:47:06]line Версия ККМ: 001 [15:47:06]line ФМ: 0000000000871754 [15:47:06]line ФД: 192657 [15:47:06]line ФПД: 179697576627666 [15:47:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T154710&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192657&fm=179697576627666&tin=02508201610067®Number=0000000000091776&sum=10000 [15:47:06]OFD Sender: Processing packet 192657 [packets to send 75, broken 74] [15:47:06]ProducePacketName [15:47:06]name=ofd_packets/00192657 [15:47:06]OFD Sender: To server: pG, [15:47:06]CommunicateWithHost lk.salyk.kg:30040 [15:47:06]ConnectInit lk.salyk.kg [15:47:06]written 0, free lines is 4095 [15:47:06]Connected sock=10 [15:47:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CE 77 07 01 7D 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 FE B1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 F0 02 00 35 04 06 00 A3 6F 1A 38 CD D2 6A AA 7A 21 72 83 B0 65 [15:47:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DC 0C 47 00 05 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 F0 02 00 F4 03 04 00 C2 56 1F 67 B6 04 01 00 00 35 FF 38 1B CC 73 95 6D [15:47:06]CommunicateWithHost err = 0 [15:47:06]CheckOFDResponse [15:47:06]1017 (14) - 77093643461234 [15:47:06]1041 (16) - 0000000000871754 [15:47:06]1040 (4) - 192657 [15:47:06]1012 (4) - 28.10.2024 09:17 [15:47:06]1206 (1) - 0 [15:47:06]OFD Sender: Remove packet 192657 [15:47:06]ProducePacketName [15:47:06]name=ofd_packets/00192657 [15:47:06]NVStorageDeleteData [15:47:07]Write to MH i2c: 01 00 00 63 59 BC [15:47:07]Write i2c OK [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: 01 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: 01 07 00 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: 01 07 00 63 59 00 00 00 00 00 CD 0C 9C [15:47:07]RasterBufferAndPrint [15:47:07]line [15:47:07]line [15:47:07]line [15:47:07]line [15:47:07]line [15:47:07]written 0, free lines is 3283 [15:47:07]MH_Cut [15:47:07]Write to MH i2c: D1 01 00 6A 59 01 95 [15:47:07]Write i2c OK [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: D1 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: D1 01 00 [15:47:07]MH_I2C_Read... [15:47:07]Read from MH i2c: D1 01 00 6A 59 00 94 [15:47:07]Write to MH i2c: 01 00 00 6B 59 C4 [15:47:07]Write i2c OK [15:47:07]MH_I2C_Read... [15:47:07]OFD Sender: No OFD packet to send [15:47:07]*** Cut start [15:47:07]*** Partial cut [15:47:07]*** CUTSNS_PIN = 1 [15:47:07]*** CUTSNS_PIN = 0 [15:47:08]*** Brake cut motor [15:47:08]Read from MH i2c: 01 [15:47:08]MH_I2C_Read... [15:47:08]*** Stop cut motor [15:47:08]*** Cut end [15:47:08]Read from MH i2c: 01 07 00 [15:47:08]MH_I2C_Read... [15:47:08]Read from MH i2c: 01 07 00 6B 59 00 00 00 00 00 FF 0F D9 [15:47:08]process_action close_receipt done [15:47:08]requested_data is exist [15:47:08]produce_requested_data [15:47:08]requested_item fm.sn is exist - process it [15:47:08]wFMCommunicate request_size=4 [15:47:08]MH_SAM_APDU [15:47:08]CAPDU: 80 11 00 00 [15:47:08]Write to MH i2c: E2 08 00 6C 59 80 11 00 00 00 00 00 00 3F [15:47:08]Write i2c OK [15:47:08]MH_I2C_Read... [15:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:08]Read from MH i2c: E2 [15:47:08]MH_I2C_Read... [15:47:08]Read from MH i2c: E2 17 00 [15:47:08]MH_I2C_Read... [15:47:08]Read from MH i2c: E2 17 00 6C 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 92 [15:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:47:08]wFMCommunicate OK [15:47:08]requested_item fd.num is exist - process it [15:47:08]SAM_PROTO_GetFieldsCounters [15:47:08]wFMCommunicate request_size=4 [15:47:08]MH_SAM_APDU [15:47:08]CAPDU: 80 13 00 00 [15:47:08]Write to MH i2c: E2 08 00 6D 59 80 13 00 00 00 00 00 00 42 [15:47:08]Write i2c OK [15:47:08]MH_I2C_Read... [15:47:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:08]Read from MH i2c: E2 [15:47:08]MH_I2C_Read... [15:47:08]Read from MH i2c: E2 62 00 [15:47:08]MH_I2C_Read... [15:47:08]Read from MH i2c: E2 62 00 6D 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 91 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [15:47:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 91 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:08]wFMCommunicate OK [15:47:08]SAM_PROTO_GetFieldsCounters done [15:47:08]requested_item shift.num is exist - process it [15:47:08]requested_item shift.opened is exist - process it [15:47:08]req_shift_opened [15:47:08]FM_GetShiftState [15:47:08]SAM_PROTO_GetShiftState [15:47:08]wFMCommunicate request_size=4 [15:47:08]MH_SAM_APDU [15:47:08]CAPDU: 80 13 01 00 [15:47:08]Write to MH i2c: E2 08 00 6E 59 80 13 01 00 00 00 00 00 44 [15:47:08]Write i2c OK [15:47:08]MH_I2C_Read... [15:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:08]Read from MH i2c: E2 [15:47:08]MH_I2C_Read... [15:47:08]Read from MH i2c: E2 0E 00 [15:47:08]MH_I2C_Read... [15:47:08]Read from MH i2c: E2 0E 00 6E 59 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 94 [15:47:08]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:47:08]wFMCommunicate OK [15:47:08]SAM_PROTO_GetShiftState done [15:47:08]FM_GetShiftState done [15:47:08]req_shift_opened done [15:47:08]requested_item shift.open_date is exist - process it [15:47:08]req_shift_open_date [15:47:08]req_shift_open_date done [15:47:08]produce_requested_data done [15:47:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192657,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:47:08]process_action_free close_receipt [15:47:08]json_value_free [15:47:08]json_value_free done [15:47:08]process_json_proto returns [15:47:08]Send response to host [15:47:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192657,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:47:08]free response buf [15:47:08]execute_script done [15:47:08]execute_script returns [15:47:08]free content buf [15:47:08]Sock 7.Close socket [15:47:08]Sock 7.Thread stoped [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:44]accept exits with 9 [15:47:44]New connection [15:47:44]New thread 3066563940 created [15:47:44]Thread 3066707300 joined [15:47:44]Waiting for new connection... [15:47:44] Sock 9.Parse request [15:47:44]Sock 9.Check first char [15:47:44]Sock 9.First char is OK [15:47:44]request: POST /json_proto HTTP/1.0 [15:47:44]Method: POST [15:47:44]URL: /json_proto [15:47:44]Method is POST - this is cgi request [15:47:44]url: /json_proto [15:47:44]query_string will be loaded in cgi processing [15:47:44]execute_cgi json_proto POST (null) [15:47:44]execute_cgi path=json_proto method=POST [15:47:44]POST find Content-Length [15:47:44]Host: 172.17.63.131:8080 [15:47:44]Content-Length: 678 [15:47:44]Content-Type: application/json [15:47:44] [15:47:44]POST finish read [15:47:44]Found Content-Length = 678 [15:47:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:44]execute_script... [15:47: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)31984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:44]POST & json_proto [15:47:44]process_json_proto [15:47:44]json parsed OK: [15:47:44]protocol is kg_v1.0 [15:47:44]action value=close_receipt [15:47:44]process_action close_receipt [15:47:44]cmd_close_receipt [15:47:44]MH_GetDate [15:47:44]Write to MH i2c: F0 00 00 6F 59 B7 [15:47:44]Write i2c OK [15:47:44]MH_I2C_Read... [15:47:44]Read from MH i2c: F0 [15:47:44]MH_I2C_Read... [15:47:44]Read from MH i2c: F0 09 00 [15:47:44]MH_I2C_Read... [15:47:44]Read from MH i2c: F0 09 00 6F 59 00 26 B2 1F 67 22 05 6E 64 17 [15:47:44]GetLastDocTimeStamp 1730130430 [15:47:44]current date 1730130470 [15:47:44]FM_GetShiftState [15:47:44]SAM_PROTO_GetShiftState [15:47:44]wFMCommunicate request_size=4 [15:47:44]MH_SAM_APDU [15:47:44]CAPDU: 80 13 01 00 [15:47:44]Write to MH i2c: E2 08 00 70 59 80 13 01 00 00 00 00 00 46 [15:47:44]Write i2c OK [15:47:44]MH_I2C_Read... [15:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:44]Read from MH i2c: E2 [15:47:44]MH_I2C_Read... [15:47:44]Read from MH i2c: E2 0E 00 [15:47:44]MH_I2C_Read... [15:47:44]Read from MH i2c: E2 0E 00 70 59 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 96 [15:47:44]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:47:44]wFMCommunicate OK [15:47:44]SAM_PROTO_GetShiftState done [15:47:44]FM_GetShiftState done [15:47:44]opened in 1730075620 [15:47:44]opened+sec_in_day 1730162020 [15:47:44]quantity*price = 100050 [15:47:44]sum+1 = 100052 [15:47:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 206 28.10.2024 15:47 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192658 ФПД: 86184096217422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T154750&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192658&fm=86184096217422&tin=02508201610067®Number=0000000000091776&sum=100000 [15:47:45]StoreToDocumentArchive [15:47:45]shift 543 fd 192658 [15:47:45]save to /storage/0543/doc_00192658 [15:47:45]save last doc name /storage/0543/doc_00192658 to /storage/kkm_last_doc_name [15:47:45]save OK [15:47:45]Clear old archive folders... [15:47:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:47:45]tlvbuf is 01AC8470 [15:47:45]SAM_PROTO_ClearQueue [15:47:45]wFMCommunicate request_size=4 [15:47:45]MH_SAM_APDU [15:47:45]CAPDU: 80 09 00 00 [15:47:45]Write to MH i2c: E2 08 00 7D 59 80 09 00 00 00 00 00 00 48 [15:47:45]Write i2c OK [15:47:45]MH_I2C_Read... [15:47:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:45]Read from MH i2c: E2 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: E2 03 00 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: E2 03 00 7D 59 00 90 00 4A [15:47:45]RAPDU: 90 00 [15:47:45]wFMCommunicate OK [15:47:45]SAM_PROTO_ClearQueue done [15:47:45]KKMCreateOFDPacket [15:47:45]OFDProtocolAddRootSTLVToBuf [15:47:45]FM_MakeSignedData [15:47:45]FM_MakeSignedData [15:47:45]SAM_PROTO_SignData [15:47:45]wFMCommunicate request_size=4 [15:47:45]MH_SAM_APDU [15:47:45]CAPDU: 80 0D 01 02 [15:47:45]Write to MH i2c: E2 08 00 7E 59 80 0D 01 02 00 00 00 00 50 [15:47:45]Write i2c OK [15:47:45]MH_I2C_Read... [15:47:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:45]Read from MH i2c: E2 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: E2 03 00 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: E2 03 00 7E 59 00 90 00 4B [15:47:45]RAPDU: 90 00 [15:47:45]wFMCommunicate OK [15:47:45]wFMCommunicate request_size=255 [15:47:45]MH_SAM_APDU [15:47:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 26 B2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 F0 02 00 35 04 06 00 4E 62 4C 70 [15:47:45]Write to MH i2c: E2 02 01 7F 59 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 26 B2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 F0 02 00 35 04 06 00 4E 62 4C 70 00 00 17 [15:47:45]Write i2c OK [15:47:45]MH_I2C_Read... [15:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:46]Read from MH i2c: E2 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: E2 03 00 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: E2 03 00 7F 59 00 90 00 4C [15:47:46]RAPDU: 90 00 [15:47:46]wFMCommunicate OK [15:47:46]wFMCommunicate request_size=7 [15:47:46]MH_SAM_APDU [15:47:46]CAPDU: 80 0D 02 02 02 B9 4E [15:47:46]Write to MH i2c: E2 0A 00 80 59 80 0D 02 02 02 00 B9 4E 00 00 5E [15:47:46]Write i2c OK [15:47:46]MH_I2C_Read... [15:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:46]Read from MH i2c: E2 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: E2 03 00 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: E2 03 00 80 59 00 90 00 4D [15:47:46]RAPDU: 90 00 [15:47:46]wFMCommunicate OK [15:47:46]wFMCommunicate request_size=4 [15:47:46]MH_SAM_APDU [15:47:46]CAPDU: 80 0D 03 02 [15:47:46]Write to MH i2c: E2 08 00 81 59 80 0D 03 02 00 00 00 00 55 [15:47:46]Write i2c OK [15:47:46]MH_I2C_Read... [15:47:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:46]Read from MH i2c: E2 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: E2 0B 00 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: E2 0B 00 81 59 00 1D 4D 21 01 E4 D4 62 9D 90 00 99 [15:47:46]RAPDU: 1D 4D 21 01 E4 D4 62 9D 90 00 [15:47:46]wFMCommunicate OK [15:47:46]SAM_PROTO_SignData done [15:47:46]FM_MakeSignedData done [15:47:46]CreateOFDProtocolMessage [15:47:46]wFMCommunicate request_size=4 [15:47:46]MH_SAM_APDU [15:47:46]CAPDU: 80 11 00 00 [15:47:46]Write to MH i2c: E2 08 00 82 59 80 11 00 00 00 00 00 00 55 [15:47:46]Write i2c OK [15:47:46]MH_I2C_Read... [15:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:46]Read from MH i2c: E2 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: E2 17 00 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: E2 17 00 82 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A8 [15:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:47:46]wFMCommunicate OK [15:47:46]CreateOFDProtocolMessage done [15:47:46]OFDSenderStorePacket 192658 [15:47:46]StoreOFDPacket docnum=192658 [15:47:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 1D 9B 04 01 26 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 26 B2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 F0 02 00 35 04 06 00 4E 62 4C 70 B9 4E 1D 4D 21 01 E4 D4 62 9D [15:47:46]CheckFolder [15:47:46]dirname=/storage/ofd_packets [15:47:46]CheckFolder done [15:47:46]ProducePacketName [15:47:46]name=ofd_packets/00192658 [15:47:46]NVStorageSaveData ofd_packets/00192658 [15:47:46]File name is /storage/ofd_packets/00192658 [15:47:46]Write 298 bytes [15:47:46]NVStorageSaveData done [15:47:46]OFDSenderStorePacket done [15:47:46]KKMCreateOFDPacket done [15:47:46]NVStorageSaveData kkm_last_timestamp [15:47:46]File name is /storage/kkm_last_timestamp [15:47:46]Write 4 bytes [15:47:46]NVStorageSaveData done [15:47:46]ExternCall_PrintAddStr [15:47:46]wPrintStart [15:47:46]Write to MH i2c: 01 00 00 83 59 DC [15:47:46]Write i2c OK [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: 01 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: 01 07 00 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: 01 07 00 83 59 00 00 00 00 00 FF 0F F1 [15:47:46]RasterBufferAndPrint [15:47:46]line Счет N : (1)31984 [15:47:46]line ИНН: 02508201610067 [15:47:46]line Контрольно-Кассовый Чек [15:47:46]line ПРОДАЖА [15:47:46]line ТРК (МРК, ГНК) : 11 [15:47:46]line Товар: 2710194210 [15:47:46]line ДТ-К-5 [15:47:46]line 13.130 * 76.20 [15:47:46]line = 1000.51 [15:47:46]line НДС 12% НСП 1% [15:47:46]line > о реализуемом товаре [15:47:46]line ОКРУГЛЕНИЕ: -0.51 [15:47:46]line ИТОГО: 1000.00 [15:47:46]line Внесено: 1000.00 [15:47:46]line СДАЧА: 0.00 [15:47:46]line НСП 1% : 8.85 [15:47:46]line НДС 12% : 106.25 [15:47:46]line Наличными: 1000.00 [15:47:46]line Безнал.: 0.00 [15:47:46]line Место: АЗС № 170 "Партнер Нефть" [15:47:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:47:46]line СНО: Общий режим [15:47:46]line Чек 206 28.10.2024 15:47 [15:47:46]line Смена: 543 ФФД: 1.0 [15:47:46]line ЗНМ: 0300000110 [15:47:46]line РНМ: 0000000000091776 [15:47:46]line Версия ККМ: 001 [15:47:46]line ФМ: 0000000000871754 [15:47:46]line ФД: 192658 [15:47:46]line ФПД: 86184096217422 [15:47:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T154750&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192658&fm=86184096217422&tin=02508201610067®Number=0000000000091776&sum=100000 [15:47:46]OFD Sender: Processing packet 192658 [packets to send 75, broken 74] [15:47:46]ProducePacketName [15:47:46]name=ofd_packets/00192658 [15:47:46]OFD Sender: To server: pG, [15:47:46]CommunicateWithHost lk.salyk.kg:30040 [15:47:46]ConnectInit lk.salyk.kg [15:47:46]written 0, free lines is 4095 [15:47:46]Connected sock=10 [15:47:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 1D 9B 04 01 26 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 26 B2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 F0 02 00 35 04 06 00 4E 62 4C 70 B9 4E 1D 4D 21 01 E4 D4 62 9D [15:47:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 87 C8 47 00 C6 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 F0 02 00 F4 03 04 00 EA 56 1F 67 B6 04 01 00 00 E5 DC C9 CB 98 75 9F C4 [15:47:46]CommunicateWithHost err = 0 [15:47:46]CheckOFDResponse [15:47:46]1017 (14) - 77093643461234 [15:47:46]1041 (16) - 0000000000871754 [15:47:46]1040 (4) - 192658 [15:47:46]1012 (4) - 28.10.2024 09:18 [15:47:46]1206 (1) - 0 [15:47:46]OFD Sender: Remove packet 192658 [15:47:46]ProducePacketName [15:47:46]name=ofd_packets/00192658 [15:47:46]NVStorageDeleteData [15:47:47]Write to MH i2c: 01 00 00 AE 59 07 [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: 01 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: 01 07 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: 01 07 00 AE 59 00 00 00 00 00 C2 0C DC [15:47:47]RasterBufferAndPrint [15:47:47]line [15:47:47]line [15:47:47]line [15:47:47]line [15:47:47]line [15:47:47]written 0, free lines is 3271 [15:47:47]MH_Cut [15:47:47]Write to MH i2c: D1 01 00 B5 59 01 E0 [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: D1 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: D1 01 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: D1 01 00 B5 59 00 DF [15:47:47]Write to MH i2c: 01 00 00 B6 59 0F [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]OFD Sender: No OFD packet to send [15:47:47]*** Cut start [15:47:47]*** Partial cut [15:47:47]*** CUTSNS_PIN = 1 [15:47:47]*** CUTSNS_PIN = 0 [15:47:48]*** Brake cut motor [15:47:48]Read from MH i2c: 01 [15:47:48]MH_I2C_Read... [15:47:48]*** Stop cut motor [15:47:48]*** Cut end [15:47:48]Read from MH i2c: 01 07 00 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: 01 07 00 B6 59 00 00 00 00 00 FF 0F 24 [15:47:48]process_action close_receipt done [15:47:48]requested_data is exist [15:47:48]produce_requested_data [15:47:48]requested_item fm.sn is exist - process it [15:47:48]wFMCommunicate request_size=4 [15:47:48]MH_SAM_APDU [15:47:48]CAPDU: 80 11 00 00 [15:47:48]Write to MH i2c: E2 08 00 B7 59 80 11 00 00 00 00 00 00 8A [15:47:48]Write i2c OK [15:47:48]MH_I2C_Read... [15:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:48]Read from MH i2c: E2 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 17 00 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 17 00 B7 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DD [15:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:47:48]wFMCommunicate OK [15:47:48]requested_item fd.num is exist - process it [15:47:48]SAM_PROTO_GetFieldsCounters [15:47:48]wFMCommunicate request_size=4 [15:47:48]MH_SAM_APDU [15:47:48]CAPDU: 80 13 00 00 [15:47:48]Write to MH i2c: E2 08 00 B8 59 80 13 00 00 00 00 00 00 8D [15:47:48]Write i2c OK [15:47:48]MH_I2C_Read... [15:47:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:48]Read from MH i2c: E2 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 62 00 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 62 00 B8 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 92 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [15:47:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 92 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:48]wFMCommunicate OK [15:47:48]SAM_PROTO_GetFieldsCounters done [15:47:48]requested_item shift.num is exist - process it [15:47:48]requested_item shift.opened is exist - process it [15:47:48]req_shift_opened [15:47:48]FM_GetShiftState [15:47:48]SAM_PROTO_GetShiftState [15:47:48]wFMCommunicate request_size=4 [15:47:48]MH_SAM_APDU [15:47:48]CAPDU: 80 13 01 00 [15:47:48]Write to MH i2c: E2 08 00 B9 59 80 13 01 00 00 00 00 00 8F [15:47:48]Write i2c OK [15:47:48]MH_I2C_Read... [15:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:48]Read from MH i2c: E2 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 0E 00 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: E2 0E 00 B9 59 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DF [15:47:48]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:47:48]wFMCommunicate OK [15:47:48]SAM_PROTO_GetShiftState done [15:47:48]FM_GetShiftState done [15:47:48]req_shift_opened done [15:47:48]requested_item shift.open_date is exist - process it [15:47:48]req_shift_open_date [15:47:48]req_shift_open_date done [15:47:48]produce_requested_data done [15:47:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192658,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:47:48]process_action_free close_receipt [15:47:48]json_value_free [15:47:48]json_value_free done [15:47:48]process_json_proto returns [15:47:48]Send response to host [15:47:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192658,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:47:48]free response buf [15:47:48]execute_script done [15:47:48]execute_script returns [15:47:48]free content buf [15:47:48]Sock 9.Close socket [15:47:48]Sock 9.Thread stoped [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]accept exits with 7 [15:51:32]New connection [15:51:32]New thread 3066707300 created [15:51:32]Thread 3066563940 joined [15:51:32]Waiting for new connection... [15:51:32] Sock 7.Parse request [15:51:32]Sock 7.Check first char [15:51:32]Sock 7.First char is OK [15:51:32]request: POST /json_proto HTTP/1.0 [15:51:32]Method: POST [15:51:32]URL: /json_proto [15:51:32]Method is POST - this is cgi request [15:51:32]url: /json_proto [15:51:32]query_string will be loaded in cgi processing [15:51:32]execute_cgi json_proto POST (null) [15:51:32]execute_cgi path=json_proto method=POST [15:51:32]POST find Content-Length [15:51:32]Host: 172.17.63.131:8080 [15:51:32]Content-Length: 681 [15:51:32]Content-Type: application/json [15:51:32] [15:51:32]POST finish read [15:51:32]Found Content-Length = 681 [15:51:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:32]execute_script... [15:51:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:32]POST & json_proto [15:51:32]process_json_proto [15:51:32]json parsed OK: [15:51:32]protocol is kg_v1.0 [15:51:32]action value=close_receipt [15:51:32]process_action close_receipt [15:51:32]cmd_close_receipt [15:51:32]MH_GetDate [15:51:32]Write to MH i2c: F0 00 00 BA 59 02 [15:51:32]Write i2c OK [15:51:32]MH_I2C_Read... [15:51:32]Read from MH i2c: F0 [15:51:32]MH_I2C_Read... [15:51:32]Read from MH i2c: F0 09 00 [15:51:32]MH_I2C_Read... [15:51:32]Read from MH i2c: F0 09 00 BA 59 00 0A B3 1F 67 22 05 6E 64 47 [15:51:32]GetLastDocTimeStamp 1730130470 [15:51:32]current date 1730130698 [15:51:32]FM_GetShiftState [15:51:32]SAM_PROTO_GetShiftState [15:51:32]wFMCommunicate request_size=4 [15:51:32]MH_SAM_APDU [15:51:32]CAPDU: 80 13 01 00 [15:51:32]Write to MH i2c: E2 08 00 BB 59 80 13 01 00 00 00 00 00 91 [15:51:32]Write i2c OK [15:51:32]MH_I2C_Read... [15:51:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:32]Read from MH i2c: E2 [15:51:32]MH_I2C_Read... [15:51:32]Read from MH i2c: E2 0E 00 [15:51:32]MH_I2C_Read... [15:51:32]Read from MH i2c: E2 0E 00 BB 59 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E1 [15:51:32]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:51:32]wFMCommunicate OK [15:51:32]SAM_PROTO_GetShiftState done [15:51:32]FM_GetShiftState done [15:51:32]opened in 1730075620 [15:51:32]opened+sec_in_day 1730162020 [15:51:32]quantity*price = 100015 [15:51:32]sum+1 = 100017 [15:51:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 207 28.10.2024 15:51 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192659 ФПД: 205789587785320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T155138&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192659&fm=205789587785320&tin=02508201610067®Number=0000000000091776&sum=100000 [15:51:33]StoreToDocumentArchive [15:51:33]shift 543 fd 192659 [15:51:33]save to /storage/0543/doc_00192659 [15:51:33]save last doc name /storage/0543/doc_00192659 to /storage/kkm_last_doc_name [15:51:33]save OK [15:51:33]Clear old archive folders... [15:51:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:51:33]tlvbuf is 0197D6D0 [15:51:33]SAM_PROTO_ClearQueue [15:51:33]wFMCommunicate request_size=4 [15:51:33]MH_SAM_APDU [15:51:33]CAPDU: 80 09 00 00 [15:51:33]Write to MH i2c: E2 08 00 C8 59 80 09 00 00 00 00 00 00 93 [15:51:33]Write i2c OK [15:51:33]MH_I2C_Read... [15:51:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:33]Read from MH i2c: E2 [15:51:33]MH_I2C_Read... [15:51:33]Read from MH i2c: E2 03 00 [15:51:33]MH_I2C_Read... [15:51:33]Read from MH i2c: E2 03 00 C8 59 00 90 00 95 [15:51:33]RAPDU: 90 00 [15:51:33]wFMCommunicate OK [15:51:33]SAM_PROTO_ClearQueue done [15:51:33]KKMCreateOFDPacket [15:51:33]OFDProtocolAddRootSTLVToBuf [15:51:33]FM_MakeSignedData [15:51:33]FM_MakeSignedData [15:51:33]SAM_PROTO_SignData [15:51:33]wFMCommunicate request_size=4 [15:51:33]MH_SAM_APDU [15:51:33]CAPDU: 80 0D 01 02 [15:51:33]Write to MH i2c: E2 08 00 C9 59 80 0D 01 02 00 00 00 00 9B [15:51:33]Write i2c OK [15:51:33]MH_I2C_Read... [15:51:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:33]Read from MH i2c: E2 [15:51:33]MH_I2C_Read... [15:51:33]Read from MH i2c: E2 03 00 [15:51:33]MH_I2C_Read... [15:51:33]Read from MH i2c: E2 03 00 C9 59 00 90 00 96 [15:51:33]RAPDU: 90 00 [15:51:33]wFMCommunicate OK [15:51:33]wFMCommunicate request_size=255 [15:51:33]MH_SAM_APDU [15:51:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 0A B3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 F0 02 00 35 04 06 00 BB [15:51:33]Write to MH i2c: E2 02 01 CA 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 0A B3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 F0 02 00 35 04 06 00 BB 00 00 9C [15:51:33]Write i2c OK [15:51:33]MH_I2C_Read... [15:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:33]Read from MH i2c: E2 [15:51:33]MH_I2C_Read... [15:51:33]Read from MH i2c: E2 03 00 [15:51:33]MH_I2C_Read... [15:51:33]Read from MH i2c: E2 03 00 CA 59 00 90 00 97 [15:51:33]RAPDU: 90 00 [15:51:33]wFMCommunicate OK [15:51:33]wFMCommunicate request_size=10 [15:51:33]MH_SAM_APDU [15:51:33]CAPDU: 80 0D 02 02 05 2A 1F 47 46 68 [15:51:33]Write to MH i2c: E2 0D 00 CB 59 80 0D 02 02 05 00 2A 1F 47 46 68 00 00 E6 [15:51:33]Write i2c OK [15:51:33]MH_I2C_Read... [15:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:33]Read from MH i2c: E2 [15:51:33]MH_I2C_Read... [15:51:33]Read from MH i2c: E2 03 00 [15:51:33]MH_I2C_Read... [15:51:33]Read from MH i2c: E2 03 00 CB 59 00 90 00 98 [15:51:33]RAPDU: 90 00 [15:51:33]wFMCommunicate OK [15:51:33]wFMCommunicate request_size=4 [15:51:33]MH_SAM_APDU [15:51:33]CAPDU: 80 0D 03 02 [15:51:33]Write to MH i2c: E2 08 00 CC 59 80 0D 03 02 00 00 00 00 A0 [15:51:33]Write i2c OK [15:51:33]MH_I2C_Read... [15:51:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:34]Read from MH i2c: E2 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: E2 0B 00 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: E2 0B 00 CC 59 00 C9 2D 7A FC 8B 07 1A 66 90 00 1F [15:51:34]RAPDU: C9 2D 7A FC 8B 07 1A 66 90 00 [15:51:34]wFMCommunicate OK [15:51:34]SAM_PROTO_SignData done [15:51:34]FM_MakeSignedData done [15:51:34]CreateOFDProtocolMessage [15:51:34]wFMCommunicate request_size=4 [15:51:34]MH_SAM_APDU [15:51:34]CAPDU: 80 11 00 00 [15:51:34]Write to MH i2c: E2 08 00 CD 59 80 11 00 00 00 00 00 00 A0 [15:51:34]Write i2c OK [15:51:34]MH_I2C_Read... [15:51:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:34]Read from MH i2c: E2 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: E2 17 00 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: E2 17 00 CD 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F3 [15:51:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:51:34]wFMCommunicate OK [15:51:34]CreateOFDProtocolMessage done [15:51:34]OFDSenderStorePacket 192659 [15:51:34]StoreOFDPacket docnum=192659 [15:51:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BF 84 07 01 02 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 0A B3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 F0 02 00 35 04 06 00 BB 2A 1F 47 46 68 C9 2D 7A FC 8B 07 1A 66 [15:51:34]CheckFolder [15:51:34]dirname=/storage/ofd_packets [15:51:34]CheckFolder done [15:51:34]ProducePacketName [15:51:34]name=ofd_packets/00192659 [15:51:34]NVStorageSaveData ofd_packets/00192659 [15:51:34]File name is /storage/ofd_packets/00192659 [15:51:34]Write 301 bytes [15:51:34]NVStorageSaveData done [15:51:34]OFDSenderStorePacket done [15:51:34]KKMCreateOFDPacket done [15:51:34]NVStorageSaveData kkm_last_timestamp [15:51:34]File name is /storage/kkm_last_timestamp [15:51:34]Write 4 bytes [15:51:34]NVStorageSaveData done [15:51:34]ExternCall_PrintAddStr [15:51:34]wPrintStart [15:51:34]Write to MH i2c: 01 00 00 CE 59 27 [15:51:34]Write i2c OK [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: 01 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: 01 07 00 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: 01 07 00 CE 59 00 00 00 00 00 FF 0F 3C [15:51:34]RasterBufferAndPrint [15:51:34]line Счет N : (1)31986 [15:51:34]line ИНН: 02508201610067 [15:51:34]line Контрольно-Кассовый Чек [15:51:34]line ПРОДАЖА [15:51:34]line ТРК (МРК, ГНК) : 21 [15:51:34]line Товар: 2710124130 [15:51:34]line Аи-92-К-5 [15:51:34]line 14.950 * 66.90 [15:51:34]line = 1000.16 [15:51:34]line НДС 12% НСП 1% [15:51:34]line > о реализуемом товаре [15:51:34]line ОКРУГЛЕНИЕ: -0.16 [15:51:34]line ИТОГО: 1000.00 [15:51:34]line Внесено: 1000.00 [15:51:34]line СДАЧА: 0.00 [15:51:34]line НСП 1% : 8.85 [15:51:34]line НДС 12% : 106.21 [15:51:34]line Наличными: 1000.00 [15:51:34]line Безнал.: 0.00 [15:51:34]line Место: АЗС № 170 "Партнер Нефть" [15:51:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:51:34]line СНО: Общий режим [15:51:34]line Чек 207 28.10.2024 15:51 [15:51:34]line Смена: 543 ФФД: 1.0 [15:51:34]line ЗНМ: 0300000110 [15:51:34]line РНМ: 0000000000091776 [15:51:34]line Версия ККМ: 001 [15:51:34]line ФМ: 0000000000871754 [15:51:34]line ФД: 192659 [15:51:34]line ФПД: 205789587785320 [15:51:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T155138&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192659&fm=205789587785320&tin=02508201610067®Number=0000000000091776&sum=100000 [15:51:34]OFD Sender: Processing packet 192659 [packets to send 75, broken 74] [15:51:34]ProducePacketName [15:51:34]name=ofd_packets/00192659 [15:51:34]OFD Sender: To server: pG, [15:51:34]CommunicateWithHost lk.salyk.kg:30040 [15:51:34]ConnectInit lk.salyk.kg [15:51:34]written 0, free lines is 4095 [15:51:34]Connected sock=10 [15:51:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BF 84 07 01 02 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 0A B3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 F0 02 00 35 04 06 00 BB 2A 1F 47 46 68 C9 2D 7A FC 8B 07 1A 66 [15:51:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0D 0C 47 00 8F 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 F0 02 00 F4 03 04 00 CE 57 1F 67 B6 04 01 00 00 CD DD 82 AD 4D 77 3E 82 [15:51:34]CommunicateWithHost err = 0 [15:51:34]CheckOFDResponse [15:51:34]1017 (14) - 77093643461234 [15:51:34]1041 (16) - 0000000000871754 [15:51:34]1040 (4) - 192659 [15:51:34]1012 (4) - 28.10.2024 09:22 [15:51:34]1206 (1) - 0 [15:51:34]OFD Sender: Remove packet 192659 [15:51:34]ProducePacketName [15:51:34]name=ofd_packets/00192659 [15:51:34]NVStorageDeleteData [15:51:34]Write to MH i2c: 01 00 00 F9 59 52 [15:51:34]Write i2c OK [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: 01 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: 01 07 00 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: 01 07 00 F9 59 00 00 00 00 00 CB 0C 30 [15:51:34]RasterBufferAndPrint [15:51:34]line [15:51:34]line [15:51:34]line [15:51:34]line [15:51:34]line [15:51:34]written 0, free lines is 3280 [15:51:34]MH_Cut [15:51:34]Write to MH i2c: D1 01 00 00 5A 01 2C [15:51:34]Write i2c OK [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: D1 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: D1 01 00 [15:51:34]MH_I2C_Read... [15:51:34]Read from MH i2c: D1 01 00 00 5A 00 2B [15:51:34]Write to MH i2c: 01 00 00 01 5A 5B [15:51:34]Write i2c OK [15:51:34]MH_I2C_Read... [15:51:35]OFD Sender: No OFD packet to send [15:51:35]*** Cut start [15:51:35]*** Partial cut [15:51:35]*** CUTSNS_PIN = 1 [15:51:35]*** CUTSNS_PIN = 0 [15:51:35]*** Brake cut motor [15:51:36]Read from MH i2c: 01 [15:51:36]MH_I2C_Read... [15:51:36]*** Stop cut motor [15:51:36]*** Cut end [15:51:36]Read from MH i2c: 01 07 00 [15:51:36]MH_I2C_Read... [15:51:36]Read from MH i2c: 01 07 00 01 5A 00 00 00 00 00 FF 0F 70 [15:51:36]process_action close_receipt done [15:51:36]requested_data is exist [15:51:36]produce_requested_data [15:51:36]requested_item fm.sn is exist - process it [15:51:36]wFMCommunicate request_size=4 [15:51:36]MH_SAM_APDU [15:51:36]CAPDU: 80 11 00 00 [15:51:36]Write to MH i2c: E2 08 00 02 5A 80 11 00 00 00 00 00 00 D6 [15:51:36]Write i2c OK [15:51:36]MH_I2C_Read... [15:51:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:36]Read from MH i2c: E2 [15:51:36]MH_I2C_Read... [15:51:36]Read from MH i2c: E2 17 00 [15:51:36]MH_I2C_Read... [15:51:36]Read from MH i2c: E2 17 00 02 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 29 [15:51:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:51:36]wFMCommunicate OK [15:51:36]requested_item fd.num is exist - process it [15:51:36]SAM_PROTO_GetFieldsCounters [15:51:36]wFMCommunicate request_size=4 [15:51:36]MH_SAM_APDU [15:51:36]CAPDU: 80 13 00 00 [15:51:36]Write to MH i2c: E2 08 00 03 5A 80 13 00 00 00 00 00 00 D9 [15:51:36]Write i2c OK [15:51:36]MH_I2C_Read... [15:51:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:36]Read from MH i2c: E2 [15:51:36]MH_I2C_Read... [15:51:36]Read from MH i2c: E2 62 00 [15:51:36]MH_I2C_Read... [15:51:36]Read from MH i2c: E2 62 00 03 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [15:51:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:36]wFMCommunicate OK [15:51:36]SAM_PROTO_GetFieldsCounters done [15:51:36]requested_item shift.num is exist - process it [15:51:36]requested_item shift.opened is exist - process it [15:51:36]req_shift_opened [15:51:36]FM_GetShiftState [15:51:36]SAM_PROTO_GetShiftState [15:51:36]wFMCommunicate request_size=4 [15:51:36]MH_SAM_APDU [15:51:36]CAPDU: 80 13 01 00 [15:51:36]Write to MH i2c: E2 08 00 04 5A 80 13 01 00 00 00 00 00 DB [15:51:36]Write i2c OK [15:51:36]MH_I2C_Read... [15:51:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:36]Read from MH i2c: E2 [15:51:36]MH_I2C_Read... [15:51:36]Read from MH i2c: E2 0E 00 [15:51:36]MH_I2C_Read... [15:51:36]Read from MH i2c: E2 0E 00 04 5A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2B [15:51:36]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [15:51:36]wFMCommunicate OK [15:51:36]SAM_PROTO_GetShiftState done [15:51:36]FM_GetShiftState done [15:51:36]req_shift_opened done [15:51:36]requested_item shift.open_date is exist - process it [15:51:36]req_shift_open_date [15:51:36]req_shift_open_date done [15:51:36]produce_requested_data done [15:51:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192659,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [15:51:36]process_action_free close_receipt [15:51:36]json_value_free [15:51:36]json_value_free done [15:51:36]process_json_proto returns [15:51:36]Send response to host [15:51:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192659,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [15:51:36]free response buf [15:51:36]execute_script done [15:51:36]execute_script returns [15:51:36]free content buf [15:51:36]Sock 7.Close socket [15:51:36]Sock 7.Thread stoped [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:19]accept exits with 9 [16:00:19]New connection [16:00:19]New thread 3066563940 created [16:00:19]Thread 3066707300 joined [16:00:19]Waiting for new connection... [16:00:19] Sock 9.Parse request [16:00:19]Sock 9.Check first char [16:00:19]Sock 9.First char is OK [16:00:19]request: POST /json_proto HTTP/1.0 [16:00:19]Method: POST [16:00:19]URL: /json_proto [16:00:19]Method is POST - this is cgi request [16:00:19]url: /json_proto [16:00:19]query_string will be loaded in cgi processing [16:00:19]execute_cgi json_proto POST (null) [16:00:19]execute_cgi path=json_proto method=POST [16:00:19]POST find Content-Length [16:00:19]Host: 172.17.63.131:8080 [16:00:19]Content-Length: 676 [16:00:19]Content-Type: application/json [16:00:19] [16:00:19]POST finish read [16:00:19]Found Content-Length = 676 [16:00:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:19]execute_script... [16:00: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)31987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:19]POST & json_proto [16:00:19]process_json_proto [16:00:19]json parsed OK: [16:00:19]protocol is kg_v1.0 [16:00:19]action value=close_receipt [16:00:19]process_action close_receipt [16:00:19]cmd_close_receipt [16:00:19]MH_GetDate [16:00:19]Write to MH i2c: F0 00 00 05 5A 4E [16:00:19]Write i2c OK [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: F0 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: F0 09 00 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: F0 09 00 05 5A 00 19 B5 1F 67 22 05 6E 64 A4 [16:00:19]GetLastDocTimeStamp 1730130698 [16:00:19]current date 1730131225 [16:00:19]FM_GetShiftState [16:00:19]SAM_PROTO_GetShiftState [16:00:19]wFMCommunicate request_size=4 [16:00:19]MH_SAM_APDU [16:00:19]CAPDU: 80 13 01 00 [16:00:19]Write to MH i2c: E2 08 00 06 5A 80 13 01 00 00 00 00 00 DD [16:00:19]Write i2c OK [16:00:19]MH_I2C_Read... [16:00:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:19]Read from MH i2c: E2 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: E2 0E 00 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: E2 0E 00 06 5A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2D [16:00:19]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:00:19]wFMCommunicate OK [16:00:19]SAM_PROTO_GetShiftState done [16:00:19]FM_GetShiftState done [16:00:19]opened in 1730075620 [16:00:19]opened+sec_in_day 1730162020 [16:00:19]quantity*price = 50041 [16:00:19]sum+1 = 50042 [16:00:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 208 28.10.2024 16:00 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192660 ФПД: 140316401868462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T160025&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192660&fm=140316401868462&tin=02508201610067®Number=0000000000091776&sum=50000 [16:00:20]StoreToDocumentArchive [16:00:20]shift 543 fd 192660 [16:00:20]save to /storage/0543/doc_00192660 [16:00:20]save last doc name /storage/0543/doc_00192660 to /storage/kkm_last_doc_name [16:00:20]save OK [16:00:20]Clear old archive folders... [16:00:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:20]tlvbuf is 0197AF70 [16:00:20]SAM_PROTO_ClearQueue [16:00:20]wFMCommunicate request_size=4 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 09 00 00 [16:00:20]Write to MH i2c: E2 08 00 13 5A 80 09 00 00 00 00 00 00 DF [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 13 5A 00 90 00 E1 [16:00:20]RAPDU: 90 00 [16:00:20]wFMCommunicate OK [16:00:20]SAM_PROTO_ClearQueue done [16:00:20]KKMCreateOFDPacket [16:00:20]OFDProtocolAddRootSTLVToBuf [16:00:20]FM_MakeSignedData [16:00:20]FM_MakeSignedData [16:00:20]SAM_PROTO_SignData [16:00:20]wFMCommunicate request_size=4 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 0D 01 02 [16:00:20]Write to MH i2c: E2 08 00 14 5A 80 0D 01 02 00 00 00 00 E7 [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 14 5A 00 90 00 E2 [16:00:20]RAPDU: 90 00 [16:00:20]wFMCommunicate OK [16:00:20]wFMCommunicate request_size=255 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 19 B5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 F0 02 00 35 04 06 00 7F [16:00:20]Write to MH i2c: E2 02 01 15 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 19 B5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 F0 02 00 35 04 06 00 7F 00 00 C5 [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 15 5A 00 90 00 E3 [16:00:20]RAPDU: 90 00 [16:00:20]wFMCommunicate OK [16:00:20]wFMCommunicate request_size=10 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 0D 02 02 05 9D F5 4A 1E AE [16:00:20]Write to MH i2c: E2 0D 00 16 5A 80 0D 02 02 05 00 9D F5 4A 1E AE 00 00 9C [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 16 5A 00 90 00 E4 [16:00:20]RAPDU: 90 00 [16:00:20]wFMCommunicate OK [16:00:20]wFMCommunicate request_size=4 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 0D 03 02 [16:00:20]Write to MH i2c: E2 08 00 17 5A 80 0D 03 02 00 00 00 00 EC [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 0B 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 0B 00 17 5A 00 8C FA 01 07 D8 A7 1E 08 90 00 20 [16:00:20]RAPDU: 8C FA 01 07 D8 A7 1E 08 90 00 [16:00:20]wFMCommunicate OK [16:00:20]SAM_PROTO_SignData done [16:00:20]FM_MakeSignedData done [16:00:20]CreateOFDProtocolMessage [16:00:20]wFMCommunicate request_size=4 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 11 00 00 [16:00:20]Write to MH i2c: E2 08 00 18 5A 80 11 00 00 00 00 00 00 EC [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 17 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 17 00 18 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3F [16:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:00:20]wFMCommunicate OK [16:00:20]CreateOFDProtocolMessage done [16:00:20]OFDSenderStorePacket 192660 [16:00:20]StoreOFDPacket docnum=192660 [16:00:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 16 7D 07 01 B5 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 19 B5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 F0 02 00 35 04 06 00 7F 9D F5 4A 1E AE 8C FA 01 07 D8 A7 1E 08 [16:00:20]CheckFolder [16:00:20]dirname=/storage/ofd_packets [16:00:20]CheckFolder done [16:00:20]ProducePacketName [16:00:20]name=ofd_packets/00192660 [16:00:20]NVStorageSaveData ofd_packets/00192660 [16:00:20]File name is /storage/ofd_packets/00192660 [16:00:20]Write 301 bytes [16:00:20]NVStorageSaveData done [16:00:20]OFDSenderStorePacket done [16:00:20]KKMCreateOFDPacket done [16:00:20]NVStorageSaveData kkm_last_timestamp [16:00:20]File name is /storage/kkm_last_timestamp [16:00:20]Write 4 bytes [16:00:20]NVStorageSaveData done [16:00:20]ExternCall_PrintAddStr [16:00:20]wPrintStart [16:00:20]Write to MH i2c: 01 00 00 19 5A 73 [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: 01 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: 01 07 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: 01 07 00 19 5A 00 00 00 00 00 FF 0F 88 [16:00:20]RasterBufferAndPrint [16:00:20]line Счет N : (1)31987 [16:00:20]line ИНН: 02508201610067 [16:00:20]line Контрольно-Кассовый Чек [16:00:20]line ПРОДАЖА [16:00:20]line ТРК (МРК, ГНК) : 21 [16:00:20]line Товар: 2710124130 [16:00:20]line Аи-92-К-5 [16:00:20]line 7.480 * 66.90 [16:00:20]line = 500.41 [16:00:20]line НДС 12% НСП 1% [16:00:20]line > о реализуемом товаре [16:00:20]line ОКРУГЛЕНИЕ: -0.41 [16:00:20]line ИТОГО: 500.00 [16:00:20]line Внесено: 500.00 [16:00:20]line СДАЧА: 0.00 [16:00:20]line НСП 1% : 4.43 [16:00:20]line НДС 12% : 53.14 [16:00:20]line Наличными: 500.00 [16:00:20]line Безнал.: 0.00 [16:00:20]line Место: АЗС № 170 "Партнер Нефть" [16:00:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:00:20]line СНО: Общий режим [16:00:20]line Чек 208 28.10.2024 16:00 [16:00:20]line Смена: 543 ФФД: 1.0 [16:00:20]line ЗНМ: 0300000110 [16:00:20]line РНМ: 0000000000091776 [16:00:20]line Версия ККМ: 001 [16:00:20]line ФМ: 0000000000871754 [16:00:20]line ФД: 192660 [16:00:20]line ФПД: 140316401868462 [16:00:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T160025&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192660&fm=140316401868462&tin=02508201610067®Number=0000000000091776&sum=50000 [16:00:21]OFD Sender: Processing packet 192660 [packets to send 75, broken 74] [16:00:21]ProducePacketName [16:00:21]name=ofd_packets/00192660 [16:00:21]OFD Sender: To server: pG, [16:00:21]CommunicateWithHost lk.salyk.kg:30040 [16:00:21]ConnectInit lk.salyk.kg [16:00:21]written 0, free lines is 4095 [16:00:21]Connected sock=10 [16:00:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 16 7D 07 01 B5 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 19 B5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 F0 02 00 35 04 06 00 7F 9D F5 4A 1E AE 8C FA 01 07 D8 A7 1E 08 [16:00:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0F A7 47 00 C6 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 F0 02 00 F4 03 04 00 DC 59 1F 67 B6 04 01 00 00 29 31 D2 C1 B8 21 29 6E [16:00:21]CommunicateWithHost err = 0 [16:00:21]CheckOFDResponse [16:00:21]1017 (14) - 77093643461234 [16:00:21]1041 (16) - 0000000000871754 [16:00:21]1040 (4) - 192660 [16:00:21]1012 (4) - 28.10.2024 09:31 [16:00:21]1206 (1) - 0 [16:00:21]OFD Sender: Remove packet 192660 [16:00:21]ProducePacketName [16:00:21]name=ofd_packets/00192660 [16:00:21]NVStorageDeleteData [16:00:21]Write to MH i2c: 01 00 00 44 5A 9E [16:00:21]Write i2c OK [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: 01 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: 01 07 00 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: 01 07 00 44 5A 00 00 00 00 00 C6 0C 77 [16:00:21]RasterBufferAndPrint [16:00:21]line [16:00:21]line [16:00:21]line [16:00:21]line [16:00:21]line [16:00:21]written 0, free lines is 3276 [16:00:21]MH_Cut [16:00:21]Write to MH i2c: D1 01 00 4B 5A 01 77 [16:00:21]Write i2c OK [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: D1 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: D1 01 00 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: D1 01 00 4B 5A 00 76 [16:00:21]Write to MH i2c: 01 00 00 4C 5A A6 [16:00:21]Write i2c OK [16:00:21]MH_I2C_Read... [16:00:21]OFD Sender: No OFD packet to send [16:00:22]*** Cut start [16:00:22]*** Partial cut [16:00:22]*** CUTSNS_PIN = 1 [16:00:22]*** CUTSNS_PIN = 0 [16:00:22]*** Brake cut motor [16:00:22]Read from MH i2c: 01 [16:00:22]MH_I2C_Read... [16:00:22]*** Stop cut motor [16:00:22]*** Cut end [16:00:22]Read from MH i2c: 01 07 00 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: 01 07 00 4C 5A 00 00 00 00 00 FF 0F BB [16:00:22]process_action close_receipt done [16:00:22]requested_data is exist [16:00:22]produce_requested_data [16:00:22]requested_item fm.sn is exist - process it [16:00:22]wFMCommunicate request_size=4 [16:00:22]MH_SAM_APDU [16:00:22]CAPDU: 80 11 00 00 [16:00:22]Write to MH i2c: E2 08 00 4D 5A 80 11 00 00 00 00 00 00 21 [16:00:22]Write i2c OK [16:00:22]MH_I2C_Read... [16:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:22]Read from MH i2c: E2 [16:00:22]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 17 00 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 17 00 4D 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 74 [16:00:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:00:23]wFMCommunicate OK [16:00:23]requested_item fd.num is exist - process it [16:00:23]SAM_PROTO_GetFieldsCounters [16:00:23]wFMCommunicate request_size=4 [16:00:23]MH_SAM_APDU [16:00:23]CAPDU: 80 13 00 00 [16:00:23]Write to MH i2c: E2 08 00 4E 5A 80 13 00 00 00 00 00 00 24 [16:00:23]Write i2c OK [16:00:23]MH_I2C_Read... [16:00:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:23]Read from MH i2c: E2 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 62 00 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 62 00 4E 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 94 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [16:00:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 94 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:23]wFMCommunicate OK [16:00:23]SAM_PROTO_GetFieldsCounters done [16:00:23]requested_item shift.num is exist - process it [16:00:23]requested_item shift.opened is exist - process it [16:00:23]req_shift_opened [16:00:23]FM_GetShiftState [16:00:23]SAM_PROTO_GetShiftState [16:00:23]wFMCommunicate request_size=4 [16:00:23]MH_SAM_APDU [16:00:23]CAPDU: 80 13 01 00 [16:00:23]Write to MH i2c: E2 08 00 4F 5A 80 13 01 00 00 00 00 00 26 [16:00:23]Write i2c OK [16:00:23]MH_I2C_Read... [16:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:23]Read from MH i2c: E2 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 0E 00 [16:00:23]MH_I2C_Read... [16:00:23]Read from MH i2c: E2 0E 00 4F 5A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 76 [16:00:23]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:00:23]wFMCommunicate OK [16:00:23]SAM_PROTO_GetShiftState done [16:00:23]FM_GetShiftState done [16:00:23]req_shift_opened done [16:00:23]requested_item shift.open_date is exist - process it [16:00:23]req_shift_open_date [16:00:23]req_shift_open_date done [16:00:23]produce_requested_data done [16:00:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192660,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:00:23]process_action_free close_receipt [16:00:23]json_value_free [16:00:23]json_value_free done [16:00:23]process_json_proto returns [16:00:23]Send response to host [16:00:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192660,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:00:23]free response buf [16:00:23]execute_script done [16:00:23]execute_script returns [16:00:23]free content buf [16:00:23]Sock 9.Close socket [16:00:23]Sock 9.Thread stoped [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]accept exits with 7 [16:02:06]New connection [16:02:06]New thread 3066707300 created [16:02:06]Thread 3066563940 joined [16:02:06]Waiting for new connection... [16:02:06] Sock 7.Parse request [16:02:06]Sock 7.Check first char [16:02:06]Sock 7.First char is OK [16:02:06]request: POST /json_proto HTTP/1.0 [16:02:06]Method: POST [16:02:06]URL: /json_proto [16:02:06]Method is POST - this is cgi request [16:02:06]url: /json_proto [16:02:06]query_string will be loaded in cgi processing [16:02:06]execute_cgi json_proto POST (null) [16:02:06]execute_cgi path=json_proto method=POST [16:02:06]POST find Content-Length [16:02:06]Host: 172.17.63.131:8080 [16:02:06]Content-Length: 676 [16:02:06]Content-Type: application/json [16:02:06] [16:02:06]POST finish read [16:02:06]Found Content-Length = 676 [16:02:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:06]execute_script... [16:02:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:06]POST & json_proto [16:02:06]process_json_proto [16:02:06]json parsed OK: [16:02:06]protocol is kg_v1.0 [16:02:06]action value=close_receipt [16:02:06]process_action close_receipt [16:02:06]cmd_close_receipt [16:02:06]MH_GetDate [16:02:06]Write to MH i2c: F0 00 00 50 5A 99 [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: F0 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: F0 09 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: F0 09 00 50 5A 00 84 B5 1F 67 22 05 6E 64 5A [16:02:06]GetLastDocTimeStamp 1730131225 [16:02:06]current date 1730131332 [16:02:06]FM_GetShiftState [16:02:06]SAM_PROTO_GetShiftState [16:02:06]wFMCommunicate request_size=4 [16:02:06]MH_SAM_APDU [16:02:06]CAPDU: 80 13 01 00 [16:02:06]Write to MH i2c: E2 08 00 51 5A 80 13 01 00 00 00 00 00 28 [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:06]OFD Sender: No OFD packet to send [16:02:06]Read from MH i2c: E2 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: E2 0E 00 [16:02:07]MH_I2C_Read... [16:02:07]Read from MH i2c: E2 0E 00 51 5A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 78 [16:02:07]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:02:07]wFMCommunicate OK [16:02:07]SAM_PROTO_GetShiftState done [16:02:07]FM_GetShiftState done [16:02:07]opened in 1730075620 [16:02:07]opened+sec_in_day 1730162020 [16:02:07]quantity*price = 60009 [16:02:07]sum+1 = 60010 [16:02:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 209 28.10.2024 16:02 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192661 ФПД: 67855764658247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T160212&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192661&fm=67855764658247&tin=02508201610067®Number=0000000000091776&sum=60000 [16:02:08]StoreToDocumentArchive [16:02:08]shift 543 fd 192661 [16:02:08]save to /storage/0543/doc_00192661 [16:02:08]save last doc name /storage/0543/doc_00192661 to /storage/kkm_last_doc_name [16:02:08]save OK [16:02:08]Clear old archive folders... [16:02:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:02:08]tlvbuf is 019C1600 [16:02:08]SAM_PROTO_ClearQueue [16:02:08]wFMCommunicate request_size=4 [16:02:08]MH_SAM_APDU [16:02:08]CAPDU: 80 09 00 00 [16:02:08]Write to MH i2c: E2 08 00 5E 5A 80 09 00 00 00 00 00 00 2A [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:08]Read from MH i2c: E2 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 03 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 03 00 5E 5A 00 90 00 2C [16:02:08]RAPDU: 90 00 [16:02:08]wFMCommunicate OK [16:02:08]SAM_PROTO_ClearQueue done [16:02:08]KKMCreateOFDPacket [16:02:08]OFDProtocolAddRootSTLVToBuf [16:02:08]FM_MakeSignedData [16:02:08]FM_MakeSignedData [16:02:08]SAM_PROTO_SignData [16:02:08]wFMCommunicate request_size=4 [16:02:08]MH_SAM_APDU [16:02:08]CAPDU: 80 0D 01 02 [16:02:08]Write to MH i2c: E2 08 00 5F 5A 80 0D 01 02 00 00 00 00 32 [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:08]Read from MH i2c: E2 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 03 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 03 00 5F 5A 00 90 00 2D [16:02:08]RAPDU: 90 00 [16:02:08]wFMCommunicate OK [16:02:08]wFMCommunicate request_size=255 [16:02:08]MH_SAM_APDU [16:02:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 84 B5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 F0 02 00 35 04 06 00 3D [16:02:08]Write to MH i2c: E2 02 01 60 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 84 B5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 F0 02 00 35 04 06 00 3D 00 00 18 [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:08]Read from MH i2c: E2 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 03 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 03 00 60 5A 00 90 00 2E [16:02:08]RAPDU: 90 00 [16:02:08]wFMCommunicate OK [16:02:08]wFMCommunicate request_size=10 [16:02:08]MH_SAM_APDU [16:02:08]CAPDU: 80 0D 02 02 05 B6 E6 BF 98 47 [16:02:08]Write to MH i2c: E2 0D 00 61 5A 80 0D 02 02 05 00 B6 E6 BF 98 47 00 00 79 [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:08]Read from MH i2c: E2 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 03 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 03 00 61 5A 00 90 00 2F [16:02:08]RAPDU: 90 00 [16:02:08]wFMCommunicate OK [16:02:08]wFMCommunicate request_size=4 [16:02:08]MH_SAM_APDU [16:02:08]CAPDU: 80 0D 03 02 [16:02:08]Write to MH i2c: E2 08 00 62 5A 80 0D 03 02 00 00 00 00 37 [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:08]Read from MH i2c: E2 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 0B 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 0B 00 62 5A 00 8F 74 94 16 10 09 5E 1F 90 00 7B [16:02:08]RAPDU: 8F 74 94 16 10 09 5E 1F 90 00 [16:02:08]wFMCommunicate OK [16:02:08]SAM_PROTO_SignData done [16:02:08]FM_MakeSignedData done [16:02:08]CreateOFDProtocolMessage [16:02:08]wFMCommunicate request_size=4 [16:02:08]MH_SAM_APDU [16:02:08]CAPDU: 80 11 00 00 [16:02:08]Write to MH i2c: E2 08 00 63 5A 80 11 00 00 00 00 00 00 37 [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:08]Read from MH i2c: E2 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 17 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: E2 17 00 63 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8A [16:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:02:08]wFMCommunicate OK [16:02:08]CreateOFDProtocolMessage done [16:02:08]OFDSenderStorePacket 192661 [16:02:08]StoreOFDPacket docnum=192661 [16:02:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EC 18 07 01 4A 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 84 B5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 F0 02 00 35 04 06 00 3D B6 E6 BF 98 47 8F 74 94 16 10 09 5E 1F [16:02:08]CheckFolder [16:02:08]dirname=/storage/ofd_packets [16:02:08]CheckFolder done [16:02:08]ProducePacketName [16:02:08]name=ofd_packets/00192661 [16:02:08]NVStorageSaveData ofd_packets/00192661 [16:02:08]File name is /storage/ofd_packets/00192661 [16:02:08]Write 301 bytes [16:02:08]NVStorageSaveData done [16:02:08]OFDSenderStorePacket done [16:02:08]KKMCreateOFDPacket done [16:02:08]NVStorageSaveData kkm_last_timestamp [16:02:08]File name is /storage/kkm_last_timestamp [16:02:08]Write 4 bytes [16:02:08]NVStorageSaveData done [16:02:08]ExternCall_PrintAddStr [16:02:08]wPrintStart [16:02:08]Write to MH i2c: 01 00 00 64 5A BE [16:02:08]Write i2c OK [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: 01 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: 01 07 00 [16:02:08]MH_I2C_Read... [16:02:08]Read from MH i2c: 01 07 00 64 5A 00 00 00 00 00 FF 0F D3 [16:02:08]RasterBufferAndPrint [16:02:08]line Счет N : (1)31988 [16:02:08]line ИНН: 02508201610067 [16:02:08]line Контрольно-Кассовый Чек [16:02:08]line ПРОДАЖА [16:02:08]line ТРК (МРК, ГНК) : 21 [16:02:08]line Товар: 2710124130 [16:02:08]line Аи-92-К-5 [16:02:08]line 8.970 * 66.90 [16:02:08]line = 600.09 [16:02:08]line НДС 12% НСП 1% [16:02:08]line > о реализуемом товаре [16:02:08]line ОКРУГЛЕНИЕ: -0.09 [16:02:08]line ИТОГО: 600.00 [16:02:08]line Внесено: 600.00 [16:02:08]line СДАЧА: 0.00 [16:02:08]line НСП 1% : 5.31 [16:02:08]line НДС 12% : 63.73 [16:02:08]line Наличными: 600.00 [16:02:08]line Безнал.: 0.00 [16:02:08]line Место: АЗС № 170 "Партнер Нефть" [16:02:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:02:08]line СНО: Общий режим [16:02:08]line Чек 209 28.10.2024 16:02 [16:02:08]line Смена: 543 ФФД: 1.0 [16:02:08]line ЗНМ: 0300000110 [16:02:08]line РНМ: 0000000000091776 [16:02:08]line Версия ККМ: 001 [16:02:08]line ФМ: 0000000000871754 [16:02:08]line ФД: 192661 [16:02:08]line ФПД: 67855764658247 [16:02:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T160212&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192661&fm=67855764658247&tin=02508201610067®Number=0000000000091776&sum=60000 [16:02:08]OFD Sender: Processing packet 192661 [packets to send 75, broken 74] [16:02:08]ProducePacketName [16:02:08]name=ofd_packets/00192661 [16:02:08]OFD Sender: To server: pG, [16:02:08]CommunicateWithHost lk.salyk.kg:30040 [16:02:08]ConnectInit lk.salyk.kg [16:02:08]written 0, free lines is 4095 [16:02:09]Connected sock=10 [16:02:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EC 18 07 01 4A 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 84 B5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 F0 02 00 35 04 06 00 3D B6 E6 BF 98 47 8F 74 94 16 10 09 5E 1F [16:02:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2A E2 47 00 0F D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 F0 02 00 F4 03 04 00 48 5A 1F 67 B6 04 01 00 00 59 5D B2 9A D3 A5 73 13 [16:02:09]CommunicateWithHost err = 0 [16:02:09]CheckOFDResponse [16:02:09]1017 (14) - 77093643461234 [16:02:09]1041 (16) - 0000000000871754 [16:02:09]1040 (4) - 192661 [16:02:09]1012 (4) - 28.10.2024 09:32 [16:02:09]1206 (1) - 0 [16:02:09]OFD Sender: Remove packet 192661 [16:02:09]ProducePacketName [16:02:09]name=ofd_packets/00192661 [16:02:09]NVStorageDeleteData [16:02:09]Write to MH i2c: 01 00 00 8F 5A E9 [16:02:09]Write i2c OK [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: 01 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: 01 07 00 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: 01 07 00 8F 5A 00 00 00 00 00 C2 0C BE [16:02:09]RasterBufferAndPrint [16:02:09]line [16:02:09]line [16:02:09]line [16:02:09]line [16:02:09]line [16:02:09]written 0, free lines is 3272 [16:02:09]MH_Cut [16:02:09]Write to MH i2c: D1 01 00 96 5A 01 C2 [16:02:09]Write i2c OK [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: D1 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: D1 01 00 [16:02:09]MH_I2C_Read... [16:02:09]Read from MH i2c: D1 01 00 96 5A 00 C1 [16:02:09]Write to MH i2c: 01 00 00 97 5A F1 [16:02:09]Write i2c OK [16:02:09]MH_I2C_Read... [16:02:09]OFD Sender: No OFD packet to send [16:02:10]*** Cut start [16:02:10]*** Partial cut [16:02:10]*** CUTSNS_PIN = 1 [16:02:10]*** CUTSNS_PIN = 0 [16:02:10]*** Brake cut motor [16:02:10]Read from MH i2c: 01 [16:02:10]MH_I2C_Read... [16:02:10]*** Stop cut motor [16:02:10]*** Cut end [16:02:10]Read from MH i2c: 01 07 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: 01 07 00 97 5A 00 00 00 00 00 FF 0F 06 [16:02:10]process_action close_receipt done [16:02:10]requested_data is exist [16:02:10]produce_requested_data [16:02:10]requested_item fm.sn is exist - process it [16:02:10]wFMCommunicate request_size=4 [16:02:10]MH_SAM_APDU [16:02:10]CAPDU: 80 11 00 00 [16:02:10]Write to MH i2c: E2 08 00 98 5A 80 11 00 00 00 00 00 00 6C [16:02:10]Write i2c OK [16:02:10]MH_I2C_Read... [16:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:10]Read from MH i2c: E2 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 17 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 17 00 98 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BF [16:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:02:10]wFMCommunicate OK [16:02:10]requested_item fd.num is exist - process it [16:02:10]SAM_PROTO_GetFieldsCounters [16:02:10]wFMCommunicate request_size=4 [16:02:10]MH_SAM_APDU [16:02:10]CAPDU: 80 13 00 00 [16:02:10]Write to MH i2c: E2 08 00 99 5A 80 13 00 00 00 00 00 00 6F [16:02:10]Write i2c OK [16:02:10]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 62 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 62 00 99 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 95 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [16:02:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 95 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:11]wFMCommunicate OK [16:02:11]SAM_PROTO_GetFieldsCounters done [16:02:11]requested_item shift.num is exist - process it [16:02:11]requested_item shift.opened is exist - process it [16:02:11]req_shift_opened [16:02:11]FM_GetShiftState [16:02:11]SAM_PROTO_GetShiftState [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 13 01 00 [16:02:11]Write to MH i2c: E2 08 00 9A 5A 80 13 01 00 00 00 00 00 71 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 0E 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 0E 00 9A 5A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C1 [16:02:11]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:02:11]wFMCommunicate OK [16:02:11]SAM_PROTO_GetShiftState done [16:02:11]FM_GetShiftState done [16:02:11]req_shift_opened done [16:02:11]requested_item shift.open_date is exist - process it [16:02:11]req_shift_open_date [16:02:11]req_shift_open_date done [16:02:11]produce_requested_data done [16:02:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192661,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:02:11]process_action_free close_receipt [16:02:11]json_value_free [16:02:11]json_value_free done [16:02:11]process_json_proto returns [16:02:11]Send response to host [16:02:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192661,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:02:11]free response buf [16:02:11]execute_script done [16:02:11]execute_script returns [16:02:11]free content buf [16:02:11]Sock 7.Close socket [16:02:11]Sock 7.Thread stoped [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:10]accept exits with 9 [16:03:10]New connection [16:03:10]New thread 3066563940 created [16:03:10]Thread 3066707300 joined [16:03:10]Waiting for new connection... [16:03:10] Sock 9.Parse request [16:03:10]Sock 9.Check first char [16:03:10]Sock 9.First char is OK [16:03:10]request: POST /json_proto HTTP/1.0 [16:03:10]Method: POST [16:03:10]URL: /json_proto [16:03:10]Method is POST - this is cgi request [16:03:10]url: /json_proto [16:03:10]query_string will be loaded in cgi processing [16:03:10]execute_cgi json_proto POST (null) [16:03:10]execute_cgi path=json_proto method=POST [16:03:10]POST find Content-Length [16:03:10]Host: 172.17.63.131:8080 [16:03:10]Content-Length: 676 [16:03:10]Content-Type: application/json [16:03:10] [16:03:10]POST finish read [16:03:10]Found Content-Length = 676 [16:03:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:10]execute_script... [16:03: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)31989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:10]POST & json_proto [16:03:10]process_json_proto [16:03:10]json parsed OK: [16:03:10]protocol is kg_v1.0 [16:03:10]action value=close_receipt [16:03:10]process_action close_receipt [16:03:10]cmd_close_receipt [16:03:10]MH_GetDate [16:03:10]Write to MH i2c: F0 00 00 9B 5A E4 [16:03:10]Write i2c OK [16:03:10]MH_I2C_Read... [16:03:10]Read from MH i2c: F0 [16:03:10]MH_I2C_Read... [16:03:10]Read from MH i2c: F0 09 00 [16:03:10]MH_I2C_Read... [16:03:10]Read from MH i2c: F0 09 00 9B 5A 00 C4 B5 1F 67 22 05 6E 64 E5 [16:03:10]GetLastDocTimeStamp 1730131332 [16:03:10]current date 1730131396 [16:03:10]FM_GetShiftState [16:03:10]SAM_PROTO_GetShiftState [16:03:10]wFMCommunicate request_size=4 [16:03:10]MH_SAM_APDU [16:03:10]CAPDU: 80 13 01 00 [16:03:10]Write to MH i2c: E2 08 00 9C 5A 80 13 01 00 00 00 00 00 73 [16:03:10]Write i2c OK [16:03:10]MH_I2C_Read... [16:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:10]Read from MH i2c: E2 [16:03:10]MH_I2C_Read... [16:03:10]Read from MH i2c: E2 0E 00 [16:03:10]MH_I2C_Read... [16:03:10]Read from MH i2c: E2 0E 00 9C 5A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C3 [16:03:10]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:03:10]wFMCommunicate OK [16:03:10]SAM_PROTO_GetShiftState done [16:03:10]FM_GetShiftState done [16:03:10]opened in 1730075620 [16:03:10]opened+sec_in_day 1730162020 [16:03:10]quantity*price = 30038 [16:03:10]sum+1 = 30039 [16:03:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 210 28.10.2024 16:03 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192662 ФПД: 197678545947894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T160316&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192662&fm=197678545947894&tin=02508201610067®Number=0000000000091776&sum=30000 [16:03:11]StoreToDocumentArchive [16:03:11]shift 543 fd 192662 [16:03:11]save to /storage/0543/doc_00192662 [16:03:11]save last doc name /storage/0543/doc_00192662 to /storage/kkm_last_doc_name [16:03:11]save OK [16:03:11]Clear old archive folders... [16:03:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:11]tlvbuf is 0197DF20 [16:03:11]SAM_PROTO_ClearQueue [16:03:11]wFMCommunicate request_size=4 [16:03:11]MH_SAM_APDU [16:03:11]CAPDU: 80 09 00 00 [16:03:11]Write to MH i2c: E2 08 00 A9 5A 80 09 00 00 00 00 00 00 75 [16:03:11]Write i2c OK [16:03:11]MH_I2C_Read... [16:03:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:11]Read from MH i2c: E2 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 03 00 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 03 00 A9 5A 00 90 00 77 [16:03:11]RAPDU: 90 00 [16:03:11]wFMCommunicate OK [16:03:11]SAM_PROTO_ClearQueue done [16:03:11]KKMCreateOFDPacket [16:03:11]OFDProtocolAddRootSTLVToBuf [16:03:11]FM_MakeSignedData [16:03:11]FM_MakeSignedData [16:03:11]SAM_PROTO_SignData [16:03:11]wFMCommunicate request_size=4 [16:03:11]MH_SAM_APDU [16:03:11]CAPDU: 80 0D 01 02 [16:03:11]Write to MH i2c: E2 08 00 AA 5A 80 0D 01 02 00 00 00 00 7D [16:03:11]Write i2c OK [16:03:11]MH_I2C_Read... [16:03:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:11]Read from MH i2c: E2 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 03 00 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 03 00 AA 5A 00 90 00 78 [16:03:11]RAPDU: 90 00 [16:03:11]wFMCommunicate OK [16:03:11]wFMCommunicate request_size=255 [16:03:11]MH_SAM_APDU [16:03: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 C4 B5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 F0 02 00 35 04 06 00 B3 [16:03:11]Write to MH i2c: E2 02 01 AB 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 C4 B5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 F0 02 00 35 04 06 00 B3 00 00 32 [16:03:11]Write i2c OK [16:03:11]MH_I2C_Read... [16:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:11]Read from MH i2c: E2 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 03 00 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 03 00 AB 5A 00 90 00 79 [16:03:11]RAPDU: 90 00 [16:03:11]wFMCommunicate OK [16:03:11]wFMCommunicate request_size=10 [16:03:11]MH_SAM_APDU [16:03:11]CAPDU: 80 0D 02 02 05 C9 9F 82 CC F6 [16:03:11]Write to MH i2c: E2 0D 00 AC 5A 80 0D 02 02 05 00 C9 9F 82 CC F6 00 00 36 [16:03:11]Write i2c OK [16:03:11]MH_I2C_Read... [16:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:11]Read from MH i2c: E2 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 03 00 [16:03:11]MH_I2C_Read... [16:03:11]Read from MH i2c: E2 03 00 AC 5A 00 90 00 7A [16:03:11]RAPDU: 90 00 [16:03:11]wFMCommunicate OK [16:03:11]wFMCommunicate request_size=4 [16:03:11]MH_SAM_APDU [16:03:11]CAPDU: 80 0D 03 02 [16:03:11]Write to MH i2c: E2 08 00 AD 5A 80 0D 03 02 00 00 00 00 82 [16:03:11]Write i2c OK [16:03:11]MH_I2C_Read... [16:03:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:12]Read from MH i2c: E2 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: E2 0B 00 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: E2 0B 00 AD 5A 00 39 71 90 16 26 7A 98 FB 90 00 06 [16:03:12]RAPDU: 39 71 90 16 26 7A 98 FB 90 00 [16:03:12]wFMCommunicate OK [16:03:12]SAM_PROTO_SignData done [16:03:12]FM_MakeSignedData done [16:03:12]CreateOFDProtocolMessage [16:03:12]wFMCommunicate request_size=4 [16:03:12]MH_SAM_APDU [16:03:12]CAPDU: 80 11 00 00 [16:03:12]Write to MH i2c: E2 08 00 AE 5A 80 11 00 00 00 00 00 00 82 [16:03:12]Write i2c OK [16:03:12]MH_I2C_Read... [16:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:12]Read from MH i2c: E2 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: E2 17 00 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: E2 17 00 AE 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D5 [16:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:03:12]wFMCommunicate OK [16:03:12]CreateOFDProtocolMessage done [16:03:12]OFDSenderStorePacket 192662 [16:03:12]StoreOFDPacket docnum=192662 [16:03:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9B 66 07 01 C8 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 C4 B5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 F0 02 00 35 04 06 00 B3 C9 9F 82 CC F6 39 71 90 16 26 7A 98 FB [16:03:12]CheckFolder [16:03:12]dirname=/storage/ofd_packets [16:03:12]CheckFolder done [16:03:12]ProducePacketName [16:03:12]name=ofd_packets/00192662 [16:03:12]NVStorageSaveData ofd_packets/00192662 [16:03:12]File name is /storage/ofd_packets/00192662 [16:03:12]Write 301 bytes [16:03:12]NVStorageSaveData done [16:03:12]OFDSenderStorePacket done [16:03:12]KKMCreateOFDPacket done [16:03:12]NVStorageSaveData kkm_last_timestamp [16:03:12]File name is /storage/kkm_last_timestamp [16:03:12]Write 4 bytes [16:03:12]NVStorageSaveData done [16:03:12]ExternCall_PrintAddStr [16:03:12]wPrintStart [16:03:12]Write to MH i2c: 01 00 00 AF 5A 09 [16:03:12]Write i2c OK [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: 01 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: 01 07 00 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: 01 07 00 AF 5A 00 00 00 00 00 FF 0F 1E [16:03:12]RasterBufferAndPrint [16:03:12]line Счет N : (1)31989 [16:03:12]line ИНН: 02508201610067 [16:03:12]line Контрольно-Кассовый Чек [16:03:12]line ПРОДАЖА [16:03:12]line ТРК (МРК, ГНК) : 12 [16:03:12]line Товар: 2710124130 [16:03:12]line Аи-92-К-5 [16:03:12]line 4.490 * 66.90 [16:03:12]line = 300.38 [16:03:12]line НДС 12% НСП 1% [16:03:12]line > о реализуемом товаре [16:03:12]line ОКРУГЛЕНИЕ: -0.38 [16:03:12]line ИТОГО: 300.00 [16:03:12]line Внесено: 300.00 [16:03:12]line СДАЧА: 0.00 [16:03:12]line НСП 1% : 2.66 [16:03:12]line НДС 12% : 31.90 [16:03:12]line Наличными: 300.00 [16:03:12]line Безнал.: 0.00 [16:03:12]line Место: АЗС № 170 "Партнер Нефть" [16:03:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:03:12]line СНО: Общий режим [16:03:12]line Чек 210 28.10.2024 16:03 [16:03:12]line Смена: 543 ФФД: 1.0 [16:03:12]line ЗНМ: 0300000110 [16:03:12]line РНМ: 0000000000091776 [16:03:12]line Версия ККМ: 001 [16:03:12]line ФМ: 0000000000871754 [16:03:12]line ФД: 192662 [16:03:12]line ФПД: 197678545947894 [16:03:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T160316&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192662&fm=197678545947894&tin=02508201610067®Number=0000000000091776&sum=30000 [16:03:12]OFD Sender: Processing packet 192662 [packets to send 75, broken 74] [16:03:12]ProducePacketName [16:03:12]name=ofd_packets/00192662 [16:03:12]OFD Sender: To server: pG, [16:03:12]CommunicateWithHost lk.salyk.kg:30040 [16:03:12]ConnectInit lk.salyk.kg [16:03:12]written 0, free lines is 4095 [16:03:12]Connected sock=10 [16:03:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9B 66 07 01 C8 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 C4 B5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 F0 02 00 35 04 06 00 B3 C9 9F 82 CC F6 39 71 90 16 26 7A 98 FB [16:03:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 17 61 47 00 77 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 F0 02 00 F4 03 04 00 88 5A 1F 67 B6 04 01 00 00 2F 19 B8 CD 6F E7 9E 56 [16:03:12]CommunicateWithHost err = 0 [16:03:12]CheckOFDResponse [16:03:12]1017 (14) - 77093643461234 [16:03:12]1041 (16) - 0000000000871754 [16:03:12]1040 (4) - 192662 [16:03:12]1012 (4) - 28.10.2024 09:34 [16:03:12]1206 (1) - 0 [16:03:12]OFD Sender: Remove packet 192662 [16:03:12]ProducePacketName [16:03:12]name=ofd_packets/00192662 [16:03:12]NVStorageDeleteData [16:03:12]Write to MH i2c: 01 00 00 DA 5A 34 [16:03:12]Write i2c OK [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: 01 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: 01 07 00 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: 01 07 00 DA 5A 00 00 00 00 00 D4 0C 1B [16:03:12]RasterBufferAndPrint [16:03:12]line [16:03:12]line [16:03:12]line [16:03:12]line [16:03:12]line [16:03:12]written 0, free lines is 3292 [16:03:12]MH_Cut [16:03:12]Write to MH i2c: D1 01 00 E1 5A 01 0D [16:03:12]Write i2c OK [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: D1 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: D1 01 00 [16:03:12]MH_I2C_Read... [16:03:12]Read from MH i2c: D1 01 00 E1 5A 00 0C [16:03:12]Write to MH i2c: 01 00 00 E2 5A 3C [16:03:12]Write i2c OK [16:03:12]MH_I2C_Read... [16:03:13]OFD Sender: No OFD packet to send [16:03:13]*** Cut start [16:03:13]*** Partial cut [16:03:13]*** CUTSNS_PIN = 1 [16:03:13]*** CUTSNS_PIN = 0 [16:03:13]*** Brake cut motor [16:03:14]Read from MH i2c: 01 [16:03:14]MH_I2C_Read... [16:03:14]*** Stop cut motor [16:03:14]*** Cut end [16:03:14]Read from MH i2c: 01 07 00 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: 01 07 00 E2 5A 00 00 00 00 00 FF 0F 51 [16:03:14]process_action close_receipt done [16:03:14]requested_data is exist [16:03:14]produce_requested_data [16:03:14]requested_item fm.sn is exist - process it [16:03:14]wFMCommunicate request_size=4 [16:03:14]MH_SAM_APDU [16:03:14]CAPDU: 80 11 00 00 [16:03:14]Write to MH i2c: E2 08 00 E3 5A 80 11 00 00 00 00 00 00 B7 [16:03:14]Write i2c OK [16:03:14]MH_I2C_Read... [16:03:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:14]Read from MH i2c: E2 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: E2 17 00 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: E2 17 00 E3 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [16:03:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:03:14]wFMCommunicate OK [16:03:14]requested_item fd.num is exist - process it [16:03:14]SAM_PROTO_GetFieldsCounters [16:03:14]wFMCommunicate request_size=4 [16:03:14]MH_SAM_APDU [16:03:14]CAPDU: 80 13 00 00 [16:03:14]Write to MH i2c: E2 08 00 E4 5A 80 13 00 00 00 00 00 00 BA [16:03:14]Write i2c OK [16:03:14]MH_I2C_Read... [16:03:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:14]Read from MH i2c: E2 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: E2 62 00 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: E2 62 00 E4 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 96 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [16:03:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 96 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:14]wFMCommunicate OK [16:03:14]SAM_PROTO_GetFieldsCounters done [16:03:14]requested_item shift.num is exist - process it [16:03:14]requested_item shift.opened is exist - process it [16:03:14]req_shift_opened [16:03:14]FM_GetShiftState [16:03:14]SAM_PROTO_GetShiftState [16:03:14]wFMCommunicate request_size=4 [16:03:14]MH_SAM_APDU [16:03:14]CAPDU: 80 13 01 00 [16:03:14]Write to MH i2c: E2 08 00 E5 5A 80 13 01 00 00 00 00 00 BC [16:03:14]Write i2c OK [16:03:14]MH_I2C_Read... [16:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:14]Read from MH i2c: E2 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: E2 0E 00 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: E2 0E 00 E5 5A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0C [16:03:14]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:03:14]wFMCommunicate OK [16:03:14]SAM_PROTO_GetShiftState done [16:03:14]FM_GetShiftState done [16:03:14]req_shift_opened done [16:03:14]requested_item shift.open_date is exist - process it [16:03:14]req_shift_open_date [16:03:14]req_shift_open_date done [16:03:14]produce_requested_data done [16:03:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192662,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:03:14]process_action_free close_receipt [16:03:14]json_value_free [16:03:14]json_value_free done [16:03:14]process_json_proto returns [16:03:14]Send response to host [16:03:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192662,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:03:14]free response buf [16:03:14]execute_script done [16:03:14]execute_script returns [16:03:14]free content buf [16:03:14]Sock 9.Close socket [16:03:14]Sock 9.Thread stoped [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:08:58]accept exits with 7 [16:08:58]New connection [16:08:58]New thread 3066707300 created [16:08:58]Thread 3066563940 joined [16:08:58]Waiting for new connection... [16:08:58] Sock 7.Parse request [16:08:58]Sock 7.Check first char [16:08:58]Sock 7.First char is OK [16:08:58]request: POST /json_proto HTTP/1.0 [16:08:58]Method: POST [16:08:58]URL: /json_proto [16:08:58]Method is POST - this is cgi request [16:08:58]url: /json_proto [16:08:58]query_string will be loaded in cgi processing [16:08:58]execute_cgi json_proto POST (null) [16:08:58]execute_cgi path=json_proto method=POST [16:08:58]POST find Content-Length [16:08:58]Host: 172.17.63.131:8080 [16:08:58]Content-Length: 676 [16:08:58]Content-Type: application/json [16:08:58] [16:08:58]POST finish read [16:08:58]Found Content-Length = 676 [16:08:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:58]execute_script... [16:08: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)31990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:58]POST & json_proto [16:08:58]process_json_proto [16:08:58]json parsed OK: [16:08:58]protocol is kg_v1.0 [16:08:58]action value=close_receipt [16:08:58]process_action close_receipt [16:08:58]cmd_close_receipt [16:08:58]MH_GetDate [16:08:58]Write to MH i2c: F0 00 00 E6 5A 2F [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: F0 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: F0 09 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: F0 09 00 E6 5A 00 20 B7 1F 67 22 05 6E 64 8E [16:08:58]GetLastDocTimeStamp 1730131396 [16:08:58]current date 1730131744 [16:08:58]FM_GetShiftState [16:08:58]SAM_PROTO_GetShiftState [16:08:58]wFMCommunicate request_size=4 [16:08:58]MH_SAM_APDU [16:08:58]CAPDU: 80 13 01 00 [16:08:58]Write to MH i2c: E2 08 00 E7 5A 80 13 01 00 00 00 00 00 BE [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:58]Read from MH i2c: E2 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 0E 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 0E 00 E7 5A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0E [16:08:58]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:08:58]wFMCommunicate OK [16:08:58]SAM_PROTO_GetShiftState done [16:08:58]FM_GetShiftState done [16:08:58]opened in 1730075620 [16:08:58]opened+sec_in_day 1730162020 [16:08:58]quantity*price = 30038 [16:08:58]sum+1 = 30039 [16:08:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 211 28.10.2024 16:09 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192663 ФПД: 160731253105175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T160904&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192663&fm=160731253105175&tin=02508201610067®Number=0000000000091776&sum=30000 [16:08:59]StoreToDocumentArchive [16:08:59]shift 543 fd 192663 [16:08:59]save to /storage/0543/doc_00192663 [16:08:59]save last doc name /storage/0543/doc_00192663 to /storage/kkm_last_doc_name [16:08:59]save OK [16:08:59]Clear old archive folders... [16:08:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:59]tlvbuf is 01B0C9C0 [16:08:59]SAM_PROTO_ClearQueue [16:08:59]wFMCommunicate request_size=4 [16:08:59]MH_SAM_APDU [16:08:59]CAPDU: 80 09 00 00 [16:08:59]Write to MH i2c: E2 08 00 F4 5A 80 09 00 00 00 00 00 00 C0 [16:08:59]Write i2c OK [16:08:59]MH_I2C_Read... [16:08:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:59]Read from MH i2c: E2 [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: E2 03 00 [16:08:59]MH_I2C_Read... [16:08:59]Read from MH i2c: E2 03 00 F4 5A 00 90 00 C2 [16:08:59]RAPDU: 90 00 [16:08:59]wFMCommunicate OK [16:08:59]SAM_PROTO_ClearQueue done [16:08:59]KKMCreateOFDPacket [16:08:59]OFDProtocolAddRootSTLVToBuf [16:08:59]FM_MakeSignedData [16:08:59]FM_MakeSignedData [16:08:59]SAM_PROTO_SignData [16:08:59]wFMCommunicate request_size=4 [16:08:59]MH_SAM_APDU [16:08:59]CAPDU: 80 0D 01 02 [16:08:59]Write to MH i2c: E2 08 00 F5 5A 80 0D 01 02 00 00 00 00 C8 [16:08:59]Write i2c OK [16:08:59]MH_I2C_Read... [16:09:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:00]Read from MH i2c: E2 [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: E2 03 00 [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: E2 03 00 F5 5A 00 90 00 C3 [16:09:00]RAPDU: 90 00 [16:09:00]wFMCommunicate OK [16:09:00]wFMCommunicate request_size=255 [16:09:00]MH_SAM_APDU [16:09:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 20 B7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 F0 02 00 35 04 06 00 92 [16:09:00]Write to MH i2c: E2 02 01 F6 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 20 B7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 F0 02 00 35 04 06 00 92 00 00 BC [16:09:00]Write i2c OK [16:09:00]MH_I2C_Read... [16:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:00]Read from MH i2c: E2 [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: E2 03 00 [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: E2 03 00 F6 5A 00 90 00 C4 [16:09:00]RAPDU: 90 00 [16:09:00]wFMCommunicate OK [16:09:00]wFMCommunicate request_size=10 [16:09:00]MH_SAM_APDU [16:09:00]CAPDU: 80 0D 02 02 05 2F 29 3E E2 17 [16:09:00]Write to MH i2c: E2 0D 00 F7 5A 80 0D 02 02 05 00 2F 29 3E E2 17 00 00 64 [16:09:00]Write i2c OK [16:09:00]MH_I2C_Read... [16:09:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:00]Read from MH i2c: E2 [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: E2 03 00 [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: E2 03 00 F7 5A 00 90 00 C5 [16:09:00]RAPDU: 90 00 [16:09:00]wFMCommunicate OK [16:09:00]wFMCommunicate request_size=4 [16:09:00]MH_SAM_APDU [16:09:00]CAPDU: 80 0D 03 02 [16:09:00]Write to MH i2c: E2 08 00 F8 5A 80 0D 03 02 00 00 00 00 CD [16:09:00]Write i2c OK [16:09:00]MH_I2C_Read... [16:09:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:00]Read from MH i2c: E2 [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: E2 0B 00 [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: E2 0B 00 F8 5A 00 A1 59 AA 53 B7 EA 15 06 90 00 81 [16:09:00]RAPDU: A1 59 AA 53 B7 EA 15 06 90 00 [16:09:00]wFMCommunicate OK [16:09:00]SAM_PROTO_SignData done [16:09:00]FM_MakeSignedData done [16:09:00]CreateOFDProtocolMessage [16:09:00]wFMCommunicate request_size=4 [16:09:00]MH_SAM_APDU [16:09:00]CAPDU: 80 11 00 00 [16:09:00]Write to MH i2c: E2 08 00 F9 5A 80 11 00 00 00 00 00 00 CD [16:09:00]Write i2c OK [16:09:00]MH_I2C_Read... [16:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:00]Read from MH i2c: E2 [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: E2 17 00 [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: E2 17 00 F9 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [16:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:09:00]wFMCommunicate OK [16:09:00]CreateOFDProtocolMessage done [16:09:00]OFDSenderStorePacket 192663 [16:09:00]StoreOFDPacket docnum=192663 [16:09:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4E B5 07 01 59 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 20 B7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 F0 02 00 35 04 06 00 92 2F 29 3E E2 17 A1 59 AA 53 B7 EA 15 06 [16:09:00]CheckFolder [16:09:00]dirname=/storage/ofd_packets [16:09:00]CheckFolder done [16:09:00]ProducePacketName [16:09:00]name=ofd_packets/00192663 [16:09:00]NVStorageSaveData ofd_packets/00192663 [16:09:00]File name is /storage/ofd_packets/00192663 [16:09:00]Write 301 bytes [16:09:00]NVStorageSaveData done [16:09:00]OFDSenderStorePacket done [16:09:00]KKMCreateOFDPacket done [16:09:00]NVStorageSaveData kkm_last_timestamp [16:09:00]File name is /storage/kkm_last_timestamp [16:09:00]Write 4 bytes [16:09:00]NVStorageSaveData done [16:09:00]ExternCall_PrintAddStr [16:09:00]wPrintStart [16:09:00]Write to MH i2c: 01 00 00 FA 5A 54 [16:09:00]Write i2c OK [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: 01 [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: 01 07 00 [16:09:00]MH_I2C_Read... [16:09:00]Read from MH i2c: 01 07 00 FA 5A 00 00 00 00 00 FF 0F 69 [16:09:00]RasterBufferAndPrint [16:09:00]line Счет N : (1)31990 [16:09:00]line ИНН: 02508201610067 [16:09:00]line Контрольно-Кассовый Чек [16:09:00]line ПРОДАЖА [16:09:00]line ТРК (МРК, ГНК) : 12 [16:09:00]line Товар: 2710124130 [16:09:00]line Аи-92-К-5 [16:09:00]line 4.490 * 66.90 [16:09:00]line = 300.38 [16:09:00]line НДС 12% НСП 1% [16:09:00]line > о реализуемом товаре [16:09:00]line ОКРУГЛЕНИЕ: -0.38 [16:09:00]line ИТОГО: 300.00 [16:09:00]line Внесено: 300.00 [16:09:00]line СДАЧА: 0.00 [16:09:00]line НСП 1% : 2.66 [16:09:00]line НДС 12% : 31.90 [16:09:00]line Наличными: 300.00 [16:09:00]line Безнал.: 0.00 [16:09:00]line Место: АЗС № 170 "Партнер Нефть" [16:09:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:09:00]line СНО: Общий режим [16:09:00]line Чек 211 28.10.2024 16:09 [16:09:00]line Смена: 543 ФФД: 1.0 [16:09:00]line ЗНМ: 0300000110 [16:09:00]line РНМ: 0000000000091776 [16:09:00]line Версия ККМ: 001 [16:09:00]line ФМ: 0000000000871754 [16:09:00]line ФД: 192663 [16:09:00]line ФПД: 160731253105175 [16:09:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T160904&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192663&fm=160731253105175&tin=02508201610067®Number=0000000000091776&sum=30000 [16:09:00]OFD Sender: Processing packet 192663 [packets to send 75, broken 74] [16:09:00]ProducePacketName [16:09:00]name=ofd_packets/00192663 [16:09:00]OFD Sender: To server: pG, [16:09:00]CommunicateWithHost lk.salyk.kg:30040 [16:09:00]ConnectInit lk.salyk.kg [16:09:00]written 0, free lines is 4095 [16:09:00]Connected sock=10 [16:09:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4E B5 07 01 59 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 20 B7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 F0 02 00 35 04 06 00 92 2F 29 3E E2 17 A1 59 AA 53 B7 EA 15 06 [16:09:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 72 97 47 00 54 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 F0 02 00 F4 03 04 00 E4 5B 1F 67 B6 04 01 00 00 FE D3 4D 78 4D 17 27 8E [16:09:01]CommunicateWithHost err = 0 [16:09:01]CheckOFDResponse [16:09:01]1017 (14) - 77093643461234 [16:09:01]1041 (16) - 0000000000871754 [16:09:01]1040 (4) - 192663 [16:09:01]1012 (4) - 28.10.2024 09:39 [16:09:01]1206 (1) - 0 [16:09:01]OFD Sender: Remove packet 192663 [16:09:01]ProducePacketName [16:09:01]name=ofd_packets/00192663 [16:09:01]NVStorageDeleteData [16:09:01]Write to MH i2c: 01 00 00 25 5B 80 [16:09:01]Write i2c OK [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: 01 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: 01 07 00 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: 01 07 00 25 5B 00 00 00 00 00 C7 0C 5A [16:09:01]RasterBufferAndPrint [16:09:01]line [16:09:01]line [16:09:01]line [16:09:01]line [16:09:01]line [16:09:01]written 0, free lines is 3277 [16:09:01]MH_Cut [16:09:01]Write to MH i2c: D1 01 00 2C 5B 01 59 [16:09:01]Write i2c OK [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: D1 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: D1 01 00 [16:09:01]MH_I2C_Read... [16:09:01]Read from MH i2c: D1 01 00 2C 5B 00 58 [16:09:01]Write to MH i2c: 01 00 00 2D 5B 88 [16:09:01]Write i2c OK [16:09:01]MH_I2C_Read... [16:09:01]OFD Sender: No OFD packet to send [16:09:02]*** Cut start [16:09:02]*** Partial cut [16:09:02]*** CUTSNS_PIN = 1 [16:09:02]*** CUTSNS_PIN = 0 [16:09:02]*** Brake cut motor [16:09:02]Read from MH i2c: 01 [16:09:02]MH_I2C_Read... [16:09:02]*** Stop cut motor [16:09:02]*** Cut end [16:09:02]Read from MH i2c: 01 07 00 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: 01 07 00 2D 5B 00 00 00 00 00 FF 0F 9D [16:09:02]process_action close_receipt done [16:09:02]requested_data is exist [16:09:02]produce_requested_data [16:09:02]requested_item fm.sn is exist - process it [16:09:02]wFMCommunicate request_size=4 [16:09:02]MH_SAM_APDU [16:09:02]CAPDU: 80 11 00 00 [16:09:02]Write to MH i2c: E2 08 00 2E 5B 80 11 00 00 00 00 00 00 03 [16:09:02]Write i2c OK [16:09:02]MH_I2C_Read... [16:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:02]Read from MH i2c: E2 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: E2 17 00 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: E2 17 00 2E 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 56 [16:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:09:02]wFMCommunicate OK [16:09:02]requested_item fd.num is exist - process it [16:09:02]SAM_PROTO_GetFieldsCounters [16:09:02]wFMCommunicate request_size=4 [16:09:02]MH_SAM_APDU [16:09:02]CAPDU: 80 13 00 00 [16:09:02]Write to MH i2c: E2 08 00 2F 5B 80 13 00 00 00 00 00 00 06 [16:09:02]Write i2c OK [16:09:02]MH_I2C_Read... [16:09:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:02]Read from MH i2c: E2 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: E2 62 00 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: E2 62 00 2F 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 97 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [16:09:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 97 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:02]wFMCommunicate OK [16:09:02]SAM_PROTO_GetFieldsCounters done [16:09:02]requested_item shift.num is exist - process it [16:09:02]requested_item shift.opened is exist - process it [16:09:02]req_shift_opened [16:09:02]FM_GetShiftState [16:09:02]SAM_PROTO_GetShiftState [16:09:02]wFMCommunicate request_size=4 [16:09:02]MH_SAM_APDU [16:09:02]CAPDU: 80 13 01 00 [16:09:02]Write to MH i2c: E2 08 00 30 5B 80 13 01 00 00 00 00 00 08 [16:09:02]Write i2c OK [16:09:02]MH_I2C_Read... [16:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:02]Read from MH i2c: E2 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: E2 0E 00 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: E2 0E 00 30 5B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 58 [16:09:02]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:09:02]wFMCommunicate OK [16:09:02]SAM_PROTO_GetShiftState done [16:09:02]FM_GetShiftState done [16:09:02]req_shift_opened done [16:09:02]requested_item shift.open_date is exist - process it [16:09:02]req_shift_open_date [16:09:02]req_shift_open_date done [16:09:02]produce_requested_data done [16:09:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192663,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:09:02]process_action_free close_receipt [16:09:02]json_value_free [16:09:02]json_value_free done [16:09:02]process_json_proto returns [16:09:02]Send response to host [16:09:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192663,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:09:02]free response buf [16:09:02]execute_script done [16:09:02]execute_script returns [16:09:02]free content buf [16:09:02]Sock 7.Close socket [16:09:02]Sock 7.Thread stoped [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:50]accept exits with 9 [16:10:50]New connection [16:10:50]New thread 3066563940 created [16:10:50]Thread 3066707300 joined [16:10:50]Waiting for new connection... [16:10:50] Sock 9.Parse request [16:10:50]Sock 9.Check first char [16:10:50]Sock 9.First char is OK [16:10:50]request: POST /json_proto HTTP/1.0 [16:10:50]Method: POST [16:10:50]URL: /json_proto [16:10:50]Method is POST - this is cgi request [16:10:50]url: /json_proto [16:10:50]query_string will be loaded in cgi processing [16:10:50]execute_cgi json_proto POST (null) [16:10:50]execute_cgi path=json_proto method=POST [16:10:50]POST find Content-Length [16:10:50]Host: 172.17.63.131:8080 [16:10:50]Content-Length: 983 [16:10:50]Content-Type: application/json [16:10:50] [16:10:50]POST finish read [16:10:50]Found Content-Length = 983 [16:10:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 28.340, "sum" : 1867.61, "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 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 28.34 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1867.00, "payments": [ { "type": 0, "sum" : 1867.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:50]execute_script... [16:10:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 28.340, "sum" : 1867.61, "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 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 28.34 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1867.00, "payments": [ { "type": 0, "sum" : 1867.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:50]POST & json_proto [16:10:50]process_json_proto [16:10:50]json parsed OK: [16:10:50]protocol is kg_v1.0 [16:10:50]action value=close_receipt [16:10:50]process_action close_receipt [16:10:50]cmd_close_receipt [16:10:50]MH_GetDate [16:10:50]Write to MH i2c: F0 00 00 31 5B 7B [16:10:50]Write i2c OK [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: F0 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: F0 09 00 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: F0 09 00 31 5B 00 90 B7 1F 67 22 05 6E 64 4A [16:10:50]GetLastDocTimeStamp 1730131744 [16:10:50]current date 1730131856 [16:10:50]FM_GetShiftState [16:10:50]SAM_PROTO_GetShiftState [16:10:50]wFMCommunicate request_size=4 [16:10:50]MH_SAM_APDU [16:10:50]CAPDU: 80 13 01 00 [16:10:50]Write to MH i2c: E2 08 00 32 5B 80 13 01 00 00 00 00 00 0A [16:10:50]Write i2c OK [16:10:50]MH_I2C_Read... [16:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:50]Read from MH i2c: E2 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: E2 0E 00 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: E2 0E 00 32 5B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 5A [16:10:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:10:50]wFMCommunicate OK [16:10:50]SAM_PROTO_GetShiftState done [16:10:50]FM_GetShiftState done [16:10:50]opened in 1730075620 [16:10:50]opened+sec_in_day 1730162020 [16:10:50]quantity*price = 186760 [16:10:50]sum+1 = 186762 [16:10:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1867.00 Внесено: 2000.00 СДАЧА: 133.00 НСП 1% : 16.53 НДС 12% : 198.33 Наличными: 1867.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 212 28.10.2024 16:10 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 28.34 сом ФМ: 0000000000871754 ФД: 192664 ФПД: 238075573929314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T161056&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192664&fm=238075573929314&tin=02508201610067®Number=0000000000091776&sum=186700 [16:10:51]StoreToDocumentArchive [16:10:51]shift 543 fd 192664 [16:10:51]save to /storage/0543/doc_00192664 [16:10:51]save last doc name /storage/0543/doc_00192664 to /storage/kkm_last_doc_name [16:10:51]save OK [16:10:51]Clear old archive folders... [16:10:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:10:51]tlvbuf is B6D6C810 [16:10:51]SAM_PROTO_ClearQueue [16:10:51]wFMCommunicate request_size=4 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 09 00 00 [16:10:51]Write to MH i2c: E2 08 00 3F 5B 80 09 00 00 00 00 00 00 0C [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 3F 5B 00 90 00 0E [16:10:51]RAPDU: 90 00 [16:10:51]wFMCommunicate OK [16:10:51]SAM_PROTO_ClearQueue done [16:10:51]KKMCreateOFDPacket [16:10:51]OFDProtocolAddRootSTLVToBuf [16:10:51]FM_MakeSignedData [16:10:51]FM_MakeSignedData [16:10:51]SAM_PROTO_SignData [16:10:51]wFMCommunicate request_size=4 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 0D 01 02 [16:10:51]Write to MH i2c: E2 08 00 40 5B 80 0D 01 02 00 00 00 00 14 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 40 5B 00 90 00 0F [16:10:51]RAPDU: 90 00 [16:10:51]wFMCommunicate OK [16:10:51]wFMCommunicate request_size=255 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 6E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 89 D9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C D9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 4D 00 00 00 00 07 04 06 00 4C D9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 90 B7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 F0 02 00 35 04 06 00 D8 [16:10:51]Write to MH i2c: E2 02 01 41 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 6E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 89 D9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C D9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 4D 00 00 00 00 07 04 06 00 4C D9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 90 B7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 F0 02 00 35 04 06 00 D8 00 00 33 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 41 5B 00 90 00 10 [16:10:51]RAPDU: 90 00 [16:10:51]wFMCommunicate OK [16:10:51]wFMCommunicate request_size=10 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 0D 02 02 05 87 4A 03 85 62 [16:10:51]Write to MH i2c: E2 0D 00 42 5B 80 0D 02 02 05 00 87 4A 03 85 62 00 00 DC [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 03 00 42 5B 00 90 00 11 [16:10:51]RAPDU: 90 00 [16:10:51]wFMCommunicate OK [16:10:51]wFMCommunicate request_size=4 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 0D 03 02 [16:10:51]Write to MH i2c: E2 08 00 43 5B 80 0D 03 02 00 00 00 00 19 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 0B 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 0B 00 43 5B 00 B0 3B 29 36 EA 74 EC 70 90 00 1E [16:10:51]RAPDU: B0 3B 29 36 EA 74 EC 70 90 00 [16:10:51]wFMCommunicate OK [16:10:51]SAM_PROTO_SignData done [16:10:51]FM_MakeSignedData done [16:10:51]CreateOFDProtocolMessage [16:10:51]wFMCommunicate request_size=4 [16:10:51]MH_SAM_APDU [16:10:51]CAPDU: 80 11 00 00 [16:10:51]Write to MH i2c: E2 08 00 44 5B 80 11 00 00 00 00 00 00 19 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:51]Read from MH i2c: E2 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 17 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: E2 17 00 44 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6C [16:10:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:10:51]wFMCommunicate OK [16:10:51]CreateOFDProtocolMessage done [16:10:51]OFDSenderStorePacket 192664 [16:10:51]StoreOFDPacket docnum=192664 [16:10:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FF 9E 07 01 E9 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 6E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 89 D9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C D9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 4D 00 00 00 00 07 04 06 00 4C D9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 90 B7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 F0 02 00 35 04 06 00 D8 87 4A 03 85 62 B0 3B 29 36 EA 74 EC 70 [16:10:51]CheckFolder [16:10:51]dirname=/storage/ofd_packets [16:10:51]CheckFolder done [16:10:51]ProducePacketName [16:10:51]name=ofd_packets/00192664 [16:10:51]NVStorageSaveData ofd_packets/00192664 [16:10:51]File name is /storage/ofd_packets/00192664 [16:10:51]Write 301 bytes [16:10:51]NVStorageSaveData done [16:10:51]OFDSenderStorePacket done [16:10:51]KKMCreateOFDPacket done [16:10:51]NVStorageSaveData kkm_last_timestamp [16:10:51]File name is /storage/kkm_last_timestamp [16:10:51]Write 4 bytes [16:10:51]NVStorageSaveData done [16:10:51]ExternCall_PrintAddStr [16:10:51]wPrintStart [16:10:51]Write to MH i2c: 01 00 00 45 5B A0 [16:10:51]Write i2c OK [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: 01 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: 01 07 00 [16:10:51]MH_I2C_Read... [16:10:51]Read from MH i2c: 01 07 00 45 5B 00 00 00 00 00 FF 0F B5 [16:10:51]RasterBufferAndPrint [16:10:51]line Счет N : (1)31991 [16:10:51]line ИНН: 02508201610067 [16:10:51]line Контрольно-Кассовый Чек [16:10:51]line ПРОДАЖА [16:10:51]line ТРК (МРК, ГНК) : 12 [16:10:51]line Товар: 2710124130 [16:10:51]line Аи-92-К-5 [16:10:51]line 28.340 * 65.90 [16:10:51]line = 1867.61 [16:10:51]line НДС 12% НСП 1% [16:10:51]line > о реализуемом товаре [16:10:51]line ОКРУГЛЕНИЕ: -0.61 [16:10:51]line ИТОГО: 1867.00 [16:10:51]line Внесено: 2000.00 [16:10:51]line СДАЧА: 133.00 [16:10:51]line НСП 1% : 16.53 [16:10:51]line НДС 12% : 198.33 [16:10:51]line Наличными: 1867.00 [16:10:51]line Безнал.: 0.00 [16:10:51]line Место: АЗС № 170 "Партнер Нефть" [16:10:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:10:51]line СНО: Общий режим [16:10:51]line Чек 212 28.10.2024 16:10 [16:10:51]line Смена: 543 ФФД: 1.0 [16:10:51]line ЗНМ: 0300000110 [16:10:51]line РНМ: 0000000000091776 [16:10:51]line Версия ККМ: 001 [16:10:51]line [16:10:51]line Дисконтная программа [16:10:51]line АИ-92 [16:10:51]line номер 170 [16:10:51]line сэкономлено 28.34 сом [16:10:51]line ФМ: 0000000000871754 [16:10:51]line ФД: 192664 [16:10:51]line ФПД: 238075573929314 [16:10:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T161056&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192664&fm=238075573929314&tin=02508201610067®Number=0000000000091776&sum=186700 [16:10:52]OFD Sender: Processing packet 192664 [packets to send 75, broken 74] [16:10:52]ProducePacketName [16:10:52]name=ofd_packets/00192664 [16:10:52]OFD Sender: To server: pG, [16:10:52]CommunicateWithHost lk.salyk.kg:30040 [16:10:52]ConnectInit lk.salyk.kg [16:10:52]written 0, free lines is 4095 [16:10:52]Connected sock=10 [16:10:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FF 9E 07 01 E9 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 6E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 89 D9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C D9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 4D 00 00 00 00 07 04 06 00 4C D9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 90 B7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 F0 02 00 35 04 06 00 D8 87 4A 03 85 62 B0 3B 29 36 EA 74 EC 70 [16:10:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 67 EB 47 00 8B A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 F0 02 00 F4 03 04 00 53 5C 1F 67 B6 04 01 00 00 21 51 3C B4 39 52 F5 20 [16:10:52]CommunicateWithHost err = 0 [16:10:52]CheckOFDResponse [16:10:52]1017 (14) - 77093643461234 [16:10:52]1041 (16) - 0000000000871754 [16:10:52]1040 (4) - 192664 [16:10:52]1012 (4) - 28.10.2024 09:41 [16:10:52]1206 (1) - 0 [16:10:52]OFD Sender: Remove packet 192664 [16:10:52]ProducePacketName [16:10:52]name=ofd_packets/00192664 [16:10:52]NVStorageDeleteData [16:10:52]Write to MH i2c: 01 00 00 75 5B D0 [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: 01 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: 01 07 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: 01 07 00 75 5B 00 00 00 00 00 76 0C 59 [16:10:52]RasterBufferAndPrint [16:10:52]line [16:10:52]line [16:10:52]line [16:10:52]line [16:10:52]line [16:10:52]written 0, free lines is 3197 [16:10:52]MH_Cut [16:10:52]Write to MH i2c: D1 01 00 7C 5B 01 A9 [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: D1 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: D1 01 00 [16:10:52]MH_I2C_Read... [16:10:52]Read from MH i2c: D1 01 00 7C 5B 00 A8 [16:10:52]Write to MH i2c: 01 00 00 7D 5B D8 [16:10:52]Write i2c OK [16:10:52]MH_I2C_Read... [16:10:52]OFD Sender: No OFD packet to send [16:10:53]*** Cut start [16:10:53]*** Partial cut [16:10:53]*** CUTSNS_PIN = 1 [16:10:53]*** CUTSNS_PIN = 0 [16:10:53]*** Brake cut motor [16:10:54]Read from MH i2c: 01 [16:10:54]MH_I2C_Read... [16:10:54]*** Stop cut motor [16:10:54]*** Cut end [16:10:54]Read from MH i2c: 01 07 00 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: 01 07 00 7D 5B 00 00 00 00 00 FF 0F ED [16:10:54]process_action close_receipt done [16:10:54]requested_data is exist [16:10:54]produce_requested_data [16:10:54]requested_item fm.sn is exist - process it [16:10:54]wFMCommunicate request_size=4 [16:10:54]MH_SAM_APDU [16:10:54]CAPDU: 80 11 00 00 [16:10:54]Write to MH i2c: E2 08 00 7E 5B 80 11 00 00 00 00 00 00 53 [16:10:54]Write i2c OK [16:10:54]MH_I2C_Read... [16:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:54]Read from MH i2c: E2 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 17 00 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 17 00 7E 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [16:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:10:54]wFMCommunicate OK [16:10:54]requested_item fd.num is exist - process it [16:10:54]SAM_PROTO_GetFieldsCounters [16:10:54]wFMCommunicate request_size=4 [16:10:54]MH_SAM_APDU [16:10:54]CAPDU: 80 13 00 00 [16:10:54]Write to MH i2c: E2 08 00 7F 5B 80 13 00 00 00 00 00 00 56 [16:10:54]Write i2c OK [16:10:54]MH_I2C_Read... [16:10:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:54]Read from MH i2c: E2 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 62 00 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 62 00 7F 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 98 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [16:10:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 98 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:54]wFMCommunicate OK [16:10:54]SAM_PROTO_GetFieldsCounters done [16:10:54]requested_item shift.num is exist - process it [16:10:54]requested_item shift.opened is exist - process it [16:10:54]req_shift_opened [16:10:54]FM_GetShiftState [16:10:54]SAM_PROTO_GetShiftState [16:10:54]wFMCommunicate request_size=4 [16:10:54]MH_SAM_APDU [16:10:54]CAPDU: 80 13 01 00 [16:10:54]Write to MH i2c: E2 08 00 80 5B 80 13 01 00 00 00 00 00 58 [16:10:54]Write i2c OK [16:10:54]MH_I2C_Read... [16:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:54]Read from MH i2c: E2 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 0E 00 [16:10:54]MH_I2C_Read... [16:10:54]Read from MH i2c: E2 0E 00 80 5B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A8 [16:10:54]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:10:54]wFMCommunicate OK [16:10:54]SAM_PROTO_GetShiftState done [16:10:54]FM_GetShiftState done [16:10:54]req_shift_opened done [16:10:54]requested_item shift.open_date is exist - process it [16:10:54]req_shift_open_date [16:10:54]req_shift_open_date done [16:10:54]produce_requested_data done [16:10:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192664,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:10:54]process_action_free close_receipt [16:10:54]json_value_free [16:10:54]json_value_free done [16:10:54]process_json_proto returns [16:10:54]Send response to host [16:10:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192664,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:10:54]free response buf [16:10:54]execute_script done [16:10:54]execute_script returns [16:10:54]free content buf [16:10:54]Sock 9.Close socket [16:10:54]Sock 9.Thread stoped [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:51]accept exits with 7 [16:11:51]New connection [16:11:51]New thread 3066707300 created [16:11:51]Thread 3066563940 joined [16:11:51]Waiting for new connection... [16:11:51] Sock 7.Parse request [16:11:51]Sock 7.Check first char [16:11:51]Sock 7.First char is OK [16:11:51]request: POST /json_proto HTTP/1.0 [16:11:51]Method: POST [16:11:51]URL: /json_proto [16:11:51]Method is POST - this is cgi request [16:11:51]url: /json_proto [16:11:51]query_string will be loaded in cgi processing [16:11:51]execute_cgi json_proto POST (null) [16:11:51]execute_cgi path=json_proto method=POST [16:11:51]POST find Content-Length [16:11:51]Host: 172.17.63.131:8080 [16:11:51]Content-Length: 676 [16:11:51]Content-Type: application/json [16:11:51] [16:11:51]POST finish read [16:11:51]Found Content-Length = 676 [16:11:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:51]execute_script... [16:11: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)31992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:51]POST & json_proto [16:11:51]process_json_proto [16:11:51]json parsed OK: [16:11:51]protocol is kg_v1.0 [16:11:51]action value=close_receipt [16:11:51]process_action close_receipt [16:11:51]cmd_close_receipt [16:11:51]MH_GetDate [16:11:51]Write to MH i2c: F0 00 00 81 5B CB [16:11:51]Write i2c OK [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: F0 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: F0 09 00 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: F0 09 00 81 5B 00 CD B7 1F 67 22 05 6E 64 D7 [16:11:51]GetLastDocTimeStamp 1730131856 [16:11:51]current date 1730131917 [16:11:51]FM_GetShiftState [16:11:51]SAM_PROTO_GetShiftState [16:11:51]wFMCommunicate request_size=4 [16:11:51]MH_SAM_APDU [16:11:51]CAPDU: 80 13 01 00 [16:11:51]Write to MH i2c: E2 08 00 82 5B 80 13 01 00 00 00 00 00 5A [16:11:51]Write i2c OK [16:11:51]MH_I2C_Read... [16:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:51]Read from MH i2c: E2 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: E2 0E 00 [16:11:51]MH_I2C_Read... [16:11:51]Read from MH i2c: E2 0E 00 82 5B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 AA [16:11:51]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:11:51]wFMCommunicate OK [16:11:51]SAM_PROTO_GetShiftState done [16:11:51]FM_GetShiftState done [16:11:51]opened in 1730075620 [16:11:51]opened+sec_in_day 1730162020 [16:11:51]quantity*price = 50041 [16:11:51]sum+1 = 50042 [16:11:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 213 28.10.2024 16:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192665 ФПД: 220791942611213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T161157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192665&fm=220791942611213&tin=02508201610067®Number=0000000000091776&sum=50000 [16:11:52]StoreToDocumentArchive [16:11:52]shift 543 fd 192665 [16:11:52]save to /storage/0543/doc_00192665 [16:11:52]save last doc name /storage/0543/doc_00192665 to /storage/kkm_last_doc_name [16:11:52]save OK [16:11:52]Clear old archive folders... [16:11:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:52]tlvbuf is 01A71C90 [16:11:52]SAM_PROTO_ClearQueue [16:11:52]wFMCommunicate request_size=4 [16:11:52]MH_SAM_APDU [16:11:52]CAPDU: 80 09 00 00 [16:11:52]Write to MH i2c: E2 08 00 8F 5B 80 09 00 00 00 00 00 00 5C [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:52]Read from MH i2c: E2 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 03 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 03 00 8F 5B 00 90 00 5E [16:11:52]RAPDU: 90 00 [16:11:52]wFMCommunicate OK [16:11:52]SAM_PROTO_ClearQueue done [16:11:52]KKMCreateOFDPacket [16:11:52]OFDProtocolAddRootSTLVToBuf [16:11:52]FM_MakeSignedData [16:11:52]FM_MakeSignedData [16:11:52]SAM_PROTO_SignData [16:11:52]wFMCommunicate request_size=4 [16:11:52]MH_SAM_APDU [16:11:52]CAPDU: 80 0D 01 02 [16:11:52]Write to MH i2c: E2 08 00 90 5B 80 0D 01 02 00 00 00 00 64 [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:52]Read from MH i2c: E2 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 03 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 03 00 90 5B 00 90 00 5F [16:11:52]RAPDU: 90 00 [16:11:52]wFMCommunicate OK [16:11:52]wFMCommunicate request_size=255 [16:11:52]MH_SAM_APDU [16:11:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CD B7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 F0 02 00 35 04 06 00 C8 [16:11:52]Write to MH i2c: E2 02 01 91 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CD B7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 F0 02 00 35 04 06 00 C8 00 00 4B [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:52]Read from MH i2c: E2 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 03 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 03 00 91 5B 00 90 00 60 [16:11:52]RAPDU: 90 00 [16:11:52]wFMCommunicate OK [16:11:52]wFMCommunicate request_size=10 [16:11:52]MH_SAM_APDU [16:11:52]CAPDU: 80 0D 02 02 05 CF 21 4F 01 0D [16:11:52]Write to MH i2c: E2 0D 00 92 5B 80 0D 02 02 05 00 CF 21 4F 01 0D 00 00 BE [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:52]Read from MH i2c: E2 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 03 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 03 00 92 5B 00 90 00 61 [16:11:52]RAPDU: 90 00 [16:11:52]wFMCommunicate OK [16:11:52]wFMCommunicate request_size=4 [16:11:52]MH_SAM_APDU [16:11:52]CAPDU: 80 0D 03 02 [16:11:52]Write to MH i2c: E2 08 00 93 5B 80 0D 03 02 00 00 00 00 69 [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:52]Read from MH i2c: E2 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 0B 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 0B 00 93 5B 00 E7 80 6E 6B 3D 85 50 E1 90 00 9D [16:11:52]RAPDU: E7 80 6E 6B 3D 85 50 E1 90 00 [16:11:52]wFMCommunicate OK [16:11:52]SAM_PROTO_SignData done [16:11:52]FM_MakeSignedData done [16:11:52]CreateOFDProtocolMessage [16:11:52]wFMCommunicate request_size=4 [16:11:52]MH_SAM_APDU [16:11:52]CAPDU: 80 11 00 00 [16:11:52]Write to MH i2c: E2 08 00 94 5B 80 11 00 00 00 00 00 00 69 [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:52]Read from MH i2c: E2 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 17 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 17 00 94 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BC [16:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:11:52]wFMCommunicate OK [16:11:52]CreateOFDProtocolMessage done [16:11:52]OFDSenderStorePacket 192665 [16:11:52]StoreOFDPacket docnum=192665 [16:11:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 B3 07 01 0B 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CD B7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 F0 02 00 35 04 06 00 C8 CF 21 4F 01 0D E7 80 6E 6B 3D 85 50 E1 [16:11:52]CheckFolder [16:11:52]dirname=/storage/ofd_packets [16:11:52]CheckFolder done [16:11:52]ProducePacketName [16:11:52]name=ofd_packets/00192665 [16:11:52]NVStorageSaveData ofd_packets/00192665 [16:11:52]File name is /storage/ofd_packets/00192665 [16:11:52]Write 301 bytes [16:11:52]NVStorageSaveData done [16:11:52]OFDSenderStorePacket done [16:11:52]KKMCreateOFDPacket done [16:11:52]NVStorageSaveData kkm_last_timestamp [16:11:52]File name is /storage/kkm_last_timestamp [16:11:52]Write 4 bytes [16:11:52]NVStorageSaveData done [16:11:52]ExternCall_PrintAddStr [16:11:52]wPrintStart [16:11:52]Write to MH i2c: 01 00 00 95 5B F0 [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: 01 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: 01 07 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: 01 07 00 95 5B 00 00 00 00 00 FF 0F 05 [16:11:52]RasterBufferAndPrint [16:11:52]line Счет N : (1)31992 [16:11:52]line ИНН: 02508201610067 [16:11:52]line Контрольно-Кассовый Чек [16:11:52]line ПРОДАЖА [16:11:52]line ТРК (МРК, ГНК) : 21 [16:11:52]line Товар: 2710124130 [16:11:52]line Аи-92-К-5 [16:11:52]line 7.480 * 66.90 [16:11:52]line = 500.41 [16:11:52]line НДС 12% НСП 1% [16:11:52]line > о реализуемом товаре [16:11:52]line ОКРУГЛЕНИЕ: -0.41 [16:11:52]line ИТОГО: 500.00 [16:11:52]line Внесено: 500.00 [16:11:52]line СДАЧА: 0.00 [16:11:52]line НСП 1% : 4.43 [16:11:52]line НДС 12% : 53.14 [16:11:52]line Наличными: 500.00 [16:11:52]line Безнал.: 0.00 [16:11:52]line Место: АЗС № 170 "Партнер Нефть" [16:11:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:11:52]line СНО: Общий режим [16:11:52]line Чек 213 28.10.2024 16:11 [16:11:52]line Смена: 543 ФФД: 1.0 [16:11:52]line ЗНМ: 0300000110 [16:11:52]line РНМ: 0000000000091776 [16:11:52]line Версия ККМ: 001 [16:11:52]line ФМ: 0000000000871754 [16:11:52]line ФД: 192665 [16:11:52]line ФПД: 220791942611213 [16:11:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T161157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192665&fm=220791942611213&tin=02508201610067®Number=0000000000091776&sum=50000 [16:11:53]OFD Sender: Processing packet 192665 [packets to send 75, broken 74] [16:11:53]ProducePacketName [16:11:53]name=ofd_packets/00192665 [16:11:53]OFD Sender: To server: pG, [16:11:53]CommunicateWithHost lk.salyk.kg:30040 [16:11:53]ConnectInit lk.salyk.kg [16:11:53]written 0, free lines is 4095 [16:11:53]Connected sock=10 [16:11:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 B3 07 01 0B 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 CD B7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 F0 02 00 35 04 06 00 C8 CF 21 4F 01 0D E7 80 6E 6B 3D 85 50 E1 [16:11:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9F F7 47 00 8F E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 F0 02 00 F4 03 04 00 90 5C 1F 67 B6 04 01 00 00 8C 1B A0 0A D5 92 42 DE [16:11:53]CommunicateWithHost err = 0 [16:11:53]CheckOFDResponse [16:11:53]1017 (14) - 77093643461234 [16:11:53]1041 (16) - 0000000000871754 [16:11:53]1040 (4) - 192665 [16:11:53]1012 (4) - 28.10.2024 09:42 [16:11:53]1206 (1) - 0 [16:11:53]OFD Sender: Remove packet 192665 [16:11:53]ProducePacketName [16:11:53]name=ofd_packets/00192665 [16:11:53]NVStorageDeleteData [16:11:53]Write to MH i2c: 01 00 00 C0 5B 1B [16:11:53]Write i2c OK [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: 01 [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: 01 07 00 [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: 01 07 00 C0 5B 00 00 00 00 00 C5 0C F3 [16:11:53]RasterBufferAndPrint [16:11:53]line [16:11:53]line [16:11:53]line [16:11:53]line [16:11:53]line [16:11:53]written 0, free lines is 3275 [16:11:53]MH_Cut [16:11:53]Write to MH i2c: D1 01 00 C7 5B 01 F4 [16:11:53]Write i2c OK [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: D1 [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: D1 01 00 [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: D1 01 00 C7 5B 00 F3 [16:11:53]Write to MH i2c: 01 00 00 C8 5B 23 [16:11:53]Write i2c OK [16:11:53]MH_I2C_Read... [16:11:53]OFD Sender: No OFD packet to send [16:11:54]*** Cut start [16:11:54]*** Partial cut [16:11:54]*** CUTSNS_PIN = 1 [16:11:54]*** CUTSNS_PIN = 0 [16:11:54]*** Brake cut motor [16:11:55]Read from MH i2c: 01 [16:11:55]MH_I2C_Read... [16:11:55]*** Stop cut motor [16:11:55]*** Cut end [16:11:55]Read from MH i2c: 01 07 00 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: 01 07 00 C8 5B 00 00 00 00 00 FF 0F 38 [16:11:55]process_action close_receipt done [16:11:55]requested_data is exist [16:11:55]produce_requested_data [16:11:55]requested_item fm.sn is exist - process it [16:11:55]wFMCommunicate request_size=4 [16:11:55]MH_SAM_APDU [16:11:55]CAPDU: 80 11 00 00 [16:11:55]Write to MH i2c: E2 08 00 C9 5B 80 11 00 00 00 00 00 00 9E [16:11:55]Write i2c OK [16:11:55]MH_I2C_Read... [16:11:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:55]Read from MH i2c: E2 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 17 00 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 17 00 C9 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [16:11:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:11:55]wFMCommunicate OK [16:11:55]requested_item fd.num is exist - process it [16:11:55]SAM_PROTO_GetFieldsCounters [16:11:55]wFMCommunicate request_size=4 [16:11:55]MH_SAM_APDU [16:11:55]CAPDU: 80 13 00 00 [16:11:55]Write to MH i2c: E2 08 00 CA 5B 80 13 00 00 00 00 00 00 A1 [16:11:55]Write i2c OK [16:11:55]MH_I2C_Read... [16:11:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:55]Read from MH i2c: E2 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 62 00 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 62 00 CA 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 99 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [16:11:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 99 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:55]wFMCommunicate OK [16:11:55]SAM_PROTO_GetFieldsCounters done [16:11:55]requested_item shift.num is exist - process it [16:11:55]requested_item shift.opened is exist - process it [16:11:55]req_shift_opened [16:11:55]FM_GetShiftState [16:11:55]SAM_PROTO_GetShiftState [16:11:55]wFMCommunicate request_size=4 [16:11:55]MH_SAM_APDU [16:11:55]CAPDU: 80 13 01 00 [16:11:55]Write to MH i2c: E2 08 00 CB 5B 80 13 01 00 00 00 00 00 A3 [16:11:55]Write i2c OK [16:11:55]MH_I2C_Read... [16:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:55]Read from MH i2c: E2 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 0E 00 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 0E 00 CB 5B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F3 [16:11:55]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:11:55]wFMCommunicate OK [16:11:55]SAM_PROTO_GetShiftState done [16:11:55]FM_GetShiftState done [16:11:55]req_shift_opened done [16:11:55]requested_item shift.open_date is exist - process it [16:11:55]req_shift_open_date [16:11:55]req_shift_open_date done [16:11:55]produce_requested_data done [16:11:55]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192665,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:11:55]process_action_free close_receipt [16:11:55]json_value_free [16:11:55]json_value_free done [16:11:55]process_json_proto returns [16:11:55]Send response to host [16:11:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192665,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:11:55]free response buf [16:11:55]execute_script done [16:11:55]execute_script returns [16:11:55]free content buf [16:11:55]Sock 7.Close socket [16:11:55]Sock 7.Thread stoped [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:06]accept exits with 9 [16:13:06]New connection [16:13:06]New thread 3066563940 created [16:13:06]Thread 3066707300 joined [16:13:06]Waiting for new connection... [16:13:06] Sock 9.Parse request [16:13:06]Sock 9.Check first char [16:13:06]Sock 9.First char is OK [16:13:06]request: POST /json_proto HTTP/1.0 [16:13:06]Method: POST [16:13:06]URL: /json_proto [16:13:06]Method is POST - this is cgi request [16:13:06]url: /json_proto [16:13:06]query_string will be loaded in cgi processing [16:13:06]execute_cgi json_proto POST (null) [16:13:06]execute_cgi path=json_proto method=POST [16:13:06]POST find Content-Length [16:13:06]Host: 172.17.63.131:8080 [16:13:06]Content-Length: 674 [16:13:06]Content-Type: application/json [16:13:06] [16:13:06]POST finish read [16:13:06]Found Content-Length = 674 [16:13:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:06]execute_script... [16:13:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:06]POST & json_proto [16:13:06]process_json_proto [16:13:06]json parsed OK: [16:13:06]protocol is kg_v1.0 [16:13:06]action value=close_receipt [16:13:06]process_action close_receipt [16:13:06]cmd_close_receipt [16:13:06]MH_GetDate [16:13:06]Write to MH i2c: F0 00 00 CC 5B 16 [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: F0 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: F0 09 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: F0 09 00 CC 5B 00 18 B8 1F 67 22 05 6E 64 6E [16:13:06]GetLastDocTimeStamp 1730131917 [16:13:06]current date 1730131992 [16:13:06]FM_GetShiftState [16:13:06]SAM_PROTO_GetShiftState [16:13:06]wFMCommunicate request_size=4 [16:13:06]MH_SAM_APDU [16:13:06]CAPDU: 80 13 01 00 [16:13:06]Write to MH i2c: E2 08 00 CD 5B 80 13 01 00 00 00 00 00 A5 [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:06]Read from MH i2c: E2 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 0E 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 0E 00 CD 5B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F5 [16:13:06]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:13:06]wFMCommunicate OK [16:13:06]SAM_PROTO_GetShiftState done [16:13:06]FM_GetShiftState done [16:13:06]opened in 1730075620 [16:13:06]opened+sec_in_day 1730162020 [16:13:06]quantity*price = 80010 [16:13:06]sum+1 = 80011 [16:13:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 214 28.10.2024 16:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192666 ФПД: 144314574146155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T161312&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192666&fm=144314574146155&tin=02508201610067®Number=0000000000091776&sum=80000 [16:13:07]StoreToDocumentArchive [16:13:07]shift 543 fd 192666 [16:13:07]save to /storage/0543/doc_00192666 [16:13:07]save last doc name /storage/0543/doc_00192666 to /storage/kkm_last_doc_name [16:13:07]save OK [16:13:07]Clear old archive folders... [16:13:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:13:07]tlvbuf is 019B6D20 [16:13:07]SAM_PROTO_ClearQueue [16:13:07]wFMCommunicate request_size=4 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 09 00 00 [16:13:07]Write to MH i2c: E2 08 00 DA 5B 80 09 00 00 00 00 00 00 A7 [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 03 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 03 00 DA 5B 00 90 00 A9 [16:13:07]RAPDU: 90 00 [16:13:07]wFMCommunicate OK [16:13:07]SAM_PROTO_ClearQueue done [16:13:07]KKMCreateOFDPacket [16:13:07]OFDProtocolAddRootSTLVToBuf [16:13:07]FM_MakeSignedData [16:13:07]FM_MakeSignedData [16:13:07]SAM_PROTO_SignData [16:13:07]wFMCommunicate request_size=4 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 0D 01 02 [16:13:07]Write to MH i2c: E2 08 00 DB 5B 80 0D 01 02 00 00 00 00 AF [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 03 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 03 00 DB 5B 00 90 00 AA [16:13:07]RAPDU: 90 00 [16:13:07]wFMCommunicate OK [16:13:07]wFMCommunicate request_size=255 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 18 B8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A F0 02 00 35 04 06 00 83 40 DA ED [16:13:07]Write to MH i2c: E2 02 01 DC 5B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 18 B8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A F0 02 00 35 04 06 00 83 40 DA ED 00 00 CF [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 03 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 03 00 DC 5B 00 90 00 AB [16:13:07]RAPDU: 90 00 [16:13:07]wFMCommunicate OK [16:13:07]wFMCommunicate request_size=7 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 0D 02 02 02 8A 6B [16:13:07]Write to MH i2c: E2 0A 00 DD 5B 80 0D 02 02 02 00 8A 6B 00 00 AB [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 03 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 03 00 DD 5B 00 90 00 AC [16:13:07]RAPDU: 90 00 [16:13:07]wFMCommunicate OK [16:13:07]wFMCommunicate request_size=4 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 0D 03 02 [16:13:07]Write to MH i2c: E2 08 00 DE 5B 80 0D 03 02 00 00 00 00 B4 [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 0B 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 0B 00 DE 5B 00 E6 ED D6 15 9F C4 8C 4F 90 00 B1 [16:13:07]RAPDU: E6 ED D6 15 9F C4 8C 4F 90 00 [16:13:07]wFMCommunicate OK [16:13:07]SAM_PROTO_SignData done [16:13:07]FM_MakeSignedData done [16:13:07]CreateOFDProtocolMessage [16:13:07]wFMCommunicate request_size=4 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 11 00 00 [16:13:07]Write to MH i2c: E2 08 00 DF 5B 80 11 00 00 00 00 00 00 B4 [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 17 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 17 00 DF 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 07 [16:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:13:07]wFMCommunicate OK [16:13:07]CreateOFDProtocolMessage done [16:13:07]OFDSenderStorePacket 192666 [16:13:07]StoreOFDPacket docnum=192666 [16:13:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 AB 3C 04 01 86 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 18 B8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A F0 02 00 35 04 06 00 83 40 DA ED 8A 6B E6 ED D6 15 9F C4 8C 4F [16:13:07]CheckFolder [16:13:07]dirname=/storage/ofd_packets [16:13:07]CheckFolder done [16:13:07]ProducePacketName [16:13:07]name=ofd_packets/00192666 [16:13:07]NVStorageSaveData ofd_packets/00192666 [16:13:07]File name is /storage/ofd_packets/00192666 [16:13:07]Write 298 bytes [16:13:07]NVStorageSaveData done [16:13:07]OFDSenderStorePacket done [16:13:07]KKMCreateOFDPacket done [16:13:07]NVStorageSaveData kkm_last_timestamp [16:13:07]File name is /storage/kkm_last_timestamp [16:13:07]Write 4 bytes [16:13:07]NVStorageSaveData done [16:13:07]ExternCall_PrintAddStr [16:13:07]wPrintStart [16:13:07]Write to MH i2c: 01 00 00 E0 5B 3B [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: 01 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: 01 07 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: 01 07 00 E0 5B 00 00 00 00 00 FF 0F 50 [16:13:07]RasterBufferAndPrint [16:13:07]line Счет N : (1)31993 [16:13:07]line ИНН: 02508201610067 [16:13:07]line Контрольно-Кассовый Чек [16:13:07]line ПРОДАЖА [16:13:07]line ТРК (МРК, ГНК) : 11 [16:13:07]line Товар: 2710194210 [16:13:07]line ДТ-К-5 [16:13:07]line 10.500 * 76.20 [16:13:07]line = 800.10 [16:13:07]line НДС 12% НСП 1% [16:13:07]line > о реализуемом товаре [16:13:07]line ОКРУГЛЕНИЕ: -0.10 [16:13:07]line ИТОГО: 800.00 [16:13:07]line Внесено: 800.00 [16:13:07]line СДАЧА: 0.00 [16:13:07]line НСП 1% : 7.08 [16:13:07]line НДС 12% : 84.97 [16:13:07]line Наличными: 800.00 [16:13:07]line Безнал.: 0.00 [16:13:07]line Место: АЗС № 170 "Партнер Нефть" [16:13:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:13:07]line СНО: Общий режим [16:13:07]line Чек 214 28.10.2024 16:13 [16:13:07]line Смена: 543 ФФД: 1.0 [16:13:07]line ЗНМ: 0300000110 [16:13:07]line РНМ: 0000000000091776 [16:13:07]line Версия ККМ: 001 [16:13:07]line ФМ: 0000000000871754 [16:13:07]line ФД: 192666 [16:13:07]line ФПД: 144314574146155 [16:13:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T161312&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192666&fm=144314574146155&tin=02508201610067®Number=0000000000091776&sum=80000 [16:13:08]OFD Sender: Processing packet 192666 [packets to send 75, broken 74] [16:13:08]ProducePacketName [16:13:08]name=ofd_packets/00192666 [16:13:08]OFD Sender: To server: pG, [16:13:08]CommunicateWithHost lk.salyk.kg:30040 [16:13:08]ConnectInit lk.salyk.kg [16:13:08]written 0, free lines is 4095 [16:13:08]Connected sock=10 [16:13:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 AB 3C 04 01 86 1C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 18 B8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A F0 02 00 35 04 06 00 83 40 DA ED 8A 6B E6 ED D6 15 9F C4 8C 4F [16:13:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 56 7A 47 00 C2 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A F0 02 00 F4 03 04 00 DB 5C 1F 67 B6 04 01 00 00 B5 FA 1F 9F 90 53 B3 B0 [16:13:08]CommunicateWithHost err = 0 [16:13:08]CheckOFDResponse [16:13:08]1017 (14) - 77093643461234 [16:13:08]1041 (16) - 0000000000871754 [16:13:08]1040 (4) - 192666 [16:13:08]1012 (4) - 28.10.2024 09:43 [16:13:08]1206 (1) - 0 [16:13:08]OFD Sender: Remove packet 192666 [16:13:08]ProducePacketName [16:13:08]name=ofd_packets/00192666 [16:13:08]NVStorageDeleteData [16:13:08]Write to MH i2c: 01 00 00 0B 5C 67 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: 01 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: 01 07 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: 01 07 00 0B 5C 00 00 00 00 00 BA 0C 34 [16:13:08]RasterBufferAndPrint [16:13:08]line [16:13:08]line [16:13:08]line [16:13:08]line [16:13:08]line [16:13:08]written 0, free lines is 3265 [16:13:08]MH_Cut [16:13:08]Write to MH i2c: D1 01 00 12 5C 01 40 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: D1 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: D1 01 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: D1 01 00 12 5C 00 3F [16:13:08]Write to MH i2c: 01 00 00 13 5C 6F [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:09]OFD Sender: No OFD packet to send [16:13:09]*** Cut start [16:13:09]*** Partial cut [16:13:09]*** CUTSNS_PIN = 1 [16:13:09]*** CUTSNS_PIN = 0 [16:13:09]*** Brake cut motor [16:13:10]Read from MH i2c: 01 [16:13:10]MH_I2C_Read... [16:13:10]*** Stop cut motor [16:13:10]*** Cut end [16:13:10]Read from MH i2c: 01 07 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: 01 07 00 13 5C 00 00 00 00 00 FF 0F 84 [16:13:10]process_action close_receipt done [16:13:10]requested_data is exist [16:13:10]produce_requested_data [16:13:10]requested_item fm.sn is exist - process it [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 11 00 00 [16:13:10]Write to MH i2c: E2 08 00 14 5C 80 11 00 00 00 00 00 00 EA [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 17 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 17 00 14 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3D [16:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:13:10]wFMCommunicate OK [16:13:10]requested_item fd.num is exist - process it [16:13:10]SAM_PROTO_GetFieldsCounters [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 13 00 00 [16:13:10]Write to MH i2c: E2 08 00 15 5C 80 13 00 00 00 00 00 00 ED [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 62 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 62 00 15 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [16:13:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9A F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:10]wFMCommunicate OK [16:13:10]SAM_PROTO_GetFieldsCounters done [16:13:10]requested_item shift.num is exist - process it [16:13:10]requested_item shift.opened is exist - process it [16:13:10]req_shift_opened [16:13:10]FM_GetShiftState [16:13:10]SAM_PROTO_GetShiftState [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 13 01 00 [16:13:10]Write to MH i2c: E2 08 00 16 5C 80 13 01 00 00 00 00 00 EF [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 0E 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 0E 00 16 5C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3F [16:13:10]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:13:10]wFMCommunicate OK [16:13:10]SAM_PROTO_GetShiftState done [16:13:10]FM_GetShiftState done [16:13:10]req_shift_opened done [16:13:10]requested_item shift.open_date is exist - process it [16:13:10]req_shift_open_date [16:13:10]req_shift_open_date done [16:13:10]produce_requested_data done [16:13:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192666,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:13:10]process_action_free close_receipt [16:13:10]json_value_free [16:13:10]json_value_free done [16:13:10]process_json_proto returns [16:13:10]Send response to host [16:13:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192666,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:13:10]free response buf [16:13:10]execute_script done [16:13:10]execute_script returns [16:13:10]free content buf [16:13:10]Sock 9.Close socket [16:13:10]Sock 9.Thread stoped [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:35]accept exits with 7 [16:14:35]New connection [16:14:35]New thread 3066707300 created [16:14:35]Thread 3066563940 joined [16:14:35]Waiting for new connection... [16:14:35] Sock 7.Parse request [16:14:35]Sock 7.Check first char [16:14:35]Sock 7.First char is OK [16:14:35]request: POST /json_proto HTTP/1.0 [16:14:35]Method: POST [16:14:35]URL: /json_proto [16:14:35]Method is POST - this is cgi request [16:14:35]url: /json_proto [16:14:35]query_string will be loaded in cgi processing [16:14:35]execute_cgi json_proto POST (null) [16:14:35]execute_cgi path=json_proto method=POST [16:14:35]POST find Content-Length [16:14:35]Host: 172.17.63.131:8080 [16:14:35]Content-Length: 676 [16:14:35]Content-Type: application/json [16:14:35] [16:14:35]POST finish read [16:14:35]Found Content-Length = 676 [16:14:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:35]execute_script... [16:14: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)31994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:35]POST & json_proto [16:14:35]process_json_proto [16:14:35]json parsed OK: [16:14:35]protocol is kg_v1.0 [16:14:35]action value=close_receipt [16:14:35]process_action close_receipt [16:14:35]cmd_close_receipt [16:14:35]MH_GetDate [16:14:35]Write to MH i2c: F0 00 00 17 5C 62 [16:14:35]Write i2c OK [16:14:35]MH_I2C_Read... [16:14:35]Read from MH i2c: F0 [16:14:35]MH_I2C_Read... [16:14:35]Read from MH i2c: F0 09 00 [16:14:35]MH_I2C_Read... [16:14:35]Read from MH i2c: F0 09 00 17 5C 00 72 B8 1F 67 22 05 6E 64 14 [16:14:35]GetLastDocTimeStamp 1730131992 [16:14:35]current date 1730132082 [16:14:35]FM_GetShiftState [16:14:35]SAM_PROTO_GetShiftState [16:14:35]wFMCommunicate request_size=4 [16:14:35]MH_SAM_APDU [16:14:35]CAPDU: 80 13 01 00 [16:14:35]Write to MH i2c: E2 08 00 18 5C 80 13 01 00 00 00 00 00 F1 [16:14:35]Write i2c OK [16:14:35]MH_I2C_Read... [16:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:36]Read from MH i2c: E2 [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: E2 0E 00 [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: E2 0E 00 18 5C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 41 [16:14:36]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:14:36]wFMCommunicate OK [16:14:36]SAM_PROTO_GetShiftState done [16:14:36]FM_GetShiftState done [16:14:36]opened in 1730075620 [16:14:36]opened+sec_in_day 1730162020 [16:14:36]quantity*price = 20003 [16:14:36]sum+1 = 20004 [16:14:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 215 28.10.2024 16:14 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192667 ФПД: 116193782524160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T161442&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192667&fm=116193782524160&tin=02508201610067®Number=0000000000091776&sum=20000 [16:14:37]StoreToDocumentArchive [16:14:37]shift 543 fd 192667 [16:14:37]save to /storage/0543/doc_00192667 [16:14:37]save last doc name /storage/0543/doc_00192667 to /storage/kkm_last_doc_name [16:14:37]save OK [16:14:37]Clear old archive folders... [16:14:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:37]tlvbuf is 01AC8330 [16:14:37]SAM_PROTO_ClearQueue [16:14:37]wFMCommunicate request_size=4 [16:14:37]MH_SAM_APDU [16:14:37]CAPDU: 80 09 00 00 [16:14:37]Write to MH i2c: E2 08 00 25 5C 80 09 00 00 00 00 00 00 F3 [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:37]Read from MH i2c: E2 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 03 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 03 00 25 5C 00 90 00 F5 [16:14:37]RAPDU: 90 00 [16:14:37]wFMCommunicate OK [16:14:37]SAM_PROTO_ClearQueue done [16:14:37]KKMCreateOFDPacket [16:14:37]OFDProtocolAddRootSTLVToBuf [16:14:37]FM_MakeSignedData [16:14:37]FM_MakeSignedData [16:14:37]SAM_PROTO_SignData [16:14:37]wFMCommunicate request_size=4 [16:14:37]MH_SAM_APDU [16:14:37]CAPDU: 80 0D 01 02 [16:14:37]Write to MH i2c: E2 08 00 26 5C 80 0D 01 02 00 00 00 00 FB [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:37]Read from MH i2c: E2 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 03 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 03 00 26 5C 00 90 00 F6 [16:14:37]RAPDU: 90 00 [16:14:37]wFMCommunicate OK [16:14:37]wFMCommunicate request_size=255 [16:14:37]MH_SAM_APDU [16:14: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 72 B8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B F0 02 00 35 04 06 00 69 [16:14:37]Write to MH i2c: E2 02 01 27 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 72 B8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B F0 02 00 35 04 06 00 69 00 00 EF [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:37]Read from MH i2c: E2 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 03 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 03 00 27 5C 00 90 00 F7 [16:14:37]RAPDU: 90 00 [16:14:37]wFMCommunicate OK [16:14:37]wFMCommunicate request_size=10 [16:14:37]MH_SAM_APDU [16:14:37]CAPDU: 80 0D 02 02 05 AD 79 21 E9 00 [16:14:37]Write to MH i2c: E2 0D 00 28 5C 80 0D 02 02 05 00 AD 79 21 E9 00 00 00 38 [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:37]Read from MH i2c: E2 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 03 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 03 00 28 5C 00 90 00 F8 [16:14:37]RAPDU: 90 00 [16:14:37]wFMCommunicate OK [16:14:37]wFMCommunicate request_size=4 [16:14:37]MH_SAM_APDU [16:14:37]CAPDU: 80 0D 03 02 [16:14:37]Write to MH i2c: E2 08 00 29 5C 80 0D 03 02 00 00 00 00 00 [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:37]Read from MH i2c: E2 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 0B 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 0B 00 29 5C 00 71 A3 66 60 76 B7 74 A8 90 00 24 [16:14:37]RAPDU: 71 A3 66 60 76 B7 74 A8 90 00 [16:14:37]wFMCommunicate OK [16:14:37]SAM_PROTO_SignData done [16:14:37]FM_MakeSignedData done [16:14:37]CreateOFDProtocolMessage [16:14:37]wFMCommunicate request_size=4 [16:14:37]MH_SAM_APDU [16:14:37]CAPDU: 80 11 00 00 [16:14:37]Write to MH i2c: E2 08 00 2A 5C 80 11 00 00 00 00 00 00 00 [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:37]Read from MH i2c: E2 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 17 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 17 00 2A 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 53 [16:14:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:14:37]wFMCommunicate OK [16:14:37]CreateOFDProtocolMessage done [16:14:37]OFDSenderStorePacket 192667 [16:14:37]StoreOFDPacket docnum=192667 [16:14:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E6 18 07 01 CB 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 72 B8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B F0 02 00 35 04 06 00 69 AD 79 21 E9 00 71 A3 66 60 76 B7 74 A8 [16:14:37]CheckFolder [16:14:37]dirname=/storage/ofd_packets [16:14:37]CheckFolder done [16:14:37]ProducePacketName [16:14:37]name=ofd_packets/00192667 [16:14:37]NVStorageSaveData ofd_packets/00192667 [16:14:37]File name is /storage/ofd_packets/00192667 [16:14:37]Write 301 bytes [16:14:37]NVStorageSaveData done [16:14:37]OFDSenderStorePacket done [16:14:37]KKMCreateOFDPacket done [16:14:37]NVStorageSaveData kkm_last_timestamp [16:14:37]File name is /storage/kkm_last_timestamp [16:14:37]Write 4 bytes [16:14:37]NVStorageSaveData done [16:14:37]OFD Sender: Processing packet 192667 [packets to send 75, broken 74] [16:14:37]ProducePacketName [16:14:37]name=ofd_packets/00192667 [16:14:37]OFD Sender: To server: pG, [16:14:37]CommunicateWithHost lk.salyk.kg:30040 [16:14:37]ConnectInit lk.salyk.kg [16:14:37]ExternCall_PrintAddStr [16:14:37]wPrintStart [16:14:37]Write to MH i2c: 01 00 00 2B 5C 87 [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: 01 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: 01 07 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: 01 07 00 2B 5C 00 00 00 00 00 FF 0F 9C [16:14:37]RasterBufferAndPrint [16:14:37]line Счет N : (1)31994 [16:14:37]line ИНН: 02508201610067 [16:14:37]line Контрольно-Кассовый Чек [16:14:37]line ПРОДАЖА [16:14:37]line ТРК (МРК, ГНК) : 12 [16:14:37]line Товар: 2710124130 [16:14:37]line Аи-92-К-5 [16:14:37]line 2.990 * 66.90 [16:14:37]line = 200.03 [16:14:37]line НДС 12% НСП 1% [16:14:37]line > о реализуемом товаре [16:14:37]line ОКРУГЛЕНИЕ: -0.03 [16:14:37]line ИТОГО: 200.00 [16:14:37]line Внесено: 200.00 [16:14:37]line СДАЧА: 0.00 [16:14:37]line НСП 1% : 1.77 [16:14:37]line НДС 12% : 21.24 [16:14:37]line Наличными: 200.00 [16:14:37]line Безнал.: 0.00 [16:14:37]line Место: АЗС № 170 "Партнер Нефть" [16:14:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:14:37]line СНО: Общий режим [16:14:37]line Чек 215 28.10.2024 16:14 [16:14:37]line Смена: 543 ФФД: 1.0 [16:14:37]line ЗНМ: 0300000110 [16:14:37]line РНМ: 0000000000091776 [16:14:37]line Версия ККМ: 001 [16:14:37]line ФМ: 0000000000871754 [16:14:37]line ФД: 192667 [16:14:37]line ФПД: 116193782524160 [16:14:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T161442&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192667&fm=116193782524160&tin=02508201610067®Number=0000000000091776&sum=20000 [16:14:38]Connected sock=11 [16: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 31 37 35 34 0F 01 00 00 E6 18 07 01 CB 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 72 B8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B F0 02 00 35 04 06 00 69 AD 79 21 E9 00 71 A3 66 60 76 B7 74 A8 [16:14:38]written 0, free lines is 4095 [16:14:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2F AC 47 00 AA C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B F0 02 00 F4 03 04 00 35 5D 1F 67 B6 04 01 00 00 1E 5D FD 5F EF F1 75 09 [16:14:38]CommunicateWithHost err = 0 [16:14:38]CheckOFDResponse [16:14:38]1017 (14) - 77093643461234 [16:14:38]1041 (16) - 0000000000871754 [16:14:38]1040 (4) - 192667 [16:14:38]1012 (4) - 28.10.2024 09:45 [16:14:38]1206 (1) - 0 [16:14:38]OFD Sender: Remove packet 192667 [16:14:38]ProducePacketName [16:14:38]name=ofd_packets/00192667 [16:14:38]NVStorageDeleteData [16:14:38]Write to MH i2c: 01 00 00 56 5C B2 [16:14:38]Write i2c OK [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: 01 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: 01 07 00 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: 01 07 00 56 5C 00 00 00 00 00 B5 0C 7A [16:14:38]RasterBufferAndPrint [16:14:38]line [16:14:38]line [16:14:38]line [16:14:38]line [16:14:38]line [16:14:38]written 0, free lines is 3259 [16:14:38]MH_Cut [16:14:38]Write to MH i2c: D1 01 00 5D 5C 01 8B [16:14:38]Write i2c OK [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: D1 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: D1 01 00 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: D1 01 00 5D 5C 00 8A [16:14:38]Write to MH i2c: 01 00 00 5E 5C BA [16:14:38]Write i2c OK [16:14:38]MH_I2C_Read... [16:14:38]OFD Sender: No OFD packet to send [16:14:39]*** Cut start [16:14:39]*** Partial cut [16:14:39]*** CUTSNS_PIN = 1 [16:14:39]*** CUTSNS_PIN = 0 [16:14:39]*** Brake cut motor [16:14:39]Read from MH i2c: 01 [16:14:39]MH_I2C_Read... [16:14:39]*** Stop cut motor [16:14:39]*** Cut end [16:14:39]Read from MH i2c: 01 07 00 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: 01 07 00 5E 5C 00 00 00 00 00 FF 0F CF [16:14:39]process_action close_receipt done [16:14:39]requested_data is exist [16:14:39]produce_requested_data [16:14:39]requested_item fm.sn is exist - process it [16:14:39]wFMCommunicate request_size=4 [16:14:39]MH_SAM_APDU [16:14:39]CAPDU: 80 11 00 00 [16:14:39]Write to MH i2c: E2 08 00 5F 5C 80 11 00 00 00 00 00 00 35 [16:14:39]Write i2c OK [16:14:39]MH_I2C_Read... [16:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:39]Read from MH i2c: E2 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 17 00 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 17 00 5F 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 88 [16:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:14:40]wFMCommunicate OK [16:14:40]requested_item fd.num is exist - process it [16:14:40]SAM_PROTO_GetFieldsCounters [16:14:40]wFMCommunicate request_size=4 [16:14:40]MH_SAM_APDU [16:14:40]CAPDU: 80 13 00 00 [16:14:40]Write to MH i2c: E2 08 00 60 5C 80 13 00 00 00 00 00 00 38 [16:14:40]Write i2c OK [16:14:40]MH_I2C_Read... [16:14:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:40]Read from MH i2c: E2 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 62 00 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 62 00 60 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [16:14:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9B F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:40]wFMCommunicate OK [16:14:40]SAM_PROTO_GetFieldsCounters done [16:14:40]requested_item shift.num is exist - process it [16:14:40]requested_item shift.opened is exist - process it [16:14:40]req_shift_opened [16:14:40]FM_GetShiftState [16:14:40]SAM_PROTO_GetShiftState [16:14:40]wFMCommunicate request_size=4 [16:14:40]MH_SAM_APDU [16:14:40]CAPDU: 80 13 01 00 [16:14:40]Write to MH i2c: E2 08 00 61 5C 80 13 01 00 00 00 00 00 3A [16:14:40]Write i2c OK [16:14:40]MH_I2C_Read... [16:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:40]Read from MH i2c: E2 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 0E 00 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 0E 00 61 5C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 8A [16:14:40]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:14:40]wFMCommunicate OK [16:14:40]SAM_PROTO_GetShiftState done [16:14:40]FM_GetShiftState done [16:14:40]req_shift_opened done [16:14:40]requested_item shift.open_date is exist - process it [16:14:40]req_shift_open_date [16:14:40]req_shift_open_date done [16:14:40]produce_requested_data done [16:14:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192667,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:14:40]process_action_free close_receipt [16:14:40]json_value_free [16:14:40]json_value_free done [16:14:40]process_json_proto returns [16:14:40]Send response to host [16:14:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192667,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:14:40]free response buf [16:14:40]execute_script done [16:14:40]execute_script returns [16:14:40]free content buf [16:14:40]Sock 7.Close socket [16:14:40]Sock 7.Thread stoped [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:30]accept exits with 10 [16:17:30]New connection [16:17:30]New thread 3066563940 created [16:17:30]Thread 3066707300 joined [16:17:30]Waiting for new connection... [16:17:30] Sock 10.Parse request [16:17:30]Sock 10.Check first char [16:17:30]Sock 10.First char is OK [16:17:30]request: POST /json_proto HTTP/1.0 [16:17:30]Method: POST [16:17:30]URL: /json_proto [16:17:30]Method is POST - this is cgi request [16:17:30]url: /json_proto [16:17:30]query_string will be loaded in cgi processing [16:17:30]execute_cgi json_proto POST (null) [16:17:30]execute_cgi path=json_proto method=POST [16:17:30]POST find Content-Length [16:17:30]Host: 172.17.63.131:8080 [16:17:30]Content-Length: 859 [16:17:30]Content-Type: application/json [16:17:30] [16:17:30]POST finish read [16:17:30]Found Content-Length = 859 [16:17:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:30]execute_script... [16:17:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:30]POST & json_proto [16:17:30]process_json_proto [16:17:30]json parsed OK: [16:17:30]protocol is kg_v1.0 [16:17:30]action value=close_receipt [16:17:30]process_action close_receipt [16:17:30]cmd_close_receipt [16:17:30]MH_GetDate [16:17:30]Write to MH i2c: F0 00 00 62 5C AD [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: F0 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: F0 09 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: F0 09 00 62 5C 00 20 B9 1F 67 22 05 6E 64 0E [16:17:30]GetLastDocTimeStamp 1730132082 [16:17:30]current date 1730132256 [16:17:30]FM_GetShiftState [16:17:30]SAM_PROTO_GetShiftState [16:17:30]wFMCommunicate request_size=4 [16:17:30]MH_SAM_APDU [16:17:30]CAPDU: 80 13 01 00 [16:17:30]Write to MH i2c: E2 08 00 63 5C 80 13 01 00 00 00 00 00 3C [16:17:30]Write i2c OK [16:17:30]MH_I2C_Read... [16:17:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:30]Read from MH i2c: E2 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 0E 00 [16:17:30]MH_I2C_Read... [16:17:30]Read from MH i2c: E2 0E 00 63 5C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 8C [16:17:30]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:17:30]wFMCommunicate OK [16:17:30]SAM_PROTO_GetShiftState done [16:17:30]FM_GetShiftState done [16:17:30]opened in 1730075620 [16:17:30]opened+sec_in_day 1730162020 [16:17:30]quantity*price = 40005 [16:17:30]sum+1 = 40006 [16:17:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.05 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.05 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 216 28.10.2024 16:17 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192668 ФПД: 208660692285647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T161736&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192668&fm=208660692285647&tin=02508201610067®Number=0000000000091776&sum=40005 [16:17:31]StoreToDocumentArchive [16:17:31]shift 543 fd 192668 [16:17:31]save to /storage/0543/doc_00192668 [16:17:31]save last doc name /storage/0543/doc_00192668 to /storage/kkm_last_doc_name [16:17:31]save OK [16:17:31]Clear old archive folders... [16:17:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:17:31]tlvbuf is 019B1560 [16:17:31]SAM_PROTO_ClearQueue [16:17:31]wFMCommunicate request_size=4 [16:17:31]MH_SAM_APDU [16:17:31]CAPDU: 80 09 00 00 [16:17:31]Write to MH i2c: E2 08 00 70 5C 80 09 00 00 00 00 00 00 3E [16:17:31]Write i2c OK [16:17:31]MH_I2C_Read... [16:17:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:31]Read from MH i2c: E2 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: E2 03 00 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: E2 03 00 70 5C 00 90 00 40 [16:17:31]RAPDU: 90 00 [16:17:31]wFMCommunicate OK [16:17:31]SAM_PROTO_ClearQueue done [16:17:31]KKMCreateOFDPacket [16:17:31]OFDProtocolAddRootSTLVToBuf [16:17:31]FM_MakeSignedData [16:17:31]FM_MakeSignedData [16:17:31]SAM_PROTO_SignData [16:17:31]wFMCommunicate request_size=4 [16:17:31]MH_SAM_APDU [16:17:31]CAPDU: 80 0D 01 02 [16:17:31]Write to MH i2c: E2 08 00 71 5C 80 0D 01 02 00 00 00 00 46 [16:17:31]Write i2c OK [16:17:31]MH_I2C_Read... [16:17:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:31]Read from MH i2c: E2 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: E2 03 00 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: E2 03 00 71 5C 00 90 00 41 [16:17:31]RAPDU: 90 00 [16:17:31]wFMCommunicate OK [16:17:31]wFMCommunicate request_size=255 [16:17:31]MH_SAM_APDU [16:17: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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 45 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 45 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 20 B9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C F0 02 00 35 04 06 00 BD C6 9A 71 [16:17:31]Write to MH i2c: E2 02 01 72 5C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 45 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 45 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 20 B9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C F0 02 00 35 04 06 00 BD C6 9A 71 00 00 41 [16:17:31]Write i2c OK [16:17:31]MH_I2C_Read... [16:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:31]Read from MH i2c: E2 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: E2 03 00 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: E2 03 00 72 5C 00 90 00 42 [16:17:31]RAPDU: 90 00 [16:17:31]wFMCommunicate OK [16:17:31]wFMCommunicate request_size=7 [16:17:31]MH_SAM_APDU [16:17:31]CAPDU: 80 0D 02 02 02 38 CF [16:17:31]Write to MH i2c: E2 0A 00 73 5C 80 0D 02 02 02 00 38 CF 00 00 54 [16:17:31]Write i2c OK [16:17:31]MH_I2C_Read... [16:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:31]Read from MH i2c: E2 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: E2 03 00 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: E2 03 00 73 5C 00 90 00 43 [16:17:31]RAPDU: 90 00 [16:17:31]wFMCommunicate OK [16:17:31]wFMCommunicate request_size=4 [16:17:31]MH_SAM_APDU [16:17:31]CAPDU: 80 0D 03 02 [16:17:31]Write to MH i2c: E2 08 00 74 5C 80 0D 03 02 00 00 00 00 4B [16:17:31]Write i2c OK [16:17:31]MH_I2C_Read... [16:17:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:31]Read from MH i2c: E2 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: E2 0B 00 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: E2 0B 00 74 5C 00 01 7D 9D BB 60 36 40 90 90 00 88 [16:17:31]RAPDU: 01 7D 9D BB 60 36 40 90 90 00 [16:17:31]wFMCommunicate OK [16:17:31]SAM_PROTO_SignData done [16:17:31]FM_MakeSignedData done [16:17:31]CreateOFDProtocolMessage [16:17:31]wFMCommunicate request_size=4 [16:17:31]MH_SAM_APDU [16:17:31]CAPDU: 80 11 00 00 [16:17:31]Write to MH i2c: E2 08 00 75 5C 80 11 00 00 00 00 00 00 4B [16:17:31]Write i2c OK [16:17:31]MH_I2C_Read... [16:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:31]Read from MH i2c: E2 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: E2 17 00 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: E2 17 00 75 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9E [16:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:17:31]wFMCommunicate OK [16:17:31]CreateOFDProtocolMessage done [16:17:31]OFDSenderStorePacket 192668 [16:17:31]StoreOFDPacket docnum=192668 [16:17:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F1 47 04 01 1E 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 45 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 45 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 20 B9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C F0 02 00 35 04 06 00 BD C6 9A 71 38 CF 01 7D 9D BB 60 36 40 90 [16:17:31]CheckFolder [16:17:31]dirname=/storage/ofd_packets [16:17:31]CheckFolder done [16:17:31]ProducePacketName [16:17:31]name=ofd_packets/00192668 [16:17:31]NVStorageSaveData ofd_packets/00192668 [16:17:31]File name is /storage/ofd_packets/00192668 [16:17:31]Write 298 bytes [16:17:31]NVStorageSaveData done [16:17:31]OFDSenderStorePacket done [16:17:31]KKMCreateOFDPacket done [16:17:31]NVStorageSaveData kkm_last_timestamp [16:17:31]File name is /storage/kkm_last_timestamp [16:17:31]Write 4 bytes [16:17:31]NVStorageSaveData done [16:17:31]ExternCall_PrintAddStr [16:17:31]wPrintStart [16:17:31]Write to MH i2c: 01 00 00 76 5C D2 [16:17:31]Write i2c OK [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: 01 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: 01 07 00 [16:17:31]MH_I2C_Read... [16:17:31]Read from MH i2c: 01 07 00 76 5C 00 00 00 00 00 FF 0F E7 [16:17:31]RasterBufferAndPrint [16:17:31]line Счет N : (1)31995 [16:17:31]line ИНН: 02508201610067 [16:17:31]line Контрольно-Кассовый Чек [16:17:31]line ПРОДАЖА [16:17:31]line ТРК (МРК, ГНК) : 11 [16:17:31]line Товар: 2710194210 [16:17:31]line ДТ-К-5 [16:17:31]line 5.250 * 76.20 [16:17:31]line = 400.05 [16:17:31]line НДС 12% НСП 1% [16:17:31]line > о реализуемом товаре [16:17:31]line ИТОГО: 400.05 [16:17:31]line НСП 1% : 3.54 [16:17:31]line НДС 12% : 42.48 [16:17:31]line Наличными: 0.00 [16:17:31]line Безнал.: 400.05 [16:17:31]line Место: АЗС № 170 "Партнер Нефть" [16:17:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:17:31]line СНО: Общий режим [16:17:31]line Чек 216 28.10.2024 16:17 [16:17:31]line Смена: 543 ФФД: 1.0 [16:17:31]line ЗНМ: 0300000110 [16:17:31]line РНМ: 0000000000091776 [16:17:31]line Версия ККМ: 001 [16:17:31]line Платежная система: Кыргызкоммерцбанк [16:17:31]line ФМ: 0000000000871754 [16:17:31]line ФД: 192668 [16:17:31]line ФПД: 208660692285647 [16:17:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T161736&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192668&fm=208660692285647&tin=02508201610067®Number=0000000000091776&sum=40005 [16:17:32]OFD Sender: Processing packet 192668 [packets to send 75, broken 74] [16:17:32]ProducePacketName [16:17:32]name=ofd_packets/00192668 [16:17:32]OFD Sender: To server: pG, [16:17:32]CommunicateWithHost lk.salyk.kg:30040 [16:17:32]ConnectInit lk.salyk.kg [16:17:32]written 0, free lines is 4095 [16:17:32]Connected sock=9 [16:17:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F1 47 04 01 1E 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 45 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 45 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 20 B9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C F0 02 00 35 04 06 00 BD C6 9A 71 38 CF 01 7D 9D BB 60 36 40 90 [16:17:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 38 A6 47 00 85 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C F0 02 00 F4 03 04 00 E3 5D 1F 67 B6 04 01 00 00 0A 01 93 37 6F 55 91 F8 [16:17:32]CommunicateWithHost err = 0 [16:17:32]CheckOFDResponse [16:17:32]1017 (14) - 77093643461234 [16:17:32]1041 (16) - 0000000000871754 [16:17:32]1040 (4) - 192668 [16:17:32]1012 (4) - 28.10.2024 09:48 [16:17:32]1206 (1) - 0 [16:17:32]OFD Sender: Remove packet 192668 [16:17:32]ProducePacketName [16:17:32]name=ofd_packets/00192668 [16:17:32]NVStorageDeleteData [16:17:32]Write to MH i2c: 01 00 00 A0 5C FC [16:17:32]Write i2c OK [16:17:32]MH_I2C_Read... [16:17:32]Read from MH i2c: 01 [16:17:32]MH_I2C_Read... [16:17:32]Read from MH i2c: 01 07 00 [16:17:32]MH_I2C_Read... [16:17:32]Read from MH i2c: 01 07 00 A0 5C 00 00 00 00 00 D8 0C E7 [16:17:32]RasterBufferAndPrint [16:17:32]line [16:17:32]line [16:17:32]line [16:17:32]line [16:17:32]line [16:17:32]written 0, free lines is 3295 [16:17:32]MH_Cut [16:17:32]Write to MH i2c: D1 01 00 A7 5C 01 D5 [16:17:32]Write i2c OK [16:17:32]MH_I2C_Read... [16:17:32]Read from MH i2c: D1 [16:17:32]MH_I2C_Read... [16:17:32]Read from MH i2c: D1 01 00 [16:17:32]MH_I2C_Read... [16:17:32]Read from MH i2c: D1 01 00 A7 5C 00 D4 [16:17:32]Write to MH i2c: 01 00 00 A8 5C 04 [16:17:32]Write i2c OK [16:17:32]MH_I2C_Read... [16:17:33]OFD Sender: No OFD packet to send [16:17:33]*** Cut start [16:17:33]*** Partial cut [16:17:33]*** CUTSNS_PIN = 1 [16:17:33]*** CUTSNS_PIN = 0 [16:17:33]*** Brake cut motor [16:17:34]Read from MH i2c: 01 [16:17:34]MH_I2C_Read... [16:17:34]*** Stop cut motor [16:17:34]*** Cut end [16:17:34]Read from MH i2c: 01 07 00 [16:17:34]MH_I2C_Read... [16:17:34]Read from MH i2c: 01 07 00 A8 5C 00 00 00 00 00 FF 0F 19 [16:17:34]process_action close_receipt done [16:17:34]requested_data is exist [16:17:34]produce_requested_data [16:17:34]requested_item fm.sn is exist - process it [16:17:34]wFMCommunicate request_size=4 [16:17:34]MH_SAM_APDU [16:17:34]CAPDU: 80 11 00 00 [16:17:34]Write to MH i2c: E2 08 00 A9 5C 80 11 00 00 00 00 00 00 7F [16:17:34]Write i2c OK [16:17:34]MH_I2C_Read... [16:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:34]Read from MH i2c: E2 [16:17:34]MH_I2C_Read... [16:17:34]Read from MH i2c: E2 17 00 [16:17:34]MH_I2C_Read... [16:17:34]Read from MH i2c: E2 17 00 A9 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [16:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:17:34]wFMCommunicate OK [16:17:34]requested_item fd.num is exist - process it [16:17:34]SAM_PROTO_GetFieldsCounters [16:17:34]wFMCommunicate request_size=4 [16:17:34]MH_SAM_APDU [16:17:34]CAPDU: 80 13 00 00 [16:17:34]Write to MH i2c: E2 08 00 AA 5C 80 13 00 00 00 00 00 00 82 [16:17:34]Write i2c OK [16:17:34]MH_I2C_Read... [16:17:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:34]Read from MH i2c: E2 [16:17:34]MH_I2C_Read... [16:17:34]Read from MH i2c: E2 62 00 [16:17:34]MH_I2C_Read... [16:17:34]Read from MH i2c: E2 62 00 AA 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [16:17:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9C F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:34]wFMCommunicate OK [16:17:34]SAM_PROTO_GetFieldsCounters done [16:17:34]requested_item shift.num is exist - process it [16:17:34]requested_item shift.opened is exist - process it [16:17:34]req_shift_opened [16:17:34]FM_GetShiftState [16:17:34]SAM_PROTO_GetShiftState [16:17:34]wFMCommunicate request_size=4 [16:17:34]MH_SAM_APDU [16:17:34]CAPDU: 80 13 01 00 [16:17:34]Write to MH i2c: E2 08 00 AB 5C 80 13 01 00 00 00 00 00 84 [16:17:34]Write i2c OK [16:17:34]MH_I2C_Read... [16:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:34]Read from MH i2c: E2 [16:17:34]MH_I2C_Read... [16:17:34]Read from MH i2c: E2 0E 00 [16:17:34]MH_I2C_Read... [16:17:34]Read from MH i2c: E2 0E 00 AB 5C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D4 [16:17:34]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:17:34]wFMCommunicate OK [16:17:34]SAM_PROTO_GetShiftState done [16:17:34]FM_GetShiftState done [16:17:34]req_shift_opened done [16:17:34]requested_item shift.open_date is exist - process it [16:17:34]req_shift_open_date [16:17:34]req_shift_open_date done [16:17:34]produce_requested_data done [16:17:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192668,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:17:34]process_action_free close_receipt [16:17:34]json_value_free [16:17:34]json_value_free done [16:17:34]process_json_proto returns [16:17:34]Send response to host [16:17:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192668,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:17:34]free response buf [16:17:34]execute_script done [16:17:34]execute_script returns [16:17:34]free content buf [16:17:34]Sock 10.Close socket [16:17:34]Sock 10.Thread stoped [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:07]accept exits with 7 [16:20:07]New connection [16:20:07]New thread 3066707300 created [16:20:07]Thread 3066563940 joined [16:20:07]Waiting for new connection... [16:20:07] Sock 7.Parse request [16:20:07]Sock 7.Check first char [16:20:07]Sock 7.First char is OK [16:20:07]request: POST /json_proto HTTP/1.0 [16:20:07]Method: POST [16:20:07]URL: /json_proto [16:20:07]Method is POST - this is cgi request [16:20:07]url: /json_proto [16:20:07]query_string will be loaded in cgi processing [16:20:07]execute_cgi json_proto POST (null) [16:20:07]execute_cgi path=json_proto method=POST [16:20:07]POST find Content-Length [16:20:07]Host: 172.17.63.131:8080 [16:20:07]Content-Length: 676 [16:20:07]Content-Type: application/json [16:20:07] [16:20:07]POST finish read [16:20:07]Found Content-Length = 676 [16:20:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:07]execute_script... [16:20:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:07]POST & json_proto [16:20:07]process_json_proto [16:20:07]json parsed OK: [16:20:07]protocol is kg_v1.0 [16:20:07]action value=close_receipt [16:20:07]process_action close_receipt [16:20:07]cmd_close_receipt [16:20:07]MH_GetDate [16:20:07]Write to MH i2c: F0 00 00 AC 5C F7 [16:20:07]Write i2c OK [16:20:07]MH_I2C_Read... [16:20:07]Read from MH i2c: F0 [16:20:07]MH_I2C_Read... [16:20:07]Read from MH i2c: F0 09 00 [16:20:07]MH_I2C_Read... [16:20:07]Read from MH i2c: F0 09 00 AC 5C 00 BD B9 1F 67 22 05 6E 64 F5 [16:20:07]GetLastDocTimeStamp 1730132256 [16:20:07]current date 1730132413 [16:20:07]FM_GetShiftState [16:20:07]SAM_PROTO_GetShiftState [16:20:07]wFMCommunicate request_size=4 [16:20:07]MH_SAM_APDU [16:20:07]CAPDU: 80 13 01 00 [16:20:07]Write to MH i2c: E2 08 00 AD 5C 80 13 01 00 00 00 00 00 86 [16:20:07]Write i2c OK [16:20:07]MH_I2C_Read... [16:20:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:07]Read from MH i2c: E2 [16:20:07]MH_I2C_Read... [16:20:07]Read from MH i2c: E2 0E 00 [16:20:07]MH_I2C_Read... [16:20:07]Read from MH i2c: E2 0E 00 AD 5C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D6 [16:20:07]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:20:07]wFMCommunicate OK [16:20:07]SAM_PROTO_GetShiftState done [16:20:07]FM_GetShiftState done [16:20:07]opened in 1730075620 [16:20:07]opened+sec_in_day 1730162020 [16:20:07]quantity*price = 20003 [16:20:07]sum+1 = 20004 [16:20:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 217 28.10.2024 16:20 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192669 ФПД: 137421289080414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T162013&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192669&fm=137421289080414&tin=02508201610067®Number=0000000000091776&sum=20000 [16:20:08]StoreToDocumentArchive [16:20:08]shift 543 fd 192669 [16:20:08]save to /storage/0543/doc_00192669 [16:20:08]save last doc name /storage/0543/doc_00192669 to /storage/kkm_last_doc_name [16:20:08]save OK [16:20:08]Clear old archive folders... [16:20:08]OFD Sender: No OFD packet to send [16:20:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:20:08]tlvbuf is 01B50FF0 [16:20:08]SAM_PROTO_ClearQueue [16:20:08]wFMCommunicate request_size=4 [16:20:08]MH_SAM_APDU [16:20:08]CAPDU: 80 09 00 00 [16:20:08]Write to MH i2c: E2 08 00 BA 5C 80 09 00 00 00 00 00 00 88 [16:20:08]Write i2c OK [16:20:08]MH_I2C_Read... [16:20:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:08]Read from MH i2c: E2 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 03 00 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 03 00 BA 5C 00 90 00 8A [16:20:08]RAPDU: 90 00 [16:20:08]wFMCommunicate OK [16:20:08]SAM_PROTO_ClearQueue done [16:20:08]KKMCreateOFDPacket [16:20:08]OFDProtocolAddRootSTLVToBuf [16:20:08]FM_MakeSignedData [16:20:08]FM_MakeSignedData [16:20:08]SAM_PROTO_SignData [16:20:08]wFMCommunicate request_size=4 [16:20:08]MH_SAM_APDU [16:20:08]CAPDU: 80 0D 01 02 [16:20:08]Write to MH i2c: E2 08 00 BB 5C 80 0D 01 02 00 00 00 00 90 [16:20:08]Write i2c OK [16:20:08]MH_I2C_Read... [16:20:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:08]Read from MH i2c: E2 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 03 00 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 03 00 BB 5C 00 90 00 8B [16:20:08]RAPDU: 90 00 [16:20:08]wFMCommunicate OK [16:20:08]wFMCommunicate request_size=255 [16:20:08]MH_SAM_APDU [16:20:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 BD B9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D F0 02 00 35 04 06 00 7C [16:20:08]Write to MH i2c: E2 02 01 BC 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 BD B9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D F0 02 00 35 04 06 00 7C 00 00 E7 [16:20:08]Write i2c OK [16:20:08]MH_I2C_Read... [16:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:08]Read from MH i2c: E2 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 03 00 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 03 00 BC 5C 00 90 00 8C [16:20:08]RAPDU: 90 00 [16:20:08]wFMCommunicate OK [16:20:08]wFMCommunicate request_size=10 [16:20:08]MH_SAM_APDU [16:20:08]CAPDU: 80 0D 02 02 05 FB E3 1E C6 5E [16:20:08]Write to MH i2c: E2 0D 00 BD 5C 80 0D 02 02 05 00 FB E3 1E C6 5E 00 00 BD [16:20:08]Write i2c OK [16:20:08]MH_I2C_Read... [16:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:08]Read from MH i2c: E2 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 03 00 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 03 00 BD 5C 00 90 00 8D [16:20:08]RAPDU: 90 00 [16:20:08]wFMCommunicate OK [16:20:08]wFMCommunicate request_size=4 [16:20:08]MH_SAM_APDU [16:20:08]CAPDU: 80 0D 03 02 [16:20:08]Write to MH i2c: E2 08 00 BE 5C 80 0D 03 02 00 00 00 00 95 [16:20:08]Write i2c OK [16:20:08]MH_I2C_Read... [16:20:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:08]Read from MH i2c: E2 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 0B 00 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 0B 00 BE 5C 00 AD 6D 96 CB 1A BA 77 61 90 00 BD [16:20:08]RAPDU: AD 6D 96 CB 1A BA 77 61 90 00 [16:20:08]wFMCommunicate OK [16:20:08]SAM_PROTO_SignData done [16:20:08]FM_MakeSignedData done [16:20:08]CreateOFDProtocolMessage [16:20:08]wFMCommunicate request_size=4 [16:20:08]MH_SAM_APDU [16:20:08]CAPDU: 80 11 00 00 [16:20:08]Write to MH i2c: E2 08 00 BF 5C 80 11 00 00 00 00 00 00 95 [16:20:08]Write i2c OK [16:20:08]MH_I2C_Read... [16:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:08]Read from MH i2c: E2 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 17 00 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: E2 17 00 BF 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E8 [16:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:20:08]wFMCommunicate OK [16:20:08]CreateOFDProtocolMessage done [16:20:08]OFDSenderStorePacket 192669 [16:20:08]StoreOFDPacket docnum=192669 [16:20:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C5 F1 07 01 2C 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 BD B9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D F0 02 00 35 04 06 00 7C FB E3 1E C6 5E AD 6D 96 CB 1A BA 77 61 [16:20:08]CheckFolder [16:20:08]dirname=/storage/ofd_packets [16:20:08]CheckFolder done [16:20:08]ProducePacketName [16:20:08]name=ofd_packets/00192669 [16:20:08]NVStorageSaveData ofd_packets/00192669 [16:20:08]File name is /storage/ofd_packets/00192669 [16:20:08]Write 301 bytes [16:20:08]NVStorageSaveData done [16:20:08]OFDSenderStorePacket done [16:20:08]KKMCreateOFDPacket done [16:20:08]NVStorageSaveData kkm_last_timestamp [16:20:08]File name is /storage/kkm_last_timestamp [16:20:08]Write 4 bytes [16:20:08]NVStorageSaveData done [16:20:08]ExternCall_PrintAddStr [16:20:08]wPrintStart [16:20:08]Write to MH i2c: 01 00 00 C0 5C 1C [16:20:08]Write i2c OK [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: 01 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: 01 07 00 [16:20:08]MH_I2C_Read... [16:20:08]Read from MH i2c: 01 07 00 C0 5C 00 00 00 00 00 FF 0F 31 [16:20:08]RasterBufferAndPrint [16:20:08]line Счет N : (1)31996 [16:20:08]line ИНН: 02508201610067 [16:20:08]line Контрольно-Кассовый Чек [16:20:08]line ПРОДАЖА [16:20:08]line ТРК (МРК, ГНК) : 12 [16:20:08]line Товар: 2710124130 [16:20:08]line Аи-92-К-5 [16:20:08]line 2.990 * 66.90 [16:20:08]line = 200.03 [16:20:08]line НДС 12% НСП 1% [16:20:08]line > о реализуемом товаре [16:20:08]line ОКРУГЛЕНИЕ: -0.03 [16:20:08]line ИТОГО: 200.00 [16:20:08]line Внесено: 200.00 [16:20:08]line СДАЧА: 0.00 [16:20:08]line НСП 1% : 1.77 [16:20:08]line НДС 12% : 21.24 [16:20:08]line Наличными: 200.00 [16:20:08]line Безнал.: 0.00 [16:20:08]line Место: АЗС № 170 "Партнер Нефть" [16:20:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:20:08]line СНО: Общий режим [16:20:08]line Чек 217 28.10.2024 16:20 [16:20:08]line Смена: 543 ФФД: 1.0 [16:20:08]line ЗНМ: 0300000110 [16:20:08]line РНМ: 0000000000091776 [16:20:08]line Версия ККМ: 001 [16:20:08]line ФМ: 0000000000871754 [16:20:08]line ФД: 192669 [16:20:08]line ФПД: 137421289080414 [16:20:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T162013&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192669&fm=137421289080414&tin=02508201610067®Number=0000000000091776&sum=20000 [16:20:09]OFD Sender: Processing packet 192669 [packets to send 75, broken 74] [16:20:09]ProducePacketName [16:20:09]name=ofd_packets/00192669 [16:20:09]OFD Sender: To server: pG, [16:20:09]CommunicateWithHost lk.salyk.kg:30040 [16:20:09]ConnectInit lk.salyk.kg [16:20:09]written 0, free lines is 4095 [16:20:09]Connected sock=10 [16:20:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C5 F1 07 01 2C 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 BD B9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D F0 02 00 35 04 06 00 7C FB E3 1E C6 5E AD 6D 96 CB 1A BA 77 61 [16:20:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BF AC 47 00 74 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D F0 02 00 F4 03 04 00 80 5E 1F 67 B6 04 01 00 00 E4 8B 8A 11 6C 42 71 28 [16:20:09]CommunicateWithHost err = 0 [16:20:09]CheckOFDResponse [16:20:09]1017 (14) - 77093643461234 [16:20:09]1041 (16) - 0000000000871754 [16:20:09]1040 (4) - 192669 [16:20:09]1012 (4) - 28.10.2024 09:50 [16:20:09]1206 (1) - 0 [16:20:09]OFD Sender: Remove packet 192669 [16:20:09]ProducePacketName [16:20:09]name=ofd_packets/00192669 [16:20:09]NVStorageDeleteData [16:20:09]Write to MH i2c: 01 00 00 EB 5C 47 [16:20:09]Write i2c OK [16:20:09]MH_I2C_Read... [16:20:09]Read from MH i2c: 01 [16:20:09]MH_I2C_Read... [16:20:09]Read from MH i2c: 01 07 00 [16:20:09]MH_I2C_Read... [16:20:09]Read from MH i2c: 01 07 00 EB 5C 00 00 00 00 00 BB 0C 15 [16:20:09]RasterBufferAndPrint [16:20:09]line [16:20:09]line [16:20:09]line [16:20:09]line [16:20:09]line [16:20:09]written 0, free lines is 3267 [16:20:09]MH_Cut [16:20:09]Write to MH i2c: D1 01 00 F2 5C 01 20 [16:20:09]Write i2c OK [16:20:09]MH_I2C_Read... [16:20:09]Read from MH i2c: D1 [16:20:09]MH_I2C_Read... [16:20:09]Read from MH i2c: D1 01 00 [16:20:09]MH_I2C_Read... [16:20:09]Read from MH i2c: D1 01 00 F2 5C 00 1F [16:20:09]Write to MH i2c: 01 00 00 F3 5C 4F [16:20:09]Write i2c OK [16:20:09]MH_I2C_Read... [16:20:09]OFD Sender: No OFD packet to send [16:20:10]*** Cut start [16:20:10]*** Partial cut [16:20:10]*** CUTSNS_PIN = 1 [16:20:10]*** CUTSNS_PIN = 0 [16:20:10]*** Brake cut motor [16:20:11]Read from MH i2c: 01 [16:20:11]MH_I2C_Read... [16:20:11]*** Stop cut motor [16:20:11]*** Cut end [16:20:11]Read from MH i2c: 01 07 00 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: 01 07 00 F3 5C 00 00 00 00 00 FF 0F 64 [16:20:11]process_action close_receipt done [16:20:11]requested_data is exist [16:20:11]produce_requested_data [16:20:11]requested_item fm.sn is exist - process it [16:20:11]wFMCommunicate request_size=4 [16:20:11]MH_SAM_APDU [16:20:11]CAPDU: 80 11 00 00 [16:20:11]Write to MH i2c: E2 08 00 F4 5C 80 11 00 00 00 00 00 00 CA [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:11]Read from MH i2c: E2 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: E2 17 00 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: E2 17 00 F4 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1D [16:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:20:11]wFMCommunicate OK [16:20:11]requested_item fd.num is exist - process it [16:20:11]SAM_PROTO_GetFieldsCounters [16:20:11]wFMCommunicate request_size=4 [16:20:11]MH_SAM_APDU [16:20:11]CAPDU: 80 13 00 00 [16:20:11]Write to MH i2c: E2 08 00 F5 5C 80 13 00 00 00 00 00 00 CD [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:11]Read from MH i2c: E2 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: E2 62 00 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: E2 62 00 F5 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [16:20:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9D F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:11]wFMCommunicate OK [16:20:11]SAM_PROTO_GetFieldsCounters done [16:20:11]requested_item shift.num is exist - process it [16:20:11]requested_item shift.opened is exist - process it [16:20:11]req_shift_opened [16:20:11]FM_GetShiftState [16:20:11]SAM_PROTO_GetShiftState [16:20:11]wFMCommunicate request_size=4 [16:20:11]MH_SAM_APDU [16:20:11]CAPDU: 80 13 01 00 [16:20:11]Write to MH i2c: E2 08 00 F6 5C 80 13 01 00 00 00 00 00 CF [16:20:11]Write i2c OK [16:20:11]MH_I2C_Read... [16:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:11]Read from MH i2c: E2 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: E2 0E 00 [16:20:11]MH_I2C_Read... [16:20:11]Read from MH i2c: E2 0E 00 F6 5C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1F [16:20:11]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:20:11]wFMCommunicate OK [16:20:11]SAM_PROTO_GetShiftState done [16:20:11]FM_GetShiftState done [16:20:11]req_shift_opened done [16:20:11]requested_item shift.open_date is exist - process it [16:20:11]req_shift_open_date [16:20:11]req_shift_open_date done [16:20:11]produce_requested_data done [16:20:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192669,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:20:11]process_action_free close_receipt [16:20:11]json_value_free [16:20:11]json_value_free done [16:20:11]process_json_proto returns [16:20:11]Send response to host [16:20:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192669,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:20:11]free response buf [16:20:11]execute_script done [16:20:11]execute_script returns [16:20:11]free content buf [16:20:11]Sock 7.Close socket [16:20:11]Sock 7.Thread stoped [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]accept exits with 9 [16:21:55]New connection [16:21:55]New thread 3066563940 created [16:21:55]Thread 3066707300 joined [16:21:55]Waiting for new connection... [16:21:55] Sock 9.Parse request [16:21:55]Sock 9.Check first char [16:21:55]Sock 9.First char is OK [16:21:55]request: POST /json_proto HTTP/1.0 [16:21:55]Method: POST [16:21:55]URL: /json_proto [16:21:55]Method is POST - this is cgi request [16:21:55]url: /json_proto [16:21:55]query_string will be loaded in cgi processing [16:21:55]execute_cgi json_proto POST (null) [16:21:55]execute_cgi path=json_proto method=POST [16:21:55]POST find Content-Length [16:21:55]Host: 172.17.63.131:8080 [16:21:55]Content-Length: 676 [16:21:55]Content-Type: application/json [16:21:55] [16:21:55]POST finish read [16:21:55]Found Content-Length = 676 [16:21:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:55]execute_script... [16:21:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:55]POST & json_proto [16:21:55]process_json_proto [16:21:55]json parsed OK: [16:21:55]protocol is kg_v1.0 [16:21:55]action value=close_receipt [16:21:55]process_action close_receipt [16:21:55]cmd_close_receipt [16:21:55]MH_GetDate [16:21:55]Write to MH i2c: F0 00 00 F7 5C 42 [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: F0 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: F0 09 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: F0 09 00 F7 5C 00 29 BA 1F 67 22 05 6E 64 AD [16:21:55]GetLastDocTimeStamp 1730132413 [16:21:55]current date 1730132521 [16:21:55]FM_GetShiftState [16:21:55]SAM_PROTO_GetShiftState [16:21:55]wFMCommunicate request_size=4 [16:21:55]MH_SAM_APDU [16:21:55]CAPDU: 80 13 01 00 [16:21:55]Write to MH i2c: E2 08 00 F8 5C 80 13 01 00 00 00 00 00 D1 [16:21:55]Write i2c OK [16:21:55]MH_I2C_Read... [16:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:55]Read from MH i2c: E2 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 0E 00 [16:21:55]MH_I2C_Read... [16:21:55]Read from MH i2c: E2 0E 00 F8 5C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 21 [16:21:55]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:21:55]wFMCommunicate OK [16:21:55]SAM_PROTO_GetShiftState done [16:21:55]FM_GetShiftState done [16:21:55]opened in 1730075620 [16:21:55]opened+sec_in_day 1730162020 [16:21:55]quantity*price = 50041 [16:21:55]sum+1 = 50042 [16:21:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 218 28.10.2024 16:22 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192670 ФПД: 205926409136403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T162201&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192670&fm=205926409136403&tin=02508201610067®Number=0000000000091776&sum=50000 [16:21:56]StoreToDocumentArchive [16:21:56]shift 543 fd 192670 [16:21:56]save to /storage/0543/doc_00192670 [16:21:56]save last doc name /storage/0543/doc_00192670 to /storage/kkm_last_doc_name [16:21:56]save OK [16:21:56]Clear old archive folders... [16:21:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:56]tlvbuf is 01B41040 [16:21:56]SAM_PROTO_ClearQueue [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 09 00 00 [16:21:56]Write to MH i2c: E2 08 00 05 5D 80 09 00 00 00 00 00 00 D4 [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 05 5D 00 90 00 D6 [16:21:56]RAPDU: 90 00 [16:21:56]wFMCommunicate OK [16:21:56]SAM_PROTO_ClearQueue done [16:21:56]KKMCreateOFDPacket [16:21:56]OFDProtocolAddRootSTLVToBuf [16:21:56]FM_MakeSignedData [16:21:56]FM_MakeSignedData [16:21:56]SAM_PROTO_SignData [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 0D 01 02 [16:21:56]Write to MH i2c: E2 08 00 06 5D 80 0D 01 02 00 00 00 00 DC [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 06 5D 00 90 00 D7 [16:21:56]RAPDU: 90 00 [16:21:56]wFMCommunicate OK [16:21:56]wFMCommunicate request_size=255 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 29 BA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E F0 02 00 35 04 06 00 BB [16:21:56]Write to MH i2c: E2 02 01 07 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 29 BA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E F0 02 00 35 04 06 00 BB 00 00 1F [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 07 5D 00 90 00 D8 [16:21:56]RAPDU: 90 00 [16:21:56]wFMCommunicate OK [16:21:56]wFMCommunicate request_size=10 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 0D 02 02 05 49 FA 77 69 13 [16:21:56]Write to MH i2c: E2 0D 00 08 5D 80 0D 02 02 05 00 49 FA 77 69 13 00 00 1F [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 03 00 08 5D 00 90 00 D9 [16:21:56]RAPDU: 90 00 [16:21:56]wFMCommunicate OK [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 0D 03 02 [16:21:56]Write to MH i2c: E2 08 00 09 5D 80 0D 03 02 00 00 00 00 E1 [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 0B 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 0B 00 09 5D 00 5A A5 D3 3F 90 CB 56 5C 90 00 00 [16:21:56]RAPDU: 5A A5 D3 3F 90 CB 56 5C 90 00 [16:21:56]wFMCommunicate OK [16:21:56]SAM_PROTO_SignData done [16:21:56]FM_MakeSignedData done [16:21:56]CreateOFDProtocolMessage [16:21:56]wFMCommunicate request_size=4 [16:21:56]MH_SAM_APDU [16:21:56]CAPDU: 80 11 00 00 [16:21:56]Write to MH i2c: E2 08 00 0A 5D 80 11 00 00 00 00 00 00 E1 [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:56]Read from MH i2c: E2 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 17 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: E2 17 00 0A 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 34 [16:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:21:56]wFMCommunicate OK [16:21:56]CreateOFDProtocolMessage done [16:21:56]OFDSenderStorePacket 192670 [16:21:56]StoreOFDPacket docnum=192670 [16:21:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EE AB 07 01 B6 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 29 BA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E F0 02 00 35 04 06 00 BB 49 FA 77 69 13 5A A5 D3 3F 90 CB 56 5C [16:21:56]CheckFolder [16:21:56]dirname=/storage/ofd_packets [16:21:56]CheckFolder done [16:21:56]ProducePacketName [16:21:56]name=ofd_packets/00192670 [16:21:56]NVStorageSaveData ofd_packets/00192670 [16:21:56]File name is /storage/ofd_packets/00192670 [16:21:56]Write 301 bytes [16:21:56]NVStorageSaveData done [16:21:56]OFDSenderStorePacket done [16:21:56]KKMCreateOFDPacket done [16:21:56]NVStorageSaveData kkm_last_timestamp [16:21:56]File name is /storage/kkm_last_timestamp [16:21:56]Write 4 bytes [16:21:56]NVStorageSaveData done [16:21:56]ExternCall_PrintAddStr [16:21:56]wPrintStart [16:21:56]Write to MH i2c: 01 00 00 0B 5D 68 [16:21:56]Write i2c OK [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: 01 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: 01 07 00 [16:21:56]MH_I2C_Read... [16:21:56]Read from MH i2c: 01 07 00 0B 5D 00 00 00 00 00 FF 0F 7D [16:21:56]RasterBufferAndPrint [16:21:56]line Счет N : (1)31997 [16:21:56]line ИНН: 02508201610067 [16:21:56]line Контрольно-Кассовый Чек [16:21:56]line ПРОДАЖА [16:21:56]line ТРК (МРК, ГНК) : 12 [16:21:56]line Товар: 2710124130 [16:21:56]line Аи-92-К-5 [16:21:56]line 7.480 * 66.90 [16:21:56]line = 500.41 [16:21:56]line НДС 12% НСП 1% [16:21:56]line > о реализуемом товаре [16:21:56]line ОКРУГЛЕНИЕ: -0.41 [16:21:56]line ИТОГО: 500.00 [16:21:56]line Внесено: 500.00 [16:21:56]line СДАЧА: 0.00 [16:21:56]line НСП 1% : 4.43 [16:21:56]line НДС 12% : 53.14 [16:21:56]line Наличными: 500.00 [16:21:56]line Безнал.: 0.00 [16:21:56]line Место: АЗС № 170 "Партнер Нефть" [16:21:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:21:56]line СНО: Общий режим [16:21:56]line Чек 218 28.10.2024 16:22 [16:21:56]line Смена: 543 ФФД: 1.0 [16:21:56]line ЗНМ: 0300000110 [16:21:56]line РНМ: 0000000000091776 [16:21:56]line Версия ККМ: 001 [16:21:56]line ФМ: 0000000000871754 [16:21:56]line ФД: 192670 [16:21:56]line ФПД: 205926409136403 [16:21:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T162201&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192670&fm=205926409136403&tin=02508201610067®Number=0000000000091776&sum=50000 [16:21:57]OFD Sender: Processing packet 192670 [packets to send 75, broken 74] [16:21:57]ProducePacketName [16:21:57]name=ofd_packets/00192670 [16:21:57]OFD Sender: To server: pG, [16:21:57]CommunicateWithHost lk.salyk.kg:30040 [16:21:57]ConnectInit lk.salyk.kg [16:21:57]written 0, free lines is 4095 [16:21:57]Connected sock=10 [16:21:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EE AB 07 01 B6 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 29 BA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E F0 02 00 35 04 06 00 BB 49 FA 77 69 13 5A A5 D3 3F 90 CB 56 5C [16:21:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8B 37 47 00 47 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E F0 02 00 F4 03 04 00 EC 5E 1F 67 B6 04 01 00 00 E7 A7 91 EF D5 0B 98 F4 [16:21:57]CommunicateWithHost err = 0 [16:21:57]CheckOFDResponse [16:21:57]1017 (14) - 77093643461234 [16:21:57]1041 (16) - 0000000000871754 [16:21:57]1040 (4) - 192670 [16:21:57]1012 (4) - 28.10.2024 09:52 [16:21:57]1206 (1) - 0 [16:21:57]OFD Sender: Remove packet 192670 [16:21:57]ProducePacketName [16:21:57]name=ofd_packets/00192670 [16:21:57]NVStorageDeleteData [16:21:57]Write to MH i2c: 01 00 00 36 5D 93 [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: 01 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: 01 07 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: 01 07 00 36 5D 00 00 00 00 00 BC 0C 62 [16:21:57]RasterBufferAndPrint [16:21:57]line [16:21:57]line [16:21:57]line [16:21:57]line [16:21:57]line [16:21:57]written 0, free lines is 3268 [16:21:57]MH_Cut [16:21:57]Write to MH i2c: D1 01 00 3D 5D 01 6C [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: D1 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: D1 01 00 [16:21:57]MH_I2C_Read... [16:21:57]Read from MH i2c: D1 01 00 3D 5D 00 6B [16:21:57]Write to MH i2c: 01 00 00 3E 5D 9B [16:21:57]Write i2c OK [16:21:57]MH_I2C_Read... [16:21:57]OFD Sender: No OFD packet to send [16:21:58]*** Cut start [16:21:58]*** Partial cut [16:21:58]*** CUTSNS_PIN = 1 [16:21:58]*** CUTSNS_PIN = 0 [16:21:58]*** Brake cut motor [16:21:58]Read from MH i2c: 01 [16:21:58]MH_I2C_Read... [16:21:58]*** Stop cut motor [16:21:59]*** Cut end [16:21:59]Read from MH i2c: 01 07 00 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: 01 07 00 3E 5D 00 00 00 00 00 FF 0F B0 [16:21:59]process_action close_receipt done [16:21:59]requested_data is exist [16:21:59]produce_requested_data [16:21:59]requested_item fm.sn is exist - process it [16:21:59]wFMCommunicate request_size=4 [16:21:59]MH_SAM_APDU [16:21:59]CAPDU: 80 11 00 00 [16:21:59]Write to MH i2c: E2 08 00 3F 5D 80 11 00 00 00 00 00 00 16 [16:21:59]Write i2c OK [16:21:59]MH_I2C_Read... [16:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:59]Read from MH i2c: E2 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: E2 17 00 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: E2 17 00 3F 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [16:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:21:59]wFMCommunicate OK [16:21:59]requested_item fd.num is exist - process it [16:21:59]SAM_PROTO_GetFieldsCounters [16:21:59]wFMCommunicate request_size=4 [16:21:59]MH_SAM_APDU [16:21:59]CAPDU: 80 13 00 00 [16:21:59]Write to MH i2c: E2 08 00 40 5D 80 13 00 00 00 00 00 00 19 [16:21:59]Write i2c OK [16:21:59]MH_I2C_Read... [16:21:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:59]Read from MH i2c: E2 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: E2 62 00 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: E2 62 00 40 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [16:21:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9E F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:59]wFMCommunicate OK [16:21:59]SAM_PROTO_GetFieldsCounters done [16:21:59]requested_item shift.num is exist - process it [16:21:59]requested_item shift.opened is exist - process it [16:21:59]req_shift_opened [16:21:59]FM_GetShiftState [16:21:59]SAM_PROTO_GetShiftState [16:21:59]wFMCommunicate request_size=4 [16:21:59]MH_SAM_APDU [16:21:59]CAPDU: 80 13 01 00 [16:21:59]Write to MH i2c: E2 08 00 41 5D 80 13 01 00 00 00 00 00 1B [16:21:59]Write i2c OK [16:21:59]MH_I2C_Read... [16:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:59]Read from MH i2c: E2 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: E2 0E 00 [16:21:59]MH_I2C_Read... [16:21:59]Read from MH i2c: E2 0E 00 41 5D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 6B [16:21:59]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:21:59]wFMCommunicate OK [16:21:59]SAM_PROTO_GetShiftState done [16:21:59]FM_GetShiftState done [16:21:59]req_shift_opened done [16:21:59]requested_item shift.open_date is exist - process it [16:21:59]req_shift_open_date [16:21:59]req_shift_open_date done [16:21:59]produce_requested_data done [16:21:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192670,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:21:59]process_action_free close_receipt [16:21:59]json_value_free [16:21:59]json_value_free done [16:21:59]process_json_proto returns [16:21:59]Send response to host [16:21:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192670,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:21:59]free response buf [16:21:59]execute_script done [16:21:59]execute_script returns [16:21:59]free content buf [16:21:59]Sock 9.Close socket [16:21:59]Sock 9.Thread stoped [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:41]accept exits with 7 [16:23:41]New connection [16:23:41]New thread 3066707300 created [16:23:41]Thread 3066563940 joined [16:23:41]Waiting for new connection... [16:23:41] Sock 7.Parse request [16:23:41]Sock 7.Check first char [16:23:41]Sock 7.First char is OK [16:23:41]request: POST /json_proto HTTP/1.0 [16:23:41]Method: POST [16:23:41]URL: /json_proto [16:23:41]Method is POST - this is cgi request [16:23:41]url: /json_proto [16:23:41]query_string will be loaded in cgi processing [16:23:41]execute_cgi json_proto POST (null) [16:23:41]execute_cgi path=json_proto method=POST [16:23:41]POST find Content-Length [16:23:41]Host: 172.17.63.131:8080 [16:23:41]Content-Length: 676 [16:23:41]Content-Type: application/json [16:23:41] [16:23:41]POST finish read [16:23:41]Found Content-Length = 676 [16:23:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:41]execute_script... [16:23:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:41]POST & json_proto [16:23:41]process_json_proto [16:23:41]json parsed OK: [16:23:41]protocol is kg_v1.0 [16:23:41]action value=close_receipt [16:23:41]process_action close_receipt [16:23:41]cmd_close_receipt [16:23:41]MH_GetDate [16:23:41]Write to MH i2c: F0 00 00 42 5D 8E [16:23:41]Write i2c OK [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: F0 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: F0 09 00 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: F0 09 00 42 5D 00 93 BA 1F 67 22 05 6E 64 63 [16:23:41]GetLastDocTimeStamp 1730132521 [16:23:41]current date 1730132627 [16:23:41]FM_GetShiftState [16:23:41]SAM_PROTO_GetShiftState [16:23:41]wFMCommunicate request_size=4 [16:23:41]MH_SAM_APDU [16:23:41]CAPDU: 80 13 01 00 [16:23:41]Write to MH i2c: E2 08 00 43 5D 80 13 01 00 00 00 00 00 1D [16:23:41]Write i2c OK [16:23:41]MH_I2C_Read... [16:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:41]Read from MH i2c: E2 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 0E 00 [16:23:41]MH_I2C_Read... [16:23:41]Read from MH i2c: E2 0E 00 43 5D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 6D [16:23:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:23:41]wFMCommunicate OK [16:23:41]SAM_PROTO_GetShiftState done [16:23:41]FM_GetShiftState done [16:23:41]opened in 1730075620 [16:23:41]opened+sec_in_day 1730162020 [16:23:41]quantity*price = 60009 [16:23:41]sum+1 = 60010 [16:23:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 219 28.10.2024 16:23 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192671 ФПД: 203153288304396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T162347&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192671&fm=203153288304396&tin=02508201610067®Number=0000000000091776&sum=60000 [16:23:42]StoreToDocumentArchive [16:23:42]shift 543 fd 192671 [16:23:42]save to /storage/0543/doc_00192671 [16:23:42]save last doc name /storage/0543/doc_00192671 to /storage/kkm_last_doc_name [16:23:42]save OK [16:23:42]Clear old archive folders... [16:23:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:42]tlvbuf is B6D6C010 [16:23:42]SAM_PROTO_ClearQueue [16:23:42]wFMCommunicate request_size=4 [16:23:42]MH_SAM_APDU [16:23:42]CAPDU: 80 09 00 00 [16:23:42]Write to MH i2c: E2 08 00 50 5D 80 09 00 00 00 00 00 00 1F [16:23:42]Write i2c OK [16:23:42]MH_I2C_Read... [16:23:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:42]Read from MH i2c: E2 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: E2 03 00 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: E2 03 00 50 5D 00 90 00 21 [16:23:42]RAPDU: 90 00 [16:23:42]wFMCommunicate OK [16:23:42]SAM_PROTO_ClearQueue done [16:23:42]KKMCreateOFDPacket [16:23:42]OFDProtocolAddRootSTLVToBuf [16:23:42]FM_MakeSignedData [16:23:42]FM_MakeSignedData [16:23:42]SAM_PROTO_SignData [16:23:42]wFMCommunicate request_size=4 [16:23:42]MH_SAM_APDU [16:23:42]CAPDU: 80 0D 01 02 [16:23:42]Write to MH i2c: E2 08 00 51 5D 80 0D 01 02 00 00 00 00 27 [16:23:42]Write i2c OK [16:23:42]MH_I2C_Read... [16:23:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:42]Read from MH i2c: E2 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: E2 03 00 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: E2 03 00 51 5D 00 90 00 22 [16:23:42]RAPDU: 90 00 [16:23:42]wFMCommunicate OK [16:23:42]wFMCommunicate request_size=255 [16:23:42]MH_SAM_APDU [16:23: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 93 BA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F F0 02 00 35 04 06 00 B8 [16:23:42]Write to MH i2c: E2 02 01 52 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 93 BA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F F0 02 00 35 04 06 00 B8 00 00 B0 [16:23:42]Write i2c OK [16:23:42]MH_I2C_Read... [16:23:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:43]OFD Sender: No OFD packet to send [16:23:43]Read from MH i2c: E2 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 03 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 03 00 52 5D 00 90 00 23 [16:23:43]RAPDU: 90 00 [16:23:43]wFMCommunicate OK [16:23:43]wFMCommunicate request_size=10 [16:23:43]MH_SAM_APDU [16:23:43]CAPDU: 80 0D 02 02 05 C4 4F 95 97 0C [16:23:43]Write to MH i2c: E2 0D 00 53 5D 80 0D 02 02 05 00 C4 4F 95 97 0C 00 00 7F [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:43]Read from MH i2c: E2 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 03 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 03 00 53 5D 00 90 00 24 [16:23:43]RAPDU: 90 00 [16:23:43]wFMCommunicate OK [16:23:43]wFMCommunicate request_size=4 [16:23:43]MH_SAM_APDU [16:23:43]CAPDU: 80 0D 03 02 [16:23:43]Write to MH i2c: E2 08 00 54 5D 80 0D 03 02 00 00 00 00 2C [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:43]Read from MH i2c: E2 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 0B 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 0B 00 54 5D 00 AF F7 C1 B6 8D 1E 2F 00 90 00 24 [16:23:43]RAPDU: AF F7 C1 B6 8D 1E 2F 00 90 00 [16:23:43]wFMCommunicate OK [16:23:43]SAM_PROTO_SignData done [16:23:43]FM_MakeSignedData done [16:23:43]CreateOFDProtocolMessage [16:23:43]wFMCommunicate request_size=4 [16:23:43]MH_SAM_APDU [16:23:43]CAPDU: 80 11 00 00 [16:23:43]Write to MH i2c: E2 08 00 55 5D 80 11 00 00 00 00 00 00 2C [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:43]Read from MH i2c: E2 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 17 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 17 00 55 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [16:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:23:43]wFMCommunicate OK [16:23:43]CreateOFDProtocolMessage done [16:23:43]OFDSenderStorePacket 192671 [16:23:43]StoreOFDPacket docnum=192671 [16:23:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB AB 07 01 B5 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 93 BA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F F0 02 00 35 04 06 00 B8 C4 4F 95 97 0C AF F7 C1 B6 8D 1E 2F 00 [16:23:43]CheckFolder [16:23:43]dirname=/storage/ofd_packets [16:23:43]CheckFolder done [16:23:43]ProducePacketName [16:23:43]name=ofd_packets/00192671 [16:23:43]NVStorageSaveData ofd_packets/00192671 [16:23:43]File name is /storage/ofd_packets/00192671 [16:23:43]Write 301 bytes [16:23:43]NVStorageSaveData done [16:23:43]OFDSenderStorePacket done [16:23:43]KKMCreateOFDPacket done [16:23:43]NVStorageSaveData kkm_last_timestamp [16:23:43]File name is /storage/kkm_last_timestamp [16:23:43]Write 4 bytes [16:23:43]NVStorageSaveData done [16:23:43]ExternCall_PrintAddStr [16:23:43]wPrintStart [16:23:43]Write to MH i2c: 01 00 00 56 5D B3 [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: 01 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: 01 07 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: 01 07 00 56 5D 00 00 00 00 00 FF 0F C8 [16:23:43]RasterBufferAndPrint [16:23:43]line Счет N : (1)31998 [16:23:43]line ИНН: 02508201610067 [16:23:43]line Контрольно-Кассовый Чек [16:23:43]line ПРОДАЖА [16:23:43]line ТРК (МРК, ГНК) : 12 [16:23:43]line Товар: 2710124130 [16:23:43]line Аи-92-К-5 [16:23:43]line 8.970 * 66.90 [16:23:43]line = 600.09 [16:23:43]line НДС 12% НСП 1% [16:23:43]line > о реализуемом товаре [16:23:43]line ОКРУГЛЕНИЕ: -0.09 [16:23:43]line ИТОГО: 600.00 [16:23:43]line Внесено: 600.00 [16:23:43]line СДАЧА: 0.00 [16:23:43]line НСП 1% : 5.31 [16:23:43]line НДС 12% : 63.73 [16:23:43]line Наличными: 600.00 [16:23:43]line Безнал.: 0.00 [16:23:43]line Место: АЗС № 170 "Партнер Нефть" [16:23:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:23:43]line СНО: Общий режим [16:23:43]line Чек 219 28.10.2024 16:23 [16:23:43]line Смена: 543 ФФД: 1.0 [16:23:43]line ЗНМ: 0300000110 [16:23:43]line РНМ: 0000000000091776 [16:23:43]line Версия ККМ: 001 [16:23:43]line ФМ: 0000000000871754 [16:23:43]line ФД: 192671 [16:23:43]line ФПД: 203153288304396 [16:23:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T162347&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192671&fm=203153288304396&tin=02508201610067®Number=0000000000091776&sum=60000 [16:23:43]OFD Sender: Processing packet 192671 [packets to send 75, broken 74] [16:23:43]ProducePacketName [16:23:43]name=ofd_packets/00192671 [16:23:43]OFD Sender: To server: pG, [16:23:43]CommunicateWithHost lk.salyk.kg:30040 [16:23:43]ConnectInit lk.salyk.kg [16:23:43]written 0, free lines is 4095 [16:23:43]Connected sock=9 [16:23:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB AB 07 01 B5 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 93 BA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F F0 02 00 35 04 06 00 B8 C4 4F 95 97 0C AF F7 C1 B6 8D 1E 2F 00 [16:23:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A0 62 47 00 BA EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F F0 02 00 F4 03 04 00 57 5F 1F 67 B6 04 01 00 00 4A 8C FC 2A 91 D1 13 54 [16:23:43]CommunicateWithHost err = 0 [16:23:43]CheckOFDResponse [16:23:43]1017 (14) - 77093643461234 [16:23:43]1041 (16) - 0000000000871754 [16:23:43]1040 (4) - 192671 [16:23:43]1012 (4) - 28.10.2024 09:54 [16:23:43]1206 (1) - 0 [16:23:43]OFD Sender: Remove packet 192671 [16:23:43]ProducePacketName [16:23:43]name=ofd_packets/00192671 [16:23:43]NVStorageDeleteData [16:23:44]Write to MH i2c: 01 00 00 81 5D DE [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: 01 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: 01 07 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: 01 07 00 81 5D 00 00 00 00 00 BB 0C AC [16:23:44]RasterBufferAndPrint [16:23:44]line [16:23:44]line [16:23:44]line [16:23:44]line [16:23:44]line [16:23:44]written 0, free lines is 3266 [16:23:44]MH_Cut [16:23:44]Write to MH i2c: D1 01 00 88 5D 01 B7 [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: D1 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: D1 01 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: D1 01 00 88 5D 00 B6 [16:23:44]Write to MH i2c: 01 00 00 89 5D E6 [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]OFD Sender: No OFD packet to send [16:23:44]*** Cut start [16:23:44]*** Partial cut [16:23:44]*** CUTSNS_PIN = 1 [16:23:44]*** CUTSNS_PIN = 0 [16:23:45]*** Brake cut motor [16:23:45]Read from MH i2c: 01 [16:23:45]MH_I2C_Read... [16:23:45]*** Stop cut motor [16:23:45]*** Cut end [16:23:45]Read from MH i2c: 01 07 00 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: 01 07 00 89 5D 00 00 00 00 00 FF 0F FB [16:23:45]process_action close_receipt done [16:23:45]requested_data is exist [16:23:45]produce_requested_data [16:23:45]requested_item fm.sn is exist - process it [16:23:45]wFMCommunicate request_size=4 [16:23:45]MH_SAM_APDU [16:23:45]CAPDU: 80 11 00 00 [16:23:45]Write to MH i2c: E2 08 00 8A 5D 80 11 00 00 00 00 00 00 61 [16:23:45]Write i2c OK [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 [16:23:45]MH_I2C_Read... [16:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:45]Read from MH i2c: E2 17 00 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 17 00 8A 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B4 [16:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:23:45]wFMCommunicate OK [16:23:45]requested_item fd.num is exist - process it [16:23:45]SAM_PROTO_GetFieldsCounters [16:23:45]wFMCommunicate request_size=4 [16:23:45]MH_SAM_APDU [16:23:45]CAPDU: 80 13 00 00 [16:23:45]Write to MH i2c: E2 08 00 8B 5D 80 13 00 00 00 00 00 00 64 [16:23:45]Write i2c OK [16:23:45]MH_I2C_Read... [16:23:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:45]Read from MH i2c: E2 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 62 00 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 62 00 8B 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [16:23:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9F F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:45]wFMCommunicate OK [16:23:45]SAM_PROTO_GetFieldsCounters done [16:23:45]requested_item shift.num is exist - process it [16:23:45]requested_item shift.opened is exist - process it [16:23:45]req_shift_opened [16:23:45]FM_GetShiftState [16:23:45]SAM_PROTO_GetShiftState [16:23:45]wFMCommunicate request_size=4 [16:23:45]MH_SAM_APDU [16:23:45]CAPDU: 80 13 01 00 [16:23:45]Write to MH i2c: E2 08 00 8C 5D 80 13 01 00 00 00 00 00 66 [16:23:45]Write i2c OK [16:23:45]MH_I2C_Read... [16:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:45]Read from MH i2c: E2 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 0E 00 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 0E 00 8C 5D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B6 [16:23:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:23:45]wFMCommunicate OK [16:23:45]SAM_PROTO_GetShiftState done [16:23:45]FM_GetShiftState done [16:23:45]req_shift_opened done [16:23:45]requested_item shift.open_date is exist - process it [16:23:45]req_shift_open_date [16:23:45]req_shift_open_date done [16:23:45]produce_requested_data done [16:23:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192671,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:23:45]process_action_free close_receipt [16:23:45]json_value_free [16:23:45]json_value_free done [16:23:45]process_json_proto returns [16:23:45]Send response to host [16:23:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192671,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:23:45]free response buf [16:23:45]execute_script done [16:23:45]execute_script returns [16:23:45]free content buf [16:23:45]Sock 7.Close socket [16:23:45]Sock 7.Thread stoped [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:02]accept exits with 10 [16:26:02]New connection [16:26:02]New thread 3066563940 created [16:26:02]Thread 3066707300 joined [16:26:02]Waiting for new connection... [16:26:02] Sock 10.Parse request [16:26:02]Sock 10.Check first char [16:26:02]Sock 10.First char is OK [16:26:02]request: POST /json_proto HTTP/1.0 [16:26:02]Method: POST [16:26:02]URL: /json_proto [16:26:02]Method is POST - this is cgi request [16:26:02]url: /json_proto [16:26:02]query_string will be loaded in cgi processing [16:26:02]execute_cgi json_proto POST (null) [16:26:02]execute_cgi path=json_proto method=POST [16:26:02]POST find Content-Length [16:26:02]Host: 172.17.63.131:8080 [16:26:02]Content-Length: 865 [16:26:02]Content-Type: application/json [16:26:02] [16:26:02]POST finish read [16:26:02]Found Content-Length = 865 [16:26:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:02]execute_script... [16:26:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:02]POST & json_proto [16:26:02]process_json_proto [16:26:02]json parsed OK: [16:26:02]protocol is kg_v1.0 [16:26:02]action value=close_receipt [16:26:02]process_action close_receipt [16:26:02]cmd_close_receipt [16:26:02]MH_GetDate [16:26:02]Write to MH i2c: F0 00 00 8D 5D D9 [16:26:02]Write i2c OK [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: F0 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: F0 09 00 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: F0 09 00 8D 5D 00 20 BB 1F 67 22 05 6E 64 3C [16:26:02]GetLastDocTimeStamp 1730132627 [16:26:02]current date 1730132768 [16:26:02]FM_GetShiftState [16:26:02]SAM_PROTO_GetShiftState [16:26:02]wFMCommunicate request_size=4 [16:26:02]MH_SAM_APDU [16:26:02]CAPDU: 80 13 01 00 [16:26:02]Write to MH i2c: E2 08 00 8E 5D 80 13 01 00 00 00 00 00 68 [16:26:02]Write i2c OK [16:26:02]MH_I2C_Read... [16:26:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:02]Read from MH i2c: E2 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 0E 00 [16:26:02]MH_I2C_Read... [16:26:02]Read from MH i2c: E2 0E 00 8E 5D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B8 [16:26:02]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:26:02]wFMCommunicate OK [16:26:02]SAM_PROTO_GetShiftState done [16:26:02]FM_GetShiftState done [16:26:02]opened in 1730075620 [16:26:02]opened+sec_in_day 1730162020 [16:26:02]quantity*price = 100015 [16:26:02]sum+1 = 100017 [16:26:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 220 28.10.2024 16:26 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192672 ФПД: 99398703108897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T162608&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192672&fm=99398703108897&tin=02508201610067®Number=0000000000091776&sum=100016 [16:26:03]StoreToDocumentArchive [16:26:03]shift 543 fd 192672 [16:26:03]save to /storage/0543/doc_00192672 [16:26:03]save last doc name /storage/0543/doc_00192672 to /storage/kkm_last_doc_name [16:26:03]save OK [16:26:03]Clear old archive folders... [16:26:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:26:03]tlvbuf is 01AC8560 [16:26:03]SAM_PROTO_ClearQueue [16:26:03]wFMCommunicate request_size=4 [16:26:03]MH_SAM_APDU [16:26:03]CAPDU: 80 09 00 00 [16:26:03]Write to MH i2c: E2 08 00 9B 5D 80 09 00 00 00 00 00 00 6A [16:26:03]Write i2c OK [16:26:03]MH_I2C_Read... [16:26:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:03]Read from MH i2c: E2 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: E2 03 00 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: E2 03 00 9B 5D 00 90 00 6C [16:26:03]RAPDU: 90 00 [16:26:03]wFMCommunicate OK [16:26:03]SAM_PROTO_ClearQueue done [16:26:03]KKMCreateOFDPacket [16:26:03]OFDProtocolAddRootSTLVToBuf [16:26:03]FM_MakeSignedData [16:26:03]FM_MakeSignedData [16:26:03]SAM_PROTO_SignData [16:26:03]wFMCommunicate request_size=4 [16:26:03]MH_SAM_APDU [16:26:03]CAPDU: 80 0D 01 02 [16:26:03]Write to MH i2c: E2 08 00 9C 5D 80 0D 01 02 00 00 00 00 72 [16:26:03]Write i2c OK [16:26:03]MH_I2C_Read... [16:26:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:03]Read from MH i2c: E2 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: E2 03 00 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: E2 03 00 9C 5D 00 90 00 6D [16:26:03]RAPDU: 90 00 [16:26:03]wFMCommunicate OK [16:26:03]wFMCommunicate request_size=255 [16:26:03]MH_SAM_APDU [16:26: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 20 BB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 F0 02 00 35 04 06 00 5A [16:26:03]Write to MH i2c: E2 02 01 9D 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 20 BB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 F0 02 00 35 04 06 00 5A 00 00 6A [16:26:03]Write i2c OK [16:26:03]MH_I2C_Read... [16:26:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:03]Read from MH i2c: E2 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: E2 03 00 [16:26:03]MH_I2C_Read... [16:26:03]Read from MH i2c: E2 03 00 9D 5D 00 90 00 6E [16:26:03]RAPDU: 90 00 [16:26:03]wFMCommunicate OK [16:26:03]wFMCommunicate request_size=10 [16:26:03]MH_SAM_APDU [16:26:03]CAPDU: 80 0D 02 02 05 67 10 63 D3 21 [16:26:03]Write to MH i2c: E2 0D 00 9E 5D 80 0D 02 02 05 00 67 10 63 D3 21 00 00 4D [16:26:03]Write i2c OK [16:26:03]MH_I2C_Read... [16:26:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:04]Read from MH i2c: E2 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 03 00 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 03 00 9E 5D 00 90 00 6F [16:26:04]RAPDU: 90 00 [16:26:04]wFMCommunicate OK [16:26:04]wFMCommunicate request_size=4 [16:26:04]MH_SAM_APDU [16:26:04]CAPDU: 80 0D 03 02 [16:26:04]Write to MH i2c: E2 08 00 9F 5D 80 0D 03 02 00 00 00 00 77 [16:26:04]Write i2c OK [16:26:04]MH_I2C_Read... [16:26:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:04]Read from MH i2c: E2 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 0B 00 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 0B 00 9F 5D 00 3B A7 22 55 AF 7A 26 AC 90 00 CC [16:26:04]RAPDU: 3B A7 22 55 AF 7A 26 AC 90 00 [16:26:04]wFMCommunicate OK [16:26:04]SAM_PROTO_SignData done [16:26:04]FM_MakeSignedData done [16:26:04]CreateOFDProtocolMessage [16:26:04]wFMCommunicate request_size=4 [16:26:04]MH_SAM_APDU [16:26:04]CAPDU: 80 11 00 00 [16:26:04]Write to MH i2c: E2 08 00 A0 5D 80 11 00 00 00 00 00 00 77 [16:26:04]Write i2c OK [16:26:04]MH_I2C_Read... [16:26:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:04]Read from MH i2c: E2 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 17 00 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: E2 17 00 A0 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [16:26:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:26:04]wFMCommunicate OK [16:26:04]CreateOFDProtocolMessage done [16:26:04]OFDSenderStorePacket 192672 [16:26:04]StoreOFDPacket docnum=192672 [16:26:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 ED 23 07 01 ED 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 20 BB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 F0 02 00 35 04 06 00 5A 67 10 63 D3 21 3B A7 22 55 AF 7A 26 AC [16:26:04]CheckFolder [16:26:04]dirname=/storage/ofd_packets [16:26:04]CheckFolder done [16:26:04]ProducePacketName [16:26:04]name=ofd_packets/00192672 [16:26:04]NVStorageSaveData ofd_packets/00192672 [16:26:04]File name is /storage/ofd_packets/00192672 [16:26:04]Write 301 bytes [16:26:04]NVStorageSaveData done [16:26:04]OFDSenderStorePacket done [16:26:04]KKMCreateOFDPacket done [16:26:04]NVStorageSaveData kkm_last_timestamp [16:26:04]File name is /storage/kkm_last_timestamp [16:26:04]Write 4 bytes [16:26:04]NVStorageSaveData done [16:26:04]ExternCall_PrintAddStr [16:26:04]wPrintStart [16:26:04]Write to MH i2c: 01 00 00 A1 5D FE [16:26:04]Write i2c OK [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: 01 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: 01 07 00 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: 01 07 00 A1 5D 00 00 00 00 00 FF 0F 13 [16:26:04]RasterBufferAndPrint [16:26:04]line Счет N : (1)31999 [16:26:04]line ИНН: 02508201610067 [16:26:04]line Контрольно-Кассовый Чек [16:26:04]line ПРОДАЖА [16:26:04]line ТРК (МРК, ГНК) : 21 [16:26:04]line Товар: 2710124130 [16:26:04]line Аи-92-К-5 [16:26:04]line 14.950 * 66.90 [16:26:04]line = 1000.16 [16:26:04]line НДС 12% НСП 1% [16:26:04]line > о реализуемом товаре [16:26:04]line ИТОГО: 1000.16 [16:26:04]line НСП 1% : 8.85 [16:26:04]line НДС 12% : 106.21 [16:26:04]line Наличными: 0.00 [16:26:04]line Безнал.: 1000.16 [16:26:04]line Место: АЗС № 170 "Партнер Нефть" [16:26:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:26:04]line СНО: Общий режим [16:26:04]line Чек 220 28.10.2024 16:26 [16:26:04]line Смена: 543 ФФД: 1.0 [16:26:04]line ЗНМ: 0300000110 [16:26:04]line РНМ: 0000000000091776 [16:26:04]line Версия ККМ: 001 [16:26:04]line Платежная система: Кыргызкоммерцбанк [16:26:04]line ФМ: 0000000000871754 [16:26:04]line ФД: 192672 [16:26:04]line ФПД: 99398703108897 [16:26:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T162608&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192672&fm=99398703108897&tin=02508201610067®Number=0000000000091776&sum=100016 [16:26:04]OFD Sender: Processing packet 192672 [packets to send 75, broken 74] [16:26:04]ProducePacketName [16:26:04]name=ofd_packets/00192672 [16:26:04]OFD Sender: To server: pG, [16:26:04]CommunicateWithHost lk.salyk.kg:30040 [16:26:04]ConnectInit lk.salyk.kg [16:26:04]written 0, free lines is 4095 [16:26:04]Connected sock=11 [16:26:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 ED 23 07 01 ED 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 20 BB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 F0 02 00 35 04 06 00 5A 67 10 63 D3 21 3B A7 22 55 AF 7A 26 AC [16:26:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D8 4F 47 00 8B C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 F0 02 00 F4 03 04 00 E4 5F 1F 67 B6 04 01 00 00 A1 81 8A BE 4C 0D 41 E0 [16:26:04]CommunicateWithHost err = 0 [16:26:04]CheckOFDResponse [16:26:04]1017 (14) - 77093643461234 [16:26:04]1041 (16) - 0000000000871754 [16:26:04]1040 (4) - 192672 [16:26:04]1012 (4) - 28.10.2024 09:56 [16:26:04]1206 (1) - 0 [16:26:04]OFD Sender: Remove packet 192672 [16:26:04]ProducePacketName [16:26:04]name=ofd_packets/00192672 [16:26:04]NVStorageDeleteData [16:26:04]Write to MH i2c: 01 00 00 CB 5D 28 [16:26:04]Write i2c OK [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: 01 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: 01 07 00 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: 01 07 00 CB 5D 00 00 00 00 00 E6 0C 21 [16:26:04]RasterBufferAndPrint [16:26:04]line [16:26:04]line [16:26:04]line [16:26:04]line [16:26:04]line [16:26:04]written 0, free lines is 3308 [16:26:04]MH_Cut [16:26:04]Write to MH i2c: D1 01 00 D2 5D 01 01 [16:26:04]Write i2c OK [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: D1 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: D1 01 00 [16:26:04]MH_I2C_Read... [16:26:04]Read from MH i2c: D1 01 00 D2 5D 00 00 [16:26:04]Write to MH i2c: 01 00 00 D3 5D 30 [16:26:04]Write i2c OK [16:26:04]MH_I2C_Read... [16:26:05]OFD Sender: No OFD packet to send [16:26:05]*** Cut start [16:26:05]*** Partial cut [16:26:05]*** CUTSNS_PIN = 1 [16:26:05]*** CUTSNS_PIN = 0 [16:26:06]*** Brake cut motor [16:26:06]Read from MH i2c: 01 [16:26:06]MH_I2C_Read... [16:26:06]*** Stop cut motor [16:26:06]*** Cut end [16:26:06]Read from MH i2c: 01 07 00 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: 01 07 00 D3 5D 00 00 00 00 00 FF 0F 45 [16:26:06]process_action close_receipt done [16:26:06]requested_data is exist [16:26:06]produce_requested_data [16:26:06]requested_item fm.sn is exist - process it [16:26:06]wFMCommunicate request_size=4 [16:26:06]MH_SAM_APDU [16:26:06]CAPDU: 80 11 00 00 [16:26:06]Write to MH i2c: E2 08 00 D4 5D 80 11 00 00 00 00 00 00 AB [16:26:06]Write i2c OK [16:26:06]MH_I2C_Read... [16:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:06]Read from MH i2c: E2 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 17 00 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 17 00 D4 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FE [16:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:26:06]wFMCommunicate OK [16:26:06]requested_item fd.num is exist - process it [16:26:06]SAM_PROTO_GetFieldsCounters [16:26:06]wFMCommunicate request_size=4 [16:26:06]MH_SAM_APDU [16:26:06]CAPDU: 80 13 00 00 [16:26:06]Write to MH i2c: E2 08 00 D5 5D 80 13 00 00 00 00 00 00 AE [16:26:06]Write i2c OK [16:26:06]MH_I2C_Read... [16:26:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:06]Read from MH i2c: E2 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 62 00 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 62 00 D5 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A0 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [16:26:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A0 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:06]wFMCommunicate OK [16:26:06]SAM_PROTO_GetFieldsCounters done [16:26:06]requested_item shift.num is exist - process it [16:26:06]requested_item shift.opened is exist - process it [16:26:06]req_shift_opened [16:26:06]FM_GetShiftState [16:26:06]SAM_PROTO_GetShiftState [16:26:06]wFMCommunicate request_size=4 [16:26:06]MH_SAM_APDU [16:26:06]CAPDU: 80 13 01 00 [16:26:06]Write to MH i2c: E2 08 00 D6 5D 80 13 01 00 00 00 00 00 B0 [16:26:06]Write i2c OK [16:26:06]MH_I2C_Read... [16:26:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:06]Read from MH i2c: E2 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 0E 00 [16:26:06]MH_I2C_Read... [16:26:06]Read from MH i2c: E2 0E 00 D6 5D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 00 [16:26:06]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:26:06]wFMCommunicate OK [16:26:06]SAM_PROTO_GetShiftState done [16:26:06]FM_GetShiftState done [16:26:06]req_shift_opened done [16:26:06]requested_item shift.open_date is exist - process it [16:26:06]req_shift_open_date [16:26:06]req_shift_open_date done [16:26:06]produce_requested_data done [16:26:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192672,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:26:06]process_action_free close_receipt [16:26:06]json_value_free [16:26:06]json_value_free done [16:26:06]process_json_proto returns [16:26:06]Send response to host [16:26:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192672,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:26:06]free response buf [16:26:06]execute_script done [16:26:06]execute_script returns [16:26:06]free content buf [16:26:06]Sock 10.Close socket [16:26:06]Sock 10.Thread stoped [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:04]accept exits with 7 [16:28:04]New connection [16:28:04]New thread 3066707300 created [16:28:04]Thread 3066563940 joined [16:28:04]Waiting for new connection... [16:28:04] Sock 7.Parse request [16:28:04]Sock 7.Check first char [16:28:04]Sock 7.First char is OK [16:28:04]request: POST /json_proto HTTP/1.0 [16:28:04]Method: POST [16:28:04]URL: /json_proto [16:28:04]Method is POST - this is cgi request [16:28:04]url: /json_proto [16:28:04]query_string will be loaded in cgi processing [16:28:04]execute_cgi json_proto POST (null) [16:28:04]execute_cgi path=json_proto method=POST [16:28:04]POST find Content-Length [16:28:04]Host: 172.17.63.131:8080 [16:28:04]Content-Length: 681 [16:28:04]Content-Type: application/json [16:28:04] [16:28:04]POST finish read [16:28:04]Found Content-Length = 681 [16:28:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.290, "sum" : 1290.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1290.00, "total" : 1290.00, "payments": [ { "type": 0, "sum" : 1290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:04]execute_script... [16:28: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)32000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.290, "sum" : 1290.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1290.00, "total" : 1290.00, "payments": [ { "type": 0, "sum" : 1290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:04]POST & json_proto [16:28:04]process_json_proto [16:28:04]json parsed OK: [16:28:04]protocol is kg_v1.0 [16:28:04]action value=close_receipt [16:28:04]process_action close_receipt [16:28:04]cmd_close_receipt [16:28:04]MH_GetDate [16:28:04]Write to MH i2c: F0 00 00 D7 5D 23 [16:28:04]Write i2c OK [16:28:04]MH_I2C_Read... [16:28:04]Read from MH i2c: F0 [16:28:04]MH_I2C_Read... [16:28:04]Read from MH i2c: F0 09 00 [16:28:04]MH_I2C_Read... [16:28:04]Read from MH i2c: F0 09 00 D7 5D 00 9A BB 1F 67 22 05 6E 64 00 [16:28:04]GetLastDocTimeStamp 1730132768 [16:28:04]current date 1730132890 [16:28:04]FM_GetShiftState [16:28:04]SAM_PROTO_GetShiftState [16:28:04]wFMCommunicate request_size=4 [16:28:04]MH_SAM_APDU [16:28:04]CAPDU: 80 13 01 00 [16:28:04]Write to MH i2c: E2 08 00 D8 5D 80 13 01 00 00 00 00 00 B2 [16:28:04]Write i2c OK [16:28:04]MH_I2C_Read... [16:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:04]Read from MH i2c: E2 [16:28:04]MH_I2C_Read... [16:28:04]Read from MH i2c: E2 0E 00 [16:28:04]MH_I2C_Read... [16:28:04]Read from MH i2c: E2 0E 00 D8 5D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 02 [16:28:04]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:28:04]wFMCommunicate OK [16:28:04]SAM_PROTO_GetShiftState done [16:28:04]FM_GetShiftState done [16:28:04]opened in 1730075620 [16:28:04]opened+sec_in_day 1730162020 [16:28:04]quantity*price = 129050 [16:28:04]sum+1 = 129051 [16:28:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1290.00 Внесено: 1290.00 СДАЧА: 0.00 НСП 1% : 11.42 НДС 12% : 137.04 Наличными: 1290.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 221 28.10.2024 16:28 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192673 ФПД: 229868566251202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T162810&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192673&fm=229868566251202&tin=02508201610067®Number=0000000000091776&sum=129000 [16:28:06]StoreToDocumentArchive [16:28:06]shift 543 fd 192673 [16:28:06]save to /storage/0543/doc_00192673 [16:28:06]save last doc name /storage/0543/doc_00192673 to /storage/kkm_last_doc_name [16:28:06]save OK [16:28:06]Clear old archive folders... [16:28:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:28:06]tlvbuf is 0197E230 [16:28:06]SAM_PROTO_ClearQueue [16:28:06]wFMCommunicate request_size=4 [16:28:06]MH_SAM_APDU [16:28:06]CAPDU: 80 09 00 00 [16:28:06]Write to MH i2c: E2 08 00 E5 5D 80 09 00 00 00 00 00 00 B4 [16:28:06]Write i2c OK [16:28:06]MH_I2C_Read... [16:28:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:06]Read from MH i2c: E2 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 03 00 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 03 00 E5 5D 00 90 00 B6 [16:28:06]RAPDU: 90 00 [16:28:06]wFMCommunicate OK [16:28:06]SAM_PROTO_ClearQueue done [16:28:06]KKMCreateOFDPacket [16:28:06]OFDProtocolAddRootSTLVToBuf [16:28:06]FM_MakeSignedData [16:28:06]FM_MakeSignedData [16:28:06]SAM_PROTO_SignData [16:28:06]wFMCommunicate request_size=4 [16:28:06]MH_SAM_APDU [16:28:06]CAPDU: 80 0D 01 02 [16:28:06]Write to MH i2c: E2 08 00 E6 5D 80 0D 01 02 00 00 00 00 BC [16:28:06]Write i2c OK [16:28:06]MH_I2C_Read... [16:28:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:06]Read from MH i2c: E2 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 03 00 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 03 00 E6 5D 00 90 00 B7 [16:28:06]RAPDU: 90 00 [16:28:06]wFMCommunicate OK [16:28:06]wFMCommunicate request_size=255 [16:28:06]MH_SAM_APDU [16:28: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 5A 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1A F8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 F7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 35 00 00 00 00 07 04 06 00 E8 F7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 9A BB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 F0 02 00 35 04 06 00 D1 [16:28:06]Write to MH i2c: E2 02 01 E7 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1A F8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 F7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 35 00 00 00 00 07 04 06 00 E8 F7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 9A BB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 F0 02 00 35 04 06 00 D1 00 00 F3 [16:28:06]Write i2c OK [16:28:06]MH_I2C_Read... [16:28:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:06]Read from MH i2c: E2 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 03 00 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 03 00 E7 5D 00 90 00 B8 [16:28:06]RAPDU: 90 00 [16:28:06]wFMCommunicate OK [16:28:06]wFMCommunicate request_size=10 [16:28:06]MH_SAM_APDU [16:28:06]CAPDU: 80 0D 02 02 05 10 72 3C 86 C2 [16:28:06]Write to MH i2c: E2 0D 00 E8 5D 80 0D 02 02 05 00 10 72 3C 86 C2 00 00 CF [16:28:06]Write i2c OK [16:28:06]MH_I2C_Read... [16:28:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:06]Read from MH i2c: E2 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 03 00 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 03 00 E8 5D 00 90 00 B9 [16:28:06]RAPDU: 90 00 [16:28:06]wFMCommunicate OK [16:28:06]wFMCommunicate request_size=4 [16:28:06]MH_SAM_APDU [16:28:06]CAPDU: 80 0D 03 02 [16:28:06]Write to MH i2c: E2 08 00 E9 5D 80 0D 03 02 00 00 00 00 C1 [16:28:06]Write i2c OK [16:28:06]MH_I2C_Read... [16:28:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:06]Read from MH i2c: E2 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 0B 00 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 0B 00 E9 5D 00 B0 40 7D 65 E7 7E 0C D1 90 00 D6 [16:28:06]RAPDU: B0 40 7D 65 E7 7E 0C D1 90 00 [16:28:06]wFMCommunicate OK [16:28:06]SAM_PROTO_SignData done [16:28:06]FM_MakeSignedData done [16:28:06]CreateOFDProtocolMessage [16:28:06]wFMCommunicate request_size=4 [16:28:06]MH_SAM_APDU [16:28:06]CAPDU: 80 11 00 00 [16:28:06]Write to MH i2c: E2 08 00 EA 5D 80 11 00 00 00 00 00 00 C1 [16:28:06]Write i2c OK [16:28:06]MH_I2C_Read... [16:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:06]Read from MH i2c: E2 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 17 00 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: E2 17 00 EA 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 14 [16:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:28:06]wFMCommunicate OK [16:28:06]CreateOFDProtocolMessage done [16:28:06]OFDSenderStorePacket 192673 [16:28:06]StoreOFDPacket docnum=192673 [16:28:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0C BA 07 01 8F 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1A F8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 F7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 35 00 00 00 00 07 04 06 00 E8 F7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 9A BB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 F0 02 00 35 04 06 00 D1 10 72 3C 86 C2 B0 40 7D 65 E7 7E 0C D1 [16:28:06]CheckFolder [16:28:06]dirname=/storage/ofd_packets [16:28:06]CheckFolder done [16:28:06]ProducePacketName [16:28:06]name=ofd_packets/00192673 [16:28:06]NVStorageSaveData ofd_packets/00192673 [16:28:06]File name is /storage/ofd_packets/00192673 [16:28:06]Write 301 bytes [16:28:06]NVStorageSaveData done [16:28:06]OFDSenderStorePacket done [16:28:06]KKMCreateOFDPacket done [16:28:06]NVStorageSaveData kkm_last_timestamp [16:28:06]File name is /storage/kkm_last_timestamp [16:28:06]Write 4 bytes [16:28:06]NVStorageSaveData done [16:28:06]ExternCall_PrintAddStr [16:28:06]wPrintStart [16:28:06]Write to MH i2c: 01 00 00 EB 5D 48 [16:28:06]Write i2c OK [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: 01 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: 01 07 00 [16:28:06]MH_I2C_Read... [16:28:06]Read from MH i2c: 01 07 00 EB 5D 00 00 00 00 00 FF 0F 5D [16:28:06]RasterBufferAndPrint [16:28:06]line Счет N : (1)32000 [16:28:06]line ИНН: 02508201610067 [16:28:06]line Контрольно-Кассовый Чек [16:28:06]line ПРОДАЖА [16:28:06]line ТРК (МРК, ГНК) : 21 [16:28:06]line Товар: 2710124130 [16:28:06]line Аи-92-К-5 [16:28:06]line 19.290 * 66.90 [16:28:06]line = 1290.50 [16:28:06]line НДС 12% НСП 1% [16:28:06]line > о реализуемом товаре [16:28:06]line ОКРУГЛЕНИЕ: -0.50 [16:28:06]line ИТОГО: 1290.00 [16:28:06]line Внесено: 1290.00 [16:28:06]line СДАЧА: 0.00 [16:28:06]line НСП 1% : 11.42 [16:28:06]line НДС 12% : 137.04 [16:28:06]line Наличными: 1290.00 [16:28:06]line Безнал.: 0.00 [16:28:06]line Место: АЗС № 170 "Партнер Нефть" [16:28:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:28:06]line СНО: Общий режим [16:28:06]line Чек 221 28.10.2024 16:28 [16:28:06]line Смена: 543 ФФД: 1.0 [16:28:06]line ЗНМ: 0300000110 [16:28:06]line РНМ: 0000000000091776 [16:28:06]line Версия ККМ: 001 [16:28:06]line ФМ: 0000000000871754 [16:28:06]line ФД: 192673 [16:28:06]line ФПД: 229868566251202 [16:28:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T162810&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192673&fm=229868566251202&tin=02508201610067®Number=0000000000091776&sum=129000 [16:28:06]written 0, free lines is 4095 [16:28:06]OFD Sender: Processing packet 192673 [packets to send 75, broken 74] [16:28:06]ProducePacketName [16:28:06]name=ofd_packets/00192673 [16:28:06]OFD Sender: To server: pG, [16:28:06]CommunicateWithHost lk.salyk.kg:30040 [16:28:06]ConnectInit lk.salyk.kg [16:28:06]Connected sock=10 [16:28:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0C BA 07 01 8F 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1A F8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 F7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 35 00 00 00 00 07 04 06 00 E8 F7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 9A BB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 F0 02 00 35 04 06 00 D1 10 72 3C 86 C2 B0 40 7D 65 E7 7E 0C D1 [16:28:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 44 6E 47 00 FC 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 F0 02 00 F4 03 04 00 5E 60 1F 67 B6 04 01 00 00 50 19 10 AF B2 4F 4D F2 [16:28:06]CommunicateWithHost err = 0 [16:28:06]CheckOFDResponse [16:28:06]1017 (14) - 77093643461234 [16:28:06]1041 (16) - 0000000000871754 [16:28:06]1040 (4) - 192673 [16:28:06]1012 (4) - 28.10.2024 09:58 [16:28:06]1206 (1) - 0 [16:28:06]OFD Sender: Remove packet 192673 [16:28:06]ProducePacketName [16:28:06]name=ofd_packets/00192673 [16:28:06]NVStorageDeleteData [16:28:07]Write to MH i2c: 01 00 00 16 5E 74 [16:28:07]Write i2c OK [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: 01 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: 01 07 00 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: 01 07 00 16 5E 00 00 00 00 00 C2 0C 49 [16:28:07]RasterBufferAndPrint [16:28:07]line [16:28:07]line [16:28:07]line [16:28:07]line [16:28:07]line [16:28:07]written 0, free lines is 3272 [16:28:07]MH_Cut [16:28:07]Write to MH i2c: D1 01 00 1D 5E 01 4D [16:28:07]Write i2c OK [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: D1 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: D1 01 00 [16:28:07]MH_I2C_Read... [16:28:07]Read from MH i2c: D1 01 00 1D 5E 00 4C [16:28:07]Write to MH i2c: 01 00 00 1E 5E 7C [16:28:07]Write i2c OK [16:28:07]MH_I2C_Read... [16:28:07]OFD Sender: No OFD packet to send [16:28:07]*** Cut start [16:28:07]*** Partial cut [16:28:07]*** CUTSNS_PIN = 1 [16:28:07]*** CUTSNS_PIN = 0 [16:28:08]*** Brake cut motor [16:28:08]Read from MH i2c: 01 [16:28:08]MH_I2C_Read... [16:28:08]*** Stop cut motor [16:28:08]*** Cut end [16:28:08]Read from MH i2c: 01 07 00 [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: 01 07 00 1E 5E 00 00 00 00 00 FF 0F 91 [16:28:08]process_action close_receipt done [16:28:08]requested_data is exist [16:28:08]produce_requested_data [16:28:08]requested_item fm.sn is exist - process it [16:28:08]wFMCommunicate request_size=4 [16:28:08]MH_SAM_APDU [16:28:08]CAPDU: 80 11 00 00 [16:28:08]Write to MH i2c: E2 08 00 1F 5E 80 11 00 00 00 00 00 00 F7 [16:28:08]Write i2c OK [16:28:08]MH_I2C_Read... [16:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:08]Read from MH i2c: E2 [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: E2 17 00 [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: E2 17 00 1F 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4A [16:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:28:08]wFMCommunicate OK [16:28:08]requested_item fd.num is exist - process it [16:28:08]SAM_PROTO_GetFieldsCounters [16:28:08]wFMCommunicate request_size=4 [16:28:08]MH_SAM_APDU [16:28:08]CAPDU: 80 13 00 00 [16:28:08]Write to MH i2c: E2 08 00 20 5E 80 13 00 00 00 00 00 00 FA [16:28:08]Write i2c OK [16:28:08]MH_I2C_Read... [16:28:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:08]Read from MH i2c: E2 [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: E2 62 00 [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: E2 62 00 20 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A1 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [16:28:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A1 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:08]wFMCommunicate OK [16:28:08]SAM_PROTO_GetFieldsCounters done [16:28:08]requested_item shift.num is exist - process it [16:28:08]requested_item shift.opened is exist - process it [16:28:08]req_shift_opened [16:28:08]FM_GetShiftState [16:28:08]SAM_PROTO_GetShiftState [16:28:08]wFMCommunicate request_size=4 [16:28:08]MH_SAM_APDU [16:28:08]CAPDU: 80 13 01 00 [16:28:08]Write to MH i2c: E2 08 00 21 5E 80 13 01 00 00 00 00 00 FC [16:28:08]Write i2c OK [16:28:08]MH_I2C_Read... [16:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:08]Read from MH i2c: E2 [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: E2 0E 00 [16:28:08]MH_I2C_Read... [16:28:08]Read from MH i2c: E2 0E 00 21 5E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 4C [16:28:08]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:28:08]wFMCommunicate OK [16:28:08]SAM_PROTO_GetShiftState done [16:28:08]FM_GetShiftState done [16:28:08]req_shift_opened done [16:28:08]requested_item shift.open_date is exist - process it [16:28:08]req_shift_open_date [16:28:08]req_shift_open_date done [16:28:08]produce_requested_data done [16:28:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192673,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:28:08]process_action_free close_receipt [16:28:08]json_value_free [16:28:08]json_value_free done [16:28:08]process_json_proto returns [16:28:08]Send response to host [16:28:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192673,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:28:08]free response buf [16:28:08]execute_script done [16:28:08]execute_script returns [16:28:08]free content buf [16:28:08]Sock 7.Close socket [16:28:08]Sock 7.Thread stoped [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]accept exits with 9 [16:30:32]New connection [16:30:32]New thread 3066563940 created [16:30:32]Thread 3066707300 joined [16:30:32]Waiting for new connection... [16:30:32] Sock 9.Parse request [16:30:32]Sock 9.Check first char [16:30:32]Sock 9.First char is OK [16:30:32]request: POST /json_proto HTTP/1.0 [16:30:32]Method: POST [16:30:32]URL: /json_proto [16:30:32]Method is POST - this is cgi request [16:30:32]url: /json_proto [16:30:32]query_string will be loaded in cgi processing [16:30:32]execute_cgi json_proto POST (null) [16:30:32]execute_cgi path=json_proto method=POST [16:30:32]POST find Content-Length [16:30:32]Host: 172.17.63.131:8080 [16:30:32]Content-Length: 676 [16:30:32]Content-Type: application/json [16:30:32] [16:30:32]POST finish read [16:30:32]Found Content-Length = 676 [16:30:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:32]execute_script... [16:30:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:32]POST & json_proto [16:30:32]process_json_proto [16:30:32]json parsed OK: [16:30:32]protocol is kg_v1.0 [16:30:32]action value=close_receipt [16:30:32]process_action close_receipt [16:30:32]cmd_close_receipt [16:30:32]MH_GetDate [16:30:32]Write to MH i2c: F0 00 00 22 5E 6F [16:30:32]Write i2c OK [16:30:32]MH_I2C_Read... [16:30:32]Read from MH i2c: F0 [16:30:32]MH_I2C_Read... [16:30:32]Read from MH i2c: F0 09 00 [16:30:32]MH_I2C_Read... [16:30:32]Read from MH i2c: F0 09 00 22 5E 00 2E BC 1F 67 22 05 6E 64 E1 [16:30:32]GetLastDocTimeStamp 1730132890 [16:30:32]current date 1730133038 [16:30:32]FM_GetShiftState [16:30:32]SAM_PROTO_GetShiftState [16:30:32]wFMCommunicate request_size=4 [16:30:32]MH_SAM_APDU [16:30:32]CAPDU: 80 13 01 00 [16:30:32]Write to MH i2c: E2 08 00 23 5E 80 13 01 00 00 00 00 00 FE [16:30:32]Write i2c OK [16:30:32]MH_I2C_Read... [16:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:32]Read from MH i2c: E2 [16:30:32]MH_I2C_Read... [16:30:32]Read from MH i2c: E2 0E 00 [16:30:32]MH_I2C_Read... [16:30:32]Read from MH i2c: E2 0E 00 23 5E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 4E [16:30:32]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:30:32]wFMCommunicate OK [16:30:32]SAM_PROTO_GetShiftState done [16:30:32]FM_GetShiftState done [16:30:32]opened in 1730075620 [16:30:32]opened+sec_in_day 1730162020 [16:30:32]quantity*price = 50041 [16:30:32]sum+1 = 50042 [16:30:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 222 28.10.2024 16:30 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192674 ФПД: 130731025101126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163038&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192674&fm=130731025101126&tin=02508201610067®Number=0000000000091776&sum=50000 [16:30:33]StoreToDocumentArchive [16:30:33]shift 543 fd 192674 [16:30:33]save to /storage/0543/doc_00192674 [16:30:33]save last doc name /storage/0543/doc_00192674 to /storage/kkm_last_doc_name [16:30:33]save OK [16:30:33]Clear old archive folders... [16:30:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:33]tlvbuf is 01A39160 [16:30:33]SAM_PROTO_ClearQueue [16:30:33]wFMCommunicate request_size=4 [16:30:33]MH_SAM_APDU [16:30:33]CAPDU: 80 09 00 00 [16:30:33]Write to MH i2c: E2 08 00 30 5E 80 09 00 00 00 00 00 00 00 [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:33]Read from MH i2c: E2 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 03 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 03 00 30 5E 00 90 00 02 [16:30:33]RAPDU: 90 00 [16:30:33]wFMCommunicate OK [16:30:33]SAM_PROTO_ClearQueue done [16:30:33]KKMCreateOFDPacket [16:30:33]OFDProtocolAddRootSTLVToBuf [16:30:33]FM_MakeSignedData [16:30:33]FM_MakeSignedData [16:30:33]SAM_PROTO_SignData [16:30:33]wFMCommunicate request_size=4 [16:30:33]MH_SAM_APDU [16:30:33]CAPDU: 80 0D 01 02 [16:30:33]Write to MH i2c: E2 08 00 31 5E 80 0D 01 02 00 00 00 00 08 [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:33]Read from MH i2c: E2 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 03 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 03 00 31 5E 00 90 00 03 [16:30:33]RAPDU: 90 00 [16:30:33]wFMCommunicate OK [16:30:33]wFMCommunicate request_size=255 [16:30:33]MH_SAM_APDU [16:30:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 2E BC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 F0 02 00 35 04 06 00 76 [16:30:33]Write to MH i2c: E2 02 01 32 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 2E BC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 F0 02 00 35 04 06 00 76 00 00 15 [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:33]Read from MH i2c: E2 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 03 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 03 00 32 5E 00 90 00 04 [16:30:33]RAPDU: 90 00 [16:30:33]wFMCommunicate OK [16:30:33]wFMCommunicate request_size=10 [16:30:33]MH_SAM_APDU [16:30:33]CAPDU: 80 0D 02 02 05 E6 30 4F F1 46 [16:30:33]Write to MH i2c: E2 0D 00 33 5E 80 0D 02 02 05 00 E6 30 4F F1 46 00 00 B1 [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:33]Read from MH i2c: E2 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 03 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 03 00 33 5E 00 90 00 05 [16:30:33]RAPDU: 90 00 [16:30:33]wFMCommunicate OK [16:30:33]wFMCommunicate request_size=4 [16:30:33]MH_SAM_APDU [16:30:33]CAPDU: 80 0D 03 02 [16:30:33]Write to MH i2c: E2 08 00 34 5E 80 0D 03 02 00 00 00 00 0D [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:33]Read from MH i2c: E2 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 0B 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 0B 00 34 5E 00 DB AA B4 10 25 97 ED F0 90 00 F0 [16:30:33]RAPDU: DB AA B4 10 25 97 ED F0 90 00 [16:30:33]wFMCommunicate OK [16:30:33]SAM_PROTO_SignData done [16:30:33]FM_MakeSignedData done [16:30:33]CreateOFDProtocolMessage [16:30:33]wFMCommunicate request_size=4 [16:30:33]MH_SAM_APDU [16:30:33]CAPDU: 80 11 00 00 [16:30:33]Write to MH i2c: E2 08 00 35 5E 80 11 00 00 00 00 00 00 0D [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:33]Read from MH i2c: E2 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 17 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: E2 17 00 35 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 60 [16:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:30:33]wFMCommunicate OK [16:30:33]CreateOFDProtocolMessage done [16:30:33]OFDSenderStorePacket 192674 [16:30:33]StoreOFDPacket docnum=192674 [16:30:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B2 5B 07 01 E0 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 2E BC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 F0 02 00 35 04 06 00 76 E6 30 4F F1 46 DB AA B4 10 25 97 ED F0 [16:30:33]CheckFolder [16:30:33]dirname=/storage/ofd_packets [16:30:33]CheckFolder done [16:30:33]ProducePacketName [16:30:33]name=ofd_packets/00192674 [16:30:33]NVStorageSaveData ofd_packets/00192674 [16:30:33]File name is /storage/ofd_packets/00192674 [16:30:33]Write 301 bytes [16:30:33]NVStorageSaveData done [16:30:33]OFDSenderStorePacket done [16:30:33]KKMCreateOFDPacket done [16:30:33]NVStorageSaveData kkm_last_timestamp [16:30:33]File name is /storage/kkm_last_timestamp [16:30:33]Write 4 bytes [16:30:33]NVStorageSaveData done [16:30:33]ExternCall_PrintAddStr [16:30:33]wPrintStart [16:30:33]Write to MH i2c: 01 00 00 36 5E 94 [16:30:33]Write i2c OK [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 07 00 [16:30:33]MH_I2C_Read... [16:30:33]Read from MH i2c: 01 07 00 36 5E 00 00 00 00 00 FF 0F A9 [16:30:33]RasterBufferAndPrint [16:30:33]line Счет N : (1)32001 [16:30:33]line ИНН: 02508201610067 [16:30:33]line Контрольно-Кассовый Чек [16:30:33]line ПРОДАЖА [16:30:33]line ТРК (МРК, ГНК) : 12 [16:30:33]line Товар: 2710124130 [16:30:33]line Аи-92-К-5 [16:30:33]line 7.480 * 66.90 [16:30:33]line = 500.41 [16:30:33]line НДС 12% НСП 1% [16:30:33]line > о реализуемом товаре [16:30:33]line ОКРУГЛЕНИЕ: -0.41 [16:30:33]line ИТОГО: 500.00 [16:30:33]line Внесено: 500.00 [16:30:33]line СДАЧА: 0.00 [16:30:33]line НСП 1% : 4.43 [16:30:33]line НДС 12% : 53.14 [16:30:33]line Наличными: 500.00 [16:30:33]line Безнал.: 0.00 [16:30:33]line Место: АЗС № 170 "Партнер Нефть" [16:30:33]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:30:33]line СНО: Общий режим [16:30:33]line Чек 222 28.10.2024 16:30 [16:30:33]line Смена: 543 ФФД: 1.0 [16:30:33]line ЗНМ: 0300000110 [16:30:33]line РНМ: 0000000000091776 [16:30:33]line Версия ККМ: 001 [16:30:33]line ФМ: 0000000000871754 [16:30:33]line ФД: 192674 [16:30:33]line ФПД: 130731025101126 [16:30:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163038&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192674&fm=130731025101126&tin=02508201610067®Number=0000000000091776&sum=50000 [16:30:34]OFD Sender: Processing packet 192674 [packets to send 75, broken 74] [16:30:34]ProducePacketName [16:30:34]name=ofd_packets/00192674 [16:30:34]OFD Sender: To server: pG, [16:30:34]CommunicateWithHost lk.salyk.kg:30040 [16:30:34]ConnectInit lk.salyk.kg [16:30:34]written 0, free lines is 4095 [16:30:34]Write to MH i2c: 01 00 00 61 5E BF [16:30:34]Write i2c OK [16:30:34]MH_I2C_Read... [16:30:34]Read from MH i2c: 01 [16:30:34]MH_I2C_Read... [16:30:34]Read from MH i2c: 01 07 00 [16:30:34]MH_I2C_Read... [16:30:34]Read from MH i2c: 01 07 00 61 5E 00 00 00 00 00 BE 0C 90 [16:30:34]RasterBufferAndPrint [16:30:34]line [16:30:34]line [16:30:34]line [16:30:34]line [16:30:34]line [16:30:34]written 0, free lines is 3269 [16:30:34]MH_Cut [16:30:34]Write to MH i2c: D1 01 00 68 5E 01 98 [16:30:34]Write i2c OK [16:30:34]MH_I2C_Read... [16:30:34]Read from MH i2c: D1 [16:30:34]MH_I2C_Read... [16:30:34]Read from MH i2c: D1 01 00 [16:30:34]MH_I2C_Read... [16:30:34]Read from MH i2c: D1 01 00 68 5E 00 97 [16:30:34]Write to MH i2c: 01 00 00 69 5E C7 [16:30:34]Write i2c OK [16:30:34]MH_I2C_Read... [16:30:35]*** Cut start [16:30:35]*** Partial cut [16:30:35]*** CUTSNS_PIN = 1 [16:30:35]*** CUTSNS_PIN = 0 [16:30:35]*** Brake cut motor [16:30:36]Read from MH i2c: 01 [16:30:36]MH_I2C_Read... [16:30:36]*** Stop cut motor [16:30:36]*** Cut end [16:30:36]Read from MH i2c: 01 07 00 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: 01 07 00 69 5E 00 00 00 00 00 FF 0F DC [16:30:36]process_action close_receipt done [16:30:36]requested_data is exist [16:30:36]produce_requested_data [16:30:36]requested_item fm.sn is exist - process it [16:30:36]wFMCommunicate request_size=4 [16:30:36]MH_SAM_APDU [16:30:36]CAPDU: 80 11 00 00 [16:30:36]Write to MH i2c: E2 08 00 6A 5E 80 11 00 00 00 00 00 00 42 [16:30:36]Write i2c OK [16:30:36]MH_I2C_Read... [16:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:36]Read from MH i2c: E2 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: E2 17 00 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: E2 17 00 6A 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 95 [16:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:30:36]wFMCommunicate OK [16:30:36]requested_item fd.num is exist - process it [16:30:36]SAM_PROTO_GetFieldsCounters [16:30:36]wFMCommunicate request_size=4 [16:30:36]MH_SAM_APDU [16:30:36]CAPDU: 80 13 00 00 [16:30:36]Write to MH i2c: E2 08 00 6B 5E 80 13 00 00 00 00 00 00 45 [16:30:36]Write i2c OK [16:30:36]MH_I2C_Read... [16:30:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:36]Read from MH i2c: E2 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: E2 62 00 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: E2 62 00 6B 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A2 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [16:30:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A2 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:36]wFMCommunicate OK [16:30:36]SAM_PROTO_GetFieldsCounters done [16:30:36]requested_item shift.num is exist - process it [16:30:36]requested_item shift.opened is exist - process it [16:30:36]req_shift_opened [16:30:36]FM_GetShiftState [16:30:36]SAM_PROTO_GetShiftState [16:30:36]wFMCommunicate request_size=4 [16:30:36]MH_SAM_APDU [16:30:36]CAPDU: 80 13 01 00 [16:30:36]Write to MH i2c: E2 08 00 6C 5E 80 13 01 00 00 00 00 00 47 [16:30:36]Write i2c OK [16:30:36]MH_I2C_Read... [16:30:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:36]Read from MH i2c: E2 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: E2 0E 00 [16:30:36]MH_I2C_Read... [16:30:36]Read from MH i2c: E2 0E 00 6C 5E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 97 [16:30:36]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:30:36]wFMCommunicate OK [16:30:36]SAM_PROTO_GetShiftState done [16:30:36]FM_GetShiftState done [16:30:36]req_shift_opened done [16:30:36]requested_item shift.open_date is exist - process it [16:30:36]req_shift_open_date [16:30:36]req_shift_open_date done [16:30:36]produce_requested_data done [16:30:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192674,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:30:36]process_action_free close_receipt [16:30:36]json_value_free [16:30:36]json_value_free done [16:30:36]process_json_proto returns [16:30:36]Send response to host [16:30:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192674,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:30:36]free response buf [16:30:36]execute_script done [16:30:36]execute_script returns [16:30:36]free content buf [16:30:36]Sock 9.Close socket [16:30:36]Sock 9.Thread stoped [16:32:10]accept exits with 7 [16:32:10]New connection [16:32:10]New thread 3066707300 created [16:32:10]Thread 3066563940 joined [16:32:10]Waiting for new connection... [16:32:10] Sock 7.Parse request [16:32:10]Sock 7.Check first char [16:32:10]Sock 7.First char is OK [16:32:10]request: POST /json_proto HTTP/1.0 [16:32:10]Method: POST [16:32:10]URL: /json_proto [16:32:10]Method is POST - this is cgi request [16:32:10]url: /json_proto [16:32:10]query_string will be loaded in cgi processing [16:32:10]execute_cgi json_proto POST (null) [16:32:10]execute_cgi path=json_proto method=POST [16:32:10]POST find Content-Length [16:32:10]Host: 172.17.63.131:8080 [16:32:10]Content-Length: 862 [16:32:10]Content-Type: application/json [16:32:10] [16:32:10]POST finish read [16:32:10]Found Content-Length = 862 [16:32:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:10]execute_script... [16:32: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)32002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:10]POST & json_proto [16:32:10]process_json_proto [16:32:10]json parsed OK: [16:32:10]protocol is kg_v1.0 [16:32:10]action value=close_receipt [16:32:10]process_action close_receipt [16:32:10]cmd_close_receipt [16:32:10]MH_GetDate [16:32:10]Write to MH i2c: F0 00 00 6D 5E BA [16:32:10]Write i2c OK [16:32:10]MH_I2C_Read... [16:32:10]Read from MH i2c: F0 [16:32:10]MH_I2C_Read... [16:32:10]Read from MH i2c: F0 09 00 [16:32:10]MH_I2C_Read... [16:32:10]Read from MH i2c: F0 09 00 6D 5E 00 91 BC 1F 67 22 05 6E 64 8F [16:32:10]GetLastDocTimeStamp 1730133038 [16:32:10]current date 1730133137 [16:32:10]FM_GetShiftState [16:32:10]SAM_PROTO_GetShiftState [16:32:10]wFMCommunicate request_size=4 [16:32:10]MH_SAM_APDU [16:32:10]CAPDU: 80 13 01 00 [16:32:10]Write to MH i2c: E2 08 00 6E 5E 80 13 01 00 00 00 00 00 49 [16:32:10]Write i2c OK [16:32:10]MH_I2C_Read... [16:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:10]Read from MH i2c: E2 [16:32:10]MH_I2C_Read... [16:32:10]Read from MH i2c: E2 0E 00 [16:32:10]MH_I2C_Read... [16:32:10]Read from MH i2c: E2 0E 00 6E 5E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 99 [16:32:10]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:32:10]wFMCommunicate OK [16:32:10]SAM_PROTO_GetShiftState done [16:32:10]FM_GetShiftState done [16:32:10]opened in 1730075620 [16:32:10]opened+sec_in_day 1730162020 [16:32:10]quantity*price = 20003 [16:32:10]sum+1 = 20004 [16:32:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 223 28.10.2024 16:32 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192675 ФПД: 195809710094006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163217&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192675&fm=195809710094006&tin=02508201610067®Number=0000000000091776&sum=20003 [16:32:12]StoreToDocumentArchive [16:32:12]shift 543 fd 192675 [16:32:12]save to /storage/0543/doc_00192675 [16:32:12]save last doc name /storage/0543/doc_00192675 to /storage/kkm_last_doc_name [16:32:12]save OK [16:32:12]Clear old archive folders... [16:32:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:32:12]tlvbuf is 01993800 [16:32:12]SAM_PROTO_ClearQueue [16:32:12]wFMCommunicate request_size=4 [16:32:12]MH_SAM_APDU [16:32:12]CAPDU: 80 09 00 00 [16:32:12]Write to MH i2c: E2 08 00 7B 5E 80 09 00 00 00 00 00 00 4B [16:32:12]Write i2c OK [16:32:12]MH_I2C_Read... [16:32:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:12]Read from MH i2c: E2 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 03 00 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 03 00 7B 5E 00 90 00 4D [16:32:12]RAPDU: 90 00 [16:32:12]wFMCommunicate OK [16:32:12]SAM_PROTO_ClearQueue done [16:32:12]KKMCreateOFDPacket [16:32:12]OFDProtocolAddRootSTLVToBuf [16:32:12]FM_MakeSignedData [16:32:12]FM_MakeSignedData [16:32:12]SAM_PROTO_SignData [16:32:12]wFMCommunicate request_size=4 [16:32:12]MH_SAM_APDU [16:32:12]CAPDU: 80 0D 01 02 [16:32:12]Write to MH i2c: E2 08 00 7C 5E 80 0D 01 02 00 00 00 00 53 [16:32:12]Write i2c OK [16:32:12]MH_I2C_Read... [16:32:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:12]Read from MH i2c: E2 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 03 00 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 03 00 7C 5E 00 90 00 4E [16:32:12]RAPDU: 90 00 [16:32:12]wFMCommunicate OK [16:32:12]wFMCommunicate request_size=255 [16:32:12]MH_SAM_APDU [16:32:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 91 BC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 F0 02 00 35 04 06 00 B2 [16:32:12]Write to MH i2c: E2 02 01 7D 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 91 BC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 F0 02 00 35 04 06 00 B2 00 00 C9 [16:32:12]Write i2c OK [16:32:12]MH_I2C_Read... [16:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:12]Read from MH i2c: E2 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 03 00 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 03 00 7D 5E 00 90 00 4F [16:32:12]RAPDU: 90 00 [16:32:12]wFMCommunicate OK [16:32:12]wFMCommunicate request_size=10 [16:32:12]MH_SAM_APDU [16:32:12]CAPDU: 80 0D 02 02 05 16 80 36 B6 B6 [16:32:12]Write to MH i2c: E2 0D 00 7E 5E 80 0D 02 02 05 00 16 80 36 B6 B6 00 00 98 [16:32:12]Write i2c OK [16:32:12]MH_I2C_Read... [16:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:12]Read from MH i2c: E2 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 03 00 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 03 00 7E 5E 00 90 00 50 [16:32:12]RAPDU: 90 00 [16:32:12]wFMCommunicate OK [16:32:12]wFMCommunicate request_size=4 [16:32:12]MH_SAM_APDU [16:32:12]CAPDU: 80 0D 03 02 [16:32:12]Write to MH i2c: E2 08 00 7F 5E 80 0D 03 02 00 00 00 00 58 [16:32:12]Write i2c OK [16:32:12]MH_I2C_Read... [16:32:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:12]Read from MH i2c: E2 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 0B 00 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 0B 00 7F 5E 00 EA 3E E4 DC 30 D2 D4 48 90 00 5F [16:32:12]RAPDU: EA 3E E4 DC 30 D2 D4 48 90 00 [16:32:12]wFMCommunicate OK [16:32:12]SAM_PROTO_SignData done [16:32:12]FM_MakeSignedData done [16:32:12]CreateOFDProtocolMessage [16:32:12]wFMCommunicate request_size=4 [16:32:12]MH_SAM_APDU [16:32:12]CAPDU: 80 11 00 00 [16:32:12]Write to MH i2c: E2 08 00 80 5E 80 11 00 00 00 00 00 00 58 [16:32:12]Write i2c OK [16:32:12]MH_I2C_Read... [16:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:12]Read from MH i2c: E2 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 17 00 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: E2 17 00 80 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AB [16:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:32:12]wFMCommunicate OK [16:32:12]CreateOFDProtocolMessage done [16:32:12]OFDSenderStorePacket 192675 [16:32:12]StoreOFDPacket docnum=192675 [16:32:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BB 98 07 01 B1 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 91 BC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 F0 02 00 35 04 06 00 B2 16 80 36 B6 B6 EA 3E E4 DC 30 D2 D4 48 [16:32:12]CheckFolder [16:32:12]dirname=/storage/ofd_packets [16:32:12]CheckFolder done [16:32:12]ProducePacketName [16:32:12]name=ofd_packets/00192675 [16:32:12]NVStorageSaveData ofd_packets/00192675 [16:32:12]File name is /storage/ofd_packets/00192675 [16:32:12]Write 301 bytes [16:32:12]NVStorageSaveData done [16:32:12]OFDSenderStorePacket done [16:32:12]KKMCreateOFDPacket done [16:32:12]NVStorageSaveData kkm_last_timestamp [16:32:12]File name is /storage/kkm_last_timestamp [16:32:12]Write 4 bytes [16:32:12]NVStorageSaveData done [16:32:12]ExternCall_PrintAddStr [16:32:12]wPrintStart [16:32:12]Write to MH i2c: 01 00 00 81 5E DF [16:32:12]Write i2c OK [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: 01 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: 01 07 00 [16:32:12]MH_I2C_Read... [16:32:12]Read from MH i2c: 01 07 00 81 5E 00 00 00 00 00 FF 0F F4 [16:32:12]RasterBufferAndPrint [16:32:12]line Счет N : (1)32002 [16:32:12]line ИНН: 02508201610067 [16:32:12]line Контрольно-Кассовый Чек [16:32:12]line ПРОДАЖА [16:32:12]line ТРК (МРК, ГНК) : 21 [16:32:12]line Товар: 2710124130 [16:32:12]line Аи-92-К-5 [16:32:12]line 2.990 * 66.90 [16:32:12]line = 200.03 [16:32:12]line НДС 12% НСП 1% [16:32:12]line > о реализуемом товаре [16:32:12]line ИТОГО: 200.03 [16:32:12]line НСП 1% : 1.77 [16:32:12]line НДС 12% : 21.24 [16:32:12]line Наличными: 0.00 [16:32:12]line Безнал.: 200.03 [16:32:12]line Место: АЗС № 170 "Партнер Нефть" [16:32:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:32:12]line СНО: Общий режим [16:32:12]line Чек 223 28.10.2024 16:32 [16:32:12]line Смена: 543 ФФД: 1.0 [16:32:12]line ЗНМ: 0300000110 [16:32:12]line РНМ: 0000000000091776 [16:32:12]line Версия ККМ: 001 [16:32:12]line Платежная система: Кыргызкоммерцбанк [16:32:12]line ФМ: 0000000000871754 [16:32:12]line ФД: 192675 [16:32:12]line ФПД: 195809710094006 [16:32:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163217&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192675&fm=195809710094006&tin=02508201610067®Number=0000000000091776&sum=20003 [16:32:12]written 0, free lines is 4095 [16:32:13]Write to MH i2c: 01 00 00 AB 5E 09 [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: 01 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: 01 07 00 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: 01 07 00 AB 5E 00 00 00 00 00 D9 0C F5 [16:32:13]RasterBufferAndPrint [16:32:13]line [16:32:13]line [16:32:13]line [16:32:13]line [16:32:13]line [16:32:13]written 0, free lines is 3295 [16:32:13]MH_Cut [16:32:13]Write to MH i2c: D1 01 00 B2 5E 01 E2 [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: D1 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: D1 01 00 [16:32:13]MH_I2C_Read... [16:32:13]Read from MH i2c: D1 01 00 B2 5E 00 E1 [16:32:13]Write to MH i2c: 01 00 00 B3 5E 11 [16:32:13]Write i2c OK [16:32:13]MH_I2C_Read... [16:32:14]*** Cut start [16:32:14]*** Partial cut [16:32:14]*** CUTSNS_PIN = 1 [16:32:14]*** CUTSNS_PIN = 0 [16:32:14]*** Brake cut motor [16:32:14]Read from MH i2c: 01 [16:32:14]MH_I2C_Read... [16:32:14]*** Stop cut motor [16:32:14]*** Cut end [16:32:14]Read from MH i2c: 01 07 00 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: 01 07 00 B3 5E 00 00 00 00 00 FF 0F 26 [16:32:14]process_action close_receipt done [16:32:14]requested_data is exist [16:32:14]produce_requested_data [16:32:14]requested_item fm.sn is exist - process it [16:32:14]wFMCommunicate request_size=4 [16:32:14]MH_SAM_APDU [16:32:14]CAPDU: 80 11 00 00 [16:32:14]Write to MH i2c: E2 08 00 B4 5E 80 11 00 00 00 00 00 00 8C [16:32:14]Write i2c OK [16:32:14]MH_I2C_Read... [16:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:14]Read from MH i2c: E2 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: E2 17 00 [16:32:14]MH_I2C_Read... [16:32:14]Read from MH i2c: E2 17 00 B4 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [16:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:32:14]wFMCommunicate OK [16:32:14]requested_item fd.num is exist - process it [16:32:14]SAM_PROTO_GetFieldsCounters [16:32:14]wFMCommunicate request_size=4 [16:32:14]MH_SAM_APDU [16:32:14]CAPDU: 80 13 00 00 [16:32:14]Write to MH i2c: E2 08 00 B5 5E 80 13 00 00 00 00 00 00 8F [16:32:14]Write i2c OK [16:32:14]MH_I2C_Read... [16:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:15]Read from MH i2c: E2 [16:32:15]MH_I2C_Read... [16:32:15]Read from MH i2c: E2 62 00 [16:32:15]MH_I2C_Read... [16:32:15]Read from MH i2c: E2 62 00 B5 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A3 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [16:32:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A3 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:15]wFMCommunicate OK [16:32:15]SAM_PROTO_GetFieldsCounters done [16:32:15]requested_item shift.num is exist - process it [16:32:15]requested_item shift.opened is exist - process it [16:32:15]req_shift_opened [16:32:15]FM_GetShiftState [16:32:15]SAM_PROTO_GetShiftState [16:32:15]wFMCommunicate request_size=4 [16:32:15]MH_SAM_APDU [16:32:15]CAPDU: 80 13 01 00 [16:32:15]Write to MH i2c: E2 08 00 B6 5E 80 13 01 00 00 00 00 00 91 [16:32:15]Write i2c OK [16:32:15]MH_I2C_Read... [16:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:15]Read from MH i2c: E2 [16:32:15]MH_I2C_Read... [16:32:15]Read from MH i2c: E2 0E 00 [16:32:15]MH_I2C_Read... [16:32:15]Read from MH i2c: E2 0E 00 B6 5E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E1 [16:32:15]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:32:15]wFMCommunicate OK [16:32:15]SAM_PROTO_GetShiftState done [16:32:15]FM_GetShiftState done [16:32:15]req_shift_opened done [16:32:15]requested_item shift.open_date is exist - process it [16:32:15]req_shift_open_date [16:32:15]req_shift_open_date done [16:32:15]produce_requested_data done [16:32:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192675,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:32:15]process_action_free close_receipt [16:32:15]json_value_free [16:32:15]json_value_free done [16:32:15]process_json_proto returns [16:32:15]Send response to host [16:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192675,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:32:15]free response buf [16:32:15]execute_script done [16:32:15]execute_script returns [16:32:15]free content buf [16:32:15]Sock 7.Close socket [16:32:15]Sock 7.Thread stoped [16:32:46]ConnectInit Can't connect to host [16:32:46]CommunicateWithHost connect error [16:32:46]CommunicateWithHost err = -1 [16:32:46]OFD Sender: Server communicate error [16:32:46]OFD Sender: Processing packet 192674 [packets to send 76, broken 74] [16:32:46]ProducePacketName [16:32:46]name=ofd_packets/00192674 [16:32:46]OFD Sender: To server: pG, [16:32:46]CommunicateWithHost lk.salyk.kg:30040 [16:32:46]ConnectInit lk.salyk.kg [16:32:47]Connected sock=7 [16:32:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B2 5B 07 01 E0 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 2E BC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 F0 02 00 35 04 06 00 76 E6 30 4F F1 46 DB AA B4 10 25 97 ED F0 [16:32:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DE 8C 47 00 C1 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 F0 02 00 F4 03 04 00 76 61 1F 67 B6 04 01 00 00 5A 62 E1 02 11 41 F2 64 [16:32:47]CommunicateWithHost err = 0 [16:32:47]CheckOFDResponse [16:32:47]1017 (14) - 77093643461234 [16:32:47]1041 (16) - 0000000000871754 [16:32:47]1040 (4) - 192674 [16:32:47]1012 (4) - 28.10.2024 10:03 [16:32:47]1206 (1) - 0 [16:32:47]OFD Sender: Remove packet 192674 [16:32:47]ProducePacketName [16:32:47]name=ofd_packets/00192674 [16:32:47]NVStorageDeleteData [16:32:47]OFD Sender: Processing packet 192675 [packets to send 75, broken 74] [16:32:47]ProducePacketName [16:32:47]name=ofd_packets/00192675 [16:32:47]OFD Sender: To server: pG, [16:32:47]CommunicateWithHost lk.salyk.kg:30040 [16:32:47]ConnectInit lk.salyk.kg [16:32:47]Connected sock=7 [16:32:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BB 98 07 01 B1 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 91 BC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 F0 02 00 35 04 06 00 B2 16 80 36 B6 B6 EA 3E E4 DC 30 D2 D4 48 [16:32:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9E 47 47 00 83 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 F0 02 00 F4 03 04 00 77 61 1F 67 B6 04 01 00 00 EF C3 A7 23 82 0B E4 FA [16:32:48]CommunicateWithHost err = 0 [16:32:48]CheckOFDResponse [16:32:48]1017 (14) - 77093643461234 [16:32:48]1041 (16) - 0000000000871754 [16:32:48]1040 (4) - 192675 [16:32:48]1012 (4) - 28.10.2024 10:03 [16:32:48]1206 (1) - 0 [16:32:48]OFD Sender: Remove packet 192675 [16:32:48]ProducePacketName [16:32:48]name=ofd_packets/00192675 [16:32:48]NVStorageDeleteData [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:49]accept exits with 9 [16:33:49]New connection [16:33:49]New thread 3066563940 created [16:33:49]Thread 3066707300 joined [16:33:49]Waiting for new connection... [16:33:49] Sock 9.Parse request [16:33:49]Sock 9.Check first char [16:33:49]Sock 9.First char is OK [16:33:49]request: POST /json_proto HTTP/1.0 [16:33:49]Method: POST [16:33:49]URL: /json_proto [16:33:49]Method is POST - this is cgi request [16:33:49]url: /json_proto [16:33:49]query_string will be loaded in cgi processing [16:33:49]execute_cgi json_proto POST (null) [16:33:49]execute_cgi path=json_proto method=POST [16:33:49]POST find Content-Length [16:33:49]Host: 172.17.63.131:8080 [16:33:49]Content-Length: 676 [16:33:49]Content-Type: application/json [16:33:49] [16:33:49]POST finish read [16:33:49]Found Content-Length = 676 [16:33:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:49]execute_script... [16:33:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:49]POST & json_proto [16:33:49]process_json_proto [16:33:49]json parsed OK: [16:33:49]protocol is kg_v1.0 [16:33:49]action value=close_receipt [16:33:49]process_action close_receipt [16:33:49]cmd_close_receipt [16:33:49]MH_GetDate [16:33:49]Write to MH i2c: F0 00 00 B7 5E 04 [16:33:49]Write i2c OK [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: F0 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: F0 09 00 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: F0 09 00 B7 5E 00 F3 BC 1F 67 22 05 6E 64 3B [16:33:49]GetLastDocTimeStamp 1730133137 [16:33:49]current date 1730133235 [16:33:49]FM_GetShiftState [16:33:49]SAM_PROTO_GetShiftState [16:33:49]wFMCommunicate request_size=4 [16:33:49]MH_SAM_APDU [16:33:49]CAPDU: 80 13 01 00 [16:33:49]Write to MH i2c: E2 08 00 B8 5E 80 13 01 00 00 00 00 00 93 [16:33:49]Write i2c OK [16:33:49]MH_I2C_Read... [16:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:49]Read from MH i2c: E2 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: E2 0E 00 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: E2 0E 00 B8 5E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E3 [16:33:49]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:33:49]wFMCommunicate OK [16:33:49]SAM_PROTO_GetShiftState done [16:33:49]FM_GetShiftState done [16:33:49]opened in 1730075620 [16:33:49]opened+sec_in_day 1730162020 [16:33:49]quantity*price = 50041 [16:33:49]sum+1 = 50042 [16:33:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 224 28.10.2024 16:33 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192676 ФПД: 73161657758987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163355&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192676&fm=73161657758987&tin=02508201610067®Number=0000000000091776&sum=50000 [16:33:50]StoreToDocumentArchive [16:33:50]shift 543 fd 192676 [16:33:50]save to /storage/0543/doc_00192676 [16:33:50]save last doc name /storage/0543/doc_00192676 to /storage/kkm_last_doc_name [16:33:50]save OK [16:33:50]Clear old archive folders... [16:33:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:50]tlvbuf is 01B6DD70 [16:33:50]SAM_PROTO_ClearQueue [16:33:50]wFMCommunicate request_size=4 [16:33:50]MH_SAM_APDU [16:33:50]CAPDU: 80 09 00 00 [16:33:50]Write to MH i2c: E2 08 00 C5 5E 80 09 00 00 00 00 00 00 95 [16:33:50]Write i2c OK [16:33:50]MH_I2C_Read... [16:33:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:50]Read from MH i2c: E2 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 03 00 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 03 00 C5 5E 00 90 00 97 [16:33:50]RAPDU: 90 00 [16:33:50]wFMCommunicate OK [16:33:50]SAM_PROTO_ClearQueue done [16:33:50]KKMCreateOFDPacket [16:33:50]OFDProtocolAddRootSTLVToBuf [16:33:50]FM_MakeSignedData [16:33:50]FM_MakeSignedData [16:33:50]SAM_PROTO_SignData [16:33:50]wFMCommunicate request_size=4 [16:33:50]MH_SAM_APDU [16:33:50]CAPDU: 80 0D 01 02 [16:33:50]Write to MH i2c: E2 08 00 C6 5E 80 0D 01 02 00 00 00 00 9D [16:33:50]Write i2c OK [16:33:50]MH_I2C_Read... [16:33:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:50]Read from MH i2c: E2 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 03 00 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 03 00 C6 5E 00 90 00 98 [16:33:50]RAPDU: 90 00 [16:33:50]wFMCommunicate OK [16:33:50]wFMCommunicate request_size=255 [16:33:50]MH_SAM_APDU [16:33:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 F3 BC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 F0 02 00 35 04 06 00 42 [16:33:50]Write to MH i2c: E2 02 01 C7 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 F3 BC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 F0 02 00 35 04 06 00 42 00 00 3F [16:33:50]Write i2c OK [16:33:50]MH_I2C_Read... [16:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:50]Read from MH i2c: E2 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 03 00 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 03 00 C7 5E 00 90 00 99 [16:33:50]RAPDU: 90 00 [16:33:50]wFMCommunicate OK [16:33:50]wFMCommunicate request_size=10 [16:33:50]MH_SAM_APDU [16:33:50]CAPDU: 80 0D 02 02 05 8A 46 9F 35 0B [16:33:50]Write to MH i2c: E2 0D 00 C8 5E 80 0D 02 02 05 00 8A 46 9F 35 0B 00 00 59 [16:33:50]Write i2c OK [16:33:50]MH_I2C_Read... [16:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:50]Read from MH i2c: E2 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 03 00 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 03 00 C8 5E 00 90 00 9A [16:33:50]RAPDU: 90 00 [16:33:50]wFMCommunicate OK [16:33:50]wFMCommunicate request_size=4 [16:33:50]MH_SAM_APDU [16:33:50]CAPDU: 80 0D 03 02 [16:33:50]Write to MH i2c: E2 08 00 C9 5E 80 0D 03 02 00 00 00 00 A2 [16:33:50]Write i2c OK [16:33:50]MH_I2C_Read... [16:33:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:50]Read from MH i2c: E2 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 0B 00 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 0B 00 C9 5E 00 6D 9F B8 6F BA 01 0B AE 90 00 4A [16:33:50]RAPDU: 6D 9F B8 6F BA 01 0B AE 90 00 [16:33:50]wFMCommunicate OK [16:33:50]SAM_PROTO_SignData done [16:33:50]FM_MakeSignedData done [16:33:50]CreateOFDProtocolMessage [16:33:50]wFMCommunicate request_size=4 [16:33:50]MH_SAM_APDU [16:33:50]CAPDU: 80 11 00 00 [16:33:50]Write to MH i2c: E2 08 00 CA 5E 80 11 00 00 00 00 00 00 A2 [16:33:50]Write i2c OK [16:33:50]MH_I2C_Read... [16:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:50]Read from MH i2c: E2 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 17 00 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 17 00 CA 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F5 [16:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:33:50]wFMCommunicate OK [16:33:50]CreateOFDProtocolMessage done [16:33:50]OFDSenderStorePacket 192676 [16:33:50]StoreOFDPacket docnum=192676 [16:33:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2C AF 07 01 80 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 F3 BC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 F0 02 00 35 04 06 00 42 8A 46 9F 35 0B 6D 9F B8 6F BA 01 0B AE [16:33:50]CheckFolder [16:33:50]dirname=/storage/ofd_packets [16:33:50]CheckFolder done [16:33:50]ProducePacketName [16:33:50]name=ofd_packets/00192676 [16:33:50]NVStorageSaveData ofd_packets/00192676 [16:33:50]File name is /storage/ofd_packets/00192676 [16:33:50]Write 301 bytes [16:33:50]NVStorageSaveData done [16:33:50]OFDSenderStorePacket done [16:33:50]KKMCreateOFDPacket done [16:33:50]NVStorageSaveData kkm_last_timestamp [16:33:50]File name is /storage/kkm_last_timestamp [16:33:50]Write 4 bytes [16:33:50]NVStorageSaveData done [16:33:50]ExternCall_PrintAddStr [16:33:50]wPrintStart [16:33:50]Write to MH i2c: 01 00 00 CB 5E 29 [16:33:50]Write i2c OK [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: 01 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: 01 07 00 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: 01 07 00 CB 5E 00 00 00 00 00 FF 0F 3E [16:33:50]RasterBufferAndPrint [16:33:50]line Счет N : (1)32003 [16:33:50]line ИНН: 02508201610067 [16:33:50]line Контрольно-Кассовый Чек [16:33:50]line ПРОДАЖА [16:33:50]line ТРК (МРК, ГНК) : 21 [16:33:50]line Товар: 2710124130 [16:33:50]line Аи-92-К-5 [16:33:50]line 7.480 * 66.90 [16:33:50]line = 500.41 [16:33:50]line НДС 12% НСП 1% [16:33:50]line > о реализуемом товаре [16:33:50]line ОКРУГЛЕНИЕ: -0.41 [16:33:50]line ИТОГО: 500.00 [16:33:50]line Внесено: 500.00 [16:33:50]line СДАЧА: 0.00 [16:33:50]line НСП 1% : 4.43 [16:33:50]line НДС 12% : 53.14 [16:33:50]line Наличными: 500.00 [16:33:50]line Безнал.: 0.00 [16:33:50]line Место: АЗС № 170 "Партнер Нефть" [16:33:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:33:50]line СНО: Общий режим [16:33:50]line Чек 224 28.10.2024 16:33 [16:33:50]line Смена: 543 ФФД: 1.0 [16:33:50]line ЗНМ: 0300000110 [16:33:50]line РНМ: 0000000000091776 [16:33:50]line Версия ККМ: 001 [16:33:50]line ФМ: 0000000000871754 [16:33:50]line ФД: 192676 [16:33:50]line ФПД: 73161657758987 [16:33:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163355&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192676&fm=73161657758987&tin=02508201610067®Number=0000000000091776&sum=50000 [16:33:51]OFD Sender: Processing packet 192676 [packets to send 75, broken 74] [16:33:51]ProducePacketName [16:33:51]name=ofd_packets/00192676 [16:33:51]OFD Sender: To server: pG, [16:33:51]CommunicateWithHost lk.salyk.kg:30040 [16:33:51]ConnectInit lk.salyk.kg [16:33:51]written 0, free lines is 4095 [16:33:51]Connected sock=10 [16:33:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2C AF 07 01 80 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 F3 BC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 F0 02 00 35 04 06 00 42 8A 46 9F 35 0B 6D 9F B8 6F BA 01 0B AE [16:33:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BB 3E 47 00 58 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 F0 02 00 F4 03 04 00 B6 61 1F 67 B6 04 01 00 00 5C 30 A0 3C 0D 23 26 5F [16:33:51]CommunicateWithHost err = 0 [16:33:51]CheckOFDResponse [16:33:51]1017 (14) - 77093643461234 [16:33:51]1041 (16) - 0000000000871754 [16:33:51]1040 (4) - 192676 [16:33:51]1012 (4) - 28.10.2024 10:04 [16:33:51]1206 (1) - 0 [16:33:51]OFD Sender: Remove packet 192676 [16:33:51]ProducePacketName [16:33:51]name=ofd_packets/00192676 [16:33:51]NVStorageDeleteData [16:33:51]Write to MH i2c: 01 00 00 F6 5E 54 [16:33:51]Write i2c OK [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: 01 [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: 01 07 00 [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: 01 07 00 F6 5E 00 00 00 00 00 CA 0C 31 [16:33:51]RasterBufferAndPrint [16:33:51]line [16:33:51]line [16:33:51]line [16:33:51]line [16:33:51]line [16:33:51]written 0, free lines is 3281 [16:33:51]MH_Cut [16:33:51]Write to MH i2c: D1 01 00 FD 5E 01 2D [16:33:51]Write i2c OK [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: D1 [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: D1 01 00 [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: D1 01 00 FD 5E 00 2C [16:33:51]Write to MH i2c: 01 00 00 FE 5E 5C [16:33:51]Write i2c OK [16:33:51]MH_I2C_Read... [16:33:51]OFD Sender: No OFD packet to send [16:33:52]*** Cut start [16:33:52]*** Partial cut [16:33:52]*** CUTSNS_PIN = 1 [16:33:52]*** CUTSNS_PIN = 0 [16:33:52]*** Brake cut motor [16:33:52]Read from MH i2c: 01 [16:33:52]MH_I2C_Read... [16:33:52]*** Stop cut motor [16:33:52]*** Cut end [16:33:52]Read from MH i2c: 01 07 00 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: 01 07 00 FE 5E 00 00 00 00 00 FF 0F 71 [16:33:52]process_action close_receipt done [16:33:52]requested_data is exist [16:33:52]produce_requested_data [16:33:52]requested_item fm.sn is exist - process it [16:33:52]wFMCommunicate request_size=4 [16:33:52]MH_SAM_APDU [16:33:52]CAPDU: 80 11 00 00 [16:33:52]Write to MH i2c: E2 08 00 FF 5E 80 11 00 00 00 00 00 00 D7 [16:33:52]Write i2c OK [16:33:52]MH_I2C_Read... [16:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:52]Read from MH i2c: E2 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 17 00 [16:33:52]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 17 00 FF 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2A [16:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:33:53]wFMCommunicate OK [16:33:53]requested_item fd.num is exist - process it [16:33:53]SAM_PROTO_GetFieldsCounters [16:33:53]wFMCommunicate request_size=4 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 13 00 00 [16:33:53]Write to MH i2c: E2 08 00 00 5F 80 13 00 00 00 00 00 00 DB [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 62 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 62 00 00 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A4 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [16:33:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A4 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:53]wFMCommunicate OK [16:33:53]SAM_PROTO_GetFieldsCounters done [16:33:53]requested_item shift.num is exist - process it [16:33:53]requested_item shift.opened is exist - process it [16:33:53]req_shift_opened [16:33:53]FM_GetShiftState [16:33:53]SAM_PROTO_GetShiftState [16:33:53]wFMCommunicate request_size=4 [16:33:53]MH_SAM_APDU [16:33:53]CAPDU: 80 13 01 00 [16:33:53]Write to MH i2c: E2 08 00 01 5F 80 13 01 00 00 00 00 00 DD [16:33:53]Write i2c OK [16:33:53]MH_I2C_Read... [16:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:53]Read from MH i2c: E2 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 0E 00 [16:33:53]MH_I2C_Read... [16:33:53]Read from MH i2c: E2 0E 00 01 5F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2D [16:33:53]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:33:53]wFMCommunicate OK [16:33:53]SAM_PROTO_GetShiftState done [16:33:53]FM_GetShiftState done [16:33:53]req_shift_opened done [16:33:53]requested_item shift.open_date is exist - process it [16:33:53]req_shift_open_date [16:33:53]req_shift_open_date done [16:33:53]produce_requested_data done [16:33:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192676,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:33:53]process_action_free close_receipt [16:33:53]json_value_free [16:33:53]json_value_free done [16:33:53]process_json_proto returns [16:33:53]Send response to host [16:33:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192676,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:33:53]free response buf [16:33:53]execute_script done [16:33:53]execute_script returns [16:33:53]free content buf [16:33:53]Sock 9.Close socket [16:33:53]Sock 9.Thread stoped [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:48]accept exits with 7 [16:34:48]New connection [16:34:48]New thread 3066707300 created [16:34:48]Thread 3066563940 joined [16:34:48]Waiting for new connection... [16:34:48] Sock 7.Parse request [16:34:48]Sock 7.Check first char [16:34:48]Sock 7.First char is OK [16:34:48]request: POST /json_proto HTTP/1.0 [16:34:48]Method: POST [16:34:48]URL: /json_proto [16:34:48]Method is POST - this is cgi request [16:34:48]url: /json_proto [16:34:48]query_string will be loaded in cgi processing [16:34:48]execute_cgi json_proto POST (null) [16:34:48]execute_cgi path=json_proto method=POST [16:34:48]POST find Content-Length [16:34:48]Host: 172.17.63.131:8080 [16:34:48]Content-Length: 862 [16:34:48]Content-Type: application/json [16:34:48] [16:34:48]POST finish read [16:34:48]Found Content-Length = 862 [16:34:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:48]execute_script... [16:34:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:48]POST & json_proto [16:34:48]process_json_proto [16:34:48]json parsed OK: [16:34:48]protocol is kg_v1.0 [16:34:48]action value=close_receipt [16:34:48]process_action close_receipt [16:34:48]cmd_close_receipt [16:34:48]MH_GetDate [16:34:48]Write to MH i2c: F0 00 00 02 5F 50 [16:34:48]Write i2c OK [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: F0 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: F0 09 00 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: F0 09 00 02 5F 00 2E BD 1F 67 22 05 6E 64 C3 [16:34:48]GetLastDocTimeStamp 1730133235 [16:34:48]current date 1730133294 [16:34:48]FM_GetShiftState [16:34:48]SAM_PROTO_GetShiftState [16:34:48]wFMCommunicate request_size=4 [16:34:48]MH_SAM_APDU [16:34:48]CAPDU: 80 13 01 00 [16:34:48]Write to MH i2c: E2 08 00 03 5F 80 13 01 00 00 00 00 00 DF [16:34:48]Write i2c OK [16:34:48]MH_I2C_Read... [16:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:48]Read from MH i2c: E2 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: E2 0E 00 [16:34:48]MH_I2C_Read... [16:34:48]Read from MH i2c: E2 0E 00 03 5F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2F [16:34:48]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:34:48]wFMCommunicate OK [16:34:48]SAM_PROTO_GetShiftState done [16:34:48]FM_GetShiftState done [16:34:48]opened in 1730075620 [16:34:48]opened+sec_in_day 1730162020 [16:34:48]quantity*price = 20003 [16:34:48]sum+1 = 20004 [16:34:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 225 28.10.2024 16:34 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192677 ФПД: 56108626118991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163454&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192677&fm=56108626118991&tin=02508201610067®Number=0000000000091776&sum=20003 [16:34:49]StoreToDocumentArchive [16:34:49]shift 543 fd 192677 [16:34:49]save to /storage/0543/doc_00192677 [16:34:49]save last doc name /storage/0543/doc_00192677 to /storage/kkm_last_doc_name [16:34:49]save OK [16:34:49]Clear old archive folders... [16:34:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:49]tlvbuf is 01B6D930 [16:34:49]SAM_PROTO_ClearQueue [16:34:49]wFMCommunicate request_size=4 [16:34:49]MH_SAM_APDU [16:34:49]CAPDU: 80 09 00 00 [16:34:49]Write to MH i2c: E2 08 00 10 5F 80 09 00 00 00 00 00 00 E1 [16:34:49]Write i2c OK [16:34:49]MH_I2C_Read... [16:34:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:49]Read from MH i2c: E2 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: E2 03 00 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: E2 03 00 10 5F 00 90 00 E3 [16:34:49]RAPDU: 90 00 [16:34:49]wFMCommunicate OK [16:34:49]SAM_PROTO_ClearQueue done [16:34:49]KKMCreateOFDPacket [16:34:49]OFDProtocolAddRootSTLVToBuf [16:34:49]FM_MakeSignedData [16:34:49]FM_MakeSignedData [16:34:49]SAM_PROTO_SignData [16:34:49]wFMCommunicate request_size=4 [16:34:49]MH_SAM_APDU [16:34:49]CAPDU: 80 0D 01 02 [16:34:49]Write to MH i2c: E2 08 00 11 5F 80 0D 01 02 00 00 00 00 E9 [16:34:49]Write i2c OK [16:34:49]MH_I2C_Read... [16:34:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:49]Read from MH i2c: E2 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: E2 03 00 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: E2 03 00 11 5F 00 90 00 E4 [16:34:49]RAPDU: 90 00 [16:34:49]wFMCommunicate OK [16:34:49]wFMCommunicate request_size=255 [16:34:49]MH_SAM_APDU [16:34: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 2E BD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 F0 02 00 35 04 06 00 33 [16:34:49]Write to MH i2c: E2 02 01 12 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 2E BD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 F0 02 00 35 04 06 00 33 00 00 82 [16:34:49]Write i2c OK [16:34:49]MH_I2C_Read... [16:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:49]Read from MH i2c: E2 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: E2 03 00 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: E2 03 00 12 5F 00 90 00 E5 [16:34:49]RAPDU: 90 00 [16:34:49]wFMCommunicate OK [16:34:49]wFMCommunicate request_size=10 [16:34:49]MH_SAM_APDU [16:34:49]CAPDU: 80 0D 02 02 05 07 CE BA 89 4F [16:34:49]Write to MH i2c: E2 0D 00 13 5F 80 0D 02 02 05 00 07 CE BA 89 4F 00 00 5D [16:34:49]Write i2c OK [16:34:49]MH_I2C_Read... [16:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:49]Read from MH i2c: E2 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: E2 03 00 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: E2 03 00 13 5F 00 90 00 E6 [16:34:49]RAPDU: 90 00 [16:34:49]wFMCommunicate OK [16:34:49]wFMCommunicate request_size=4 [16:34:49]MH_SAM_APDU [16:34:49]CAPDU: 80 0D 03 02 [16:34:49]Write to MH i2c: E2 08 00 14 5F 80 0D 03 02 00 00 00 00 EE [16:34:49]Write i2c OK [16:34:49]MH_I2C_Read... [16:34:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:49]Read from MH i2c: E2 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: E2 0B 00 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: E2 0B 00 14 5F 00 7D 4D A0 E9 0F 0D FF 30 90 00 8D [16:34:49]RAPDU: 7D 4D A0 E9 0F 0D FF 30 90 00 [16:34:49]wFMCommunicate OK [16:34:49]SAM_PROTO_SignData done [16:34:49]FM_MakeSignedData done [16:34:49]CreateOFDProtocolMessage [16:34:49]wFMCommunicate request_size=4 [16:34:49]MH_SAM_APDU [16:34:49]CAPDU: 80 11 00 00 [16:34:49]Write to MH i2c: E2 08 00 15 5F 80 11 00 00 00 00 00 00 EE [16:34:49]Write i2c OK [16:34:49]MH_I2C_Read... [16:34:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:49]Read from MH i2c: E2 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: E2 17 00 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: E2 17 00 15 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 41 [16:34:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:34:49]wFMCommunicate OK [16:34:49]CreateOFDProtocolMessage done [16:34:49]OFDSenderStorePacket 192677 [16:34:49]StoreOFDPacket docnum=192677 [16:34:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1A 2D 07 01 76 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 2E BD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 F0 02 00 35 04 06 00 33 07 CE BA 89 4F 7D 4D A0 E9 0F 0D FF 30 [16:34:49]CheckFolder [16:34:49]dirname=/storage/ofd_packets [16:34:49]CheckFolder done [16:34:49]ProducePacketName [16:34:49]name=ofd_packets/00192677 [16:34:49]NVStorageSaveData ofd_packets/00192677 [16:34:49]File name is /storage/ofd_packets/00192677 [16:34:49]Write 301 bytes [16:34:49]NVStorageSaveData done [16:34:49]OFDSenderStorePacket done [16:34:49]KKMCreateOFDPacket done [16:34:49]NVStorageSaveData kkm_last_timestamp [16:34:49]File name is /storage/kkm_last_timestamp [16:34:49]Write 4 bytes [16:34:49]NVStorageSaveData done [16:34:49]ExternCall_PrintAddStr [16:34:49]wPrintStart [16:34:49]Write to MH i2c: 01 00 00 16 5F 75 [16:34:49]Write i2c OK [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: 01 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: 01 07 00 [16:34:49]MH_I2C_Read... [16:34:49]Read from MH i2c: 01 07 00 16 5F 00 00 00 00 00 FF 0F 8A [16:34:49]RasterBufferAndPrint [16:34:49]line Счет N : (1)32004 [16:34:49]line ИНН: 02508201610067 [16:34:49]line Контрольно-Кассовый Чек [16:34:49]line ПРОДАЖА [16:34:49]line ТРК (МРК, ГНК) : 12 [16:34:49]line Товар: 2710124130 [16:34:49]line Аи-92-К-5 [16:34:49]line 2.990 * 66.90 [16:34:49]line = 200.03 [16:34:49]line НДС 12% НСП 1% [16:34:49]line > о реализуемом товаре [16:34:49]line ИТОГО: 200.03 [16:34:49]line НСП 1% : 1.77 [16:34:49]line НДС 12% : 21.24 [16:34:49]line Наличными: 0.00 [16:34:49]line Безнал.: 200.03 [16:34:49]line Место: АЗС № 170 "Партнер Нефть" [16:34:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:34:49]line СНО: Общий режим [16:34:49]line Чек 225 28.10.2024 16:34 [16:34:49]line Смена: 543 ФФД: 1.0 [16:34:49]line ЗНМ: 0300000110 [16:34:49]line РНМ: 0000000000091776 [16:34:49]line Версия ККМ: 001 [16:34:49]line Платежная система: Кыргызкоммерцбанк [16:34:49]line ФМ: 0000000000871754 [16:34:49]line ФД: 192677 [16:34:49]line ФПД: 56108626118991 [16:34:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163454&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192677&fm=56108626118991&tin=02508201610067®Number=0000000000091776&sum=20003 [16:34:50]OFD Sender: Processing packet 192677 [packets to send 75, broken 74] [16:34:50]ProducePacketName [16:34:50]name=ofd_packets/00192677 [16:34:50]OFD Sender: To server: pG, [16:34:50]CommunicateWithHost lk.salyk.kg:30040 [16:34:50]ConnectInit lk.salyk.kg [16:34:50]written 0, free lines is 4095 [16:34:50]Connected sock=10 [16:34:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1A 2D 07 01 76 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 2E BD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 F0 02 00 35 04 06 00 33 07 CE BA 89 4F 7D 4D A0 E9 0F 0D FF 30 [16:34:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D5 B1 47 00 7C C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 F0 02 00 F4 03 04 00 F1 61 1F 67 B6 04 01 00 00 F0 5C D2 7F 6E AE F2 69 [16:34:50]CommunicateWithHost err = 0 [16:34:50]CheckOFDResponse [16:34:50]1017 (14) - 77093643461234 [16:34:50]1041 (16) - 0000000000871754 [16:34:50]1040 (4) - 192677 [16:34:50]1012 (4) - 28.10.2024 10:05 [16:34:50]1206 (1) - 0 [16:34:50]OFD Sender: Remove packet 192677 [16:34:50]ProducePacketName [16:34:50]name=ofd_packets/00192677 [16:34:50]NVStorageDeleteData [16:34:50]Write to MH i2c: 01 00 00 40 5F 9F [16:34:50]Write i2c OK [16:34:50]MH_I2C_Read... [16:34:50]Read from MH i2c: 01 [16:34:50]MH_I2C_Read... [16:34:50]Read from MH i2c: 01 07 00 [16:34:50]MH_I2C_Read... [16:34:50]Read from MH i2c: 01 07 00 40 5F 00 00 00 00 00 E1 0C 93 [16:34:50]RasterBufferAndPrint [16:34:50]line [16:34:50]line [16:34:50]line [16:34:50]line [16:34:50]line [16:34:50]written 0, free lines is 3303 [16:34:50]MH_Cut [16:34:50]Write to MH i2c: D1 01 00 47 5F 01 78 [16:34:50]Write i2c OK [16:34:50]MH_I2C_Read... [16:34:50]Read from MH i2c: D1 [16:34:50]MH_I2C_Read... [16:34:50]Read from MH i2c: D1 01 00 [16:34:50]MH_I2C_Read... [16:34:50]Read from MH i2c: D1 01 00 47 5F 00 77 [16:34:50]Write to MH i2c: 01 00 00 48 5F A7 [16:34:50]Write i2c OK [16:34:50]MH_I2C_Read... [16:34:50]OFD Sender: No OFD packet to send [16:34:51]*** Cut start [16:34:51]*** Partial cut [16:34:51]*** CUTSNS_PIN = 1 [16:34:51]*** CUTSNS_PIN = 0 [16:34:51]*** Brake cut motor [16:34:51]Read from MH i2c: 01 [16:34:51]MH_I2C_Read... [16:34:51]*** Stop cut motor [16:34:51]*** Cut end [16:34:51]Read from MH i2c: 01 07 00 [16:34:51]MH_I2C_Read... [16:34:51]Read from MH i2c: 01 07 00 48 5F 00 00 00 00 00 FF 0F BC [16:34:51]process_action close_receipt done [16:34:51]requested_data is exist [16:34:51]produce_requested_data [16:34:51]requested_item fm.sn is exist - process it [16:34:51]wFMCommunicate request_size=4 [16:34:51]MH_SAM_APDU [16:34:51]CAPDU: 80 11 00 00 [16:34:51]Write to MH i2c: E2 08 00 49 5F 80 11 00 00 00 00 00 00 22 [16:34:51]Write i2c OK [16:34:51]MH_I2C_Read... [16:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:51]Read from MH i2c: E2 [16:34:51]MH_I2C_Read... [16:34:52]Read from MH i2c: E2 17 00 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: E2 17 00 49 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 75 [16:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:34:52]wFMCommunicate OK [16:34:52]requested_item fd.num is exist - process it [16:34:52]SAM_PROTO_GetFieldsCounters [16:34:52]wFMCommunicate request_size=4 [16:34:52]MH_SAM_APDU [16:34:52]CAPDU: 80 13 00 00 [16:34:52]Write to MH i2c: E2 08 00 4A 5F 80 13 00 00 00 00 00 00 25 [16:34:52]Write i2c OK [16:34:52]MH_I2C_Read... [16:34:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:52]Read from MH i2c: E2 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: E2 62 00 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: E2 62 00 4A 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A5 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [16:34:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A5 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:52]wFMCommunicate OK [16:34:52]SAM_PROTO_GetFieldsCounters done [16:34:52]requested_item shift.num is exist - process it [16:34:52]requested_item shift.opened is exist - process it [16:34:52]req_shift_opened [16:34:52]FM_GetShiftState [16:34:52]SAM_PROTO_GetShiftState [16:34:52]wFMCommunicate request_size=4 [16:34:52]MH_SAM_APDU [16:34:52]CAPDU: 80 13 01 00 [16:34:52]Write to MH i2c: E2 08 00 4B 5F 80 13 01 00 00 00 00 00 27 [16:34:52]Write i2c OK [16:34:52]MH_I2C_Read... [16:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:52]Read from MH i2c: E2 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: E2 0E 00 [16:34:52]MH_I2C_Read... [16:34:52]Read from MH i2c: E2 0E 00 4B 5F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 77 [16:34:52]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:34:52]wFMCommunicate OK [16:34:52]SAM_PROTO_GetShiftState done [16:34:52]FM_GetShiftState done [16:34:52]req_shift_opened done [16:34:52]requested_item shift.open_date is exist - process it [16:34:52]req_shift_open_date [16:34:52]req_shift_open_date done [16:34:52]produce_requested_data done [16:34:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192677,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:34:52]process_action_free close_receipt [16:34:52]json_value_free [16:34:52]json_value_free done [16:34:52]process_json_proto returns [16:34:52]Send response to host [16:34:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192677,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:34:52]free response buf [16:34:52]execute_script done [16:34:52]execute_script returns [16:34:52]free content buf [16:34:52]Sock 7.Close socket [16:34:52]Sock 7.Thread stoped [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:06]accept exits with 9 [16:35:06]New connection [16:35:06]New thread 3066563940 created [16:35:06]Thread 3066707300 joined [16:35:06]Waiting for new connection... [16:35:06] Sock 9.Parse request [16:35:06]Sock 9.Check first char [16:35:06]Sock 9.First char is OK [16:35:06]request: POST /json_proto HTTP/1.0 [16:35:06]Method: POST [16:35:06]URL: /json_proto [16:35:06]Method is POST - this is cgi request [16:35:06]url: /json_proto [16:35:06]query_string will be loaded in cgi processing [16:35:06]execute_cgi json_proto POST (null) [16:35:06]execute_cgi path=json_proto method=POST [16:35:06]POST find Content-Length [16:35:06]Host: 172.17.63.131:8080 [16:35:06]Content-Length: 676 [16:35:06]Content-Type: application/json [16:35:06] [16:35:06]POST finish read [16:35:06]Found Content-Length = 676 [16:35:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:06]execute_script... [16:35:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:06]POST & json_proto [16:35:06]process_json_proto [16:35:06]json parsed OK: [16:35:06]protocol is kg_v1.0 [16:35:06]action value=close_receipt [16:35:06]process_action close_receipt [16:35:06]cmd_close_receipt [16:35:06]MH_GetDate [16:35:06]Write to MH i2c: F0 00 00 4C 5F 9A [16:35:06]Write i2c OK [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: F0 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: F0 09 00 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: F0 09 00 4C 5F 00 41 BD 1F 67 22 05 6E 64 20 [16:35:06]GetLastDocTimeStamp 1730133294 [16:35:06]current date 1730133313 [16:35:06]FM_GetShiftState [16:35:06]SAM_PROTO_GetShiftState [16:35:06]wFMCommunicate request_size=4 [16:35:06]MH_SAM_APDU [16:35:06]CAPDU: 80 13 01 00 [16:35:06]Write to MH i2c: E2 08 00 4D 5F 80 13 01 00 00 00 00 00 29 [16:35:06]Write i2c OK [16:35:06]MH_I2C_Read... [16:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:06]Read from MH i2c: E2 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: E2 0E 00 [16:35:06]MH_I2C_Read... [16:35:06]Read from MH i2c: E2 0E 00 4D 5F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 79 [16:35:06]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:35:06]wFMCommunicate OK [16:35:06]SAM_PROTO_GetShiftState done [16:35:06]FM_GetShiftState done [16:35:06]opened in 1730075620 [16:35:06]opened+sec_in_day 1730162020 [16:35:06]quantity*price = 60009 [16:35:06]sum+1 = 60010 [16:35:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 226 28.10.2024 16:35 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192678 ФПД: 225649070608797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163513&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192678&fm=225649070608797&tin=02508201610067®Number=0000000000091776&sum=60000 [16:35:08]StoreToDocumentArchive [16:35:08]shift 543 fd 192678 [16:35:08]save to /storage/0543/doc_00192678 [16:35:08]save last doc name /storage/0543/doc_00192678 to /storage/kkm_last_doc_name [16:35:08]save OK [16:35:08]Clear old archive folders... [16:35:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:08]tlvbuf is 01B210F0 [16:35:08]SAM_PROTO_ClearQueue [16:35:08]wFMCommunicate request_size=4 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 09 00 00 [16:35:08]Write to MH i2c: E2 08 00 5A 5F 80 09 00 00 00 00 00 00 2B [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 5A 5F 00 90 00 2D [16:35:08]RAPDU: 90 00 [16:35:08]wFMCommunicate OK [16:35:08]SAM_PROTO_ClearQueue done [16:35:08]KKMCreateOFDPacket [16:35:08]OFDProtocolAddRootSTLVToBuf [16:35:08]FM_MakeSignedData [16:35:08]FM_MakeSignedData [16:35:08]SAM_PROTO_SignData [16:35:08]wFMCommunicate request_size=4 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 0D 01 02 [16:35:08]Write to MH i2c: E2 08 00 5B 5F 80 0D 01 02 00 00 00 00 33 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 5B 5F 00 90 00 2E [16:35:08]RAPDU: 90 00 [16:35:08]wFMCommunicate OK [16:35:08]wFMCommunicate request_size=255 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 41 BD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 F0 02 00 35 04 06 00 CD [16:35:08]Write to MH i2c: E2 02 01 5C 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 41 BD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 F0 02 00 35 04 06 00 CD 00 00 90 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 5C 5F 00 90 00 2F [16:35:08]RAPDU: 90 00 [16:35:08]wFMCommunicate OK [16:35:08]wFMCommunicate request_size=10 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 0D 02 02 05 3A 04 B2 91 9D [16:35:08]Write to MH i2c: E2 0D 00 5D 5F 80 0D 02 02 05 00 3A 04 B2 91 9D 00 00 5E [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 03 00 5D 5F 00 90 00 30 [16:35:08]RAPDU: 90 00 [16:35:08]wFMCommunicate OK [16:35:08]wFMCommunicate request_size=4 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 0D 03 02 [16:35:08]Write to MH i2c: E2 08 00 5E 5F 80 0D 03 02 00 00 00 00 38 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 0B 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 0B 00 5E 5F 00 41 C8 A8 85 6F 42 5C 63 90 00 DF [16:35:08]RAPDU: 41 C8 A8 85 6F 42 5C 63 90 00 [16:35:08]wFMCommunicate OK [16:35:08]SAM_PROTO_SignData done [16:35:08]FM_MakeSignedData done [16:35:08]CreateOFDProtocolMessage [16:35:08]wFMCommunicate request_size=4 [16:35:08]MH_SAM_APDU [16:35:08]CAPDU: 80 11 00 00 [16:35:08]Write to MH i2c: E2 08 00 5F 5F 80 11 00 00 00 00 00 00 38 [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:08]Read from MH i2c: E2 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 17 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: E2 17 00 5F 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8B [16:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:35:08]wFMCommunicate OK [16:35:08]CreateOFDProtocolMessage done [16:35:08]OFDSenderStorePacket 192678 [16:35:08]StoreOFDPacket docnum=192678 [16:35:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C6 61 07 01 58 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 41 BD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 F0 02 00 35 04 06 00 CD 3A 04 B2 91 9D 41 C8 A8 85 6F 42 5C 63 [16:35:08]CheckFolder [16:35:08]dirname=/storage/ofd_packets [16:35:08]CheckFolder done [16:35:08]ProducePacketName [16:35:08]name=ofd_packets/00192678 [16:35:08]NVStorageSaveData ofd_packets/00192678 [16:35:08]File name is /storage/ofd_packets/00192678 [16:35:08]Write 301 bytes [16:35:08]NVStorageSaveData done [16:35:08]OFDSenderStorePacket done [16:35:08]KKMCreateOFDPacket done [16:35:08]NVStorageSaveData kkm_last_timestamp [16:35:08]File name is /storage/kkm_last_timestamp [16:35:08]Write 4 bytes [16:35:08]NVStorageSaveData done [16:35:08]ExternCall_PrintAddStr [16:35:08]wPrintStart [16:35:08]Write to MH i2c: 01 00 00 60 5F BF [16:35:08]Write i2c OK [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: 01 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: 01 07 00 [16:35:08]MH_I2C_Read... [16:35:08]Read from MH i2c: 01 07 00 60 5F 00 00 00 00 00 FF 0F D4 [16:35:08]RasterBufferAndPrint [16:35:08]line Счет N : (1)32005 [16:35:08]line ИНН: 02508201610067 [16:35:08]line Контрольно-Кассовый Чек [16:35:08]line ПРОДАЖА [16:35:08]line ТРК (МРК, ГНК) : 21 [16:35:08]line Товар: 2710124130 [16:35:08]line Аи-92-К-5 [16:35:08]line 8.970 * 66.90 [16:35:08]line = 600.09 [16:35:08]line НДС 12% НСП 1% [16:35:08]line > о реализуемом товаре [16:35:08]line ОКРУГЛЕНИЕ: -0.09 [16:35:08]line ИТОГО: 600.00 [16:35:08]line Внесено: 600.00 [16:35:08]line СДАЧА: 0.00 [16:35:08]line НСП 1% : 5.31 [16:35:08]line НДС 12% : 63.73 [16:35:08]line Наличными: 600.00 [16:35:08]line Безнал.: 0.00 [16:35:08]line Место: АЗС № 170 "Партнер Нефть" [16:35:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:35:08]line СНО: Общий режим [16:35:08]line Чек 226 28.10.2024 16:35 [16:35:08]line Смена: 543 ФФД: 1.0 [16:35:08]line ЗНМ: 0300000110 [16:35:08]line РНМ: 0000000000091776 [16:35:08]line Версия ККМ: 001 [16:35:08]line ФМ: 0000000000871754 [16:35:08]line ФД: 192678 [16:35:08]line ФПД: 225649070608797 [16:35:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163513&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192678&fm=225649070608797&tin=02508201610067®Number=0000000000091776&sum=60000 [16:35:08]OFD Sender: Processing packet 192678 [packets to send 75, broken 74] [16:35:08]ProducePacketName [16:35:08]name=ofd_packets/00192678 [16:35:08]OFD Sender: To server: pG, [16:35:08]CommunicateWithHost lk.salyk.kg:30040 [16:35:08]ConnectInit lk.salyk.kg [16:35:08]written 0, free lines is 4095 [16:35:09]Connected sock=11 [16:35:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C6 61 07 01 58 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 41 BD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 F0 02 00 35 04 06 00 CD 3A 04 B2 91 9D 41 C8 A8 85 6F 42 5C 63 [16:35:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 67 88 47 00 A7 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 F0 02 00 F4 03 04 00 04 62 1F 67 B6 04 01 00 00 19 75 C0 13 81 80 33 D2 [16:35:09]CommunicateWithHost err = 0 [16:35:09]CheckOFDResponse [16:35:09]1017 (14) - 77093643461234 [16:35:09]1041 (16) - 0000000000871754 [16:35:09]1040 (4) - 192678 [16:35:09]1012 (4) - 28.10.2024 10:05 [16:35:09]1206 (1) - 0 [16:35:09]OFD Sender: Remove packet 192678 [16:35:09]ProducePacketName [16:35:09]name=ofd_packets/00192678 [16:35:09]NVStorageDeleteData [16:35:09]Write to MH i2c: 01 00 00 8B 5F EA [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 07 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: 01 07 00 8B 5F 00 00 00 00 00 D0 0C CD [16:35:09]RasterBufferAndPrint [16:35:09]line [16:35:09]line [16:35:09]line [16:35:09]line [16:35:09]line [16:35:09]written 0, free lines is 3287 [16:35:09]MH_Cut [16:35:09]Write to MH i2c: D1 01 00 92 5F 01 C3 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: D1 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: D1 01 00 [16:35:09]MH_I2C_Read... [16:35:09]Read from MH i2c: D1 01 00 92 5F 00 C2 [16:35:09]Write to MH i2c: 01 00 00 93 5F F2 [16:35:09]Write i2c OK [16:35:09]MH_I2C_Read... [16:35:09]OFD Sender: No OFD packet to send [16:35:10]*** Cut start [16:35:10]*** Partial cut [16:35:10]*** CUTSNS_PIN = 1 [16:35:10]*** CUTSNS_PIN = 0 [16:35:10]*** Brake cut motor [16:35:10]Read from MH i2c: 01 [16:35:10]MH_I2C_Read... [16:35:10]*** Stop cut motor [16:35:10]*** Cut end [16:35:10]Read from MH i2c: 01 07 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: 01 07 00 93 5F 00 00 00 00 00 FF 0F 07 [16:35:10]process_action close_receipt done [16:35:10]requested_data is exist [16:35:10]produce_requested_data [16:35:10]requested_item fm.sn is exist - process it [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 11 00 00 [16:35:10]Write to MH i2c: E2 08 00 94 5F 80 11 00 00 00 00 00 00 6D [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:10]Read from MH i2c: E2 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 17 00 [16:35:10]MH_I2C_Read... [16:35:10]Read from MH i2c: E2 17 00 94 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C0 [16:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:35:10]wFMCommunicate OK [16:35:10]requested_item fd.num is exist - process it [16:35:10]SAM_PROTO_GetFieldsCounters [16:35:10]wFMCommunicate request_size=4 [16:35:10]MH_SAM_APDU [16:35:10]CAPDU: 80 13 00 00 [16:35:10]Write to MH i2c: E2 08 00 95 5F 80 13 00 00 00 00 00 00 70 [16:35:10]Write i2c OK [16:35:10]MH_I2C_Read... [16:35:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:11]Read from MH i2c: E2 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 62 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 62 00 95 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A6 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [16:35:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A6 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:35:11]wFMCommunicate OK [16:35:11]SAM_PROTO_GetFieldsCounters done [16:35:11]requested_item shift.num is exist - process it [16:35:11]requested_item shift.opened is exist - process it [16:35:11]req_shift_opened [16:35:11]FM_GetShiftState [16:35:11]SAM_PROTO_GetShiftState [16:35:11]wFMCommunicate request_size=4 [16:35:11]MH_SAM_APDU [16:35:11]CAPDU: 80 13 01 00 [16:35:11]Write to MH i2c: E2 08 00 96 5F 80 13 01 00 00 00 00 00 72 [16:35:11]Write i2c OK [16:35:11]MH_I2C_Read... [16:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:11]Read from MH i2c: E2 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 0E 00 [16:35:11]MH_I2C_Read... [16:35:11]Read from MH i2c: E2 0E 00 96 5F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C2 [16:35:11]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:35:11]wFMCommunicate OK [16:35:11]SAM_PROTO_GetShiftState done [16:35:11]FM_GetShiftState done [16:35:11]req_shift_opened done [16:35:11]requested_item shift.open_date is exist - process it [16:35:11]req_shift_open_date [16:35:11]req_shift_open_date done [16:35:11]produce_requested_data done [16:35:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192678,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:35:11]process_action_free close_receipt [16:35:11]json_value_free [16:35:11]json_value_free done [16:35:11]process_json_proto returns [16:35:11]Send response to host [16:35:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192678,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:35:11]free response buf [16:35:11]execute_script done [16:35:11]execute_script returns [16:35:11]free content buf [16:35:11]Sock 9.Close socket [16:35:11]Sock 9.Thread stoped [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]accept exits with 7 [16:36:04]New connection [16:36:04]New thread 3066707300 created [16:36:04]Thread 3066563940 joined [16:36:04]Waiting for new connection... [16:36:04] Sock 7.Parse request [16:36:04]Sock 7.Check first char [16:36:04]Sock 7.First char is OK [16:36:04]request: POST /json_proto HTTP/1.0 [16:36:04]Method: POST [16:36:04]URL: /json_proto [16:36:04]Method is POST - this is cgi request [16:36:04]url: /json_proto [16:36:04]query_string will be loaded in cgi processing [16:36:04]execute_cgi json_proto POST (null) [16:36:04]execute_cgi path=json_proto method=POST [16:36:04]POST find Content-Length [16:36:04]Host: 172.17.63.131:8080 [16:36:04]Content-Length: 676 [16:36:04]Content-Type: application/json [16:36:04] [16:36:04]POST finish read [16:36:04]Found Content-Length = 676 [16:36:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:04]execute_script... [16:36: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)32006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:04]POST & json_proto [16:36:04]process_json_proto [16:36:04]json parsed OK: [16:36:04]protocol is kg_v1.0 [16:36:04]action value=close_receipt [16:36:04]process_action close_receipt [16:36:04]cmd_close_receipt [16:36:04]MH_GetDate [16:36:04]Write to MH i2c: F0 00 00 97 5F E5 [16:36:04]Write i2c OK [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: F0 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: F0 09 00 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: F0 09 00 97 5F 00 7A BD 1F 67 22 05 6E 64 A4 [16:36:04]GetLastDocTimeStamp 1730133313 [16:36:04]current date 1730133370 [16:36:04]FM_GetShiftState [16:36:04]SAM_PROTO_GetShiftState [16:36:04]wFMCommunicate request_size=4 [16:36:04]MH_SAM_APDU [16:36:04]CAPDU: 80 13 01 00 [16:36:04]Write to MH i2c: E2 08 00 98 5F 80 13 01 00 00 00 00 00 74 [16:36:04]Write i2c OK [16:36:04]MH_I2C_Read... [16:36:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:04]Read from MH i2c: E2 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: E2 0E 00 [16:36:04]MH_I2C_Read... [16:36:04]Read from MH i2c: E2 0E 00 98 5F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C4 [16:36:04]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:36:04]wFMCommunicate OK [16:36:04]SAM_PROTO_GetShiftState done [16:36:04]FM_GetShiftState done [16:36:04]opened in 1730075620 [16:36:04]opened+sec_in_day 1730162020 [16:36:04]quantity*price = 20003 [16:36:04]sum+1 = 20004 [16:36:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 227 28.10.2024 16:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192679 ФПД: 67941882627402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163610&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192679&fm=67941882627402&tin=02508201610067®Number=0000000000091776&sum=20000 [16:36:05]StoreToDocumentArchive [16:36:05]shift 543 fd 192679 [16:36:05]save to /storage/0543/doc_00192679 [16:36:05]save last doc name /storage/0543/doc_00192679 to /storage/kkm_last_doc_name [16:36:05]save OK [16:36:05]Clear old archive folders... [16:36:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:36:05]tlvbuf is B6E9E350 [16:36:05]SAM_PROTO_ClearQueue [16:36:05]wFMCommunicate request_size=4 [16:36:05]MH_SAM_APDU [16:36:05]CAPDU: 80 09 00 00 [16:36:05]Write to MH i2c: E2 08 00 A5 5F 80 09 00 00 00 00 00 00 76 [16:36:05]Write i2c OK [16:36:05]MH_I2C_Read... [16:36:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:05]Read from MH i2c: E2 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: E2 03 00 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: E2 03 00 A5 5F 00 90 00 78 [16:36:05]RAPDU: 90 00 [16:36:05]wFMCommunicate OK [16:36:05]SAM_PROTO_ClearQueue done [16:36:05]KKMCreateOFDPacket [16:36:05]OFDProtocolAddRootSTLVToBuf [16:36:05]FM_MakeSignedData [16:36:05]FM_MakeSignedData [16:36:05]SAM_PROTO_SignData [16:36:05]wFMCommunicate request_size=4 [16:36:05]MH_SAM_APDU [16:36:05]CAPDU: 80 0D 01 02 [16:36:05]Write to MH i2c: E2 08 00 A6 5F 80 0D 01 02 00 00 00 00 7E [16:36:05]Write i2c OK [16:36:05]MH_I2C_Read... [16:36:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:05]Read from MH i2c: E2 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: E2 03 00 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: E2 03 00 A6 5F 00 90 00 79 [16:36:05]RAPDU: 90 00 [16:36:05]wFMCommunicate OK [16:36:05]wFMCommunicate request_size=255 [16:36:05]MH_SAM_APDU [16:36: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 7A BD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 F0 02 00 35 04 06 00 3D [16:36:05]Write to MH i2c: E2 02 01 A7 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 7A BD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 F0 02 00 35 04 06 00 3D 00 00 6B [16:36:05]Write i2c OK [16:36:05]MH_I2C_Read... [16:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:05]Read from MH i2c: E2 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: E2 03 00 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: E2 03 00 A7 5F 00 90 00 7A [16:36:05]RAPDU: 90 00 [16:36:05]wFMCommunicate OK [16:36:05]wFMCommunicate request_size=10 [16:36:05]MH_SAM_APDU [16:36:05]CAPDU: 80 0D 02 02 05 CA F3 C7 85 4A [16:36:05]Write to MH i2c: E2 0D 00 A8 5F 80 0D 02 02 05 00 CA F3 C7 85 4A 00 00 DE [16:36:05]Write i2c OK [16:36:05]MH_I2C_Read... [16:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:05]Read from MH i2c: E2 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: E2 03 00 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: E2 03 00 A8 5F 00 90 00 7B [16:36:05]RAPDU: 90 00 [16:36:05]wFMCommunicate OK [16:36:05]wFMCommunicate request_size=4 [16:36:05]MH_SAM_APDU [16:36:05]CAPDU: 80 0D 03 02 [16:36:05]Write to MH i2c: E2 08 00 A9 5F 80 0D 03 02 00 00 00 00 83 [16:36:05]Write i2c OK [16:36:05]MH_I2C_Read... [16:36:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:05]Read from MH i2c: E2 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: E2 0B 00 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: E2 0B 00 A9 5F 00 BA 5D EA D8 6C 98 65 22 90 00 E8 [16:36:05]RAPDU: BA 5D EA D8 6C 98 65 22 90 00 [16:36:05]wFMCommunicate OK [16:36:05]SAM_PROTO_SignData done [16:36:05]FM_MakeSignedData done [16:36:05]CreateOFDProtocolMessage [16:36:05]wFMCommunicate request_size=4 [16:36:05]MH_SAM_APDU [16:36:05]CAPDU: 80 11 00 00 [16:36:05]Write to MH i2c: E2 08 00 AA 5F 80 11 00 00 00 00 00 00 83 [16:36:05]Write i2c OK [16:36:05]MH_I2C_Read... [16:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:05]Read from MH i2c: E2 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: E2 17 00 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: E2 17 00 AA 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D6 [16:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:36:05]wFMCommunicate OK [16:36:05]CreateOFDProtocolMessage done [16:36:05]OFDSenderStorePacket 192679 [16:36:05]StoreOFDPacket docnum=192679 [16:36:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 6B 07 01 C0 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 7A BD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 F0 02 00 35 04 06 00 3D CA F3 C7 85 4A BA 5D EA D8 6C 98 65 22 [16:36:05]CheckFolder [16:36:05]dirname=/storage/ofd_packets [16:36:05]CheckFolder done [16:36:05]ProducePacketName [16:36:05]name=ofd_packets/00192679 [16:36:05]NVStorageSaveData ofd_packets/00192679 [16:36:05]File name is /storage/ofd_packets/00192679 [16:36:05]Write 301 bytes [16:36:05]NVStorageSaveData done [16:36:05]OFDSenderStorePacket done [16:36:05]KKMCreateOFDPacket done [16:36:05]NVStorageSaveData kkm_last_timestamp [16:36:05]File name is /storage/kkm_last_timestamp [16:36:05]Write 4 bytes [16:36:05]NVStorageSaveData done [16:36:05]ExternCall_PrintAddStr [16:36:05]wPrintStart [16:36:05]Write to MH i2c: 01 00 00 AB 5F 0A [16:36:05]Write i2c OK [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: 01 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: 01 07 00 [16:36:05]MH_I2C_Read... [16:36:05]Read from MH i2c: 01 07 00 AB 5F 00 00 00 00 00 FF 0F 1F [16:36:05]RasterBufferAndPrint [16:36:05]line Счет N : (1)32006 [16:36:05]line ИНН: 02508201610067 [16:36:05]line Контрольно-Кассовый Чек [16:36:05]line ПРОДАЖА [16:36:05]line ТРК (МРК, ГНК) : 21 [16:36:05]line Товар: 2710124130 [16:36:05]line Аи-92-К-5 [16:36:05]line 2.990 * 66.90 [16:36:05]line = 200.03 [16:36:05]line НДС 12% НСП 1% [16:36:05]line > о реализуемом товаре [16:36:05]line ОКРУГЛЕНИЕ: -0.03 [16:36:05]line ИТОГО: 200.00 [16:36:05]line Внесено: 200.00 [16:36:05]line СДАЧА: 0.00 [16:36:05]line НСП 1% : 1.77 [16:36:05]line НДС 12% : 21.24 [16:36:05]line Наличными: 200.00 [16:36:05]line Безнал.: 0.00 [16:36:05]line Место: АЗС № 170 "Партнер Нефть" [16:36:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:36:05]line СНО: Общий режим [16:36:05]line Чек 227 28.10.2024 16:36 [16:36:05]line Смена: 543 ФФД: 1.0 [16:36:05]line ЗНМ: 0300000110 [16:36:05]line РНМ: 0000000000091776 [16:36:05]line Версия ККМ: 001 [16:36:05]line ФМ: 0000000000871754 [16:36:05]line ФД: 192679 [16:36:05]line ФПД: 67941882627402 [16:36:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163610&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192679&fm=67941882627402&tin=02508201610067®Number=0000000000091776&sum=20000 [16:36:06]OFD Sender: Processing packet 192679 [packets to send 75, broken 74] [16:36:06]ProducePacketName [16:36:06]name=ofd_packets/00192679 [16:36:06]OFD Sender: To server: pG, [16:36:06]CommunicateWithHost lk.salyk.kg:30040 [16:36:06]ConnectInit lk.salyk.kg [16:36:06]written 0, free lines is 4095 [16:36:06]Connected sock=10 [16:36:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 6B 07 01 C0 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 7A BD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 F0 02 00 35 04 06 00 3D CA F3 C7 85 4A BA 5D EA D8 6C 98 65 22 [16:36:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C9 58 47 00 A3 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 F0 02 00 F4 03 04 00 3D 62 1F 67 B6 04 01 00 00 15 86 3E CC 8E C0 F4 BC [16:36:06]CommunicateWithHost err = 0 [16:36:06]CheckOFDResponse [16:36:06]1017 (14) - 77093643461234 [16:36:06]1041 (16) - 0000000000871754 [16:36:06]1040 (4) - 192679 [16:36:06]1012 (4) - 28.10.2024 10:06 [16:36:06]1206 (1) - 0 [16:36:06]OFD Sender: Remove packet 192679 [16:36:06]ProducePacketName [16:36:06]name=ofd_packets/00192679 [16:36:06]NVStorageDeleteData [16:36:06]Write to MH i2c: 01 00 00 D6 5F 35 [16:36:06]Write i2c OK [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: 01 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: 01 07 00 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: 01 07 00 D6 5F 00 00 00 00 00 D0 0C 18 [16:36:06]RasterBufferAndPrint [16:36:06]line [16:36:06]line [16:36:06]line [16:36:06]line [16:36:06]line [16:36:06]written 0, free lines is 3287 [16:36:06]MH_Cut [16:36:06]Write to MH i2c: D1 01 00 DD 5F 01 0E [16:36:06]Write i2c OK [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: D1 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: D1 01 00 [16:36:06]MH_I2C_Read... [16:36:06]Read from MH i2c: D1 01 00 DD 5F 00 0D [16:36:06]Write to MH i2c: 01 00 00 DE 5F 3D [16:36:06]Write i2c OK [16:36:06]MH_I2C_Read... [16:36:07]OFD Sender: No OFD packet to send [16:36:07]*** Cut start [16:36:07]*** Partial cut [16:36:07]*** CUTSNS_PIN = 1 [16:36:07]*** CUTSNS_PIN = 0 [16:36:07]*** Brake cut motor [16:36:08]Read from MH i2c: 01 [16:36:08]MH_I2C_Read... [16:36:08]*** Stop cut motor [16:36:08]*** Cut end [16:36:08]Read from MH i2c: 01 07 00 [16:36:08]MH_I2C_Read... [16:36:08]Read from MH i2c: 01 07 00 DE 5F 00 00 00 00 00 FF 0F 52 [16:36:08]process_action close_receipt done [16:36:08]requested_data is exist [16:36:08]produce_requested_data [16:36:08]requested_item fm.sn is exist - process it [16:36:08]wFMCommunicate request_size=4 [16:36:08]MH_SAM_APDU [16:36:08]CAPDU: 80 11 00 00 [16:36:08]Write to MH i2c: E2 08 00 DF 5F 80 11 00 00 00 00 00 00 B8 [16:36:08]Write i2c OK [16:36:08]MH_I2C_Read... [16:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:08]Read from MH i2c: E2 [16:36:08]MH_I2C_Read... [16:36:08]Read from MH i2c: E2 17 00 [16:36:08]MH_I2C_Read... [16:36:08]Read from MH i2c: E2 17 00 DF 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0B [16:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:36:08]wFMCommunicate OK [16:36:08]requested_item fd.num is exist - process it [16:36:08]SAM_PROTO_GetFieldsCounters [16:36:08]wFMCommunicate request_size=4 [16:36:08]MH_SAM_APDU [16:36:08]CAPDU: 80 13 00 00 [16:36:08]Write to MH i2c: E2 08 00 E0 5F 80 13 00 00 00 00 00 00 BB [16:36:08]Write i2c OK [16:36:08]MH_I2C_Read... [16:36:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:08]Read from MH i2c: E2 [16:36:08]MH_I2C_Read... [16:36:08]Read from MH i2c: E2 62 00 [16:36:08]MH_I2C_Read... [16:36:08]Read from MH i2c: E2 62 00 E0 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A7 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [16:36:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A7 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:08]wFMCommunicate OK [16:36:08]SAM_PROTO_GetFieldsCounters done [16:36:08]requested_item shift.num is exist - process it [16:36:08]requested_item shift.opened is exist - process it [16:36:08]req_shift_opened [16:36:08]FM_GetShiftState [16:36:08]SAM_PROTO_GetShiftState [16:36:08]wFMCommunicate request_size=4 [16:36:08]MH_SAM_APDU [16:36:08]CAPDU: 80 13 01 00 [16:36:08]Write to MH i2c: E2 08 00 E1 5F 80 13 01 00 00 00 00 00 BD [16:36:08]Write i2c OK [16:36:08]MH_I2C_Read... [16:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:08]Read from MH i2c: E2 [16:36:08]MH_I2C_Read... [16:36:08]Read from MH i2c: E2 0E 00 [16:36:08]MH_I2C_Read... [16:36:08]Read from MH i2c: E2 0E 00 E1 5F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0D [16:36:08]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:36:08]wFMCommunicate OK [16:36:08]SAM_PROTO_GetShiftState done [16:36:08]FM_GetShiftState done [16:36:08]req_shift_opened done [16:36:08]requested_item shift.open_date is exist - process it [16:36:08]req_shift_open_date [16:36:08]req_shift_open_date done [16:36:08]produce_requested_data done [16:36:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192679,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:36:08]process_action_free close_receipt [16:36:08]json_value_free [16:36:08]json_value_free done [16:36:08]process_json_proto returns [16:36:08]Send response to host [16:36:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192679,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:36:08]free response buf [16:36:08]execute_script done [16:36:08]execute_script returns [16:36:08]free content buf [16:36:08]Sock 7.Close socket [16:36:08]Sock 7.Thread stoped [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:15]accept exits with 9 [16:37:15]New connection [16:37:15]New thread 3066563940 created [16:37:15]Thread 3066707300 joined [16:37:15]Waiting for new connection... [16:37:15] Sock 9.Parse request [16:37:15]Sock 9.Check first char [16:37:15]Sock 9.First char is OK [16:37:15]request: POST /json_proto HTTP/1.0 [16:37:15]Method: POST [16:37:15]URL: /json_proto [16:37:15]Method is POST - this is cgi request [16:37:15]url: /json_proto [16:37:15]query_string will be loaded in cgi processing [16:37:15]execute_cgi json_proto POST (null) [16:37:15]execute_cgi path=json_proto method=POST [16:37:15]POST find Content-Length [16:37:15]Host: 172.17.63.131:8080 [16:37:15]Content-Length: 862 [16:37:15]Content-Type: application/json [16:37:15] [16:37:15]POST finish read [16:37:15]Found Content-Length = 862 [16:37:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:15]execute_script... [16:37: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)32008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:15]POST & json_proto [16:37:15]process_json_proto [16:37:15]json parsed OK: [16:37:15]protocol is kg_v1.0 [16:37:15]action value=close_receipt [16:37:15]process_action close_receipt [16:37:15]cmd_close_receipt [16:37:15]MH_GetDate [16:37:15]Write to MH i2c: F0 00 00 E2 5F 30 [16:37:15]Write i2c OK [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: F0 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: F0 09 00 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: F0 09 00 E2 5F 00 C1 BD 1F 67 22 05 6E 64 36 [16:37:15]GetLastDocTimeStamp 1730133370 [16:37:15]current date 1730133441 [16:37:15]FM_GetShiftState [16:37:15]SAM_PROTO_GetShiftState [16:37:15]wFMCommunicate request_size=4 [16:37:15]MH_SAM_APDU [16:37:15]CAPDU: 80 13 01 00 [16:37:15]Write to MH i2c: E2 08 00 E3 5F 80 13 01 00 00 00 00 00 BF [16:37:15]Write i2c OK [16:37:15]MH_I2C_Read... [16:37:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:15]Read from MH i2c: E2 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: E2 0E 00 [16:37:15]MH_I2C_Read... [16:37:15]Read from MH i2c: E2 0E 00 E3 5F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0F [16:37:15]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:37:15]wFMCommunicate OK [16:37:15]SAM_PROTO_GetShiftState done [16:37:15]FM_GetShiftState done [16:37:15]opened in 1730075620 [16:37:15]opened+sec_in_day 1730162020 [16:37:15]quantity*price = 50041 [16:37:15]sum+1 = 50042 [16:37:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 228 28.10.2024 16:37 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192680 ФПД: 251180283768215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163721&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192680&fm=251180283768215&tin=02508201610067®Number=0000000000091776&sum=50041 [16:37:16]StoreToDocumentArchive [16:37:16]shift 543 fd 192680 [16:37:16]save to /storage/0543/doc_00192680 [16:37:16]save last doc name /storage/0543/doc_00192680 to /storage/kkm_last_doc_name [16:37:16]save OK [16:37:16]Clear old archive folders... [16:37:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:16]tlvbuf is 01AD48F0 [16:37:16]SAM_PROTO_ClearQueue [16:37:16]wFMCommunicate request_size=4 [16:37:16]MH_SAM_APDU [16:37:16]CAPDU: 80 09 00 00 [16:37:16]Write to MH i2c: E2 08 00 F0 5F 80 09 00 00 00 00 00 00 C1 [16:37:16]Write i2c OK [16:37:16]MH_I2C_Read... [16:37:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:16]Read from MH i2c: E2 [16:37:16]MH_I2C_Read... [16:37:16]Read from MH i2c: E2 03 00 [16:37:16]MH_I2C_Read... [16:37:16]Read from MH i2c: E2 03 00 F0 5F 00 90 00 C3 [16:37:16]RAPDU: 90 00 [16:37:16]wFMCommunicate OK [16:37:16]SAM_PROTO_ClearQueue done [16:37:16]KKMCreateOFDPacket [16:37:16]OFDProtocolAddRootSTLVToBuf [16:37:16]FM_MakeSignedData [16:37:16]FM_MakeSignedData [16:37:16]SAM_PROTO_SignData [16:37:16]wFMCommunicate request_size=4 [16:37:16]MH_SAM_APDU [16:37:16]CAPDU: 80 0D 01 02 [16:37:16]Write to MH i2c: E2 08 00 F1 5F 80 0D 01 02 00 00 00 00 C9 [16:37:16]Write i2c OK [16:37:16]MH_I2C_Read... [16:37:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:16]Read from MH i2c: E2 [16:37:16]MH_I2C_Read... [16:37:16]Read from MH i2c: E2 03 00 [16:37:16]MH_I2C_Read... [16:37:16]Read from MH i2c: E2 03 00 F1 5F 00 90 00 C4 [16:37:16]RAPDU: 90 00 [16:37:16]wFMCommunicate OK [16:37:16]wFMCommunicate request_size=255 [16:37:16]MH_SAM_APDU [16:37: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 C1 BD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 F0 02 00 35 04 06 00 E4 [16:37:16]Write to MH i2c: E2 02 01 F2 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 C1 BD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 F0 02 00 35 04 06 00 E4 00 00 36 [16:37:16]Write i2c OK [16:37:16]MH_I2C_Read... [16:37:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:17]Read from MH i2c: E2 [16:37:17]MH_I2C_Read... [16:37:17]Read from MH i2c: E2 03 00 [16:37:17]MH_I2C_Read... [16:37:17]Read from MH i2c: E2 03 00 F2 5F 00 90 00 C5 [16:37:17]RAPDU: 90 00 [16:37:17]wFMCommunicate OK [16:37:17]wFMCommunicate request_size=10 [16:37:17]MH_SAM_APDU [16:37:17]CAPDU: 80 0D 02 02 05 72 77 96 AD 97 [16:37:17]Write to MH i2c: E2 0D 00 F3 5F 80 0D 02 02 05 00 72 77 96 AD 97 00 00 99 [16:37:17]Write i2c OK [16:37:17]MH_I2C_Read... [16:37:17]OFD Sender: No OFD packet to send [16:37:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:17]Read from MH i2c: E2 [16:37:17]MH_I2C_Read... [16:37:17]Read from MH i2c: E2 03 00 [16:37:17]MH_I2C_Read... [16:37:17]Read from MH i2c: E2 03 00 F3 5F 00 90 00 C6 [16:37:17]RAPDU: 90 00 [16:37:17]wFMCommunicate OK [16:37:17]wFMCommunicate request_size=4 [16:37:17]MH_SAM_APDU [16:37:17]CAPDU: 80 0D 03 02 [16:37:17]Write to MH i2c: E2 08 00 F4 5F 80 0D 03 02 00 00 00 00 CE [16:37:17]Write i2c OK [16:37:17]MH_I2C_Read... [16:37:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:17]Read from MH i2c: E2 [16:37:17]MH_I2C_Read... [16:37:17]Read from MH i2c: E2 0B 00 [16:37:17]MH_I2C_Read... [16:37:17]Read from MH i2c: E2 0B 00 F4 5F 00 33 9D 0D 60 AB 30 74 C6 90 00 21 [16:37:17]RAPDU: 33 9D 0D 60 AB 30 74 C6 90 00 [16:37:17]wFMCommunicate OK [16:37:17]SAM_PROTO_SignData done [16:37:17]FM_MakeSignedData done [16:37:17]CreateOFDProtocolMessage [16:37:17]wFMCommunicate request_size=4 [16:37:17]MH_SAM_APDU [16:37:17]CAPDU: 80 11 00 00 [16:37:17]Write to MH i2c: E2 08 00 F5 5F 80 11 00 00 00 00 00 00 CE [16:37:17]Write i2c OK [16:37:17]MH_I2C_Read... [16:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:17]Read from MH i2c: E2 [16:37:17]MH_I2C_Read... [16:37:17]Read from MH i2c: E2 17 00 [16:37:17]MH_I2C_Read... [16:37:17]Read from MH i2c: E2 17 00 F5 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 21 [16:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:37:17]wFMCommunicate OK [16:37:17]CreateOFDProtocolMessage done [16:37:17]OFDSenderStorePacket 192680 [16:37:17]StoreOFDPacket docnum=192680 [16:37:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 75 84 07 01 D1 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 C1 BD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 F0 02 00 35 04 06 00 E4 72 77 96 AD 97 33 9D 0D 60 AB 30 74 C6 [16:37:17]CheckFolder [16:37:17]dirname=/storage/ofd_packets [16:37:17]CheckFolder done [16:37:17]ProducePacketName [16:37:17]name=ofd_packets/00192680 [16:37:17]NVStorageSaveData ofd_packets/00192680 [16:37:17]File name is /storage/ofd_packets/00192680 [16:37:17]Write 301 bytes [16:37:17]NVStorageSaveData done [16:37:17]OFDSenderStorePacket done [16:37:17]KKMCreateOFDPacket done [16:37:17]NVStorageSaveData kkm_last_timestamp [16:37:17]File name is /storage/kkm_last_timestamp [16:37:17]Write 4 bytes [16:37:17]NVStorageSaveData done [16:37:17]ExternCall_PrintAddStr [16:37:17]wPrintStart [16:37:17]Write to MH i2c: 01 00 00 F6 5F 55 [16:37:17]Write i2c OK [16:37:17]MH_I2C_Read... [16:37:17]Read from MH i2c: 01 [16:37:17]MH_I2C_Read... [16:37:17]Read from MH i2c: 01 07 00 [16:37:17]MH_I2C_Read... [16:37:17]Read from MH i2c: 01 07 00 F6 5F 00 00 00 00 00 FF 0F 6A [16:37:17]RasterBufferAndPrint [16:37:17]line Счет N : (1)32008 [16:37:17]line ИНН: 02508201610067 [16:37:17]line Контрольно-Кассовый Чек [16:37:17]line ПРОДАЖА [16:37:17]line ТРК (МРК, ГНК) : 21 [16:37:17]line Товар: 2710124130 [16:37:17]line Аи-92-К-5 [16:37:17]line 7.480 * 66.90 [16:37:17]line = 500.41 [16:37:17]line НДС 12% НСП 1% [16:37:17]line > о реализуемом товаре [16:37:17]line ИТОГО: 500.41 [16:37:17]line НСП 1% : 4.43 [16:37:17]line НДС 12% : 53.14 [16:37:17]line Наличными: 0.00 [16:37:17]line Безнал.: 500.41 [16:37:17]line Место: АЗС № 170 "Партнер Нефть" [16:37:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:37:17]line СНО: Общий режим [16:37:17]line Чек 228 28.10.2024 16:37 [16:37:17]line Смена: 543 ФФД: 1.0 [16:37:17]line ЗНМ: 0300000110 [16:37:17]line РНМ: 0000000000091776 [16:37:17]line Версия ККМ: 001 [16:37:17]line Платежная система: Кыргызкоммерцбанк [16:37:17]line ФМ: 0000000000871754 [16:37:17]line ФД: 192680 [16:37:17]line ФПД: 251180283768215 [16:37:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163721&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192680&fm=251180283768215&tin=02508201610067®Number=0000000000091776&sum=50041 [16:37:17]OFD Sender: Processing packet 192680 [packets to send 75, broken 74] [16:37:17]ProducePacketName [16:37:17]name=ofd_packets/00192680 [16:37:17]OFD Sender: To server: pG, [16:37:17]CommunicateWithHost lk.salyk.kg:30040 [16:37:17]ConnectInit lk.salyk.kg [16:37:17]written 0, free lines is 4095 [16:37:17]Connected sock=10 [16:37:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 75 84 07 01 D1 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 C1 BD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 F0 02 00 35 04 06 00 E4 72 77 96 AD 97 33 9D 0D 60 AB 30 74 C6 [16:37:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F7 39 47 00 66 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 F0 02 00 F4 03 04 00 85 62 1F 67 B6 04 01 00 00 33 63 59 AE 05 CF BD 41 [16:37:17]CommunicateWithHost err = 0 [16:37:17]CheckOFDResponse [16:37:17]1017 (14) - 77093643461234 [16:37:17]1041 (16) - 0000000000871754 [16:37:17]1040 (4) - 192680 [16:37:17]1012 (4) - 28.10.2024 10:08 [16:37:17]1206 (1) - 0 [16:37:18]OFD Sender: Remove packet 192680 [16:37:18]ProducePacketName [16:37:18]name=ofd_packets/00192680 [16:37:18]NVStorageDeleteData [16:37:18]Write to MH i2c: 01 00 00 20 60 80 [16:37:18]Write i2c OK [16:37:18]MH_I2C_Read... [16:37:18]Read from MH i2c: 01 [16:37:18]MH_I2C_Read... [16:37:18]Read from MH i2c: 01 07 00 [16:37:18]MH_I2C_Read... [16:37:18]Read from MH i2c: 01 07 00 20 60 00 00 00 00 00 E7 0C 7A [16:37:18]RasterBufferAndPrint [16:37:18]line [16:37:18]line [16:37:18]line [16:37:18]line [16:37:18]line [16:37:18]written 0, free lines is 3310 [16:37:18]MH_Cut [16:37:18]Write to MH i2c: D1 01 00 27 60 01 59 [16:37:18]Write i2c OK [16:37:18]MH_I2C_Read... [16:37:18]Read from MH i2c: D1 [16:37:18]MH_I2C_Read... [16:37:18]Read from MH i2c: D1 01 00 [16:37:18]MH_I2C_Read... [16:37:18]Read from MH i2c: D1 01 00 27 60 00 58 [16:37:18]Write to MH i2c: 01 00 00 28 60 88 [16:37:18]Write i2c OK [16:37:18]MH_I2C_Read... [16:37:18]OFD Sender: No OFD packet to send [16:37:18]*** Cut start [16:37:18]*** Partial cut [16:37:18]*** CUTSNS_PIN = 1 [16:37:18]*** CUTSNS_PIN = 0 [16:37:19]*** Brake cut motor [16:37:19]Read from MH i2c: 01 [16:37:19]MH_I2C_Read... [16:37:19]*** Stop cut motor [16:37:19]*** Cut end [16:37:19]Read from MH i2c: 01 07 00 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: 01 07 00 28 60 00 00 00 00 00 FF 0F 9D [16:37:19]process_action close_receipt done [16:37:19]requested_data is exist [16:37:19]produce_requested_data [16:37:19]requested_item fm.sn is exist - process it [16:37:19]wFMCommunicate request_size=4 [16:37:19]MH_SAM_APDU [16:37:19]CAPDU: 80 11 00 00 [16:37:19]Write to MH i2c: E2 08 00 29 60 80 11 00 00 00 00 00 00 03 [16:37:19]Write i2c OK [16:37:19]MH_I2C_Read... [16:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:19]Read from MH i2c: E2 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 17 00 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 17 00 29 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 56 [16:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:37:19]wFMCommunicate OK [16:37:19]requested_item fd.num is exist - process it [16:37:19]SAM_PROTO_GetFieldsCounters [16:37:19]wFMCommunicate request_size=4 [16:37:19]MH_SAM_APDU [16:37:19]CAPDU: 80 13 00 00 [16:37:19]Write to MH i2c: E2 08 00 2A 60 80 13 00 00 00 00 00 00 06 [16:37:19]Write i2c OK [16:37:19]MH_I2C_Read... [16:37:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:19]Read from MH i2c: E2 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 62 00 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 62 00 2A 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A8 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [16:37:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A8 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:19]wFMCommunicate OK [16:37:19]SAM_PROTO_GetFieldsCounters done [16:37:19]requested_item shift.num is exist - process it [16:37:19]requested_item shift.opened is exist - process it [16:37:19]req_shift_opened [16:37:19]FM_GetShiftState [16:37:19]SAM_PROTO_GetShiftState [16:37:19]wFMCommunicate request_size=4 [16:37:19]MH_SAM_APDU [16:37:19]CAPDU: 80 13 01 00 [16:37:19]Write to MH i2c: E2 08 00 2B 60 80 13 01 00 00 00 00 00 08 [16:37:19]Write i2c OK [16:37:19]MH_I2C_Read... [16:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:19]Read from MH i2c: E2 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 0E 00 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 0E 00 2B 60 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 58 [16:37:19]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:37:19]wFMCommunicate OK [16:37:19]SAM_PROTO_GetShiftState done [16:37:19]FM_GetShiftState done [16:37:19]req_shift_opened done [16:37:19]requested_item shift.open_date is exist - process it [16:37:19]req_shift_open_date [16:37:19]req_shift_open_date done [16:37:19]produce_requested_data done [16:37:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192680,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:37:19]process_action_free close_receipt [16:37:19]json_value_free [16:37:19]json_value_free done [16:37:19]process_json_proto returns [16:37:19]Send response to host [16:37:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192680,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:37:19]free response buf [16:37:19]execute_script done [16:37:19]execute_script returns [16:37:19]free content buf [16:37:19]Sock 9.Close socket [16:37:19]Sock 9.Thread stoped [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:32]accept exits with 7 [16:38:32]New connection [16:38:32]New thread 3066707300 created [16:38:32]Thread 3066563940 joined [16:38:32]Waiting for new connection... [16:38:32] Sock 7.Parse request [16:38:32]Sock 7.Check first char [16:38:32]Sock 7.First char is OK [16:38:32]request: POST /json_proto HTTP/1.0 [16:38:32]Method: POST [16:38:32]URL: /json_proto [16:38:32]Method is POST - this is cgi request [16:38:32]url: /json_proto [16:38:32]query_string will be loaded in cgi processing [16:38:32]execute_cgi json_proto POST (null) [16:38:32]execute_cgi path=json_proto method=POST [16:38:32]POST find Content-Length [16:38:32]Host: 172.17.63.131:8080 [16:38:32]Content-Length: 678 [16:38:32]Content-Type: application/json [16:38:32] [16:38:32]POST finish read [16:38:32]Found Content-Length = 678 [16:38:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:32]execute_script... [16:38:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:32]POST & json_proto [16:38:32]process_json_proto [16:38:32]json parsed OK: [16:38:32]protocol is kg_v1.0 [16:38:32]action value=close_receipt [16:38:32]process_action close_receipt [16:38:32]cmd_close_receipt [16:38:32]MH_GetDate [16:38:32]Write to MH i2c: F0 00 00 2C 60 7B [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: F0 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: F0 09 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: F0 09 00 2C 60 00 0F BE 1F 67 22 05 6E 64 D0 [16:38:32]GetLastDocTimeStamp 1730133441 [16:38:32]current date 1730133519 [16:38:32]FM_GetShiftState [16:38:32]SAM_PROTO_GetShiftState [16:38:32]wFMCommunicate request_size=4 [16:38:32]MH_SAM_APDU [16:38:32]CAPDU: 80 13 01 00 [16:38:32]Write to MH i2c: E2 08 00 2D 60 80 13 01 00 00 00 00 00 0A [16:38:32]Write i2c OK [16:38:32]MH_I2C_Read... [16:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:32]Read from MH i2c: E2 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 0E 00 [16:38:32]MH_I2C_Read... [16:38:32]Read from MH i2c: E2 0E 00 2D 60 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 5A [16:38:32]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:38:32]wFMCommunicate OK [16:38:32]SAM_PROTO_GetShiftState done [16:38:32]FM_GetShiftState done [16:38:32]opened in 1730075620 [16:38:32]opened+sec_in_day 1730162020 [16:38:32]quantity*price = 200025 [16:38:32]sum+1 = 200026 [16:38:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 229 28.10.2024 16:38 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192681 ФПД: 64989971113430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163839&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192681&fm=64989971113430&tin=02508201610067®Number=0000000000091776&sum=200000 [16:38:34]StoreToDocumentArchive [16:38:34]shift 543 fd 192681 [16:38:34]save to /storage/0543/doc_00192681 [16:38:34]save last doc name /storage/0543/doc_00192681 to /storage/kkm_last_doc_name [16:38:34]save OK [16:38:34]Clear old archive folders... [16:38:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:38:34]tlvbuf is 01B410A0 [16:38:34]SAM_PROTO_ClearQueue [16:38:34]wFMCommunicate request_size=4 [16:38:34]MH_SAM_APDU [16:38:34]CAPDU: 80 09 00 00 [16:38:34]Write to MH i2c: E2 08 00 3A 60 80 09 00 00 00 00 00 00 0C [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:34]Read from MH i2c: E2 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 03 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 03 00 3A 60 00 90 00 0E [16:38:34]RAPDU: 90 00 [16:38:34]wFMCommunicate OK [16:38:34]SAM_PROTO_ClearQueue done [16:38:34]KKMCreateOFDPacket [16:38:34]OFDProtocolAddRootSTLVToBuf [16:38:34]FM_MakeSignedData [16:38:34]FM_MakeSignedData [16:38:34]SAM_PROTO_SignData [16:38:34]wFMCommunicate request_size=4 [16:38:34]MH_SAM_APDU [16:38:34]CAPDU: 80 0D 01 02 [16:38:34]Write to MH i2c: E2 08 00 3B 60 80 0D 01 02 00 00 00 00 14 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:34]Read from MH i2c: E2 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 03 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 03 00 3B 60 00 90 00 0F [16:38:34]RAPDU: 90 00 [16:38:34]wFMCommunicate OK [16:38:34]wFMCommunicate request_size=255 [16:38:34]MH_SAM_APDU [16:38: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 0F BE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 F0 02 00 35 04 06 00 3B 1B A8 24 [16:38:34]Write to MH i2c: E2 02 01 3C 60 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 0F BE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 F0 02 00 35 04 06 00 3B 1B A8 24 00 00 A2 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:34]Read from MH i2c: E2 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 03 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 03 00 3C 60 00 90 00 10 [16:38:34]RAPDU: 90 00 [16:38:34]wFMCommunicate OK [16:38:34]wFMCommunicate request_size=7 [16:38:34]MH_SAM_APDU [16:38:34]CAPDU: 80 0D 02 02 02 65 D6 [16:38:34]Write to MH i2c: E2 0A 00 3D 60 80 0D 02 02 02 00 65 D6 00 00 56 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:34]Read from MH i2c: E2 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 03 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 03 00 3D 60 00 90 00 11 [16:38:34]RAPDU: 90 00 [16:38:34]wFMCommunicate OK [16:38:34]wFMCommunicate request_size=4 [16:38:34]MH_SAM_APDU [16:38:34]CAPDU: 80 0D 03 02 [16:38:34]Write to MH i2c: E2 08 00 3E 60 80 0D 03 02 00 00 00 00 19 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:34]Read from MH i2c: E2 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 0B 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 0B 00 3E 60 00 34 9B 48 B3 8A C3 23 88 90 00 DC [16:38:34]RAPDU: 34 9B 48 B3 8A C3 23 88 90 00 [16:38:34]wFMCommunicate OK [16:38:34]SAM_PROTO_SignData done [16:38:34]FM_MakeSignedData done [16:38:34]CreateOFDProtocolMessage [16:38:34]wFMCommunicate request_size=4 [16:38:34]MH_SAM_APDU [16:38:34]CAPDU: 80 11 00 00 [16:38:34]Write to MH i2c: E2 08 00 3F 60 80 11 00 00 00 00 00 00 19 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:34]Read from MH i2c: E2 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 17 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 17 00 3F 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6C [16:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:38:34]wFMCommunicate OK [16:38:34]CreateOFDProtocolMessage done [16:38:34]OFDSenderStorePacket 192681 [16:38:34]StoreOFDPacket docnum=192681 [16:38:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F9 B5 04 01 6F 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 0F BE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 F0 02 00 35 04 06 00 3B 1B A8 24 65 D6 34 9B 48 B3 8A C3 23 88 [16:38:34]CheckFolder [16:38:34]dirname=/storage/ofd_packets [16:38:34]CheckFolder done [16:38:34]ProducePacketName [16:38:34]name=ofd_packets/00192681 [16:38:34]NVStorageSaveData ofd_packets/00192681 [16:38:34]File name is /storage/ofd_packets/00192681 [16:38:34]Write 298 bytes [16:38:34]NVStorageSaveData done [16:38:34]OFDSenderStorePacket done [16:38:34]KKMCreateOFDPacket done [16:38:34]NVStorageSaveData kkm_last_timestamp [16:38:34]File name is /storage/kkm_last_timestamp [16:38:34]Write 4 bytes [16:38:34]NVStorageSaveData done [16:38:34]ExternCall_PrintAddStr [16:38:34]wPrintStart [16:38:34]Write to MH i2c: 01 00 00 40 60 A0 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: 01 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: 01 07 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: 01 07 00 40 60 00 00 00 00 00 FF 0F B5 [16:38:34]RasterBufferAndPrint [16:38:34]line Счет N : (1)32007 [16:38:34]line ИНН: 02508201610067 [16:38:34]line Контрольно-Кассовый Чек [16:38:34]line ПРОДАЖА [16:38:34]line ТРК (МРК, ГНК) : 11 [16:38:34]line Товар: 2710194210 [16:38:34]line ДТ-К-5 [16:38:34]line 26.250 * 76.20 [16:38:34]line = 2000.25 [16:38:34]line НДС 12% НСП 1% [16:38:34]line > о реализуемом товаре [16:38:34]line ОКРУГЛЕНИЕ: -0.25 [16:38:34]line ИТОГО: 2000.00 [16:38:34]line Внесено: 2000.00 [16:38:34]line СДАЧА: 0.00 [16:38:34]line НСП 1% : 17.70 [16:38:34]line НДС 12% : 212.42 [16:38:34]line Наличными: 2000.00 [16:38:34]line Безнал.: 0.00 [16:38:34]line Место: АЗС № 170 "Партнер Нефть" [16:38:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:38:34]line СНО: Общий режим [16:38:34]line Чек 229 28.10.2024 16:38 [16:38:34]line Смена: 543 ФФД: 1.0 [16:38:34]line ЗНМ: 0300000110 [16:38:34]line РНМ: 0000000000091776 [16:38:34]line Версия ККМ: 001 [16:38:34]line ФМ: 0000000000871754 [16:38:34]line ФД: 192681 [16:38:34]line ФПД: 64989971113430 [16:38:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163839&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192681&fm=64989971113430&tin=02508201610067®Number=0000000000091776&sum=200000 [16:38:34]OFD Sender: Processing packet 192681 [packets to send 75, broken 74] [16:38:34]ProducePacketName [16:38:34]name=ofd_packets/00192681 [16:38:34]OFD Sender: To server: pG, [16:38:34]CommunicateWithHost lk.salyk.kg:30040 [16:38:34]ConnectInit lk.salyk.kg [16:38:34]written 0, free lines is 4095 [16:38:35]Connected sock=10 [16:38:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F9 B5 04 01 6F 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 0F BE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 F0 02 00 35 04 06 00 3B 1B A8 24 65 D6 34 9B 48 B3 8A C3 23 88 [16:38:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D3 C3 47 00 0A 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 F0 02 00 F4 03 04 00 D2 62 1F 67 B6 04 01 00 00 BF 83 C3 F3 F0 02 23 07 [16:38:35]CommunicateWithHost err = 0 [16:38:35]CheckOFDResponse [16:38:35]1017 (14) - 77093643461234 [16:38:35]1041 (16) - 0000000000871754 [16:38:35]1040 (4) - 192681 [16:38:35]1012 (4) - 28.10.2024 10:09 [16:38:35]1206 (1) - 0 [16:38:35]OFD Sender: Remove packet 192681 [16:38:35]ProducePacketName [16:38:35]name=ofd_packets/00192681 [16:38:35]NVStorageDeleteData [16:38:35]Write to MH i2c: 01 00 00 6B 60 CB [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: 01 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: 01 07 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: 01 07 00 6B 60 00 00 00 00 00 C4 0C A2 [16:38:35]RasterBufferAndPrint [16:38:35]line [16:38:35]line [16:38:35]line [16:38:35]line [16:38:35]line [16:38:35]written 0, free lines is 3274 [16:38:35]MH_Cut [16:38:35]Write to MH i2c: D1 01 00 72 60 01 A4 [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: D1 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: D1 01 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: D1 01 00 72 60 00 A3 [16:38:35]Write to MH i2c: 01 00 00 73 60 D3 [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]OFD Sender: No OFD packet to send [16:38:36]*** Cut start [16:38:36]*** Partial cut [16:38:36]*** CUTSNS_PIN = 1 [16:38:36]*** CUTSNS_PIN = 0 [16:38:36]*** Brake cut motor [16:38:36]Read from MH i2c: 01 [16:38:36]MH_I2C_Read... [16:38:36]*** Stop cut motor [16:38:36]*** Cut end [16:38:36]Read from MH i2c: 01 07 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: 01 07 00 73 60 00 00 00 00 00 FF 0F E8 [16:38:36]process_action close_receipt done [16:38:36]requested_data is exist [16:38:36]produce_requested_data [16:38:36]requested_item fm.sn is exist - process it [16:38:36]wFMCommunicate request_size=4 [16:38:36]MH_SAM_APDU [16:38:36]CAPDU: 80 11 00 00 [16:38:36]Write to MH i2c: E2 08 00 74 60 80 11 00 00 00 00 00 00 4E [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:36]Read from MH i2c: E2 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 17 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: E2 17 00 74 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A1 [16:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:38:36]wFMCommunicate OK [16:38:36]requested_item fd.num is exist - process it [16:38:36]SAM_PROTO_GetFieldsCounters [16:38:36]wFMCommunicate request_size=4 [16:38:36]MH_SAM_APDU [16:38:36]CAPDU: 80 13 00 00 [16:38:36]Write to MH i2c: E2 08 00 75 60 80 13 00 00 00 00 00 00 51 [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 62 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 62 00 75 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A9 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [16:38:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A9 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:37]wFMCommunicate OK [16:38:37]SAM_PROTO_GetFieldsCounters done [16:38:37]requested_item shift.num is exist - process it [16:38:37]requested_item shift.opened is exist - process it [16:38:37]req_shift_opened [16:38:37]FM_GetShiftState [16:38:37]SAM_PROTO_GetShiftState [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 13 01 00 [16:38:37]Write to MH i2c: E2 08 00 76 60 80 13 01 00 00 00 00 00 53 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 0E 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 0E 00 76 60 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A3 [16:38:37]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:38:37]wFMCommunicate OK [16:38:37]SAM_PROTO_GetShiftState done [16:38:37]FM_GetShiftState done [16:38:37]req_shift_opened done [16:38:37]requested_item shift.open_date is exist - process it [16:38:37]req_shift_open_date [16:38:37]req_shift_open_date done [16:38:37]produce_requested_data done [16:38:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192681,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:38:37]process_action_free close_receipt [16:38:37]json_value_free [16:38:37]json_value_free done [16:38:37]process_json_proto returns [16:38:37]Send response to host [16:38:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192681,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:38:37]free response buf [16:38:37]execute_script done [16:38:37]execute_script returns [16:38:37]free content buf [16:38:37]Sock 7.Close socket [16:38:37]Sock 7.Thread stoped [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]accept exits with 9 [16:39:35]New connection [16:39:35]New thread 3066563940 created [16:39:35]Thread 3066707300 joined [16:39:35]Waiting for new connection... [16:39:35] Sock 9.Parse request [16:39:35]Sock 9.Check first char [16:39:35]Sock 9.First char is OK [16:39:35]request: POST /json_proto HTTP/1.0 [16:39:35]Method: POST [16:39:35]URL: /json_proto [16:39:35]Method is POST - this is cgi request [16:39:35]url: /json_proto [16:39:35]query_string will be loaded in cgi processing [16:39:35]execute_cgi json_proto POST (null) [16:39:35]execute_cgi path=json_proto method=POST [16:39:35]POST find Content-Length [16:39:35]Host: 172.17.63.131:8080 [16:39:35]Content-Length: 983 [16:39:35]Content-Type: application/json [16:39:35] [16:39:35]POST finish read [16:39:35]Found Content-Length = 983 [16:39:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:35]execute_script... [16:39: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)32009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "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 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:35]POST & json_proto [16:39:35]process_json_proto [16:39:35]json parsed OK: [16:39:35]protocol is kg_v1.0 [16:39:35]action value=close_receipt [16:39:35]process_action close_receipt [16:39:35]cmd_close_receipt [16:39:35]MH_GetDate [16:39:35]Write to MH i2c: F0 00 00 77 60 C6 [16:39:35]Write i2c OK [16:39:35]MH_I2C_Read... [16:39:35]Read from MH i2c: F0 [16:39:35]MH_I2C_Read... [16:39:35]Read from MH i2c: F0 09 00 [16:39:35]MH_I2C_Read... [16:39:35]Read from MH i2c: F0 09 00 77 60 00 4D BE 1F 67 22 05 6E 64 59 [16:39:35]GetLastDocTimeStamp 1730133519 [16:39:35]current date 1730133581 [16:39:35]FM_GetShiftState [16:39:35]SAM_PROTO_GetShiftState [16:39:35]wFMCommunicate request_size=4 [16:39:35]MH_SAM_APDU [16:39:35]CAPDU: 80 13 01 00 [16:39:35]Write to MH i2c: E2 08 00 78 60 80 13 01 00 00 00 00 00 55 [16:39:35]Write i2c OK [16:39:35]MH_I2C_Read... [16:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:35]Read from MH i2c: E2 [16:39:35]MH_I2C_Read... [16:39:35]Read from MH i2c: E2 0E 00 [16:39:35]MH_I2C_Read... [16:39:35]Read from MH i2c: E2 0E 00 78 60 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A5 [16:39:35]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:39:35]wFMCommunicate OK [16:39:35]SAM_PROTO_GetShiftState done [16:39:35]FM_GetShiftState done [16:39:35]opened in 1730075620 [16:39:35]opened+sec_in_day 1730162020 [16:39:35]quantity*price = 200006 [16:39:35]sum+1 = 200008 [16:39:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 230 28.10.2024 16:39 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 30.35 сом ФМ: 0000000000871754 ФД: 192682 ФПД: 202311144953984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163941&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192682&fm=202311144953984&tin=02508201610067®Number=0000000000091776&sum=200000 [16:39:36]StoreToDocumentArchive [16:39:36]shift 543 fd 192682 [16:39:36]save to /storage/0543/doc_00192682 [16:39:36]save last doc name /storage/0543/doc_00192682 to /storage/kkm_last_doc_name [16:39:36]save OK [16:39:36]Clear old archive folders... [16:39:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:39:36]tlvbuf is 01B51190 [16:39:36]SAM_PROTO_ClearQueue [16:39:36]wFMCommunicate request_size=4 [16:39:36]MH_SAM_APDU [16:39:36]CAPDU: 80 09 00 00 [16:39:36]Write to MH i2c: E2 08 00 85 60 80 09 00 00 00 00 00 00 57 [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:36]Read from MH i2c: E2 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 03 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 03 00 85 60 00 90 00 59 [16:39:36]RAPDU: 90 00 [16:39:36]wFMCommunicate OK [16:39:36]SAM_PROTO_ClearQueue done [16:39:36]KKMCreateOFDPacket [16:39:36]OFDProtocolAddRootSTLVToBuf [16:39:36]FM_MakeSignedData [16:39:36]FM_MakeSignedData [16:39:36]SAM_PROTO_SignData [16:39:36]wFMCommunicate request_size=4 [16:39:36]MH_SAM_APDU [16:39:36]CAPDU: 80 0D 01 02 [16:39:36]Write to MH i2c: E2 08 00 86 60 80 0D 01 02 00 00 00 00 5F [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:36]Read from MH i2c: E2 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 03 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 03 00 86 60 00 90 00 5A [16:39:36]RAPDU: 90 00 [16:39:36]wFMCommunicate OK [16:39:36]wFMCommunicate request_size=255 [16:39:36]MH_SAM_APDU [16:39: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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 4D BE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA F0 02 00 35 04 06 00 B8 [16:39:36]Write to MH i2c: E2 02 01 87 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 4D BE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA F0 02 00 35 04 06 00 B8 00 00 66 [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:37]Read from MH i2c: E2 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: E2 03 00 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: E2 03 00 87 60 00 90 00 5B [16:39:37]RAPDU: 90 00 [16:39:37]wFMCommunicate OK [16:39:37]wFMCommunicate request_size=10 [16:39:37]MH_SAM_APDU [16:39:37]CAPDU: 80 0D 02 02 05 00 3B ED D8 80 [16:39:37]Write to MH i2c: E2 0D 00 88 60 80 0D 02 02 05 00 00 3B ED D8 80 00 00 EC [16:39:37]Write i2c OK [16:39:37]MH_I2C_Read... [16:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:37]Read from MH i2c: E2 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: E2 03 00 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: E2 03 00 88 60 00 90 00 5C [16:39:37]RAPDU: 90 00 [16:39:37]wFMCommunicate OK [16:39:37]wFMCommunicate request_size=4 [16:39:37]MH_SAM_APDU [16:39:37]CAPDU: 80 0D 03 02 [16:39:37]Write to MH i2c: E2 08 00 89 60 80 0D 03 02 00 00 00 00 64 [16:39:37]Write i2c OK [16:39:37]MH_I2C_Read... [16:39:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:37]Read from MH i2c: E2 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: E2 0B 00 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: E2 0B 00 89 60 00 D4 26 32 88 86 4F 0E 24 90 00 20 [16:39:37]RAPDU: D4 26 32 88 86 4F 0E 24 90 00 [16:39:37]wFMCommunicate OK [16:39:37]SAM_PROTO_SignData done [16:39:37]FM_MakeSignedData done [16:39:37]CreateOFDProtocolMessage [16:39:37]wFMCommunicate request_size=4 [16:39:37]MH_SAM_APDU [16:39:37]CAPDU: 80 11 00 00 [16:39:37]Write to MH i2c: E2 08 00 8A 60 80 11 00 00 00 00 00 00 64 [16:39:37]Write i2c OK [16:39:37]MH_I2C_Read... [16:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:37]Read from MH i2c: E2 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: E2 17 00 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: E2 17 00 8A 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B7 [16:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:39:37]wFMCommunicate OK [16:39:37]CreateOFDProtocolMessage done [16:39:37]OFDSenderStorePacket 192682 [16:39:37]StoreOFDPacket docnum=192682 [16:39:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A6 2F 07 01 D8 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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 4D BE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA F0 02 00 35 04 06 00 B8 00 3B ED D8 80 D4 26 32 88 86 4F 0E 24 [16:39:37]CheckFolder [16:39:37]dirname=/storage/ofd_packets [16:39:37]CheckFolder done [16:39:37]ProducePacketName [16:39:37]name=ofd_packets/00192682 [16:39:37]NVStorageSaveData ofd_packets/00192682 [16:39:37]File name is /storage/ofd_packets/00192682 [16:39:37]Write 301 bytes [16:39:37]NVStorageSaveData done [16:39:37]OFDSenderStorePacket done [16:39:37]KKMCreateOFDPacket done [16:39:37]NVStorageSaveData kkm_last_timestamp [16:39:37]File name is /storage/kkm_last_timestamp [16:39:37]Write 4 bytes [16:39:37]NVStorageSaveData done [16:39:37]ExternCall_PrintAddStr [16:39:37]wPrintStart [16:39:37]Write to MH i2c: 01 00 00 8B 60 EB [16:39:37]Write i2c OK [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: 01 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: 01 07 00 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: 01 07 00 8B 60 00 00 00 00 00 FF 0F 00 [16:39:37]RasterBufferAndPrint [16:39:37]line Счет N : (1)32009 [16:39:37]line ИНН: 02508201610067 [16:39:37]line Контрольно-Кассовый Чек [16:39:37]line ПРОДАЖА [16:39:37]line ТРК (МРК, ГНК) : 21 [16:39:37]line Товар: 2710124130 [16:39:37]line Аи-92-К-5 [16:39:37]line 30.350 * 65.90 [16:39:37]line = 2000.07 [16:39:37]line НДС 12% НСП 1% [16:39:37]line > о реализуемом товаре [16:39:37]line ОКРУГЛЕНИЕ: -0.07 [16:39:37]line ИТОГО: 2000.00 [16:39:37]line Внесено: 2000.00 [16:39:37]line СДАЧА: 0.00 [16:39:37]line НСП 1% : 17.70 [16:39:37]line НДС 12% : 212.40 [16:39:37]line Наличными: 2000.00 [16:39:37]line Безнал.: 0.00 [16:39:37]line Место: АЗС № 170 "Партнер Нефть" [16:39:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:39:37]line СНО: Общий режим [16:39:37]line Чек 230 28.10.2024 16:39 [16:39:37]line Смена: 543 ФФД: 1.0 [16:39:37]line ЗНМ: 0300000110 [16:39:37]line РНМ: 0000000000091776 [16:39:37]line Версия ККМ: 001 [16:39:37]line [16:39:37]line Дисконтная программа [16:39:37]line АИ-92 [16:39:37]line номер 170 [16:39:37]line сэкономлено 30.35 сом [16:39:37]line ФМ: 0000000000871754 [16:39:37]line ФД: 192682 [16:39:37]line ФПД: 202311144953984 [16:39:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163941&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192682&fm=202311144953984&tin=02508201610067®Number=0000000000091776&sum=200000 [16:39:37]OFD Sender: Processing packet 192682 [packets to send 75, broken 74] [16:39:37]ProducePacketName [16:39:37]name=ofd_packets/00192682 [16:39:37]OFD Sender: To server: pG, [16:39:37]CommunicateWithHost lk.salyk.kg:30040 [16:39:37]ConnectInit lk.salyk.kg [16:39:37]written 0, free lines is 4095 [16:39:37]Connected sock=10 [16:39:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A6 2F 07 01 D8 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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 4D BE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA F0 02 00 35 04 06 00 B8 00 3B ED D8 80 D4 26 32 88 86 4F 0E 24 [16:39:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 28 FB 47 00 AD 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA F0 02 00 F4 03 04 00 11 63 1F 67 B6 04 01 00 00 78 2D F0 84 9D C6 9A 15 [16:39:37]CommunicateWithHost err = 0 [16:39:37]CheckOFDResponse [16:39:37]1017 (14) - 77093643461234 [16:39:37]1041 (16) - 0000000000871754 [16:39:37]1040 (4) - 192682 [16:39:37]1012 (4) - 28.10.2024 10:10 [16:39:37]1206 (1) - 0 [16:39:37]OFD Sender: Remove packet 192682 [16:39:37]ProducePacketName [16:39:37]name=ofd_packets/00192682 [16:39:37]NVStorageDeleteData [16:39:38]Write to MH i2c: 01 00 00 BB 60 1B [16:39:38]Write i2c OK [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: 01 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: 01 07 00 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: 01 07 00 BB 60 00 00 00 00 00 76 0C A4 [16:39:38]RasterBufferAndPrint [16:39:38]line [16:39:38]line [16:39:38]line [16:39:38]line [16:39:38]line [16:39:38]written 0, free lines is 3197 [16:39:38]MH_Cut [16:39:38]Write to MH i2c: D1 01 00 C2 60 01 F4 [16:39:38]Write i2c OK [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: D1 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: D1 01 00 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: D1 01 00 C2 60 00 F3 [16:39:38]Write to MH i2c: 01 00 00 C3 60 23 [16:39:38]Write i2c OK [16:39:38]MH_I2C_Read... [16:39:38]OFD Sender: No OFD packet to send [16:39:38]*** Cut start [16:39:38]*** Partial cut [16:39:38]*** CUTSNS_PIN = 1 [16:39:38]*** CUTSNS_PIN = 0 [16:39:39]*** Brake cut motor [16:39:39]Read from MH i2c: 01 [16:39:39]MH_I2C_Read... [16:39:39]*** Stop cut motor [16:39:39]*** Cut end [16:39:39]Read from MH i2c: 01 07 00 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: 01 07 00 C3 60 00 00 00 00 00 FF 0F 38 [16:39:39]process_action close_receipt done [16:39:39]requested_data is exist [16:39:39]produce_requested_data [16:39:39]requested_item fm.sn is exist - process it [16:39:39]wFMCommunicate request_size=4 [16:39:39]MH_SAM_APDU [16:39:39]CAPDU: 80 11 00 00 [16:39:39]Write to MH i2c: E2 08 00 C4 60 80 11 00 00 00 00 00 00 9E [16:39:39]Write i2c OK [16:39:39]MH_I2C_Read... [16:39:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:39]Read from MH i2c: E2 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 17 00 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 17 00 C4 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [16:39:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:39:39]wFMCommunicate OK [16:39:39]requested_item fd.num is exist - process it [16:39:39]SAM_PROTO_GetFieldsCounters [16:39:39]wFMCommunicate request_size=4 [16:39:39]MH_SAM_APDU [16:39:39]CAPDU: 80 13 00 00 [16:39:39]Write to MH i2c: E2 08 00 C5 60 80 13 00 00 00 00 00 00 A1 [16:39:39]Write i2c OK [16:39:39]MH_I2C_Read... [16:39:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:39]Read from MH i2c: E2 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 62 00 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 62 00 C5 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AA F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [16:39:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AA F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:39]wFMCommunicate OK [16:39:39]SAM_PROTO_GetFieldsCounters done [16:39:39]requested_item shift.num is exist - process it [16:39:39]requested_item shift.opened is exist - process it [16:39:39]req_shift_opened [16:39:39]FM_GetShiftState [16:39:39]SAM_PROTO_GetShiftState [16:39:39]wFMCommunicate request_size=4 [16:39:39]MH_SAM_APDU [16:39:39]CAPDU: 80 13 01 00 [16:39:39]Write to MH i2c: E2 08 00 C6 60 80 13 01 00 00 00 00 00 A3 [16:39:39]Write i2c OK [16:39:39]MH_I2C_Read... [16:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:39]Read from MH i2c: E2 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 0E 00 [16:39:39]MH_I2C_Read... [16:39:39]Read from MH i2c: E2 0E 00 C6 60 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F3 [16:39:39]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:39:39]wFMCommunicate OK [16:39:39]SAM_PROTO_GetShiftState done [16:39:39]FM_GetShiftState done [16:39:39]req_shift_opened done [16:39:39]requested_item shift.open_date is exist - process it [16:39:39]req_shift_open_date [16:39:39]req_shift_open_date done [16:39:39]produce_requested_data done [16:39:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192682,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:39:39]process_action_free close_receipt [16:39:39]json_value_free [16:39:39]json_value_free done [16:39:39]process_json_proto returns [16:39:39]Send response to host [16:39:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192682,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:39:39]free response buf [16:39:39]execute_script done [16:39:39]execute_script returns [16:39:39]free content buf [16:39:39]Sock 9.Close socket [16:39:39]Sock 9.Thread stoped [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:01]accept exits with 7 [16:41:01]New connection [16:41:01]New thread 3066707300 created [16:41:01]Thread 3066563940 joined [16:41:01]Waiting for new connection... [16:41:01] Sock 7.Parse request [16:41:01]Sock 7.Check first char [16:41:01]Sock 7.First char is OK [16:41:01]request: POST /json_proto HTTP/1.0 [16:41:01]Method: POST [16:41:01]URL: /json_proto [16:41:01]Method is POST - this is cgi request [16:41:01]url: /json_proto [16:41:01]query_string will be loaded in cgi processing [16:41:01]execute_cgi json_proto POST (null) [16:41:01]execute_cgi path=json_proto method=POST [16:41:01]POST find Content-Length [16:41:01]Host: 172.17.63.131:8080 [16:41:01]Content-Length: 676 [16:41:01]Content-Type: application/json [16:41:01] [16:41:01]POST finish read [16:41:01]Found Content-Length = 676 [16:41:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:01]execute_script... [16:41: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)32011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:01]POST & json_proto [16:41:01]process_json_proto [16:41:01]json parsed OK: [16:41:01]protocol is kg_v1.0 [16:41:01]action value=close_receipt [16:41:01]process_action close_receipt [16:41:01]cmd_close_receipt [16:41:01]MH_GetDate [16:41:01]Write to MH i2c: F0 00 00 C7 60 16 [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: F0 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: F0 09 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: F0 09 00 C7 60 00 A3 BE 1F 67 22 05 6E 64 FF [16:41:01]GetLastDocTimeStamp 1730133581 [16:41:01]current date 1730133667 [16:41:01]FM_GetShiftState [16:41:01]SAM_PROTO_GetShiftState [16:41:01]wFMCommunicate request_size=4 [16:41:01]MH_SAM_APDU [16:41:01]CAPDU: 80 13 01 00 [16:41:01]Write to MH i2c: E2 08 00 C8 60 80 13 01 00 00 00 00 00 A5 [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:01]Read from MH i2c: E2 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 0E 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 0E 00 C8 60 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F5 [16:41:01]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:41:01]wFMCommunicate OK [16:41:01]SAM_PROTO_GetShiftState done [16:41:01]FM_GetShiftState done [16:41:01]opened in 1730075620 [16:41:01]opened+sec_in_day 1730162020 [16:41:01]quantity*price = 50041 [16:41:01]sum+1 = 50042 [16:41:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 231 28.10.2024 16:41 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192683 ФПД: 6808575625516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T164107&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192683&fm=6808575625516&tin=02508201610067®Number=0000000000091776&sum=50000 [16:41:02]StoreToDocumentArchive [16:41:02]shift 543 fd 192683 [16:41:02]save to /storage/0543/doc_00192683 [16:41:02]save last doc name /storage/0543/doc_00192683 to /storage/kkm_last_doc_name [16:41:02]save OK [16:41:02]Clear old archive folders... [16:41:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:41:02]tlvbuf is 01AD8530 [16:41:02]SAM_PROTO_ClearQueue [16:41:02]wFMCommunicate request_size=4 [16:41:02]MH_SAM_APDU [16:41:02]CAPDU: 80 09 00 00 [16:41:02]Write to MH i2c: E2 08 00 D5 60 80 09 00 00 00 00 00 00 A7 [16:41:02]Write i2c OK [16:41:02]MH_I2C_Read... [16:41:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:02]Read from MH i2c: E2 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 03 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 03 00 D5 60 00 90 00 A9 [16:41:02]RAPDU: 90 00 [16:41:02]wFMCommunicate OK [16:41:02]SAM_PROTO_ClearQueue done [16:41:02]KKMCreateOFDPacket [16:41:02]OFDProtocolAddRootSTLVToBuf [16:41:02]FM_MakeSignedData [16:41:02]FM_MakeSignedData [16:41:02]SAM_PROTO_SignData [16:41:02]wFMCommunicate request_size=4 [16:41:02]MH_SAM_APDU [16:41:02]CAPDU: 80 0D 01 02 [16:41:02]Write to MH i2c: E2 08 00 D6 60 80 0D 01 02 00 00 00 00 AF [16:41:02]Write i2c OK [16:41:02]MH_I2C_Read... [16:41:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:02]Read from MH i2c: E2 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 03 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 03 00 D6 60 00 90 00 AA [16:41:02]RAPDU: 90 00 [16:41:02]wFMCommunicate OK [16:41:02]wFMCommunicate request_size=255 [16:41:02]MH_SAM_APDU [16:41:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 A3 BE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB F0 02 00 35 04 06 00 06 [16:41:02]Write to MH i2c: E2 02 01 D7 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 A3 BE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB F0 02 00 35 04 06 00 06 00 00 D5 [16:41:02]Write i2c OK [16:41:02]MH_I2C_Read... [16:41:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:02]Read from MH i2c: E2 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 03 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 03 00 D7 60 00 90 00 AB [16:41:02]RAPDU: 90 00 [16:41:02]wFMCommunicate OK [16:41:02]wFMCommunicate request_size=10 [16:41:02]MH_SAM_APDU [16:41:02]CAPDU: 80 0D 02 02 05 31 3E BB 49 2C [16:41:02]Write to MH i2c: E2 0D 00 D8 60 80 0D 02 02 05 00 31 3E BB 49 2C 00 00 5B [16:41:02]Write i2c OK [16:41:02]MH_I2C_Read... [16:41:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:02]Read from MH i2c: E2 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 03 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 03 00 D8 60 00 90 00 AC [16:41:02]RAPDU: 90 00 [16:41:02]wFMCommunicate OK [16:41:02]wFMCommunicate request_size=4 [16:41:02]MH_SAM_APDU [16:41:02]CAPDU: 80 0D 03 02 [16:41:02]Write to MH i2c: E2 08 00 D9 60 80 0D 03 02 00 00 00 00 B4 [16:41:02]Write i2c OK [16:41:02]MH_I2C_Read... [16:41:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:02]Read from MH i2c: E2 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 0B 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 0B 00 D9 60 00 E2 0E 25 7F 68 F7 D3 33 90 00 AE [16:41:02]RAPDU: E2 0E 25 7F 68 F7 D3 33 90 00 [16:41:02]wFMCommunicate OK [16:41:02]SAM_PROTO_SignData done [16:41:02]FM_MakeSignedData done [16:41:02]CreateOFDProtocolMessage [16:41:02]wFMCommunicate request_size=4 [16:41:02]MH_SAM_APDU [16:41:02]CAPDU: 80 11 00 00 [16:41:02]Write to MH i2c: E2 08 00 DA 60 80 11 00 00 00 00 00 00 B4 [16:41:02]Write i2c OK [16:41:02]MH_I2C_Read... [16:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:02]Read from MH i2c: E2 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 17 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 17 00 DA 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 07 [16:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:41:02]wFMCommunicate OK [16:41:02]CreateOFDProtocolMessage done [16:41:02]OFDSenderStorePacket 192683 [16:41:02]StoreOFDPacket docnum=192683 [16:41:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 57 50 07 01 2A AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 A3 BE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB F0 02 00 35 04 06 00 06 31 3E BB 49 2C E2 0E 25 7F 68 F7 D3 33 [16:41:02]CheckFolder [16:41:02]dirname=/storage/ofd_packets [16:41:02]CheckFolder done [16:41:02]ProducePacketName [16:41:02]name=ofd_packets/00192683 [16:41:02]NVStorageSaveData ofd_packets/00192683 [16:41:02]File name is /storage/ofd_packets/00192683 [16:41:02]Write 301 bytes [16:41:02]NVStorageSaveData done [16:41:02]OFDSenderStorePacket done [16:41:02]KKMCreateOFDPacket done [16:41:02]NVStorageSaveData kkm_last_timestamp [16:41:02]File name is /storage/kkm_last_timestamp [16:41:02]Write 4 bytes [16:41:02]NVStorageSaveData done [16:41:02]ExternCall_PrintAddStr [16:41:02]wPrintStart [16:41:02]Write to MH i2c: 01 00 00 DB 60 3B [16:41:02]Write i2c OK [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: 01 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: 01 07 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: 01 07 00 DB 60 00 00 00 00 00 FF 0F 50 [16:41:02]RasterBufferAndPrint [16:41:02]line Счет N : (1)32011 [16:41:02]line ИНН: 02508201610067 [16:41:02]line Контрольно-Кассовый Чек [16:41:02]line ПРОДАЖА [16:41:02]line ТРК (МРК, ГНК) : 21 [16:41:02]line Товар: 2710124130 [16:41:02]line Аи-92-К-5 [16:41:02]line 7.480 * 66.90 [16:41:02]line = 500.41 [16:41:02]line НДС 12% НСП 1% [16:41:02]line > о реализуемом товаре [16:41:02]line ОКРУГЛЕНИЕ: -0.41 [16:41:02]line ИТОГО: 500.00 [16:41:02]line Внесено: 500.00 [16:41:02]line СДАЧА: 0.00 [16:41:02]line НСП 1% : 4.43 [16:41:02]line НДС 12% : 53.14 [16:41:02]line Наличными: 500.00 [16:41:02]line Безнал.: 0.00 [16:41:02]line Место: АЗС № 170 "Партнер Нефть" [16:41:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:41:02]line СНО: Общий режим [16:41:02]line Чек 231 28.10.2024 16:41 [16:41:02]line Смена: 543 ФФД: 1.0 [16:41:02]line ЗНМ: 0300000110 [16:41:02]line РНМ: 0000000000091776 [16:41:02]line Версия ККМ: 001 [16:41:02]line ФМ: 0000000000871754 [16:41:02]line ФД: 192683 [16:41:02]line ФПД: 6808575625516 [16:41:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T164107&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192683&fm=6808575625516&tin=02508201610067®Number=0000000000091776&sum=50000 [16:41:02]written 0, free lines is 4095 [16:41:02]OFD Sender: Processing packet 192683 [packets to send 75, broken 74] [16:41:02]ProducePacketName [16:41:02]name=ofd_packets/00192683 [16:41:02]OFD Sender: To server: pG, [16:41:02]CommunicateWithHost lk.salyk.kg:30040 [16:41:02]ConnectInit lk.salyk.kg [16:41:02]Connected sock=10 [16:41:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 57 50 07 01 2A AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 A3 BE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB F0 02 00 35 04 06 00 06 31 3E BB 49 2C E2 0E 25 7F 68 F7 D3 33 [16:41:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8C 53 47 00 BD 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB F0 02 00 F4 03 04 00 66 63 1F 67 B6 04 01 00 00 F7 8B A6 E4 31 25 3F 16 [16:41:03]CommunicateWithHost err = 0 [16:41:03]CheckOFDResponse [16:41:03]1017 (14) - 77093643461234 [16:41:03]1041 (16) - 0000000000871754 [16:41:03]1040 (4) - 192683 [16:41:03]1012 (4) - 28.10.2024 10:11 [16:41:03]1206 (1) - 0 [16:41:03]OFD Sender: Remove packet 192683 [16:41:03]ProducePacketName [16:41:03]name=ofd_packets/00192683 [16:41:03]NVStorageDeleteData [16:41:03]Write to MH i2c: 01 00 00 06 61 67 [16:41:03]Write i2c OK [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: 01 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: 01 07 00 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: 01 07 00 06 61 00 00 00 00 00 C6 0C 40 [16:41:03]RasterBufferAndPrint [16:41:03]line [16:41:03]line [16:41:03]line [16:41:03]line [16:41:03]line [16:41:03]written 0, free lines is 3276 [16:41:03]MH_Cut [16:41:03]Write to MH i2c: D1 01 00 0D 61 01 40 [16:41:03]Write i2c OK [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: D1 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: D1 01 00 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: D1 01 00 0D 61 00 3F [16:41:03]Write to MH i2c: 01 00 00 0E 61 6F [16:41:03]Write i2c OK [16:41:03]MH_I2C_Read... [16:41:03]OFD Sender: No OFD packet to send [16:41:04]*** Cut start [16:41:04]*** Partial cut [16:41:04]*** CUTSNS_PIN = 1 [16:41:04]*** CUTSNS_PIN = 0 [16:41:04]*** Brake cut motor [16:41:04]Read from MH i2c: 01 [16:41:04]MH_I2C_Read... [16:41:04]*** Stop cut motor [16:41:04]*** Cut end [16:41:04]Read from MH i2c: 01 07 00 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: 01 07 00 0E 61 00 00 00 00 00 FF 0F 84 [16:41:04]process_action close_receipt done [16:41:04]requested_data is exist [16:41:04]produce_requested_data [16:41:04]requested_item fm.sn is exist - process it [16:41:04]wFMCommunicate request_size=4 [16:41:04]MH_SAM_APDU [16:41:04]CAPDU: 80 11 00 00 [16:41:04]Write to MH i2c: E2 08 00 0F 61 80 11 00 00 00 00 00 00 EA [16:41:04]Write i2c OK [16:41:04]MH_I2C_Read... [16:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:04]Read from MH i2c: E2 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: E2 17 00 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: E2 17 00 0F 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3D [16:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:41:04]wFMCommunicate OK [16:41:04]requested_item fd.num is exist - process it [16:41:04]SAM_PROTO_GetFieldsCounters [16:41:04]wFMCommunicate request_size=4 [16:41:04]MH_SAM_APDU [16:41:04]CAPDU: 80 13 00 00 [16:41:04]Write to MH i2c: E2 08 00 10 61 80 13 00 00 00 00 00 00 ED [16:41:04]Write i2c OK [16:41:04]MH_I2C_Read... [16:41:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:04]Read from MH i2c: E2 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: E2 62 00 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: E2 62 00 10 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AB F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [16:41:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AB F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:04]wFMCommunicate OK [16:41:04]SAM_PROTO_GetFieldsCounters done [16:41:04]requested_item shift.num is exist - process it [16:41:04]requested_item shift.opened is exist - process it [16:41:04]req_shift_opened [16:41:04]FM_GetShiftState [16:41:04]SAM_PROTO_GetShiftState [16:41:04]wFMCommunicate request_size=4 [16:41:04]MH_SAM_APDU [16:41:04]CAPDU: 80 13 01 00 [16:41:04]Write to MH i2c: E2 08 00 11 61 80 13 01 00 00 00 00 00 EF [16:41:04]Write i2c OK [16:41:04]MH_I2C_Read... [16:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:05]Read from MH i2c: E2 [16:41:05]MH_I2C_Read... [16:41:05]Read from MH i2c: E2 0E 00 [16:41:05]MH_I2C_Read... [16:41:05]Read from MH i2c: E2 0E 00 11 61 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3F [16:41:05]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:41:05]wFMCommunicate OK [16:41:05]SAM_PROTO_GetShiftState done [16:41:05]FM_GetShiftState done [16:41:05]req_shift_opened done [16:41:05]requested_item shift.open_date is exist - process it [16:41:05]req_shift_open_date [16:41:05]req_shift_open_date done [16:41:05]produce_requested_data done [16:41:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192683,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:41:05]process_action_free close_receipt [16:41:05]json_value_free [16:41:05]json_value_free done [16:41:05]process_json_proto returns [16:41:05]Send response to host [16:41:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192683,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:41:05]free response buf [16:41:05]execute_script done [16:41:05]execute_script returns [16:41:05]free content buf [16:41:05]Sock 7.Close socket [16:41:05]Sock 7.Thread stoped [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:13]accept exits with 9 [16:41:13]New connection [16:41:13]New thread 3066563940 created [16:41:13]Thread 3066707300 joined [16:41:13]Waiting for new connection... [16:41:13] Sock 9.Parse request [16:41:13]Sock 9.Check first char [16:41:13]Sock 9.First char is OK [16:41:13]request: POST /json_proto HTTP/1.0 [16:41:13]Method: POST [16:41:13]URL: /json_proto [16:41:13]Method is POST - this is cgi request [16:41:13]url: /json_proto [16:41:13]query_string will be loaded in cgi processing [16:41:13]execute_cgi json_proto POST (null) [16:41:13]execute_cgi path=json_proto method=POST [16:41:13]POST find Content-Length [16:41:13]Host: 172.17.63.131:8080 [16:41:13]Content-Length: 681 [16:41:13]Content-Type: application/json [16:41:13] [16:41:13]POST finish read [16:41:13]Found Content-Length = 681 [16:41:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.100, "sum" : 1010.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1010.00, "total" : 1010.00, "payments": [ { "type": 0, "sum" : 1010.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:13]execute_script... [16:41:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.100, "sum" : 1010.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1010.00, "total" : 1010.00, "payments": [ { "type": 0, "sum" : 1010.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:13]POST & json_proto [16:41:13]process_json_proto [16:41:13]json parsed OK: [16:41:13]protocol is kg_v1.0 [16:41:13]action value=close_receipt [16:41:13]process_action close_receipt [16:41:13]cmd_close_receipt [16:41:13]MH_GetDate [16:41:13]Write to MH i2c: F0 00 00 12 61 62 [16:41:13]Write i2c OK [16:41:13]MH_I2C_Read... [16:41:13]Read from MH i2c: F0 [16:41:13]MH_I2C_Read... [16:41:13]Read from MH i2c: F0 09 00 [16:41:13]MH_I2C_Read... [16:41:13]Read from MH i2c: F0 09 00 12 61 00 AF BE 1F 67 22 05 6E 64 57 [16:41:13]GetLastDocTimeStamp 1730133667 [16:41:13]current date 1730133679 [16:41:13]FM_GetShiftState [16:41:13]SAM_PROTO_GetShiftState [16:41:13]wFMCommunicate request_size=4 [16:41:13]MH_SAM_APDU [16:41:13]CAPDU: 80 13 01 00 [16:41:13]Write to MH i2c: E2 08 00 13 61 80 13 01 00 00 00 00 00 F1 [16:41:13]Write i2c OK [16:41:13]MH_I2C_Read... [16:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:13]Read from MH i2c: E2 [16:41:13]MH_I2C_Read... [16:41:13]Read from MH i2c: E2 0E 00 [16:41:13]MH_I2C_Read... [16:41:13]Read from MH i2c: E2 0E 00 13 61 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 41 [16:41:13]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:41:13]wFMCommunicate OK [16:41:13]SAM_PROTO_GetShiftState done [16:41:13]FM_GetShiftState done [16:41:13]opened in 1730075620 [16:41:13]opened+sec_in_day 1730162020 [16:41:13]quantity*price = 101019 [16:41:13]sum+1 = 101020 [16:41:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1010.00 Внесено: 1010.00 СДАЧА: 0.00 НСП 1% : 8.94 НДС 12% : 107.28 Наличными: 1010.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 232 28.10.2024 16:41 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192684 ФПД: 170128113876154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T164119&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192684&fm=170128113876154&tin=02508201610067®Number=0000000000091776&sum=101000 [16:41:14]StoreToDocumentArchive [16:41:14]shift 543 fd 192684 [16:41:14]save to /storage/0543/doc_00192684 [16:41:14]save last doc name /storage/0543/doc_00192684 to /storage/kkm_last_doc_name [16:41:14]save OK [16:41:14]Clear old archive folders... [16:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:41:14]tlvbuf is 019FE640 [16:41:14]SAM_PROTO_ClearQueue [16:41:14]wFMCommunicate request_size=4 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 09 00 00 [16:41:14]Write to MH i2c: E2 08 00 20 61 80 09 00 00 00 00 00 00 F3 [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:14]Read from MH i2c: E2 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 03 00 [16:41:14]MH_I2C_Read... [16:41:14]Read from MH i2c: E2 03 00 20 61 00 90 00 F5 [16:41:14]RAPDU: 90 00 [16:41:14]wFMCommunicate OK [16:41:14]SAM_PROTO_ClearQueue done [16:41:14]KKMCreateOFDPacket [16:41:14]OFDProtocolAddRootSTLVToBuf [16:41:14]FM_MakeSignedData [16:41:14]FM_MakeSignedData [16:41:14]SAM_PROTO_SignData [16:41:14]wFMCommunicate request_size=4 [16:41:14]MH_SAM_APDU [16:41:14]CAPDU: 80 0D 01 02 [16:41:14]Write to MH i2c: E2 08 00 21 61 80 0D 01 02 00 00 00 00 FB [16:41:14]Write i2c OK [16:41:14]MH_I2C_Read... [16:41:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:15]Read from MH i2c: E2 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: E2 03 00 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: E2 03 00 21 61 00 90 00 F6 [16:41:15]RAPDU: 90 00 [16:41:15]wFMCommunicate OK [16:41:15]wFMCommunicate request_size=255 [16:41:15]MH_SAM_APDU [16:41: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 FC 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9B 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 29 00 00 00 00 07 04 06 00 88 8A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 AF BE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC F0 02 00 35 04 06 00 9A [16:41:15]Write to MH i2c: E2 02 01 22 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9B 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 29 00 00 00 00 07 04 06 00 88 8A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 AF BE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC F0 02 00 35 04 06 00 9A 00 00 8E [16:41:15]Write i2c OK [16:41:15]MH_I2C_Read... [16:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:15]Read from MH i2c: E2 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: E2 03 00 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: E2 03 00 22 61 00 90 00 F7 [16:41:15]RAPDU: 90 00 [16:41:15]wFMCommunicate OK [16:41:15]wFMCommunicate request_size=10 [16:41:15]MH_SAM_APDU [16:41:15]CAPDU: 80 0D 02 02 05 BB 09 CB 3C BA [16:41:15]Write to MH i2c: E2 0D 00 23 61 80 0D 02 02 05 00 BB 09 CB 3C BA 00 00 8D [16:41:15]Write i2c OK [16:41:15]MH_I2C_Read... [16:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:15]Read from MH i2c: E2 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: E2 03 00 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: E2 03 00 23 61 00 90 00 F8 [16:41:15]RAPDU: 90 00 [16:41:15]wFMCommunicate OK [16:41:15]wFMCommunicate request_size=4 [16:41:15]MH_SAM_APDU [16:41:15]CAPDU: 80 0D 03 02 [16:41:15]Write to MH i2c: E2 08 00 24 61 80 0D 03 02 00 00 00 00 00 [16:41:15]Write i2c OK [16:41:15]MH_I2C_Read... [16:41:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:15]Read from MH i2c: E2 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: E2 0B 00 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: E2 0B 00 24 61 00 E4 69 83 E9 8F FA 68 98 90 00 43 [16:41:15]RAPDU: E4 69 83 E9 8F FA 68 98 90 00 [16:41:15]wFMCommunicate OK [16:41:15]SAM_PROTO_SignData done [16:41:15]FM_MakeSignedData done [16:41:15]CreateOFDProtocolMessage [16:41:15]wFMCommunicate request_size=4 [16:41:15]MH_SAM_APDU [16:41:15]CAPDU: 80 11 00 00 [16:41:15]Write to MH i2c: E2 08 00 25 61 80 11 00 00 00 00 00 00 00 [16:41:15]Write i2c OK [16:41:15]MH_I2C_Read... [16:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:15]Read from MH i2c: E2 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: E2 17 00 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: E2 17 00 25 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 53 [16:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:41:15]wFMCommunicate OK [16:41:15]CreateOFDProtocolMessage done [16:41:15]OFDSenderStorePacket 192684 [16:41:15]StoreOFDPacket docnum=192684 [16:41:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 98 71 07 01 D1 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9B 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 29 00 00 00 00 07 04 06 00 88 8A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 AF BE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC F0 02 00 35 04 06 00 9A BB 09 CB 3C BA E4 69 83 E9 8F FA 68 98 [16:41:15]CheckFolder [16:41:15]dirname=/storage/ofd_packets [16:41:15]CheckFolder done [16:41:15]ProducePacketName [16:41:15]name=ofd_packets/00192684 [16:41:15]NVStorageSaveData ofd_packets/00192684 [16:41:15]File name is /storage/ofd_packets/00192684 [16:41:15]Write 301 bytes [16:41:15]NVStorageSaveData done [16:41:15]OFDSenderStorePacket done [16:41:15]KKMCreateOFDPacket done [16:41:15]NVStorageSaveData kkm_last_timestamp [16:41:15]File name is /storage/kkm_last_timestamp [16:41:15]Write 4 bytes [16:41:15]NVStorageSaveData done [16:41:15]ExternCall_PrintAddStr [16:41:15]wPrintStart [16:41:15]Write to MH i2c: 01 00 00 26 61 87 [16:41:15]Write i2c OK [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: 01 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: 01 07 00 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: 01 07 00 26 61 00 00 00 00 00 FF 0F 9C [16:41:15]RasterBufferAndPrint [16:41:15]line Счет N : (1)32010 [16:41:15]line ИНН: 02508201610067 [16:41:15]line Контрольно-Кассовый Чек [16:41:15]line ПРОДАЖА [16:41:15]line ТРК (МРК, ГНК) : 12 [16:41:15]line Товар: 2710124130 [16:41:15]line Аи-92-К-5 [16:41:15]line 15.100 * 66.90 [16:41:15]line = 1010.19 [16:41:15]line НДС 12% НСП 1% [16:41:15]line > о реализуемом товаре [16:41:15]line ОКРУГЛЕНИЕ: -0.19 [16:41:15]line ИТОГО: 1010.00 [16:41:15]line Внесено: 1010.00 [16:41:15]line СДАЧА: 0.00 [16:41:15]line НСП 1% : 8.94 [16:41:15]line НДС 12% : 107.28 [16:41:15]line Наличными: 1010.00 [16:41:15]line Безнал.: 0.00 [16:41:15]line Место: АЗС № 170 "Партнер Нефть" [16:41:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:41:15]line СНО: Общий режим [16:41:15]line Чек 232 28.10.2024 16:41 [16:41:15]line Смена: 543 ФФД: 1.0 [16:41:15]line ЗНМ: 0300000110 [16:41:15]line РНМ: 0000000000091776 [16:41:15]line Версия ККМ: 001 [16:41:15]line ФМ: 0000000000871754 [16:41:15]line ФД: 192684 [16:41:15]line ФПД: 170128113876154 [16:41:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T164119&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192684&fm=170128113876154&tin=02508201610067®Number=0000000000091776&sum=101000 [16:41:15]written 0, free lines is 4095 [16:41:15]OFD Sender: Processing packet 192684 [packets to send 75, broken 74] [16:41:15]ProducePacketName [16:41:15]name=ofd_packets/00192684 [16:41:15]OFD Sender: To server: pG, [16:41:15]CommunicateWithHost lk.salyk.kg:30040 [16:41:15]ConnectInit lk.salyk.kg [16:41:15]Connected sock=10 [16:41:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 98 71 07 01 D1 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9B 8A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 8A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 29 00 00 00 00 07 04 06 00 88 8A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 AF BE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC F0 02 00 35 04 06 00 9A BB 09 CB 3C BA E4 69 83 E9 8F FA 68 98 [16:41:15]Write to MH i2c: 01 00 00 51 61 B2 [16:41:15]Write i2c OK [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: 01 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: 01 07 00 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: 01 07 00 51 61 00 00 00 00 00 C8 0C 8D [16:41:15]RasterBufferAndPrint [16:41:15]line [16:41:15]line [16:41:15]line [16:41:15]line [16:41:15]line [16:41:15]written 0, free lines is 3278 [16:41:15]MH_Cut [16:41:15]Write to MH i2c: D1 01 00 58 61 01 8B [16:41:15]Write i2c OK [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: D1 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: D1 01 00 [16:41:15]MH_I2C_Read... [16:41:15]Read from MH i2c: D1 01 00 58 61 00 8A [16:41:15]Write to MH i2c: 01 00 00 59 61 BA [16:41:15]Write i2c OK [16:41:15]MH_I2C_Read... [16:41:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7F FF 47 00 09 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC F0 02 00 F4 03 04 00 73 63 1F 67 B6 04 01 00 00 06 FD 86 A2 7B 67 07 B7 [16:41:16]CommunicateWithHost err = 0 [16:41:16]CheckOFDResponse [16:41:16]1017 (14) - 77093643461234 [16:41:16]1041 (16) - 0000000000871754 [16:41:16]1040 (4) - 192684 [16:41:16]1012 (4) - 28.10.2024 10:12 [16:41:16]1206 (1) - 0 [16:41:16]OFD Sender: Remove packet 192684 [16:41:16]ProducePacketName [16:41:16]name=ofd_packets/00192684 [16:41:16]NVStorageDeleteData [16:41:16]OFD Sender: No OFD packet to send [16:41:16]*** Cut start [16:41:16]*** Partial cut [16:41:16]*** CUTSNS_PIN = 1 [16:41:16]*** CUTSNS_PIN = 0 [16:41:17]*** Brake cut motor [16:41:17]Read from MH i2c: 01 [16:41:17]MH_I2C_Read... [16:41:17]*** Stop cut motor [16:41:17]*** Cut end [16:41:17]Read from MH i2c: 01 07 00 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: 01 07 00 59 61 00 00 00 00 00 FF 0F CF [16:41:17]process_action close_receipt done [16:41:17]requested_data is exist [16:41:17]produce_requested_data [16:41:17]requested_item fm.sn is exist - process it [16:41:17]wFMCommunicate request_size=4 [16:41:17]MH_SAM_APDU [16:41:17]CAPDU: 80 11 00 00 [16:41:17]Write to MH i2c: E2 08 00 5A 61 80 11 00 00 00 00 00 00 35 [16:41:17]Write i2c OK [16:41:17]MH_I2C_Read... [16:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:17]Read from MH i2c: E2 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: E2 17 00 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: E2 17 00 5A 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 88 [16:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:41:17]wFMCommunicate OK [16:41:17]requested_item fd.num is exist - process it [16:41:17]SAM_PROTO_GetFieldsCounters [16:41:17]wFMCommunicate request_size=4 [16:41:17]MH_SAM_APDU [16:41:17]CAPDU: 80 13 00 00 [16:41:17]Write to MH i2c: E2 08 00 5B 61 80 13 00 00 00 00 00 00 38 [16:41:17]Write i2c OK [16:41:17]MH_I2C_Read... [16:41:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:17]Read from MH i2c: E2 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: E2 62 00 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: E2 62 00 5B 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AC F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [16:41:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AC F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:17]wFMCommunicate OK [16:41:17]SAM_PROTO_GetFieldsCounters done [16:41:17]requested_item shift.num is exist - process it [16:41:17]requested_item shift.opened is exist - process it [16:41:17]req_shift_opened [16:41:17]FM_GetShiftState [16:41:17]SAM_PROTO_GetShiftState [16:41:17]wFMCommunicate request_size=4 [16:41:17]MH_SAM_APDU [16:41:17]CAPDU: 80 13 01 00 [16:41:17]Write to MH i2c: E2 08 00 5C 61 80 13 01 00 00 00 00 00 3A [16:41:17]Write i2c OK [16:41:17]MH_I2C_Read... [16:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:17]Read from MH i2c: E2 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: E2 0E 00 [16:41:17]MH_I2C_Read... [16:41:17]Read from MH i2c: E2 0E 00 5C 61 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 8A [16:41:17]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:41:17]wFMCommunicate OK [16:41:17]SAM_PROTO_GetShiftState done [16:41:17]FM_GetShiftState done [16:41:17]req_shift_opened done [16:41:17]requested_item shift.open_date is exist - process it [16:41:17]req_shift_open_date [16:41:17]req_shift_open_date done [16:41:17]produce_requested_data done [16:41:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192684,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:41:17]process_action_free close_receipt [16:41:17]json_value_free [16:41:17]json_value_free done [16:41:17]process_json_proto returns [16:41:17]Send response to host [16:41:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192684,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:41:17]free response buf [16:41:17]execute_script done [16:41:17]execute_script returns [16:41:17]free content buf [16:41:17]Sock 9.Close socket [16:41:17]Sock 9.Thread stoped [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:35]accept exits with 7 [16:42:35]New connection [16:42:35]New thread 3066707300 created [16:42:35]Thread 3066563940 joined [16:42:35]Waiting for new connection... [16:42:35] Sock 7.Parse request [16:42:35]Sock 7.Check first char [16:42:35]Sock 7.First char is OK [16:42:35]request: POST /json_proto HTTP/1.0 [16:42:35]Method: POST [16:42:35]URL: /json_proto [16:42:35]Method is POST - this is cgi request [16:42:35]url: /json_proto [16:42:35]query_string will be loaded in cgi processing [16:42:35]execute_cgi json_proto POST (null) [16:42:35]execute_cgi path=json_proto method=POST [16:42:35]POST find Content-Length [16:42:35]Host: 172.17.63.131:8080 [16:42:35]Content-Length: 677 [16:42:35]Content-Type: application/json [16:42:35] [16:42:35]POST finish read [16:42:35]Found Content-Length = 677 [16:42:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:35]execute_script... [16:42:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:35]POST & json_proto [16:42:35]process_json_proto [16:42:35]json parsed OK: [16:42:35]protocol is kg_v1.0 [16:42:35]action value=close_receipt [16:42:35]process_action close_receipt [16:42:35]cmd_close_receipt [16:42:35]MH_GetDate [16:42:35]Write to MH i2c: F0 00 00 5D 61 AD [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: F0 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: F0 09 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: F0 09 00 5D 61 00 01 BF 1F 67 22 05 6E 64 F5 [16:42:35]GetLastDocTimeStamp 1730133679 [16:42:35]current date 1730133761 [16:42:35]FM_GetShiftState [16:42:35]SAM_PROTO_GetShiftState [16:42:35]wFMCommunicate request_size=4 [16:42:35]MH_SAM_APDU [16:42:35]CAPDU: 80 13 01 00 [16:42:35]Write to MH i2c: E2 08 00 5E 61 80 13 01 00 00 00 00 00 3C [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:35]Read from MH i2c: E2 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 0E 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 0E 00 5E 61 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 8C [16:42:35]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:42:35]wFMCommunicate OK [16:42:35]SAM_PROTO_GetShiftState done [16:42:35]FM_GetShiftState done [16:42:35]opened in 1730075620 [16:42:35]opened+sec_in_day 1730162020 [16:42:35]quantity*price = 70044 [16:42:35]sum+1 = 70045 [16:42:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 233 28.10.2024 16:42 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192685 ФПД: 168968285202533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T164241&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192685&fm=168968285202533&tin=02508201610067®Number=0000000000091776&sum=70000 [16:42:36]StoreToDocumentArchive [16:42:36]shift 543 fd 192685 [16:42:36]save to /storage/0543/doc_00192685 [16:42:36]save last doc name /storage/0543/doc_00192685 to /storage/kkm_last_doc_name [16:42:36]save OK [16:42:36]Clear old archive folders... [16:42:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:36]tlvbuf is 01A65C20 [16:42:36]SAM_PROTO_ClearQueue [16:42:36]wFMCommunicate request_size=4 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 09 00 00 [16:42:36]Write to MH i2c: E2 08 00 6B 61 80 09 00 00 00 00 00 00 3E [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 03 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 03 00 6B 61 00 90 00 40 [16:42:36]RAPDU: 90 00 [16:42:36]wFMCommunicate OK [16:42:36]SAM_PROTO_ClearQueue done [16:42:36]KKMCreateOFDPacket [16:42:36]OFDProtocolAddRootSTLVToBuf [16:42:36]FM_MakeSignedData [16:42:36]FM_MakeSignedData [16:42:36]SAM_PROTO_SignData [16:42:36]wFMCommunicate request_size=4 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 0D 01 02 [16:42:36]Write to MH i2c: E2 08 00 6C 61 80 0D 01 02 00 00 00 00 46 [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 03 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 03 00 6C 61 00 90 00 41 [16:42:36]RAPDU: 90 00 [16:42:36]wFMCommunicate OK [16:42:36]wFMCommunicate request_size=255 [16:42:36]MH_SAM_APDU [16:42: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 01 BF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD F0 02 00 35 04 06 00 99 [16:42:36]Write to MH i2c: E2 02 01 6D 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 01 BF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD F0 02 00 35 04 06 00 99 00 00 72 [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 03 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 03 00 6D 61 00 90 00 42 [16:42:36]RAPDU: 90 00 [16:42:36]wFMCommunicate OK [16:42:36]wFMCommunicate request_size=10 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 0D 02 02 05 AC FE 9E 28 65 [16:42:36]Write to MH i2c: E2 0D 00 6E 61 80 0D 02 02 05 00 AC FE 9E 28 65 00 00 28 [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 03 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 03 00 6E 61 00 90 00 43 [16:42:36]RAPDU: 90 00 [16:42:36]wFMCommunicate OK [16:42:36]wFMCommunicate request_size=4 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 0D 03 02 [16:42:36]Write to MH i2c: E2 08 00 6F 61 80 0D 03 02 00 00 00 00 4B [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 0B 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 0B 00 6F 61 00 19 0F 76 97 19 D0 FD 49 90 00 B0 [16:42:36]RAPDU: 19 0F 76 97 19 D0 FD 49 90 00 [16:42:36]wFMCommunicate OK [16:42:36]SAM_PROTO_SignData done [16:42:36]FM_MakeSignedData done [16:42:36]CreateOFDProtocolMessage [16:42:36]wFMCommunicate request_size=4 [16:42:36]MH_SAM_APDU [16:42:36]CAPDU: 80 11 00 00 [16:42:36]Write to MH i2c: E2 08 00 70 61 80 11 00 00 00 00 00 00 4B [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:36]Read from MH i2c: E2 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 17 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: E2 17 00 70 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9E [16:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:42:36]wFMCommunicate OK [16:42:36]CreateOFDProtocolMessage done [16:42:36]OFDSenderStorePacket 192685 [16:42:36]StoreOFDPacket docnum=192685 [16:42:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C2 78 07 01 4E F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 01 BF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD F0 02 00 35 04 06 00 99 AC FE 9E 28 65 19 0F 76 97 19 D0 FD 49 [16:42:36]CheckFolder [16:42:36]dirname=/storage/ofd_packets [16:42:36]CheckFolder done [16:42:36]ProducePacketName [16:42:36]name=ofd_packets/00192685 [16:42:36]NVStorageSaveData ofd_packets/00192685 [16:42:36]File name is /storage/ofd_packets/00192685 [16:42:36]Write 301 bytes [16:42:36]NVStorageSaveData done [16:42:36]OFDSenderStorePacket done [16:42:36]KKMCreateOFDPacket done [16:42:36]NVStorageSaveData kkm_last_timestamp [16:42:36]File name is /storage/kkm_last_timestamp [16:42:36]Write 4 bytes [16:42:36]NVStorageSaveData done [16:42:36]ExternCall_PrintAddStr [16:42:36]wPrintStart [16:42:36]Write to MH i2c: 01 00 00 71 61 D2 [16:42:36]Write i2c OK [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: 01 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: 01 07 00 [16:42:36]MH_I2C_Read... [16:42:36]Read from MH i2c: 01 07 00 71 61 00 00 00 00 00 FF 0F E7 [16:42:36]RasterBufferAndPrint [16:42:36]line Счет N : (1)32012 [16:42:36]line ИНН: 02508201610067 [16:42:36]line Контрольно-Кассовый Чек [16:42:36]line ПРОДАЖА [16:42:36]line ТРК (МРК, ГНК) : 21 [16:42:36]line Товар: 2710124130 [16:42:36]line Аи-92-К-5 [16:42:36]line 10.470 * 66.90 [16:42:36]line = 700.44 [16:42:36]line НДС 12% НСП 1% [16:42:36]line > о реализуемом товаре [16:42:36]line ОКРУГЛЕНИЕ: -0.44 [16:42:36]line ИТОГО: 700.00 [16:42:36]line Внесено: 700.00 [16:42:36]line СДАЧА: 0.00 [16:42:36]line НСП 1% : 6.20 [16:42:36]line НДС 12% : 74.38 [16:42:36]line Наличными: 700.00 [16:42:36]line Безнал.: 0.00 [16:42:36]line Место: АЗС № 170 "Партнер Нефть" [16:42:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:42:36]line СНО: Общий режим [16:42:36]line Чек 233 28.10.2024 16:42 [16:42:36]line Смена: 543 ФФД: 1.0 [16:42:36]line ЗНМ: 0300000110 [16:42:36]line РНМ: 0000000000091776 [16:42:36]line Версия ККМ: 001 [16:42:36]line ФМ: 0000000000871754 [16:42:36]line ФД: 192685 [16:42:36]line ФПД: 168968285202533 [16:42:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T164241&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192685&fm=168968285202533&tin=02508201610067®Number=0000000000091776&sum=70000 [16:42:36]written 0, free lines is 4095 [16:42:36]OFD Sender: Processing packet 192685 [packets to send 75, broken 74] [16:42:36]ProducePacketName [16:42:36]name=ofd_packets/00192685 [16:42:36]OFD Sender: To server: pG, [16:42:36]CommunicateWithHost lk.salyk.kg:30040 [16:42:36]ConnectInit lk.salyk.kg [16:42:36]Connected sock=10 [16:42:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C2 78 07 01 4E F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 01 BF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD F0 02 00 35 04 06 00 99 AC FE 9E 28 65 19 0F 76 97 19 D0 FD 49 [16:42:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BC CC 47 00 08 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD F0 02 00 F4 03 04 00 C4 63 1F 67 B6 04 01 00 00 1C 87 E7 29 84 6F B3 70 [16:42:37]CommunicateWithHost err = 0 [16:42:37]CheckOFDResponse [16:42:37]1017 (14) - 77093643461234 [16:42:37]1041 (16) - 0000000000871754 [16:42:37]1040 (4) - 192685 [16:42:37]1012 (4) - 28.10.2024 10:13 [16:42:37]1206 (1) - 0 [16:42:37]OFD Sender: Remove packet 192685 [16:42:37]ProducePacketName [16:42:37]name=ofd_packets/00192685 [16:42:37]NVStorageDeleteData [16:42:37]Write to MH i2c: 01 00 00 9C 61 FD [16:42:37]Write i2c OK [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: 01 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: 01 07 00 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: 01 07 00 9C 61 00 00 00 00 00 D0 0C E0 [16:42:37]RasterBufferAndPrint [16:42:37]line [16:42:37]line [16:42:37]line [16:42:37]line [16:42:37]line [16:42:37]written 0, free lines is 3287 [16:42:37]MH_Cut [16:42:37]Write to MH i2c: D1 01 00 A3 61 01 D6 [16:42:37]Write i2c OK [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: D1 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: D1 01 00 [16:42:37]MH_I2C_Read... [16:42:37]Read from MH i2c: D1 01 00 A3 61 00 D5 [16:42:37]Write to MH i2c: 01 00 00 A4 61 05 [16:42:37]Write i2c OK [16:42:37]MH_I2C_Read... [16:42:37]OFD Sender: No OFD packet to send [16:42:38]*** Cut start [16:42:38]*** Partial cut [16:42:38]*** CUTSNS_PIN = 1 [16:42:38]*** CUTSNS_PIN = 0 [16:42:38]*** Brake cut motor [16:42:38]Read from MH i2c: 01 [16:42:38]MH_I2C_Read... [16:42:38]*** Stop cut motor [16:42:38]*** Cut end [16:42:38]Read from MH i2c: 01 07 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: 01 07 00 A4 61 00 00 00 00 00 FF 0F 1A [16:42:38]process_action close_receipt done [16:42:38]requested_data is exist [16:42:38]produce_requested_data [16:42:38]requested_item fm.sn is exist - process it [16:42:38]wFMCommunicate request_size=4 [16:42:38]MH_SAM_APDU [16:42:38]CAPDU: 80 11 00 00 [16:42:38]Write to MH i2c: E2 08 00 A5 61 80 11 00 00 00 00 00 00 80 [16:42:38]Write i2c OK [16:42:38]MH_I2C_Read... [16:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:38]Read from MH i2c: E2 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 17 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 17 00 A5 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D3 [16:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:42:38]wFMCommunicate OK [16:42:38]requested_item fd.num is exist - process it [16:42:38]SAM_PROTO_GetFieldsCounters [16:42:38]wFMCommunicate request_size=4 [16:42:38]MH_SAM_APDU [16:42:38]CAPDU: 80 13 00 00 [16:42:38]Write to MH i2c: E2 08 00 A6 61 80 13 00 00 00 00 00 00 83 [16:42:38]Write i2c OK [16:42:38]MH_I2C_Read... [16:42:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:38]Read from MH i2c: E2 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 62 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 62 00 A6 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AD F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [16:42:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AD F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:38]wFMCommunicate OK [16:42:38]SAM_PROTO_GetFieldsCounters done [16:42:38]requested_item shift.num is exist - process it [16:42:38]requested_item shift.opened is exist - process it [16:42:38]req_shift_opened [16:42:38]FM_GetShiftState [16:42:38]SAM_PROTO_GetShiftState [16:42:38]wFMCommunicate request_size=4 [16:42:38]MH_SAM_APDU [16:42:38]CAPDU: 80 13 01 00 [16:42:38]Write to MH i2c: E2 08 00 A7 61 80 13 01 00 00 00 00 00 85 [16:42:38]Write i2c OK [16:42:38]MH_I2C_Read... [16:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:38]Read from MH i2c: E2 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 0E 00 [16:42:38]MH_I2C_Read... [16:42:38]Read from MH i2c: E2 0E 00 A7 61 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D5 [16:42:38]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:42:38]wFMCommunicate OK [16:42:38]SAM_PROTO_GetShiftState done [16:42:38]FM_GetShiftState done [16:42:38]req_shift_opened done [16:42:38]requested_item shift.open_date is exist - process it [16:42:38]req_shift_open_date [16:42:38]req_shift_open_date done [16:42:38]produce_requested_data done [16:42:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192685,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:42:38]process_action_free close_receipt [16:42:38]json_value_free [16:42:38]json_value_free done [16:42:38]process_json_proto returns [16:42:38]Send response to host [16:42:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192685,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:42:38]free response buf [16:42:38]execute_script done [16:42:38]execute_script returns [16:42:38]free content buf [16:42:38]Sock 7.Close socket [16:42:38]Sock 7.Thread stoped [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:07]OFD Sender: No OFD packet to send [16:43:08]accept exits with 9 [16:43:08]New connection [16:43:08]New thread 3066563940 created [16:43:08]Thread 3066707300 joined [16:43:08]Waiting for new connection... [16:43:08] Sock 9.Parse request [16:43:08]Sock 9.Check first char [16:43:08]Sock 9.First char is OK [16:43:08]request: POST /json_proto HTTP/1.0 [16:43:08]Method: POST [16:43:08]URL: /json_proto [16:43:08]Method is POST - this is cgi request [16:43:08]url: /json_proto [16:43:08]query_string will be loaded in cgi processing [16:43:08]execute_cgi json_proto POST (null) [16:43:08]execute_cgi path=json_proto method=POST [16:43:08]POST find Content-Length [16:43:08]Host: 172.17.63.131:8080 [16:43:08]Content-Length: 676 [16:43:08]Content-Type: application/json [16:43:08] [16:43:08]POST finish read [16:43:08]Found Content-Length = 676 [16:43:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:08]execute_script... [16:43:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:08]POST & json_proto [16:43:08]process_json_proto [16:43:08]json parsed OK: [16:43:08]protocol is kg_v1.0 [16:43:08]action value=close_receipt [16:43:08]process_action close_receipt [16:43:08]cmd_close_receipt [16:43:08]MH_GetDate [16:43:08]Write to MH i2c: F0 00 00 A8 61 F8 [16:43:08]Write i2c OK [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: F0 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: F0 09 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: F0 09 00 A8 61 00 22 BF 1F 67 22 05 6E 64 61 [16:43:08]GetLastDocTimeStamp 1730133761 [16:43:08]current date 1730133794 [16:43:08]FM_GetShiftState [16:43:08]SAM_PROTO_GetShiftState [16:43:08]wFMCommunicate request_size=4 [16:43:08]MH_SAM_APDU [16:43:08]CAPDU: 80 13 01 00 [16:43:08]Write to MH i2c: E2 08 00 A9 61 80 13 01 00 00 00 00 00 87 [16:43:08]Write i2c OK [16:43:08]MH_I2C_Read... [16:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:08]Read from MH i2c: E2 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 0E 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 0E 00 A9 61 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D7 [16:43:08]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:43:08]wFMCommunicate OK [16:43:08]SAM_PROTO_GetShiftState done [16:43:08]FM_GetShiftState done [16:43:08]opened in 1730075620 [16:43:08]opened+sec_in_day 1730162020 [16:43:08]quantity*price = 60009 [16:43:08]sum+1 = 60010 [16:43:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 234 28.10.2024 16:43 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192686 ФПД: 41071796637234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T164314&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192686&fm=41071796637234&tin=02508201610067®Number=0000000000091776&sum=60000 [16:43:09]StoreToDocumentArchive [16:43:09]shift 543 fd 192686 [16:43:09]save to /storage/0543/doc_00192686 [16:43:09]save last doc name /storage/0543/doc_00192686 to /storage/kkm_last_doc_name [16:43:09]save OK [16:43:09]Clear old archive folders... [16:43:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:09]tlvbuf is 019B7000 [16:43:09]SAM_PROTO_ClearQueue [16:43:09]wFMCommunicate request_size=4 [16:43:09]MH_SAM_APDU [16:43:09]CAPDU: 80 09 00 00 [16:43:09]Write to MH i2c: E2 08 00 B6 61 80 09 00 00 00 00 00 00 89 [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:09]Read from MH i2c: E2 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 03 00 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 03 00 B6 61 00 90 00 8B [16:43:09]RAPDU: 90 00 [16:43:09]wFMCommunicate OK [16:43:09]SAM_PROTO_ClearQueue done [16:43:09]KKMCreateOFDPacket [16:43:09]OFDProtocolAddRootSTLVToBuf [16:43:09]FM_MakeSignedData [16:43:09]FM_MakeSignedData [16:43:09]SAM_PROTO_SignData [16:43:09]wFMCommunicate request_size=4 [16:43:09]MH_SAM_APDU [16:43:09]CAPDU: 80 0D 01 02 [16:43:09]Write to MH i2c: E2 08 00 B7 61 80 0D 01 02 00 00 00 00 91 [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:09]Read from MH i2c: E2 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 03 00 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 03 00 B7 61 00 90 00 8C [16:43:09]RAPDU: 90 00 [16:43:09]wFMCommunicate OK [16:43:09]wFMCommunicate request_size=255 [16:43:09]MH_SAM_APDU [16:43:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 22 BF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE F0 02 00 35 04 06 00 25 [16:43:09]Write to MH i2c: E2 02 01 B8 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 22 BF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE F0 02 00 35 04 06 00 25 00 00 39 [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:09]Read from MH i2c: E2 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 03 00 [16:43:09]MH_I2C_Read... [16:43:09]Read from MH i2c: E2 03 00 B8 61 00 90 00 8D [16:43:09]RAPDU: 90 00 [16:43:09]wFMCommunicate OK [16:43:09]wFMCommunicate request_size=10 [16:43:09]MH_SAM_APDU [16:43:09]CAPDU: 80 0D 02 02 05 5A C5 D9 4E 32 [16:43:09]Write to MH i2c: E2 0D 00 B9 61 80 0D 02 02 05 00 5A C5 D9 4E 32 00 00 16 [16:43:09]Write i2c OK [16:43:09]MH_I2C_Read... [16:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:10]Read from MH i2c: E2 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 03 00 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 03 00 B9 61 00 90 00 8E [16:43:10]RAPDU: 90 00 [16:43:10]wFMCommunicate OK [16:43:10]wFMCommunicate request_size=4 [16:43:10]MH_SAM_APDU [16:43:10]CAPDU: 80 0D 03 02 [16:43:10]Write to MH i2c: E2 08 00 BA 61 80 0D 03 02 00 00 00 00 96 [16:43:10]Write i2c OK [16:43:10]MH_I2C_Read... [16:43:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:10]Read from MH i2c: E2 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 0B 00 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 0B 00 BA 61 00 CA A4 6C C9 39 E0 D9 5D 90 00 89 [16:43:10]RAPDU: CA A4 6C C9 39 E0 D9 5D 90 00 [16:43:10]wFMCommunicate OK [16:43:10]SAM_PROTO_SignData done [16:43:10]FM_MakeSignedData done [16:43:10]CreateOFDProtocolMessage [16:43:10]wFMCommunicate request_size=4 [16:43:10]MH_SAM_APDU [16:43:10]CAPDU: 80 11 00 00 [16:43:10]Write to MH i2c: E2 08 00 BB 61 80 11 00 00 00 00 00 00 96 [16:43:10]Write i2c OK [16:43:10]MH_I2C_Read... [16:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:10]Read from MH i2c: E2 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 17 00 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: E2 17 00 BB 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E9 [16:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:43:10]wFMCommunicate OK [16:43:10]CreateOFDProtocolMessage done [16:43:10]OFDSenderStorePacket 192686 [16:43:10]StoreOFDPacket docnum=192686 [16:43:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 92 2E 07 01 A0 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 22 BF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE F0 02 00 35 04 06 00 25 5A C5 D9 4E 32 CA A4 6C C9 39 E0 D9 5D [16:43:10]CheckFolder [16:43:10]dirname=/storage/ofd_packets [16:43:10]CheckFolder done [16:43:10]ProducePacketName [16:43:10]name=ofd_packets/00192686 [16:43:10]NVStorageSaveData ofd_packets/00192686 [16:43:10]File name is /storage/ofd_packets/00192686 [16:43:10]Write 301 bytes [16:43:10]NVStorageSaveData done [16:43:10]OFDSenderStorePacket done [16:43:10]KKMCreateOFDPacket done [16:43:10]NVStorageSaveData kkm_last_timestamp [16:43:10]File name is /storage/kkm_last_timestamp [16:43:10]Write 4 bytes [16:43:10]NVStorageSaveData done [16:43:10]ExternCall_PrintAddStr [16:43:10]wPrintStart [16:43:10]Write to MH i2c: 01 00 00 BC 61 1D [16:43:10]Write i2c OK [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: 01 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: 01 07 00 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: 01 07 00 BC 61 00 00 00 00 00 FF 0F 32 [16:43:10]RasterBufferAndPrint [16:43:10]line Счет N : (1)32014 [16:43:10]line ИНН: 02508201610067 [16:43:10]line Контрольно-Кассовый Чек [16:43:10]line ПРОДАЖА [16:43:10]line ТРК (МРК, ГНК) : 21 [16:43:10]line Товар: 2710124130 [16:43:10]line Аи-92-К-5 [16:43:10]line 8.970 * 66.90 [16:43:10]line = 600.09 [16:43:10]line НДС 12% НСП 1% [16:43:10]line > о реализуемом товаре [16:43:10]line ОКРУГЛЕНИЕ: -0.09 [16:43:10]line ИТОГО: 600.00 [16:43:10]line Внесено: 600.00 [16:43:10]line СДАЧА: 0.00 [16:43:10]line НСП 1% : 5.31 [16:43:10]line НДС 12% : 63.73 [16:43:10]line Наличными: 600.00 [16:43:10]line Безнал.: 0.00 [16:43:10]line Место: АЗС № 170 "Партнер Нефть" [16:43:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:43:10]line СНО: Общий режим [16:43:10]line Чек 234 28.10.2024 16:43 [16:43:10]line Смена: 543 ФФД: 1.0 [16:43:10]line ЗНМ: 0300000110 [16:43:10]line РНМ: 0000000000091776 [16:43:10]line Версия ККМ: 001 [16:43:10]line ФМ: 0000000000871754 [16:43:10]line ФД: 192686 [16:43:10]line ФПД: 41071796637234 [16:43:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T164314&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192686&fm=41071796637234&tin=02508201610067®Number=0000000000091776&sum=60000 [16:43:10]written 0, free lines is 4095 [16:43:10]OFD Sender: Processing packet 192686 [packets to send 75, broken 74] [16:43:10]ProducePacketName [16:43:10]name=ofd_packets/00192686 [16:43:10]OFD Sender: To server: pG, [16:43:10]CommunicateWithHost lk.salyk.kg:30040 [16:43:10]ConnectInit lk.salyk.kg [16:43:10]Connected sock=10 [16:43:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 92 2E 07 01 A0 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 22 BF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE F0 02 00 35 04 06 00 25 5A C5 D9 4E 32 CA A4 6C C9 39 E0 D9 5D [16:43:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 03 64 47 00 76 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE F0 02 00 F4 03 04 00 E5 63 1F 67 B6 04 01 00 00 07 61 D9 26 49 E4 A4 DE [16:43:10]CommunicateWithHost err = 0 [16:43:10]CheckOFDResponse [16:43:10]1017 (14) - 77093643461234 [16:43:10]1041 (16) - 0000000000871754 [16:43:10]1040 (4) - 192686 [16:43:10]1012 (4) - 28.10.2024 10:13 [16:43:10]1206 (1) - 0 [16:43:10]OFD Sender: Remove packet 192686 [16:43:10]ProducePacketName [16:43:10]name=ofd_packets/00192686 [16:43:10]NVStorageDeleteData [16:43:10]Write to MH i2c: 01 00 00 E7 61 48 [16:43:10]Write i2c OK [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: 01 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: 01 07 00 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: 01 07 00 E7 61 00 00 00 00 00 D0 0C 2B [16:43:10]RasterBufferAndPrint [16:43:10]line [16:43:10]line [16:43:10]line [16:43:10]line [16:43:10]line [16:43:10]written 0, free lines is 3287 [16:43:10]MH_Cut [16:43:10]Write to MH i2c: D1 01 00 EE 61 01 21 [16:43:10]Write i2c OK [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: D1 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: D1 01 00 [16:43:10]MH_I2C_Read... [16:43:10]Read from MH i2c: D1 01 00 EE 61 00 20 [16:43:10]Write to MH i2c: 01 00 00 EF 61 50 [16:43:10]Write i2c OK [16:43:10]MH_I2C_Read... [16:43:10]OFD Sender: No OFD packet to send [16:43:11]*** Cut start [16:43:11]*** Partial cut [16:43:11]*** CUTSNS_PIN = 1 [16:43:11]*** CUTSNS_PIN = 0 [16:43:11]*** Brake cut motor [16:43:11]Read from MH i2c: 01 [16:43:12]MH_I2C_Read... [16:43:12]*** Stop cut motor [16:43:12]*** Cut end [16:43:12]Read from MH i2c: 01 07 00 [16:43:12]MH_I2C_Read... [16:43:12]Read from MH i2c: 01 07 00 EF 61 00 00 00 00 00 FF 0F 65 [16:43:12]process_action close_receipt done [16:43:12]requested_data is exist [16:43:12]produce_requested_data [16:43:12]requested_item fm.sn is exist - process it [16:43:12]wFMCommunicate request_size=4 [16:43:12]MH_SAM_APDU [16:43:12]CAPDU: 80 11 00 00 [16:43:12]Write to MH i2c: E2 08 00 F0 61 80 11 00 00 00 00 00 00 CB [16:43:12]Write i2c OK [16:43:12]MH_I2C_Read... [16:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:12]Read from MH i2c: E2 [16:43:12]MH_I2C_Read... [16:43:12]Read from MH i2c: E2 17 00 [16:43:12]MH_I2C_Read... [16:43:12]Read from MH i2c: E2 17 00 F0 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1E [16:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:43:12]wFMCommunicate OK [16:43:12]requested_item fd.num is exist - process it [16:43:12]SAM_PROTO_GetFieldsCounters [16:43:12]wFMCommunicate request_size=4 [16:43:12]MH_SAM_APDU [16:43:12]CAPDU: 80 13 00 00 [16:43:12]Write to MH i2c: E2 08 00 F1 61 80 13 00 00 00 00 00 00 CE [16:43:12]Write i2c OK [16:43:12]MH_I2C_Read... [16:43:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:12]Read from MH i2c: E2 [16:43:12]MH_I2C_Read... [16:43:12]Read from MH i2c: E2 62 00 [16:43:12]MH_I2C_Read... [16:43:12]Read from MH i2c: E2 62 00 F1 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AE F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [16:43:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AE F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:12]wFMCommunicate OK [16:43:12]SAM_PROTO_GetFieldsCounters done [16:43:12]requested_item shift.num is exist - process it [16:43:12]requested_item shift.opened is exist - process it [16:43:12]req_shift_opened [16:43:12]FM_GetShiftState [16:43:12]SAM_PROTO_GetShiftState [16:43:12]wFMCommunicate request_size=4 [16:43:12]MH_SAM_APDU [16:43:12]CAPDU: 80 13 01 00 [16:43:12]Write to MH i2c: E2 08 00 F2 61 80 13 01 00 00 00 00 00 D0 [16:43:12]Write i2c OK [16:43:12]MH_I2C_Read... [16:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:12]Read from MH i2c: E2 [16:43:12]MH_I2C_Read... [16:43:12]Read from MH i2c: E2 0E 00 [16:43:12]MH_I2C_Read... [16:43:12]Read from MH i2c: E2 0E 00 F2 61 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 20 [16:43:12]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:43:12]wFMCommunicate OK [16:43:12]SAM_PROTO_GetShiftState done [16:43:12]FM_GetShiftState done [16:43:12]req_shift_opened done [16:43:12]requested_item shift.open_date is exist - process it [16:43:12]req_shift_open_date [16:43:12]req_shift_open_date done [16:43:12]produce_requested_data done [16:43:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192686,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:43:12]process_action_free close_receipt [16:43:12]json_value_free [16:43:12]json_value_free done [16:43:12]process_json_proto returns [16:43:12]Send response to host [16:43:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192686,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:43:12]free response buf [16:43:12]execute_script done [16:43:12]execute_script returns [16:43:12]free content buf [16:43:12]Sock 9.Close socket [16:43:12]Sock 9.Thread stoped [16:43:14]accept exits with 7 [16:43:14]New connection [16:43:14]New thread 3066707300 created [16:43:14]Thread 3066563940 joined [16:43:14]Waiting for new connection... [16:43:14] Sock 7.Parse request [16:43:14]Sock 7.Check first char [16:43:14]Sock 7.First char is OK [16:43:14]request: POST /json_proto HTTP/1.0 [16:43:14]Method: POST [16:43:14]URL: /json_proto [16:43:14]Method is POST - this is cgi request [16:43:14]url: /json_proto [16:43:14]query_string will be loaded in cgi processing [16:43:14]execute_cgi json_proto POST (null) [16:43:14]execute_cgi path=json_proto method=POST [16:43:14]POST find Content-Length [16:43:14]Host: 172.17.63.131:8080 [16:43:14]Content-Length: 676 [16:43:14]Content-Type: application/json [16:43:14] [16:43:14]POST finish read [16:43:14]Found Content-Length = 676 [16:43:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:14]execute_script... [16:43: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)32013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:14]POST & json_proto [16:43:14]process_json_proto [16:43:14]json parsed OK: [16:43:14]protocol is kg_v1.0 [16:43:14]action value=close_receipt [16:43:14]process_action close_receipt [16:43:14]cmd_close_receipt [16:43:14]MH_GetDate [16:43:14]Write to MH i2c: F0 00 00 F3 61 43 [16:43:14]Write i2c OK [16:43:14]MH_I2C_Read... [16:43:14]Read from MH i2c: F0 [16:43:14]MH_I2C_Read... [16:43:14]Read from MH i2c: F0 09 00 [16:43:14]MH_I2C_Read... [16:43:14]Read from MH i2c: F0 09 00 F3 61 00 28 BF 1F 67 22 05 6E 64 B2 [16:43:14]GetLastDocTimeStamp 1730133794 [16:43:14]current date 1730133800 [16:43:14]FM_GetShiftState [16:43:14]SAM_PROTO_GetShiftState [16:43:14]wFMCommunicate request_size=4 [16:43:14]MH_SAM_APDU [16:43:14]CAPDU: 80 13 01 00 [16:43:14]Write to MH i2c: E2 08 00 F4 61 80 13 01 00 00 00 00 00 D2 [16:43:14]Write i2c OK [16:43:14]MH_I2C_Read... [16:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:14]Read from MH i2c: E2 [16:43:14]MH_I2C_Read... [16:43:14]Read from MH i2c: E2 0E 00 [16:43:14]MH_I2C_Read... [16:43:14]Read from MH i2c: E2 0E 00 F4 61 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 22 [16:43:14]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:43:14]wFMCommunicate OK [16:43:14]SAM_PROTO_GetShiftState done [16:43:14]FM_GetShiftState done [16:43:14]opened in 1730075620 [16:43:14]opened+sec_in_day 1730162020 [16:43:14]quantity*price = 50041 [16:43:14]sum+1 = 50042 [16:43:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 235 28.10.2024 16:43 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192687 ФПД: 270432587998798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T164320&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192687&fm=270432587998798&tin=02508201610067®Number=0000000000091776&sum=50000 [16:43:15]StoreToDocumentArchive [16:43:15]shift 543 fd 192687 [16:43:15]save to /storage/0543/doc_00192687 [16:43:15]save last doc name /storage/0543/doc_00192687 to /storage/kkm_last_doc_name [16:43:15]save OK [16:43:15]Clear old archive folders... [16:43:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:15]tlvbuf is 01BB5380 [16:43:15]SAM_PROTO_ClearQueue [16:43:15]wFMCommunicate request_size=4 [16:43:15]MH_SAM_APDU [16:43:15]CAPDU: 80 09 00 00 [16:43:15]Write to MH i2c: E2 08 00 01 62 80 09 00 00 00 00 00 00 D5 [16:43:15]Write i2c OK [16:43:15]MH_I2C_Read... [16:43:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:15]Read from MH i2c: E2 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 03 00 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 03 00 01 62 00 90 00 D7 [16:43:15]RAPDU: 90 00 [16:43:15]wFMCommunicate OK [16:43:15]SAM_PROTO_ClearQueue done [16:43:15]KKMCreateOFDPacket [16:43:15]OFDProtocolAddRootSTLVToBuf [16:43:15]FM_MakeSignedData [16:43:15]FM_MakeSignedData [16:43:15]SAM_PROTO_SignData [16:43:15]wFMCommunicate request_size=4 [16:43:15]MH_SAM_APDU [16:43:15]CAPDU: 80 0D 01 02 [16:43:15]Write to MH i2c: E2 08 00 02 62 80 0D 01 02 00 00 00 00 DD [16:43:15]Write i2c OK [16:43:15]MH_I2C_Read... [16:43:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:15]Read from MH i2c: E2 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 03 00 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 03 00 02 62 00 90 00 D8 [16:43:15]RAPDU: 90 00 [16:43:15]wFMCommunicate OK [16:43:15]wFMCommunicate request_size=255 [16:43:15]MH_SAM_APDU [16:43:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 28 BF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF F0 02 00 35 04 06 00 F5 [16:43:15]Write to MH i2c: E2 02 01 03 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 28 BF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF F0 02 00 35 04 06 00 F5 00 00 80 [16:43:15]Write i2c OK [16:43:15]MH_I2C_Read... [16:43:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:15]Read from MH i2c: E2 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 03 00 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 03 00 03 62 00 90 00 D9 [16:43:15]RAPDU: 90 00 [16:43:15]wFMCommunicate OK [16:43:15]wFMCommunicate request_size=10 [16:43:15]MH_SAM_APDU [16:43:15]CAPDU: 80 0D 02 02 05 F4 FE 57 E6 4E [16:43:15]Write to MH i2c: E2 0D 00 04 62 80 0D 02 02 05 00 F4 FE 57 E6 4E 00 00 67 [16:43:15]Write i2c OK [16:43:15]MH_I2C_Read... [16:43:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:15]Read from MH i2c: E2 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 03 00 [16:43:15]MH_I2C_Read... [16:43:15]Read from MH i2c: E2 03 00 04 62 00 90 00 DA [16:43:15]RAPDU: 90 00 [16:43:15]wFMCommunicate OK [16:43:15]wFMCommunicate request_size=4 [16:43:15]MH_SAM_APDU [16:43:15]CAPDU: 80 0D 03 02 [16:43:15]Write to MH i2c: E2 08 00 05 62 80 0D 03 02 00 00 00 00 E2 [16:43:15]Write i2c OK [16:43:15]MH_I2C_Read... [16:43:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:16]OFD Sender: No OFD packet to send [16:43:16]Read from MH i2c: E2 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: E2 0B 00 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: E2 0B 00 05 62 00 9E 77 63 1C 79 6E DB 68 90 00 A1 [16:43:16]RAPDU: 9E 77 63 1C 79 6E DB 68 90 00 [16:43:16]wFMCommunicate OK [16:43:16]SAM_PROTO_SignData done [16:43:16]FM_MakeSignedData done [16:43:16]CreateOFDProtocolMessage [16:43:16]wFMCommunicate request_size=4 [16:43:16]MH_SAM_APDU [16:43:16]CAPDU: 80 11 00 00 [16:43:16]Write to MH i2c: E2 08 00 06 62 80 11 00 00 00 00 00 00 E2 [16:43:16]Write i2c OK [16:43:16]MH_I2C_Read... [16:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:16]Read from MH i2c: E2 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: E2 17 00 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: E2 17 00 06 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 35 [16:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:43:16]wFMCommunicate OK [16:43:16]CreateOFDProtocolMessage done [16:43:16]OFDSenderStorePacket 192687 [16:43:16]StoreOFDPacket docnum=192687 [16:43:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EA F5 07 01 F8 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 28 BF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF F0 02 00 35 04 06 00 F5 F4 FE 57 E6 4E 9E 77 63 1C 79 6E DB 68 [16:43:16]CheckFolder [16:43:16]dirname=/storage/ofd_packets [16:43:16]CheckFolder done [16:43:16]ProducePacketName [16:43:16]name=ofd_packets/00192687 [16:43:16]NVStorageSaveData ofd_packets/00192687 [16:43:16]File name is /storage/ofd_packets/00192687 [16:43:16]Write 301 bytes [16:43:16]NVStorageSaveData done [16:43:16]OFDSenderStorePacket done [16:43:16]KKMCreateOFDPacket done [16:43:16]NVStorageSaveData kkm_last_timestamp [16:43:16]File name is /storage/kkm_last_timestamp [16:43:16]Write 4 bytes [16:43:16]NVStorageSaveData done [16:43:16]ExternCall_PrintAddStr [16:43:16]wPrintStart [16:43:16]Write to MH i2c: 01 00 00 07 62 69 [16:43:16]Write i2c OK [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: 01 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: 01 07 00 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: 01 07 00 07 62 00 00 00 00 00 FF 0F 7E [16:43:16]RasterBufferAndPrint [16:43:16]line Счет N : (1)32013 [16:43:16]line ИНН: 02508201610067 [16:43:16]line Контрольно-Кассовый Чек [16:43:16]line ПРОДАЖА [16:43:16]line ТРК (МРК, ГНК) : 12 [16:43:16]line Товар: 2710124130 [16:43:16]line Аи-92-К-5 [16:43:16]line 7.480 * 66.90 [16:43:16]line = 500.41 [16:43:16]line НДС 12% НСП 1% [16:43:16]line > о реализуемом товаре [16:43:16]line ОКРУГЛЕНИЕ: -0.41 [16:43:16]line ИТОГО: 500.00 [16:43:16]line Внесено: 500.00 [16:43:16]line СДАЧА: 0.00 [16:43:16]line НСП 1% : 4.43 [16:43:16]line НДС 12% : 53.14 [16:43:16]line Наличными: 500.00 [16:43:16]line Безнал.: 0.00 [16:43:16]line Место: АЗС № 170 "Партнер Нефть" [16:43:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:43:16]line СНО: Общий режим [16:43:16]line Чек 235 28.10.2024 16:43 [16:43:16]line Смена: 543 ФФД: 1.0 [16:43:16]line ЗНМ: 0300000110 [16:43:16]line РНМ: 0000000000091776 [16:43:16]line Версия ККМ: 001 [16:43:16]line ФМ: 0000000000871754 [16:43:16]line ФД: 192687 [16:43:16]line ФПД: 270432587998798 [16:43:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T164320&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192687&fm=270432587998798&tin=02508201610067®Number=0000000000091776&sum=50000 [16:43:16]written 0, free lines is 4095 [16:43:16]OFD Sender: Processing packet 192687 [packets to send 75, broken 74] [16:43:16]ProducePacketName [16:43:16]name=ofd_packets/00192687 [16:43:16]OFD Sender: To server: pG, [16:43:16]CommunicateWithHost lk.salyk.kg:30040 [16:43:16]ConnectInit lk.salyk.kg [16:43:16]Connected sock=11 [16:43:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EA F5 07 01 F8 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 28 BF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF F0 02 00 35 04 06 00 F5 F4 FE 57 E6 4E 9E 77 63 1C 79 6E DB 68 [16:43:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2E 85 47 00 86 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF F0 02 00 F4 03 04 00 EB 63 1F 67 B6 04 01 00 00 3C C2 6E F2 6E D9 87 B5 [16:43:16]CommunicateWithHost err = 0 [16:43:16]CheckOFDResponse [16:43:16]1017 (14) - 77093643461234 [16:43:16]1041 (16) - 0000000000871754 [16:43:16]1040 (4) - 192687 [16:43:16]1012 (4) - 28.10.2024 10:14 [16:43:16]1206 (1) - 0 [16:43:16]OFD Sender: Remove packet 192687 [16:43:16]ProducePacketName [16:43:16]name=ofd_packets/00192687 [16:43:16]NVStorageDeleteData [16:43:16]Write to MH i2c: 01 00 00 32 62 94 [16:43:16]Write i2c OK [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: 01 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: 01 07 00 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: 01 07 00 32 62 00 00 00 00 00 D5 0C 7C [16:43:16]RasterBufferAndPrint [16:43:16]line [16:43:16]line [16:43:16]line [16:43:16]line [16:43:16]line [16:43:16]written 0, free lines is 3297 [16:43:16]MH_Cut [16:43:16]Write to MH i2c: D1 01 00 39 62 01 6D [16:43:16]Write i2c OK [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: D1 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: D1 01 00 [16:43:16]MH_I2C_Read... [16:43:16]Read from MH i2c: D1 01 00 39 62 00 6C [16:43:16]Write to MH i2c: 01 00 00 3A 62 9C [16:43:16]Write i2c OK [16:43:16]MH_I2C_Read... [16:43:16]OFD Sender: No OFD packet to send [16:43:17]*** Cut start [16:43:17]*** Partial cut [16:43:17]*** CUTSNS_PIN = 1 [16:43:17]*** CUTSNS_PIN = 0 [16:43:17]*** Brake cut motor [16:43:17]Read from MH i2c: 01 [16:43:17]MH_I2C_Read... [16:43:17]*** Stop cut motor [16:43:17]*** Cut end [16:43:17]Read from MH i2c: 01 07 00 [16:43:17]MH_I2C_Read... [16:43:17]Read from MH i2c: 01 07 00 3A 62 00 00 00 00 00 FF 0F B1 [16:43:17]process_action close_receipt done [16:43:17]requested_data is exist [16:43:17]produce_requested_data [16:43:17]requested_item fm.sn is exist - process it [16:43:17]wFMCommunicate request_size=4 [16:43:17]MH_SAM_APDU [16:43:17]CAPDU: 80 11 00 00 [16:43:17]Write to MH i2c: E2 08 00 3B 62 80 11 00 00 00 00 00 00 17 [16:43:18]Write i2c OK [16:43:18]MH_I2C_Read... [16:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:18]Read from MH i2c: E2 [16:43:18]MH_I2C_Read... [16:43:18]Read from MH i2c: E2 17 00 [16:43:18]MH_I2C_Read... [16:43:18]Read from MH i2c: E2 17 00 3B 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6A [16:43:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:43:18]wFMCommunicate OK [16:43:18]requested_item fd.num is exist - process it [16:43:18]SAM_PROTO_GetFieldsCounters [16:43:18]wFMCommunicate request_size=4 [16:43:18]MH_SAM_APDU [16:43:18]CAPDU: 80 13 00 00 [16:43:18]Write to MH i2c: E2 08 00 3C 62 80 13 00 00 00 00 00 00 1A [16:43:18]Write i2c OK [16:43:18]MH_I2C_Read... [16:43:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:18]Read from MH i2c: E2 [16:43:18]MH_I2C_Read... [16:43:18]Read from MH i2c: E2 62 00 [16:43:18]MH_I2C_Read... [16:43:18]Read from MH i2c: E2 62 00 3C 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AF F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [16:43:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AF F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:18]wFMCommunicate OK [16:43:18]SAM_PROTO_GetFieldsCounters done [16:43:18]requested_item shift.num is exist - process it [16:43:18]requested_item shift.opened is exist - process it [16:43:18]req_shift_opened [16:43:18]FM_GetShiftState [16:43:18]SAM_PROTO_GetShiftState [16:43:18]wFMCommunicate request_size=4 [16:43:18]MH_SAM_APDU [16:43:18]CAPDU: 80 13 01 00 [16:43:18]Write to MH i2c: E2 08 00 3D 62 80 13 01 00 00 00 00 00 1C [16:43:18]Write i2c OK [16:43:18]MH_I2C_Read... [16:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:18]Read from MH i2c: E2 [16:43:18]MH_I2C_Read... [16:43:18]Read from MH i2c: E2 0E 00 [16:43:18]MH_I2C_Read... [16:43:18]Read from MH i2c: E2 0E 00 3D 62 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 6C [16:43:18]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:43:18]wFMCommunicate OK [16:43:18]SAM_PROTO_GetShiftState done [16:43:18]FM_GetShiftState done [16:43:18]req_shift_opened done [16:43:18]requested_item shift.open_date is exist - process it [16:43:18]req_shift_open_date [16:43:18]req_shift_open_date done [16:43:18]produce_requested_data done [16:43:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192687,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:43:18]process_action_free close_receipt [16:43:18]json_value_free [16:43:18]json_value_free done [16:43:18]process_json_proto returns [16:43:18]Send response to host [16:43:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192687,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:43:18]free response buf [16:43:18]execute_script done [16:43:18]execute_script returns [16:43:18]free content buf [16:43:18]Sock 7.Close socket [16:43:18]Sock 7.Thread stoped [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:42]OFD Sender: No OFD packet to send [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:04]accept exits with 9 [16:45:04]New connection [16:45:04]New thread 3066563940 created [16:45:04]Thread 3066707300 joined [16:45:04]Waiting for new connection... [16:45:04] Sock 9.Parse request [16:45:04]Sock 9.Check first char [16:45:04]Sock 9.First char is OK [16:45:04]request: POST /json_proto HTTP/1.0 [16:45:04]Method: POST [16:45:04]URL: /json_proto [16:45:04]Method is POST - this is cgi request [16:45:04]url: /json_proto [16:45:04]query_string will be loaded in cgi processing [16:45:04]execute_cgi json_proto POST (null) [16:45:04]execute_cgi path=json_proto method=POST [16:45:04]POST find Content-Length [16:45:04]Host: 172.17.63.131:8080 [16:45:04]Content-Length: 676 [16:45:04]Content-Type: application/json [16:45:04] [16:45:04]POST finish read [16:45:04]Found Content-Length = 676 [16:45:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:04]execute_script... [16:45: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)32015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:04]POST & json_proto [16:45:04]process_json_proto [16:45:04]json parsed OK: [16:45:04]protocol is kg_v1.0 [16:45:04]action value=close_receipt [16:45:04]process_action close_receipt [16:45:04]cmd_close_receipt [16:45:04]MH_GetDate [16:45:04]Write to MH i2c: F0 00 00 3E 62 8F [16:45:04]Write i2c OK [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: F0 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: F0 09 00 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: F0 09 00 3E 62 00 97 BF 1F 67 22 05 6E 64 6D [16:45:04]GetLastDocTimeStamp 1730133800 [16:45:04]current date 1730133911 [16:45:04]FM_GetShiftState [16:45:04]SAM_PROTO_GetShiftState [16:45:04]wFMCommunicate request_size=4 [16:45:04]MH_SAM_APDU [16:45:04]CAPDU: 80 13 01 00 [16:45:04]Write to MH i2c: E2 08 00 3F 62 80 13 01 00 00 00 00 00 1E [16:45:04]Write i2c OK [16:45:04]MH_I2C_Read... [16:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:04]Read from MH i2c: E2 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 0E 00 [16:45:04]MH_I2C_Read... [16:45:05]Read from MH i2c: E2 0E 00 3F 62 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 6E [16:45:05]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:45:05]wFMCommunicate OK [16:45:05]SAM_PROTO_GetShiftState done [16:45:05]FM_GetShiftState done [16:45:05]opened in 1730075620 [16:45:05]opened+sec_in_day 1730162020 [16:45:05]quantity*price = 20003 [16:45:05]sum+1 = 20004 [16:45:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 236 28.10.2024 16:45 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192688 ФПД: 205542827464686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T164511&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192688&fm=205542827464686&tin=02508201610067®Number=0000000000091776&sum=20000 [16:45:06]StoreToDocumentArchive [16:45:06]shift 543 fd 192688 [16:45:06]save to /storage/0543/doc_00192688 [16:45:06]save last doc name /storage/0543/doc_00192688 to /storage/kkm_last_doc_name [16:45:06]save OK [16:45:06]Clear old archive folders... [16:45:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:45:06]tlvbuf is 01A50B30 [16:45:06]SAM_PROTO_ClearQueue [16:45:06]wFMCommunicate request_size=4 [16:45:06]MH_SAM_APDU [16:45:06]CAPDU: 80 09 00 00 [16:45:06]Write to MH i2c: E2 08 00 4C 62 80 09 00 00 00 00 00 00 20 [16:45:06]Write i2c OK [16:45:06]MH_I2C_Read... [16:45:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:06]Read from MH i2c: E2 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 03 00 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 03 00 4C 62 00 90 00 22 [16:45:06]RAPDU: 90 00 [16:45:06]wFMCommunicate OK [16:45:06]SAM_PROTO_ClearQueue done [16:45:06]KKMCreateOFDPacket [16:45:06]OFDProtocolAddRootSTLVToBuf [16:45:06]FM_MakeSignedData [16:45:06]FM_MakeSignedData [16:45:06]SAM_PROTO_SignData [16:45:06]wFMCommunicate request_size=4 [16:45:06]MH_SAM_APDU [16:45:06]CAPDU: 80 0D 01 02 [16:45:06]Write to MH i2c: E2 08 00 4D 62 80 0D 01 02 00 00 00 00 28 [16:45:06]Write i2c OK [16:45:06]MH_I2C_Read... [16:45:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:06]Read from MH i2c: E2 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 03 00 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 03 00 4D 62 00 90 00 23 [16:45:06]RAPDU: 90 00 [16:45:06]wFMCommunicate OK [16:45:06]wFMCommunicate request_size=255 [16:45:06]MH_SAM_APDU [16:45: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 97 BF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 F0 02 00 35 04 06 00 BA [16:45:06]Write to MH i2c: E2 02 01 4E 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 97 BF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 F0 02 00 35 04 06 00 BA 00 00 C3 [16:45:06]Write i2c OK [16:45:06]MH_I2C_Read... [16:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:06]Read from MH i2c: E2 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 03 00 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 03 00 4E 62 00 90 00 24 [16:45:06]RAPDU: 90 00 [16:45:06]wFMCommunicate OK [16:45:06]wFMCommunicate request_size=10 [16:45:06]MH_SAM_APDU [16:45:06]CAPDU: 80 0D 02 02 05 F0 AB 37 97 EE [16:45:06]Write to MH i2c: E2 0D 00 4F 62 80 0D 02 02 05 00 F0 AB 37 97 EE 00 00 8C [16:45:06]Write i2c OK [16:45:06]MH_I2C_Read... [16:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:06]Read from MH i2c: E2 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 03 00 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 03 00 4F 62 00 90 00 25 [16:45:06]RAPDU: 90 00 [16:45:06]wFMCommunicate OK [16:45:06]wFMCommunicate request_size=4 [16:45:06]MH_SAM_APDU [16:45:06]CAPDU: 80 0D 03 02 [16:45:06]Write to MH i2c: E2 08 00 50 62 80 0D 03 02 00 00 00 00 2D [16:45:06]Write i2c OK [16:45:06]MH_I2C_Read... [16:45:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:06]Read from MH i2c: E2 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 0B 00 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 0B 00 50 62 00 31 94 3A 1B 8A 1E 5B 49 90 00 94 [16:45:06]RAPDU: 31 94 3A 1B 8A 1E 5B 49 90 00 [16:45:06]wFMCommunicate OK [16:45:06]SAM_PROTO_SignData done [16:45:06]FM_MakeSignedData done [16:45:06]CreateOFDProtocolMessage [16:45:06]wFMCommunicate request_size=4 [16:45:06]MH_SAM_APDU [16:45:06]CAPDU: 80 11 00 00 [16:45:06]Write to MH i2c: E2 08 00 51 62 80 11 00 00 00 00 00 00 2D [16:45:06]Write i2c OK [16:45:06]MH_I2C_Read... [16:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:06]Read from MH i2c: E2 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 17 00 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: E2 17 00 51 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 80 [16:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:45:06]wFMCommunicate OK [16:45:06]CreateOFDProtocolMessage done [16:45:06]OFDSenderStorePacket 192688 [16:45:06]StoreOFDPacket docnum=192688 [16:45:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 64 6C 07 01 31 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 97 BF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 F0 02 00 35 04 06 00 BA F0 AB 37 97 EE 31 94 3A 1B 8A 1E 5B 49 [16:45:06]CheckFolder [16:45:06]dirname=/storage/ofd_packets [16:45:06]CheckFolder done [16:45:06]ProducePacketName [16:45:06]name=ofd_packets/00192688 [16:45:06]NVStorageSaveData ofd_packets/00192688 [16:45:06]File name is /storage/ofd_packets/00192688 [16:45:06]Write 301 bytes [16:45:06]NVStorageSaveData done [16:45:06]OFDSenderStorePacket done [16:45:06]KKMCreateOFDPacket done [16:45:06]NVStorageSaveData kkm_last_timestamp [16:45:06]File name is /storage/kkm_last_timestamp [16:45:06]Write 4 bytes [16:45:06]NVStorageSaveData done [16:45:06]ExternCall_PrintAddStr [16:45:06]wPrintStart [16:45:06]Write to MH i2c: 01 00 00 52 62 B4 [16:45:06]Write i2c OK [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: 01 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: 01 07 00 [16:45:06]MH_I2C_Read... [16:45:06]Read from MH i2c: 01 07 00 52 62 00 00 00 00 00 FF 0F C9 [16:45:06]RasterBufferAndPrint [16:45:06]line Счет N : (1)32015 [16:45:06]line ИНН: 02508201610067 [16:45:06]line Контрольно-Кассовый Чек [16:45:06]line ПРОДАЖА [16:45:06]line ТРК (МРК, ГНК) : 21 [16:45:06]line Товар: 2710124130 [16:45:06]line Аи-92-К-5 [16:45:06]line 2.990 * 66.90 [16:45:06]line = 200.03 [16:45:06]line НДС 12% НСП 1% [16:45:06]line > о реализуемом товаре [16:45:06]line ОКРУГЛЕНИЕ: -0.03 [16:45:06]line ИТОГО: 200.00 [16:45:06]line Внесено: 200.00 [16:45:06]line СДАЧА: 0.00 [16:45:06]line НСП 1% : 1.77 [16:45:06]line НДС 12% : 21.24 [16:45:06]line Наличными: 200.00 [16:45:06]line Безнал.: 0.00 [16:45:06]line Место: АЗС № 170 "Партнер Нефть" [16:45:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:45:06]line СНО: Общий режим [16:45:06]line Чек 236 28.10.2024 16:45 [16:45:06]line Смена: 543 ФФД: 1.0 [16:45:06]line ЗНМ: 0300000110 [16:45:06]line РНМ: 0000000000091776 [16:45:06]line Версия ККМ: 001 [16:45:06]line ФМ: 0000000000871754 [16:45:06]line ФД: 192688 [16:45:06]line ФПД: 205542827464686 [16:45:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T164511&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192688&fm=205542827464686&tin=02508201610067®Number=0000000000091776&sum=20000 [16:45:06]OFD Sender: Processing packet 192688 [packets to send 75, broken 74] [16:45:06]ProducePacketName [16:45:06]name=ofd_packets/00192688 [16:45:06]OFD Sender: To server: pG, [16:45:06]CommunicateWithHost lk.salyk.kg:30040 [16:45:06]ConnectInit lk.salyk.kg [16:45:06]written 0, free lines is 4095 [16:45:06]Connected sock=10 [16:45:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 64 6C 07 01 31 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 97 BF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 F0 02 00 35 04 06 00 BA F0 AB 37 97 EE 31 94 3A 1B 8A 1E 5B 49 [16:45:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B7 5B 47 00 0D E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 F0 02 00 F4 03 04 00 5A 64 1F 67 B6 04 01 00 00 2E E8 78 E2 90 8F 28 AE [16:45:07]CommunicateWithHost err = 0 [16:45:07]CheckOFDResponse [16:45:07]1017 (14) - 77093643461234 [16:45:07]1041 (16) - 0000000000871754 [16:45:07]1040 (4) - 192688 [16:45:07]1012 (4) - 28.10.2024 10:15 [16:45:07]1206 (1) - 0 [16:45:07]OFD Sender: Remove packet 192688 [16:45:07]ProducePacketName [16:45:07]name=ofd_packets/00192688 [16:45:07]NVStorageDeleteData [16:45:07]Write to MH i2c: 01 00 00 7D 62 DF [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: 01 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: 01 07 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: 01 07 00 7D 62 00 00 00 00 00 D0 0C C2 [16:45:07]RasterBufferAndPrint [16:45:07]line [16:45:07]line [16:45:07]line [16:45:07]line [16:45:07]line [16:45:07]written 0, free lines is 3285 [16:45:07]MH_Cut [16:45:07]Write to MH i2c: D1 01 00 84 62 01 B8 [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: D1 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: D1 01 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: D1 01 00 84 62 00 B7 [16:45:07]Write to MH i2c: 01 00 00 85 62 E7 [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:07]OFD Sender: No OFD packet to send [16:45:08]*** Cut start [16:45:08]*** Partial cut [16:45:08]*** CUTSNS_PIN = 1 [16:45:08]*** CUTSNS_PIN = 0 [16:45:08]*** Brake cut motor [16:45:08]Read from MH i2c: 01 [16:45:08]MH_I2C_Read... [16:45:08]*** Stop cut motor [16:45:08]*** Cut end [16:45:08]Read from MH i2c: 01 07 00 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: 01 07 00 85 62 00 00 00 00 00 FF 0F FC [16:45:08]process_action close_receipt done [16:45:08]requested_data is exist [16:45:08]produce_requested_data [16:45:08]requested_item fm.sn is exist - process it [16:45:08]wFMCommunicate request_size=4 [16:45:08]MH_SAM_APDU [16:45:08]CAPDU: 80 11 00 00 [16:45:08]Write to MH i2c: E2 08 00 86 62 80 11 00 00 00 00 00 00 62 [16:45:08]Write i2c OK [16:45:08]MH_I2C_Read... [16:45:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:08]Read from MH i2c: E2 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: E2 17 00 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: E2 17 00 86 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [16:45:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:45:08]wFMCommunicate OK [16:45:08]requested_item fd.num is exist - process it [16:45:08]SAM_PROTO_GetFieldsCounters [16:45:08]wFMCommunicate request_size=4 [16:45:08]MH_SAM_APDU [16:45:08]CAPDU: 80 13 00 00 [16:45:08]Write to MH i2c: E2 08 00 87 62 80 13 00 00 00 00 00 00 65 [16:45:08]Write i2c OK [16:45:08]MH_I2C_Read... [16:45:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:08]Read from MH i2c: E2 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: E2 62 00 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: E2 62 00 87 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B0 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [16:45:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B0 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:08]wFMCommunicate OK [16:45:08]SAM_PROTO_GetFieldsCounters done [16:45:08]requested_item shift.num is exist - process it [16:45:08]requested_item shift.opened is exist - process it [16:45:08]req_shift_opened [16:45:08]FM_GetShiftState [16:45:08]SAM_PROTO_GetShiftState [16:45:08]wFMCommunicate request_size=4 [16:45:08]MH_SAM_APDU [16:45:08]CAPDU: 80 13 01 00 [16:45:08]Write to MH i2c: E2 08 00 88 62 80 13 01 00 00 00 00 00 67 [16:45:08]Write i2c OK [16:45:08]MH_I2C_Read... [16:45:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:08]Read from MH i2c: E2 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: E2 0E 00 [16:45:08]MH_I2C_Read... [16:45:08]Read from MH i2c: E2 0E 00 88 62 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B7 [16:45:08]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:45:08]wFMCommunicate OK [16:45:08]SAM_PROTO_GetShiftState done [16:45:08]FM_GetShiftState done [16:45:08]req_shift_opened done [16:45:08]requested_item shift.open_date is exist - process it [16:45:08]req_shift_open_date [16:45:08]req_shift_open_date done [16:45:08]produce_requested_data done [16:45:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192688,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:45:08]process_action_free close_receipt [16:45:08]json_value_free [16:45:08]json_value_free done [16:45:08]process_json_proto returns [16:45:08]Send response to host [16:45:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192688,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:45:08]free response buf [16:45:08]execute_script done [16:45:08]execute_script returns [16:45:08]free content buf [16:45:08]Sock 9.Close socket [16:45:08]Sock 9.Thread stoped [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]OFD Sender: No OFD packet to send [16:48:12]OFD Sender: No OFD packet to send [16:48:17]OFD Sender: No OFD packet to send [16:48:22]OFD Sender: No OFD packet to send [16:48:27]OFD Sender: No OFD packet to send [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:49:00]accept exits with 7 [16:49:00]New connection [16:49:00]New thread 3066707300 created [16:49:00]Thread 3066563940 joined [16:49:00]Waiting for new connection... [16:49:00] Sock 7.Parse request [16:49:00]Sock 7.Check first char [16:49:00]Sock 7.First char is OK [16:49:00]request: POST /json_proto HTTP/1.0 [16:49:00]Method: POST [16:49:00]URL: /json_proto [16:49:00]Method is POST - this is cgi request [16:49:00]url: /json_proto [16:49:00]query_string will be loaded in cgi processing [16:49:00]execute_cgi json_proto POST (null) [16:49:00]execute_cgi path=json_proto method=POST [16:49:00]POST find Content-Length [16:49:00]Host: 172.17.63.131:8080 [16:49:00]Content-Length: 678 [16:49:00]Content-Type: application/json [16:49:00] [16:49:00]POST finish read [16:49:00]Found Content-Length = 678 [16:49:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:00]execute_script... [16:49:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:00]POST & json_proto [16:49:00]process_json_proto [16:49:00]json parsed OK: [16:49:00]protocol is kg_v1.0 [16:49:00]action value=close_receipt [16:49:00]process_action close_receipt [16:49:00]cmd_close_receipt [16:49:00]MH_GetDate [16:49:00]Write to MH i2c: F0 00 00 89 62 DA [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: F0 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: F0 09 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: F0 09 00 89 62 00 82 C0 1F 67 22 05 6E 64 A4 [16:49:00]GetLastDocTimeStamp 1730133911 [16:49:00]current date 1730134146 [16:49:00]FM_GetShiftState [16:49:00]SAM_PROTO_GetShiftState [16:49:00]wFMCommunicate request_size=4 [16:49:00]MH_SAM_APDU [16:49:00]CAPDU: 80 13 01 00 [16:49:00]Write to MH i2c: E2 08 00 8A 62 80 13 01 00 00 00 00 00 69 [16:49:00]Write i2c OK [16:49:00]MH_I2C_Read... [16:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:00]Read from MH i2c: E2 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 0E 00 [16:49:00]MH_I2C_Read... [16:49:00]Read from MH i2c: E2 0E 00 8A 62 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B9 [16:49:00]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:49:00]wFMCommunicate OK [16:49:00]SAM_PROTO_GetShiftState done [16:49:00]FM_GetShiftState done [16:49:00]opened in 1730075620 [16:49:00]opened+sec_in_day 1730162020 [16:49:00]quantity*price = 120015 [16:49:00]sum+1 = 120016 [16:49:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 237 28.10.2024 16:49 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192689 ФПД: 188239035432154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T164906&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192689&fm=188239035432154&tin=02508201610067®Number=0000000000091776&sum=120000 [16:49:01]StoreToDocumentArchive [16:49:01]shift 543 fd 192689 [16:49:01]save to /storage/0543/doc_00192689 [16:49:01]save last doc name /storage/0543/doc_00192689 to /storage/kkm_last_doc_name [16:49:01]save OK [16:49:01]Clear old archive folders... [16:49:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:49:01]tlvbuf is 01B8E990 [16:49:01]SAM_PROTO_ClearQueue [16:49:01]wFMCommunicate request_size=4 [16:49:01]MH_SAM_APDU [16:49:01]CAPDU: 80 09 00 00 [16:49:01]Write to MH i2c: E2 08 00 97 62 80 09 00 00 00 00 00 00 6B [16:49:01]Write i2c OK [16:49:01]MH_I2C_Read... [16:49:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:01]Read from MH i2c: E2 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: E2 03 00 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: E2 03 00 97 62 00 90 00 6D [16:49:01]RAPDU: 90 00 [16:49:01]wFMCommunicate OK [16:49:01]SAM_PROTO_ClearQueue done [16:49:01]KKMCreateOFDPacket [16:49:01]OFDProtocolAddRootSTLVToBuf [16:49:01]FM_MakeSignedData [16:49:01]FM_MakeSignedData [16:49:01]SAM_PROTO_SignData [16:49:01]wFMCommunicate request_size=4 [16:49:01]MH_SAM_APDU [16:49:01]CAPDU: 80 0D 01 02 [16:49:01]Write to MH i2c: E2 08 00 98 62 80 0D 01 02 00 00 00 00 73 [16:49:01]Write i2c OK [16:49:01]MH_I2C_Read... [16:49:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:01]Read from MH i2c: E2 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: E2 03 00 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: E2 03 00 98 62 00 90 00 6E [16:49:01]RAPDU: 90 00 [16:49:01]wFMCommunicate OK [16:49:01]wFMCommunicate request_size=255 [16:49:01]MH_SAM_APDU [16:49: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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 82 C0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 F0 02 00 35 04 06 00 AB 33 D0 D6 [16:49:01]Write to MH i2c: E2 02 01 99 62 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 82 C0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 F0 02 00 35 04 06 00 AB 33 D0 D6 00 00 68 [16:49:01]Write i2c OK [16:49:01]MH_I2C_Read... [16:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:01]Read from MH i2c: E2 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: E2 03 00 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: E2 03 00 99 62 00 90 00 6F [16:49:01]RAPDU: 90 00 [16:49:01]wFMCommunicate OK [16:49:01]wFMCommunicate request_size=7 [16:49:01]MH_SAM_APDU [16:49:01]CAPDU: 80 0D 02 02 02 FC DA [16:49:01]Write to MH i2c: E2 0A 00 9A 62 80 0D 02 02 02 00 FC DA 00 00 50 [16:49:01]Write i2c OK [16:49:01]MH_I2C_Read... [16:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:01]Read from MH i2c: E2 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: E2 03 00 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: E2 03 00 9A 62 00 90 00 70 [16:49:01]RAPDU: 90 00 [16:49:01]wFMCommunicate OK [16:49:01]wFMCommunicate request_size=4 [16:49:01]MH_SAM_APDU [16:49:01]CAPDU: 80 0D 03 02 [16:49:01]Write to MH i2c: E2 08 00 9B 62 80 0D 03 02 00 00 00 00 78 [16:49:01]Write i2c OK [16:49:01]MH_I2C_Read... [16:49:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:01]Read from MH i2c: E2 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: E2 0B 00 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: E2 0B 00 9B 62 00 EE B2 5B 9A 38 A1 68 A3 90 00 F2 [16:49:01]RAPDU: EE B2 5B 9A 38 A1 68 A3 90 00 [16:49:01]wFMCommunicate OK [16:49:01]SAM_PROTO_SignData done [16:49:01]FM_MakeSignedData done [16:49:01]CreateOFDProtocolMessage [16:49:01]wFMCommunicate request_size=4 [16:49:01]MH_SAM_APDU [16:49:01]CAPDU: 80 11 00 00 [16:49:01]Write to MH i2c: E2 08 00 9C 62 80 11 00 00 00 00 00 00 78 [16:49:01]Write i2c OK [16:49:01]MH_I2C_Read... [16:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:01]Read from MH i2c: E2 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: E2 17 00 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: E2 17 00 9C 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CB [16:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:49:01]wFMCommunicate OK [16:49:01]CreateOFDProtocolMessage done [16:49:01]OFDSenderStorePacket 192689 [16:49:01]StoreOFDPacket docnum=192689 [16:49:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 46 88 04 01 A1 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 82 C0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 F0 02 00 35 04 06 00 AB 33 D0 D6 FC DA EE B2 5B 9A 38 A1 68 A3 [16:49:01]CheckFolder [16:49:01]dirname=/storage/ofd_packets [16:49:01]CheckFolder done [16:49:01]ProducePacketName [16:49:01]name=ofd_packets/00192689 [16:49:01]NVStorageSaveData ofd_packets/00192689 [16:49:01]File name is /storage/ofd_packets/00192689 [16:49:01]Write 298 bytes [16:49:01]NVStorageSaveData done [16:49:01]OFDSenderStorePacket done [16:49:01]KKMCreateOFDPacket done [16:49:01]NVStorageSaveData kkm_last_timestamp [16:49:01]File name is /storage/kkm_last_timestamp [16:49:01]Write 4 bytes [16:49:01]NVStorageSaveData done [16:49:01]ExternCall_PrintAddStr [16:49:01]wPrintStart [16:49:01]Write to MH i2c: 01 00 00 9D 62 FF [16:49:01]Write i2c OK [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: 01 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: 01 07 00 [16:49:01]MH_I2C_Read... [16:49:01]Read from MH i2c: 01 07 00 9D 62 00 00 00 00 00 FF 0F 14 [16:49:01]RasterBufferAndPrint [16:49:01]line Счет N : (1)32016 [16:49:01]line ИНН: 02508201610067 [16:49:01]line Контрольно-Кассовый Чек [16:49:01]line ПРОДАЖА [16:49:01]line ТРК (МРК, ГНК) : 11 [16:49:01]line Товар: 2710194210 [16:49:01]line ДТ-К-5 [16:49:01]line 15.750 * 76.20 [16:49:01]line = 1200.15 [16:49:01]line НДС 12% НСП 1% [16:49:01]line > о реализуемом товаре [16:49:01]line ОКРУГЛЕНИЕ: -0.15 [16:49:01]line ИТОГО: 1200.00 [16:49:01]line Внесено: 1200.00 [16:49:01]line СДАЧА: 0.00 [16:49:01]line НСП 1% : 10.62 [16:49:01]line НДС 12% : 127.45 [16:49:01]line Наличными: 1200.00 [16:49:01]line Безнал.: 0.00 [16:49:01]line Место: АЗС № 170 "Партнер Нефть" [16:49:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:49:01]line СНО: Общий режим [16:49:01]line Чек 237 28.10.2024 16:49 [16:49:01]line Смена: 543 ФФД: 1.0 [16:49:01]line ЗНМ: 0300000110 [16:49:01]line РНМ: 0000000000091776 [16:49:01]line Версия ККМ: 001 [16:49:01]line ФМ: 0000000000871754 [16:49:01]line ФД: 192689 [16:49:01]line ФПД: 188239035432154 [16:49:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T164906&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192689&fm=188239035432154&tin=02508201610067®Number=0000000000091776&sum=120000 [16:49:02]OFD Sender: Processing packet 192689 [packets to send 75, broken 74] [16:49:02]ProducePacketName [16:49:02]name=ofd_packets/00192689 [16:49:02]OFD Sender: To server: pG, [16:49:02]CommunicateWithHost lk.salyk.kg:30040 [16:49:02]ConnectInit lk.salyk.kg [16:49:02]written 0, free lines is 4095 [16:49:02]Connected sock=10 [16:49:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 46 88 04 01 A1 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 82 C0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 F0 02 00 35 04 06 00 AB 33 D0 D6 FC DA EE B2 5B 9A 38 A1 68 A3 [16:49:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 85 CA 47 00 85 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 F0 02 00 F4 03 04 00 45 65 1F 67 B6 04 01 00 00 87 7F 71 92 7B 7D 48 A6 [16:49:02]CommunicateWithHost err = 0 [16:49:02]CheckOFDResponse [16:49:02]1017 (14) - 77093643461234 [16:49:02]1041 (16) - 0000000000871754 [16:49:02]1040 (4) - 192689 [16:49:02]1012 (4) - 28.10.2024 10:19 [16:49:02]1206 (1) - 0 [16:49:02]OFD Sender: Remove packet 192689 [16:49:02]ProducePacketName [16:49:02]name=ofd_packets/00192689 [16:49:02]NVStorageDeleteData [16:49:02]Write to MH i2c: 01 00 00 C8 62 2A [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: 01 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: 01 07 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: 01 07 00 C8 62 00 00 00 00 00 C5 0C 02 [16:49:02]RasterBufferAndPrint [16:49:02]line [16:49:02]line [16:49:02]line [16:49:02]line [16:49:02]line [16:49:02]written 0, free lines is 3275 [16:49:02]MH_Cut [16:49:02]Write to MH i2c: D1 01 00 CF 62 01 03 [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: D1 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: D1 01 00 [16:49:02]MH_I2C_Read... [16:49:02]Read from MH i2c: D1 01 00 CF 62 00 02 [16:49:02]Write to MH i2c: 01 00 00 D0 62 32 [16:49:02]Write i2c OK [16:49:02]MH_I2C_Read... [16:49:03]OFD Sender: No OFD packet to send [16:49:03]*** Cut start [16:49:03]*** Partial cut [16:49:03]*** CUTSNS_PIN = 1 [16:49:03]*** CUTSNS_PIN = 0 [16:49:03]*** Brake cut motor [16:49:04]Read from MH i2c: 01 [16:49:04]MH_I2C_Read... [16:49:04]*** Stop cut motor [16:49:04]*** Cut end [16:49:04]Read from MH i2c: 01 07 00 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: 01 07 00 D0 62 00 00 00 00 00 FF 0F 47 [16:49:04]process_action close_receipt done [16:49:04]requested_data is exist [16:49:04]produce_requested_data [16:49:04]requested_item fm.sn is exist - process it [16:49:04]wFMCommunicate request_size=4 [16:49:04]MH_SAM_APDU [16:49:04]CAPDU: 80 11 00 00 [16:49:04]Write to MH i2c: E2 08 00 D1 62 80 11 00 00 00 00 00 00 AD [16:49:04]Write i2c OK [16:49:04]MH_I2C_Read... [16:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:04]Read from MH i2c: E2 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 17 00 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 17 00 D1 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 00 [16:49:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:49:04]wFMCommunicate OK [16:49:04]requested_item fd.num is exist - process it [16:49:04]SAM_PROTO_GetFieldsCounters [16:49:04]wFMCommunicate request_size=4 [16:49:04]MH_SAM_APDU [16:49:04]CAPDU: 80 13 00 00 [16:49:04]Write to MH i2c: E2 08 00 D2 62 80 13 00 00 00 00 00 00 B0 [16:49:04]Write i2c OK [16:49:04]MH_I2C_Read... [16:49:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:04]Read from MH i2c: E2 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 62 00 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 62 00 D2 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B1 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [16:49:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B1 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:04]wFMCommunicate OK [16:49:04]SAM_PROTO_GetFieldsCounters done [16:49:04]requested_item shift.num is exist - process it [16:49:04]requested_item shift.opened is exist - process it [16:49:04]req_shift_opened [16:49:04]FM_GetShiftState [16:49:04]SAM_PROTO_GetShiftState [16:49:04]wFMCommunicate request_size=4 [16:49:04]MH_SAM_APDU [16:49:04]CAPDU: 80 13 01 00 [16:49:04]Write to MH i2c: E2 08 00 D3 62 80 13 01 00 00 00 00 00 B2 [16:49:04]Write i2c OK [16:49:04]MH_I2C_Read... [16:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:04]Read from MH i2c: E2 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 0E 00 [16:49:04]MH_I2C_Read... [16:49:04]Read from MH i2c: E2 0E 00 D3 62 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 02 [16:49:04]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:49:04]wFMCommunicate OK [16:49:04]SAM_PROTO_GetShiftState done [16:49:04]FM_GetShiftState done [16:49:04]req_shift_opened done [16:49:04]requested_item shift.open_date is exist - process it [16:49:04]req_shift_open_date [16:49:04]req_shift_open_date done [16:49:04]produce_requested_data done [16:49:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192689,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:49:04]process_action_free close_receipt [16:49:04]json_value_free [16:49:04]json_value_free done [16:49:04]process_json_proto returns [16:49:04]Send response to host [16:49:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192689,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:49:04]free response buf [16:49:04]execute_script done [16:49:04]execute_script returns [16:49:04]free content buf [16:49:04]Sock 7.Close socket [16:49:04]Sock 7.Thread stoped [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:17]accept exits with 9 [16:51:17]New connection [16:51:17]New thread 3066563940 created [16:51:17]Thread 3066707300 joined [16:51:17]Waiting for new connection... [16:51:17] Sock 9.Parse request [16:51:17]Sock 9.Check first char [16:51:17]Sock 9.First char is OK [16:51:17]request: POST /json_proto HTTP/1.0 [16:51:17]Method: POST [16:51:17]URL: /json_proto [16:51:17]Method is POST - this is cgi request [16:51:17]url: /json_proto [16:51:17]query_string will be loaded in cgi processing [16:51:17]execute_cgi json_proto POST (null) [16:51:17]execute_cgi path=json_proto method=POST [16:51:17]POST find Content-Length [16:51:17]Host: 172.17.63.131:8080 [16:51:17]Content-Length: 676 [16:51:17]Content-Type: application/json [16:51:17] [16:51:17]POST finish read [16:51:17]Found Content-Length = 676 [16:51:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:17]execute_script... [16:51:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:17]POST & json_proto [16:51:17]process_json_proto [16:51:17]json parsed OK: [16:51:17]protocol is kg_v1.0 [16:51:17]action value=close_receipt [16:51:17]process_action close_receipt [16:51:17]cmd_close_receipt [16:51:17]MH_GetDate [16:51:17]Write to MH i2c: F0 00 00 D4 62 25 [16:51:17]Write i2c OK [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: F0 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: F0 09 00 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: F0 09 00 D4 62 00 0B C1 1F 67 22 05 6E 64 79 [16:51:17]GetLastDocTimeStamp 1730134146 [16:51:17]current date 1730134283 [16:51:17]FM_GetShiftState [16:51:17]SAM_PROTO_GetShiftState [16:51:17]wFMCommunicate request_size=4 [16:51:17]MH_SAM_APDU [16:51:17]CAPDU: 80 13 01 00 [16:51:17]Write to MH i2c: E2 08 00 D5 62 80 13 01 00 00 00 00 00 B4 [16:51:17]Write i2c OK [16:51:17]MH_I2C_Read... [16:51:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:17]Read from MH i2c: E2 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: E2 0E 00 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: E2 0E 00 D5 62 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 04 [16:51:17]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:51:17]wFMCommunicate OK [16:51:17]SAM_PROTO_GetShiftState done [16:51:17]FM_GetShiftState done [16:51:17]opened in 1730075620 [16:51:17]opened+sec_in_day 1730162020 [16:51:17]quantity*price = 20003 [16:51:17]sum+1 = 20004 [16:51:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 238 28.10.2024 16:51 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192690 ФПД: 234135921043884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T165123&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192690&fm=234135921043884&tin=02508201610067®Number=0000000000091776&sum=20000 [16:51:18]StoreToDocumentArchive [16:51:18]shift 543 fd 192690 [16:51:18]save to /storage/0543/doc_00192690 [16:51:18]save last doc name /storage/0543/doc_00192690 to /storage/kkm_last_doc_name [16:51:18]save OK [16:51:18]Clear old archive folders... [16:51:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:51:18]tlvbuf is 01BA41C0 [16:51:18]SAM_PROTO_ClearQueue [16:51:18]wFMCommunicate request_size=4 [16:51:18]MH_SAM_APDU [16:51:18]CAPDU: 80 09 00 00 [16:51:18]Write to MH i2c: E2 08 00 E2 62 80 09 00 00 00 00 00 00 B6 [16:51:18]Write i2c OK [16:51:18]MH_I2C_Read... [16:51:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:18]Read from MH i2c: E2 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 03 00 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 03 00 E2 62 00 90 00 B8 [16:51:18]RAPDU: 90 00 [16:51:18]wFMCommunicate OK [16:51:18]SAM_PROTO_ClearQueue done [16:51:18]KKMCreateOFDPacket [16:51:18]OFDProtocolAddRootSTLVToBuf [16:51:18]FM_MakeSignedData [16:51:18]FM_MakeSignedData [16:51:18]SAM_PROTO_SignData [16:51:18]wFMCommunicate request_size=4 [16:51:18]MH_SAM_APDU [16:51:18]CAPDU: 80 0D 01 02 [16:51:18]Write to MH i2c: E2 08 00 E3 62 80 0D 01 02 00 00 00 00 BE [16:51:18]Write i2c OK [16:51:18]MH_I2C_Read... [16:51:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:18]Read from MH i2c: E2 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 03 00 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 03 00 E3 62 00 90 00 B9 [16:51:18]RAPDU: 90 00 [16:51:18]wFMCommunicate OK [16:51:18]wFMCommunicate request_size=255 [16:51:18]MH_SAM_APDU [16:51:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 0B C1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 F0 02 00 35 04 06 00 D4 [16:51:18]Write to MH i2c: E2 02 01 E4 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 0B C1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 F0 02 00 35 04 06 00 D4 00 00 ED [16:51:18]Write i2c OK [16:51:18]MH_I2C_Read... [16:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:18]Read from MH i2c: E2 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 03 00 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 03 00 E4 62 00 90 00 BA [16:51:18]RAPDU: 90 00 [16:51:18]wFMCommunicate OK [16:51:18]wFMCommunicate request_size=10 [16:51:18]MH_SAM_APDU [16:51:18]CAPDU: 80 0D 02 02 05 F2 04 67 29 AC [16:51:18]Write to MH i2c: E2 0D 00 E5 62 80 0D 02 02 05 00 F2 04 67 29 AC 00 00 FD [16:51:18]Write i2c OK [16:51:18]MH_I2C_Read... [16:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:18]Read from MH i2c: E2 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 03 00 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 03 00 E5 62 00 90 00 BB [16:51:18]RAPDU: 90 00 [16:51:18]wFMCommunicate OK [16:51:18]wFMCommunicate request_size=4 [16:51:18]MH_SAM_APDU [16:51:18]CAPDU: 80 0D 03 02 [16:51:18]Write to MH i2c: E2 08 00 E6 62 80 0D 03 02 00 00 00 00 C3 [16:51:18]Write i2c OK [16:51:18]MH_I2C_Read... [16:51:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:18]Read from MH i2c: E2 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 0B 00 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 0B 00 E6 62 00 F8 3A 15 4F 85 B4 21 AD 90 00 61 [16:51:18]RAPDU: F8 3A 15 4F 85 B4 21 AD 90 00 [16:51:18]wFMCommunicate OK [16:51:18]SAM_PROTO_SignData done [16:51:18]FM_MakeSignedData done [16:51:18]CreateOFDProtocolMessage [16:51:18]wFMCommunicate request_size=4 [16:51:18]MH_SAM_APDU [16:51:18]CAPDU: 80 11 00 00 [16:51:18]Write to MH i2c: E2 08 00 E7 62 80 11 00 00 00 00 00 00 C3 [16:51:18]Write i2c OK [16:51:18]MH_I2C_Read... [16:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:18]Read from MH i2c: E2 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 17 00 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 17 00 E7 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 16 [16:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:51:18]wFMCommunicate OK [16:51:18]CreateOFDProtocolMessage done [16:51:18]OFDSenderStorePacket 192690 [16:51:18]StoreOFDPacket docnum=192690 [16:51:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BF AF 07 01 41 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 0B C1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 F0 02 00 35 04 06 00 D4 F2 04 67 29 AC F8 3A 15 4F 85 B4 21 AD [16:51:18]CheckFolder [16:51:18]dirname=/storage/ofd_packets [16:51:18]CheckFolder done [16:51:18]ProducePacketName [16:51:18]name=ofd_packets/00192690 [16:51:18]NVStorageSaveData ofd_packets/00192690 [16:51:18]File name is /storage/ofd_packets/00192690 [16:51:18]Write 301 bytes [16:51:18]NVStorageSaveData done [16:51:18]OFDSenderStorePacket done [16:51:18]KKMCreateOFDPacket done [16:51:18]NVStorageSaveData kkm_last_timestamp [16:51:18]File name is /storage/kkm_last_timestamp [16:51:18]Write 4 bytes [16:51:18]NVStorageSaveData done [16:51:18]ExternCall_PrintAddStr [16:51:18]wPrintStart [16:51:18]Write to MH i2c: 01 00 00 E8 62 4A [16:51:18]Write i2c OK [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: 01 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: 01 07 00 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: 01 07 00 E8 62 00 00 00 00 00 FF 0F 5F [16:51:18]RasterBufferAndPrint [16:51:18]line Счет N : (1)32017 [16:51:18]line ИНН: 02508201610067 [16:51:18]line Контрольно-Кассовый Чек [16:51:18]line ПРОДАЖА [16:51:18]line ТРК (МРК, ГНК) : 12 [16:51:18]line Товар: 2710124130 [16:51:18]line Аи-92-К-5 [16:51:18]line 2.990 * 66.90 [16:51:18]line = 200.03 [16:51:18]line НДС 12% НСП 1% [16:51:18]line > о реализуемом товаре [16:51:18]line ОКРУГЛЕНИЕ: -0.03 [16:51:18]line ИТОГО: 200.00 [16:51:18]line Внесено: 200.00 [16:51:18]line СДАЧА: 0.00 [16:51:18]line НСП 1% : 1.77 [16:51:18]line НДС 12% : 21.24 [16:51:18]line Наличными: 200.00 [16:51:18]line Безнал.: 0.00 [16:51:18]line Место: АЗС № 170 "Партнер Нефть" [16:51:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:51:18]line СНО: Общий режим [16:51:18]line Чек 238 28.10.2024 16:51 [16:51:18]line Смена: 543 ФФД: 1.0 [16:51:18]line ЗНМ: 0300000110 [16:51:18]line РНМ: 0000000000091776 [16:51:18]line Версия ККМ: 001 [16:51:18]line ФМ: 0000000000871754 [16:51:18]line ФД: 192690 [16:51:18]line ФПД: 234135921043884 [16:51:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T165123&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192690&fm=234135921043884&tin=02508201610067®Number=0000000000091776&sum=20000 [16:51:19]OFD Sender: Processing packet 192690 [packets to send 75, broken 74] [16:51:19]ProducePacketName [16:51:19]name=ofd_packets/00192690 [16:51:19]OFD Sender: To server: pG, [16:51:19]CommunicateWithHost lk.salyk.kg:30040 [16:51:19]ConnectInit lk.salyk.kg [16:51:19]written 0, free lines is 4095 [16:51:19]Connected sock=10 [16:51:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BF AF 07 01 41 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 0B C1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 F0 02 00 35 04 06 00 D4 F2 04 67 29 AC F8 3A 15 4F 85 B4 21 AD [16:51:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9B 8B 47 00 82 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 F0 02 00 F4 03 04 00 CE 65 1F 67 B6 04 01 00 00 4A 2A DF B0 16 1F 45 12 [16:51:19]CommunicateWithHost err = 0 [16:51:19]CheckOFDResponse [16:51:19]1017 (14) - 77093643461234 [16:51:19]1041 (16) - 0000000000871754 [16:51:19]1040 (4) - 192690 [16:51:19]1012 (4) - 28.10.2024 10:22 [16:51:19]1206 (1) - 0 [16:51:19]OFD Sender: Remove packet 192690 [16:51:19]ProducePacketName [16:51:19]name=ofd_packets/00192690 [16:51:19]NVStorageDeleteData [16:51:19]Write to MH i2c: 01 00 00 13 63 76 [16:51:19]Write i2c OK [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: 01 [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: 01 07 00 [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: 01 07 00 13 63 00 00 00 00 00 C5 0C 4E [16:51:19]RasterBufferAndPrint [16:51:19]line [16:51:19]line [16:51:19]line [16:51:19]line [16:51:19]line [16:51:19]written 0, free lines is 3275 [16:51:19]MH_Cut [16:51:19]Write to MH i2c: D1 01 00 1A 63 01 4F [16:51:19]Write i2c OK [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: D1 [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: D1 01 00 [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: D1 01 00 1A 63 00 4E [16:51:19]Write to MH i2c: 01 00 00 1B 63 7E [16:51:19]Write i2c OK [16:51:19]MH_I2C_Read... [16:51:19]OFD Sender: No OFD packet to send [16:51:20]*** Cut start [16:51:20]*** Partial cut [16:51:20]*** CUTSNS_PIN = 1 [16:51:20]*** CUTSNS_PIN = 0 [16:51:20]*** Brake cut motor [16:51:20]Read from MH i2c: 01 [16:51:20]MH_I2C_Read... [16:51:20]*** Stop cut motor [16:51:21]*** Cut end [16:51:21]Read from MH i2c: 01 07 00 [16:51:21]MH_I2C_Read... [16:51:21]Read from MH i2c: 01 07 00 1B 63 00 00 00 00 00 FF 0F 93 [16:51:21]process_action close_receipt done [16:51:21]requested_data is exist [16:51:21]produce_requested_data [16:51:21]requested_item fm.sn is exist - process it [16:51:21]wFMCommunicate request_size=4 [16:51:21]MH_SAM_APDU [16:51:21]CAPDU: 80 11 00 00 [16:51:21]Write to MH i2c: E2 08 00 1C 63 80 11 00 00 00 00 00 00 F9 [16:51:21]Write i2c OK [16:51:21]MH_I2C_Read... [16:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:21]Read from MH i2c: E2 [16:51:21]MH_I2C_Read... [16:51:21]Read from MH i2c: E2 17 00 [16:51:21]MH_I2C_Read... [16:51:21]Read from MH i2c: E2 17 00 1C 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [16:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:51:21]wFMCommunicate OK [16:51:21]requested_item fd.num is exist - process it [16:51:21]SAM_PROTO_GetFieldsCounters [16:51:21]wFMCommunicate request_size=4 [16:51:21]MH_SAM_APDU [16:51:21]CAPDU: 80 13 00 00 [16:51:21]Write to MH i2c: E2 08 00 1D 63 80 13 00 00 00 00 00 00 FC [16:51:21]Write i2c OK [16:51:21]MH_I2C_Read... [16:51:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:21]Read from MH i2c: E2 [16:51:21]MH_I2C_Read... [16:51:21]Read from MH i2c: E2 62 00 [16:51:21]MH_I2C_Read... [16:51:21]Read from MH i2c: E2 62 00 1D 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B2 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [16:51:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B2 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:51:21]wFMCommunicate OK [16:51:21]SAM_PROTO_GetFieldsCounters done [16:51:21]requested_item shift.num is exist - process it [16:51:21]requested_item shift.opened is exist - process it [16:51:21]req_shift_opened [16:51:21]FM_GetShiftState [16:51:21]SAM_PROTO_GetShiftState [16:51:21]wFMCommunicate request_size=4 [16:51:21]MH_SAM_APDU [16:51:21]CAPDU: 80 13 01 00 [16:51:21]Write to MH i2c: E2 08 00 1E 63 80 13 01 00 00 00 00 00 FE [16:51:21]Write i2c OK [16:51:21]MH_I2C_Read... [16:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:21]Read from MH i2c: E2 [16:51:21]MH_I2C_Read... [16:51:21]Read from MH i2c: E2 0E 00 [16:51:21]MH_I2C_Read... [16:51:21]Read from MH i2c: E2 0E 00 1E 63 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 4E [16:51:21]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:51:21]wFMCommunicate OK [16:51:21]SAM_PROTO_GetShiftState done [16:51:21]FM_GetShiftState done [16:51:21]req_shift_opened done [16:51:21]requested_item shift.open_date is exist - process it [16:51:21]req_shift_open_date [16:51:21]req_shift_open_date done [16:51:21]produce_requested_data done [16:51:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192690,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:51:21]process_action_free close_receipt [16:51:21]json_value_free [16:51:21]json_value_free done [16:51:21]process_json_proto returns [16:51:21]Send response to host [16:51:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192690,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:51:21]free response buf [16:51:21]execute_script done [16:51:21]execute_script returns [16:51:21]free content buf [16:51:21]Sock 9.Close socket [16:51:21]Sock 9.Thread stoped [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:36]accept exits with 7 [16:53:36]New connection [16:53:36]New thread 3066707300 created [16:53:36]Thread 3066563940 joined [16:53:36]Waiting for new connection... [16:53:36] Sock 7.Parse request [16:53:36]Sock 7.Check first char [16:53:36]Sock 7.First char is OK [16:53:36]request: POST /json_proto HTTP/1.0 [16:53:36]Method: POST [16:53:36]URL: /json_proto [16:53:36]Method is POST - this is cgi request [16:53:36]url: /json_proto [16:53:36]query_string will be loaded in cgi processing [16:53:36]execute_cgi json_proto POST (null) [16:53:36]execute_cgi path=json_proto method=POST [16:53:36]POST find Content-Length [16:53:36]Host: 172.17.63.131:8080 [16:53:36]Content-Length: 862 [16:53:36]Content-Type: application/json [16:53:36] [16:53:36]POST finish read [16:53:36]Found Content-Length = 862 [16:53:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:36]execute_script... [16:53: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)32019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:36]POST & json_proto [16:53:36]process_json_proto [16:53:36]json parsed OK: [16:53:36]protocol is kg_v1.0 [16:53:36]action value=close_receipt [16:53:36]process_action close_receipt [16:53:36]cmd_close_receipt [16:53:36]MH_GetDate [16:53:36]Write to MH i2c: F0 00 00 1F 63 71 [16:53:36]Write i2c OK [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: F0 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: F0 09 00 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: F0 09 00 1F 63 00 97 C1 1F 67 22 05 6E 64 51 [16:53:36]GetLastDocTimeStamp 1730134283 [16:53:36]current date 1730134423 [16:53:36]FM_GetShiftState [16:53:36]SAM_PROTO_GetShiftState [16:53:36]wFMCommunicate request_size=4 [16:53:36]MH_SAM_APDU [16:53:36]CAPDU: 80 13 01 00 [16:53:36]Write to MH i2c: E2 08 00 20 63 80 13 01 00 00 00 00 00 00 [16:53:36]Write i2c OK [16:53:36]MH_I2C_Read... [16:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:36]Read from MH i2c: E2 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: E2 0E 00 [16:53:36]MH_I2C_Read... [16:53:36]Read from MH i2c: E2 0E 00 20 63 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 50 [16:53:36]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:53:36]wFMCommunicate OK [16:53:36]SAM_PROTO_GetShiftState done [16:53:36]FM_GetShiftState done [16:53:36]opened in 1730075620 [16:53:36]opened+sec_in_day 1730162020 [16:53:36]quantity*price = 50041 [16:53:36]sum+1 = 50042 [16:53:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 239 28.10.2024 16:53 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192691 ФПД: 131445313383274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T165343&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192691&fm=131445313383274&tin=02508201610067®Number=0000000000091776&sum=50041 [16:53:38]StoreToDocumentArchive [16:53:38]shift 543 fd 192691 [16:53:38]save to /storage/0543/doc_00192691 [16:53:38]save last doc name /storage/0543/doc_00192691 to /storage/kkm_last_doc_name [16:53:38]save OK [16:53:38]Clear old archive folders... [16:53:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:38]tlvbuf is 0197B200 [16:53:38]SAM_PROTO_ClearQueue [16:53:38]wFMCommunicate request_size=4 [16:53:38]MH_SAM_APDU [16:53:38]CAPDU: 80 09 00 00 [16:53:38]Write to MH i2c: E2 08 00 2D 63 80 09 00 00 00 00 00 00 02 [16:53:38]Write i2c OK [16:53:38]MH_I2C_Read... [16:53:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:38]Read from MH i2c: E2 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 03 00 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 03 00 2D 63 00 90 00 04 [16:53:38]RAPDU: 90 00 [16:53:38]wFMCommunicate OK [16:53:38]SAM_PROTO_ClearQueue done [16:53:38]KKMCreateOFDPacket [16:53:38]OFDProtocolAddRootSTLVToBuf [16:53:38]FM_MakeSignedData [16:53:38]FM_MakeSignedData [16:53:38]SAM_PROTO_SignData [16:53:38]wFMCommunicate request_size=4 [16:53:38]MH_SAM_APDU [16:53:38]CAPDU: 80 0D 01 02 [16:53:38]Write to MH i2c: E2 08 00 2E 63 80 0D 01 02 00 00 00 00 0A [16:53:38]Write i2c OK [16:53:38]MH_I2C_Read... [16:53:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:38]Read from MH i2c: E2 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 03 00 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 03 00 2E 63 00 90 00 05 [16:53:38]RAPDU: 90 00 [16:53:38]wFMCommunicate OK [16:53:38]wFMCommunicate request_size=255 [16:53:38]MH_SAM_APDU [16:53: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 97 C1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 F0 02 00 35 04 06 00 77 [16:53:38]Write to MH i2c: E2 02 01 2F 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 97 C1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 F0 02 00 35 04 06 00 77 00 00 FA [16:53:38]Write i2c OK [16:53:38]MH_I2C_Read... [16:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:38]Read from MH i2c: E2 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 03 00 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 03 00 2F 63 00 90 00 06 [16:53:38]RAPDU: 90 00 [16:53:38]wFMCommunicate OK [16:53:38]wFMCommunicate request_size=10 [16:53:38]MH_SAM_APDU [16:53:38]CAPDU: 80 0D 02 02 05 8C 7F 36 2B 6A [16:53:38]Write to MH i2c: E2 0D 00 30 63 80 0D 02 02 05 00 8C 7F 36 2B 6A 00 00 ED [16:53:38]Write i2c OK [16:53:38]MH_I2C_Read... [16:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:38]Read from MH i2c: E2 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 03 00 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 03 00 30 63 00 90 00 07 [16:53:38]RAPDU: 90 00 [16:53:38]wFMCommunicate OK [16:53:38]wFMCommunicate request_size=4 [16:53:38]MH_SAM_APDU [16:53:38]CAPDU: 80 0D 03 02 [16:53:38]Write to MH i2c: E2 08 00 31 63 80 0D 03 02 00 00 00 00 0F [16:53:38]Write i2c OK [16:53:38]MH_I2C_Read... [16:53:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:38]Read from MH i2c: E2 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 0B 00 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 0B 00 31 63 00 62 D7 53 C4 69 9A C3 49 90 00 6F [16:53:38]RAPDU: 62 D7 53 C4 69 9A C3 49 90 00 [16:53:38]wFMCommunicate OK [16:53:38]SAM_PROTO_SignData done [16:53:38]FM_MakeSignedData done [16:53:38]CreateOFDProtocolMessage [16:53:38]wFMCommunicate request_size=4 [16:53:38]MH_SAM_APDU [16:53:38]CAPDU: 80 11 00 00 [16:53:38]Write to MH i2c: E2 08 00 32 63 80 11 00 00 00 00 00 00 0F [16:53:38]Write i2c OK [16:53:38]MH_I2C_Read... [16:53:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:38]Read from MH i2c: E2 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 17 00 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 17 00 32 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 62 [16:53:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:53:38]wFMCommunicate OK [16:53:38]CreateOFDProtocolMessage done [16:53:38]OFDSenderStorePacket 192691 [16:53:38]StoreOFDPacket docnum=192691 [16:53:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 BC 07 01 ED B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 97 C1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 F0 02 00 35 04 06 00 77 8C 7F 36 2B 6A 62 D7 53 C4 69 9A C3 49 [16:53:38]CheckFolder [16:53:38]dirname=/storage/ofd_packets [16:53:38]CheckFolder done [16:53:38]ProducePacketName [16:53:38]name=ofd_packets/00192691 [16:53:38]NVStorageSaveData ofd_packets/00192691 [16:53:38]File name is /storage/ofd_packets/00192691 [16:53:38]Write 301 bytes [16:53:38]NVStorageSaveData done [16:53:38]OFDSenderStorePacket done [16:53:38]KKMCreateOFDPacket done [16:53:38]NVStorageSaveData kkm_last_timestamp [16:53:38]File name is /storage/kkm_last_timestamp [16:53:38]Write 4 bytes [16:53:38]NVStorageSaveData done [16:53:38]ExternCall_PrintAddStr [16:53:38]wPrintStart [16:53:38]Write to MH i2c: 01 00 00 33 63 96 [16:53:38]Write i2c OK [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: 01 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: 01 07 00 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: 01 07 00 33 63 00 00 00 00 00 FF 0F AB [16:53:38]RasterBufferAndPrint [16:53:38]line Счет N : (1)32019 [16:53:38]line ИНН: 02508201610067 [16:53:38]line Контрольно-Кассовый Чек [16:53:38]line ПРОДАЖА [16:53:38]line ТРК (МРК, ГНК) : 12 [16:53:38]line Товар: 2710124130 [16:53:38]line Аи-92-К-5 [16:53:38]line 7.480 * 66.90 [16:53:38]line = 500.41 [16:53:38]line НДС 12% НСП 1% [16:53:38]line > о реализуемом товаре [16:53:38]line ИТОГО: 500.41 [16:53:38]line НСП 1% : 4.43 [16:53:38]line НДС 12% : 53.14 [16:53:38]line Наличными: 0.00 [16:53:38]line Безнал.: 500.41 [16:53:38]line Место: АЗС № 170 "Партнер Нефть" [16:53:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:53:38]line СНО: Общий режим [16:53:38]line Чек 239 28.10.2024 16:53 [16:53:38]line Смена: 543 ФФД: 1.0 [16:53:38]line ЗНМ: 0300000110 [16:53:38]line РНМ: 0000000000091776 [16:53:38]line Версия ККМ: 001 [16:53:38]line Платежная система: Кыргызкоммерцбанк [16:53:38]line ФМ: 0000000000871754 [16:53:38]line ФД: 192691 [16:53:38]line ФПД: 131445313383274 [16:53:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T165343&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192691&fm=131445313383274&tin=02508201610067®Number=0000000000091776&sum=50041 [16:53:38]OFD Sender: Processing packet 192691 [packets to send 75, broken 74] [16:53:38]ProducePacketName [16:53:38]name=ofd_packets/00192691 [16:53:38]OFD Sender: To server: pG, [16:53:38]CommunicateWithHost lk.salyk.kg:30040 [16:53:38]ConnectInit lk.salyk.kg [16:53:38]written 0, free lines is 4095 [16:53:39]Connected sock=10 [16:53:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 BC 07 01 ED B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 97 C1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 F0 02 00 35 04 06 00 77 8C 7F 36 2B 6A 62 D7 53 C4 69 9A C3 49 [16:53:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 30 7A 47 00 14 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 F0 02 00 F4 03 04 00 5A 66 1F 67 B6 04 01 00 00 FC 0E 53 C4 85 67 AE 93 [16:53:39]CommunicateWithHost err = 0 [16:53:39]CheckOFDResponse [16:53:39]1017 (14) - 77093643461234 [16:53:39]1041 (16) - 0000000000871754 [16:53:39]1040 (4) - 192691 [16:53:39]1012 (4) - 28.10.2024 10:24 [16:53:39]1206 (1) - 0 [16:53:39]OFD Sender: Remove packet 192691 [16:53:39]ProducePacketName [16:53:39]name=ofd_packets/00192691 [16:53:39]NVStorageDeleteData [16:53:39]Write to MH i2c: 01 00 00 5D 63 C0 [16:53:39]Write i2c OK [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: 01 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: 01 07 00 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: 01 07 00 5D 63 00 00 00 00 00 DD 0C B0 [16:53:39]RasterBufferAndPrint [16:53:39]line [16:53:39]line [16:53:39]line [16:53:39]line [16:53:39]line [16:53:39]written 0, free lines is 3302 [16:53:39]MH_Cut [16:53:39]Write to MH i2c: D1 01 00 64 63 01 99 [16:53:39]Write i2c OK [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: D1 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: D1 01 00 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: D1 01 00 64 63 00 98 [16:53:39]Write to MH i2c: 01 00 00 65 63 C8 [16:53:39]Write i2c OK [16:53:39]MH_I2C_Read... [16:53:39]OFD Sender: No OFD packet to send [16:53:40]*** Cut start [16:53:40]*** Partial cut [16:53:40]*** CUTSNS_PIN = 1 [16:53:40]*** CUTSNS_PIN = 0 [16:53:40]*** Brake cut motor [16:53:40]Read from MH i2c: 01 [16:53:40]MH_I2C_Read... [16:53:40]*** Stop cut motor [16:53:40]*** Cut end [16:53:40]Read from MH i2c: 01 07 00 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: 01 07 00 65 63 00 00 00 00 00 FF 0F DD [16:53:40]process_action close_receipt done [16:53:40]requested_data is exist [16:53:40]produce_requested_data [16:53:40]requested_item fm.sn is exist - process it [16:53:40]wFMCommunicate request_size=4 [16:53:40]MH_SAM_APDU [16:53:40]CAPDU: 80 11 00 00 [16:53:40]Write to MH i2c: E2 08 00 66 63 80 11 00 00 00 00 00 00 43 [16:53:40]Write i2c OK [16:53:40]MH_I2C_Read... [16:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:40]Read from MH i2c: E2 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 17 00 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 17 00 66 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [16:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:53:40]wFMCommunicate OK [16:53:40]requested_item fd.num is exist - process it [16:53:40]SAM_PROTO_GetFieldsCounters [16:53:40]wFMCommunicate request_size=4 [16:53:40]MH_SAM_APDU [16:53:40]CAPDU: 80 13 00 00 [16:53:40]Write to MH i2c: E2 08 00 67 63 80 13 00 00 00 00 00 00 46 [16:53:40]Write i2c OK [16:53:40]MH_I2C_Read... [16:53:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:41]Read from MH i2c: E2 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: E2 62 00 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: E2 62 00 67 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B3 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [16:53: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B3 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:41]wFMCommunicate OK [16:53:41]SAM_PROTO_GetFieldsCounters done [16:53:41]requested_item shift.num is exist - process it [16:53:41]requested_item shift.opened is exist - process it [16:53:41]req_shift_opened [16:53:41]FM_GetShiftState [16:53:41]SAM_PROTO_GetShiftState [16:53:41]wFMCommunicate request_size=4 [16:53:41]MH_SAM_APDU [16:53:41]CAPDU: 80 13 01 00 [16:53:41]Write to MH i2c: E2 08 00 68 63 80 13 01 00 00 00 00 00 48 [16:53:41]Write i2c OK [16:53:41]MH_I2C_Read... [16:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:41]Read from MH i2c: E2 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: E2 0E 00 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: E2 0E 00 68 63 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 98 [16:53:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:53:41]wFMCommunicate OK [16:53:41]SAM_PROTO_GetShiftState done [16:53:41]FM_GetShiftState done [16:53:41]req_shift_opened done [16:53:41]requested_item shift.open_date is exist - process it [16:53:41]req_shift_open_date [16:53:41]req_shift_open_date done [16:53:41]produce_requested_data done [16:53:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192691,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:53:41]process_action_free close_receipt [16:53:41]json_value_free [16:53:41]json_value_free done [16:53:41]process_json_proto returns [16:53:41]Send response to host [16:53:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192691,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:53:41]free response buf [16:53:41]execute_script done [16:53:41]execute_script returns [16:53:41]free content buf [16:53:41]Sock 7.Close socket [16:53:41]Sock 7.Thread stoped [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]accept exits with 9 [16:54:29]New connection [16:54:29]New thread 3066563940 created [16:54:29]Thread 3066707300 joined [16:54:29]Waiting for new connection... [16:54:29] Sock 9.Parse request [16:54:29]Sock 9.Check first char [16:54:29]Sock 9.First char is OK [16:54:29]request: POST /json_proto HTTP/1.0 [16:54:29]Method: POST [16:54:29]URL: /json_proto [16:54:29]Method is POST - this is cgi request [16:54:29]url: /json_proto [16:54:29]query_string will be loaded in cgi processing [16:54:29]execute_cgi json_proto POST (null) [16:54:29]execute_cgi path=json_proto method=POST [16:54:29]POST find Content-Length [16:54:29]Host: 172.17.63.131:8080 [16:54:29]Content-Length: 678 [16:54:29]Content-Type: application/json [16:54:29] [16:54:29]POST finish read [16:54:29]Found Content-Length = 678 [16:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:29]execute_script... [16:54:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:29]POST & json_proto [16:54:29]process_json_proto [16:54:29]json parsed OK: [16:54:29]protocol is kg_v1.0 [16:54:29]action value=close_receipt [16:54:29]process_action close_receipt [16:54:29]cmd_close_receipt [16:54:29]MH_GetDate [16:54:29]Write to MH i2c: F0 00 00 69 63 BB [16:54:29]Write i2c OK [16:54:29]MH_I2C_Read... [16:54:29]Read from MH i2c: F0 [16:54:29]MH_I2C_Read... [16:54:29]Read from MH i2c: F0 09 00 [16:54:29]MH_I2C_Read... [16:54:29]Read from MH i2c: F0 09 00 69 63 00 CB C1 1F 67 22 05 6E 64 CF [16:54:29]GetLastDocTimeStamp 1730134423 [16:54:29]current date 1730134475 [16:54:29]FM_GetShiftState [16:54:29]SAM_PROTO_GetShiftState [16:54:29]wFMCommunicate request_size=4 [16:54:29]MH_SAM_APDU [16:54:29]CAPDU: 80 13 01 00 [16:54:29]Write to MH i2c: E2 08 00 6A 63 80 13 01 00 00 00 00 00 4A [16:54:29]Write i2c OK [16:54:29]MH_I2C_Read... [16:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:29]Read from MH i2c: E2 [16:54:29]MH_I2C_Read... [16:54:29]Read from MH i2c: E2 0E 00 [16:54:29]MH_I2C_Read... [16:54:29]Read from MH i2c: E2 0E 00 6A 63 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 9A [16:54:29]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:54:29]wFMCommunicate OK [16:54:29]SAM_PROTO_GetShiftState done [16:54:29]FM_GetShiftState done [16:54:29]opened in 1730075620 [16:54:29]opened+sec_in_day 1730162020 [16:54:29]quantity*price = 200025 [16:54:29]sum+1 = 200026 [16:54:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 240 28.10.2024 16:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192692 ФПД: 106253408959084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T165435&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192692&fm=106253408959084&tin=02508201610067®Number=0000000000091776&sum=200000 [16:54:30]StoreToDocumentArchive [16:54:30]shift 543 fd 192692 [16:54:30]save to /storage/0543/doc_00192692 [16:54:30]save last doc name /storage/0543/doc_00192692 to /storage/kkm_last_doc_name [16:54:30]save OK [16:54:30]Clear old archive folders... [16:54:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:54:30]tlvbuf is 01BBB650 [16:54:30]SAM_PROTO_ClearQueue [16:54:30]wFMCommunicate request_size=4 [16:54:30]MH_SAM_APDU [16:54:30]CAPDU: 80 09 00 00 [16:54:30]Write to MH i2c: E2 08 00 77 63 80 09 00 00 00 00 00 00 4C [16:54:30]Write i2c OK [16:54:30]MH_I2C_Read... [16:54:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:30]Read from MH i2c: E2 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 03 00 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 03 00 77 63 00 90 00 4E [16:54:30]RAPDU: 90 00 [16:54:30]wFMCommunicate OK [16:54:30]SAM_PROTO_ClearQueue done [16:54:30]KKMCreateOFDPacket [16:54:30]OFDProtocolAddRootSTLVToBuf [16:54:30]FM_MakeSignedData [16:54:30]FM_MakeSignedData [16:54:30]SAM_PROTO_SignData [16:54:30]wFMCommunicate request_size=4 [16:54:30]MH_SAM_APDU [16:54:30]CAPDU: 80 0D 01 02 [16:54:30]Write to MH i2c: E2 08 00 78 63 80 0D 01 02 00 00 00 00 54 [16:54:30]Write i2c OK [16:54:30]MH_I2C_Read... [16:54:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:30]Read from MH i2c: E2 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 03 00 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 03 00 78 63 00 90 00 4F [16:54:30]RAPDU: 90 00 [16:54:30]wFMCommunicate OK [16:54:30]wFMCommunicate request_size=255 [16:54:30]MH_SAM_APDU [16:54:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 CB C1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 F0 02 00 35 04 06 00 60 A3 0C B2 [16:54:30]Write to MH i2c: E2 02 01 79 63 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 CB C1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 F0 02 00 35 04 06 00 60 A3 0C B2 00 00 56 [16:54:30]Write i2c OK [16:54:30]MH_I2C_Read... [16:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:30]Read from MH i2c: E2 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 03 00 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 03 00 79 63 00 90 00 50 [16:54:30]RAPDU: 90 00 [16:54:30]wFMCommunicate OK [16:54:30]wFMCommunicate request_size=7 [16:54:30]MH_SAM_APDU [16:54:30]CAPDU: 80 0D 02 02 02 7A 6C [16:54:30]Write to MH i2c: E2 0A 00 7A 63 80 0D 02 02 02 00 7A 6C 00 00 41 [16:54:30]Write i2c OK [16:54:30]MH_I2C_Read... [16:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:30]Read from MH i2c: E2 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 03 00 [16:54:30]MH_I2C_Read... [16:54:30]Read from MH i2c: E2 03 00 7A 63 00 90 00 51 [16:54:30]RAPDU: 90 00 [16:54:30]wFMCommunicate OK [16:54:30]wFMCommunicate request_size=4 [16:54:30]MH_SAM_APDU [16:54:30]CAPDU: 80 0D 03 02 [16:54:30]Write to MH i2c: E2 08 00 7B 63 80 0D 03 02 00 00 00 00 59 [16:54:30]Write i2c OK [16:54:30]MH_I2C_Read... [16:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:31]Read from MH i2c: E2 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 0B 00 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 0B 00 7B 63 00 C8 9B 26 4B 97 FC 40 71 90 00 72 [16:54:31]RAPDU: C8 9B 26 4B 97 FC 40 71 90 00 [16:54:31]wFMCommunicate OK [16:54:31]SAM_PROTO_SignData done [16:54:31]FM_MakeSignedData done [16:54:31]CreateOFDProtocolMessage [16:54:31]wFMCommunicate request_size=4 [16:54:31]MH_SAM_APDU [16:54:31]CAPDU: 80 11 00 00 [16:54:31]Write to MH i2c: E2 08 00 7C 63 80 11 00 00 00 00 00 00 59 [16:54:31]Write i2c OK [16:54:31]MH_I2C_Read... [16:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:31]Read from MH i2c: E2 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 17 00 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: E2 17 00 7C 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [16:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:54:31]wFMCommunicate OK [16:54:31]CreateOFDProtocolMessage done [16:54:31]OFDSenderStorePacket 192692 [16:54:31]StoreOFDPacket docnum=192692 [16:54:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 67 55 04 01 6A 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 CB C1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 F0 02 00 35 04 06 00 60 A3 0C B2 7A 6C C8 9B 26 4B 97 FC 40 71 [16:54:31]CheckFolder [16:54:31]dirname=/storage/ofd_packets [16:54:31]CheckFolder done [16:54:31]ProducePacketName [16:54:31]name=ofd_packets/00192692 [16:54:31]NVStorageSaveData ofd_packets/00192692 [16:54:31]File name is /storage/ofd_packets/00192692 [16:54:31]Write 298 bytes [16:54:31]NVStorageSaveData done [16:54:31]OFDSenderStorePacket done [16:54:31]KKMCreateOFDPacket done [16:54:31]NVStorageSaveData kkm_last_timestamp [16:54:31]File name is /storage/kkm_last_timestamp [16:54:31]Write 4 bytes [16:54:31]NVStorageSaveData done [16:54:31]ExternCall_PrintAddStr [16:54:31]wPrintStart [16:54:31]Write to MH i2c: 01 00 00 7D 63 E0 [16:54:31]Write i2c OK [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: 01 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: 01 07 00 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: 01 07 00 7D 63 00 00 00 00 00 FF 0F F5 [16:54:31]RasterBufferAndPrint [16:54:31]line Счет N : (1)32018 [16:54:31]line ИНН: 02508201610067 [16:54:31]line Контрольно-Кассовый Чек [16:54:31]line ПРОДАЖА [16:54:31]line ТРК (МРК, ГНК) : 11 [16:54:31]line Товар: 2710194210 [16:54:31]line ДТ-К-5 [16:54:31]line 26.250 * 76.20 [16:54:31]line = 2000.25 [16:54:31]line НДС 12% НСП 1% [16:54:31]line > о реализуемом товаре [16:54:31]line ОКРУГЛЕНИЕ: -0.25 [16:54:31]line ИТОГО: 2000.00 [16:54:31]line Внесено: 2000.00 [16:54:31]line СДАЧА: 0.00 [16:54:31]line НСП 1% : 17.70 [16:54:31]line НДС 12% : 212.42 [16:54:31]line Наличными: 2000.00 [16:54:31]line Безнал.: 0.00 [16:54:31]line Место: АЗС № 170 "Партнер Нефть" [16:54:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:54:31]line СНО: Общий режим [16:54:31]line Чек 240 28.10.2024 16:54 [16:54:31]line Смена: 543 ФФД: 1.0 [16:54:31]line ЗНМ: 0300000110 [16:54:31]line РНМ: 0000000000091776 [16:54:31]line Версия ККМ: 001 [16:54:31]line ФМ: 0000000000871754 [16:54:31]line ФД: 192692 [16:54:31]line ФПД: 106253408959084 [16:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T165435&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192692&fm=106253408959084&tin=02508201610067®Number=0000000000091776&sum=200000 [16:54:31]OFD Sender: Processing packet 192692 [packets to send 75, broken 74] [16:54:31]ProducePacketName [16:54:31]name=ofd_packets/00192692 [16:54:31]OFD Sender: To server: pG, [16:54:31]CommunicateWithHost lk.salyk.kg:30040 [16:54:31]ConnectInit lk.salyk.kg [16:54:31]written 0, free lines is 4095 [16:54:31]Connected sock=10 [16:54:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 67 55 04 01 6A 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 CB C1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 F0 02 00 35 04 06 00 60 A3 0C B2 7A 6C C8 9B 26 4B 97 FC 40 71 [16:54:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F4 21 47 00 91 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 F0 02 00 F4 03 04 00 8F 66 1F 67 B6 04 01 00 00 9F C4 13 59 E7 1E 48 D9 [16:54:31]CommunicateWithHost err = 0 [16:54:31]CheckOFDResponse [16:54:31]1017 (14) - 77093643461234 [16:54:31]1041 (16) - 0000000000871754 [16:54:31]1040 (4) - 192692 [16:54:31]1012 (4) - 28.10.2024 10:25 [16:54:31]1206 (1) - 0 [16:54:31]OFD Sender: Remove packet 192692 [16:54:31]ProducePacketName [16:54:31]name=ofd_packets/00192692 [16:54:31]NVStorageDeleteData [16:54:31]Write to MH i2c: 01 00 00 A8 63 0B [16:54:31]Write i2c OK [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: 01 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: 01 07 00 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: 01 07 00 A8 63 00 00 00 00 00 CD 0C EB [16:54:31]RasterBufferAndPrint [16:54:31]line [16:54:31]line [16:54:31]line [16:54:31]line [16:54:31]line [16:54:31]written 0, free lines is 3283 [16:54:31]MH_Cut [16:54:31]Write to MH i2c: D1 01 00 AF 63 01 E4 [16:54:31]Write i2c OK [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: D1 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: D1 01 00 [16:54:31]MH_I2C_Read... [16:54:31]Read from MH i2c: D1 01 00 AF 63 00 E3 [16:54:31]Write to MH i2c: 01 00 00 B0 63 13 [16:54:31]Write i2c OK [16:54:31]MH_I2C_Read... [16:54:32]OFD Sender: No OFD packet to send [16:54:32]*** Cut start [16:54:32]*** Partial cut [16:54:32]*** CUTSNS_PIN = 1 [16:54:32]*** CUTSNS_PIN = 0 [16:54:32]*** Brake cut motor [16:54:33]Read from MH i2c: 01 [16:54:33]MH_I2C_Read... [16:54:33]*** Stop cut motor [16:54:33]*** Cut end [16:54:33]Read from MH i2c: 01 07 00 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: 01 07 00 B0 63 00 00 00 00 00 FF 0F 28 [16:54:33]process_action close_receipt done [16:54:33]requested_data is exist [16:54:33]produce_requested_data [16:54:33]requested_item fm.sn is exist - process it [16:54:33]wFMCommunicate request_size=4 [16:54:33]MH_SAM_APDU [16:54:33]CAPDU: 80 11 00 00 [16:54:33]Write to MH i2c: E2 08 00 B1 63 80 11 00 00 00 00 00 00 8E [16:54:33]Write i2c OK [16:54:33]MH_I2C_Read... [16:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:33]Read from MH i2c: E2 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: E2 17 00 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: E2 17 00 B1 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E1 [16:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:54:33]wFMCommunicate OK [16:54:33]requested_item fd.num is exist - process it [16:54:33]SAM_PROTO_GetFieldsCounters [16:54:33]wFMCommunicate request_size=4 [16:54:33]MH_SAM_APDU [16:54:33]CAPDU: 80 13 00 00 [16:54:33]Write to MH i2c: E2 08 00 B2 63 80 13 00 00 00 00 00 00 91 [16:54:33]Write i2c OK [16:54:33]MH_I2C_Read... [16:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:33]Read from MH i2c: E2 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: E2 62 00 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: E2 62 00 B2 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B4 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [16:54:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B4 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:54:33]wFMCommunicate OK [16:54:33]SAM_PROTO_GetFieldsCounters done [16:54:33]requested_item shift.num is exist - process it [16:54:33]requested_item shift.opened is exist - process it [16:54:33]req_shift_opened [16:54:33]FM_GetShiftState [16:54:33]SAM_PROTO_GetShiftState [16:54:33]wFMCommunicate request_size=4 [16:54:33]MH_SAM_APDU [16:54:33]CAPDU: 80 13 01 00 [16:54:33]Write to MH i2c: E2 08 00 B3 63 80 13 01 00 00 00 00 00 93 [16:54:33]Write i2c OK [16:54:33]MH_I2C_Read... [16:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:33]Read from MH i2c: E2 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: E2 0E 00 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: E2 0E 00 B3 63 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E3 [16:54:33]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:54:33]wFMCommunicate OK [16:54:33]SAM_PROTO_GetShiftState done [16:54:33]FM_GetShiftState done [16:54:33]req_shift_opened done [16:54:33]requested_item shift.open_date is exist - process it [16:54:33]req_shift_open_date [16:54:33]req_shift_open_date done [16:54:33]produce_requested_data done [16:54:33]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192692,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:54:33]process_action_free close_receipt [16:54:33]json_value_free [16:54:33]json_value_free done [16:54:33]process_json_proto returns [16:54:33]Send response to host [16:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192692,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:54:33]free response buf [16:54:33]execute_script done [16:54:33]execute_script returns [16:54:33]free content buf [16:54:33]Sock 9.Close socket [16:54:33]Sock 9.Thread stoped [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:44]accept exits with 7 [16:55:44]New connection [16:55:44]New thread 3066707300 created [16:55:44]Thread 3066563940 joined [16:55:44]Waiting for new connection... [16:55:44] Sock 7.Parse request [16:55:44]Sock 7.Check first char [16:55:44]Sock 7.First char is OK [16:55:44]request: POST /json_proto HTTP/1.0 [16:55:44]Method: POST [16:55:44]URL: /json_proto [16:55:44]Method is POST - this is cgi request [16:55:44]url: /json_proto [16:55:44]query_string will be loaded in cgi processing [16:55:44]execute_cgi json_proto POST (null) [16:55:44]execute_cgi path=json_proto method=POST [16:55:44]POST find Content-Length [16:55:44]Host: 172.17.63.131:8080 [16:55:44]Content-Length: 676 [16:55:44]Content-Type: application/json [16:55:44] [16:55:44]POST finish read [16:55:44]Found Content-Length = 676 [16:55:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.960, "sum" : 331.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 331.00, "payments": [ { "type": 0, "sum" : 331.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:44]execute_script... [16:55: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)32020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.960, "sum" : 331.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 331.00, "payments": [ { "type": 0, "sum" : 331.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:44]POST & json_proto [16:55:44]process_json_proto [16:55:44]json parsed OK: [16:55:44]protocol is kg_v1.0 [16:55:44]action value=close_receipt [16:55:44]process_action close_receipt [16:55:44]cmd_close_receipt [16:55:44]MH_GetDate [16:55:44]Write to MH i2c: F0 00 00 B4 63 06 [16:55:44]Write i2c OK [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: F0 [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: F0 09 00 [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: F0 09 00 B4 63 00 16 C2 1F 67 22 05 6E 64 66 [16:55:44]GetLastDocTimeStamp 1730134475 [16:55:44]current date 1730134550 [16:55:44]FM_GetShiftState [16:55:44]SAM_PROTO_GetShiftState [16:55:44]wFMCommunicate request_size=4 [16:55:44]MH_SAM_APDU [16:55:44]CAPDU: 80 13 01 00 [16:55:44]Write to MH i2c: E2 08 00 B5 63 80 13 01 00 00 00 00 00 95 [16:55:44]Write i2c OK [16:55:44]MH_I2C_Read... [16:55:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:44]Read from MH i2c: E2 [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: E2 0E 00 [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: E2 0E 00 B5 63 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E5 [16:55:44]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:55:44]wFMCommunicate OK [16:55:44]SAM_PROTO_GetShiftState done [16:55:44]FM_GetShiftState done [16:55:44]opened in 1730075620 [16:55:44]opened+sec_in_day 1730162020 [16:55:44]quantity*price = 33182 [16:55:44]sum+1 = 33183 [16:55:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 331.00 Внесено: 340.00 СДАЧА: 9.00 НСП 1% : 2.94 НДС 12% : 35.24 Наличными: 331.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 241 28.10.2024 16:55 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192693 ФПД: 35762530474407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T165550&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192693&fm=35762530474407&tin=02508201610067®Number=0000000000091776&sum=33100 [16:55:45]StoreToDocumentArchive [16:55:45]shift 543 fd 192693 [16:55:45]save to /storage/0543/doc_00192693 [16:55:45]save last doc name /storage/0543/doc_00192693 to /storage/kkm_last_doc_name [16:55:45]save OK [16:55:45]Clear old archive folders... [16:55:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:45]tlvbuf is 01A28A20 [16:55:45]SAM_PROTO_ClearQueue [16:55:45]wFMCommunicate request_size=4 [16:55:45]MH_SAM_APDU [16:55:45]CAPDU: 80 09 00 00 [16:55:45]Write to MH i2c: E2 08 00 C2 63 80 09 00 00 00 00 00 00 97 [16:55:45]Write i2c OK [16:55:45]MH_I2C_Read... [16:55:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:45]Read from MH i2c: E2 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 03 00 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 03 00 C2 63 00 90 00 99 [16:55:45]RAPDU: 90 00 [16:55:45]wFMCommunicate OK [16:55:45]SAM_PROTO_ClearQueue done [16:55:45]KKMCreateOFDPacket [16:55:45]OFDProtocolAddRootSTLVToBuf [16:55:45]FM_MakeSignedData [16:55:45]FM_MakeSignedData [16:55:45]SAM_PROTO_SignData [16:55:45]wFMCommunicate request_size=4 [16:55:45]MH_SAM_APDU [16:55:45]CAPDU: 80 0D 01 02 [16:55:45]Write to MH i2c: E2 08 00 C3 63 80 0D 01 02 00 00 00 00 9F [16:55:45]Write i2c OK [16:55:45]MH_I2C_Read... [16:55:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:45]Read from MH i2c: E2 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 03 00 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 03 00 C3 63 00 90 00 9A [16:55:45]RAPDU: 90 00 [16:55:45]wFMCommunicate OK [16:55:45]wFMCommunicate request_size=255 [16:55:45]MH_SAM_APDU [16:55: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 60 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9E 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0D 00 00 00 00 07 04 06 00 4C 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 16 C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 F0 02 00 35 04 06 00 20 [16:55:45]Write to MH i2c: E2 02 01 C4 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 60 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9E 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0D 00 00 00 00 07 04 06 00 4C 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 16 C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 F0 02 00 35 04 06 00 20 00 00 45 [16:55:45]Write i2c OK [16:55:45]MH_I2C_Read... [16:55:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:45]Read from MH i2c: E2 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 03 00 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 03 00 C4 63 00 90 00 9B [16:55:45]RAPDU: 90 00 [16:55:45]wFMCommunicate OK [16:55:45]wFMCommunicate request_size=10 [16:55:45]MH_SAM_APDU [16:55:45]CAPDU: 80 0D 02 02 05 86 9C EC D9 A7 [16:55:45]Write to MH i2c: E2 0D 00 C5 63 80 0D 02 02 05 00 86 9C EC D9 A7 00 00 3A [16:55:45]Write i2c OK [16:55:45]MH_I2C_Read... [16:55:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:45]Read from MH i2c: E2 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 03 00 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 03 00 C5 63 00 90 00 9C [16:55:45]RAPDU: 90 00 [16:55:45]wFMCommunicate OK [16:55:45]wFMCommunicate request_size=4 [16:55:45]MH_SAM_APDU [16:55:45]CAPDU: 80 0D 03 02 [16:55:45]Write to MH i2c: E2 08 00 C6 63 80 0D 03 02 00 00 00 00 A4 [16:55:45]Write i2c OK [16:55:45]MH_I2C_Read... [16:55:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:46]Read from MH i2c: E2 [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: E2 0B 00 [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: E2 0B 00 C6 63 00 85 7D 6D 3A 80 47 64 A1 90 00 1A [16:55:46]RAPDU: 85 7D 6D 3A 80 47 64 A1 90 00 [16:55:46]wFMCommunicate OK [16:55:46]SAM_PROTO_SignData done [16:55:46]FM_MakeSignedData done [16:55:46]CreateOFDProtocolMessage [16:55:46]wFMCommunicate request_size=4 [16:55:46]MH_SAM_APDU [16:55:46]CAPDU: 80 11 00 00 [16:55:46]Write to MH i2c: E2 08 00 C7 63 80 11 00 00 00 00 00 00 A4 [16:55:46]Write i2c OK [16:55:46]MH_I2C_Read... [16:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:46]Read from MH i2c: E2 [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: E2 17 00 [16:55:46]MH_I2C_Read... [16:55:46]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 31 37 35 34 90 00 F7 [16:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:55:46]wFMCommunicate OK [16:55:46]CreateOFDProtocolMessage done [16:55:46]OFDSenderStorePacket 192693 [16:55:46]StoreOFDPacket docnum=192693 [16:55:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 31 C5 07 01 56 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9E 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0D 00 00 00 00 07 04 06 00 4C 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 16 C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 F0 02 00 35 04 06 00 20 86 9C EC D9 A7 85 7D 6D 3A 80 47 64 A1 [16:55:46]CheckFolder [16:55:46]dirname=/storage/ofd_packets [16:55:46]CheckFolder done [16:55:46]ProducePacketName [16:55:46]name=ofd_packets/00192693 [16:55:46]NVStorageSaveData ofd_packets/00192693 [16:55:46]File name is /storage/ofd_packets/00192693 [16:55:46]Write 301 bytes [16:55:46]NVStorageSaveData done [16:55:46]OFDSenderStorePacket done [16:55:46]KKMCreateOFDPacket done [16:55:46]NVStorageSaveData kkm_last_timestamp [16:55:46]File name is /storage/kkm_last_timestamp [16:55:46]Write 4 bytes [16:55:46]NVStorageSaveData done [16:55:46]ExternCall_PrintAddStr [16:55:46]wPrintStart [16:55:46]Write to MH i2c: 01 00 00 C8 63 2B [16:55:46]Write i2c OK [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: 01 [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: 01 07 00 [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: 01 07 00 C8 63 00 00 00 00 00 FF 0F 40 [16:55:46]RasterBufferAndPrint [16:55:46]line Счет N : (1)32020 [16:55:46]line ИНН: 02508201610067 [16:55:46]line Контрольно-Кассовый Чек [16:55:46]line ПРОДАЖА [16:55:46]line ТРК (МРК, ГНК) : 21 [16:55:46]line Товар: 2710124130 [16:55:46]line Аи-92-К-5 [16:55:46]line 4.960 * 66.90 [16:55:46]line = 331.82 [16:55:46]line НДС 12% НСП 1% [16:55:46]line > о реализуемом товаре [16:55:46]line ОКРУГЛЕНИЕ: -0.82 [16:55:46]line ИТОГО: 331.00 [16:55:46]line Внесено: 340.00 [16:55:46]line СДАЧА: 9.00 [16:55:46]line НСП 1% : 2.94 [16:55:46]line НДС 12% : 35.24 [16:55:46]line Наличными: 331.00 [16:55:46]line Безнал.: 0.00 [16:55:46]line Место: АЗС № 170 "Партнер Нефть" [16:55:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:55:46]line СНО: Общий режим [16:55:46]line Чек 241 28.10.2024 16:55 [16:55:46]line Смена: 543 ФФД: 1.0 [16:55:46]line ЗНМ: 0300000110 [16:55:46]line РНМ: 0000000000091776 [16:55:46]line Версия ККМ: 001 [16:55:46]line ФМ: 0000000000871754 [16:55:46]line ФД: 192693 [16:55:46]line ФПД: 35762530474407 [16:55:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T165550&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192693&fm=35762530474407&tin=02508201610067®Number=0000000000091776&sum=33100 [16:55:46]OFD Sender: Processing packet 192693 [packets to send 75, broken 74] [16:55:46]ProducePacketName [16:55:46]name=ofd_packets/00192693 [16:55:46]OFD Sender: To server: pG, [16:55:46]CommunicateWithHost lk.salyk.kg:30040 [16:55:46]ConnectInit lk.salyk.kg [16:55:46]written 0, free lines is 4095 [16:55:46]Connected sock=10 [16:55:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 31 C5 07 01 56 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9E 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0D 00 00 00 00 07 04 06 00 4C 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 16 C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 F0 02 00 35 04 06 00 20 86 9C EC D9 A7 85 7D 6D 3A 80 47 64 A1 [16:55:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A6 4C 47 00 63 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 F0 02 00 F4 03 04 00 DA 66 1F 67 B6 04 01 00 00 BE B2 AA 98 72 54 18 A6 [16:55:46]CommunicateWithHost err = 0 [16:55:46]CheckOFDResponse [16:55:46]1017 (14) - 77093643461234 [16:55:46]1041 (16) - 0000000000871754 [16:55:46]1040 (4) - 192693 [16:55:46]1012 (4) - 28.10.2024 10:26 [16:55:46]1206 (1) - 0 [16:55:46]OFD Sender: Remove packet 192693 [16:55:46]ProducePacketName [16:55:46]name=ofd_packets/00192693 [16:55:46]NVStorageDeleteData [16:55:46]Write to MH i2c: 01 00 00 F3 63 56 [16:55:46]Write i2c OK [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: 01 [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: 01 07 00 [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: 01 07 00 F3 63 00 00 00 00 00 C5 0C 2E [16:55:46]RasterBufferAndPrint [16:55:46]line [16:55:46]line [16:55:46]line [16:55:46]line [16:55:46]line [16:55:46]written 0, free lines is 3275 [16:55:46]MH_Cut [16:55:46]Write to MH i2c: D1 01 00 FA 63 01 2F [16:55:46]Write i2c OK [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: D1 [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: D1 01 00 [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: D1 01 00 FA 63 00 2E [16:55:46]Write to MH i2c: 01 00 00 FB 63 5E [16:55:46]Write i2c OK [16:55:46]MH_I2C_Read... [16:55:47]OFD Sender: No OFD packet to send [16:55:47]*** Cut start [16:55:47]*** Partial cut [16:55:47]*** CUTSNS_PIN = 1 [16:55:47]*** CUTSNS_PIN = 0 [16:55:47]*** Brake cut motor [16:55:48]Read from MH i2c: 01 [16:55:48]MH_I2C_Read... [16:55:48]*** Stop cut motor [16:55:48]*** Cut end [16:55:48]Read from MH i2c: 01 07 00 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: 01 07 00 FB 63 00 00 00 00 00 FF 0F 73 [16:55:48]process_action close_receipt done [16:55:48]requested_data is exist [16:55:48]produce_requested_data [16:55:48]requested_item fm.sn is exist - process it [16:55:48]wFMCommunicate request_size=4 [16:55:48]MH_SAM_APDU [16:55:48]CAPDU: 80 11 00 00 [16:55:48]Write to MH i2c: E2 08 00 FC 63 80 11 00 00 00 00 00 00 D9 [16:55:48]Write i2c OK [16:55:48]MH_I2C_Read... [16:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:48]Read from MH i2c: E2 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: E2 17 00 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: E2 17 00 FC 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [16:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:55:48]wFMCommunicate OK [16:55:48]requested_item fd.num is exist - process it [16:55:48]SAM_PROTO_GetFieldsCounters [16:55:48]wFMCommunicate request_size=4 [16:55:48]MH_SAM_APDU [16:55:48]CAPDU: 80 13 00 00 [16:55:48]Write to MH i2c: E2 08 00 FD 63 80 13 00 00 00 00 00 00 DC [16:55:48]Write i2c OK [16:55:48]MH_I2C_Read... [16:55:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:48]Read from MH i2c: E2 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: E2 62 00 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: E2 62 00 FD 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B5 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [16:55:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B5 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:48]wFMCommunicate OK [16:55:48]SAM_PROTO_GetFieldsCounters done [16:55:48]requested_item shift.num is exist - process it [16:55:48]requested_item shift.opened is exist - process it [16:55:48]req_shift_opened [16:55:48]FM_GetShiftState [16:55:48]SAM_PROTO_GetShiftState [16:55:48]wFMCommunicate request_size=4 [16:55:48]MH_SAM_APDU [16:55:48]CAPDU: 80 13 01 00 [16:55:48]Write to MH i2c: E2 08 00 FE 63 80 13 01 00 00 00 00 00 DE [16:55:48]Write i2c OK [16:55:48]MH_I2C_Read... [16:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:48]Read from MH i2c: E2 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: E2 0E 00 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: E2 0E 00 FE 63 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2E [16:55:48]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:55:48]wFMCommunicate OK [16:55:48]SAM_PROTO_GetShiftState done [16:55:48]FM_GetShiftState done [16:55:48]req_shift_opened done [16:55:48]requested_item shift.open_date is exist - process it [16:55:48]req_shift_open_date [16:55:48]req_shift_open_date done [16:55:48]produce_requested_data done [16:55:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192693,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:55:48]process_action_free close_receipt [16:55:48]json_value_free [16:55:48]json_value_free done [16:55:48]process_json_proto returns [16:55:48]Send response to host [16:55:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192693,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:55:48]free response buf [16:55:48]execute_script done [16:55:48]execute_script returns [16:55:48]free content buf [16:55:48]Sock 7.Close socket [16:55:48]Sock 7.Thread stoped [16:55:52]OFD Sender: No OFD packet to send [16:55:56]accept exits with 9 [16:55:56]New connection [16:55:56]New thread 3066563940 created [16:55:56]Thread 3066707300 joined [16:55:56]Waiting for new connection... [16:55:56] Sock 9.Parse request [16:55:56]Sock 9.Check first char [16:55:56]Sock 9.First char is OK [16:55:56]request: POST /json_proto HTTP/1.0 [16:55:56]Method: POST [16:55:56]URL: /json_proto [16:55:56]Method is POST - this is cgi request [16:55:56]url: /json_proto [16:55:56]query_string will be loaded in cgi processing [16:55:56]execute_cgi json_proto POST (null) [16:55:56]execute_cgi path=json_proto method=POST [16:55:56]POST find Content-Length [16:55:56]Host: 172.17.63.131:8080 [16:55:56]Content-Length: 676 [16:55:56]Content-Type: application/json [16:55:56] [16:55:56]POST finish read [16:55:56]Found Content-Length = 676 [16:55:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:56]execute_script... [16: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 : (1)32021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:56]POST & json_proto [16:55:56]process_json_proto [16:55:56]json parsed OK: [16:55:56]protocol is kg_v1.0 [16:55:56]action value=close_receipt [16:55:56]process_action close_receipt [16:55:56]cmd_close_receipt [16:55:56]MH_GetDate [16:55:56]Write to MH i2c: F0 00 00 FF 63 51 [16:55:56]Write i2c OK [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: F0 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: F0 09 00 [16:55:56]MH_I2C_Read... [16:55:56]Read from MH i2c: F0 09 00 FF 63 00 23 C2 1F 67 22 05 6E 64 BE [16:55:56]GetLastDocTimeStamp 1730134550 [16:55:56]current date 1730134563 [16:55:56]FM_GetShiftState [16:55:56]SAM_PROTO_GetShiftState [16:55:56]wFMCommunicate request_size=4 [16:55:56]MH_SAM_APDU [16:55:56]CAPDU: 80 13 01 00 [16:55:56]Write to MH i2c: E2 08 00 00 64 80 13 01 00 00 00 00 00 E1 [16:55:56]Write i2c OK [16:55:56]MH_I2C_Read... [16:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:57]Read from MH i2c: E2 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 0E 00 [16:55:57]MH_I2C_Read... [16:55:57]Read from MH i2c: E2 0E 00 00 64 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 31 [16:55:57]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:55:57]wFMCommunicate OK [16:55:57]SAM_PROTO_GetShiftState done [16:55:57]FM_GetShiftState done [16:55:57]opened in 1730075620 [16:55:57]opened+sec_in_day 1730162020 [16:55:57]quantity*price = 50041 [16:55:57]sum+1 = 50042 [16:55:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 242 28.10.2024 16:56 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192694 ФПД: 136846804942081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T165603&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192694&fm=136846804942081&tin=02508201610067®Number=0000000000091776&sum=50000 [16:55:58]StoreToDocumentArchive [16:55:58]shift 543 fd 192694 [16:55:58]save to /storage/0543/doc_00192694 [16:55:58]save last doc name /storage/0543/doc_00192694 to /storage/kkm_last_doc_name [16:55:58]save OK [16:55:58]Clear old archive folders... [16:55:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:58]tlvbuf is 01AD8920 [16:55:58]SAM_PROTO_ClearQueue [16:55:58]wFMCommunicate request_size=4 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 09 00 00 [16:55:58]Write to MH i2c: E2 08 00 0D 64 80 09 00 00 00 00 00 00 E3 [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 0D 64 00 90 00 E5 [16:55:58]RAPDU: 90 00 [16:55:58]wFMCommunicate OK [16:55:58]SAM_PROTO_ClearQueue done [16:55:58]KKMCreateOFDPacket [16:55:58]OFDProtocolAddRootSTLVToBuf [16:55:58]FM_MakeSignedData [16:55:58]FM_MakeSignedData [16:55:58]SAM_PROTO_SignData [16:55:58]wFMCommunicate request_size=4 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 0D 01 02 [16:55:58]Write to MH i2c: E2 08 00 0E 64 80 0D 01 02 00 00 00 00 EB [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 0E 64 00 90 00 E6 [16:55:58]RAPDU: 90 00 [16:55:58]wFMCommunicate OK [16:55:58]wFMCommunicate request_size=255 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 23 C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 F0 02 00 35 04 06 00 7C [16:55:58]Write to MH i2c: E2 02 01 0F 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 23 C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 F0 02 00 35 04 06 00 7C 00 00 21 [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 0F 64 00 90 00 E7 [16:55:58]RAPDU: 90 00 [16:55:58]wFMCommunicate OK [16:55:58]wFMCommunicate request_size=10 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 0D 02 02 05 76 21 32 7D 01 [16:55:58]Write to MH i2c: E2 0D 00 10 64 80 0D 02 02 05 00 76 21 32 7D 01 00 00 3F [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 03 00 10 64 00 90 00 E8 [16:55:58]RAPDU: 90 00 [16:55:58]wFMCommunicate OK [16:55:58]wFMCommunicate request_size=4 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 0D 03 02 [16:55:58]Write to MH i2c: E2 08 00 11 64 80 0D 03 02 00 00 00 00 F0 [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 0B 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 0B 00 11 64 00 8C 1E 70 8B 91 81 E4 C0 90 00 4C [16:55:58]RAPDU: 8C 1E 70 8B 91 81 E4 C0 90 00 [16:55:58]wFMCommunicate OK [16:55:58]SAM_PROTO_SignData done [16:55:58]FM_MakeSignedData done [16:55:58]CreateOFDProtocolMessage [16:55:58]wFMCommunicate request_size=4 [16:55:58]MH_SAM_APDU [16:55:58]CAPDU: 80 11 00 00 [16:55:58]Write to MH i2c: E2 08 00 12 64 80 11 00 00 00 00 00 00 F0 [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:58]Read from MH i2c: E2 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 17 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: E2 17 00 12 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 43 [16:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:55:58]wFMCommunicate OK [16:55:58]CreateOFDProtocolMessage done [16:55:58]OFDSenderStorePacket 192694 [16:55:58]StoreOFDPacket docnum=192694 [16:55:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A0 67 07 01 32 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 23 C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 F0 02 00 35 04 06 00 7C 76 21 32 7D 01 8C 1E 70 8B 91 81 E4 C0 [16:55:58]CheckFolder [16:55:58]dirname=/storage/ofd_packets [16:55:58]CheckFolder done [16:55:58]ProducePacketName [16:55:58]name=ofd_packets/00192694 [16:55:58]NVStorageSaveData ofd_packets/00192694 [16:55:58]File name is /storage/ofd_packets/00192694 [16:55:58]Write 301 bytes [16:55:58]NVStorageSaveData done [16:55:58]OFDSenderStorePacket done [16:55:58]KKMCreateOFDPacket done [16:55:58]NVStorageSaveData kkm_last_timestamp [16:55:58]File name is /storage/kkm_last_timestamp [16:55:58]Write 4 bytes [16:55:58]NVStorageSaveData done [16:55:58]ExternCall_PrintAddStr [16:55:58]wPrintStart [16:55:58]Write to MH i2c: 01 00 00 13 64 77 [16:55:58]Write i2c OK [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: 01 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: 01 07 00 [16:55:58]MH_I2C_Read... [16:55:58]Read from MH i2c: 01 07 00 13 64 00 00 00 00 00 FF 0F 8C [16:55:58]RasterBufferAndPrint [16:55:58]line Счет N : (1)32021 [16:55:58]line ИНН: 02508201610067 [16:55:58]line Контрольно-Кассовый Чек [16:55:58]line ПРОДАЖА [16:55:58]line ТРК (МРК, ГНК) : 12 [16:55:58]line Товар: 2710124130 [16:55:58]line Аи-92-К-5 [16:55:58]line 7.480 * 66.90 [16:55:58]line = 500.41 [16:55:58]line НДС 12% НСП 1% [16:55:58]line > о реализуемом товаре [16:55:58]line ОКРУГЛЕНИЕ: -0.41 [16:55:58]line ИТОГО: 500.00 [16:55:58]line Внесено: 500.00 [16:55:58]line СДАЧА: 0.00 [16:55:58]line НСП 1% : 4.43 [16:55:58]line НДС 12% : 53.14 [16:55:58]line Наличными: 500.00 [16:55:58]line Безнал.: 0.00 [16:55:58]line Место: АЗС № 170 "Партнер Нефть" [16:55:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:55:58]line СНО: Общий режим [16:55:58]line Чек 242 28.10.2024 16:56 [16:55:58]line Смена: 543 ФФД: 1.0 [16:55:58]line ЗНМ: 0300000110 [16:55:58]line РНМ: 0000000000091776 [16:55:58]line Версия ККМ: 001 [16:55:58]line ФМ: 0000000000871754 [16:55:58]line ФД: 192694 [16:55:58]line ФПД: 136846804942081 [16:55:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T165603&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192694&fm=136846804942081&tin=02508201610067®Number=0000000000091776&sum=50000 [16:55:58]written 0, free lines is 4095 [16:55:58]OFD Sender: Processing packet 192694 [packets to send 75, broken 74] [16:55:58]ProducePacketName [16:55:58]name=ofd_packets/00192694 [16:55:58]OFD Sender: To server: pG, [16:55:58]CommunicateWithHost lk.salyk.kg:30040 [16:55:58]ConnectInit lk.salyk.kg [16:55:58]Connected sock=10 [16: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 31 37 35 34 0F 01 00 00 A0 67 07 01 32 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 23 C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 F0 02 00 35 04 06 00 7C 76 21 32 7D 01 8C 1E 70 8B 91 81 E4 C0 [16:55:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 02 2E 47 00 55 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 F0 02 00 F4 03 04 00 E6 66 1F 67 B6 04 01 00 00 57 E3 9F D3 9C 21 E8 08 [16:55:59]CommunicateWithHost err = 0 [16:55:59]CheckOFDResponse [16:55:59]1017 (14) - 77093643461234 [16:55:59]1041 (16) - 0000000000871754 [16:55:59]1040 (4) - 192694 [16:55:59]1012 (4) - 28.10.2024 10:26 [16:55:59]1206 (1) - 0 [16:55:59]OFD Sender: Remove packet 192694 [16:55:59]ProducePacketName [16:55:59]name=ofd_packets/00192694 [16:55:59]NVStorageDeleteData [16:55:59]Write to MH i2c: 01 00 00 3E 64 A2 [16:55:59]Write i2c OK [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: 01 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: 01 07 00 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: 01 07 00 3E 64 00 00 00 00 00 C3 0C 78 [16:55:59]RasterBufferAndPrint [16:55:59]line [16:55:59]line [16:55:59]line [16:55:59]line [16:55:59]line [16:55:59]written 0, free lines is 3276 [16:55:59]MH_Cut [16:55:59]Write to MH i2c: D1 01 00 45 64 01 7B [16:55:59]Write i2c OK [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: D1 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: D1 01 00 [16:55:59]MH_I2C_Read... [16:55:59]Read from MH i2c: D1 01 00 45 64 00 7A [16:55:59]Write to MH i2c: 01 00 00 46 64 AA [16:55:59]Write i2c OK [16:55:59]MH_I2C_Read... [16:55:59]OFD Sender: No OFD packet to send [16:55:59]*** Cut start [16:55:59]*** Partial cut [16:55:59]*** CUTSNS_PIN = 1 [16:55:59]*** CUTSNS_PIN = 0 [16:56:00]*** Brake cut motor [16:56:00]Read from MH i2c: 01 [16:56:00]MH_I2C_Read... [16:56:00]*** Stop cut motor [16:56:00]*** Cut end [16:56:00]Read from MH i2c: 01 07 00 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: 01 07 00 46 64 00 00 00 00 00 FF 0F BF [16:56:00]process_action close_receipt done [16:56:00]requested_data is exist [16:56:00]produce_requested_data [16:56:00]requested_item fm.sn is exist - process it [16:56:00]wFMCommunicate request_size=4 [16:56:00]MH_SAM_APDU [16:56:00]CAPDU: 80 11 00 00 [16:56:00]Write to MH i2c: E2 08 00 47 64 80 11 00 00 00 00 00 00 25 [16:56:00]Write i2c OK [16:56:00]MH_I2C_Read... [16:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:00]Read from MH i2c: E2 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 17 00 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 17 00 47 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [16:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:56:00]wFMCommunicate OK [16:56:00]requested_item fd.num is exist - process it [16:56:00]SAM_PROTO_GetFieldsCounters [16:56:00]wFMCommunicate request_size=4 [16:56:00]MH_SAM_APDU [16:56:00]CAPDU: 80 13 00 00 [16:56:00]Write to MH i2c: E2 08 00 48 64 80 13 00 00 00 00 00 00 28 [16:56:00]Write i2c OK [16:56:00]MH_I2C_Read... [16:56:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:00]Read from MH i2c: E2 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 62 00 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 62 00 48 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B6 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [16: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B6 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:00]wFMCommunicate OK [16:56:00]SAM_PROTO_GetFieldsCounters done [16:56:00]requested_item shift.num is exist - process it [16:56:00]requested_item shift.opened is exist - process it [16:56:00]req_shift_opened [16:56:00]FM_GetShiftState [16:56:00]SAM_PROTO_GetShiftState [16:56:00]wFMCommunicate request_size=4 [16:56:00]MH_SAM_APDU [16:56:00]CAPDU: 80 13 01 00 [16:56:00]Write to MH i2c: E2 08 00 49 64 80 13 01 00 00 00 00 00 2A [16:56:00]Write i2c OK [16:56:00]MH_I2C_Read... [16:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:00]Read from MH i2c: E2 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 0E 00 [16:56:00]MH_I2C_Read... [16:56:00]Read from MH i2c: E2 0E 00 49 64 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 7A [16:56:00]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:56:00]wFMCommunicate OK [16:56:00]SAM_PROTO_GetShiftState done [16:56:00]FM_GetShiftState done [16:56:00]req_shift_opened done [16:56:00]requested_item shift.open_date is exist - process it [16:56:00]req_shift_open_date [16:56:00]req_shift_open_date done [16:56:00]produce_requested_data done [16:56:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192694,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:56:00]process_action_free close_receipt [16:56:00]json_value_free [16:56:00]json_value_free done [16:56:00]process_json_proto returns [16:56:00]Send response to host [16:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192694,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:56:00]free response buf [16:56:00]execute_script done [16:56:00]execute_script returns [16:56:00]free content buf [16:56:00]Sock 9.Close socket [16:56:00]Sock 9.Thread stoped [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:25]accept exits with 7 [16:56:25]New connection [16:56:25]New thread 3066707300 created [16:56:25]Thread 3066563940 joined [16:56:25]Waiting for new connection... [16:56:25] Sock 7.Parse request [16:56:25]Sock 7.Check first char [16:56:25]Sock 7.First char is OK [16:56:25]request: POST /json_proto HTTP/1.0 [16:56:25]Method: POST [16:56:25]URL: /json_proto [16:56:25]Method is POST - this is cgi request [16:56:25]url: /json_proto [16:56:25]query_string will be loaded in cgi processing [16:56:25]execute_cgi json_proto POST (null) [16:56:25]execute_cgi path=json_proto method=POST [16:56:25]POST find Content-Length [16:56:25]Host: 172.17.63.131:8080 [16:56:25]Content-Length: 676 [16:56:25]Content-Type: application/json [16:56:25] [16:56:25]POST finish read [16:56:25]Found Content-Length = 676 [16:56:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:25]execute_script... [16:56:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:25]POST & json_proto [16:56:25]process_json_proto [16:56:25]json parsed OK: [16:56:25]protocol is kg_v1.0 [16:56:25]action value=close_receipt [16:56:25]process_action close_receipt [16:56:25]cmd_close_receipt [16:56:25]MH_GetDate [16:56:25]Write to MH i2c: F0 00 00 4A 64 9D [16:56:25]Write i2c OK [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: F0 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: F0 09 00 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: F0 09 00 4A 64 00 3F C2 1F 67 22 05 6E 64 26 [16:56:25]GetLastDocTimeStamp 1730134563 [16:56:25]current date 1730134591 [16:56:25]FM_GetShiftState [16:56:25]SAM_PROTO_GetShiftState [16:56:25]wFMCommunicate request_size=4 [16:56:25]MH_SAM_APDU [16:56:25]CAPDU: 80 13 01 00 [16:56:25]Write to MH i2c: E2 08 00 4B 64 80 13 01 00 00 00 00 00 2C [16:56:25]Write i2c OK [16:56:25]MH_I2C_Read... [16:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:25]Read from MH i2c: E2 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: E2 0E 00 [16:56:25]MH_I2C_Read... [16:56:25]Read from MH i2c: E2 0E 00 4B 64 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 7C [16:56:25]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:56:25]wFMCommunicate OK [16:56:25]SAM_PROTO_GetShiftState done [16:56:25]FM_GetShiftState done [16:56:25]opened in 1730075620 [16:56:25]opened+sec_in_day 1730162020 [16:56:25]quantity*price = 30038 [16:56:25]sum+1 = 30039 [16:56:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 243 28.10.2024 16:56 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192695 ФПД: 39332137898042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T165631&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192695&fm=39332137898042&tin=02508201610067®Number=0000000000091776&sum=30000 [16:56:26]StoreToDocumentArchive [16:56:26]shift 543 fd 192695 [16:56:26]save to /storage/0543/doc_00192695 [16:56:26]save last doc name /storage/0543/doc_00192695 to /storage/kkm_last_doc_name [16:56:26]save OK [16:56:26]Clear old archive folders... [16:56:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:26]tlvbuf is 01999610 [16:56:26]SAM_PROTO_ClearQueue [16:56:26]wFMCommunicate request_size=4 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 09 00 00 [16:56:26]Write to MH i2c: E2 08 00 58 64 80 09 00 00 00 00 00 00 2E [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 58 64 00 90 00 30 [16:56:26]RAPDU: 90 00 [16:56:26]wFMCommunicate OK [16:56:26]SAM_PROTO_ClearQueue done [16:56:26]KKMCreateOFDPacket [16:56:26]OFDProtocolAddRootSTLVToBuf [16:56:26]FM_MakeSignedData [16:56:26]FM_MakeSignedData [16:56:26]SAM_PROTO_SignData [16:56:26]wFMCommunicate request_size=4 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 0D 01 02 [16:56:26]Write to MH i2c: E2 08 00 59 64 80 0D 01 02 00 00 00 00 36 [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 59 64 00 90 00 31 [16:56:26]RAPDU: 90 00 [16:56:26]wFMCommunicate OK [16:56:26]wFMCommunicate request_size=255 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 3F C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 F0 02 00 35 04 06 00 23 [16:56:26]Write to MH i2c: E2 02 01 5A 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 3F C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 F0 02 00 35 04 06 00 23 00 00 25 [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 5A 64 00 90 00 32 [16:56:26]RAPDU: 90 00 [16:56:26]wFMCommunicate OK [16:56:26]wFMCommunicate request_size=10 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 0D 02 02 05 C5 BA 1B 90 3A [16:56:26]Write to MH i2c: E2 0D 00 5B 64 80 0D 02 02 05 00 C5 BA 1B 90 3A 00 00 A7 [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 03 00 5B 64 00 90 00 33 [16:56:26]RAPDU: 90 00 [16:56:26]wFMCommunicate OK [16:56:26]wFMCommunicate request_size=4 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 0D 03 02 [16:56:26]Write to MH i2c: E2 08 00 5C 64 80 0D 03 02 00 00 00 00 3B [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:26]Read from MH i2c: E2 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 0B 00 [16:56:26]MH_I2C_Read... [16:56:26]Read from MH i2c: E2 0B 00 5C 64 00 A0 2D C0 89 26 D0 1E 37 90 00 9D [16:56:26]RAPDU: A0 2D C0 89 26 D0 1E 37 90 00 [16:56:26]wFMCommunicate OK [16:56:26]SAM_PROTO_SignData done [16:56:26]FM_MakeSignedData done [16:56:26]CreateOFDProtocolMessage [16:56:26]wFMCommunicate request_size=4 [16:56:26]MH_SAM_APDU [16:56:26]CAPDU: 80 11 00 00 [16:56:26]Write to MH i2c: E2 08 00 5D 64 80 11 00 00 00 00 00 00 3B [16:56:26]Write i2c OK [16:56:26]MH_I2C_Read... [16:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:27]Read from MH i2c: E2 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: E2 17 00 [16:56:27]MH_I2C_Read... [16:56:27]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 31 37 35 34 90 00 8E [16:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:56:27]wFMCommunicate OK [16:56:27]CreateOFDProtocolMessage done [16:56:27]OFDSenderStorePacket 192695 [16:56:27]StoreOFDPacket docnum=192695 [16:56:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5A 97 07 01 60 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 3F C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 F0 02 00 35 04 06 00 23 C5 BA 1B 90 3A A0 2D C0 89 26 D0 1E 37 [16:56:27]CheckFolder [16:56:27]dirname=/storage/ofd_packets [16:56:27]CheckFolder done [16:56:27]ProducePacketName [16:56:27]name=ofd_packets/00192695 [16:56:27]NVStorageSaveData ofd_packets/00192695 [16:56:27]File name is /storage/ofd_packets/00192695 [16:56:27]Write 301 bytes [16:56:27]NVStorageSaveData done [16:56:27]OFDSenderStorePacket done [16:56:27]KKMCreateOFDPacket done [16:56:27]NVStorageSaveData kkm_last_timestamp [16:56:27]File name is /storage/kkm_last_timestamp [16:56:27]Write 4 bytes [16:56:27]NVStorageSaveData done [16:56:27]ExternCall_PrintAddStr [16:56:27]wPrintStart [16:56:27]Write to MH i2c: 01 00 00 5E 64 C2 [16:56:27]Write i2c OK [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: 01 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: 01 07 00 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: 01 07 00 5E 64 00 00 00 00 00 FF 0F D7 [16:56:27]RasterBufferAndPrint [16:56:27]line Счет N : (1)32022 [16:56:27]line ИНН: 02508201610067 [16:56:27]line Контрольно-Кассовый Чек [16:56:27]line ПРОДАЖА [16:56:27]line ТРК (МРК, ГНК) : 21 [16:56:27]line Товар: 2710124130 [16:56:27]line Аи-92-К-5 [16:56:27]line 4.490 * 66.90 [16:56:27]line = 300.38 [16:56:27]line НДС 12% НСП 1% [16:56:27]line > о реализуемом товаре [16:56:27]line ОКРУГЛЕНИЕ: -0.38 [16:56:27]line ИТОГО: 300.00 [16:56:27]line Внесено: 300.00 [16:56:27]line СДАЧА: 0.00 [16:56:27]line НСП 1% : 2.66 [16:56:27]line НДС 12% : 31.90 [16:56:27]line Наличными: 300.00 [16:56:27]line Безнал.: 0.00 [16:56:27]line Место: АЗС № 170 "Партнер Нефть" [16:56:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:56:27]line СНО: Общий режим [16:56:27]line Чек 243 28.10.2024 16:56 [16:56:27]line Смена: 543 ФФД: 1.0 [16:56:27]line ЗНМ: 0300000110 [16:56:27]line РНМ: 0000000000091776 [16:56:27]line Версия ККМ: 001 [16:56:27]line ФМ: 0000000000871754 [16:56:27]line ФД: 192695 [16:56:27]line ФПД: 39332137898042 [16:56:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T165631&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192695&fm=39332137898042&tin=02508201610067®Number=0000000000091776&sum=30000 [16:56:27]OFD Sender: Processing packet 192695 [packets to send 75, broken 74] [16:56:27]ProducePacketName [16:56:27]name=ofd_packets/00192695 [16:56:27]OFD Sender: To server: pG, [16:56:27]CommunicateWithHost lk.salyk.kg:30040 [16:56:27]ConnectInit lk.salyk.kg [16:56:27]written 0, free lines is 4095 [16:56:27]Connected sock=10 [16:56:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5A 97 07 01 60 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 3F C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 F0 02 00 35 04 06 00 23 C5 BA 1B 90 3A A0 2D C0 89 26 D0 1E 37 [16:56:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 71 D0 47 00 BE F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 F0 02 00 F4 03 04 00 03 67 1F 67 B6 04 01 00 00 6C 12 6D 4E 10 8C 00 E3 [16:56:27]CommunicateWithHost err = 0 [16:56:27]CheckOFDResponse [16:56:27]1017 (14) - 77093643461234 [16:56:27]1041 (16) - 0000000000871754 [16:56:27]1040 (4) - 192695 [16:56:27]1012 (4) - 28.10.2024 10:27 [16:56:27]1206 (1) - 0 [16:56:27]OFD Sender: Remove packet 192695 [16:56:27]ProducePacketName [16:56:27]name=ofd_packets/00192695 [16:56:27]NVStorageDeleteData [16:56:27]Write to MH i2c: 01 00 00 89 64 ED [16:56:27]Write i2c OK [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: 01 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: 01 07 00 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: 01 07 00 89 64 00 00 00 00 00 CE 0C CE [16:56:27]RasterBufferAndPrint [16:56:27]line [16:56:27]line [16:56:27]line [16:56:27]line [16:56:27]line [16:56:27]written 0, free lines is 3285 [16:56:27]MH_Cut [16:56:27]Write to MH i2c: D1 01 00 90 64 01 C6 [16:56:27]Write i2c OK [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: D1 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: D1 01 00 [16:56:27]MH_I2C_Read... [16:56:27]Read from MH i2c: D1 01 00 90 64 00 C5 [16:56:27]Write to MH i2c: 01 00 00 91 64 F5 [16:56:27]Write i2c OK [16:56:27]MH_I2C_Read... [16:56:28]OFD Sender: No OFD packet to send [16:56:28]*** Cut start [16:56:28]*** Partial cut [16:56:28]*** CUTSNS_PIN = 1 [16:56:28]*** CUTSNS_PIN = 0 [16:56:28]*** Brake cut motor [16:56:29]Read from MH i2c: 01 [16:56:29]MH_I2C_Read... [16:56:29]*** Stop cut motor [16:56:29]*** Cut end [16:56:29]Read from MH i2c: 01 07 00 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: 01 07 00 91 64 00 00 00 00 00 FF 0F 0A [16:56:29]process_action close_receipt done [16:56:29]requested_data is exist [16:56:29]produce_requested_data [16:56:29]requested_item fm.sn is exist - process it [16:56:29]wFMCommunicate request_size=4 [16:56:29]MH_SAM_APDU [16:56:29]CAPDU: 80 11 00 00 [16:56:29]Write to MH i2c: E2 08 00 92 64 80 11 00 00 00 00 00 00 70 [16:56:29]Write i2c OK [16:56:29]MH_I2C_Read... [16:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:29]Read from MH i2c: E2 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 17 00 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 17 00 92 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [16:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:56:29]wFMCommunicate OK [16:56:29]requested_item fd.num is exist - process it [16:56:29]SAM_PROTO_GetFieldsCounters [16:56:29]wFMCommunicate request_size=4 [16:56:29]MH_SAM_APDU [16:56:29]CAPDU: 80 13 00 00 [16:56:29]Write to MH i2c: E2 08 00 93 64 80 13 00 00 00 00 00 00 73 [16:56:29]Write i2c OK [16:56:29]MH_I2C_Read... [16:56:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:29]Read from MH i2c: E2 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 62 00 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 62 00 93 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B7 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [16:56:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B7 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:29]wFMCommunicate OK [16:56:29]SAM_PROTO_GetFieldsCounters done [16:56:29]requested_item shift.num is exist - process it [16:56:29]requested_item shift.opened is exist - process it [16:56:29]req_shift_opened [16:56:29]FM_GetShiftState [16:56:29]SAM_PROTO_GetShiftState [16:56:29]wFMCommunicate request_size=4 [16:56:29]MH_SAM_APDU [16:56:29]CAPDU: 80 13 01 00 [16:56:29]Write to MH i2c: E2 08 00 94 64 80 13 01 00 00 00 00 00 75 [16:56:29]Write i2c OK [16:56:29]MH_I2C_Read... [16:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:29]Read from MH i2c: E2 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 0E 00 [16:56:29]MH_I2C_Read... [16:56:29]Read from MH i2c: E2 0E 00 94 64 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C5 [16:56:29]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:56:29]wFMCommunicate OK [16:56:29]SAM_PROTO_GetShiftState done [16:56:29]FM_GetShiftState done [16:56:29]req_shift_opened done [16:56:29]requested_item shift.open_date is exist - process it [16:56:29]req_shift_open_date [16:56:29]req_shift_open_date done [16:56:29]produce_requested_data done [16:56:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192695,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:56:29]process_action_free close_receipt [16:56:29]json_value_free [16:56:29]json_value_free done [16:56:29]process_json_proto returns [16:56:29]Send response to host [16:56:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192695,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:56:29]free response buf [16:56:29]execute_script done [16:56:29]execute_script returns [16:56:29]free content buf [16:56:29]Sock 7.Close socket [16:56:29]Sock 7.Thread stoped [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]accept exits with 9 [16:56:43]New connection [16:56:43]New thread 3066563940 created [16:56:43]Thread 3066707300 joined [16:56:43]Waiting for new connection... [16:56:43] Sock 9.Parse request [16:56:43]Sock 9.Check first char [16:56:43]Sock 9.First char is OK [16:56:43]request: POST /json_proto HTTP/1.0 [16:56:43]Method: POST [16:56:43]URL: /json_proto [16:56:43]Method is POST - this is cgi request [16:56:43]url: /json_proto [16:56:43]query_string will be loaded in cgi processing [16:56:43]execute_cgi json_proto POST (null) [16:56:43]execute_cgi path=json_proto method=POST [16:56:43]POST find Content-Length [16:56:43]Host: 172.17.63.131:8080 [16:56:43]Content-Length: 676 [16:56:43]Content-Type: application/json [16:56:43] [16:56:43]POST finish read [16:56:43]Found Content-Length = 676 [16:56:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:43]execute_script... [16:56: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)32023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:43]POST & json_proto [16:56:43]process_json_proto [16:56:43]json parsed OK: [16:56:43]protocol is kg_v1.0 [16:56:43]action value=close_receipt [16:56:43]process_action close_receipt [16:56:43]cmd_close_receipt [16:56:43]MH_GetDate [16:56:43]Write to MH i2c: F0 00 00 95 64 E8 [16:56:43]Write i2c OK [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: F0 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: F0 09 00 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: F0 09 00 95 64 00 51 C2 1F 67 22 05 6E 64 83 [16:56:43]GetLastDocTimeStamp 1730134591 [16:56:43]current date 1730134609 [16:56:43]FM_GetShiftState [16:56:43]SAM_PROTO_GetShiftState [16:56:43]wFMCommunicate request_size=4 [16:56:43]MH_SAM_APDU [16:56:43]CAPDU: 80 13 01 00 [16:56:43]Write to MH i2c: E2 08 00 96 64 80 13 01 00 00 00 00 00 77 [16:56:43]Write i2c OK [16:56:43]MH_I2C_Read... [16:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:43]Read from MH i2c: E2 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 0E 00 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 0E 00 96 64 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C7 [16:56:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:56:43]wFMCommunicate OK [16:56:43]SAM_PROTO_GetShiftState done [16:56:43]FM_GetShiftState done [16:56:43]opened in 1730075620 [16:56:43]opened+sec_in_day 1730162020 [16:56:43]quantity*price = 40006 [16:56:43]sum+1 = 40007 [16:56:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 244 28.10.2024 16:56 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192696 ФПД: 243437801289389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T165649&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192696&fm=243437801289389&tin=02508201610067®Number=0000000000091776&sum=40000 [16:56:44]StoreToDocumentArchive [16:56:44]shift 543 fd 192696 [16:56:44]save to /storage/0543/doc_00192696 [16:56:44]save last doc name /storage/0543/doc_00192696 to /storage/kkm_last_doc_name [16:56:44]save OK [16:56:44]Clear old archive folders... [16:56:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:44]tlvbuf is 01B6DD80 [16:56:44]SAM_PROTO_ClearQueue [16:56:44]wFMCommunicate request_size=4 [16:56:44]MH_SAM_APDU [16:56:44]CAPDU: 80 09 00 00 [16:56:44]Write to MH i2c: E2 08 00 A3 64 80 09 00 00 00 00 00 00 79 [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:44]Read from MH i2c: E2 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 03 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 03 00 A3 64 00 90 00 7B [16:56:44]RAPDU: 90 00 [16:56:44]wFMCommunicate OK [16:56:44]SAM_PROTO_ClearQueue done [16:56:44]KKMCreateOFDPacket [16:56:44]OFDProtocolAddRootSTLVToBuf [16:56:44]FM_MakeSignedData [16:56:44]FM_MakeSignedData [16:56:44]SAM_PROTO_SignData [16:56:44]wFMCommunicate request_size=4 [16:56:44]MH_SAM_APDU [16:56:44]CAPDU: 80 0D 01 02 [16:56:44]Write to MH i2c: E2 08 00 A4 64 80 0D 01 02 00 00 00 00 81 [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:44]Read from MH i2c: E2 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 03 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 03 00 A4 64 00 90 00 7C [16:56:44]RAPDU: 90 00 [16:56:44]wFMCommunicate OK [16:56:44]wFMCommunicate request_size=255 [16:56:44]MH_SAM_APDU [16:56: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 51 C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 F0 02 00 35 04 06 00 DD [16:56:44]Write to MH i2c: E2 02 01 A5 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 51 C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 F0 02 00 35 04 06 00 DD 00 00 19 [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:44]Read from MH i2c: E2 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 03 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 03 00 A5 64 00 90 00 7D [16:56:44]RAPDU: 90 00 [16:56:44]wFMCommunicate OK [16:56:44]wFMCommunicate request_size=10 [16:56:44]MH_SAM_APDU [16:56:44]CAPDU: 80 0D 02 02 05 67 C7 AB B6 AD [16:56:44]Write to MH i2c: E2 0D 00 A6 64 80 0D 02 02 05 00 67 C7 AB B6 AD 00 00 CA [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:44]Read from MH i2c: E2 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 03 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 03 00 A6 64 00 90 00 7E [16:56:44]RAPDU: 90 00 [16:56:44]wFMCommunicate OK [16:56:44]wFMCommunicate request_size=4 [16:56:44]MH_SAM_APDU [16:56:44]CAPDU: 80 0D 03 02 [16:56:44]Write to MH i2c: E2 08 00 A7 64 80 0D 03 02 00 00 00 00 86 [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:44]Read from MH i2c: E2 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 0B 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 0B 00 A7 64 00 D8 11 54 75 D4 9D ED F5 90 00 8C [16:56:44]RAPDU: D8 11 54 75 D4 9D ED F5 90 00 [16:56:44]wFMCommunicate OK [16:56:44]SAM_PROTO_SignData done [16:56:44]FM_MakeSignedData done [16:56:44]CreateOFDProtocolMessage [16:56:44]wFMCommunicate request_size=4 [16:56:44]MH_SAM_APDU [16:56:44]CAPDU: 80 11 00 00 [16:56:44]Write to MH i2c: E2 08 00 A8 64 80 11 00 00 00 00 00 00 86 [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:44]Read from MH i2c: E2 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 17 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: E2 17 00 A8 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [16:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:56:44]wFMCommunicate OK [16:56:44]CreateOFDProtocolMessage done [16:56:44]OFDSenderStorePacket 192696 [16:56:44]StoreOFDPacket docnum=192696 [16:56:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E8 01 07 01 5C 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 51 C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 F0 02 00 35 04 06 00 DD 67 C7 AB B6 AD D8 11 54 75 D4 9D ED F5 [16:56:44]CheckFolder [16:56:44]dirname=/storage/ofd_packets [16:56:44]CheckFolder done [16:56:44]ProducePacketName [16:56:44]name=ofd_packets/00192696 [16:56:44]NVStorageSaveData ofd_packets/00192696 [16:56:44]File name is /storage/ofd_packets/00192696 [16:56:44]Write 301 bytes [16:56:44]NVStorageSaveData done [16:56:44]OFDSenderStorePacket done [16:56:44]KKMCreateOFDPacket done [16:56:44]NVStorageSaveData kkm_last_timestamp [16:56:44]File name is /storage/kkm_last_timestamp [16:56:44]Write 4 bytes [16:56:44]NVStorageSaveData done [16:56:44]ExternCall_PrintAddStr [16:56:44]wPrintStart [16:56:44]Write to MH i2c: 01 00 00 A9 64 0D [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: 01 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: 01 07 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: 01 07 00 A9 64 00 00 00 00 00 FF 0F 22 [16:56:44]RasterBufferAndPrint [16:56:44]line Счет N : (1)32023 [16:56:44]line ИНН: 02508201610067 [16:56:44]line Контрольно-Кассовый Чек [16:56:44]line ПРОДАЖА [16:56:44]line ТРК (МРК, ГНК) : 12 [16:56:44]line Товар: 2710124130 [16:56:44]line Аи-92-К-5 [16:56:44]line 5.980 * 66.90 [16:56:44]line = 400.06 [16:56:44]line НДС 12% НСП 1% [16:56:44]line > о реализуемом товаре [16:56:44]line ОКРУГЛЕНИЕ: -0.06 [16:56:44]line ИТОГО: 400.00 [16:56:44]line Внесено: 400.00 [16:56:44]line СДАЧА: 0.00 [16:56:44]line НСП 1% : 3.54 [16:56:44]line НДС 12% : 42.48 [16:56:44]line Наличными: 400.00 [16:56:44]line Безнал.: 0.00 [16:56:44]line Место: АЗС № 170 "Партнер Нефть" [16:56:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:56:44]line СНО: Общий режим [16:56:44]line Чек 244 28.10.2024 16:56 [16:56:44]line Смена: 543 ФФД: 1.0 [16:56:44]line ЗНМ: 0300000110 [16:56:44]line РНМ: 0000000000091776 [16:56:44]line Версия ККМ: 001 [16:56:44]line ФМ: 0000000000871754 [16:56:44]line ФД: 192696 [16:56:44]line ФПД: 243437801289389 [16:56:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T165649&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192696&fm=243437801289389&tin=02508201610067®Number=0000000000091776&sum=40000 [16:56:45]OFD Sender: Processing packet 192696 [packets to send 75, broken 74] [16:56:45]ProducePacketName [16:56:45]name=ofd_packets/00192696 [16:56:45]OFD Sender: To server: pG, [16:56:45]CommunicateWithHost lk.salyk.kg:30040 [16:56:45]ConnectInit lk.salyk.kg [16:56:45]written 0, free lines is 4095 [16:56:45]Connected sock=10 [16:56:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E8 01 07 01 5C 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 51 C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 F0 02 00 35 04 06 00 DD 67 C7 AB B6 AD D8 11 54 75 D4 9D ED F5 [16:56:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6C F2 47 00 31 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 F0 02 00 F4 03 04 00 14 67 1F 67 B6 04 01 00 00 89 68 F9 90 85 1B DB 83 [16:56:45]CommunicateWithHost err = 0 [16:56:45]CheckOFDResponse [16:56:45]1017 (14) - 77093643461234 [16:56:45]1041 (16) - 0000000000871754 [16:56:45]1040 (4) - 192696 [16:56:45]1012 (4) - 28.10.2024 10:27 [16:56:45]1206 (1) - 0 [16:56:45]OFD Sender: Remove packet 192696 [16:56:45]ProducePacketName [16:56:45]name=ofd_packets/00192696 [16:56:45]NVStorageDeleteData [16:56:45]Write to MH i2c: 01 00 00 D4 64 38 [16:56:45]Write i2c OK [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: 01 [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: 01 07 00 [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: 01 07 00 D4 64 00 00 00 00 00 D1 0C 1C [16:56:45]RasterBufferAndPrint [16:56:45]line [16:56:45]line [16:56:45]line [16:56:45]line [16:56:45]line [16:56:45]written 0, free lines is 3289 [16:56:45]MH_Cut [16:56:45]Write to MH i2c: D1 01 00 DB 64 01 11 [16:56:45]Write i2c OK [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: D1 [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: D1 01 00 [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: D1 01 00 DB 64 00 10 [16:56:45]Write to MH i2c: 01 00 00 DC 64 40 [16:56:45]Write i2c OK [16:56:45]MH_I2C_Read... [16:56:46]OFD Sender: No OFD packet to send [16:56:46]*** Cut start [16:56:46]*** Partial cut [16:56:46]*** CUTSNS_PIN = 1 [16:56:46]*** CUTSNS_PIN = 0 [16:56:46]*** Brake cut motor [16:56:47]Read from MH i2c: 01 [16:56:47]MH_I2C_Read... [16:56:47]*** Stop cut motor [16:56:47]*** Cut end [16:56:47]Read from MH i2c: 01 07 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: 01 07 00 DC 64 00 00 00 00 00 FF 0F 55 [16:56:47]process_action close_receipt done [16:56:47]requested_data is exist [16:56:47]produce_requested_data [16:56:47]requested_item fm.sn is exist - process it [16:56:47]wFMCommunicate request_size=4 [16:56:47]MH_SAM_APDU [16:56:47]CAPDU: 80 11 00 00 [16:56:47]Write to MH i2c: E2 08 00 DD 64 80 11 00 00 00 00 00 00 BB [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:47]Read from MH i2c: E2 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 17 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 17 00 DD 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0E [16:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:56:47]wFMCommunicate OK [16:56:47]requested_item fd.num is exist - process it [16:56:47]SAM_PROTO_GetFieldsCounters [16:56:47]wFMCommunicate request_size=4 [16:56:47]MH_SAM_APDU [16:56:47]CAPDU: 80 13 00 00 [16:56:47]Write to MH i2c: E2 08 00 DE 64 80 13 00 00 00 00 00 00 BE [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:47]Read from MH i2c: E2 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 62 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 62 00 DE 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B8 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [16:56:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B8 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:47]wFMCommunicate OK [16:56:47]SAM_PROTO_GetFieldsCounters done [16:56:47]requested_item shift.num is exist - process it [16:56:47]requested_item shift.opened is exist - process it [16:56:47]req_shift_opened [16:56:47]FM_GetShiftState [16:56:47]SAM_PROTO_GetShiftState [16:56:47]wFMCommunicate request_size=4 [16:56:47]MH_SAM_APDU [16:56:47]CAPDU: 80 13 01 00 [16:56:47]Write to MH i2c: E2 08 00 DF 64 80 13 01 00 00 00 00 00 C0 [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:47]Read from MH i2c: E2 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 0E 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 0E 00 DF 64 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 10 [16:56:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:56:47]wFMCommunicate OK [16:56:47]SAM_PROTO_GetShiftState done [16:56:47]FM_GetShiftState done [16:56:47]req_shift_opened done [16:56:47]requested_item shift.open_date is exist - process it [16:56:47]req_shift_open_date [16:56:47]req_shift_open_date done [16:56:47]produce_requested_data done [16:56:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192696,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:56:47]process_action_free close_receipt [16:56:47]json_value_free [16:56:47]json_value_free done [16:56:47]process_json_proto returns [16:56:47]Send response to host [16:56:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192696,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:56:47]free response buf [16:56:47]execute_script done [16:56:47]execute_script returns [16:56:47]free content buf [16:56:47]Sock 9.Close socket [16:56:47]Sock 9.Thread stoped [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]accept exits with 7 [16:58:21]New connection [16:58:21]New thread 3066707300 created [16:58:21]Thread 3066563940 joined [16:58:21]Waiting for new connection... [16:58:21] Sock 7.Parse request [16:58:21]Sock 7.Check first char [16:58:21]Sock 7.First char is OK [16:58:21]request: POST /json_proto HTTP/1.0 [16:58:21]Method: POST [16:58:21]URL: /json_proto [16:58:21]Method is POST - this is cgi request [16:58:21]url: /json_proto [16:58:21]query_string will be loaded in cgi processing [16:58:21]execute_cgi json_proto POST (null) [16:58:21]execute_cgi path=json_proto method=POST [16:58:21]POST find Content-Length [16:58:21]Host: 172.17.63.131:8080 [16:58:21]Content-Length: 676 [16:58:21]Content-Type: application/json [16:58:21] [16:58:21]POST finish read [16:58:21]Found Content-Length = 676 [16:58:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:21]execute_script... [16: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)32024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:21]POST & json_proto [16:58:21]process_json_proto [16:58:21]json parsed OK: [16:58:21]protocol is kg_v1.0 [16:58:21]action value=close_receipt [16:58:21]process_action close_receipt [16:58:21]cmd_close_receipt [16:58:21]MH_GetDate [16:58:21]Write to MH i2c: F0 00 00 E0 64 33 [16:58:21]Write i2c OK [16:58:21]MH_I2C_Read... [16:58:21]Read from MH i2c: F0 [16:58:21]MH_I2C_Read... [16:58:21]Read from MH i2c: F0 09 00 [16:58:21]MH_I2C_Read... [16:58:21]Read from MH i2c: F0 09 00 E0 64 00 B3 C2 1F 67 22 05 6E 64 30 [16:58:21]GetLastDocTimeStamp 1730134609 [16:58:21]current date 1730134707 [16:58:21]FM_GetShiftState [16:58:21]SAM_PROTO_GetShiftState [16:58:21]wFMCommunicate request_size=4 [16:58:21]MH_SAM_APDU [16:58:21]CAPDU: 80 13 01 00 [16:58:21]Write to MH i2c: E2 08 00 E1 64 80 13 01 00 00 00 00 00 C2 [16:58:21]Write i2c OK [16:58:21]MH_I2C_Read... [16:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:21]Read from MH i2c: E2 [16:58:21]MH_I2C_Read... [16:58:21]Read from MH i2c: E2 0E 00 [16:58:21]MH_I2C_Read... [16:58:21]Read from MH i2c: E2 0E 00 E1 64 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 12 [16:58:21]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:58:21]wFMCommunicate OK [16:58:21]SAM_PROTO_GetShiftState done [16:58:21]FM_GetShiftState done [16:58:21]opened in 1730075620 [16:58:21]opened+sec_in_day 1730162020 [16:58:21]quantity*price = 50041 [16:58:21]sum+1 = 50042 [16:58:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 245 28.10.2024 16:58 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192697 ФПД: 112412110466644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T165827&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192697&fm=112412110466644&tin=02508201610067®Number=0000000000091776&sum=50000 [16:58:22]StoreToDocumentArchive [16:58:22]shift 543 fd 192697 [16:58:22]save to /storage/0543/doc_00192697 [16:58:22]save last doc name /storage/0543/doc_00192697 to /storage/kkm_last_doc_name [16:58:22]save OK [16:58:22]Clear old archive folders... [16:58:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:22]tlvbuf is 019B1300 [16:58:22]SAM_PROTO_ClearQueue [16:58:22]wFMCommunicate request_size=4 [16:58:22]MH_SAM_APDU [16:58:22]CAPDU: 80 09 00 00 [16:58:22]Write to MH i2c: E2 08 00 EE 64 80 09 00 00 00 00 00 00 C4 [16:58:22]Write i2c OK [16:58:22]MH_I2C_Read... [16:58:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:22]Read from MH i2c: E2 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 03 00 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 03 00 EE 64 00 90 00 C6 [16:58:22]RAPDU: 90 00 [16:58:22]wFMCommunicate OK [16:58:22]SAM_PROTO_ClearQueue done [16:58:22]KKMCreateOFDPacket [16:58:22]OFDProtocolAddRootSTLVToBuf [16:58:22]FM_MakeSignedData [16:58:22]FM_MakeSignedData [16:58:22]SAM_PROTO_SignData [16:58:22]wFMCommunicate request_size=4 [16:58:22]MH_SAM_APDU [16:58:22]CAPDU: 80 0D 01 02 [16:58:22]Write to MH i2c: E2 08 00 EF 64 80 0D 01 02 00 00 00 00 CC [16:58:22]Write i2c OK [16:58:22]MH_I2C_Read... [16:58:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:22]Read from MH i2c: E2 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 03 00 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 03 00 EF 64 00 90 00 C7 [16:58:22]RAPDU: 90 00 [16:58:22]wFMCommunicate OK [16:58:22]wFMCommunicate request_size=255 [16:58:22]MH_SAM_APDU [16: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 B3 C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 F0 02 00 35 04 06 00 66 [16:58:22]Write to MH i2c: E2 02 01 F0 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 B3 C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 F0 02 00 35 04 06 00 66 00 00 82 [16:58:22]Write i2c OK [16:58:22]MH_I2C_Read... [16:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:22]Read from MH i2c: E2 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 03 00 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 03 00 F0 64 00 90 00 C8 [16:58:22]RAPDU: 90 00 [16:58:22]wFMCommunicate OK [16:58:22]wFMCommunicate request_size=10 [16:58:22]MH_SAM_APDU [16:58:22]CAPDU: 80 0D 02 02 05 3C FB E9 AE 54 [16:58:22]Write to MH i2c: E2 0D 00 F1 64 80 0D 02 02 05 00 3C FB E9 AE 54 00 00 FB [16:58:22]Write i2c OK [16:58:22]MH_I2C_Read... [16:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:22]Read from MH i2c: E2 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 03 00 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 03 00 F1 64 00 90 00 C9 [16:58:22]RAPDU: 90 00 [16:58:22]wFMCommunicate OK [16:58:22]wFMCommunicate request_size=4 [16:58:22]MH_SAM_APDU [16:58:22]CAPDU: 80 0D 03 02 [16:58:22]Write to MH i2c: E2 08 00 F2 64 80 0D 03 02 00 00 00 00 D1 [16:58:22]Write i2c OK [16:58:22]MH_I2C_Read... [16:58:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:22]Read from MH i2c: E2 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 0B 00 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 0B 00 F2 64 00 22 10 A9 C4 68 C9 A1 90 90 00 D3 [16:58:22]RAPDU: 22 10 A9 C4 68 C9 A1 90 90 00 [16:58:22]wFMCommunicate OK [16:58:22]SAM_PROTO_SignData done [16:58:22]FM_MakeSignedData done [16:58:22]CreateOFDProtocolMessage [16:58:22]wFMCommunicate request_size=4 [16:58:22]MH_SAM_APDU [16:58:22]CAPDU: 80 11 00 00 [16:58:22]Write to MH i2c: E2 08 00 F3 64 80 11 00 00 00 00 00 00 D1 [16:58:22]Write i2c OK [16:58:22]MH_I2C_Read... [16:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:22]Read from MH i2c: E2 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 17 00 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 17 00 F3 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [16:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:58:22]wFMCommunicate OK [16:58:22]CreateOFDProtocolMessage done [16:58:22]OFDSenderStorePacket 192697 [16:58:22]StoreOFDPacket docnum=192697 [16:58:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 70 D7 07 01 76 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 B3 C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 F0 02 00 35 04 06 00 66 3C FB E9 AE 54 22 10 A9 C4 68 C9 A1 90 [16:58:22]CheckFolder [16:58:22]dirname=/storage/ofd_packets [16:58:22]CheckFolder done [16:58:22]ProducePacketName [16:58:22]name=ofd_packets/00192697 [16:58:22]NVStorageSaveData ofd_packets/00192697 [16:58:22]File name is /storage/ofd_packets/00192697 [16:58:22]Write 301 bytes [16:58:22]NVStorageSaveData done [16:58:22]OFDSenderStorePacket done [16:58:22]KKMCreateOFDPacket done [16:58:22]NVStorageSaveData kkm_last_timestamp [16:58:22]File name is /storage/kkm_last_timestamp [16:58:22]Write 4 bytes [16:58:22]NVStorageSaveData done [16:58:22]ExternCall_PrintAddStr [16:58:22]wPrintStart [16:58:22]Write to MH i2c: 01 00 00 F4 64 58 [16:58:22]Write i2c OK [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: 01 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: 01 07 00 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: 01 07 00 F4 64 00 00 00 00 00 FF 0F 6D [16:58:22]RasterBufferAndPrint [16:58:22]line Счет N : (1)32024 [16:58:22]line ИНН: 02508201610067 [16:58:22]line Контрольно-Кассовый Чек [16:58:22]line ПРОДАЖА [16:58:22]line ТРК (МРК, ГНК) : 21 [16:58:22]line Товар: 2710124130 [16:58:22]line Аи-92-К-5 [16:58:22]line 7.480 * 66.90 [16:58:22]line = 500.41 [16:58:22]line НДС 12% НСП 1% [16:58:22]line > о реализуемом товаре [16:58:22]line ОКРУГЛЕНИЕ: -0.41 [16:58:22]line ИТОГО: 500.00 [16:58:22]line Внесено: 500.00 [16:58:22]line СДАЧА: 0.00 [16:58:22]line НСП 1% : 4.43 [16:58:22]line НДС 12% : 53.14 [16:58:22]line Наличными: 500.00 [16:58:22]line Безнал.: 0.00 [16:58:22]line Место: АЗС № 170 "Партнер Нефть" [16:58:22]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:58:22]line СНО: Общий режим [16:58:22]line Чек 245 28.10.2024 16:58 [16:58:22]line Смена: 543 ФФД: 1.0 [16:58:22]line ЗНМ: 0300000110 [16:58:22]line РНМ: 0000000000091776 [16:58:22]line Версия ККМ: 001 [16:58:22]line ФМ: 0000000000871754 [16:58:22]line ФД: 192697 [16:58:22]line ФПД: 112412110466644 [16:58:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T165827&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192697&fm=112412110466644&tin=02508201610067®Number=0000000000091776&sum=50000 [16:58:23]OFD Sender: Processing packet 192697 [packets to send 75, broken 74] [16:58:23]ProducePacketName [16:58:23]name=ofd_packets/00192697 [16:58:23]OFD Sender: To server: pG, [16:58:23]CommunicateWithHost lk.salyk.kg:30040 [16:58:23]ConnectInit lk.salyk.kg [16:58:23]written 0, free lines is 4095 [16:58:23]Connected sock=10 [16: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 31 37 35 34 0F 01 00 00 70 D7 07 01 76 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 B3 C2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 F0 02 00 35 04 06 00 66 3C FB E9 AE 54 22 10 A9 C4 68 C9 A1 90 [16:58:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6E 22 47 00 62 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 F0 02 00 F4 03 04 00 76 67 1F 67 B6 04 01 00 00 4A 19 7E 97 5B 85 B6 4C [16:58:23]CommunicateWithHost err = 0 [16:58:23]CheckOFDResponse [16:58:23]1017 (14) - 77093643461234 [16:58:23]1041 (16) - 0000000000871754 [16:58:23]1040 (4) - 192697 [16:58:23]1012 (4) - 28.10.2024 10:29 [16:58:23]1206 (1) - 0 [16:58:23]OFD Sender: Remove packet 192697 [16:58:23]ProducePacketName [16:58:23]name=ofd_packets/00192697 [16:58:23]NVStorageDeleteData [16:58:23]Write to MH i2c: 01 00 00 1F 65 84 [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: 01 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: 01 07 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: 01 07 00 1F 65 00 00 00 00 00 CD 0C 64 [16:58:23]RasterBufferAndPrint [16:58:23]line [16:58:23]line [16:58:23]line [16:58:23]line [16:58:23]line [16:58:23]written 0, free lines is 3284 [16:58:23]MH_Cut [16:58:23]Write to MH i2c: D1 01 00 26 65 01 5D [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: D1 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: D1 01 00 [16:58:23]MH_I2C_Read... [16:58:23]Read from MH i2c: D1 01 00 26 65 00 5C [16:58:23]Write to MH i2c: 01 00 00 27 65 8C [16:58:23]Write i2c OK [16:58:23]MH_I2C_Read... [16:58:23]OFD Sender: No OFD packet to send [16:58:24]*** Cut start [16:58:24]*** Partial cut [16:58:24]*** CUTSNS_PIN = 1 [16:58:24]*** CUTSNS_PIN = 0 [16:58:24]*** Brake cut motor [16:58:24]Read from MH i2c: 01 [16:58:24]MH_I2C_Read... [16:58:24]*** Stop cut motor [16:58:24]*** Cut end [16:58:24]Read from MH i2c: 01 07 00 [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: 01 07 00 27 65 00 00 00 00 00 FF 0F A1 [16:58:24]process_action close_receipt done [16:58:24]requested_data is exist [16:58:24]produce_requested_data [16:58:24]requested_item fm.sn is exist - process it [16:58:24]wFMCommunicate request_size=4 [16:58:24]MH_SAM_APDU [16:58:24]CAPDU: 80 11 00 00 [16:58:24]Write to MH i2c: E2 08 00 28 65 80 11 00 00 00 00 00 00 07 [16:58:24]Write i2c OK [16:58:24]MH_I2C_Read... [16:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:24]Read from MH i2c: E2 [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: E2 17 00 [16:58:24]MH_I2C_Read... [16:58:24]Read from MH i2c: E2 17 00 28 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [16:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:58:24]wFMCommunicate OK [16:58:24]requested_item fd.num is exist - process it [16:58:24]SAM_PROTO_GetFieldsCounters [16:58:24]wFMCommunicate request_size=4 [16:58:24]MH_SAM_APDU [16:58:24]CAPDU: 80 13 00 00 [16:58:24]Write to MH i2c: E2 08 00 29 65 80 13 00 00 00 00 00 00 0A [16:58:25]Write i2c OK [16:58:25]MH_I2C_Read... [16:58:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:25]Read from MH i2c: E2 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 62 00 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 62 00 29 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B9 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [16:58:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B9 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:25]wFMCommunicate OK [16:58:25]SAM_PROTO_GetFieldsCounters done [16:58:25]requested_item shift.num is exist - process it [16:58:25]requested_item shift.opened is exist - process it [16:58:25]req_shift_opened [16:58:25]FM_GetShiftState [16:58:25]SAM_PROTO_GetShiftState [16:58:25]wFMCommunicate request_size=4 [16:58:25]MH_SAM_APDU [16:58:25]CAPDU: 80 13 01 00 [16:58:25]Write to MH i2c: E2 08 00 2A 65 80 13 01 00 00 00 00 00 0C [16:58:25]Write i2c OK [16:58:25]MH_I2C_Read... [16:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:25]Read from MH i2c: E2 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 0E 00 [16:58:25]MH_I2C_Read... [16:58:25]Read from MH i2c: E2 0E 00 2A 65 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 5C [16:58:25]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [16:58:25]wFMCommunicate OK [16:58:25]SAM_PROTO_GetShiftState done [16:58:25]FM_GetShiftState done [16:58:25]req_shift_opened done [16:58:25]requested_item shift.open_date is exist - process it [16:58:25]req_shift_open_date [16:58:25]req_shift_open_date done [16:58:25]produce_requested_data done [16:58:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192697,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [16:58:25]process_action_free close_receipt [16:58:25]json_value_free [16:58:25]json_value_free done [16:58:25]process_json_proto returns [16:58:25]Send response to host [16:58:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192697,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [16:58:25]free response buf [16:58:25]execute_script done [16:58:25]execute_script returns [16:58:25]free content buf [16:58:25]Sock 7.Close socket [16:58:25]Sock 7.Thread stoped [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:30]accept exits with 9 [17:02:30]New connection [17:02:30]New thread 3066563940 created [17:02:30]Thread 3066707300 joined [17:02:30]Waiting for new connection... [17:02:30] Sock 9.Parse request [17:02:30]Sock 9.Check first char [17:02:30]Sock 9.First char is OK [17:02:30]request: POST /json_proto HTTP/1.0 [17:02:30]Method: POST [17:02:30]URL: /json_proto [17:02:30]Method is POST - this is cgi request [17:02:30]url: /json_proto [17:02:30]query_string will be loaded in cgi processing [17:02:30]execute_cgi json_proto POST (null) [17:02:30]execute_cgi path=json_proto method=POST [17:02:30]POST find Content-Length [17:02:30]Host: 172.17.63.131:8080 [17:02:30]Content-Length: 678 [17:02:30]Content-Type: application/json [17:02:30] [17:02:30]POST finish read [17:02:30]Found Content-Length = 678 [17:02:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:30]execute_script... [17:02: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)32025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:30]POST & json_proto [17:02:30]process_json_proto [17:02:30]json parsed OK: [17:02:30]protocol is kg_v1.0 [17:02:30]action value=close_receipt [17:02:30]process_action close_receipt [17:02:30]cmd_close_receipt [17:02:30]MH_GetDate [17:02:30]Write to MH i2c: F0 00 00 2B 65 7F [17:02:30]Write i2c OK [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: F0 [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: F0 09 00 [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: F0 09 00 2B 65 00 AD C3 1F 67 22 05 6E 64 77 [17:02:30]GetLastDocTimeStamp 1730134707 [17:02:30]current date 1730134957 [17:02:30]FM_GetShiftState [17:02:30]SAM_PROTO_GetShiftState [17:02:30]wFMCommunicate request_size=4 [17:02:30]MH_SAM_APDU [17:02:30]CAPDU: 80 13 01 00 [17:02:30]Write to MH i2c: E2 08 00 2C 65 80 13 01 00 00 00 00 00 0E [17:02:30]Write i2c OK [17:02:30]MH_I2C_Read... [17:02:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:30]Read from MH i2c: E2 [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: E2 0E 00 [17:02:30]MH_I2C_Read... [17:02:30]Read from MH i2c: E2 0E 00 2C 65 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 5E [17:02:30]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:02:30]wFMCommunicate OK [17:02:30]SAM_PROTO_GetShiftState done [17:02:30]FM_GetShiftState done [17:02:30]opened in 1730075620 [17:02:30]opened+sec_in_day 1730162020 [17:02:30]quantity*price = 200025 [17:02:30]sum+1 = 200026 [17:02:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 246 28.10.2024 17:02 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192698 ФПД: 203200127586999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T170237&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192698&fm=203200127586999&tin=02508201610067®Number=0000000000091776&sum=200000 [17:02:32]StoreToDocumentArchive [17:02:32]shift 543 fd 192698 [17:02:32]save to /storage/0543/doc_00192698 [17:02:32]save last doc name /storage/0543/doc_00192698 to /storage/kkm_last_doc_name [17:02:32]save OK [17:02:32]Clear old archive folders... [17:02:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:02:32]tlvbuf is 01B40DB0 [17:02:32]SAM_PROTO_ClearQueue [17:02:32]wFMCommunicate request_size=4 [17:02:32]MH_SAM_APDU [17:02:32]CAPDU: 80 09 00 00 [17:02:32]Write to MH i2c: E2 08 00 39 65 80 09 00 00 00 00 00 00 10 [17:02:32]Write i2c OK [17:02:32]MH_I2C_Read... [17:02:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:32]Read from MH i2c: E2 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 03 00 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 03 00 39 65 00 90 00 12 [17:02:32]RAPDU: 90 00 [17:02:32]wFMCommunicate OK [17:02:32]SAM_PROTO_ClearQueue done [17:02:32]KKMCreateOFDPacket [17:02:32]OFDProtocolAddRootSTLVToBuf [17:02:32]FM_MakeSignedData [17:02:32]FM_MakeSignedData [17:02:32]SAM_PROTO_SignData [17:02:32]wFMCommunicate request_size=4 [17:02:32]MH_SAM_APDU [17:02:32]CAPDU: 80 0D 01 02 [17:02:32]Write to MH i2c: E2 08 00 3A 65 80 0D 01 02 00 00 00 00 18 [17:02:32]Write i2c OK [17:02:32]MH_I2C_Read... [17:02:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:32]Read from MH i2c: E2 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 03 00 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 03 00 3A 65 00 90 00 13 [17:02:32]RAPDU: 90 00 [17:02:32]wFMCommunicate OK [17:02:32]wFMCommunicate request_size=255 [17:02:32]MH_SAM_APDU [17:02:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 AD C3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA F0 02 00 35 04 06 00 B8 CF 37 6C [17:02:32]Write to MH i2c: E2 02 01 3B 65 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 AD C3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA F0 02 00 35 04 06 00 B8 CF 37 6C 00 00 73 [17:02:32]Write i2c OK [17:02:32]MH_I2C_Read... [17:02:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:32]Read from MH i2c: E2 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 03 00 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 03 00 3B 65 00 90 00 14 [17:02:32]RAPDU: 90 00 [17:02:32]wFMCommunicate OK [17:02:32]wFMCommunicate request_size=7 [17:02:32]MH_SAM_APDU [17:02:32]CAPDU: 80 0D 02 02 02 52 B7 [17:02:32]Write to MH i2c: E2 0A 00 3C 65 80 0D 02 02 02 00 52 B7 00 00 28 [17:02:32]Write i2c OK [17:02:32]MH_I2C_Read... [17:02:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:32]Read from MH i2c: E2 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 03 00 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 03 00 3C 65 00 90 00 15 [17:02:32]RAPDU: 90 00 [17:02:32]wFMCommunicate OK [17:02:32]wFMCommunicate request_size=4 [17:02:32]MH_SAM_APDU [17:02:32]CAPDU: 80 0D 03 02 [17:02:32]Write to MH i2c: E2 08 00 3D 65 80 0D 03 02 00 00 00 00 1D [17:02:32]Write i2c OK [17:02:32]MH_I2C_Read... [17:02:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:32]Read from MH i2c: E2 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 0B 00 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 0B 00 3D 65 00 B2 42 28 BF 0A 46 62 FA 90 00 A5 [17:02:32]RAPDU: B2 42 28 BF 0A 46 62 FA 90 00 [17:02:32]wFMCommunicate OK [17:02:32]SAM_PROTO_SignData done [17:02:32]FM_MakeSignedData done [17:02:32]CreateOFDProtocolMessage [17:02:32]wFMCommunicate request_size=4 [17:02:32]MH_SAM_APDU [17:02:32]CAPDU: 80 11 00 00 [17:02:32]Write to MH i2c: E2 08 00 3E 65 80 11 00 00 00 00 00 00 1D [17:02:32]Write i2c OK [17:02:32]MH_I2C_Read... [17:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:32]Read from MH i2c: E2 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 17 00 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: E2 17 00 3E 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [17:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:02:32]wFMCommunicate OK [17:02:32]CreateOFDProtocolMessage done [17:02:32]OFDSenderStorePacket 192698 [17:02:32]StoreOFDPacket docnum=192698 [17:02:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C6 1F 04 01 22 D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 AD C3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA F0 02 00 35 04 06 00 B8 CF 37 6C 52 B7 B2 42 28 BF 0A 46 62 FA [17:02:32]CheckFolder [17:02:32]dirname=/storage/ofd_packets [17:02:32]CheckFolder done [17:02:32]ProducePacketName [17:02:32]name=ofd_packets/00192698 [17:02:32]NVStorageSaveData ofd_packets/00192698 [17:02:32]File name is /storage/ofd_packets/00192698 [17:02:32]Write 298 bytes [17:02:32]NVStorageSaveData done [17:02:32]OFDSenderStorePacket done [17:02:32]KKMCreateOFDPacket done [17:02:32]NVStorageSaveData kkm_last_timestamp [17:02:32]File name is /storage/kkm_last_timestamp [17:02:32]Write 4 bytes [17:02:32]NVStorageSaveData done [17:02:32]ExternCall_PrintAddStr [17:02:32]wPrintStart [17:02:32]Write to MH i2c: 01 00 00 3F 65 A4 [17:02:32]Write i2c OK [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: 01 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: 01 07 00 [17:02:32]MH_I2C_Read... [17:02:32]Read from MH i2c: 01 07 00 3F 65 00 00 00 00 00 FF 0F B9 [17:02:32]RasterBufferAndPrint [17:02:32]line Счет N : (1)32025 [17:02:32]line ИНН: 02508201610067 [17:02:32]line Контрольно-Кассовый Чек [17:02:32]line ПРОДАЖА [17:02:32]line ТРК (МРК, ГНК) : 11 [17:02:32]line Товар: 2710194210 [17:02:32]line ДТ-К-5 [17:02:32]line 26.250 * 76.20 [17:02:32]line = 2000.25 [17:02:32]line НДС 12% НСП 1% [17:02:32]line > о реализуемом товаре [17:02:32]line ОКРУГЛЕНИЕ: -0.25 [17:02:32]line ИТОГО: 2000.00 [17:02:32]line Внесено: 2000.00 [17:02:32]line СДАЧА: 0.00 [17:02:32]line НСП 1% : 17.70 [17:02:32]line НДС 12% : 212.42 [17:02:32]line Наличными: 2000.00 [17:02:32]line Безнал.: 0.00 [17:02:32]line Место: АЗС № 170 "Партнер Нефть" [17:02:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:02:32]line СНО: Общий режим [17:02:32]line Чек 246 28.10.2024 17:02 [17:02:32]line Смена: 543 ФФД: 1.0 [17:02:32]line ЗНМ: 0300000110 [17:02:32]line РНМ: 0000000000091776 [17:02:32]line Версия ККМ: 001 [17:02:32]line ФМ: 0000000000871754 [17:02:32]line ФД: 192698 [17:02:32]line ФПД: 203200127586999 [17:02:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T170237&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192698&fm=203200127586999&tin=02508201610067®Number=0000000000091776&sum=200000 [17:02:32]OFD Sender: Processing packet 192698 [packets to send 75, broken 74] [17:02:32]ProducePacketName [17:02:32]name=ofd_packets/00192698 [17:02:32]OFD Sender: To server: pG, [17:02:32]CommunicateWithHost lk.salyk.kg:30040 [17:02:32]ConnectInit lk.salyk.kg [17:02:32]written 0, free lines is 4095 [17:02:33]Connected sock=10 [17:02:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C6 1F 04 01 22 D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 AD C3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA F0 02 00 35 04 06 00 B8 CF 37 6C 52 B7 B2 42 28 BF 0A 46 62 FA [17:02:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 88 04 47 00 58 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA F0 02 00 F4 03 04 00 70 68 1F 67 B6 04 01 00 00 A1 4F F7 96 1F 7D 6C 94 [17:02:33]CommunicateWithHost err = 0 [17:02:33]CheckOFDResponse [17:02:33]1017 (14) - 77093643461234 [17:02:33]1041 (16) - 0000000000871754 [17:02:33]1040 (4) - 192698 [17:02:33]1012 (4) - 28.10.2024 10:33 [17:02:33]1206 (1) - 0 [17:02:33]OFD Sender: Remove packet 192698 [17:02:33]ProducePacketName [17:02:33]name=ofd_packets/00192698 [17:02:33]NVStorageDeleteData [17:02:33]Write to MH i2c: 01 00 00 6A 65 CF [17:02:33]Write i2c OK [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: 01 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: 01 07 00 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: 01 07 00 6A 65 00 00 00 00 00 D1 0C B3 [17:02:33]RasterBufferAndPrint [17:02:33]line [17:02:33]line [17:02:33]line [17:02:33]line [17:02:33]line [17:02:33]written 0, free lines is 3287 [17:02:33]MH_Cut [17:02:33]Write to MH i2c: D1 01 00 71 65 01 A8 [17:02:33]Write i2c OK [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: D1 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: D1 01 00 [17:02:33]MH_I2C_Read... [17:02:33]Read from MH i2c: D1 01 00 71 65 00 A7 [17:02:33]Write to MH i2c: 01 00 00 72 65 D7 [17:02:33]Write i2c OK [17:02:33]MH_I2C_Read... [17:02:33]OFD Sender: No OFD packet to send [17:02:34]*** Cut start [17:02:34]*** Partial cut [17:02:34]*** CUTSNS_PIN = 1 [17:02:34]*** CUTSNS_PIN = 0 [17:02:34]*** Brake cut motor [17:02:34]Read from MH i2c: 01 [17:02:34]MH_I2C_Read... [17:02:34]*** Stop cut motor [17:02:34]*** Cut end [17:02:34]Read from MH i2c: 01 07 00 [17:02:34]MH_I2C_Read... [17:02:34]Read from MH i2c: 01 07 00 72 65 00 00 00 00 00 FF 0F EC [17:02:34]process_action close_receipt done [17:02:34]requested_data is exist [17:02:34]produce_requested_data [17:02:34]requested_item fm.sn is exist - process it [17:02:34]wFMCommunicate request_size=4 [17:02:34]MH_SAM_APDU [17:02:34]CAPDU: 80 11 00 00 [17:02:34]Write to MH i2c: E2 08 00 73 65 80 11 00 00 00 00 00 00 52 [17:02:34]Write i2c OK [17:02:34]MH_I2C_Read... [17:02:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:34]Read from MH i2c: E2 [17:02:34]MH_I2C_Read... [17:02:34]Read from MH i2c: E2 17 00 [17:02:34]MH_I2C_Read... [17:02:34]Read from MH i2c: E2 17 00 73 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [17:02:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:02:34]wFMCommunicate OK [17:02:34]requested_item fd.num is exist - process it [17:02:34]SAM_PROTO_GetFieldsCounters [17:02:34]wFMCommunicate request_size=4 [17:02:34]MH_SAM_APDU [17:02:34]CAPDU: 80 13 00 00 [17:02:34]Write to MH i2c: E2 08 00 74 65 80 13 00 00 00 00 00 00 55 [17:02:34]Write i2c OK [17:02:34]MH_I2C_Read... [17:02:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:35]Read from MH i2c: E2 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: E2 62 00 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: E2 62 00 74 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BA F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [17:02:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BA F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:35]wFMCommunicate OK [17:02:35]SAM_PROTO_GetFieldsCounters done [17:02:35]requested_item shift.num is exist - process it [17:02:35]requested_item shift.opened is exist - process it [17:02:35]req_shift_opened [17:02:35]FM_GetShiftState [17:02:35]SAM_PROTO_GetShiftState [17:02:35]wFMCommunicate request_size=4 [17:02:35]MH_SAM_APDU [17:02:35]CAPDU: 80 13 01 00 [17:02:35]Write to MH i2c: E2 08 00 75 65 80 13 01 00 00 00 00 00 57 [17:02:35]Write i2c OK [17:02:35]MH_I2C_Read... [17:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:35]Read from MH i2c: E2 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: E2 0E 00 [17:02:35]MH_I2C_Read... [17:02:35]Read from MH i2c: E2 0E 00 75 65 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A7 [17:02:35]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:02:35]wFMCommunicate OK [17:02:35]SAM_PROTO_GetShiftState done [17:02:35]FM_GetShiftState done [17:02:35]req_shift_opened done [17:02:35]requested_item shift.open_date is exist - process it [17:02:35]req_shift_open_date [17:02:35]req_shift_open_date done [17:02:35]produce_requested_data done [17:02:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192698,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:02:35]process_action_free close_receipt [17:02:35]json_value_free [17:02:35]json_value_free done [17:02:35]process_json_proto returns [17:02:35]Send response to host [17:02:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192698,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:02:35]free response buf [17:02:35]execute_script done [17:02:35]execute_script returns [17:02:35]free content buf [17:02:35]Sock 9.Close socket [17:02:35]Sock 9.Thread stoped [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]accept exits with 7 [17:03:08]New connection [17:03:08]New thread 3066707300 created [17:03:08]Thread 3066563940 joined [17:03:08]Waiting for new connection... [17:03:08] Sock 7.Parse request [17:03:08]Sock 7.Check first char [17:03:08]Sock 7.First char is OK [17:03:08]request: POST /json_proto HTTP/1.0 [17:03:08]Method: POST [17:03:08]URL: /json_proto [17:03:08]Method is POST - this is cgi request [17:03:08]url: /json_proto [17:03:08]query_string will be loaded in cgi processing [17:03:08]execute_cgi json_proto POST (null) [17:03:08]execute_cgi path=json_proto method=POST [17:03:08]POST find Content-Length [17:03:08]Host: 172.17.63.131:8080 [17:03:08]Content-Length: 676 [17:03:08]Content-Type: application/json [17:03:08] [17:03:08]POST finish read [17:03:08]Found Content-Length = 676 [17:03:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:08]execute_script... [17:03: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)32026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:08]POST & json_proto [17:03:08]process_json_proto [17:03:08]json parsed OK: [17:03:08]protocol is kg_v1.0 [17:03:08]action value=close_receipt [17:03:08]process_action close_receipt [17:03:08]cmd_close_receipt [17:03:08]MH_GetDate [17:03:08]Write to MH i2c: F0 00 00 76 65 CA [17:03:08]Write i2c OK [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: F0 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: F0 09 00 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: F0 09 00 76 65 00 D2 C3 1F 67 22 05 6E 64 E7 [17:03:08]GetLastDocTimeStamp 1730134957 [17:03:08]current date 1730134994 [17:03:08]FM_GetShiftState [17:03:08]SAM_PROTO_GetShiftState [17:03:08]wFMCommunicate request_size=4 [17:03:08]MH_SAM_APDU [17:03:08]CAPDU: 80 13 01 00 [17:03:08]Write to MH i2c: E2 08 00 77 65 80 13 01 00 00 00 00 00 59 [17:03:08]Write i2c OK [17:03:08]MH_I2C_Read... [17:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:08]Read from MH i2c: E2 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: E2 0E 00 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: E2 0E 00 77 65 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A9 [17:03:08]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:03:08]wFMCommunicate OK [17:03:08]SAM_PROTO_GetShiftState done [17:03:08]FM_GetShiftState done [17:03:08]opened in 1730075620 [17:03:08]opened+sec_in_day 1730162020 [17:03:08]quantity*price = 20003 [17:03:08]sum+1 = 20004 [17:03:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 247 28.10.2024 17:03 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192699 ФПД: 175431110665081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T170314&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192699&fm=175431110665081&tin=02508201610067®Number=0000000000091776&sum=20000 [17:03:09]StoreToDocumentArchive [17:03:09]shift 543 fd 192699 [17:03:09]save to /storage/0543/doc_00192699 [17:03:09]save last doc name /storage/0543/doc_00192699 to /storage/kkm_last_doc_name [17:03:09]save OK [17:03:09]Clear old archive folders... [17:03:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:09]tlvbuf is 01B6DED0 [17:03:09]SAM_PROTO_ClearQueue [17:03:09]wFMCommunicate request_size=4 [17:03:09]MH_SAM_APDU [17:03:09]CAPDU: 80 09 00 00 [17:03:09]Write to MH i2c: E2 08 00 84 65 80 09 00 00 00 00 00 00 5B [17:03:09]Write i2c OK [17:03:09]MH_I2C_Read... [17:03:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:09]Read from MH i2c: E2 [17:03:09]MH_I2C_Read... [17:03:09]Read from MH i2c: E2 03 00 [17:03:09]MH_I2C_Read... [17:03:09]Read from MH i2c: E2 03 00 84 65 00 90 00 5D [17:03:09]RAPDU: 90 00 [17:03:09]wFMCommunicate OK [17:03:09]SAM_PROTO_ClearQueue done [17:03:09]KKMCreateOFDPacket [17:03:09]OFDProtocolAddRootSTLVToBuf [17:03:09]FM_MakeSignedData [17:03:09]FM_MakeSignedData [17:03:09]SAM_PROTO_SignData [17:03:09]wFMCommunicate request_size=4 [17:03:09]MH_SAM_APDU [17:03:09]CAPDU: 80 0D 01 02 [17:03:09]Write to MH i2c: E2 08 00 85 65 80 0D 01 02 00 00 00 00 63 [17:03:09]Write i2c OK [17:03:09]MH_I2C_Read... [17:03:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:09]Read from MH i2c: E2 [17:03:09]MH_I2C_Read... [17:03:09]Read from MH i2c: E2 03 00 [17:03:09]MH_I2C_Read... [17:03:09]Read from MH i2c: E2 03 00 85 65 00 90 00 5E [17:03:09]RAPDU: 90 00 [17:03:09]wFMCommunicate OK [17:03:09]wFMCommunicate request_size=255 [17:03:09]MH_SAM_APDU [17:03: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 D2 C3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB F0 02 00 35 04 06 00 9F [17:03:09]Write to MH i2c: E2 02 01 86 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 D2 C3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB F0 02 00 35 04 06 00 9F 00 00 38 [17:03:09]Write i2c OK [17:03:09]MH_I2C_Read... [17:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:10]Read from MH i2c: E2 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 03 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 03 00 86 65 00 90 00 5F [17:03:10]RAPDU: 90 00 [17:03:10]wFMCommunicate OK [17:03:10]wFMCommunicate request_size=10 [17:03:10]MH_SAM_APDU [17:03:10]CAPDU: 80 0D 02 02 05 8D BD 08 A3 79 [17:03:10]Write to MH i2c: E2 0D 00 87 65 80 0D 02 02 05 00 8D BD 08 A3 79 00 00 DE [17:03:10]Write i2c OK [17:03:10]MH_I2C_Read... [17:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:10]Read from MH i2c: E2 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 03 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 03 00 87 65 00 90 00 60 [17:03:10]RAPDU: 90 00 [17:03:10]wFMCommunicate OK [17:03:10]wFMCommunicate request_size=4 [17:03:10]MH_SAM_APDU [17:03:10]CAPDU: 80 0D 03 02 [17:03:10]Write to MH i2c: E2 08 00 88 65 80 0D 03 02 00 00 00 00 68 [17:03:10]Write i2c OK [17:03:10]MH_I2C_Read... [17:03:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:10]Read from MH i2c: E2 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 0B 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 0B 00 88 65 00 E8 AF 44 AD 88 83 A4 BE 90 00 5E [17:03:10]RAPDU: E8 AF 44 AD 88 83 A4 BE 90 00 [17:03:10]wFMCommunicate OK [17:03:10]SAM_PROTO_SignData done [17:03:10]FM_MakeSignedData done [17:03:10]CreateOFDProtocolMessage [17:03:10]wFMCommunicate request_size=4 [17:03:10]MH_SAM_APDU [17:03:10]CAPDU: 80 11 00 00 [17:03:10]Write to MH i2c: E2 08 00 89 65 80 11 00 00 00 00 00 00 68 [17:03:10]Write i2c OK [17:03:10]MH_I2C_Read... [17:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:10]Read from MH i2c: E2 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 17 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 17 00 89 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BB [17:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:03:10]wFMCommunicate OK [17:03:10]CreateOFDProtocolMessage done [17:03:10]OFDSenderStorePacket 192699 [17:03:10]StoreOFDPacket docnum=192699 [17:03:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 49 96 07 01 AE 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 D2 C3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB F0 02 00 35 04 06 00 9F 8D BD 08 A3 79 E8 AF 44 AD 88 83 A4 BE [17:03:10]CheckFolder [17:03:10]dirname=/storage/ofd_packets [17:03:10]CheckFolder done [17:03:10]ProducePacketName [17:03:10]name=ofd_packets/00192699 [17:03:10]NVStorageSaveData ofd_packets/00192699 [17:03:10]File name is /storage/ofd_packets/00192699 [17:03:10]Write 301 bytes [17:03:10]NVStorageSaveData done [17:03:10]OFDSenderStorePacket done [17:03:10]KKMCreateOFDPacket done [17:03:10]NVStorageSaveData kkm_last_timestamp [17:03:10]File name is /storage/kkm_last_timestamp [17:03:10]Write 4 bytes [17:03:10]NVStorageSaveData done [17:03:10]ExternCall_PrintAddStr [17:03:10]wPrintStart [17:03:10]Write to MH i2c: 01 00 00 8A 65 EF [17:03:10]Write i2c OK [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: 01 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: 01 07 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: 01 07 00 8A 65 00 00 00 00 00 FF 0F 04 [17:03:10]RasterBufferAndPrint [17:03:10]line Счет N : (1)32026 [17:03:10]line ИНН: 02508201610067 [17:03:10]line Контрольно-Кассовый Чек [17:03:10]line ПРОДАЖА [17:03:10]line ТРК (МРК, ГНК) : 21 [17:03:10]line Товар: 2710124130 [17:03:10]line Аи-92-К-5 [17:03:10]line 2.990 * 66.90 [17:03:10]line = 200.03 [17:03:10]line НДС 12% НСП 1% [17:03:10]line > о реализуемом товаре [17:03:10]line ОКРУГЛЕНИЕ: -0.03 [17:03:10]line ИТОГО: 200.00 [17:03:10]line Внесено: 200.00 [17:03:10]line СДАЧА: 0.00 [17:03:10]line НСП 1% : 1.77 [17:03:10]line НДС 12% : 21.24 [17:03:10]line Наличными: 200.00 [17:03:10]line Безнал.: 0.00 [17:03:10]line Место: АЗС № 170 "Партнер Нефть" [17:03:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:03:10]line СНО: Общий режим [17:03:10]line Чек 247 28.10.2024 17:03 [17:03:10]line Смена: 543 ФФД: 1.0 [17:03:10]line ЗНМ: 0300000110 [17:03:10]line РНМ: 0000000000091776 [17:03:10]line Версия ККМ: 001 [17:03:10]line ФМ: 0000000000871754 [17:03:10]line ФД: 192699 [17:03:10]line ФПД: 175431110665081 [17:03:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T170314&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192699&fm=175431110665081&tin=02508201610067®Number=0000000000091776&sum=20000 [17:03:10]OFD Sender: Processing packet 192699 [packets to send 75, broken 74] [17:03:10]ProducePacketName [17:03:10]name=ofd_packets/00192699 [17:03:10]OFD Sender: To server: pG, [17:03:10]CommunicateWithHost lk.salyk.kg:30040 [17:03:10]ConnectInit lk.salyk.kg [17:03:10]written 0, free lines is 4095 [17:03:10]Connected sock=10 [17:03:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 49 96 07 01 AE 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 D2 C3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB F0 02 00 35 04 06 00 9F 8D BD 08 A3 79 E8 AF 44 AD 88 83 A4 BE [17:03:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 44 94 47 00 F0 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB F0 02 00 F4 03 04 00 96 68 1F 67 B6 04 01 00 00 8C F7 34 97 1D 4E F5 F6 [17:03:11]CommunicateWithHost err = 0 [17:03:11]CheckOFDResponse [17:03:11]1017 (14) - 77093643461234 [17:03:11]1041 (16) - 0000000000871754 [17:03:11]1040 (4) - 192699 [17:03:11]1012 (4) - 28.10.2024 10:33 [17:03:11]1206 (1) - 0 [17:03:11]OFD Sender: Remove packet 192699 [17:03:11]ProducePacketName [17:03:11]name=ofd_packets/00192699 [17:03:11]NVStorageDeleteData [17:03:11]Write to MH i2c: 01 00 00 B5 65 1A [17:03:11]Write i2c OK [17:03:11]MH_I2C_Read... [17:03:11]Read from MH i2c: 01 [17:03:11]MH_I2C_Read... [17:03:11]Read from MH i2c: 01 07 00 [17:03:11]MH_I2C_Read... [17:03:11]Read from MH i2c: 01 07 00 B5 65 00 00 00 00 00 C6 0C F3 [17:03:11]RasterBufferAndPrint [17:03:11]line [17:03:11]line [17:03:11]line [17:03:11]line [17:03:11]line [17:03:11]written 0, free lines is 3276 [17:03:11]MH_Cut [17:03:11]Write to MH i2c: D1 01 00 BC 65 01 F3 [17:03:11]Write i2c OK [17:03:11]MH_I2C_Read... [17:03:11]Read from MH i2c: D1 [17:03:11]MH_I2C_Read... [17:03:11]Read from MH i2c: D1 01 00 [17:03:11]MH_I2C_Read... [17:03:11]Read from MH i2c: D1 01 00 BC 65 00 F2 [17:03:11]Write to MH i2c: 01 00 00 BD 65 22 [17:03:11]Write i2c OK [17:03:11]MH_I2C_Read... [17:03:11]OFD Sender: No OFD packet to send [17:03:12]*** Cut start [17:03:12]*** Partial cut [17:03:12]*** CUTSNS_PIN = 1 [17:03:12]*** CUTSNS_PIN = 0 [17:03:12]*** Brake cut motor [17:03:12]Read from MH i2c: 01 [17:03:12]MH_I2C_Read... [17:03:12]*** Stop cut motor [17:03:12]*** Cut end [17:03:12]Read from MH i2c: 01 07 00 [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: 01 07 00 BD 65 00 00 00 00 00 FF 0F 37 [17:03:12]process_action close_receipt done [17:03:12]requested_data is exist [17:03:12]produce_requested_data [17:03:12]requested_item fm.sn is exist - process it [17:03:12]wFMCommunicate request_size=4 [17:03:12]MH_SAM_APDU [17:03:12]CAPDU: 80 11 00 00 [17:03:12]Write to MH i2c: E2 08 00 BE 65 80 11 00 00 00 00 00 00 9D [17:03:12]Write i2c OK [17:03:12]MH_I2C_Read... [17:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:12]Read from MH i2c: E2 [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: E2 17 00 [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: E2 17 00 BE 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F0 [17:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:03:12]wFMCommunicate OK [17:03:12]requested_item fd.num is exist - process it [17:03:12]SAM_PROTO_GetFieldsCounters [17:03:12]wFMCommunicate request_size=4 [17:03:12]MH_SAM_APDU [17:03:12]CAPDU: 80 13 00 00 [17:03:12]Write to MH i2c: E2 08 00 BF 65 80 13 00 00 00 00 00 00 A0 [17:03:12]Write i2c OK [17:03:12]MH_I2C_Read... [17:03:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:12]Read from MH i2c: E2 [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: E2 62 00 [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: E2 62 00 BF 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BB F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [17:03:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BB F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:12]wFMCommunicate OK [17:03:12]SAM_PROTO_GetFieldsCounters done [17:03:12]requested_item shift.num is exist - process it [17:03:12]requested_item shift.opened is exist - process it [17:03:12]req_shift_opened [17:03:12]FM_GetShiftState [17:03:12]SAM_PROTO_GetShiftState [17:03:12]wFMCommunicate request_size=4 [17:03:12]MH_SAM_APDU [17:03:12]CAPDU: 80 13 01 00 [17:03:12]Write to MH i2c: E2 08 00 C0 65 80 13 01 00 00 00 00 00 A2 [17:03:12]Write i2c OK [17:03:12]MH_I2C_Read... [17:03:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:12]Read from MH i2c: E2 [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: E2 0E 00 [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: E2 0E 00 C0 65 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F2 [17:03:12]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:03:12]wFMCommunicate OK [17:03:12]SAM_PROTO_GetShiftState done [17:03:12]FM_GetShiftState done [17:03:12]req_shift_opened done [17:03:12]requested_item shift.open_date is exist - process it [17:03:12]req_shift_open_date [17:03:12]req_shift_open_date done [17:03:12]produce_requested_data done [17:03:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192699,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:03:12]process_action_free close_receipt [17:03:12]json_value_free [17:03:12]json_value_free done [17:03:12]process_json_proto returns [17:03:12]Send response to host [17:03:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192699,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:03:12]free response buf [17:03:12]execute_script done [17:03:12]execute_script returns [17:03:12]free content buf [17:03:12]Sock 7.Close socket [17:03:12]Sock 7.Thread stoped [17:03:16]OFD Sender: No OFD packet to send [17:03:21]OFD Sender: No OFD packet to send [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:51]OFD Sender: No OFD packet to send [17:05:56]OFD Sender: No OFD packet to send [17:06:01]OFD Sender: No OFD packet to send [17:06:06]OFD Sender: No OFD packet to send [17:06:11]OFD Sender: No OFD packet to send [17:06:15]accept exits with 9 [17:06:15]New connection [17:06:15]New thread 3066563940 created [17:06:15]Thread 3066707300 joined [17:06:15]Waiting for new connection... [17:06:15] Sock 9.Parse request [17:06:15]Sock 9.Check first char [17:06:15]Sock 9.First char is OK [17:06:15]request: POST /json_proto HTTP/1.0 [17:06:15]Method: POST [17:06:15]URL: /json_proto [17:06:15]Method is POST - this is cgi request [17:06:15]url: /json_proto [17:06:15]query_string will be loaded in cgi processing [17:06:15]execute_cgi json_proto POST (null) [17:06:15]execute_cgi path=json_proto method=POST [17:06:15]POST find Content-Length [17:06:15]Host: 172.17.63.131:8080 [17:06:15]Content-Length: 779 [17:06:15]Content-Type: application/json [17:06:15] [17:06:15]POST finish read [17:06:15]Found Content-Length = 779 [17:06:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A61746", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:15]execute_script... [17:06: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)32027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A61746", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:15]POST & json_proto [17:06:15]process_json_proto [17:06:15]json parsed OK: [17:06:15]protocol is kg_v1.0 [17:06:15]action value=close_receipt [17:06:15]process_action close_receipt [17:06:15]cmd_close_receipt [17:06:15]MH_GetDate [17:06:15]Write to MH i2c: F0 00 00 C1 65 15 [17:06:15]Write i2c OK [17:06:15]MH_I2C_Read... [17:06:15]Read from MH i2c: F0 [17:06:15]MH_I2C_Read... [17:06:15]Read from MH i2c: F0 09 00 [17:06:15]MH_I2C_Read... [17:06:15]Read from MH i2c: F0 09 00 C1 65 00 8D C4 1F 67 22 05 6E 64 EE [17:06:15]GetLastDocTimeStamp 1730134994 [17:06:15]current date 1730135181 [17:06:15]FM_GetShiftState [17:06:15]SAM_PROTO_GetShiftState [17:06:15]wFMCommunicate request_size=4 [17:06:15]MH_SAM_APDU [17:06:15]CAPDU: 80 13 01 00 [17:06:15]Write to MH i2c: E2 08 00 C2 65 80 13 01 00 00 00 00 00 A4 [17:06:15]Write i2c OK [17:06:15]MH_I2C_Read... [17:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:15]Read from MH i2c: E2 [17:06:15]MH_I2C_Read... [17:06:15]Read from MH i2c: E2 0E 00 [17:06:15]MH_I2C_Read... [17:06:15]Read from MH i2c: E2 0E 00 C2 65 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F4 [17:06:15]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:06:15]wFMCommunicate OK [17:06:15]SAM_PROTO_GetShiftState done [17:06:15]FM_GetShiftState done [17:06:15]opened in 1730075620 [17:06:15]opened+sec_in_day 1730162020 [17:06:15]quantity*price = 0 [17:06:15]sum+1 = 1 [17:06:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 248 28.10.2024 17:06 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Партнер нефть 61746 ФМ: 0000000000871754 ФД: 192700 ФПД: 229677910106155 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T170621&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192700&fm=229677910106155&tin=02508201610067®Number=0000000000091776&sum=0 [17:06:16]StoreToDocumentArchive [17:06:16]shift 543 fd 192700 [17:06:16]save to /storage/0543/doc_00192700 [17:06:16]save last doc name /storage/0543/doc_00192700 to /storage/kkm_last_doc_name [17:06:16]save OK [17:06:16]Clear old archive folders... [17:06:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:16]tlvbuf is 01A50780 [17:06:16]SAM_PROTO_ClearQueue [17:06:16]wFMCommunicate request_size=4 [17:06:16]MH_SAM_APDU [17:06:16]CAPDU: 80 09 00 00 [17:06:16]Write to MH i2c: E2 08 00 CF 65 80 09 00 00 00 00 00 00 A6 [17:06:16]Write i2c OK [17:06:16]MH_I2C_Read... [17:06:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:16]Read from MH i2c: E2 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 03 00 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 03 00 CF 65 00 90 00 A8 [17:06:16]RAPDU: 90 00 [17:06:16]wFMCommunicate OK [17:06:16]SAM_PROTO_ClearQueue done [17:06:16]KKMCreateOFDPacket [17:06:16]OFDProtocolAddRootSTLVToBuf [17:06:16]FM_MakeSignedData [17:06:16]FM_MakeSignedData [17:06:16]SAM_PROTO_SignData [17:06:16]wFMCommunicate request_size=4 [17:06:16]MH_SAM_APDU [17:06:16]CAPDU: 80 0D 01 02 [17:06:16]Write to MH i2c: E2 08 00 D0 65 80 0D 01 02 00 00 00 00 AE [17:06:16]Write i2c OK [17:06:16]MH_I2C_Read... [17:06:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:16]Read from MH i2c: E2 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 03 00 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 03 00 D0 65 00 90 00 A9 [17:06:16]RAPDU: 90 00 [17:06:16]wFMCommunicate OK [17:06:16]wFMCommunicate request_size=255 [17:06:16]MH_SAM_APDU [17:06: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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 8D C4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC F0 02 00 35 04 06 00 D0 [17:06:16]Write to MH i2c: E2 02 01 D1 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 8D C4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC F0 02 00 35 04 06 00 D0 00 00 D0 [17:06:16]Write i2c OK [17:06:16]MH_I2C_Read... [17:06:16]OFD Sender: No OFD packet to send [17:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:16]Read from MH i2c: E2 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 03 00 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 03 00 D1 65 00 90 00 AA [17:06:16]RAPDU: 90 00 [17:06:16]wFMCommunicate OK [17:06:16]wFMCommunicate request_size=10 [17:06:16]MH_SAM_APDU [17:06:16]CAPDU: 80 0D 02 02 05 E4 0E 3E A0 2B [17:06:16]Write to MH i2c: E2 0D 00 D2 65 80 0D 02 02 05 00 E4 0E 3E A0 2B 00 00 B6 [17:06:16]Write i2c OK [17:06:16]MH_I2C_Read... [17:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:16]Read from MH i2c: E2 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 03 00 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 03 00 D2 65 00 90 00 AB [17:06:16]RAPDU: 90 00 [17:06:16]wFMCommunicate OK [17:06:16]wFMCommunicate request_size=4 [17:06:16]MH_SAM_APDU [17:06:16]CAPDU: 80 0D 03 02 [17:06:16]Write to MH i2c: E2 08 00 D3 65 80 0D 03 02 00 00 00 00 B3 [17:06:16]Write i2c OK [17:06:16]MH_I2C_Read... [17:06:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:17]Read from MH i2c: E2 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: E2 0B 00 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: E2 0B 00 D3 65 00 4F E4 F9 3D B3 A8 9E FF 90 00 15 [17:06:17]RAPDU: 4F E4 F9 3D B3 A8 9E FF 90 00 [17:06:17]wFMCommunicate OK [17:06:17]SAM_PROTO_SignData done [17:06:17]FM_MakeSignedData done [17:06:17]CreateOFDProtocolMessage [17:06:17]wFMCommunicate request_size=4 [17:06:17]MH_SAM_APDU [17:06:17]CAPDU: 80 11 00 00 [17:06:17]Write to MH i2c: E2 08 00 D4 65 80 11 00 00 00 00 00 00 B3 [17:06:17]Write i2c OK [17:06:17]MH_I2C_Read... [17:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:17]Read from MH i2c: E2 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: E2 17 00 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: E2 17 00 D4 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 06 [17:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:06:17]wFMCommunicate OK [17:06:17]CreateOFDProtocolMessage done [17:06:17]OFDSenderStorePacket 192700 [17:06:17]StoreOFDPacket docnum=192700 [17:06:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D2 37 07 01 55 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 8D C4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC F0 02 00 35 04 06 00 D0 E4 0E 3E A0 2B 4F E4 F9 3D B3 A8 9E FF [17:06:17]CheckFolder [17:06:17]dirname=/storage/ofd_packets [17:06:17]CheckFolder done [17:06:17]ProducePacketName [17:06:17]name=ofd_packets/00192700 [17:06:17]NVStorageSaveData ofd_packets/00192700 [17:06:17]File name is /storage/ofd_packets/00192700 [17:06:17]Write 301 bytes [17:06:17]NVStorageSaveData done [17:06:17]OFDSenderStorePacket done [17:06:17]KKMCreateOFDPacket done [17:06:17]NVStorageSaveData kkm_last_timestamp [17:06:17]File name is /storage/kkm_last_timestamp [17:06:17]Write 4 bytes [17:06:17]NVStorageSaveData done [17:06:17]ExternCall_PrintAddStr [17:06:17]wPrintStart [17:06:17]Write to MH i2c: 01 00 00 D5 65 3A [17:06:17]Write i2c OK [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: 01 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: 01 07 00 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: 01 07 00 D5 65 00 00 00 00 00 FF 0F 4F [17:06:17]RasterBufferAndPrint [17:06:17]line Счет N : (1)32027 [17:06:17]line ИНН: 02508201610067 [17:06:17]line Контрольно-Кассовый Чек [17:06:17]line ПРОДАЖА [17:06:17]line ТРК (МРК, ГНК) : 21 [17:06:17]line Товар: 2710124130 [17:06:17]line Аи-92-К-5 [17:06:17]line 30.000 * 0.00 [17:06:17]line = 0.00 [17:06:17]line НДС 12% НСП 1% [17:06:17]line > о реализуемом товаре [17:06:17]line ИТОГО: 0.00 [17:06:17]line НСП 1% : 0.00 [17:06:17]line НДС 12% : 0.00 [17:06:17]line Наличными: 0.00 [17:06:17]line Безнал.: 0.00 [17:06:17]line Место: АЗС № 170 "Партнер Нефть" [17:06:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:06:17]line СНО: Общий режим [17:06:17]line Чек 248 28.10.2024 17:06 [17:06:17]line Смена: 543 ФФД: 1.0 [17:06:17]line ЗНМ: 0300000110 [17:06:17]line РНМ: 0000000000091776 [17:06:17]line Версия ККМ: 001 [17:06:17]line Талоны: Партнер нефть [17:06:17]line 61746 [17:06:17]line ФМ: 0000000000871754 [17:06:17]line ФД: 192700 [17:06:17]line ФПД: 229677910106155 [17:06:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T170621&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192700&fm=229677910106155&tin=02508201610067®Number=0000000000091776&sum=0 [17:06:17]OFD Sender: Processing packet 192700 [packets to send 75, broken 74] [17:06:17]ProducePacketName [17:06:17]name=ofd_packets/00192700 [17:06:17]OFD Sender: To server: pG, [17:06:17]CommunicateWithHost lk.salyk.kg:30040 [17:06:17]ConnectInit lk.salyk.kg [17:06:17]written 0, free lines is 4095 [17:06:17]Connected sock=10 [17:06:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D2 37 07 01 55 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 8D C4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC F0 02 00 35 04 06 00 D0 E4 0E 3E A0 2B 4F E4 F9 3D B3 A8 9E FF [17:06:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 86 63 47 00 2B 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 31 37 35 34 10 04 04 00 BC F0 02 00 F4 03 04 00 51 69 1F 67 B6 04 01 00 00 76 2A 3D BB EB 62 DB B0 [17:06:17]CommunicateWithHost err = 0 [17:06:17]CheckOFDResponse [17:06:17]1017 (14) - 77093643461234 [17:06:17]1041 (16) - 0000000000871754 [17:06:17]1040 (4) - 192700 [17:06:17]1012 (4) - 28.10.2024 10:37 [17:06:17]1206 (1) - 0 [17:06:17]OFD Sender: Remove packet 192700 [17:06:17]ProducePacketName [17:06:17]name=ofd_packets/00192700 [17:06:17]NVStorageDeleteData [17:06:17]int [17:06:17]Write to MH i2c: 01 00 00 F5 65 5A [17:06:17]*** FLAG_PRN_PAP2 set [17:06:17]Write i2c OK [17:06:17]MH_I2C_Read... [17:06:17]Write i2c OK [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: DD [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: DD [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: DD 01 00 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: DD 01 00 [17:06:17]answer for other command [DD] [17:06:17]MH Int Process stopped [17:06:17]Read from MH i2c: DD 01 00 F5 65 05 3C [17:06:17]answer with wrong packet_num 65F5 - expected 65F6 [17:06:17]process_action_free close_receipt [17:06:17]json_value_free [17:06:17]json_value_free done [17:06:17]process_json_proto returns [17:06:17]Send response to host [17:06:17]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [17:06:17]free response buf [17:06:17]execute_script done [17:06:17]execute_script returns [17:06:17]free content buf [17:06:17]Sock 9.Close socket [17:06:17]Sock 9.Thread stoped [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:39]*** FLAG_PRN_PAP1 set [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:18]*** FLAG_PRN_PAP2 reset [17:07:18]*** FLAG_PRN_PAP1 reset [17:07:23]OFD Sender: No OFD packet to send [17:07:23]accept exits with 7 [17:07:23]New connection [17:07:23]New thread 3066707300 created [17:07:23]Thread 3066563940 joined [17:07:23]Waiting for new connection... [17:07:23] Sock 7.Parse request [17:07:23]Sock 7.Check first char [17:07:23]Sock 7.First char is OK [17:07:23]request: POST /json_proto HTTP/1.0 [17:07:23]Method: POST [17:07:23]URL: /json_proto [17:07:23]Method is POST - this is cgi request [17:07:23]url: /json_proto [17:07:23]query_string will be loaded in cgi processing [17:07:23]execute_cgi json_proto POST (null) [17:07:23]execute_cgi path=json_proto method=POST [17:07:23]POST find Content-Length [17:07:23]Host: 172.17.63.131:8080 [17:07:23]Content-Length: 215 [17:07:23]Content-Type: application/json [17:07:23] [17:07:23]POST finish read [17:07:23]Found Content-Length = 215 [17:07:23]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" ] } } [17:07:23]execute_script... [17:07:23]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" ] } } [17:07:23]POST & json_proto [17:07:23]process_json_proto [17:07:23]json parsed OK: [17:07:23]protocol is kg_v1.0 [17:07:23]action value=get_value [17:07:23]process_action get_value [17:07:23]cmd_get_value [17:07:23]process_action get_value done [17:07:23]requested_data is exist [17:07:23]produce_requested_data [17:07:23]requested_item kkm.sn is exist - process it [17:07:23]requested_item kkm.ver is exist - process it [17:07:23]requested_item fm.sn is exist - process it [17:07:23]wFMCommunicate request_size=4 [17:07:23]MH_SAM_APDU [17:07:23]CAPDU: 80 11 00 00 [17:07:23]Write to MH i2c: E2 08 00 F7 65 80 11 00 00 00 00 00 00 D6 [17:07:23]Write i2c OK [17:07:23]MH_I2C_Read... [17:07:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:23]Read from MH i2c: E2 [17:07:23]MH_I2C_Read... [17:07:23]Read from MH i2c: E2 17 00 [17:07:23]MH_I2C_Read... [17:07:23]Read from MH i2c: E2 17 00 F7 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 29 [17:07:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:07:23]wFMCommunicate OK [17:07:23]requested_item fd.num is exist - process it [17:07:23]SAM_PROTO_GetFieldsCounters [17:07:23]wFMCommunicate request_size=4 [17:07:23]MH_SAM_APDU [17:07:23]CAPDU: 80 13 00 00 [17:07:23]Write to MH i2c: E2 08 00 F8 65 80 13 00 00 00 00 00 00 D9 [17:07:23]Write i2c OK [17:07:23]MH_I2C_Read... [17:07:23]Read from MH i2c: E2 [17:07:23]MH_I2C_Read... [17:07:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:23]Read from MH i2c: E2 62 00 [17:07:23]MH_I2C_Read... [17:07:23]Read from MH i2c: E2 62 00 F8 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BC F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [17:07:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BC F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:23]wFMCommunicate OK [17:07:23]SAM_PROTO_GetFieldsCounters done [17:07:23]requested_item shift.num is exist - process it [17:07:23]requested_item shift.opened is exist - process it [17:07:23]req_shift_opened [17:07:23]FM_GetShiftState [17:07:23]SAM_PROTO_GetShiftState [17:07:23]wFMCommunicate request_size=4 [17:07:23]MH_SAM_APDU [17:07:23]CAPDU: 80 13 01 00 [17:07:23]Write to MH i2c: E2 08 00 F9 65 80 13 01 00 00 00 00 00 DB [17:07:23]Write i2c OK [17:07:23]MH_I2C_Read... [17:07:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:23]Read from MH i2c: E2 [17:07:23]MH_I2C_Read... [17:07:23]Read from MH i2c: E2 0E 00 [17:07:23]MH_I2C_Read... [17:07:23]Read from MH i2c: E2 0E 00 F9 65 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2B [17:07:23]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:07:23]wFMCommunicate OK [17:07:23]SAM_PROTO_GetShiftState done [17:07:23]FM_GetShiftState done [17:07:23]req_shift_opened done [17:07:23]requested_item shift.open_date is exist - process it [17:07:23]req_shift_open_date [17:07:23]req_shift_open_date done [17:07:23]produce_requested_data done [17:07:23]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192700,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:07:23]process_action_free get_value [17:07:23]json_value_free [17:07:23]json_value_free done [17:07:23]process_json_proto returns [17:07:23]Send response to host [17:07:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192700,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:07:23]free response buf [17:07:23]execute_script done [17:07:23]execute_script returns [17:07:23]free content buf [17:07:23]Sock 7.Close socket [17:07:23]Sock 7.Thread stoped [17:07:23]accept exits with 5 [17:07:23]New connection [17:07:23]New thread 3066563940 created [17:07:23]Thread 3066707300 joined [17:07:23]Waiting for new connection... [17:07:23] Sock 5.Parse request [17:07:23]Sock 5.Check first char [17:07:23]Sock 5.First char is OK [17:07:23]request: POST /json_proto HTTP/1.0 [17:07:23]Method: POST [17:07:23]URL: /json_proto [17:07:23]Method is POST - this is cgi request [17:07:23]url: /json_proto [17:07:23]query_string will be loaded in cgi processing [17:07:23]execute_cgi json_proto POST (null) [17:07:23]execute_cgi path=json_proto method=POST [17:07:23]POST find Content-Length [17:07:23]Host: 172.17.63.131:8080 [17:07:23]Content-Length: 331 [17:07:23]Content-Type: application/json [17:07:23] [17:07:23]POST finish read [17:07:23]Found Content-Length = 331 [17:07:23]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" ] } } [17:07:23]execute_script... [17:07:24]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" ] } } [17:07:24]POST & json_proto [17:07:24]process_json_proto [17:07:24]json parsed OK: [17:07:24]protocol is kg_v1.0 [17:07:24]action value=get_value [17:07:24]process_action get_value [17:07:24]cmd_get_value [17:07:24]process_action get_value done [17:07:24]requested_data is exist [17:07:24]produce_requested_data [17:07:24]requested_item fm.sale.total is exist - process it [17:07:24]SAM_PROTO_GetFMData [17:07:24]wFMCommunicate request_size=4 [17:07:24]MH_SAM_APDU [17:07:24]CAPDU: 80 13 03 00 [17:07:24]Write to MH i2c: E2 08 00 FA 65 80 13 03 00 00 00 00 00 DE [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:07:24]Read from MH i2c: E2 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 FD 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 FD 00 FA 65 00 C1 04 85 04 BD 04 6E 04 04 00 7E EC 02 00 69 04 A3 00 6F 04 04 00 74 EC 02 00 B1 04 05 00 05 0E 2B B8 03 70 04 05 00 24 FF D0 8A 03 72 04 04 00 E1 0E 5A 2D 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 B9 55 27 65 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 4A C5 6D 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 9A [17:07:24]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 7E EC 02 00 69 04 A3 00 6F 04 04 00 74 EC 02 00 B1 04 05 00 05 0E 2B B8 03 70 04 05 00 24 FF D0 8A 03 72 04 04 00 E1 0E 5A 2D 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 B9 55 27 65 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 4A C5 6D 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [17:07:24]wFMCommunicate OK [17:07:24]wFMCommunicate request_size=4 [17:07:24]MH_SAM_APDU [17:07:24]CAPDU: 80 17 00 00 [17:07:24]Write to MH i2c: E2 08 00 FB 65 80 17 00 00 00 00 00 00 E0 [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:07:24]Read from MH i2c: E2 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 FD 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 FD 00 FB 65 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F1 [17:07:24]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:07:24]wFMCommunicate OK [17:07:24]wFMCommunicate request_size=4 [17:07:24]MH_SAM_APDU [17:07:24]CAPDU: 80 17 00 00 [17:07:24]Write to MH i2c: E2 08 00 FC 65 80 17 00 00 00 00 00 00 E1 [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:07:25]Read from MH i2c: E2 [17:07:25]MH_I2C_Read... [17:07:25]Read from MH i2c: E2 FD 00 [17:07:25]MH_I2C_Read... [17:07:25]Read from MH i2c: E2 FD 00 FC 65 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 81 [17:07:25]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:07:25]wFMCommunicate OK [17:07:25]wFMCommunicate request_size=4 [17:07:25]MH_SAM_APDU [17:07:25]CAPDU: 80 17 00 00 [17:07:25]Write to MH i2c: E2 08 00 FD 65 80 17 00 00 00 00 00 00 E2 [17:07:25]Write i2c OK [17:07:25]MH_I2C_Read... [17:07:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:07:25]Read from MH i2c: E2 [17:07:25]MH_I2C_Read... [17:07:25]Read from MH i2c: E2 FD 00 [17:07:25]MH_I2C_Read... [17:07:25]Read from MH i2c: E2 FD 00 FD 65 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 67 [17:07:25]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [17:07:25]wFMCommunicate OK [17:07:25]wFMCommunicate request_size=4 [17:07:25]MH_SAM_APDU [17:07:25]CAPDU: 80 17 00 00 [17:07:25]Write to MH i2c: E2 08 00 FE 65 80 17 00 00 00 00 00 00 E3 [17:07:25]Write i2c OK [17:07:25]MH_I2C_Read... [17:07:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [17:07:25]Read from MH i2c: E2 [17:07:25]MH_I2C_Read... [17:07:25]Read from MH i2c: E2 DE 00 [17:07:25]MH_I2C_Read... [17:07:25]Read from MH i2c: E2 DE 00 FE 65 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C2 [17:07:25]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:07:25]wFMCommunicate OK [17:07:25]SAM_PROTO_GetFMData done [17:07:25]requested_item fm.sale_refund.total is exist - process it [17:07:25]requested_item fm.buy.total is exist - process it [17:07:25]requested_item shift.sale.total is exist - process it [17:07:25]SAM_PROTO_GetShiftData [17:07:25]wFMCommunicate request_size=4 [17:07:25]MH_SAM_APDU [17:07:25]CAPDU: 80 13 02 00 [17:07:25]Write to MH i2c: E2 08 00 FF 65 80 13 02 00 00 00 00 00 E2 [17:07:25]Write i2c OK [17:07:25]MH_I2C_Read... [17:07:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:07:26]Read from MH i2c: E2 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 FD 00 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 FD 00 FF 65 00 B0 04 AA 04 AC 04 6E 04 04 00 F8 00 00 00 69 04 9D 00 6F 04 04 00 F8 00 00 00 B1 04 04 00 C1 94 01 01 70 04 03 00 78 7F EE 72 04 03 00 49 15 13 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 4A 5D 1B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C9 47 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 26 [17:07:26]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 F8 00 00 00 69 04 9D 00 6F 04 04 00 F8 00 00 00 B1 04 04 00 C1 94 01 01 70 04 03 00 78 7F EE 72 04 03 00 49 15 13 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 4A 5D 1B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C9 47 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [17:07:26]wFMCommunicate OK [17:07:26]wFMCommunicate request_size=4 [17:07:26]MH_SAM_APDU [17:07:26]CAPDU: 80 17 00 00 [17:07:26]Write to MH i2c: E2 08 00 00 66 80 17 00 00 00 00 00 00 E6 [17:07:26]Write i2c OK [17:07:26]MH_I2C_Read... [17:07:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:07:26]Read from MH i2c: E2 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 FD 00 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 FD 00 00 66 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 [17:07:26]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:07:26]wFMCommunicate OK [17:07:26]wFMCommunicate request_size=4 [17:07:26]MH_SAM_APDU [17:07:26]CAPDU: 80 17 00 00 [17:07:26]Write to MH i2c: E2 08 00 01 66 80 17 00 00 00 00 00 00 E7 [17:07:26]Write i2c OK [17:07:26]MH_I2C_Read... [17:07:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:07:26]Read from MH i2c: E2 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 FD 00 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 FD 00 01 66 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 A4 [17:07:26]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [17:07:26]wFMCommunicate OK [17:07:26]wFMCommunicate request_size=4 [17:07:26]MH_SAM_APDU [17:07:26]CAPDU: 80 17 00 00 [17:07:26]Write to MH i2c: E2 08 00 02 66 80 17 00 00 00 00 00 00 E8 [17:07:26]Write i2c OK [17:07:26]MH_I2C_Read... [17:07:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 FD 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 FD 00 02 66 00 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 90 00 5B [17:07:27]RAPDU: 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 90 00 [17:07:27]wFMCommunicate OK [17:07:27]wFMCommunicate request_size=4 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 17 00 00 [17:07:27]Write to MH i2c: E2 08 00 03 66 80 17 00 00 00 00 00 00 E9 [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 CD 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 CD 00 03 66 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CD [17:07:27]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [17:07:27]wFMCommunicate OK [17:07:27]SAM_PROTO_GetShiftData done [17:07:27]requested_item shift.sale.total_cash is exist - process it [17:07:27]requested_item shift.sale_refund.total is exist - process it [17:07:27]requested_item shift.sale_refund.total_cash is exist - process it [17:07:27]requested_item shift.buy.total is exist - process it [17:07:27]requested_item shift.buy.total_cash is exist - process it [17:07:27]produce_requested_data done [17:07:27]produce_requested_data return {"fm.sale.total":159747312.69,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":168808.33,"shift.sale.total_cash":156302.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} [17:07:27]process_action_free get_value [17:07:27]json_value_free [17:07:27]json_value_free done [17:07:27]process_json_proto returns [17:07:27]Send response to host [17:07:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159747312.69,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":168808.33,"shift.sale.total_cash":156302.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}}} [17:07:27]free response buf [17:07:27]execute_script done [17:07:27]execute_script returns [17:07:27]free content buf [17:07:27]Sock 5.Close socket [17:07:27]Sock 5.Thread stoped [17:07:27]accept exits with 6 [17:07:27]New connection [17:07:27]New thread 3066707300 created [17:07:27]Thread 3066563940 joined [17:07:27]Waiting for new connection... [17:07:27] Sock 6.Parse request [17:07:27]Sock 6.Check first char [17:07:27]Sock 6.First char is OK [17:07:27]request: POST /json_proto HTTP/1.0 [17:07:27]Method: POST [17:07:27]URL: /json_proto [17:07:27]Method is POST - this is cgi request [17:07:27]url: /json_proto [17:07:27]query_string will be loaded in cgi processing [17:07:27]execute_cgi json_proto POST (null) [17:07:27]execute_cgi path=json_proto method=POST [17:07:27]POST find Content-Length [17:07:27]Host: 172.17.63.131:8080 [17:07:27]Content-Length: 779 [17:07:27]Content-Type: application/json [17:07:27] [17:07:27]POST finish read [17:07:27]Found Content-Length = 779 [17:07:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A61746", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:27]execute_script... [17:07: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)32027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A61746", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:27]POST & json_proto [17:07:27]process_json_proto [17:07:27]json parsed OK: [17:07:27]protocol is kg_v1.0 [17:07:27]action value=close_receipt [17:07:27]process_action close_receipt [17:07:27]cmd_close_receipt [17:07:27]MH_GetDate [17:07:27]Write to MH i2c: F0 00 00 04 66 59 [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: F0 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: F0 09 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: F0 09 00 04 66 00 D5 C4 1F 67 22 05 6E 64 7A [17:07:27]GetLastDocTimeStamp 1730135181 [17:07:27]current date 1730135253 [17:07:27]FM_GetShiftState [17:07:27]SAM_PROTO_GetShiftState [17:07:27]wFMCommunicate request_size=4 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 13 01 00 [17:07:27]Write to MH i2c: E2 08 00 05 66 80 13 01 00 00 00 00 00 E8 [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 0E 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 0E 00 05 66 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 38 [17:07:27]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:07:27]wFMCommunicate OK [17:07:27]SAM_PROTO_GetShiftState done [17:07:27]FM_GetShiftState done [17:07:27]opened in 1730075620 [17:07:27]opened+sec_in_day 1730162020 [17:07:27]quantity*price = 0 [17:07:27]sum+1 = 1 [17:07:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 249 28.10.2024 17:07 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Партнер нефть 61746 ФМ: 0000000000871754 ФД: 192701 ФПД: 239369397608798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T170733&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192701&fm=239369397608798&tin=02508201610067®Number=0000000000091776&sum=0 [17:07:28]StoreToDocumentArchive [17:07:28]shift 543 fd 192701 [17:07:28]save to /storage/0543/doc_00192701 [17:07:28]save last doc name /storage/0543/doc_00192701 to /storage/kkm_last_doc_name [17:07:28]save OK [17:07:28]Clear old archive folders... [17:07:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:28]tlvbuf is 01991070 [17:07:28]SAM_PROTO_ClearQueue [17:07:28]wFMCommunicate request_size=4 [17:07:28]MH_SAM_APDU [17:07:28]CAPDU: 80 09 00 00 [17:07:28]Write to MH i2c: E2 08 00 12 66 80 09 00 00 00 00 00 00 EA [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:28]Read from MH i2c: E2 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 03 00 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 03 00 12 66 00 90 00 EC [17:07:28]RAPDU: 90 00 [17:07:28]wFMCommunicate OK [17:07:28]SAM_PROTO_ClearQueue done [17:07:28]KKMCreateOFDPacket [17:07:28]OFDProtocolAddRootSTLVToBuf [17:07:28]FM_MakeSignedData [17:07:28]FM_MakeSignedData [17:07:28]SAM_PROTO_SignData [17:07:28]wFMCommunicate request_size=4 [17:07:28]MH_SAM_APDU [17:07:28]CAPDU: 80 0D 01 02 [17:07:28]Write to MH i2c: E2 08 00 13 66 80 0D 01 02 00 00 00 00 F2 [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:28]Read from MH i2c: E2 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 03 00 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 03 00 13 66 00 90 00 ED [17:07:28]RAPDU: 90 00 [17:07:28]wFMCommunicate OK [17:07:28]wFMCommunicate request_size=255 [17:07:28]MH_SAM_APDU [17:07: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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 D5 C4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD F0 02 00 35 04 06 00 D9 [17:07:28]Write to MH i2c: E2 02 01 14 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 D5 C4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD F0 02 00 35 04 06 00 D9 00 00 67 [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:29]Read from MH i2c: E2 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 03 00 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 03 00 14 66 00 90 00 EE [17:07:29]RAPDU: 90 00 [17:07:29]wFMCommunicate OK [17:07:29]wFMCommunicate request_size=10 [17:07:29]MH_SAM_APDU [17:07:29]CAPDU: 80 0D 02 02 05 B4 87 EA 21 5E [17:07:29]Write to MH i2c: E2 0D 00 15 66 80 0D 02 02 05 00 B4 87 EA 21 5E 00 00 A3 [17:07:29]Write i2c OK [17:07:29]MH_I2C_Read... [17:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:29]Read from MH i2c: E2 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 03 00 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 03 00 15 66 00 90 00 EF [17:07:29]RAPDU: 90 00 [17:07:29]wFMCommunicate OK [17:07:29]wFMCommunicate request_size=4 [17:07:29]MH_SAM_APDU [17:07:29]CAPDU: 80 0D 03 02 [17:07:29]Write to MH i2c: E2 08 00 16 66 80 0D 03 02 00 00 00 00 F7 [17:07:29]Write i2c OK [17:07:29]MH_I2C_Read... [17:07:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:29]Read from MH i2c: E2 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 0B 00 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 0B 00 16 66 00 98 AE 43 FF 41 61 BE 89 90 00 69 [17:07:29]RAPDU: 98 AE 43 FF 41 61 BE 89 90 00 [17:07:29]wFMCommunicate OK [17:07:29]SAM_PROTO_SignData done [17:07:29]FM_MakeSignedData done [17:07:29]CreateOFDProtocolMessage [17:07:29]wFMCommunicate request_size=4 [17:07:29]MH_SAM_APDU [17:07:29]CAPDU: 80 11 00 00 [17:07:29]Write to MH i2c: E2 08 00 17 66 80 11 00 00 00 00 00 00 F7 [17:07:29]Write i2c OK [17:07:29]MH_I2C_Read... [17:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:29]Read from MH i2c: E2 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 17 00 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 17 00 17 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4A [17:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:07:29]wFMCommunicate OK [17:07:29]CreateOFDProtocolMessage done [17:07:29]OFDSenderStorePacket 192701 [17:07:29]StoreOFDPacket docnum=192701 [17:07:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E6 30 07 01 11 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 D5 C4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD F0 02 00 35 04 06 00 D9 B4 87 EA 21 5E 98 AE 43 FF 41 61 BE 89 [17:07:29]CheckFolder [17:07:29]dirname=/storage/ofd_packets [17:07:29]CheckFolder done [17:07:29]ProducePacketName [17:07:29]name=ofd_packets/00192701 [17:07:29]NVStorageSaveData ofd_packets/00192701 [17:07:29]File name is /storage/ofd_packets/00192701 [17:07:29]Write 301 bytes [17:07:29]NVStorageSaveData done [17:07:29]OFDSenderStorePacket done [17:07:29]KKMCreateOFDPacket done [17:07:29]NVStorageSaveData kkm_last_timestamp [17:07:29]File name is /storage/kkm_last_timestamp [17:07:29]Write 4 bytes [17:07:29]NVStorageSaveData done [17:07:29]ExternCall_PrintAddStr [17:07:29]wPrintStart [17:07:29]Write to MH i2c: 01 00 00 18 66 7E [17:07:29]Write i2c OK [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: 01 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: 01 07 00 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: 01 07 00 18 66 00 00 00 00 00 FF 0F 93 [17:07:29]RasterBufferAndPrint [17:07:29]line Счет N : (1)32027 [17:07:29]line ИНН: 02508201610067 [17:07:29]line Контрольно-Кассовый Чек [17:07:29]line ПРОДАЖА [17:07:29]line ТРК (МРК, ГНК) : 21 [17:07:29]line Товар: 2710124130 [17:07:29]line Аи-92-К-5 [17:07:29]line 30.000 * 0.00 [17:07:29]line = 0.00 [17:07:29]line НДС 12% НСП 1% [17:07:29]line > о реализуемом товаре [17:07:29]line ИТОГО: 0.00 [17:07:29]line НСП 1% : 0.00 [17:07:29]line НДС 12% : 0.00 [17:07:29]line Наличными: 0.00 [17:07:29]line Безнал.: 0.00 [17:07:29]line Место: АЗС № 170 "Партнер Нефть" [17:07:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:07:29]line СНО: Общий режим [17:07:29]line Чек 249 28.10.2024 17:07 [17:07:29]line Смена: 543 ФФД: 1.0 [17:07:29]line ЗНМ: 0300000110 [17:07:29]line РНМ: 0000000000091776 [17:07:29]line Версия ККМ: 001 [17:07:29]line Талоны: Партнер нефть [17:07:29]line 61746 [17:07:29]line ФМ: 0000000000871754 [17:07:29]line ФД: 192701 [17:07:29]line ФПД: 239369397608798 [17:07:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T170733&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192701&fm=239369397608798&tin=02508201610067®Number=0000000000091776&sum=0 [17:07:30]OFD Sender: Processing packet 192701 [packets to send 75, broken 74] [17:07:30]ProducePacketName [17:07:30]name=ofd_packets/00192701 [17:07:30]OFD Sender: To server: pG, [17:07:30]CommunicateWithHost lk.salyk.kg:30040 [17:07:30]ConnectInit lk.salyk.kg [17:07:30]written 0, free lines is 4095 [17:07:30]Connected sock=7 [17:07:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E6 30 07 01 11 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 D5 C4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD F0 02 00 35 04 06 00 D9 B4 87 EA 21 5E 98 AE 43 FF 41 61 BE 89 [17:07:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D5 A6 47 00 E3 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD F0 02 00 F4 03 04 00 99 69 1F 67 B6 04 01 00 00 37 F0 DD F7 F3 AE 68 A5 [17:07:30]CommunicateWithHost err = 0 [17:07:30]CheckOFDResponse [17:07:30]1017 (14) - 77093643461234 [17:07:30]1041 (16) - 0000000000871754 [17:07:30]1040 (4) - 192701 [17:07:30]1012 (4) - 28.10.2024 10:38 [17:07:30]1206 (1) - 0 [17:07:30]OFD Sender: Remove packet 192701 [17:07:30]ProducePacketName [17:07:30]name=ofd_packets/00192701 [17:07:30]NVStorageDeleteData [17:07:30]Write to MH i2c: 01 00 00 42 66 A8 [17:07:30]Write i2c OK [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: 01 [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: 01 07 00 [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: 01 07 00 42 66 00 00 00 00 00 F2 0C AD [17:07:30]RasterBufferAndPrint [17:07:30]line [17:07:30]line [17:07:30]line [17:07:30]line [17:07:30]line [17:07:30]written 0, free lines is 3336 [17:07:30]MH_Cut [17:07:30]Write to MH i2c: D1 01 00 49 66 01 81 [17:07:30]Write i2c OK [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: D1 [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: D1 01 00 [17:07:30]MH_I2C_Read... [17:07:30]Read from MH i2c: D1 01 00 49 66 00 80 [17:07:30]Write to MH i2c: 01 00 00 4A 66 B0 [17:07:30]Write i2c OK [17:07:30]MH_I2C_Read... [17:07:30]OFD Sender: No OFD packet to send [17:07:31]*** Cut start [17:07:31]*** Partial cut [17:07:31]*** CUTSNS_PIN = 1 [17:07:31]*** CUTSNS_PIN = 0 [17:07:31]*** Brake cut motor [17:07:31]Read from MH i2c: 01 [17:07:31]MH_I2C_Read... [17:07:31]*** Stop cut motor [17:07:31]*** Cut end [17:07:31]Read from MH i2c: 01 07 00 [17:07:31]MH_I2C_Read... [17:07:31]Read from MH i2c: 01 07 00 4A 66 00 00 00 00 00 FF 0F C5 [17:07:31]process_action close_receipt done [17:07:31]requested_data is exist [17:07:31]produce_requested_data [17:07:31]requested_item fm.sn is exist - process it [17:07:31]wFMCommunicate request_size=4 [17:07:31]MH_SAM_APDU [17:07:31]CAPDU: 80 11 00 00 [17:07:31]Write to MH i2c: E2 08 00 4B 66 80 11 00 00 00 00 00 00 2B [17:07:31]Write i2c OK [17:07:31]MH_I2C_Read... [17:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:31]Read from MH i2c: E2 [17:07:31]MH_I2C_Read... [17:07:31]Read from MH i2c: E2 17 00 [17:07:31]MH_I2C_Read... [17:07:31]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 31 37 35 34 90 00 7E [17:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:07:31]wFMCommunicate OK [17:07:31]requested_item fd.num is exist - process it [17:07:31]SAM_PROTO_GetFieldsCounters [17:07:31]wFMCommunicate request_size=4 [17:07:31]MH_SAM_APDU [17:07:31]CAPDU: 80 13 00 00 [17:07:31]Write to MH i2c: E2 08 00 4C 66 80 13 00 00 00 00 00 00 2E [17:07:31]Write i2c OK [17:07:31]MH_I2C_Read... [17:07:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:32]Read from MH i2c: E2 [17:07:32]MH_I2C_Read... [17:07:32]Read from MH i2c: E2 62 00 [17:07:32]MH_I2C_Read... [17:07:32]Read from MH i2c: E2 62 00 4C 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BD F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [17:07:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BD F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:32]wFMCommunicate OK [17:07:32]SAM_PROTO_GetFieldsCounters done [17:07:32]requested_item shift.num is exist - process it [17:07:32]requested_item shift.opened is exist - process it [17:07:32]req_shift_opened [17:07:32]FM_GetShiftState [17:07:32]SAM_PROTO_GetShiftState [17:07:32]wFMCommunicate request_size=4 [17:07:32]MH_SAM_APDU [17:07:32]CAPDU: 80 13 01 00 [17:07:32]Write to MH i2c: E2 08 00 4D 66 80 13 01 00 00 00 00 00 30 [17:07:32]Write i2c OK [17:07:32]MH_I2C_Read... [17:07:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:32]Read from MH i2c: E2 [17:07:32]MH_I2C_Read... [17:07:32]Read from MH i2c: E2 0E 00 [17:07:32]MH_I2C_Read... [17:07:32]Read from MH i2c: E2 0E 00 4D 66 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 80 [17:07:32]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:07:32]wFMCommunicate OK [17:07:32]SAM_PROTO_GetShiftState done [17:07:32]FM_GetShiftState done [17:07:32]req_shift_opened done [17:07:32]requested_item shift.open_date is exist - process it [17:07:32]req_shift_open_date [17:07:32]req_shift_open_date done [17:07:32]produce_requested_data done [17:07:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192701,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:07:32]process_action_free close_receipt [17:07:32]json_value_free [17:07:32]json_value_free done [17:07:32]process_json_proto returns [17:07:32]Send response to host [17:07:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192701,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:07:32]free response buf [17:07:32]execute_script done [17:07:32]execute_script returns [17:07:32]free content buf [17:07:32]Sock 6.Close socket [17:07:32]Sock 6.Thread stoped [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:01]accept exits with 5 [17:09:01]New connection [17:09:01]New thread 3066563940 created [17:09:01]Thread 3066707300 joined [17:09:01]Waiting for new connection... [17:09:01] Sock 5.Parse request [17:09:01]Sock 5.Check first char [17:09:01]Sock 5.First char is OK [17:09:01]request: POST /json_proto HTTP/1.0 [17:09:01]Method: POST [17:09:01]URL: /json_proto [17:09:01]Method is POST - this is cgi request [17:09:01]url: /json_proto [17:09:01]query_string will be loaded in cgi processing [17:09:01]execute_cgi json_proto POST (null) [17:09:01]execute_cgi path=json_proto method=POST [17:09:01]POST find Content-Length [17:09:01]Host: 172.17.63.131:8080 [17:09:01]Content-Length: 673 [17:09:01]Content-Type: application/json [17:09:01] [17:09:01]POST finish read [17:09:01]Found Content-Length = 673 [17:09:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:01]execute_script... [17:09: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)32028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:01]POST & json_proto [17:09:01]process_json_proto [17:09:01]json parsed OK: [17:09:01]protocol is kg_v1.0 [17:09:01]action value=close_receipt [17:09:01]process_action close_receipt [17:09:01]cmd_close_receipt [17:09:01]MH_GetDate [17:09:01]Write to MH i2c: F0 00 00 4E 66 A3 [17:09:01]Write i2c OK [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: F0 [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: F0 09 00 [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: F0 09 00 4E 66 00 33 C5 1F 67 22 05 6E 64 23 [17:09:01]GetLastDocTimeStamp 1730135253 [17:09:01]current date 1730135347 [17:09:01]FM_GetShiftState [17:09:01]SAM_PROTO_GetShiftState [17:09:01]wFMCommunicate request_size=4 [17:09:01]MH_SAM_APDU [17:09:01]CAPDU: 80 13 01 00 [17:09:01]Write to MH i2c: E2 08 00 4F 66 80 13 01 00 00 00 00 00 32 [17:09:01]Write i2c OK [17:09:01]MH_I2C_Read... [17:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:01]Read from MH i2c: E2 [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: E2 0E 00 [17:09:01]MH_I2C_Read... [17:09:01]Read from MH i2c: E2 0E 00 4F 66 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 82 [17:09:01]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:09:01]wFMCommunicate OK [17:09:01]SAM_PROTO_GetShiftState done [17:09:01]FM_GetShiftState done [17:09:01]opened in 1730075620 [17:09:01]opened+sec_in_day 1730162020 [17:09:01]quantity*price = 60045 [17:09:01]sum+1 = 60047 [17:09:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 250 28.10.2024 17:09 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192702 ФПД: 49530613937793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T170907&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192702&fm=49530613937793&tin=02508201610067®Number=0000000000091776&sum=60000 [17:09:02]StoreToDocumentArchive [17:09:02]shift 543 fd 192702 [17:09:02]save to /storage/0543/doc_00192702 [17:09:02]save last doc name /storage/0543/doc_00192702 to /storage/kkm_last_doc_name [17:09:02]save OK [17:09:02]Clear old archive folders... [17:09:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:09:02]tlvbuf is 01A00B00 [17:09:02]SAM_PROTO_ClearQueue [17:09:02]wFMCommunicate request_size=4 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 09 00 00 [17:09:02]Write to MH i2c: E2 08 00 5C 66 80 09 00 00 00 00 00 00 34 [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 5C 66 00 90 00 36 [17:09:02]RAPDU: 90 00 [17:09:02]wFMCommunicate OK [17:09:02]SAM_PROTO_ClearQueue done [17:09:02]KKMCreateOFDPacket [17:09:02]OFDProtocolAddRootSTLVToBuf [17:09:02]FM_MakeSignedData [17:09:02]FM_MakeSignedData [17:09:02]SAM_PROTO_SignData [17:09:02]wFMCommunicate request_size=4 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 0D 01 02 [17:09:02]Write to MH i2c: E2 08 00 5D 66 80 0D 01 02 00 00 00 00 3C [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 5D 66 00 90 00 37 [17:09:02]RAPDU: 90 00 [17:09:02]wFMCommunicate OK [17:09:02]wFMCommunicate request_size=255 [17:09:02]MH_SAM_APDU [17:09: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 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 33 C5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE F0 02 00 35 04 06 00 2D 0C 3E A6 [17:09:02]Write to MH i2c: E2 02 01 5E 66 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 33 C5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE F0 02 00 35 04 06 00 2D 0C 3E A6 00 00 ED [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 5E 66 00 90 00 38 [17:09:02]RAPDU: 90 00 [17:09:02]wFMCommunicate OK [17:09:02]wFMCommunicate request_size=7 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 0D 02 02 02 36 81 [17:09:02]Write to MH i2c: E2 0A 00 5F 66 80 0D 02 02 02 00 36 81 00 00 FA [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 03 00 5F 66 00 90 00 39 [17:09:02]RAPDU: 90 00 [17:09:02]wFMCommunicate OK [17:09:02]wFMCommunicate request_size=4 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 0D 03 02 [17:09:02]Write to MH i2c: E2 08 00 60 66 80 0D 03 02 00 00 00 00 41 [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 0B 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 0B 00 60 66 00 AA A9 FC 27 0C 29 22 C7 90 00 D6 [17:09:02]RAPDU: AA A9 FC 27 0C 29 22 C7 90 00 [17:09:02]wFMCommunicate OK [17:09:02]SAM_PROTO_SignData done [17:09:02]FM_MakeSignedData done [17:09:02]CreateOFDProtocolMessage [17:09:02]wFMCommunicate request_size=4 [17:09:02]MH_SAM_APDU [17:09:02]CAPDU: 80 11 00 00 [17:09:02]Write to MH i2c: E2 08 00 61 66 80 11 00 00 00 00 00 00 41 [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:02]Read from MH i2c: E2 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 17 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: E2 17 00 61 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 94 [17:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:09:02]wFMCommunicate OK [17:09:02]CreateOFDProtocolMessage done [17:09:02]OFDSenderStorePacket 192702 [17:09:02]StoreOFDPacket docnum=192702 [17:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D0 F6 04 01 F9 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 33 C5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE F0 02 00 35 04 06 00 2D 0C 3E A6 36 81 AA A9 FC 27 0C 29 22 C7 [17:09:02]CheckFolder [17:09:02]dirname=/storage/ofd_packets [17:09:02]CheckFolder done [17:09:02]ProducePacketName [17:09:02]name=ofd_packets/00192702 [17:09:02]NVStorageSaveData ofd_packets/00192702 [17:09:02]File name is /storage/ofd_packets/00192702 [17:09:02]Write 298 bytes [17:09:02]NVStorageSaveData done [17:09:02]OFDSenderStorePacket done [17:09:02]KKMCreateOFDPacket done [17:09:02]NVStorageSaveData kkm_last_timestamp [17:09:02]File name is /storage/kkm_last_timestamp [17:09:02]Write 4 bytes [17:09:02]NVStorageSaveData done [17:09:02]ExternCall_PrintAddStr [17:09:02]wPrintStart [17:09:02]Write to MH i2c: 01 00 00 62 66 C8 [17:09:02]Write i2c OK [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: 01 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: 01 07 00 [17:09:02]MH_I2C_Read... [17:09:02]Read from MH i2c: 01 07 00 62 66 00 00 00 00 00 FF 0F DD [17:09:02]RasterBufferAndPrint [17:09:02]line Счет N : (1)32028 [17:09:02]line ИНН: 02508201610067 [17:09:02]line Контрольно-Кассовый Чек [17:09:02]line ПРОДАЖА [17:09:02]line ТРК (МРК, ГНК) : 11 [17:09:02]line Товар: 2710194210 [17:09:02]line ДТ-К-5 [17:09:02]line 7.880 * 76.20 [17:09:02]line = 600.46 [17:09:02]line НДС 12% НСП 1% [17:09:02]line > о реализуемом товаре [17:09:02]line ОКРУГЛЕНИЕ: -0.46 [17:09:02]line ИТОГО: 600.00 [17:09:02]line Внесено: 600.00 [17:09:02]line СДАЧА: 0.00 [17:09:02]line НСП 1% : 5.31 [17:09:02]line НДС 12% : 63.77 [17:09:02]line Наличными: 600.00 [17:09:02]line Безнал.: 0.00 [17:09:02]line Место: АЗС № 170 "Партнер Нефть" [17:09:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:09:02]line СНО: Общий режим [17:09:02]line Чек 250 28.10.2024 17:09 [17:09:02]line Смена: 543 ФФД: 1.0 [17:09:02]line ЗНМ: 0300000110 [17:09:02]line РНМ: 0000000000091776 [17:09:02]line Версия ККМ: 001 [17:09:02]line ФМ: 0000000000871754 [17:09:02]line ФД: 192702 [17:09:02]line ФПД: 49530613937793 [17:09:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T170907&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192702&fm=49530613937793&tin=02508201610067®Number=0000000000091776&sum=60000 [17:09:03]OFD Sender: Processing packet 192702 [packets to send 75, broken 74] [17:09:03]ProducePacketName [17:09:03]name=ofd_packets/00192702 [17:09:03]OFD Sender: To server: pG, [17:09:03]CommunicateWithHost lk.salyk.kg:30040 [17:09:03]ConnectInit lk.salyk.kg [17:09:03]written 0, free lines is 4095 [17:09:03]Connected sock=7 [17:09:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D0 F6 04 01 F9 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 33 C5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE F0 02 00 35 04 06 00 2D 0C 3E A6 36 81 AA A9 FC 27 0C 29 22 C7 [17:09:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 87 6D 47 00 91 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE F0 02 00 F4 03 04 00 F7 69 1F 67 B6 04 01 00 00 D3 92 C5 5A 8D E6 D6 0F [17:09:03]CommunicateWithHost err = 0 [17:09:03]CheckOFDResponse [17:09:03]1017 (14) - 77093643461234 [17:09:03]1041 (16) - 0000000000871754 [17:09:03]1040 (4) - 192702 [17:09:03]1012 (4) - 28.10.2024 10:39 [17:09:03]1206 (1) - 0 [17:09:03]OFD Sender: Remove packet 192702 [17:09:03]ProducePacketName [17:09:03]name=ofd_packets/00192702 [17:09:03]NVStorageDeleteData [17:09:03]Write to MH i2c: 01 00 00 8D 66 F3 [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: 01 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: 01 07 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: 01 07 00 8D 66 00 00 00 00 00 C0 0C C6 [17:09:03]RasterBufferAndPrint [17:09:03]line [17:09:03]line [17:09:03]line [17:09:03]line [17:09:03]line [17:09:03]written 0, free lines is 3270 [17:09:03]MH_Cut [17:09:03]Write to MH i2c: D1 01 00 94 66 01 CC [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: D1 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: D1 01 00 [17:09:03]MH_I2C_Read... [17:09:03]Read from MH i2c: D1 01 00 94 66 00 CB [17:09:03]Write to MH i2c: 01 00 00 95 66 FB [17:09:03]Write i2c OK [17:09:03]MH_I2C_Read... [17:09:04]OFD Sender: No OFD packet to send [17:09:04]*** Cut start [17:09:04]*** Partial cut [17:09:04]*** CUTSNS_PIN = 1 [17:09:04]*** CUTSNS_PIN = 0 [17:09:04]*** Brake cut motor [17:09:05]Read from MH i2c: 01 [17:09:05]MH_I2C_Read... [17:09:05]*** Stop cut motor [17:09:05]*** Cut end [17:09:05]Read from MH i2c: 01 07 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: 01 07 00 95 66 00 00 00 00 00 FF 0F 10 [17:09:05]process_action close_receipt done [17:09:05]requested_data is exist [17:09:05]produce_requested_data [17:09:05]requested_item fm.sn is exist - process it [17:09:05]wFMCommunicate request_size=4 [17:09:05]MH_SAM_APDU [17:09:05]CAPDU: 80 11 00 00 [17:09:05]Write to MH i2c: E2 08 00 96 66 80 11 00 00 00 00 00 00 76 [17:09:05]Write i2c OK [17:09:05]MH_I2C_Read... [17:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:05]Read from MH i2c: E2 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 17 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 17 00 96 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C9 [17:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:09:05]wFMCommunicate OK [17:09:05]requested_item fd.num is exist - process it [17:09:05]SAM_PROTO_GetFieldsCounters [17:09:05]wFMCommunicate request_size=4 [17:09:05]MH_SAM_APDU [17:09:05]CAPDU: 80 13 00 00 [17:09:05]Write to MH i2c: E2 08 00 97 66 80 13 00 00 00 00 00 00 79 [17:09:05]Write i2c OK [17:09:05]MH_I2C_Read... [17:09:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:05]Read from MH i2c: E2 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 62 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 62 00 97 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BE F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [17:09:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BE F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:05]wFMCommunicate OK [17:09:05]SAM_PROTO_GetFieldsCounters done [17:09:05]requested_item shift.num is exist - process it [17:09:05]requested_item shift.opened is exist - process it [17:09:05]req_shift_opened [17:09:05]FM_GetShiftState [17:09:05]SAM_PROTO_GetShiftState [17:09:05]wFMCommunicate request_size=4 [17:09:05]MH_SAM_APDU [17:09:05]CAPDU: 80 13 01 00 [17:09:05]Write to MH i2c: E2 08 00 98 66 80 13 01 00 00 00 00 00 7B [17:09:05]Write i2c OK [17:09:05]MH_I2C_Read... [17:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:05]Read from MH i2c: E2 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 0E 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 0E 00 98 66 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CB [17:09:05]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:09:05]wFMCommunicate OK [17:09:05]SAM_PROTO_GetShiftState done [17:09:05]FM_GetShiftState done [17:09:05]req_shift_opened done [17:09:05]requested_item shift.open_date is exist - process it [17:09:05]req_shift_open_date [17:09:05]req_shift_open_date done [17:09:05]produce_requested_data done [17:09:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192702,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:09:05]process_action_free close_receipt [17:09:05]json_value_free [17:09:05]json_value_free done [17:09:05]process_json_proto returns [17:09:05]Send response to host [17:09:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192702,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:09:05]free response buf [17:09:05]execute_script done [17:09:05]execute_script returns [17:09:05]free content buf [17:09:05]Sock 5.Close socket [17:09:05]Sock 5.Thread stoped [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]OFD Sender: No OFD packet to send [17:09:49]OFD Sender: No OFD packet to send [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:04]OFD Sender: No OFD packet to send [17:10:09]OFD Sender: No OFD packet to send [17:10:14]OFD Sender: No OFD packet to send [17:10:19]OFD Sender: No OFD packet to send [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:47]accept exits with 6 [17:10:47]New connection [17:10:47]New thread 3066707300 created [17:10:47]Thread 3066563940 joined [17:10:47]Waiting for new connection... [17:10:47] Sock 6.Parse request [17:10:47]Sock 6.Check first char [17:10:47]Sock 6.First char is OK [17:10:47]request: POST /json_proto HTTP/1.0 [17:10:47]Method: POST [17:10:47]URL: /json_proto [17:10:47]Method is POST - this is cgi request [17:10:47]url: /json_proto [17:10:47]query_string will be loaded in cgi processing [17:10:47]execute_cgi json_proto POST (null) [17:10:47]execute_cgi path=json_proto method=POST [17:10:47]POST find Content-Length [17:10:47]Host: 172.17.63.131:8080 [17:10:47]Content-Length: 862 [17:10:47]Content-Type: application/json [17:10:47] [17:10:47]POST finish read [17:10:47]Found Content-Length = 862 [17:10:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:47]execute_script... [17:10: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)32030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:47]POST & json_proto [17:10:47]process_json_proto [17:10:47]json parsed OK: [17:10:47]protocol is kg_v1.0 [17:10:47]action value=close_receipt [17:10:47]process_action close_receipt [17:10:47]cmd_close_receipt [17:10:47]MH_GetDate [17:10:47]Write to MH i2c: F0 00 00 99 66 EE [17:10:47]Write i2c OK [17:10:47]MH_I2C_Read... [17:10:47]Read from MH i2c: F0 [17:10:47]MH_I2C_Read... [17:10:47]Read from MH i2c: F0 09 00 [17:10:47]MH_I2C_Read... [17:10:47]Read from MH i2c: F0 09 00 99 66 00 9D C5 1F 67 22 05 6E 64 D8 [17:10:47]GetLastDocTimeStamp 1730135347 [17:10:47]current date 1730135453 [17:10:47]FM_GetShiftState [17:10:47]SAM_PROTO_GetShiftState [17:10:47]wFMCommunicate request_size=4 [17:10:47]MH_SAM_APDU [17:10:47]CAPDU: 80 13 01 00 [17:10:47]Write to MH i2c: E2 08 00 9A 66 80 13 01 00 00 00 00 00 7D [17:10:47]Write i2c OK [17:10:47]MH_I2C_Read... [17:10:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:47]Read from MH i2c: E2 [17:10:47]MH_I2C_Read... [17:10:47]Read from MH i2c: E2 0E 00 [17:10:47]MH_I2C_Read... [17:10:47]Read from MH i2c: E2 0E 00 9A 66 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CD [17:10:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:10:47]wFMCommunicate OK [17:10:47]SAM_PROTO_GetShiftState done [17:10:47]FM_GetShiftState done [17:10:47]opened in 1730075620 [17:10:47]opened+sec_in_day 1730162020 [17:10:47]quantity*price = 60009 [17:10:47]sum+1 = 60010 [17:10:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 251 28.10.2024 17:10 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192703 ФПД: 101955679999230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T171054&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192703&fm=101955679999230&tin=02508201610067®Number=0000000000091776&sum=60009 [17:10:48]StoreToDocumentArchive [17:10:48]shift 543 fd 192703 [17:10:48]save to /storage/0543/doc_00192703 [17:10:48]save last doc name /storage/0543/doc_00192703 to /storage/kkm_last_doc_name [17:10:48]save OK [17:10:48]Clear old archive folders... [17:10:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:48]tlvbuf is 01B6DDB0 [17:10:48]SAM_PROTO_ClearQueue [17:10:48]wFMCommunicate request_size=4 [17:10:48]MH_SAM_APDU [17:10:48]CAPDU: 80 09 00 00 [17:10:48]Write to MH i2c: E2 08 00 A7 66 80 09 00 00 00 00 00 00 7F [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:48]Read from MH i2c: E2 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 03 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 03 00 A7 66 00 90 00 81 [17:10:48]RAPDU: 90 00 [17:10:48]wFMCommunicate OK [17:10:48]SAM_PROTO_ClearQueue done [17:10:48]KKMCreateOFDPacket [17:10:48]OFDProtocolAddRootSTLVToBuf [17:10:48]FM_MakeSignedData [17:10:48]FM_MakeSignedData [17:10:48]SAM_PROTO_SignData [17:10:48]wFMCommunicate request_size=4 [17:10:48]MH_SAM_APDU [17:10:48]CAPDU: 80 0D 01 02 [17:10:48]Write to MH i2c: E2 08 00 A8 66 80 0D 01 02 00 00 00 00 87 [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:48]Read from MH i2c: E2 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 03 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: E2 03 00 A8 66 00 90 00 82 [17:10:48]RAPDU: 90 00 [17:10:48]wFMCommunicate OK [17:10:48]wFMCommunicate request_size=255 [17:10:48]MH_SAM_APDU [17:10:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 9E C5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF F0 02 00 35 04 06 00 5C [17:10:48]Write to MH i2c: E2 02 01 A9 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 9E C5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF F0 02 00 35 04 06 00 5C 00 00 1C [17:10:49]Write i2c OK [17:10:49]MH_I2C_Read... [17:10:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:49]Read from MH i2c: E2 [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: E2 03 00 [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: E2 03 00 A9 66 00 90 00 83 [17:10:49]RAPDU: 90 00 [17:10:49]wFMCommunicate OK [17:10:49]wFMCommunicate request_size=10 [17:10:49]MH_SAM_APDU [17:10:49]CAPDU: 80 0D 02 02 05 BA 68 16 D4 FE [17:10:49]Write to MH i2c: E2 0D 00 AA 66 80 0D 02 02 05 00 BA 68 16 D4 FE 00 00 9E [17:10:49]Write i2c OK [17:10:49]MH_I2C_Read... [17:10:49]OFD Sender: No OFD packet to send [17:10:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:49]Read from MH i2c: E2 [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: E2 03 00 [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: E2 03 00 AA 66 00 90 00 84 [17:10:49]RAPDU: 90 00 [17:10:49]wFMCommunicate OK [17:10:49]wFMCommunicate request_size=4 [17:10:49]MH_SAM_APDU [17:10:49]CAPDU: 80 0D 03 02 [17:10:49]Write to MH i2c: E2 08 00 AB 66 80 0D 03 02 00 00 00 00 8C [17:10:49]Write i2c OK [17:10:49]MH_I2C_Read... [17:10:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:49]Read from MH i2c: E2 [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: E2 0B 00 [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: E2 0B 00 AB 66 00 88 49 FE 51 00 0F 65 E0 90 00 01 [17:10:49]RAPDU: 88 49 FE 51 00 0F 65 E0 90 00 [17:10:49]wFMCommunicate OK [17:10:49]SAM_PROTO_SignData done [17:10:49]FM_MakeSignedData done [17:10:49]CreateOFDProtocolMessage [17:10:49]wFMCommunicate request_size=4 [17:10:49]MH_SAM_APDU [17:10:49]CAPDU: 80 11 00 00 [17:10:49]Write to MH i2c: E2 08 00 AC 66 80 11 00 00 00 00 00 00 8C [17:10:49]Write i2c OK [17:10:49]MH_I2C_Read... [17:10:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:49]Read from MH i2c: E2 [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: E2 17 00 [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: E2 17 00 AC 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [17:10:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:10:49]wFMCommunicate OK [17:10:49]CreateOFDProtocolMessage done [17:10:49]OFDSenderStorePacket 192703 [17:10:49]StoreOFDPacket docnum=192703 [17:10:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 68 FF 07 01 D9 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 9E C5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF F0 02 00 35 04 06 00 5C BA 68 16 D4 FE 88 49 FE 51 00 0F 65 E0 [17:10:49]CheckFolder [17:10:49]dirname=/storage/ofd_packets [17:10:49]CheckFolder done [17:10:49]ProducePacketName [17:10:49]name=ofd_packets/00192703 [17:10:49]NVStorageSaveData ofd_packets/00192703 [17:10:49]File name is /storage/ofd_packets/00192703 [17:10:49]Write 301 bytes [17:10:49]NVStorageSaveData done [17:10:49]OFDSenderStorePacket done [17:10:49]KKMCreateOFDPacket done [17:10:49]NVStorageSaveData kkm_last_timestamp [17:10:49]File name is /storage/kkm_last_timestamp [17:10:49]Write 4 bytes [17:10:49]NVStorageSaveData done [17:10:49]ExternCall_PrintAddStr [17:10:49]wPrintStart [17:10:49]Write to MH i2c: 01 00 00 AD 66 13 [17:10:49]Write i2c OK [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: 01 [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: 01 07 00 [17:10:49]MH_I2C_Read... [17:10:49]Read from MH i2c: 01 07 00 AD 66 00 00 00 00 00 FF 0F 28 [17:10:49]RasterBufferAndPrint [17:10:49]line Счет N : (1)32030 [17:10:49]line ИНН: 02508201610067 [17:10:49]line Контрольно-Кассовый Чек [17:10:49]line ПРОДАЖА [17:10:49]line ТРК (МРК, ГНК) : 21 [17:10:49]line Товар: 2710124130 [17:10:49]line Аи-92-К-5 [17:10:49]line 8.970 * 66.90 [17:10:49]line = 600.09 [17:10:49]line НДС 12% НСП 1% [17:10:49]line > о реализуемом товаре [17:10:49]line ИТОГО: 600.09 [17:10:49]line НСП 1% : 5.31 [17:10:49]line НДС 12% : 63.73 [17:10:49]line Наличными: 0.00 [17:10:49]line Безнал.: 600.09 [17:10:49]line Место: АЗС № 170 "Партнер Нефть" [17:10:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:10:49]line СНО: Общий режим [17:10:49]line Чек 251 28.10.2024 17:10 [17:10:49]line Смена: 543 ФФД: 1.0 [17:10:49]line ЗНМ: 0300000110 [17:10:49]line РНМ: 0000000000091776 [17:10:49]line Версия ККМ: 001 [17:10:49]line Платежная система: Кыргызкоммерцбанк [17:10:49]line ФМ: 0000000000871754 [17:10:49]line ФД: 192703 [17:10:49]line ФПД: 101955679999230 [17:10:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T171054&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192703&fm=101955679999230&tin=02508201610067®Number=0000000000091776&sum=60009 [17:10:49]OFD Sender: Processing packet 192703 [packets to send 75, broken 74] [17:10:49]ProducePacketName [17:10:49]name=ofd_packets/00192703 [17:10:49]OFD Sender: To server: pG, [17:10:49]CommunicateWithHost lk.salyk.kg:30040 [17:10:49]ConnectInit lk.salyk.kg [17:10:49]written 0, free lines is 4095 [17:10:49]Connected sock=7 [17:10:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 68 FF 07 01 D9 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 9E C5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF F0 02 00 35 04 06 00 5C BA 68 16 D4 FE 88 49 FE 51 00 0F 65 E0 [17:10:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7B B0 47 00 BF 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF F0 02 00 F4 03 04 00 61 6A 1F 67 B6 04 01 00 00 E7 00 7E 9E 89 26 12 E5 [17:10:50]CommunicateWithHost err = 0 [17:10:50]CheckOFDResponse [17:10:50]1017 (14) - 77093643461234 [17:10:50]1041 (16) - 0000000000871754 [17:10:50]1040 (4) - 192703 [17:10:50]1012 (4) - 28.10.2024 10:41 [17:10:50]1206 (1) - 0 [17:10:50]OFD Sender: Remove packet 192703 [17:10:50]ProducePacketName [17:10:50]name=ofd_packets/00192703 [17:10:50]NVStorageDeleteData [17:10:50]Write to MH i2c: 01 00 00 D7 66 3D [17:10:50]Write i2c OK [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: 01 [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: 01 07 00 [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: 01 07 00 D7 66 00 00 00 00 00 DE 0C 2E [17:10:50]RasterBufferAndPrint [17:10:50]line [17:10:50]line [17:10:50]line [17:10:50]line [17:10:50]line [17:10:50]written 0, free lines is 3300 [17:10:50]MH_Cut [17:10:50]Write to MH i2c: D1 01 00 DE 66 01 16 [17:10:50]Write i2c OK [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: D1 [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: D1 01 00 [17:10:50]MH_I2C_Read... [17:10:50]Read from MH i2c: D1 01 00 DE 66 00 15 [17:10:50]Write to MH i2c: 01 00 00 DF 66 45 [17:10:50]Write i2c OK [17:10:50]MH_I2C_Read... [17:10:50]OFD Sender: No OFD packet to send [17:10:50]*** Cut start [17:10:50]*** Partial cut [17:10:50]*** CUTSNS_PIN = 1 [17:10:51]*** CUTSNS_PIN = 0 [17:10:51]*** Brake cut motor [17:10:51]Read from MH i2c: 01 [17:10:51]MH_I2C_Read... [17:10:51]*** Stop cut motor [17:10:51]*** Cut end [17:10:51]Read from MH i2c: 01 07 00 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: 01 07 00 DF 66 00 00 00 00 00 FF 0F 5A [17:10:51]process_action close_receipt done [17:10:51]requested_data is exist [17:10:51]produce_requested_data [17:10:51]requested_item fm.sn is exist - process it [17:10:51]wFMCommunicate request_size=4 [17:10:51]MH_SAM_APDU [17:10:51]CAPDU: 80 11 00 00 [17:10:51]Write to MH i2c: E2 08 00 E0 66 80 11 00 00 00 00 00 00 C0 [17:10:51]Write i2c OK [17:10:51]MH_I2C_Read... [17:10:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:51]Read from MH i2c: E2 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 17 00 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 17 00 E0 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 13 [17:10:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:10:51]wFMCommunicate OK [17:10:51]requested_item fd.num is exist - process it [17:10:51]SAM_PROTO_GetFieldsCounters [17:10:51]wFMCommunicate request_size=4 [17:10:51]MH_SAM_APDU [17:10:51]CAPDU: 80 13 00 00 [17:10:51]Write to MH i2c: E2 08 00 E1 66 80 13 00 00 00 00 00 00 C3 [17:10:51]Write i2c OK [17:10:51]MH_I2C_Read... [17:10:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:51]Read from MH i2c: E2 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 62 00 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 62 00 E1 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BF F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [17:10:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BF F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:51]wFMCommunicate OK [17:10:51]SAM_PROTO_GetFieldsCounters done [17:10:51]requested_item shift.num is exist - process it [17:10:51]requested_item shift.opened is exist - process it [17:10:51]req_shift_opened [17:10:51]FM_GetShiftState [17:10:51]SAM_PROTO_GetShiftState [17:10:51]wFMCommunicate request_size=4 [17:10:51]MH_SAM_APDU [17:10:51]CAPDU: 80 13 01 00 [17:10:51]Write to MH i2c: E2 08 00 E2 66 80 13 01 00 00 00 00 00 C5 [17:10:51]Write i2c OK [17:10:51]MH_I2C_Read... [17:10:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:51]Read from MH i2c: E2 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 0E 00 [17:10:51]MH_I2C_Read... [17:10:51]Read from MH i2c: E2 0E 00 E2 66 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 15 [17:10:51]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:10:51]wFMCommunicate OK [17:10:51]SAM_PROTO_GetShiftState done [17:10:51]FM_GetShiftState done [17:10:51]req_shift_opened done [17:10:51]requested_item shift.open_date is exist - process it [17:10:51]req_shift_open_date [17:10:51]req_shift_open_date done [17:10:51]produce_requested_data done [17:10:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192703,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:10:51]process_action_free close_receipt [17:10:51]json_value_free [17:10:51]json_value_free done [17:10:51]process_json_proto returns [17:10:51]Send response to host [17:10:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192703,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:10:51]free response buf [17:10:51]execute_script done [17:10:51]execute_script returns [17:10:51]free content buf [17:10:51]Sock 6.Close socket [17:10:51]Sock 6.Thread stoped [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:47]accept exits with 5 [17:11:47]New connection [17:11:47]New thread 3066563940 created [17:11:47]Thread 3066707300 joined [17:11:47]Waiting for new connection... [17:11:47] Sock 5.Parse request [17:11:47]Sock 5.Check first char [17:11:47]Sock 5.First char is OK [17:11:47]request: POST /json_proto HTTP/1.0 [17:11:47]Method: POST [17:11:47]URL: /json_proto [17:11:47]Method is POST - this is cgi request [17:11:47]url: /json_proto [17:11:47]query_string will be loaded in cgi processing [17:11:47]execute_cgi json_proto POST (null) [17:11:47]execute_cgi path=json_proto method=POST [17:11:47]POST find Content-Length [17:11:47]Host: 172.17.63.131:8080 [17:11:47]Content-Length: 678 [17:11:47]Content-Type: application/json [17:11:47] [17:11:47]POST finish read [17:11:47]Found Content-Length = 678 [17:11:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:47]execute_script... [17:11: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)32029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:47]POST & json_proto [17:11:47]process_json_proto [17:11:47]json parsed OK: [17:11:47]protocol is kg_v1.0 [17:11:47]action value=close_receipt [17:11:47]process_action close_receipt [17:11:47]cmd_close_receipt [17:11:47]MH_GetDate [17:11:47]Write to MH i2c: F0 00 00 E3 66 38 [17:11:47]Write i2c OK [17:11:47]MH_I2C_Read... [17:11:47]Read from MH i2c: F0 [17:11:47]MH_I2C_Read... [17:11:47]Read from MH i2c: F0 09 00 [17:11:47]MH_I2C_Read... [17:11:47]Read from MH i2c: F0 09 00 E3 66 00 DA C5 1F 67 22 05 6E 64 5F [17:11:47]GetLastDocTimeStamp 1730135454 [17:11:47]current date 1730135514 [17:11:47]FM_GetShiftState [17:11:47]SAM_PROTO_GetShiftState [17:11:47]wFMCommunicate request_size=4 [17:11:47]MH_SAM_APDU [17:11:47]CAPDU: 80 13 01 00 [17:11:47]Write to MH i2c: E2 08 00 E4 66 80 13 01 00 00 00 00 00 C7 [17:11:47]Write i2c OK [17:11:47]MH_I2C_Read... [17:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:47]Read from MH i2c: E2 [17:11:47]MH_I2C_Read... [17:11:47]Read from MH i2c: E2 0E 00 [17:11:47]MH_I2C_Read... [17:11:47]Read from MH i2c: E2 0E 00 E4 66 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 17 [17:11:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:11:47]wFMCommunicate OK [17:11:47]SAM_PROTO_GetShiftState done [17:11:47]FM_GetShiftState done [17:11:47]opened in 1730075620 [17:11:47]opened+sec_in_day 1730162020 [17:11:47]quantity*price = 200025 [17:11:47]sum+1 = 200026 [17:11:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 252 28.10.2024 17:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192704 ФПД: 21273936801637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T171154&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192704&fm=21273936801637&tin=02508201610067®Number=0000000000091776&sum=200000 [17:11:48]StoreToDocumentArchive [17:11:48]shift 543 fd 192704 [17:11:48]save to /storage/0543/doc_00192704 [17:11:48]save last doc name /storage/0543/doc_00192704 to /storage/kkm_last_doc_name [17:11:48]save OK [17:11:48]Clear old archive folders... [17:11:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:11:48]tlvbuf is 01999180 [17:11:48]SAM_PROTO_ClearQueue [17:11:48]wFMCommunicate request_size=4 [17:11:48]MH_SAM_APDU [17:11:48]CAPDU: 80 09 00 00 [17:11:48]Write to MH i2c: E2 08 00 F1 66 80 09 00 00 00 00 00 00 C9 [17:11:48]Write i2c OK [17:11:48]MH_I2C_Read... [17:11:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:48]Read from MH i2c: E2 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 03 00 [17:11:48]MH_I2C_Read... [17:11:48]Read from MH i2c: E2 03 00 F1 66 00 90 00 CB [17:11:48]RAPDU: 90 00 [17:11:48]wFMCommunicate OK [17:11:48]SAM_PROTO_ClearQueue done [17:11:48]KKMCreateOFDPacket [17:11:48]OFDProtocolAddRootSTLVToBuf [17:11:48]FM_MakeSignedData [17:11:48]FM_MakeSignedData [17:11:48]SAM_PROTO_SignData [17:11:48]wFMCommunicate request_size=4 [17:11:48]MH_SAM_APDU [17:11:48]CAPDU: 80 0D 01 02 [17:11:48]Write to MH i2c: E2 08 00 F2 66 80 0D 01 02 00 00 00 00 D1 [17:11:48]Write i2c OK [17:11:48]MH_I2C_Read... [17:11:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:49]Read from MH i2c: E2 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: E2 03 00 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: E2 03 00 F2 66 00 90 00 CC [17:11:49]RAPDU: 90 00 [17:11:49]wFMCommunicate OK [17:11:49]wFMCommunicate request_size=255 [17:11:49]MH_SAM_APDU [17:11:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 DA C5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 F0 02 00 35 04 06 00 13 59 39 72 [17:11:49]Write to MH i2c: E2 02 01 F3 66 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 DA C5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 F0 02 00 35 04 06 00 13 59 39 72 00 00 54 [17:11:49]Write i2c OK [17:11:49]MH_I2C_Read... [17:11:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:49]Read from MH i2c: E2 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: E2 03 00 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: E2 03 00 F3 66 00 90 00 CD [17:11:49]RAPDU: 90 00 [17:11:49]wFMCommunicate OK [17:11:49]wFMCommunicate request_size=7 [17:11:49]MH_SAM_APDU [17:11:49]CAPDU: 80 0D 02 02 02 2F 65 [17:11:49]Write to MH i2c: E2 0A 00 F4 66 80 0D 02 02 02 00 2F 65 00 00 6C [17:11:49]Write i2c OK [17:11:49]MH_I2C_Read... [17:11:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:49]Read from MH i2c: E2 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: E2 03 00 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: E2 03 00 F4 66 00 90 00 CE [17:11:49]RAPDU: 90 00 [17:11:49]wFMCommunicate OK [17:11:49]wFMCommunicate request_size=4 [17:11:49]MH_SAM_APDU [17:11:49]CAPDU: 80 0D 03 02 [17:11:49]Write to MH i2c: E2 08 00 F5 66 80 0D 03 02 00 00 00 00 D6 [17:11:49]Write i2c OK [17:11:49]MH_I2C_Read... [17:11:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:49]Read from MH i2c: E2 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: E2 0B 00 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: E2 0B 00 F5 66 00 B9 74 EA 56 E6 0E CE D5 90 00 DB [17:11:49]RAPDU: B9 74 EA 56 E6 0E CE D5 90 00 [17:11:49]wFMCommunicate OK [17:11:49]SAM_PROTO_SignData done [17:11:49]FM_MakeSignedData done [17:11:49]CreateOFDProtocolMessage [17:11:49]wFMCommunicate request_size=4 [17:11:49]MH_SAM_APDU [17:11:49]CAPDU: 80 11 00 00 [17:11:49]Write to MH i2c: E2 08 00 F6 66 80 11 00 00 00 00 00 00 D6 [17:11:49]Write i2c OK [17:11:49]MH_I2C_Read... [17:11:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:49]Read from MH i2c: E2 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: E2 17 00 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: E2 17 00 F6 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 29 [17:11:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:11:49]wFMCommunicate OK [17:11:49]CreateOFDProtocolMessage done [17:11:49]OFDSenderStorePacket 192704 [17:11:49]StoreOFDPacket docnum=192704 [17:11:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 59 10 04 01 A3 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 DA C5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 F0 02 00 35 04 06 00 13 59 39 72 2F 65 B9 74 EA 56 E6 0E CE D5 [17:11:49]CheckFolder [17:11:49]dirname=/storage/ofd_packets [17:11:49]CheckFolder done [17:11:49]ProducePacketName [17:11:49]name=ofd_packets/00192704 [17:11:49]NVStorageSaveData ofd_packets/00192704 [17:11:49]File name is /storage/ofd_packets/00192704 [17:11:49]Write 298 bytes [17:11:49]NVStorageSaveData done [17:11:49]OFDSenderStorePacket done [17:11:49]KKMCreateOFDPacket done [17:11:49]NVStorageSaveData kkm_last_timestamp [17:11:49]File name is /storage/kkm_last_timestamp [17:11:49]Write 4 bytes [17:11:49]NVStorageSaveData done [17:11:49]ExternCall_PrintAddStr [17:11:49]wPrintStart [17:11:49]Write to MH i2c: 01 00 00 F7 66 5D [17:11:49]Write i2c OK [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: 01 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: 01 07 00 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: 01 07 00 F7 66 00 00 00 00 00 FF 0F 72 [17:11:49]RasterBufferAndPrint [17:11:49]line Счет N : (1)32029 [17:11:49]line ИНН: 02508201610067 [17:11:49]line Контрольно-Кассовый Чек [17:11:49]line ПРОДАЖА [17:11:49]line ТРК (МРК, ГНК) : 11 [17:11:49]line Товар: 2710194210 [17:11:49]line ДТ-К-5 [17:11:49]line 26.250 * 76.20 [17:11:49]line = 2000.25 [17:11:49]line НДС 12% НСП 1% [17:11:49]line > о реализуемом товаре [17:11:49]line ОКРУГЛЕНИЕ: -0.25 [17:11:49]line ИТОГО: 2000.00 [17:11:49]line Внесено: 2000.00 [17:11:49]line СДАЧА: 0.00 [17:11:49]line НСП 1% : 17.70 [17:11:49]line НДС 12% : 212.42 [17:11:49]line Наличными: 2000.00 [17:11:49]line Безнал.: 0.00 [17:11:49]line Место: АЗС № 170 "Партнер Нефть" [17:11:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:11:49]line СНО: Общий режим [17:11:49]line Чек 252 28.10.2024 17:11 [17:11:49]line Смена: 543 ФФД: 1.0 [17:11:49]line ЗНМ: 0300000110 [17:11:49]line РНМ: 0000000000091776 [17:11:49]line Версия ККМ: 001 [17:11:49]line ФМ: 0000000000871754 [17:11:49]line ФД: 192704 [17:11:49]line ФПД: 21273936801637 [17:11:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T171154&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192704&fm=21273936801637&tin=02508201610067®Number=0000000000091776&sum=200000 [17:11:49]OFD Sender: Processing packet 192704 [packets to send 75, broken 74] [17:11:49]ProducePacketName [17:11:49]name=ofd_packets/00192704 [17:11:49]OFD Sender: To server: pG, [17:11:49]CommunicateWithHost lk.salyk.kg:30040 [17:11:49]ConnectInit lk.salyk.kg [17:11:49]written 0, free lines is 4095 [17:11:49]Connected sock=7 [17:11:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 59 10 04 01 A3 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 DA C5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 F0 02 00 35 04 06 00 13 59 39 72 2F 65 B9 74 EA 56 E6 0E CE D5 [17:11:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EE 43 47 00 E3 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 F0 02 00 F4 03 04 00 9D 6A 1F 67 B6 04 01 00 00 D0 71 81 D9 67 B7 D9 65 [17:11:50]CommunicateWithHost err = 0 [17:11:50]CheckOFDResponse [17:11:50]1017 (14) - 77093643461234 [17:11:50]1041 (16) - 0000000000871754 [17:11:50]1040 (4) - 192704 [17:11:50]1012 (4) - 28.10.2024 10:42 [17:11:50]1206 (1) - 0 [17:11:50]OFD Sender: Remove packet 192704 [17:11:50]ProducePacketName [17:11:50]name=ofd_packets/00192704 [17:11:50]NVStorageDeleteData [17:11:50]Write to MH i2c: 01 00 00 22 67 89 [17:11:50]Write i2c OK [17:11:50]MH_I2C_Read... [17:11:50]Read from MH i2c: 01 [17:11:50]MH_I2C_Read... [17:11:50]Read from MH i2c: 01 07 00 [17:11:50]MH_I2C_Read... [17:11:50]Read from MH i2c: 01 07 00 22 67 00 00 00 00 00 CD 0C 69 [17:11:50]RasterBufferAndPrint [17:11:50]line [17:11:50]line [17:11:50]line [17:11:50]line [17:11:50]line [17:11:50]written 0, free lines is 3282 [17:11:50]MH_Cut [17:11:50]Write to MH i2c: D1 01 00 29 67 01 62 [17:11:50]Write i2c OK [17:11:50]MH_I2C_Read... [17:11:50]Read from MH i2c: D1 [17:11:50]MH_I2C_Read... [17:11:50]Read from MH i2c: D1 01 00 [17:11:50]MH_I2C_Read... [17:11:50]Read from MH i2c: D1 01 00 29 67 00 61 [17:11:50]Write to MH i2c: 01 00 00 2A 67 91 [17:11:50]Write i2c OK [17:11:50]MH_I2C_Read... [17:11:50]OFD Sender: No OFD packet to send [17:11:51]*** Cut start [17:11:51]*** Partial cut [17:11:51]*** CUTSNS_PIN = 1 [17:11:51]*** CUTSNS_PIN = 0 [17:11:51]*** Brake cut motor [17:11:51]Read from MH i2c: 01 [17:11:51]MH_I2C_Read... [17:11:51]*** Stop cut motor [17:11:51]*** Cut end [17:11:51]Read from MH i2c: 01 07 00 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: 01 07 00 2A 67 00 00 00 00 00 FF 0F A6 [17:11:51]process_action close_receipt done [17:11:51]requested_data is exist [17:11:51]produce_requested_data [17:11:51]requested_item fm.sn is exist - process it [17:11:51]wFMCommunicate request_size=4 [17:11:51]MH_SAM_APDU [17:11:51]CAPDU: 80 11 00 00 [17:11:51]Write to MH i2c: E2 08 00 2B 67 80 11 00 00 00 00 00 00 0C [17:11:51]Write i2c OK [17:11:51]MH_I2C_Read... [17:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:51]Read from MH i2c: E2 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 17 00 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 17 00 2B 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5F [17:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:11:51]wFMCommunicate OK [17:11:51]requested_item fd.num is exist - process it [17:11:51]SAM_PROTO_GetFieldsCounters [17:11:51]wFMCommunicate request_size=4 [17:11:51]MH_SAM_APDU [17:11:51]CAPDU: 80 13 00 00 [17:11:51]Write to MH i2c: E2 08 00 2C 67 80 13 00 00 00 00 00 00 0F [17:11:51]Write i2c OK [17:11:51]MH_I2C_Read... [17:11:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:51]Read from MH i2c: E2 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 62 00 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 62 00 2C 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C0 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [17:11:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C0 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:51]wFMCommunicate OK [17:11:51]SAM_PROTO_GetFieldsCounters done [17:11:51]requested_item shift.num is exist - process it [17:11:51]requested_item shift.opened is exist - process it [17:11:51]req_shift_opened [17:11:51]FM_GetShiftState [17:11:51]SAM_PROTO_GetShiftState [17:11:51]wFMCommunicate request_size=4 [17:11:51]MH_SAM_APDU [17:11:51]CAPDU: 80 13 01 00 [17:11:51]Write to MH i2c: E2 08 00 2D 67 80 13 01 00 00 00 00 00 11 [17:11:51]Write i2c OK [17:11:51]MH_I2C_Read... [17:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:51]Read from MH i2c: E2 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 0E 00 [17:11:51]MH_I2C_Read... [17:11:51]Read from MH i2c: E2 0E 00 2D 67 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 61 [17:11:51]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:11:51]wFMCommunicate OK [17:11:51]SAM_PROTO_GetShiftState done [17:11:51]FM_GetShiftState done [17:11:51]req_shift_opened done [17:11:51]requested_item shift.open_date is exist - process it [17:11:51]req_shift_open_date [17:11:51]req_shift_open_date done [17:11:51]produce_requested_data done [17:11:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192704,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:11:51]process_action_free close_receipt [17:11:51]json_value_free [17:11:51]json_value_free done [17:11:51]process_json_proto returns [17:11:51]Send response to host [17:11:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192704,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:11:51]free response buf [17:11:51]execute_script done [17:11:51]execute_script returns [17:11:51]free content buf [17:11:51]Sock 5.Close socket [17:11:51]Sock 5.Thread stoped [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:13]accept exits with 6 [17:12:13]New connection [17:12:13]New thread 3066707300 created [17:12:13]Thread 3066563940 joined [17:12:13]Waiting for new connection... [17:12:13] Sock 6.Parse request [17:12:13]Sock 6.Check first char [17:12:13]Sock 6.First char is OK [17:12:13]request: POST /json_proto HTTP/1.0 [17:12:13]Method: POST [17:12:13]URL: /json_proto [17:12:13]Method is POST - this is cgi request [17:12:13]url: /json_proto [17:12:13]query_string will be loaded in cgi processing [17:12:13]execute_cgi json_proto POST (null) [17:12:13]execute_cgi path=json_proto method=POST [17:12:13]POST find Content-Length [17:12:13]Host: 172.17.63.131:8080 [17:12:13]Content-Length: 676 [17:12:13]Content-Type: application/json [17:12:13] [17:12:13]POST finish read [17:12:13]Found Content-Length = 676 [17:12:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:13]execute_script... [17:12: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)32031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:13]POST & json_proto [17:12:13]process_json_proto [17:12:13]json parsed OK: [17:12:13]protocol is kg_v1.0 [17:12:13]action value=close_receipt [17:12:13]process_action close_receipt [17:12:13]cmd_close_receipt [17:12:13]MH_GetDate [17:12:13]Write to MH i2c: F0 00 00 2E 67 84 [17:12:13]Write i2c OK [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: F0 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: F0 09 00 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: F0 09 00 2E 67 00 F3 C5 1F 67 22 05 6E 64 C4 [17:12:13]GetLastDocTimeStamp 1730135514 [17:12:13]current date 1730135539 [17:12:13]FM_GetShiftState [17:12:13]SAM_PROTO_GetShiftState [17:12:13]wFMCommunicate request_size=4 [17:12:13]MH_SAM_APDU [17:12:13]CAPDU: 80 13 01 00 [17:12:13]Write to MH i2c: E2 08 00 2F 67 80 13 01 00 00 00 00 00 13 [17:12:13]Write i2c OK [17:12:13]MH_I2C_Read... [17:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:13]Read from MH i2c: E2 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 0E 00 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 0E 00 2F 67 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 63 [17:12:13]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:12:13]wFMCommunicate OK [17:12:13]SAM_PROTO_GetShiftState done [17:12:13]FM_GetShiftState done [17:12:13]opened in 1730075620 [17:12:13]opened+sec_in_day 1730162020 [17:12:13]quantity*price = 50041 [17:12:13]sum+1 = 50042 [17:12:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 253 28.10.2024 17:12 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192705 ФПД: 193128802770871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T171219&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192705&fm=193128802770871&tin=02508201610067®Number=0000000000091776&sum=50000 [17:12:14]StoreToDocumentArchive [17:12:14]shift 543 fd 192705 [17:12:14]save to /storage/0543/doc_00192705 [17:12:14]save last doc name /storage/0543/doc_00192705 to /storage/kkm_last_doc_name [17:12:14]save OK [17:12:14]Clear old archive folders... [17:12:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:14]tlvbuf is 01993520 [17:12:14]SAM_PROTO_ClearQueue [17:12:14]wFMCommunicate request_size=4 [17:12:14]MH_SAM_APDU [17:12:14]CAPDU: 80 09 00 00 [17:12:14]Write to MH i2c: E2 08 00 3C 67 80 09 00 00 00 00 00 00 15 [17:12:14]Write i2c OK [17:12:14]MH_I2C_Read... [17:12:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:14]Read from MH i2c: E2 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 03 00 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 03 00 3C 67 00 90 00 17 [17:12:14]RAPDU: 90 00 [17:12:14]wFMCommunicate OK [17:12:14]SAM_PROTO_ClearQueue done [17:12:14]KKMCreateOFDPacket [17:12:14]OFDProtocolAddRootSTLVToBuf [17:12:14]FM_MakeSignedData [17:12:14]FM_MakeSignedData [17:12:14]SAM_PROTO_SignData [17:12:14]wFMCommunicate request_size=4 [17:12:14]MH_SAM_APDU [17:12:14]CAPDU: 80 0D 01 02 [17:12:14]Write to MH i2c: E2 08 00 3D 67 80 0D 01 02 00 00 00 00 1D [17:12:14]Write i2c OK [17:12:14]MH_I2C_Read... [17:12:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:14]Read from MH i2c: E2 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 03 00 [17:12:14]MH_I2C_Read... [17:12:14]Read from MH i2c: E2 03 00 3D 67 00 90 00 18 [17:12:14]RAPDU: 90 00 [17:12:14]wFMCommunicate OK [17:12:14]wFMCommunicate request_size=255 [17:12:14]MH_SAM_APDU [17:12:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 F3 C5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 F0 02 00 35 04 06 00 AF [17:12:14]Write to MH i2c: E2 02 01 3E 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 F3 C5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 F0 02 00 35 04 06 00 AF 00 00 6F [17:12:14]Write i2c OK [17:12:14]MH_I2C_Read... [17:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:15]Read from MH i2c: E2 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 03 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 03 00 3E 67 00 90 00 19 [17:12:15]RAPDU: 90 00 [17:12:15]wFMCommunicate OK [17:12:15]wFMCommunicate request_size=10 [17:12:15]MH_SAM_APDU [17:12:15]CAPDU: 80 0D 02 02 05 A6 4D AF 5F B7 [17:12:15]Write to MH i2c: E2 0D 00 3F 67 80 0D 02 02 05 00 A6 4D AF 5F B7 00 00 E2 [17:12:15]Write i2c OK [17:12:15]MH_I2C_Read... [17:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:15]Read from MH i2c: E2 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 03 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 03 00 3F 67 00 90 00 1A [17:12:15]RAPDU: 90 00 [17:12:15]wFMCommunicate OK [17:12:15]wFMCommunicate request_size=4 [17:12:15]MH_SAM_APDU [17:12:15]CAPDU: 80 0D 03 02 [17:12:15]Write to MH i2c: E2 08 00 40 67 80 0D 03 02 00 00 00 00 22 [17:12:15]Write i2c OK [17:12:15]MH_I2C_Read... [17:12:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:15]Read from MH i2c: E2 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 0B 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 0B 00 40 67 00 C1 82 35 39 03 CA 69 05 90 00 0F [17:12:15]RAPDU: C1 82 35 39 03 CA 69 05 90 00 [17:12:15]wFMCommunicate OK [17:12:15]SAM_PROTO_SignData done [17:12:15]FM_MakeSignedData done [17:12:15]CreateOFDProtocolMessage [17:12:15]wFMCommunicate request_size=4 [17:12:15]MH_SAM_APDU [17:12:15]CAPDU: 80 11 00 00 [17:12:15]Write to MH i2c: E2 08 00 41 67 80 11 00 00 00 00 00 00 22 [17:12:15]Write i2c OK [17:12:15]MH_I2C_Read... [17:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:15]Read from MH i2c: E2 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 17 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: E2 17 00 41 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 75 [17:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:12:15]wFMCommunicate OK [17:12:15]CreateOFDProtocolMessage done [17:12:15]OFDSenderStorePacket 192705 [17:12:15]StoreOFDPacket docnum=192705 [17:12:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 31 07 01 53 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 F3 C5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 F0 02 00 35 04 06 00 AF A6 4D AF 5F B7 C1 82 35 39 03 CA 69 05 [17:12:15]CheckFolder [17:12:15]dirname=/storage/ofd_packets [17:12:15]CheckFolder done [17:12:15]ProducePacketName [17:12:15]name=ofd_packets/00192705 [17:12:15]NVStorageSaveData ofd_packets/00192705 [17:12:15]File name is /storage/ofd_packets/00192705 [17:12:15]Write 301 bytes [17:12:15]NVStorageSaveData done [17:12:15]OFDSenderStorePacket done [17:12:15]KKMCreateOFDPacket done [17:12:15]NVStorageSaveData kkm_last_timestamp [17:12:15]File name is /storage/kkm_last_timestamp [17:12:15]Write 4 bytes [17:12:15]NVStorageSaveData done [17:12:15]ExternCall_PrintAddStr [17:12:15]wPrintStart [17:12:15]Write to MH i2c: 01 00 00 42 67 A9 [17:12:15]Write i2c OK [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: 01 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: 01 07 00 [17:12:15]MH_I2C_Read... [17:12:15]Read from MH i2c: 01 07 00 42 67 00 00 00 00 00 FF 0F BE [17:12:15]RasterBufferAndPrint [17:12:15]line Счет N : (1)32031 [17:12:15]line ИНН: 02508201610067 [17:12:15]line Контрольно-Кассовый Чек [17:12:15]line ПРОДАЖА [17:12:15]line ТРК (МРК, ГНК) : 21 [17:12:15]line Товар: 2710124130 [17:12:15]line Аи-92-К-5 [17:12:15]line 7.480 * 66.90 [17:12:15]line = 500.41 [17:12:15]line НДС 12% НСП 1% [17:12:15]line > о реализуемом товаре [17:12:15]line ОКРУГЛЕНИЕ: -0.41 [17:12:15]line ИТОГО: 500.00 [17:12:15]line Внесено: 500.00 [17:12:15]line СДАЧА: 0.00 [17:12:15]line НСП 1% : 4.43 [17:12:15]line НДС 12% : 53.14 [17:12:15]line Наличными: 500.00 [17:12:15]line Безнал.: 0.00 [17:12:15]line Место: АЗС № 170 "Партнер Нефть" [17:12:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:12:15]line СНО: Общий режим [17:12:15]line Чек 253 28.10.2024 17:12 [17:12:15]line Смена: 543 ФФД: 1.0 [17:12:15]line ЗНМ: 0300000110 [17:12:15]line РНМ: 0000000000091776 [17:12:15]line Версия ККМ: 001 [17:12:15]line ФМ: 0000000000871754 [17:12:15]line ФД: 192705 [17:12:15]line ФПД: 193128802770871 [17:12:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T171219&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192705&fm=193128802770871&tin=02508201610067®Number=0000000000091776&sum=50000 [17:12:15]OFD Sender: Processing packet 192705 [packets to send 75, broken 74] [17:12:15]ProducePacketName [17:12:15]name=ofd_packets/00192705 [17:12:15]OFD Sender: To server: pG, [17:12:15]CommunicateWithHost lk.salyk.kg:30040 [17:12:15]ConnectInit lk.salyk.kg [17:12:15]written 0, free lines is 4095 [17:12:15]Connected sock=7 [17:12:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 31 07 01 53 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 F3 C5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 F0 02 00 35 04 06 00 AF A6 4D AF 5F B7 C1 82 35 39 03 CA 69 05 [17:12:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B8 61 47 00 C2 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 F0 02 00 F4 03 04 00 B7 6A 1F 67 B6 04 01 00 00 60 2C 64 0B 1E 6B B5 6E [17:12:16]CommunicateWithHost err = 0 [17:12:16]CheckOFDResponse [17:12:16]1017 (14) - 77093643461234 [17:12:16]1041 (16) - 0000000000871754 [17:12:16]1040 (4) - 192705 [17:12:16]1012 (4) - 28.10.2024 10:43 [17:12:16]1206 (1) - 0 [17:12:16]OFD Sender: Remove packet 192705 [17:12:16]ProducePacketName [17:12:16]name=ofd_packets/00192705 [17:12:16]NVStorageDeleteData [17:12:16]Write to MH i2c: 01 00 00 6D 67 D4 [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 07 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: 01 07 00 6D 67 00 00 00 00 00 D1 0C B8 [17:12:16]RasterBufferAndPrint [17:12:16]line [17:12:16]line [17:12:16]line [17:12:16]line [17:12:16]line [17:12:16]written 0, free lines is 3289 [17:12:16]MH_Cut [17:12:16]Write to MH i2c: D1 01 00 74 67 01 AD [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: D1 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: D1 01 00 [17:12:16]MH_I2C_Read... [17:12:16]Read from MH i2c: D1 01 00 74 67 00 AC [17:12:16]Write to MH i2c: 01 00 00 75 67 DC [17:12:16]Write i2c OK [17:12:16]MH_I2C_Read... [17:12:16]OFD Sender: No OFD packet to send [17:12:16]*** Cut start [17:12:16]*** Partial cut [17:12:16]*** CUTSNS_PIN = 1 [17:12:16]*** CUTSNS_PIN = 0 [17:12:17]*** Brake cut motor [17:12:17]Read from MH i2c: 01 [17:12:17]MH_I2C_Read... [17:12:17]*** Stop cut motor [17:12:17]*** Cut end [17:12:17]Read from MH i2c: 01 07 00 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: 01 07 00 75 67 00 00 00 00 00 FF 0F F1 [17:12:17]process_action close_receipt done [17:12:17]requested_data is exist [17:12:17]produce_requested_data [17:12:17]requested_item fm.sn is exist - process it [17:12:17]wFMCommunicate request_size=4 [17:12:17]MH_SAM_APDU [17:12:17]CAPDU: 80 11 00 00 [17:12:17]Write to MH i2c: E2 08 00 76 67 80 11 00 00 00 00 00 00 57 [17:12:17]Write i2c OK [17:12:17]MH_I2C_Read... [17:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:17]Read from MH i2c: E2 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: E2 17 00 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: E2 17 00 76 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AA [17:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:12:17]wFMCommunicate OK [17:12:17]requested_item fd.num is exist - process it [17:12:17]SAM_PROTO_GetFieldsCounters [17:12:17]wFMCommunicate request_size=4 [17:12:17]MH_SAM_APDU [17:12:17]CAPDU: 80 13 00 00 [17:12:17]Write to MH i2c: E2 08 00 77 67 80 13 00 00 00 00 00 00 5A [17:12:17]Write i2c OK [17:12:17]MH_I2C_Read... [17:12:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:17]Read from MH i2c: E2 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: E2 62 00 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: E2 62 00 77 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C1 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [17:12:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C1 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:17]wFMCommunicate OK [17:12:17]SAM_PROTO_GetFieldsCounters done [17:12:17]requested_item shift.num is exist - process it [17:12:17]requested_item shift.opened is exist - process it [17:12:17]req_shift_opened [17:12:17]FM_GetShiftState [17:12:17]SAM_PROTO_GetShiftState [17:12:17]wFMCommunicate request_size=4 [17:12:17]MH_SAM_APDU [17:12:17]CAPDU: 80 13 01 00 [17:12:17]Write to MH i2c: E2 08 00 78 67 80 13 01 00 00 00 00 00 5C [17:12:17]Write i2c OK [17:12:17]MH_I2C_Read... [17:12:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:17]Read from MH i2c: E2 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: E2 0E 00 [17:12:17]MH_I2C_Read... [17:12:17]Read from MH i2c: E2 0E 00 78 67 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 AC [17:12:17]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:12:17]wFMCommunicate OK [17:12:17]SAM_PROTO_GetShiftState done [17:12:17]FM_GetShiftState done [17:12:17]req_shift_opened done [17:12:17]requested_item shift.open_date is exist - process it [17:12:17]req_shift_open_date [17:12:17]req_shift_open_date done [17:12:17]produce_requested_data done [17:12:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192705,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:12:17]process_action_free close_receipt [17:12:17]json_value_free [17:12:17]json_value_free done [17:12:17]process_json_proto returns [17:12:17]Send response to host [17:12:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192705,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:12:17]free response buf [17:12:17]execute_script done [17:12:17]execute_script returns [17:12:17]free content buf [17:12:17]Sock 6.Close socket [17:12:17]Sock 6.Thread stoped [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:15]accept exits with 5 [17:13:15]New connection [17:13:15]New thread 3066563940 created [17:13:15]Thread 3066707300 joined [17:13:15]Waiting for new connection... [17:13:15] Sock 5.Parse request [17:13:15]Sock 5.Check first char [17:13:15]Sock 5.First char is OK [17:13:15]request: POST /json_proto HTTP/1.0 [17:13:15]Method: POST [17:13:15]URL: /json_proto [17:13:15]Method is POST - this is cgi request [17:13:15]url: /json_proto [17:13:15]query_string will be loaded in cgi processing [17:13:15]execute_cgi json_proto POST (null) [17:13:15]execute_cgi path=json_proto method=POST [17:13:15]POST find Content-Length [17:13:15]Host: 172.17.63.131:8080 [17:13:15]Content-Length: 676 [17:13:15]Content-Type: application/json [17:13:15] [17:13:15]POST finish read [17:13:15]Found Content-Length = 676 [17:13:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:15]execute_script... [17:13: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)32032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:15]POST & json_proto [17:13:15]process_json_proto [17:13:15]json parsed OK: [17:13:15]protocol is kg_v1.0 [17:13:15]action value=close_receipt [17:13:15]process_action close_receipt [17:13:15]cmd_close_receipt [17:13:15]MH_GetDate [17:13:15]Write to MH i2c: F0 00 00 79 67 CF [17:13:15]Write i2c OK [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: F0 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: F0 09 00 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: F0 09 00 79 67 00 31 C6 1F 67 22 05 6E 64 4E [17:13:15]GetLastDocTimeStamp 1730135539 [17:13:15]current date 1730135601 [17:13:15]FM_GetShiftState [17:13:15]SAM_PROTO_GetShiftState [17:13:15]wFMCommunicate request_size=4 [17:13:15]MH_SAM_APDU [17:13:15]CAPDU: 80 13 01 00 [17:13:15]Write to MH i2c: E2 08 00 7A 67 80 13 01 00 00 00 00 00 5E [17:13:15]Write i2c OK [17:13:15]MH_I2C_Read... [17:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:15]Read from MH i2c: E2 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: E2 0E 00 [17:13:15]MH_I2C_Read... [17:13:15]Read from MH i2c: E2 0E 00 7A 67 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 AE [17:13:15]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:13:15]wFMCommunicate OK [17:13:15]SAM_PROTO_GetShiftState done [17:13:15]FM_GetShiftState done [17:13:15]opened in 1730075620 [17:13:15]opened+sec_in_day 1730162020 [17:13:15]quantity*price = 50041 [17:13:15]sum+1 = 50042 [17:13:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 254 28.10.2024 17:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192706 ФПД: 125553199608714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T171321&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192706&fm=125553199608714&tin=02508201610067®Number=0000000000091776&sum=50000 [17:13:16]StoreToDocumentArchive [17:13:16]shift 543 fd 192706 [17:13:16]save to /storage/0543/doc_00192706 [17:13:16]save last doc name /storage/0543/doc_00192706 to /storage/kkm_last_doc_name [17:13:16]save OK [17:13:16]Clear old archive folders... [17:13:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:16]tlvbuf is 019B8ED0 [17:13:16]SAM_PROTO_ClearQueue [17:13:16]wFMCommunicate request_size=4 [17:13:16]MH_SAM_APDU [17:13:16]CAPDU: 80 09 00 00 [17:13:16]Write to MH i2c: E2 08 00 87 67 80 09 00 00 00 00 00 00 60 [17:13:16]Write i2c OK [17:13:16]MH_I2C_Read... [17:13:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:16]Read from MH i2c: E2 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 03 00 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 03 00 87 67 00 90 00 62 [17:13:16]RAPDU: 90 00 [17:13:16]wFMCommunicate OK [17:13:16]SAM_PROTO_ClearQueue done [17:13:16]KKMCreateOFDPacket [17:13:16]OFDProtocolAddRootSTLVToBuf [17:13:16]FM_MakeSignedData [17:13:16]FM_MakeSignedData [17:13:16]SAM_PROTO_SignData [17:13:16]wFMCommunicate request_size=4 [17:13:16]MH_SAM_APDU [17:13:16]CAPDU: 80 0D 01 02 [17:13:16]Write to MH i2c: E2 08 00 88 67 80 0D 01 02 00 00 00 00 68 [17:13:16]Write i2c OK [17:13:16]MH_I2C_Read... [17:13:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:16]OFD Sender: No OFD packet to send [17:13:16]Read from MH i2c: E2 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 03 00 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 03 00 88 67 00 90 00 63 [17:13:16]RAPDU: 90 00 [17:13:16]wFMCommunicate OK [17:13:16]wFMCommunicate request_size=255 [17:13:16]MH_SAM_APDU [17:13: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 31 C6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 F0 02 00 35 04 06 00 72 [17:13:16]Write to MH i2c: E2 02 01 89 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 31 C6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 F0 02 00 35 04 06 00 72 00 00 BE [17:13:16]Write i2c OK [17:13:16]MH_I2C_Read... [17:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:16]Read from MH i2c: E2 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 03 00 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 03 00 89 67 00 90 00 64 [17:13:16]RAPDU: 90 00 [17:13:16]wFMCommunicate OK [17:13:16]wFMCommunicate request_size=10 [17:13:16]MH_SAM_APDU [17:13:16]CAPDU: 80 0D 02 02 05 30 A1 DC F3 8A [17:13:16]Write to MH i2c: E2 0D 00 8A 67 80 0D 02 02 05 00 30 A1 DC F3 8A 00 00 9F [17:13:16]Write i2c OK [17:13:16]MH_I2C_Read... [17:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:16]Read from MH i2c: E2 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 03 00 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 03 00 8A 67 00 90 00 65 [17:13:16]RAPDU: 90 00 [17:13:16]wFMCommunicate OK [17:13:16]wFMCommunicate request_size=4 [17:13:16]MH_SAM_APDU [17:13:16]CAPDU: 80 0D 03 02 [17:13:16]Write to MH i2c: E2 08 00 8B 67 80 0D 03 02 00 00 00 00 6D [17:13:16]Write i2c OK [17:13:16]MH_I2C_Read... [17:13:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:16]Read from MH i2c: E2 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 0B 00 [17:13:16]MH_I2C_Read... [17:13:16]Read from MH i2c: E2 0B 00 8B 67 00 D0 59 78 66 D2 70 ED 75 90 00 19 [17:13:16]RAPDU: D0 59 78 66 D2 70 ED 75 90 00 [17:13:16]wFMCommunicate OK [17:13:16]SAM_PROTO_SignData done [17:13:16]FM_MakeSignedData done [17:13:16]CreateOFDProtocolMessage [17:13:16]wFMCommunicate request_size=4 [17:13:16]MH_SAM_APDU [17:13:16]CAPDU: 80 11 00 00 [17:13:16]Write to MH i2c: E2 08 00 8C 67 80 11 00 00 00 00 00 00 6D [17:13:16]Write i2c OK [17:13:16]MH_I2C_Read... [17:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:17]Read from MH i2c: E2 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: E2 17 00 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: E2 17 00 8C 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C0 [17:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:13:17]wFMCommunicate OK [17:13:17]CreateOFDProtocolMessage done [17:13:17]OFDSenderStorePacket 192706 [17:13:17]StoreOFDPacket docnum=192706 [17:13:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E5 A5 07 01 C0 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 31 C6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 F0 02 00 35 04 06 00 72 30 A1 DC F3 8A D0 59 78 66 D2 70 ED 75 [17:13:17]CheckFolder [17:13:17]dirname=/storage/ofd_packets [17:13:17]CheckFolder done [17:13:17]ProducePacketName [17:13:17]name=ofd_packets/00192706 [17:13:17]NVStorageSaveData ofd_packets/00192706 [17:13:17]File name is /storage/ofd_packets/00192706 [17:13:17]Write 301 bytes [17:13:17]NVStorageSaveData done [17:13:17]OFDSenderStorePacket done [17:13:17]KKMCreateOFDPacket done [17:13:17]NVStorageSaveData kkm_last_timestamp [17:13:17]File name is /storage/kkm_last_timestamp [17:13:17]Write 4 bytes [17:13:17]NVStorageSaveData done [17:13:17]ExternCall_PrintAddStr [17:13:17]wPrintStart [17:13:17]Write to MH i2c: 01 00 00 8D 67 F4 [17:13:17]Write i2c OK [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: 01 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: 01 07 00 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: 01 07 00 8D 67 00 00 00 00 00 FF 0F 09 [17:13:17]RasterBufferAndPrint [17:13:17]line Счет N : (1)32032 [17:13:17]line ИНН: 02508201610067 [17:13:17]line Контрольно-Кассовый Чек [17:13:17]line ПРОДАЖА [17:13:17]line ТРК (МРК, ГНК) : 12 [17:13:17]line Товар: 2710124130 [17:13:17]line Аи-92-К-5 [17:13:17]line 7.480 * 66.90 [17:13:17]line = 500.41 [17:13:17]line НДС 12% НСП 1% [17:13:17]line > о реализуемом товаре [17:13:17]line ОКРУГЛЕНИЕ: -0.41 [17:13:17]line ИТОГО: 500.00 [17:13:17]line Внесено: 500.00 [17:13:17]line СДАЧА: 0.00 [17:13:17]line НСП 1% : 4.43 [17:13:17]line НДС 12% : 53.14 [17:13:17]line Наличными: 500.00 [17:13:17]line Безнал.: 0.00 [17:13:17]line Место: АЗС № 170 "Партнер Нефть" [17:13:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:13:17]line СНО: Общий режим [17:13:17]line Чек 254 28.10.2024 17:13 [17:13:17]line Смена: 543 ФФД: 1.0 [17:13:17]line ЗНМ: 0300000110 [17:13:17]line РНМ: 0000000000091776 [17:13:17]line Версия ККМ: 001 [17:13:17]line ФМ: 0000000000871754 [17:13:17]line ФД: 192706 [17:13:17]line ФПД: 125553199608714 [17:13:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T171321&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192706&fm=125553199608714&tin=02508201610067®Number=0000000000091776&sum=50000 [17:13:17]OFD Sender: Processing packet 192706 [packets to send 75, broken 74] [17:13:17]ProducePacketName [17:13:17]name=ofd_packets/00192706 [17:13:17]OFD Sender: To server: pG, [17:13:17]CommunicateWithHost lk.salyk.kg:30040 [17:13:17]ConnectInit lk.salyk.kg [17:13:17]written 0, free lines is 4095 [17:13:17]Connected sock=7 [17:13:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E5 A5 07 01 C0 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 31 C6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 F0 02 00 35 04 06 00 72 30 A1 DC F3 8A D0 59 78 66 D2 70 ED 75 [17:13:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 28 B0 47 00 BE 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 F0 02 00 F4 03 04 00 F5 6A 1F 67 B6 04 01 00 00 84 F2 FB 96 67 BF F7 BE [17:13:17]CommunicateWithHost err = 0 [17:13:17]CheckOFDResponse [17:13:17]1017 (14) - 77093643461234 [17:13:17]1041 (16) - 0000000000871754 [17:13:17]1040 (4) - 192706 [17:13:17]1012 (4) - 28.10.2024 10:44 [17:13:17]1206 (1) - 0 [17:13:17]OFD Sender: Remove packet 192706 [17:13:17]ProducePacketName [17:13:17]name=ofd_packets/00192706 [17:13:17]NVStorageDeleteData [17:13:17]Write to MH i2c: 01 00 00 B8 67 1F [17:13:17]Write i2c OK [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: 01 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: 01 07 00 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: 01 07 00 B8 67 00 00 00 00 00 B8 0C EA [17:13:17]RasterBufferAndPrint [17:13:17]line [17:13:17]line [17:13:17]line [17:13:17]line [17:13:17]line [17:13:17]written 0, free lines is 3263 [17:13:17]MH_Cut [17:13:17]Write to MH i2c: D1 01 00 BF 67 01 F8 [17:13:17]Write i2c OK [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: D1 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: D1 01 00 [17:13:17]MH_I2C_Read... [17:13:17]Read from MH i2c: D1 01 00 BF 67 00 F7 [17:13:17]Write to MH i2c: 01 00 00 C0 67 27 [17:13:17]Write i2c OK [17:13:17]MH_I2C_Read... [17:13:18]OFD Sender: No OFD packet to send [17:13:18]*** Cut start [17:13:18]*** Partial cut [17:13:18]*** CUTSNS_PIN = 1 [17:13:18]*** CUTSNS_PIN = 0 [17:13:18]*** Brake cut motor [17:13:19]Read from MH i2c: 01 [17:13:19]MH_I2C_Read... [17:13:19]*** Stop cut motor [17:13:19]*** Cut end [17:13:19]Read from MH i2c: 01 07 00 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: 01 07 00 C0 67 00 00 00 00 00 FF 0F 3C [17:13:19]process_action close_receipt done [17:13:19]requested_data is exist [17:13:19]produce_requested_data [17:13:19]requested_item fm.sn is exist - process it [17:13:19]wFMCommunicate request_size=4 [17:13:19]MH_SAM_APDU [17:13:19]CAPDU: 80 11 00 00 [17:13:19]Write to MH i2c: E2 08 00 C1 67 80 11 00 00 00 00 00 00 A2 [17:13:19]Write i2c OK [17:13:19]MH_I2C_Read... [17:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:19]Read from MH i2c: E2 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 17 00 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 17 00 C1 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F5 [17:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:13:19]wFMCommunicate OK [17:13:19]requested_item fd.num is exist - process it [17:13:19]SAM_PROTO_GetFieldsCounters [17:13:19]wFMCommunicate request_size=4 [17:13:19]MH_SAM_APDU [17:13:19]CAPDU: 80 13 00 00 [17:13:19]Write to MH i2c: E2 08 00 C2 67 80 13 00 00 00 00 00 00 A5 [17:13:19]Write i2c OK [17:13:19]MH_I2C_Read... [17:13:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:19]Read from MH i2c: E2 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 62 00 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 62 00 C2 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [17:13:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:19]wFMCommunicate OK [17:13:19]SAM_PROTO_GetFieldsCounters done [17:13:19]requested_item shift.num is exist - process it [17:13:19]requested_item shift.opened is exist - process it [17:13:19]req_shift_opened [17:13:19]FM_GetShiftState [17:13:19]SAM_PROTO_GetShiftState [17:13:19]wFMCommunicate request_size=4 [17:13:19]MH_SAM_APDU [17:13:19]CAPDU: 80 13 01 00 [17:13:19]Write to MH i2c: E2 08 00 C3 67 80 13 01 00 00 00 00 00 A7 [17:13:19]Write i2c OK [17:13:19]MH_I2C_Read... [17:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:19]Read from MH i2c: E2 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 0E 00 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 0E 00 C3 67 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F7 [17:13:19]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:13:19]wFMCommunicate OK [17:13:19]SAM_PROTO_GetShiftState done [17:13:19]FM_GetShiftState done [17:13:19]req_shift_opened done [17:13:19]requested_item shift.open_date is exist - process it [17:13:19]req_shift_open_date [17:13:19]req_shift_open_date done [17:13:19]produce_requested_data done [17:13:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192706,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:13:19]process_action_free close_receipt [17:13:19]json_value_free [17:13:19]json_value_free done [17:13:19]process_json_proto returns [17:13:19]Send response to host [17:13:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192706,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:13:19]free response buf [17:13:19]execute_script done [17:13:19]execute_script returns [17:13:19]free content buf [17:13:19]Sock 5.Close socket [17:13:19]Sock 5.Thread stoped [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:15]accept exits with 6 [17:14:15]New connection [17:14:15]New thread 3066707300 created [17:14:15]Thread 3066563940 joined [17:14:15]Waiting for new connection... [17:14:15] Sock 6.Parse request [17:14:15]Sock 6.Check first char [17:14:15]Sock 6.First char is OK [17:14:15]request: POST /json_proto HTTP/1.0 [17:14:15]Method: POST [17:14:15]URL: /json_proto [17:14:15]Method is POST - this is cgi request [17:14:15]url: /json_proto [17:14:15]query_string will be loaded in cgi processing [17:14:15]execute_cgi json_proto POST (null) [17:14:15]execute_cgi path=json_proto method=POST [17:14:15]POST find Content-Length [17:14:15]Host: 172.17.63.131:8080 [17:14:15]Content-Length: 678 [17:14:15]Content-Type: application/json [17:14:15] [17:14:15]POST finish read [17:14:15]Found Content-Length = 678 [17:14:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:15]execute_script... [17:14: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)32033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:15]POST & json_proto [17:14:15]process_json_proto [17:14:15]json parsed OK: [17:14:15]protocol is kg_v1.0 [17:14:15]action value=close_receipt [17:14:15]process_action close_receipt [17:14:15]cmd_close_receipt [17:14:15]MH_GetDate [17:14:15]Write to MH i2c: F0 00 00 C4 67 1A [17:14:15]Write i2c OK [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: F0 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: F0 09 00 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: F0 09 00 C4 67 00 6D C6 1F 67 22 05 6E 64 D5 [17:14:15]GetLastDocTimeStamp 1730135601 [17:14:15]current date 1730135661 [17:14:15]FM_GetShiftState [17:14:15]SAM_PROTO_GetShiftState [17:14:15]wFMCommunicate request_size=4 [17:14:15]MH_SAM_APDU [17:14:15]CAPDU: 80 13 01 00 [17:14:15]Write to MH i2c: E2 08 00 C5 67 80 13 01 00 00 00 00 00 A9 [17:14:15]Write i2c OK [17:14:15]MH_I2C_Read... [17:14:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:15]Read from MH i2c: E2 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 0E 00 [17:14:15]MH_I2C_Read... [17:14:15]Read from MH i2c: E2 0E 00 C5 67 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F9 [17:14:15]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:14:15]wFMCommunicate OK [17:14:15]SAM_PROTO_GetShiftState done [17:14:15]FM_GetShiftState done [17:14:15]opened in 1730075620 [17:14:15]opened+sec_in_day 1730162020 [17:14:15]quantity*price = 100050 [17:14:15]sum+1 = 100052 [17:14:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 255 28.10.2024 17:14 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192707 ФПД: 126537441911544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T171421&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192707&fm=126537441911544&tin=02508201610067®Number=0000000000091776&sum=100000 [17:14:16]StoreToDocumentArchive [17:14:16]shift 543 fd 192707 [17:14:16]save to /storage/0543/doc_00192707 [17:14:16]save last doc name /storage/0543/doc_00192707 to /storage/kkm_last_doc_name [17:14:16]save OK [17:14:16]Clear old archive folders... [17:14:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:14:16]tlvbuf is 01AC8330 [17:14:16]SAM_PROTO_ClearQueue [17:14:16]wFMCommunicate request_size=4 [17:14:16]MH_SAM_APDU [17:14:16]CAPDU: 80 09 00 00 [17:14:16]Write to MH i2c: E2 08 00 D2 67 80 09 00 00 00 00 00 00 AB [17:14:16]Write i2c OK [17:14:16]MH_I2C_Read... [17:14:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:16]Read from MH i2c: E2 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 03 00 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 03 00 D2 67 00 90 00 AD [17:14:16]RAPDU: 90 00 [17:14:16]wFMCommunicate OK [17:14:16]SAM_PROTO_ClearQueue done [17:14:16]KKMCreateOFDPacket [17:14:16]OFDProtocolAddRootSTLVToBuf [17:14:16]FM_MakeSignedData [17:14:16]FM_MakeSignedData [17:14:16]SAM_PROTO_SignData [17:14:16]wFMCommunicate request_size=4 [17:14:16]MH_SAM_APDU [17:14:16]CAPDU: 80 0D 01 02 [17:14:16]Write to MH i2c: E2 08 00 D3 67 80 0D 01 02 00 00 00 00 B3 [17:14:16]Write i2c OK [17:14:16]MH_I2C_Read... [17:14:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:16]Read from MH i2c: E2 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 03 00 [17:14:16]MH_I2C_Read... [17:14:16]Read from MH i2c: E2 03 00 D3 67 00 90 00 AE [17:14:16]RAPDU: 90 00 [17:14:16]wFMCommunicate OK [17:14:16]wFMCommunicate request_size=255 [17:14:16]MH_SAM_APDU [17:14:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 6D C6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 F0 02 00 35 04 06 00 73 15 CB 46 [17:14:16]Write to MH i2c: E2 02 01 D4 67 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 6D C6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 F0 02 00 35 04 06 00 73 15 CB 46 00 00 64 [17:14:16]Write i2c OK [17:14:16]MH_I2C_Read... [17:14:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:17]Read from MH i2c: E2 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: E2 03 00 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: E2 03 00 D4 67 00 90 00 AF [17:14:17]RAPDU: 90 00 [17:14:17]wFMCommunicate OK [17:14:17]wFMCommunicate request_size=7 [17:14:17]MH_SAM_APDU [17:14:17]CAPDU: 80 0D 02 02 02 A2 F8 [17:14:17]Write to MH i2c: E2 0A 00 D5 67 80 0D 02 02 02 00 A2 F8 00 00 54 [17:14:17]Write i2c OK [17:14:17]MH_I2C_Read... [17:14:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:17]Read from MH i2c: E2 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: E2 03 00 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: E2 03 00 D5 67 00 90 00 B0 [17:14:17]RAPDU: 90 00 [17:14:17]wFMCommunicate OK [17:14:17]wFMCommunicate request_size=4 [17:14:17]MH_SAM_APDU [17:14:17]CAPDU: 80 0D 03 02 [17:14:17]Write to MH i2c: E2 08 00 D6 67 80 0D 03 02 00 00 00 00 B8 [17:14:17]Write i2c OK [17:14:17]MH_I2C_Read... [17:14:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:17]Read from MH i2c: E2 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: E2 0B 00 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: E2 0B 00 D6 67 00 3E 1C 41 9F A9 7A BE 26 90 00 FA [17:14:17]RAPDU: 3E 1C 41 9F A9 7A BE 26 90 00 [17:14:17]wFMCommunicate OK [17:14:17]SAM_PROTO_SignData done [17:14:17]FM_MakeSignedData done [17:14:17]CreateOFDProtocolMessage [17:14:17]wFMCommunicate request_size=4 [17:14:17]MH_SAM_APDU [17:14:17]CAPDU: 80 11 00 00 [17:14:17]Write to MH i2c: E2 08 00 D7 67 80 11 00 00 00 00 00 00 B8 [17:14:17]Write i2c OK [17:14:17]MH_I2C_Read... [17:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:17]Read from MH i2c: E2 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: E2 17 00 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: E2 17 00 D7 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0B [17:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:14:17]wFMCommunicate OK [17:14:17]CreateOFDProtocolMessage done [17:14:17]OFDSenderStorePacket 192707 [17:14:17]StoreOFDPacket docnum=192707 [17:14:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BE A7 04 01 3E 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 6D C6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 F0 02 00 35 04 06 00 73 15 CB 46 A2 F8 3E 1C 41 9F A9 7A BE 26 [17:14:17]CheckFolder [17:14:17]dirname=/storage/ofd_packets [17:14:17]CheckFolder done [17:14:17]ProducePacketName [17:14:17]name=ofd_packets/00192707 [17:14:17]NVStorageSaveData ofd_packets/00192707 [17:14:17]File name is /storage/ofd_packets/00192707 [17:14:17]Write 298 bytes [17:14:17]NVStorageSaveData done [17:14:17]OFDSenderStorePacket done [17:14:17]KKMCreateOFDPacket done [17:14:17]NVStorageSaveData kkm_last_timestamp [17:14:17]File name is /storage/kkm_last_timestamp [17:14:17]Write 4 bytes [17:14:17]NVStorageSaveData done [17:14:17]ExternCall_PrintAddStr [17:14:17]wPrintStart [17:14:17]Write to MH i2c: 01 00 00 D8 67 3F [17:14:17]Write i2c OK [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: 01 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: 01 07 00 [17:14:17]MH_I2C_Read... [17:14:17]Read from MH i2c: 01 07 00 D8 67 00 00 00 00 00 FF 0F 54 [17:14:17]RasterBufferAndPrint [17:14:17]line Счет N : (1)32033 [17:14:17]line ИНН: 02508201610067 [17:14:17]line Контрольно-Кассовый Чек [17:14:17]line ПРОДАЖА [17:14:17]line ТРК (МРК, ГНК) : 11 [17:14:17]line Товар: 2710194210 [17:14:17]line ДТ-К-5 [17:14:17]line 13.130 * 76.20 [17:14:17]line = 1000.51 [17:14:17]line НДС 12% НСП 1% [17:14:17]line > о реализуемом товаре [17:14:17]line ОКРУГЛЕНИЕ: -0.51 [17:14:17]line ИТОГО: 1000.00 [17:14:17]line Внесено: 1000.00 [17:14:17]line СДАЧА: 0.00 [17:14:17]line НСП 1% : 8.85 [17:14:17]line НДС 12% : 106.25 [17:14:17]line Наличными: 1000.00 [17:14:17]line Безнал.: 0.00 [17:14:17]line Место: АЗС № 170 "Партнер Нефть" [17:14:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:14:17]line СНО: Общий режим [17:14:17]line Чек 255 28.10.2024 17:14 [17:14:17]line Смена: 543 ФФД: 1.0 [17:14:17]line ЗНМ: 0300000110 [17:14:17]line РНМ: 0000000000091776 [17:14:17]line Версия ККМ: 001 [17:14:17]line ФМ: 0000000000871754 [17:14:17]line ФД: 192707 [17:14:17]line ФПД: 126537441911544 [17:14:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T171421&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192707&fm=126537441911544&tin=02508201610067®Number=0000000000091776&sum=100000 [17:14:17]OFD Sender: Processing packet 192707 [packets to send 75, broken 74] [17:14:17]ProducePacketName [17:14:17]name=ofd_packets/00192707 [17:14:17]OFD Sender: To server: pG, [17:14:17]CommunicateWithHost lk.salyk.kg:30040 [17:14:17]ConnectInit lk.salyk.kg [17:14:17]written 0, free lines is 4095 [17:14:17]Connected sock=7 [17:14:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BE A7 04 01 3E 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 6D C6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 F0 02 00 35 04 06 00 73 15 CB 46 A2 F8 3E 1C 41 9F A9 7A BE 26 [17:14:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9E 33 47 00 55 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 F0 02 00 F4 03 04 00 31 6B 1F 67 B6 04 01 00 00 DA 29 5F 1F E8 41 59 E1 [17:14:17]CommunicateWithHost err = 0 [17:14:17]CheckOFDResponse [17:14:17]1017 (14) - 77093643461234 [17:14:17]1041 (16) - 0000000000871754 [17:14:17]1040 (4) - 192707 [17:14:17]1012 (4) - 28.10.2024 10:45 [17:14:17]1206 (1) - 0 [17:14:17]OFD Sender: Remove packet 192707 [17:14:17]ProducePacketName [17:14:17]name=ofd_packets/00192707 [17:14:17]NVStorageDeleteData [17:14:18]Write to MH i2c: 01 00 00 03 68 6B [17:14:18]Write i2c OK [17:14:18]MH_I2C_Read... [17:14:18]Read from MH i2c: 01 [17:14:18]MH_I2C_Read... [17:14:18]Read from MH i2c: 01 07 00 [17:14:18]MH_I2C_Read... [17:14:18]Read from MH i2c: 01 07 00 03 68 00 00 00 00 00 C6 0C 44 [17:14:18]RasterBufferAndPrint [17:14:18]line [17:14:18]line [17:14:18]line [17:14:18]line [17:14:18]line [17:14:18]written 0, free lines is 3277 [17:14:18]MH_Cut [17:14:18]Write to MH i2c: D1 01 00 0A 68 01 44 [17:14:18]Write i2c OK [17:14:18]MH_I2C_Read... [17:14:18]Read from MH i2c: D1 [17:14:18]MH_I2C_Read... [17:14:18]Read from MH i2c: D1 01 00 [17:14:18]MH_I2C_Read... [17:14:18]Read from MH i2c: D1 01 00 0A 68 00 43 [17:14:18]Write to MH i2c: 01 00 00 0B 68 73 [17:14:18]Write i2c OK [17:14:18]MH_I2C_Read... [17:14:18]OFD Sender: No OFD packet to send [17:14:18]*** Cut start [17:14:18]*** Partial cut [17:14:18]*** CUTSNS_PIN = 1 [17:14:18]*** CUTSNS_PIN = 0 [17:14:19]*** Brake cut motor [17:14:19]Read from MH i2c: 01 [17:14:19]MH_I2C_Read... [17:14:19]*** Stop cut motor [17:14:19]*** Cut end [17:14:19]Read from MH i2c: 01 07 00 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: 01 07 00 0B 68 00 00 00 00 00 FF 0F 88 [17:14:19]process_action close_receipt done [17:14:19]requested_data is exist [17:14:19]produce_requested_data [17:14:19]requested_item fm.sn is exist - process it [17:14:19]wFMCommunicate request_size=4 [17:14:19]MH_SAM_APDU [17:14:19]CAPDU: 80 11 00 00 [17:14:19]Write to MH i2c: E2 08 00 0C 68 80 11 00 00 00 00 00 00 EE [17:14:19]Write i2c OK [17:14:19]MH_I2C_Read... [17:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:19]Read from MH i2c: E2 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: E2 17 00 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: E2 17 00 0C 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 41 [17:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:14:19]wFMCommunicate OK [17:14:19]requested_item fd.num is exist - process it [17:14:19]SAM_PROTO_GetFieldsCounters [17:14:19]wFMCommunicate request_size=4 [17:14:19]MH_SAM_APDU [17:14:19]CAPDU: 80 13 00 00 [17:14:19]Write to MH i2c: E2 08 00 0D 68 80 13 00 00 00 00 00 00 F1 [17:14:19]Write i2c OK [17:14:19]MH_I2C_Read... [17:14:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:19]Read from MH i2c: E2 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: E2 62 00 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: E2 62 00 0D 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C3 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [17:14:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C3 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:19]wFMCommunicate OK [17:14:19]SAM_PROTO_GetFieldsCounters done [17:14:19]requested_item shift.num is exist - process it [17:14:19]requested_item shift.opened is exist - process it [17:14:19]req_shift_opened [17:14:19]FM_GetShiftState [17:14:19]SAM_PROTO_GetShiftState [17:14:19]wFMCommunicate request_size=4 [17:14:19]MH_SAM_APDU [17:14:19]CAPDU: 80 13 01 00 [17:14:19]Write to MH i2c: E2 08 00 0E 68 80 13 01 00 00 00 00 00 F3 [17:14:19]Write i2c OK [17:14:19]MH_I2C_Read... [17:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:19]Read from MH i2c: E2 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: E2 0E 00 [17:14:19]MH_I2C_Read... [17:14:19]Read from MH i2c: E2 0E 00 0E 68 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 43 [17:14:19]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:14:19]wFMCommunicate OK [17:14:19]SAM_PROTO_GetShiftState done [17:14:19]FM_GetShiftState done [17:14:19]req_shift_opened done [17:14:19]requested_item shift.open_date is exist - process it [17:14:19]req_shift_open_date [17:14:19]req_shift_open_date done [17:14:19]produce_requested_data done [17:14:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192707,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:14:19]process_action_free close_receipt [17:14:19]json_value_free [17:14:19]json_value_free done [17:14:19]process_json_proto returns [17:14:19]Send response to host [17:14:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192707,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:14:19]free response buf [17:14:19]execute_script done [17:14:19]execute_script returns [17:14:19]free content buf [17:14:19]Sock 6.Close socket [17:14:19]Sock 6.Thread stoped [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:17:59]ConnectInit Can't connect to host [17:30:05]ConnectInit Can't connect to host [17:30:08]OFD Sender: Processing packet 192708 [packets to send 78, broken 74] [17:30:08]ProducePacketName [17:30:08]name=ofd_packets/00192708 [17:30:08]OFD Sender: To server: pG, [17:30:08]CommunicateWithHost lk.salyk.kg:30040 [17:30:08]ConnectInit lk.salyk.kg [17:42:42]ConnectInit Can't connect to host [17:42:43]ConnectInit Can't take IP for lk.salyk.kg [17:42:43]CommunicateWithHost connect error [17:42:43]CommunicateWithHost err = -1 [17:42:43]OFD Sender: Server communicate error [17:42:48]OFD Sender: Processing packet 192708 [packets to send 84, broken 74] [17:42:48]ProducePacketName [17:42:48]name=ofd_packets/00192708 [17:42:48]OFD Sender: To server: pG, [17:42:48]CommunicateWithHost lk.salyk.kg:30040 [17:42:48]ConnectInit lk.salyk.kg [17:42:48]Connected sock=9 [17:42:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B7 E5 07 01 0D 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 E7 C6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 F0 02 00 35 04 06 00 CE C7 95 92 FE E8 4C 7A 63 F0 27 0F 63 B8 [17:42:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 28 4A 47 00 B2 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 31 37 35 34 10 04 04 00 C4 F0 02 00 F4 03 04 00 DA 71 1F 67 B6 04 01 00 00 F6 D8 3F 9B 76 3E EE 36 [17:42:49]CommunicateWithHost err = 0 [17:42:49]CheckOFDResponse [17:42:49]1017 (14) - 77093643461234 [17:42:49]1041 (16) - 0000000000871754 [17:42:49]1040 (4) - 192708 [17:42:49]1012 (4) - 28.10.2024 11:13 [17:42:49]1206 (1) - 0 [17:42:49]OFD Sender: Remove packet 192708 [17:42:49]ProducePacketName [17:42:49]name=ofd_packets/00192708 [17:42:49]NVStorageDeleteData [17:42:49]OFD Sender: Processing packet 192709 [packets to send 83, broken 74] [17:42:49]ProducePacketName [17:42:49]name=ofd_packets/00192709 [17:42:49]OFD Sender: To server: pG, [17:42:49]CommunicateWithHost lk.salyk.kg:30040 [17:42:49]ConnectInit lk.salyk.kg [17:42:49]Connected sock=9 [17:42:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 ED 45 04 01 B6 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 E6 C7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 F0 02 00 35 04 06 00 D9 0C 0B 43 1F FB 44 4F 24 65 B9 C8 7F 6A [17:42:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EA 7B 47 00 54 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 F0 02 00 F4 03 04 00 DB 71 1F 67 B6 04 01 00 00 3D 31 3A B0 1E 85 3C 62 [17:42:50]CommunicateWithHost err = 0 [17:42:50]CheckOFDResponse [17:42:50]1017 (14) - 77093643461234 [17:42:50]1041 (16) - 0000000000871754 [17:42:50]1040 (4) - 192709 [17:42:50]1012 (4) - 28.10.2024 11:13 [17:42:50]1206 (1) - 0 [17:42:50]OFD Sender: Remove packet 192709 [17:42:50]ProducePacketName [17:42:50]name=ofd_packets/00192709 [17:42:50]NVStorageDeleteData [17:42:50]OFD Sender: Processing packet 192710 [packets to send 82, broken 74] [17:42:50]ProducePacketName [17:42:50]name=ofd_packets/00192710 [17:42:50]OFD Sender: To server: pG, [17:42:50]CommunicateWithHost lk.salyk.kg:30040 [17:42:50]ConnectInit lk.salyk.kg [17:42:50]Connected sock=9 [17:42:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D6 D1 07 01 C9 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 1B C9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 F0 02 00 35 04 06 00 8F 16 C6 7C 22 80 29 01 43 52 B9 3E 71 9B [17:42:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4B B5 47 00 FD 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 F0 02 00 F4 03 04 00 DC 71 1F 67 B6 04 01 00 00 4A 49 54 7B 55 21 B0 10 [17:42:50]CommunicateWithHost err = 0 [17:42:50]CheckOFDResponse [17:42:50]1017 (14) - 77093643461234 [17:42:50]1041 (16) - 0000000000871754 [17:42:50]1040 (4) - 192710 [17:42:50]1012 (4) - 28.10.2024 11:13 [17:42:50]1206 (1) - 0 [17:42:50]OFD Sender: Remove packet 192710 [17:42:50]ProducePacketName [17:42:50]name=ofd_packets/00192710 [17:42:50]NVStorageDeleteData [17:42:51]OFD Sender: Processing packet 192711 [packets to send 81, broken 74] [17:42:51]ProducePacketName [17:42:51]name=ofd_packets/00192711 [17:42:51]OFD Sender: To server: pG, [17:42:51]CommunicateWithHost lk.salyk.kg:30040 [17:42:51]ConnectInit lk.salyk.kg [17:42:51]Connected sock=9 [17:42:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 29 00 07 01 34 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 77 C9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 F0 02 00 35 04 06 00 B4 DC 5C E1 90 AA 0A 85 FF 65 BA 32 D9 93 [17:42:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A8 D2 47 00 8D 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 31 37 35 34 10 04 04 00 C7 F0 02 00 F4 03 04 00 DD 71 1F 67 B6 04 01 00 00 5C 44 31 F1 00 85 ED 40 [17:42:51]CommunicateWithHost err = 0 [17:42:51]CheckOFDResponse [17:42:51]1017 (14) - 77093643461234 [17:42:51]1041 (16) - 0000000000871754 [17:42:51]1040 (4) - 192711 [17:42:51]1012 (4) - 28.10.2024 11:13 [17:42:51]1206 (1) - 0 [17:42:51]OFD Sender: Remove packet 192711 [17:42:51]ProducePacketName [17:42:51]name=ofd_packets/00192711 [17:42:51]NVStorageDeleteData [17:42:52]OFD Sender: Processing packet 192712 [packets to send 80, broken 74] [17:42:52]ProducePacketName [17:42:52]name=ofd_packets/00192712 [17:42:52]OFD Sender: To server: pG, [17:42:52]CommunicateWithHost lk.salyk.kg:30040 [17:42:52]ConnectInit lk.salyk.kg [17:42:52]Connected sock=9 [17:42:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D4 01 04 01 76 D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 98 CA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 F0 02 00 35 04 06 00 4D 70 AD C6 D1 A9 15 71 73 48 CC 62 D2 8A [17:42:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E3 E2 47 00 6C 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 F0 02 00 F4 03 04 00 DD 71 1F 67 B6 04 01 00 00 C0 C2 1D 93 83 F2 7D 70 [17:42:52]CommunicateWithHost err = 0 [17:42:52]CheckOFDResponse [17:42:52]1017 (14) - 77093643461234 [17:42:52]1041 (16) - 0000000000871754 [17:42:52]1040 (4) - 192712 [17:42:52]1012 (4) - 28.10.2024 11:13 [17:42:52]1206 (1) - 0 [17:42:52]OFD Sender: Remove packet 192712 [17:42:52]ProducePacketName [17:42:52]name=ofd_packets/00192712 [17:42:52]NVStorageDeleteData [17:42:52]OFD Sender: Processing packet 192713 [packets to send 79, broken 74] [17:42:52]ProducePacketName [17:42:52]name=ofd_packets/00192713 [17:42:52]OFD Sender: To server: pG, [17:42:52]CommunicateWithHost lk.salyk.kg:30040 [17:42:52]ConnectInit lk.salyk.kg [17:42:53]Connected sock=9 [17:42:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 81 54 07 01 10 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 9D CA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 F0 02 00 35 04 06 00 F8 90 C6 51 67 D7 6B DB D0 BB 10 C9 7E 57 [17:42:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F1 A5 47 00 54 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 F0 02 00 F4 03 04 00 DE 71 1F 67 B6 04 01 00 00 D9 D1 BD 31 E5 3B B1 EC [17:42:53]CommunicateWithHost err = 0 [17:42:53]CheckOFDResponse [17:42:53]1017 (14) - 77093643461234 [17:42:53]1041 (16) - 0000000000871754 [17:42:53]1040 (4) - 192713 [17:42:53]1012 (4) - 28.10.2024 11:13 [17:42:53]1206 (1) - 0 [17:42:53]OFD Sender: Remove packet 192713 [17:42:53]ProducePacketName [17:42:53]name=ofd_packets/00192713 [17:42:53]NVStorageDeleteData [17:42:53]OFD Sender: Processing packet 192714 [packets to send 78, broken 74] [17:42:53]ProducePacketName [17:42:53]name=ofd_packets/00192714 [17:42:53]OFD Sender: To server: pG, [17:42:53]CommunicateWithHost lk.salyk.kg:30040 [17:42:53]ConnectInit lk.salyk.kg [17:42:53]Connected sock=9 [17:42:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B4 BF 07 01 24 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 01 CB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA F0 02 00 35 04 06 00 BA 87 B1 32 01 52 B9 70 C6 EE E7 D4 01 DE [17:42:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 55 29 47 00 26 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA F0 02 00 F4 03 04 00 DF 71 1F 67 B6 04 01 00 00 7B E1 AF 87 86 9E 35 C1 [17:42:54]CommunicateWithHost err = 0 [17:42:54]CheckOFDResponse [17:42:54]1017 (14) - 77093643461234 [17:42:54]1041 (16) - 0000000000871754 [17:42:54]1040 (4) - 192714 [17:42:54]1012 (4) - 28.10.2024 11:13 [17:42:54]1206 (1) - 0 [17:42:54]OFD Sender: Remove packet 192714 [17:42:54]ProducePacketName [17:42:54]name=ofd_packets/00192714 [17:42:54]NVStorageDeleteData [17:42:54]OFD Sender: Processing packet 192715 [packets to send 77, broken 74] [17:42:54]ProducePacketName [17:42:54]name=ofd_packets/00192715 [17:42:54]OFD Sender: To server: pG, [17:42:54]CommunicateWithHost lk.salyk.kg:30040 [17:42:54]ConnectInit lk.salyk.kg [17:42:54]Connected sock=9 [17:42:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 64 3A 07 01 30 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 92 CC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB F0 02 00 35 04 06 00 89 B2 96 F1 F9 19 91 C8 ED F5 01 8C 60 33 [17:42:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A0 E3 47 00 AC 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB F0 02 00 F4 03 04 00 E0 71 1F 67 B6 04 01 00 00 D2 1D 3E BB D7 56 04 67 [17:42:54]CommunicateWithHost err = 0 [17:42:54]CheckOFDResponse [17:42:54]1017 (14) - 77093643461234 [17:42:54]1041 (16) - 0000000000871754 [17:42:54]1040 (4) - 192715 [17:42:54]1012 (4) - 28.10.2024 11:13 [17:42:54]1206 (1) - 0 [17:42:54]OFD Sender: Remove packet 192715 [17:42:54]ProducePacketName [17:42:54]name=ofd_packets/00192715 [17:42:54]NVStorageDeleteData [17:42:55]OFD Sender: Processing packet 192716 [packets to send 76, broken 74] [17:42:55]ProducePacketName [17:42:55]name=ofd_packets/00192716 [17:42:55]OFD Sender: To server: pG, [17:42:55]CommunicateWithHost lk.salyk.kg:30040 [17:42:55]ConnectInit lk.salyk.kg [17:42:55]Connected sock=9 [17:42:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E7 7C 07 01 9C AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 D0 CC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC F0 02 00 35 04 06 00 5D B8 77 40 49 97 0A 48 3D 92 F5 B9 49 BB [17:42:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1A 9F 47 00 80 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC F0 02 00 F4 03 04 00 E1 71 1F 67 B6 04 01 00 00 BA 6D 9A C3 BE F3 61 36 [17:42:55]CommunicateWithHost err = 0 [17:42:55]CheckOFDResponse [17:42:55]1017 (14) - 77093643461234 [17:42:55]1041 (16) - 0000000000871754 [17:42:55]1040 (4) - 192716 [17:42:55]1012 (4) - 28.10.2024 11:13 [17:42:55]1206 (1) - 0 [17:42:55]OFD Sender: Remove packet 192716 [17:42:55]ProducePacketName [17:42:55]name=ofd_packets/00192716 [17:42:55]NVStorageDeleteData [17:42:56]OFD Sender: Processing packet 192717 [packets to send 75, broken 74] [17:42:56]ProducePacketName [17:42:56]name=ofd_packets/00192717 [17:42:56]OFD Sender: To server: pG, [17:42:56]CommunicateWithHost lk.salyk.kg:30040 [17:42:56]ConnectInit lk.salyk.kg [17:42:56]Connected sock=9 [17:42:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 32 65 07 01 D7 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 03 CD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD F0 02 00 35 04 06 00 5B 68 BA 26 31 A6 AF 8B F7 FC F6 5B 96 8F [17:42:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E4 D6 47 00 22 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD F0 02 00 F4 03 04 00 E1 71 1F 67 B6 04 01 00 00 1C 34 20 2D BE EA EF 36 [17:42:56]CommunicateWithHost err = 0 [17:42:56]CheckOFDResponse [17:42:56]1017 (14) - 77093643461234 [17:42:56]1041 (16) - 0000000000871754 [17:42:56]1040 (4) - 192717 [17:42:56]1012 (4) - 28.10.2024 11:13 [17:42:56]1206 (1) - 0 [17:42:56]OFD Sender: Remove packet 192717 [17:42:56]ProducePacketName [17:42:56]name=ofd_packets/00192717 [17:42:56]NVStorageDeleteData [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:57]OFD Sender: No OFD packet to send [17:44:02]OFD Sender: No OFD packet to send [17:44:07]OFD Sender: No OFD packet to send [17:44:12]OFD Sender: No OFD packet to send [17:44:17]OFD Sender: No OFD packet to send [17:44:22]OFD Sender: No OFD packet to send [17:44:27]OFD Sender: No OFD packet to send [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:57]OFD Sender: No OFD packet to send [17:45:02]OFD Sender: No OFD packet to send [17:45:07]OFD Sender: No OFD packet to send [17:45:12]OFD Sender: No OFD packet to send [17:45:17]OFD Sender: No OFD packet to send [17:45:22]OFD Sender: No OFD packet to send [17:45:27]OFD Sender: No OFD packet to send [17:45:32]OFD Sender: No OFD packet to send [17:45:37]OFD Sender: No OFD packet to send [17:45:42]OFD Sender: No OFD packet to send [17:45:47]OFD Sender: No OFD packet to send [17:45:52]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:26]accept exits with 8 [17:47:26]New connection [17:47:26]New thread 3066801508 created [17:47:26]Thread 3066658148 joined [17:47:26]Waiting for new connection... [17:47:26] Sock 8.Parse request [17:47:26]Sock 8.Check first char [17:47:26]Sock 8.First char is OK [17:47:26]request: POST /json_proto HTTP/1.0 [17:47:26]Method: POST [17:47:26]URL: /json_proto [17:47:26]Method is POST - this is cgi request [17:47:26]url: /json_proto [17:47:26]query_string will be loaded in cgi processing [17:47:26]execute_cgi json_proto POST (null) [17:47:26]execute_cgi path=json_proto method=POST [17:47:26]POST find Content-Length [17:47:26]Host: 172.17.63.131:8080 [17:47:26]Content-Length: 677 [17:47:26]Content-Type: application/json [17:47:26] [17:47:26]POST finish read [17:47:26]Found Content-Length = 677 [17:47:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:26]execute_script... [17:47: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)32044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:26]POST & json_proto [17:47:26]process_json_proto [17:47:26]json parsed OK: [17:47:26]protocol is kg_v1.0 [17:47:26]action value=close_receipt [17:47:26]process_action close_receipt [17:47:26]cmd_close_receipt [17:47:26]MH_GetDate [17:47:26]Write to MH i2c: F0 00 00 E1 01 D1 [17:47:26]Write i2c OK [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: F0 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: F0 09 00 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: F0 09 00 E1 01 00 2F CE 1F 67 22 05 6E 64 56 [17:47:26]GetLastDocTimeStamp 1730137347 [17:47:26]current date 1730137647 [17:47:26]FM_GetShiftState [17:47:26]SAM_PROTO_GetShiftState [17:47:26]wFMCommunicate request_size=4 [17:47:26]MH_SAM_APDU [17:47:26]CAPDU: 80 13 01 00 [17:47:26]Write to MH i2c: E2 08 00 E2 01 80 13 01 00 00 00 00 00 60 [17:47:26]Write i2c OK [17:47:26]MH_I2C_Read... [17:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:26]Read from MH i2c: E2 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 0E 00 [17:47:26]MH_I2C_Read... [17:47:26]Read from MH i2c: E2 0E 00 E2 01 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B0 [17:47:26]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:47:26]wFMCommunicate OK [17:47:26]SAM_PROTO_GetShiftState done [17:47:26]FM_GetShiftState done [17:47:26]opened in 1730075620 [17:47:26]opened+sec_in_day 1730162020 [17:47:26]quantity*price = 70044 [17:47:26]sum+1 = 70045 [17:47:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 266 28.10.2024 17:47 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192718 ФПД: 77965546153367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T174727&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192718&fm=77965546153367&tin=02508201610067®Number=0000000000091776&sum=70000 [17:47:28]StoreToDocumentArchive [17:47:28]shift 543 fd 192718 [17:47:28]save to /storage/0543/doc_00192718 [17:47:28]save last doc name /storage/0543/doc_00192718 to /storage/kkm_last_doc_name [17:47:28]save OK [17:47:28]Clear old archive folders... [17:47:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:28]tlvbuf is B6E83850 [17:47:28]SAM_PROTO_ClearQueue [17:47:28]wFMCommunicate request_size=4 [17:47:28]MH_SAM_APDU [17:47:28]CAPDU: 80 09 00 00 [17:47:28]Write to MH i2c: E2 08 00 EF 01 80 09 00 00 00 00 00 00 62 [17:47:28]Write i2c OK [17:47:28]MH_I2C_Read... [17:47:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:28]Read from MH i2c: E2 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 03 00 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [17:47:28]RAPDU: 90 00 [17:47:28]wFMCommunicate OK [17:47:28]SAM_PROTO_ClearQueue done [17:47:28]KKMCreateOFDPacket [17:47:28]OFDProtocolAddRootSTLVToBuf [17:47:28]FM_MakeSignedData [17:47:28]FM_MakeSignedData [17:47:28]SAM_PROTO_SignData [17:47:28]wFMCommunicate request_size=4 [17:47:28]MH_SAM_APDU [17:47:28]CAPDU: 80 0D 01 02 [17:47:28]Write to MH i2c: E2 08 00 F0 01 80 0D 01 02 00 00 00 00 6A [17:47:28]Write i2c OK [17:47:28]MH_I2C_Read... [17:47:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:28]Read from MH i2c: E2 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 03 00 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [17:47:28]RAPDU: 90 00 [17:47:28]wFMCommunicate OK [17:47:28]wFMCommunicate request_size=255 [17:47:28]MH_SAM_APDU [17:47: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 2F CE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE F0 02 00 35 04 06 00 46 [17:47:28]Write to MH i2c: E2 02 01 F1 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 2F CE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE F0 02 00 35 04 06 00 46 00 00 C3 [17:47:28]Write i2c OK [17:47:28]MH_I2C_Read... [17:47:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:28]Read from MH i2c: E2 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 03 00 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [17:47:28]RAPDU: 90 00 [17:47:28]wFMCommunicate OK [17:47:28]wFMCommunicate request_size=10 [17:47:28]MH_SAM_APDU [17:47:28]CAPDU: 80 0D 02 02 05 E8 C4 AE E5 97 [17:47:28]Write to MH i2c: E2 0D 00 F2 01 80 0D 02 02 05 00 E8 C4 AE E5 97 00 00 4D [17:47:28]Write i2c OK [17:47:28]MH_I2C_Read... [17:47:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:28]Read from MH i2c: E2 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 03 00 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [17:47:28]RAPDU: 90 00 [17:47:28]wFMCommunicate OK [17:47:28]wFMCommunicate request_size=4 [17:47:28]MH_SAM_APDU [17:47:28]CAPDU: 80 0D 03 02 [17:47:28]Write to MH i2c: E2 08 00 F3 01 80 0D 03 02 00 00 00 00 6F [17:47:28]Write i2c OK [17:47:28]MH_I2C_Read... [17:47:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:28]Read from MH i2c: E2 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 0B 00 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 0B 00 F3 01 00 D2 D8 C9 F0 4D B5 4D 46 90 00 68 [17:47:28]RAPDU: D2 D8 C9 F0 4D B5 4D 46 90 00 [17:47:28]wFMCommunicate OK [17:47:28]SAM_PROTO_SignData done [17:47:28]FM_MakeSignedData done [17:47:28]CreateOFDProtocolMessage [17:47:28]wFMCommunicate request_size=4 [17:47:28]MH_SAM_APDU [17:47:28]CAPDU: 80 11 00 00 [17:47:28]Write to MH i2c: E2 08 00 F4 01 80 11 00 00 00 00 00 00 6F [17:47:28]Write i2c OK [17:47:28]MH_I2C_Read... [17:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:28]Read from MH i2c: E2 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 17 00 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: E2 17 00 F4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C2 [17:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:47:28]wFMCommunicate OK [17:47:28]CreateOFDProtocolMessage done [17:47:28]OFDSenderStorePacket 192718 [17:47:28]StoreOFDPacket docnum=192718 [17:47:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3E DD 07 01 FB 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 2F CE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE F0 02 00 35 04 06 00 46 E8 C4 AE E5 97 D2 D8 C9 F0 4D B5 4D 46 [17:47:28]CheckFolder [17:47:28]dirname=/storage/ofd_packets [17:47:28]CheckFolder done [17:47:28]ProducePacketName [17:47:28]name=ofd_packets/00192718 [17:47:28]NVStorageSaveData ofd_packets/00192718 [17:47:28]File name is /storage/ofd_packets/00192718 [17:47:28]Write 301 bytes [17:47:28]NVStorageSaveData done [17:47:28]OFDSenderStorePacket done [17:47:28]KKMCreateOFDPacket done [17:47:28]NVStorageSaveData kkm_last_timestamp [17:47:28]File name is /storage/kkm_last_timestamp [17:47:28]Write 4 bytes [17:47:28]NVStorageSaveData done [17:47:28]ExternCall_PrintAddStr [17:47:28]wPrintStart [17:47:28]Write to MH i2c: 01 00 00 F5 01 F6 [17:47:28]Write i2c OK [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: 01 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: 01 07 00 [17:47:28]MH_I2C_Read... [17:47:28]Read from MH i2c: 01 07 00 F5 01 00 00 00 00 00 FF 0F 0B [17:47:28]RasterBufferAndPrint [17:47:28]line Счет N : (1)32044 [17:47:28]line ИНН: 02508201610067 [17:47:28]line Контрольно-Кассовый Чек [17:47:28]line ПРОДАЖА [17:47:28]line ТРК (МРК, ГНК) : 21 [17:47:28]line Товар: 2710124130 [17:47:28]line Аи-92-К-5 [17:47:28]line 10.470 * 66.90 [17:47:28]line = 700.44 [17:47:28]line НДС 12% НСП 1% [17:47:28]line > о реализуемом товаре [17:47:28]line ОКРУГЛЕНИЕ: -0.44 [17:47:28]line ИТОГО: 700.00 [17:47:28]line Внесено: 700.00 [17:47:28]line СДАЧА: 0.00 [17:47:28]line НСП 1% : 6.20 [17:47:28]line НДС 12% : 74.38 [17:47:28]line Наличными: 700.00 [17:47:28]line Безнал.: 0.00 [17:47:28]line Место: АЗС № 170 "Партнер Нефть" [17:47:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:47:28]line СНО: Общий режим [17:47:28]line Чек 266 28.10.2024 17:47 [17:47:28]line Смена: 543 ФФД: 1.0 [17:47:28]line ЗНМ: 0300000110 [17:47:28]line РНМ: 0000000000091776 [17:47:28]line Версия ККМ: 001 [17:47:28]line ФМ: 0000000000871754 [17:47:28]line ФД: 192718 [17:47:28]line ФПД: 77965546153367 [17:47:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T174727&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192718&fm=77965546153367&tin=02508201610067®Number=0000000000091776&sum=70000 [17:47:28]OFD Sender: Processing packet 192718 [packets to send 75, broken 74] [17:47:28]ProducePacketName [17:47:28]name=ofd_packets/00192718 [17:47:28]OFD Sender: To server: pG, [17:47:28]CommunicateWithHost lk.salyk.kg:30040 [17:47:28]ConnectInit lk.salyk.kg [17:47:28]written 0, free lines is 4095 [17:47:29]Connected sock=10 [17:47:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3E DD 07 01 FB 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 2F CE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE F0 02 00 35 04 06 00 46 E8 C4 AE E5 97 D2 D8 C9 F0 4D B5 4D 46 [17:47:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 06 EC 47 00 CD 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE F0 02 00 F4 03 04 00 F2 72 1F 67 B6 04 01 00 00 78 82 88 D7 8F F7 B1 AF [17:47:29]CommunicateWithHost err = 0 [17:47:29]CheckOFDResponse [17:47:29]1017 (14) - 77093643461234 [17:47:29]1041 (16) - 0000000000871754 [17:47:29]1040 (4) - 192718 [17:47:29]1012 (4) - 28.10.2024 11:18 [17:47:29]1206 (1) - 0 [17:47:29]OFD Sender: Remove packet 192718 [17:47:29]ProducePacketName [17:47:29]name=ofd_packets/00192718 [17:47:29]NVStorageDeleteData [17:47:29]Write to MH i2c: 01 00 00 20 02 22 [17:47:29]Write i2c OK [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: 01 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: 01 07 00 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 AF 0C E4 [17:47:29]RasterBufferAndPrint [17:47:29]line [17:47:29]line [17:47:29]line [17:47:29]line [17:47:29]line [17:47:29]written 0, free lines is 3252 [17:47:29]MH_Cut [17:47:29]Write to MH i2c: D1 01 00 27 02 01 FB [17:47:29]Write i2c OK [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: D1 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: D1 01 00 [17:47:29]MH_I2C_Read... [17:47:29]Read from MH i2c: D1 01 00 27 02 00 FA [17:47:29]Write to MH i2c: 01 00 00 28 02 2A [17:47:29]Write i2c OK [17:47:29]MH_I2C_Read... [17:47:29]OFD Sender: No OFD packet to send [17:47:30]*** Cut start [17:47:30]*** Partial cut [17:47:30]*** CUTSNS_PIN = 1 [17:47:30]*** CUTSNS_PIN = 0 [17:47:30]*** Brake cut motor [17:47:30]Read from MH i2c: 01 [17:47:30]MH_I2C_Read... [17:47:30]*** Stop cut motor [17:47:30]*** Cut end [17:47:30]Read from MH i2c: 01 07 00 [17:47:30]MH_I2C_Read... [17:47:30]Read from MH i2c: 01 07 00 28 02 00 00 00 00 00 FF 0F 3F [17:47:30]process_action close_receipt done [17:47:30]requested_data is exist [17:47:30]produce_requested_data [17:47:30]requested_item fm.sn is exist - process it [17:47:30]wFMCommunicate request_size=4 [17:47:30]MH_SAM_APDU [17:47:30]CAPDU: 80 11 00 00 [17:47:30]Write to MH i2c: E2 08 00 29 02 80 11 00 00 00 00 00 00 A5 [17:47:30]Write i2c OK [17:47:30]MH_I2C_Read... [17:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:30]Read from MH i2c: E2 [17:47:30]MH_I2C_Read... [17:47:30]Read from MH i2c: E2 17 00 [17:47:30]MH_I2C_Read... [17:47:30]Read from MH i2c: E2 17 00 29 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F8 [17:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:47:30]wFMCommunicate OK [17:47:30]requested_item fd.num is exist - process it [17:47:30]SAM_PROTO_GetFieldsCounters [17:47:30]wFMCommunicate request_size=4 [17:47:30]MH_SAM_APDU [17:47:30]CAPDU: 80 13 00 00 [17:47:30]Write to MH i2c: E2 08 00 2A 02 80 13 00 00 00 00 00 00 A8 [17:47:30]Write i2c OK [17:47:30]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 62 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 62 00 2A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CE F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [17:47:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CE F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:31]wFMCommunicate OK [17:47:31]SAM_PROTO_GetFieldsCounters done [17:47:31]requested_item shift.num is exist - process it [17:47:31]requested_item shift.opened is exist - process it [17:47:31]req_shift_opened [17:47:31]FM_GetShiftState [17:47:31]SAM_PROTO_GetShiftState [17:47:31]wFMCommunicate request_size=4 [17:47:31]MH_SAM_APDU [17:47:31]CAPDU: 80 13 01 00 [17:47:31]Write to MH i2c: E2 08 00 2B 02 80 13 01 00 00 00 00 00 AA [17:47:31]Write i2c OK [17:47:31]MH_I2C_Read... [17:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:31]Read from MH i2c: E2 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 0E 00 [17:47:31]MH_I2C_Read... [17:47:31]Read from MH i2c: E2 0E 00 2B 02 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FA [17:47:31]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:47:31]wFMCommunicate OK [17:47:31]SAM_PROTO_GetShiftState done [17:47:31]FM_GetShiftState done [17:47:31]req_shift_opened done [17:47:31]requested_item shift.open_date is exist - process it [17:47:31]req_shift_open_date [17:47:31]req_shift_open_date done [17:47:31]produce_requested_data done [17:47:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192718,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:47:31]process_action_free close_receipt [17:47:31]json_value_free [17:47:31]json_value_free done [17:47:31]process_json_proto returns [17:47:31]Send response to host [17:47:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192718,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:47:31]free response buf [17:47:31]execute_script done [17:47:31]execute_script returns [17:47:31]free content buf [17:47:31]Sock 8.Close socket [17:47:31]Sock 8.Thread stoped [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]accept exits with 9 [17:50:09]New connection [17:50:09]New thread 3066658148 created [17:50:09]Thread 3066801508 joined [17:50:09]Waiting for new connection... [17:50:09] Sock 9.Parse request [17:50:09]Sock 9.Check first char [17:50:09]Sock 9.First char is OK [17:50:09]request: POST /json_proto HTTP/1.0 [17:50:09]Method: POST [17:50:09]URL: /json_proto [17:50:09]Method is POST - this is cgi request [17:50:09]url: /json_proto [17:50:09]query_string will be loaded in cgi processing [17:50:09]execute_cgi json_proto POST (null) [17:50:09]execute_cgi path=json_proto method=POST [17:50:09]POST find Content-Length [17:50:09]Host: 172.17.63.131:8080 [17:50:09]Content-Length: 681 [17:50:09]Content-Type: application/json [17:50:09] [17:50:09]POST finish read [17:50:09]Found Content-Length = 681 [17:50:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:09]execute_script... [17:50: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)32045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:09]POST & json_proto [17:50:09]process_json_proto [17:50:09]json parsed OK: [17:50:09]protocol is kg_v1.0 [17:50:09]action value=close_receipt [17:50:09]process_action close_receipt [17:50:09]cmd_close_receipt [17:50:09]MH_GetDate [17:50:09]Write to MH i2c: F0 00 00 2C 02 1D [17:50:09]Write i2c OK [17:50:09]MH_I2C_Read... [17:50:09]Read from MH i2c: F0 [17:50:09]MH_I2C_Read... [17:50:09]Read from MH i2c: F0 09 00 [17:50:09]MH_I2C_Read... [17:50:09]Read from MH i2c: F0 09 00 2C 02 00 D1 CE 1F 67 22 05 6E 64 44 [17:50:09]GetLastDocTimeStamp 1730137647 [17:50:09]current date 1730137809 [17:50:09]FM_GetShiftState [17:50:09]SAM_PROTO_GetShiftState [17:50:09]wFMCommunicate request_size=4 [17:50:09]MH_SAM_APDU [17:50:09]CAPDU: 80 13 01 00 [17:50:09]Write to MH i2c: E2 08 00 2D 02 80 13 01 00 00 00 00 00 AC [17:50:09]Write i2c OK [17:50:09]MH_I2C_Read... [17:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:09]Read from MH i2c: E2 [17:50:09]MH_I2C_Read... [17:50:09]Read from MH i2c: E2 0E 00 [17:50:09]MH_I2C_Read... [17:50:09]Read from MH i2c: E2 0E 00 2D 02 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FC [17:50:09]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:50:09]wFMCommunicate OK [17:50:09]SAM_PROTO_GetShiftState done [17:50:09]FM_GetShiftState done [17:50:09]opened in 1730075620 [17:50:09]opened+sec_in_day 1730162020 [17:50:09]quantity*price = 100015 [17:50:09]sum+1 = 100017 [17:50:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 267 28.10.2024 17:50 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192719 ФПД: 199166314888756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T175010&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192719&fm=199166314888756&tin=02508201610067®Number=0000000000091776&sum=100000 [17:50:10]StoreToDocumentArchive [17:50:10]shift 543 fd 192719 [17:50:10]save to /storage/0543/doc_00192719 [17:50:10]save last doc name /storage/0543/doc_00192719 to /storage/kkm_last_doc_name [17:50:10]save OK [17:50:10]Clear old archive folders... [17:50:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:50:10]tlvbuf is 00EE4B60 [17:50:10]SAM_PROTO_ClearQueue [17:50:10]wFMCommunicate request_size=4 [17:50:10]MH_SAM_APDU [17:50:10]CAPDU: 80 09 00 00 [17:50:10]Write to MH i2c: E2 08 00 3A 02 80 09 00 00 00 00 00 00 AE [17:50:10]Write i2c OK [17:50:10]MH_I2C_Read... [17:50:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:10]Read from MH i2c: E2 [17:50:10]MH_I2C_Read... [17:50:10]Read from MH i2c: E2 03 00 [17:50:10]MH_I2C_Read... [17:50:10]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [17:50:10]RAPDU: 90 00 [17:50:10]wFMCommunicate OK [17:50:10]SAM_PROTO_ClearQueue done [17:50:10]KKMCreateOFDPacket [17:50:10]OFDProtocolAddRootSTLVToBuf [17:50:10]FM_MakeSignedData [17:50:10]FM_MakeSignedData [17:50:10]SAM_PROTO_SignData [17:50:10]wFMCommunicate request_size=4 [17:50:10]MH_SAM_APDU [17:50:10]CAPDU: 80 0D 01 02 [17:50:10]Write to MH i2c: E2 08 00 3B 02 80 0D 01 02 00 00 00 00 B6 [17:50:10]Write i2c OK [17:50:10]MH_I2C_Read... [17:50:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:10]Read from MH i2c: E2 [17:50:10]MH_I2C_Read... [17:50:10]Read from MH i2c: E2 03 00 [17:50:10]MH_I2C_Read... [17:50:10]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [17:50:10]RAPDU: 90 00 [17:50:10]wFMCommunicate OK [17:50:10]wFMCommunicate request_size=255 [17:50:10]MH_SAM_APDU [17:50:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 D2 CE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF F0 02 00 35 04 06 00 B5 [17:50:10]Write to MH i2c: E2 02 01 3C 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 D2 CE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF F0 02 00 35 04 06 00 B5 00 00 0D [17:50:10]Write i2c OK [17:50:10]MH_I2C_Read... [17:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:11]Read from MH i2c: E2 [17:50:11]MH_I2C_Read... [17:50:11]Read from MH i2c: E2 03 00 [17:50:11]MH_I2C_Read... [17:50:11]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [17:50:11]RAPDU: 90 00 [17:50:11]wFMCommunicate OK [17:50:11]wFMCommunicate request_size=10 [17:50:11]MH_SAM_APDU [17:50:11]CAPDU: 80 0D 02 02 05 24 05 73 3E 34 [17:50:11]Write to MH i2c: E2 0D 00 3D 02 80 0D 02 02 05 00 24 05 73 3E 34 00 00 D1 [17:50:11]Write i2c OK [17:50:11]MH_I2C_Read... [17:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:11]Read from MH i2c: E2 [17:50:11]MH_I2C_Read... [17:50:11]Read from MH i2c: E2 03 00 [17:50:11]MH_I2C_Read... [17:50:11]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [17:50:11]RAPDU: 90 00 [17:50:11]wFMCommunicate OK [17:50:11]wFMCommunicate request_size=4 [17:50:11]MH_SAM_APDU [17:50:11]CAPDU: 80 0D 03 02 [17:50:11]Write to MH i2c: E2 08 00 3E 02 80 0D 03 02 00 00 00 00 BB [17:50:11]Write i2c OK [17:50:11]MH_I2C_Read... [17:50:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:11]Read from MH i2c: E2 [17:50:11]MH_I2C_Read... [17:50:11]Read from MH i2c: E2 0B 00 [17:50:11]MH_I2C_Read... [17:50:11]Read from MH i2c: E2 0B 00 3E 02 00 BD 7B BB D1 FA 4C 4E BA 90 00 CE [17:50:11]RAPDU: BD 7B BB D1 FA 4C 4E BA 90 00 [17:50:11]wFMCommunicate OK [17:50:11]SAM_PROTO_SignData done [17:50:11]FM_MakeSignedData done [17:50:11]CreateOFDProtocolMessage [17:50:11]wFMCommunicate request_size=4 [17:50:11]MH_SAM_APDU [17:50:11]CAPDU: 80 11 00 00 [17:50:11]Write to MH i2c: E2 08 00 3F 02 80 11 00 00 00 00 00 00 BB [17:50:11]Write i2c OK [17:50:11]MH_I2C_Read... [17:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:11]Read from MH i2c: E2 [17:50:11]MH_I2C_Read... [17:50:11]Read from MH i2c: E2 17 00 [17:50:11]MH_I2C_Read... [17:50:11]Read from MH i2c: E2 17 00 3F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0E [17:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:50:11]wFMCommunicate OK [17:50:11]CreateOFDProtocolMessage done [17:50:11]OFDSenderStorePacket 192719 [17:50:11]StoreOFDPacket docnum=192719 [17:50:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6B 39 07 01 AC 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 D2 CE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF F0 02 00 35 04 06 00 B5 24 05 73 3E 34 BD 7B BB D1 FA 4C 4E BA [17:50:11]CheckFolder [17:50:11]dirname=/storage/ofd_packets [17:50:11]CheckFolder done [17:50:11]ProducePacketName [17:50:11]name=ofd_packets/00192719 [17:50:11]NVStorageSaveData ofd_packets/00192719 [17:50:11]File name is /storage/ofd_packets/00192719 [17:50:11]Write 301 bytes [17:50:11]NVStorageSaveData done [17:50:11]OFDSenderStorePacket done [17:50:11]KKMCreateOFDPacket done [17:50:11]NVStorageSaveData kkm_last_timestamp [17:50:11]File name is /storage/kkm_last_timestamp [17:50:11]Write 4 bytes [17:50:11]NVStorageSaveData done [17:50:11]ExternCall_PrintAddStr [17:50:11]wPrintStart [17:50:11]Write to MH i2c: 01 00 00 40 02 42 [17:50:11]Write i2c OK [17:50:11]MH_I2C_Read... [17:50:11]Read from MH i2c: 01 [17:50:11]MH_I2C_Read... [17:50:11]Read from MH i2c: 01 07 00 [17:50:11]MH_I2C_Read... [17:50:11]Read from MH i2c: 01 07 00 40 02 00 00 00 00 00 FF 0F 57 [17:50:11]RasterBufferAndPrint [17:50:11]line Счет N : (1)32045 [17:50:11]line ИНН: 02508201610067 [17:50:11]line Контрольно-Кассовый Чек [17:50:11]line ПРОДАЖА [17:50:11]line ТРК (МРК, ГНК) : 21 [17:50:11]line Товар: 2710124130 [17:50:11]line Аи-92-К-5 [17:50:11]line 14.950 * 66.90 [17:50:11]line = 1000.16 [17:50:11]line НДС 12% НСП 1% [17:50:11]line > о реализуемом товаре [17:50:11]line ОКРУГЛЕНИЕ: -0.16 [17:50:11]line ИТОГО: 1000.00 [17:50:11]line Внесено: 1000.00 [17:50:11]line СДАЧА: 0.00 [17:50:11]line НСП 1% : 8.85 [17:50:11]line НДС 12% : 106.21 [17:50:11]line Наличными: 1000.00 [17:50:11]line Безнал.: 0.00 [17:50:11]line Место: АЗС № 170 "Партнер Нефть" [17:50:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:50:11]line СНО: Общий режим [17:50:11]line Чек 267 28.10.2024 17:50 [17:50:11]line Смена: 543 ФФД: 1.0 [17:50:11]line ЗНМ: 0300000110 [17:50:11]line РНМ: 0000000000091776 [17:50:11]line Версия ККМ: 001 [17:50:11]line ФМ: 0000000000871754 [17:50:11]line ФД: 192719 [17:50:11]line ФПД: 199166314888756 [17:50:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T175010&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192719&fm=199166314888756&tin=02508201610067®Number=0000000000091776&sum=100000 [17:50:11]OFD Sender: Processing packet 192719 [packets to send 75, broken 74] [17:50:11]ProducePacketName [17:50:11]name=ofd_packets/00192719 [17:50:11]OFD Sender: To server: pG, [17:50:11]CommunicateWithHost lk.salyk.kg:30040 [17:50:11]ConnectInit lk.salyk.kg [17:50:11]written 0, free lines is 4095 [17:50:11]Connected sock=10 [17:50:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6B 39 07 01 AC 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 D2 CE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF F0 02 00 35 04 06 00 B5 24 05 73 3E 34 BD 7B BB D1 FA 4C 4E BA [17:50:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DD EC 47 00 BD 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 31 37 35 34 10 04 04 00 CF F0 02 00 F4 03 04 00 95 73 1F 67 B6 04 01 00 00 78 74 4C EF DA 32 3A 90 [17:50:11]CommunicateWithHost err = 0 [17:50:11]CheckOFDResponse [17:50:11]1017 (14) - 77093643461234 [17:50:11]1041 (16) - 0000000000871754 [17:50:11]1040 (4) - 192719 [17:50:11]1012 (4) - 28.10.2024 11:20 [17:50:11]1206 (1) - 0 [17:50:11]OFD Sender: Remove packet 192719 [17:50:11]ProducePacketName [17:50:11]name=ofd_packets/00192719 [17:50:11]NVStorageDeleteData [17:50:12]Write to MH i2c: 01 00 00 6B 02 6D [17:50:12]Write i2c OK [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: 01 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: 01 07 00 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: 01 07 00 6B 02 00 00 00 00 00 B7 0C 37 [17:50:12]RasterBufferAndPrint [17:50:12]line [17:50:12]line [17:50:12]line [17:50:12]line [17:50:12]line [17:50:12]written 0, free lines is 3260 [17:50:12]MH_Cut [17:50:12]Write to MH i2c: D1 01 00 72 02 01 46 [17:50:12]Write i2c OK [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: D1 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: D1 01 00 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: D1 01 00 72 02 00 45 [17:50:12]Write to MH i2c: 01 00 00 73 02 75 [17:50:12]Write i2c OK [17:50:12]MH_I2C_Read... [17:50:12]OFD Sender: No OFD packet to send [17:50:12]*** Cut start [17:50:12]*** Partial cut [17:50:12]*** CUTSNS_PIN = 1 [17:50:12]*** CUTSNS_PIN = 0 [17:50:13]*** Brake cut motor [17:50:13]Read from MH i2c: 01 [17:50:13]MH_I2C_Read... [17:50:13]*** Stop cut motor [17:50:13]*** Cut end [17:50:13]Read from MH i2c: 01 07 00 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: 01 07 00 73 02 00 00 00 00 00 FF 0F 8A [17:50:13]process_action close_receipt done [17:50:13]requested_data is exist [17:50:13]produce_requested_data [17:50:13]requested_item fm.sn is exist - process it [17:50:13]wFMCommunicate request_size=4 [17:50:13]MH_SAM_APDU [17:50:13]CAPDU: 80 11 00 00 [17:50:13]Write to MH i2c: E2 08 00 74 02 80 11 00 00 00 00 00 00 F0 [17:50:13]Write i2c OK [17:50:13]MH_I2C_Read... [17:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:13]Read from MH i2c: E2 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 17 00 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 17 00 74 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 43 [17:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:50:13]wFMCommunicate OK [17:50:13]requested_item fd.num is exist - process it [17:50:13]SAM_PROTO_GetFieldsCounters [17:50:13]wFMCommunicate request_size=4 [17:50:13]MH_SAM_APDU [17:50:13]CAPDU: 80 13 00 00 [17:50:13]Write to MH i2c: E2 08 00 75 02 80 13 00 00 00 00 00 00 F3 [17:50:13]Write i2c OK [17:50:13]MH_I2C_Read... [17:50:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:13]Read from MH i2c: E2 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 62 00 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 62 00 75 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CF F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 1F [17:50:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CF F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:13]wFMCommunicate OK [17:50:13]SAM_PROTO_GetFieldsCounters done [17:50:13]requested_item shift.num is exist - process it [17:50:13]requested_item shift.opened is exist - process it [17:50:13]req_shift_opened [17:50:13]FM_GetShiftState [17:50:13]SAM_PROTO_GetShiftState [17:50:13]wFMCommunicate request_size=4 [17:50:13]MH_SAM_APDU [17:50:13]CAPDU: 80 13 01 00 [17:50:13]Write to MH i2c: E2 08 00 76 02 80 13 01 00 00 00 00 00 F5 [17:50:13]Write i2c OK [17:50:13]MH_I2C_Read... [17:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:13]Read from MH i2c: E2 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 0E 00 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 0E 00 76 02 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 45 [17:50:13]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:50:13]wFMCommunicate OK [17:50:13]SAM_PROTO_GetShiftState done [17:50:13]FM_GetShiftState done [17:50:13]req_shift_opened done [17:50:13]requested_item shift.open_date is exist - process it [17:50:13]req_shift_open_date [17:50:13]req_shift_open_date done [17:50:13]produce_requested_data done [17:50:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192719,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:50:13]process_action_free close_receipt [17:50:13]json_value_free [17:50:13]json_value_free done [17:50:13]process_json_proto returns [17:50:13]Send response to host [17:50:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192719,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:50:13]free response buf [17:50:13]execute_script done [17:50:13]execute_script returns [17:50:13]free content buf [17:50:13]Sock 9.Close socket [17:50:13]Sock 9.Thread stoped [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:04]accept exits with 8 [17:53:04]New connection [17:53:04]New thread 3066801508 created [17:53:04]Thread 3066658148 joined [17:53:04]Waiting for new connection... [17:53:04] Sock 8.Parse request [17:53:04]Sock 8.Check first char [17:53:04]Sock 8.First char is OK [17:53:04]request: POST /json_proto HTTP/1.0 [17:53:04]Method: POST [17:53:04]URL: /json_proto [17:53:04]Method is POST - this is cgi request [17:53:04]url: /json_proto [17:53:04]query_string will be loaded in cgi processing [17:53:04]execute_cgi json_proto POST (null) [17:53:04]execute_cgi path=json_proto method=POST [17:53:04]POST find Content-Length [17:53:04]Host: 172.17.63.131:8080 [17:53:04]Content-Length: 676 [17:53:04]Content-Type: application/json [17:53:04] [17:53:04]POST finish read [17:53:04]Found Content-Length = 676 [17:53:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:04]execute_script... [17:53:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:04]POST & json_proto [17:53:04]process_json_proto [17:53:04]json parsed OK: [17:53:04]protocol is kg_v1.0 [17:53:04]action value=close_receipt [17:53:04]process_action close_receipt [17:53:04]cmd_close_receipt [17:53:04]MH_GetDate [17:53:04]Write to MH i2c: F0 00 00 77 02 68 [17:53:04]Write i2c OK [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: F0 [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: F0 09 00 [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: F0 09 00 77 02 00 81 CF 1F 67 22 05 6E 64 40 [17:53:04]GetLastDocTimeStamp 1730137810 [17:53:04]current date 1730137985 [17:53:04]FM_GetShiftState [17:53:04]SAM_PROTO_GetShiftState [17:53:04]wFMCommunicate request_size=4 [17:53:04]MH_SAM_APDU [17:53:04]CAPDU: 80 13 01 00 [17:53:04]Write to MH i2c: E2 08 00 78 02 80 13 01 00 00 00 00 00 F7 [17:53:04]Write i2c OK [17:53:04]MH_I2C_Read... [17:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:04]Read from MH i2c: E2 [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: E2 0E 00 [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: E2 0E 00 78 02 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 47 [17:53:04]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:53:04]wFMCommunicate OK [17:53:04]SAM_PROTO_GetShiftState done [17:53:04]FM_GetShiftState done [17:53:04]opened in 1730075620 [17:53:04]opened+sec_in_day 1730162020 [17:53:04]quantity*price = 30038 [17:53:04]sum+1 = 30039 [17:53:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 268 28.10.2024 17:53 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192720 ФПД: 249238757139316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T175305&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192720&fm=249238757139316&tin=02508201610067®Number=0000000000091776&sum=30000 [17:53:05]StoreToDocumentArchive [17:53:05]shift 543 fd 192720 [17:53:05]save to /storage/0543/doc_00192720 [17:53:05]save last doc name /storage/0543/doc_00192720 to /storage/kkm_last_doc_name [17:53:05]save OK [17:53:05]Clear old archive folders... [17:53:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:05]tlvbuf is 00EEA100 [17:53:05]SAM_PROTO_ClearQueue [17:53:05]wFMCommunicate request_size=4 [17:53:05]MH_SAM_APDU [17:53:05]CAPDU: 80 09 00 00 [17:53:05]Write to MH i2c: E2 08 00 85 02 80 09 00 00 00 00 00 00 F9 [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:06]Read from MH i2c: E2 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 03 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [17:53:06]RAPDU: 90 00 [17:53:06]wFMCommunicate OK [17:53:06]SAM_PROTO_ClearQueue done [17:53:06]KKMCreateOFDPacket [17:53:06]OFDProtocolAddRootSTLVToBuf [17:53:06]FM_MakeSignedData [17:53:06]FM_MakeSignedData [17:53:06]SAM_PROTO_SignData [17:53:06]wFMCommunicate request_size=4 [17:53:06]MH_SAM_APDU [17:53:06]CAPDU: 80 0D 01 02 [17:53:06]Write to MH i2c: E2 08 00 86 02 80 0D 01 02 00 00 00 00 01 [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:06]Read from MH i2c: E2 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 03 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [17:53:06]RAPDU: 90 00 [17:53:06]wFMCommunicate OK [17:53:06]wFMCommunicate request_size=255 [17:53:06]MH_SAM_APDU [17:53:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 81 CF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 F0 02 00 35 04 06 00 E2 [17:53:06]Write to MH i2c: E2 02 01 87 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 81 CF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 F0 02 00 35 04 06 00 E2 00 00 31 [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:06]Read from MH i2c: E2 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 03 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [17:53:06]RAPDU: 90 00 [17:53:06]wFMCommunicate OK [17:53:06]wFMCommunicate request_size=10 [17:53:06]MH_SAM_APDU [17:53:06]CAPDU: 80 0D 02 02 05 AE 6B 95 63 74 [17:53:06]Write to MH i2c: E2 0D 00 88 02 80 0D 02 02 05 00 AE 6B 95 63 74 00 00 93 [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:06]Read from MH i2c: E2 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 03 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [17:53:06]RAPDU: 90 00 [17:53:06]wFMCommunicate OK [17:53:06]wFMCommunicate request_size=4 [17:53:06]MH_SAM_APDU [17:53:06]CAPDU: 80 0D 03 02 [17:53:06]Write to MH i2c: E2 08 00 89 02 80 0D 03 02 00 00 00 00 06 [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:06]Read from MH i2c: E2 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 0B 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 0B 00 89 02 00 B6 5C 06 C6 D4 14 FE F8 90 00 C3 [17:53:06]RAPDU: B6 5C 06 C6 D4 14 FE F8 90 00 [17:53:06]wFMCommunicate OK [17:53:06]SAM_PROTO_SignData done [17:53:06]FM_MakeSignedData done [17:53:06]CreateOFDProtocolMessage [17:53:06]wFMCommunicate request_size=4 [17:53:06]MH_SAM_APDU [17:53:06]CAPDU: 80 11 00 00 [17:53:06]Write to MH i2c: E2 08 00 8A 02 80 11 00 00 00 00 00 00 06 [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:06]Read from MH i2c: E2 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 17 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 17 00 8A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 59 [17:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:53:06]wFMCommunicate OK [17:53:06]CreateOFDProtocolMessage done [17:53:06]OFDSenderStorePacket 192720 [17:53:06]StoreOFDPacket docnum=192720 [17:53:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7D CD 07 01 04 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 81 CF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 F0 02 00 35 04 06 00 E2 AE 6B 95 63 74 B6 5C 06 C6 D4 14 FE F8 [17:53:06]CheckFolder [17:53:06]dirname=/storage/ofd_packets [17:53:06]CheckFolder done [17:53:06]ProducePacketName [17:53:06]name=ofd_packets/00192720 [17:53:06]NVStorageSaveData ofd_packets/00192720 [17:53:06]File name is /storage/ofd_packets/00192720 [17:53:06]Write 301 bytes [17:53:06]NVStorageSaveData done [17:53:06]OFDSenderStorePacket done [17:53:06]KKMCreateOFDPacket done [17:53:06]NVStorageSaveData kkm_last_timestamp [17:53:06]File name is /storage/kkm_last_timestamp [17:53:06]Write 4 bytes [17:53:06]NVStorageSaveData done [17:53:06]ExternCall_PrintAddStr [17:53:06]wPrintStart [17:53:06]Write to MH i2c: 01 00 00 8B 02 8D [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: 01 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: 01 07 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: 01 07 00 8B 02 00 00 00 00 00 FF 0F A2 [17:53:06]RasterBufferAndPrint [17:53:06]line Счет N : (1)32046 [17:53:06]line ИНН: 02508201610067 [17:53:06]line Контрольно-Кассовый Чек [17:53:06]line ПРОДАЖА [17:53:06]line ТРК (МРК, ГНК) : 21 [17:53:06]line Товар: 2710124130 [17:53:06]line Аи-92-К-5 [17:53:06]line 4.490 * 66.90 [17:53:06]line = 300.38 [17:53:06]line НДС 12% НСП 1% [17:53:06]line > о реализуемом товаре [17:53:06]line ОКРУГЛЕНИЕ: -0.38 [17:53:06]line ИТОГО: 300.00 [17:53:06]line Внесено: 300.00 [17:53:06]line СДАЧА: 0.00 [17:53:06]line НСП 1% : 2.66 [17:53:06]line НДС 12% : 31.90 [17:53:06]line Наличными: 300.00 [17:53:06]line Безнал.: 0.00 [17:53:06]line Место: АЗС № 170 "Партнер Нефть" [17:53:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:53:06]line СНО: Общий режим [17:53:06]line Чек 268 28.10.2024 17:53 [17:53:06]line Смена: 543 ФФД: 1.0 [17:53:06]line ЗНМ: 0300000110 [17:53:06]line РНМ: 0000000000091776 [17:53:06]line Версия ККМ: 001 [17:53:06]line ФМ: 0000000000871754 [17:53:06]line ФД: 192720 [17:53:06]line ФПД: 249238757139316 [17:53:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T175305&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192720&fm=249238757139316&tin=02508201610067®Number=0000000000091776&sum=30000 [17:53:06]OFD Sender: Processing packet 192720 [packets to send 75, broken 74] [17:53:06]ProducePacketName [17:53:06]name=ofd_packets/00192720 [17:53:06]OFD Sender: To server: pG, [17:53:06]CommunicateWithHost lk.salyk.kg:30040 [17:53:06]ConnectInit lk.salyk.kg [17:53:06]written 0, free lines is 4095 [17:53:06]Connected sock=11 [17:53:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7D CD 07 01 04 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 81 CF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 F0 02 00 35 04 06 00 E2 AE 6B 95 63 74 B6 5C 06 C6 D4 14 FE F8 [17:53:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 22 F7 47 00 6F 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 F0 02 00 F4 03 04 00 44 74 1F 67 B6 04 01 00 00 E4 7E AF 76 06 27 AB C6 [17:53:07]CommunicateWithHost err = 0 [17:53:07]CheckOFDResponse [17:53:07]1017 (14) - 77093643461234 [17:53:07]1041 (16) - 0000000000871754 [17:53:07]1040 (4) - 192720 [17:53:07]1012 (4) - 28.10.2024 11:23 [17:53:07]1206 (1) - 0 [17:53:07]OFD Sender: Remove packet 192720 [17:53:07]ProducePacketName [17:53:07]name=ofd_packets/00192720 [17:53:07]NVStorageDeleteData [17:53:07]Write to MH i2c: 01 00 00 B6 02 B8 [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: 01 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: 01 07 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 BC 0C 87 [17:53:07]RasterBufferAndPrint [17:53:07]line [17:53:07]line [17:53:07]line [17:53:07]line [17:53:07]line [17:53:07]written 0, free lines is 3268 [17:53:07]MH_Cut [17:53:07]Write to MH i2c: D1 01 00 BD 02 01 91 [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: D1 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: D1 01 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: D1 01 00 BD 02 00 90 [17:53:07]Write to MH i2c: 01 00 00 BE 02 C0 [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]OFD Sender: No OFD packet to send [17:53:08]*** Cut start [17:53:08]*** Partial cut [17:53:08]*** CUTSNS_PIN = 1 [17:53:08]*** CUTSNS_PIN = 0 [17:53:08]*** Brake cut motor [17:53:08]Read from MH i2c: 01 [17:53:08]MH_I2C_Read... [17:53:08]*** Stop cut motor [17:53:08]*** Cut end [17:53:08]Read from MH i2c: 01 07 00 [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: 01 07 00 BE 02 00 00 00 00 00 FF 0F D5 [17:53:08]process_action close_receipt done [17:53:08]requested_data is exist [17:53:08]produce_requested_data [17:53:08]requested_item fm.sn is exist - process it [17:53:08]wFMCommunicate request_size=4 [17:53:08]MH_SAM_APDU [17:53:08]CAPDU: 80 11 00 00 [17:53:08]Write to MH i2c: E2 08 00 BF 02 80 11 00 00 00 00 00 00 3B [17:53:08]Write i2c OK [17:53:08]MH_I2C_Read... [17:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:08]Read from MH i2c: E2 [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: E2 17 00 [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: E2 17 00 BF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8E [17:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:53:08]wFMCommunicate OK [17:53:08]requested_item fd.num is exist - process it [17:53:08]SAM_PROTO_GetFieldsCounters [17:53:08]wFMCommunicate request_size=4 [17:53:08]MH_SAM_APDU [17:53:08]CAPDU: 80 13 00 00 [17:53:08]Write to MH i2c: E2 08 00 C0 02 80 13 00 00 00 00 00 00 3E [17:53:08]Write i2c OK [17:53:08]MH_I2C_Read... [17:53:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:08]Read from MH i2c: E2 [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: E2 62 00 [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: E2 62 00 C0 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D0 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [17:53:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D0 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:08]wFMCommunicate OK [17:53:08]SAM_PROTO_GetFieldsCounters done [17:53:08]requested_item shift.num is exist - process it [17:53:08]requested_item shift.opened is exist - process it [17:53:08]req_shift_opened [17:53:08]FM_GetShiftState [17:53:08]SAM_PROTO_GetShiftState [17:53:08]wFMCommunicate request_size=4 [17:53:08]MH_SAM_APDU [17:53:08]CAPDU: 80 13 01 00 [17:53:08]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [17:53:08]Write i2c OK [17:53:08]MH_I2C_Read... [17:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:08]Read from MH i2c: E2 [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: E2 0E 00 [17:53:08]MH_I2C_Read... [17:53:08]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 90 [17:53:08]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:53:08]wFMCommunicate OK [17:53:08]SAM_PROTO_GetShiftState done [17:53:08]FM_GetShiftState done [17:53:08]req_shift_opened done [17:53:08]requested_item shift.open_date is exist - process it [17:53:08]req_shift_open_date [17:53:08]req_shift_open_date done [17:53:08]produce_requested_data done [17:53:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192720,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:53:08]process_action_free close_receipt [17:53:08]json_value_free [17:53:08]json_value_free done [17:53:08]process_json_proto returns [17:53:08]Send response to host [17:53:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192720,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:53:08]free response buf [17:53:08]execute_script done [17:53:08]execute_script returns [17:53:08]free content buf [17:53:08]Sock 8.Close socket [17:53:08]Sock 8.Thread stoped [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:05]accept exits with 9 [17:55:05]New connection [17:55:05]New thread 3066658148 created [17:55:05]Thread 3066801508 joined [17:55:05]Waiting for new connection... [17:55:05] Sock 9.Parse request [17:55:05]Sock 9.Check first char [17:55:05]Sock 9.First char is OK [17:55:05]request: POST /json_proto HTTP/1.0 [17:55:05]Method: POST [17:55:05]URL: /json_proto [17:55:05]Method is POST - this is cgi request [17:55:05]url: /json_proto [17:55:05]query_string will be loaded in cgi processing [17:55:05]execute_cgi json_proto POST (null) [17:55:05]execute_cgi path=json_proto method=POST [17:55:05]POST find Content-Length [17:55:05]Host: 172.17.63.131:8080 [17:55:05]Content-Length: 676 [17:55:05]Content-Type: application/json [17:55:05] [17:55:05]POST finish read [17:55:05]Found Content-Length = 676 [17:55:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:05]execute_script... [17:55: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)32047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:05]POST & json_proto [17:55:05]process_json_proto [17:55:05]json parsed OK: [17:55:05]protocol is kg_v1.0 [17:55:05]action value=close_receipt [17:55:05]process_action close_receipt [17:55:05]cmd_close_receipt [17:55:05]MH_GetDate [17:55:05]Write to MH i2c: F0 00 00 C2 02 B3 [17:55:05]Write i2c OK [17:55:05]MH_I2C_Read... [17:55:05]Read from MH i2c: F0 [17:55:05]MH_I2C_Read... [17:55:05]Read from MH i2c: F0 09 00 [17:55:05]MH_I2C_Read... [17:55:05]Read from MH i2c: F0 09 00 C2 02 00 F9 CF 1F 67 22 05 6E 64 03 [17:55:05]GetLastDocTimeStamp 1730137985 [17:55:05]current date 1730138105 [17:55:05]FM_GetShiftState [17:55:05]SAM_PROTO_GetShiftState [17:55:05]wFMCommunicate request_size=4 [17:55:05]MH_SAM_APDU [17:55:05]CAPDU: 80 13 01 00 [17:55:05]Write to MH i2c: E2 08 00 C3 02 80 13 01 00 00 00 00 00 42 [17:55:05]Write i2c OK [17:55:05]MH_I2C_Read... [17:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:05]Read from MH i2c: E2 [17:55:05]MH_I2C_Read... [17:55:05]Read from MH i2c: E2 0E 00 [17:55:05]MH_I2C_Read... [17:55:05]Read from MH i2c: E2 0E 00 C3 02 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 92 [17:55:05]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:55:05]wFMCommunicate OK [17:55:05]SAM_PROTO_GetShiftState done [17:55:05]FM_GetShiftState done [17:55:05]opened in 1730075620 [17:55:05]opened+sec_in_day 1730162020 [17:55:05]quantity*price = 25020 [17:55:05]sum+1 = 25022 [17:55:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 269 28.10.2024 17:55 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192721 ФПД: 47680171745610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T175505&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192721&fm=47680171745610&tin=02508201610067®Number=0000000000091776&sum=25000 [17:55:06]StoreToDocumentArchive [17:55:06]shift 543 fd 192721 [17:55:06]save to /storage/0543/doc_00192721 [17:55:06]save last doc name /storage/0543/doc_00192721 to /storage/kkm_last_doc_name [17:55:06]save OK [17:55:06]Clear old archive folders... [17:55:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:06]tlvbuf is 00FA9BC0 [17:55:06]SAM_PROTO_ClearQueue [17:55:06]wFMCommunicate request_size=4 [17:55:06]MH_SAM_APDU [17:55:06]CAPDU: 80 09 00 00 [17:55:06]Write to MH i2c: E2 08 00 D0 02 80 09 00 00 00 00 00 00 44 [17:55:06]Write i2c OK [17:55:06]MH_I2C_Read... [17:55:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:06]Read from MH i2c: E2 [17:55:06]MH_I2C_Read... [17:55:06]Read from MH i2c: E2 03 00 [17:55:06]MH_I2C_Read... [17:55:06]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [17:55:06]RAPDU: 90 00 [17:55:06]wFMCommunicate OK [17:55:06]SAM_PROTO_ClearQueue done [17:55:06]KKMCreateOFDPacket [17:55:06]OFDProtocolAddRootSTLVToBuf [17:55:06]FM_MakeSignedData [17:55:06]FM_MakeSignedData [17:55:06]SAM_PROTO_SignData [17:55:06]wFMCommunicate request_size=4 [17:55:06]MH_SAM_APDU [17:55:06]CAPDU: 80 0D 01 02 [17:55:06]Write to MH i2c: E2 08 00 D1 02 80 0D 01 02 00 00 00 00 4C [17:55:06]Write i2c OK [17:55:06]MH_I2C_Read... [17:55:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:06]Read from MH i2c: E2 [17:55:06]MH_I2C_Read... [17:55:06]Read from MH i2c: E2 03 00 [17:55:06]MH_I2C_Read... [17:55:06]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [17:55:06]RAPDU: 90 00 [17:55:06]wFMCommunicate OK [17:55:06]wFMCommunicate request_size=255 [17:55:06]MH_SAM_APDU [17:55: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 F9 CF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 F0 02 00 35 04 06 00 2B [17:55:06]Write to MH i2c: E2 02 01 D2 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 F9 CF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 F0 02 00 35 04 06 00 2B 00 00 24 [17:55:06]Write i2c OK [17:55:06]MH_I2C_Read... [17:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:06]Read from MH i2c: E2 [17:55:06]MH_I2C_Read... [17:55:06]Read from MH i2c: E2 03 00 [17:55:06]MH_I2C_Read... [17:55:06]Read from MH i2c: E2 03 00 D2 02 00 90 00 48 [17:55:06]RAPDU: 90 00 [17:55:06]wFMCommunicate OK [17:55:06]wFMCommunicate request_size=10 [17:55:06]MH_SAM_APDU [17:55:06]CAPDU: 80 0D 02 02 05 5D 67 B3 21 4A [17:55:06]Write to MH i2c: E2 0D 00 D3 02 80 0D 02 02 05 00 5D 67 B3 21 4A 00 00 3B [17:55:06]Write i2c OK [17:55:06]MH_I2C_Read... [17:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:06]Read from MH i2c: E2 [17:55:06]MH_I2C_Read... [17:55:06]Read from MH i2c: E2 03 00 [17:55:06]MH_I2C_Read... [17:55:06]Read from MH i2c: E2 03 00 D3 02 00 90 00 49 [17:55:06]RAPDU: 90 00 [17:55:06]wFMCommunicate OK [17:55:06]wFMCommunicate request_size=4 [17:55:06]MH_SAM_APDU [17:55:06]CAPDU: 80 0D 03 02 [17:55:06]Write to MH i2c: E2 08 00 D4 02 80 0D 03 02 00 00 00 00 51 [17:55:06]Write i2c OK [17:55:06]MH_I2C_Read... [17:55:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:06]Read from MH i2c: E2 [17:55:06]MH_I2C_Read... [17:55:06]Read from MH i2c: E2 0B 00 [17:55:06]MH_I2C_Read... [17:55:06]Read from MH i2c: E2 0B 00 D4 02 00 CB BC 66 5A 1D 4F 13 E1 90 00 F9 [17:55:06]RAPDU: CB BC 66 5A 1D 4F 13 E1 90 00 [17:55:06]wFMCommunicate OK [17:55:06]SAM_PROTO_SignData done [17:55:06]FM_MakeSignedData done [17:55:06]CreateOFDProtocolMessage [17:55:06]wFMCommunicate request_size=4 [17:55:06]MH_SAM_APDU [17:55:06]CAPDU: 80 11 00 00 [17:55:06]Write to MH i2c: E2 08 00 D5 02 80 11 00 00 00 00 00 00 51 [17:55:06]Write i2c OK [17:55:06]MH_I2C_Read... [17:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:06]Read from MH i2c: E2 [17:55:06]MH_I2C_Read... [17:55:06]Read from MH i2c: E2 17 00 [17:55:06]MH_I2C_Read... [17:55:06]Read from MH i2c: E2 17 00 D5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A4 [17:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:55:06]wFMCommunicate OK [17:55:06]CreateOFDProtocolMessage done [17:55:06]OFDSenderStorePacket 192721 [17:55:06]StoreOFDPacket docnum=192721 [17:55:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D9 77 07 01 8A 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 F9 CF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 F0 02 00 35 04 06 00 2B 5D 67 B3 21 4A CB BC 66 5A 1D 4F 13 E1 [17:55:06]CheckFolder [17:55:06]dirname=/storage/ofd_packets [17:55:06]CheckFolder done [17:55:06]ProducePacketName [17:55:06]name=ofd_packets/00192721 [17:55:06]NVStorageSaveData ofd_packets/00192721 [17:55:06]File name is /storage/ofd_packets/00192721 [17:55:06]Write 301 bytes [17:55:06]NVStorageSaveData done [17:55:06]OFDSenderStorePacket done [17:55:06]KKMCreateOFDPacket done [17:55:06]NVStorageSaveData kkm_last_timestamp [17:55:06]File name is /storage/kkm_last_timestamp [17:55:06]Write 4 bytes [17:55:06]NVStorageSaveData done [17:55:06]ExternCall_PrintAddStr [17:55:06]wPrintStart [17:55:06]Write to MH i2c: 01 00 00 D6 02 D8 [17:55:06]Write i2c OK [17:55:06]MH_I2C_Read... [17:55:06]Read from MH i2c: 01 [17:55:06]MH_I2C_Read... [17:55:06]Read from MH i2c: 01 07 00 [17:55:06]MH_I2C_Read... [17:55:06]Read from MH i2c: 01 07 00 D6 02 00 00 00 00 00 FF 0F ED [17:55:06]RasterBufferAndPrint [17:55:06]line Счет N : (1)32047 [17:55:06]line ИНН: 02508201610067 [17:55:06]line Контрольно-Кассовый Чек [17:55:06]line ПРОДАЖА [17:55:06]line ТРК (МРК, ГНК) : 12 [17:55:06]line Товар: 2710124130 [17:55:06]line Аи-92-К-5 [17:55:06]line 3.740 * 66.90 [17:55:06]line = 250.21 [17:55:06]line НДС 12% НСП 1% [17:55:06]line > о реализуемом товаре [17:55:06]line ОКРУГЛЕНИЕ: -0.21 [17:55:06]line ИТОГО: 250.00 [17:55:06]line Внесено: 250.00 [17:55:06]line СДАЧА: 0.00 [17:55:06]line НСП 1% : 2.21 [17:55:06]line НДС 12% : 26.57 [17:55:06]line Наличными: 250.00 [17:55:06]line Безнал.: 0.00 [17:55:06]line Место: АЗС № 170 "Партнер Нефть" [17:55:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:55:06]line СНО: Общий режим [17:55:06]line Чек 269 28.10.2024 17:55 [17:55:06]line Смена: 543 ФФД: 1.0 [17:55:06]line ЗНМ: 0300000110 [17:55:06]line РНМ: 0000000000091776 [17:55:06]line Версия ККМ: 001 [17:55:06]line ФМ: 0000000000871754 [17:55:06]line ФД: 192721 [17:55:06]line ФПД: 47680171745610 [17:55:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T175505&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192721&fm=47680171745610&tin=02508201610067®Number=0000000000091776&sum=25000 [17:55:07]OFD Sender: Processing packet 192721 [packets to send 75, broken 74] [17:55:07]ProducePacketName [17:55:07]name=ofd_packets/00192721 [17:55:07]OFD Sender: To server: pG, [17:55:07]CommunicateWithHost lk.salyk.kg:30040 [17:55:07]ConnectInit lk.salyk.kg [17:55:07]written 0, free lines is 4095 [17:55:07]Connected sock=10 [17:55:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D9 77 07 01 8A 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 F9 CF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 F0 02 00 35 04 06 00 2B 5D 67 B3 21 4A CB BC 66 5A 1D 4F 13 E1 [17:55:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 81 F2 47 00 11 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 F0 02 00 F4 03 04 00 BC 74 1F 67 B6 04 01 00 00 86 0C 0E BC 89 FD 00 1B [17:55:07]CommunicateWithHost err = 0 [17:55:07]CheckOFDResponse [17:55:07]1017 (14) - 77093643461234 [17:55:07]1041 (16) - 0000000000871754 [17:55:07]1040 (4) - 192721 [17:55:07]1012 (4) - 28.10.2024 11:25 [17:55:07]1206 (1) - 0 [17:55:07]OFD Sender: Remove packet 192721 [17:55:07]ProducePacketName [17:55:07]name=ofd_packets/00192721 [17:55:07]NVStorageDeleteData [17:55:07]Write to MH i2c: 01 00 00 01 03 04 [17:55:07]Write i2c OK [17:55:07]MH_I2C_Read... [17:55:07]Read from MH i2c: 01 [17:55:07]MH_I2C_Read... [17:55:07]Read from MH i2c: 01 07 00 [17:55:07]MH_I2C_Read... [17:55:07]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 AF 0C C6 [17:55:07]RasterBufferAndPrint [17:55:07]line [17:55:07]line [17:55:07]line [17:55:07]line [17:55:07]line [17:55:07]written 0, free lines is 3255 [17:55:07]MH_Cut [17:55:07]Write to MH i2c: D1 01 00 08 03 01 DD [17:55:07]Write i2c OK [17:55:07]MH_I2C_Read... [17:55:07]Read from MH i2c: D1 [17:55:07]MH_I2C_Read... [17:55:07]Read from MH i2c: D1 01 00 [17:55:07]MH_I2C_Read... [17:55:07]Read from MH i2c: D1 01 00 08 03 00 DC [17:55:07]Write to MH i2c: 01 00 00 09 03 0C [17:55:07]Write i2c OK [17:55:07]MH_I2C_Read... [17:55:07]OFD Sender: No OFD packet to send [17:55:08]*** Cut start [17:55:08]*** Partial cut [17:55:08]*** CUTSNS_PIN = 1 [17:55:08]*** CUTSNS_PIN = 0 [17:55:08]*** Brake cut motor [17:55:09]Read from MH i2c: 01 [17:55:09]MH_I2C_Read... [17:55:09]*** Stop cut motor [17:55:09]*** Cut end [17:55:09]Read from MH i2c: 01 07 00 [17:55:09]MH_I2C_Read... [17:55:09]Read from MH i2c: 01 07 00 09 03 00 00 00 00 00 FF 0F 21 [17:55:09]process_action close_receipt done [17:55:09]requested_data is exist [17:55:09]produce_requested_data [17:55:09]requested_item fm.sn is exist - process it [17:55:09]wFMCommunicate request_size=4 [17:55:09]MH_SAM_APDU [17:55:09]CAPDU: 80 11 00 00 [17:55:09]Write to MH i2c: E2 08 00 0A 03 80 11 00 00 00 00 00 00 87 [17:55:09]Write i2c OK [17:55:09]MH_I2C_Read... [17:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:09]Read from MH i2c: E2 [17:55:09]MH_I2C_Read... [17:55:09]Read from MH i2c: E2 17 00 [17:55:09]MH_I2C_Read... [17:55:09]Read from MH i2c: E2 17 00 0A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DA [17:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:55:09]wFMCommunicate OK [17:55:09]requested_item fd.num is exist - process it [17:55:09]SAM_PROTO_GetFieldsCounters [17:55:09]wFMCommunicate request_size=4 [17:55:09]MH_SAM_APDU [17:55:09]CAPDU: 80 13 00 00 [17:55:09]Write to MH i2c: E2 08 00 0B 03 80 13 00 00 00 00 00 00 8A [17:55:09]Write i2c OK [17:55:09]MH_I2C_Read... [17:55:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:09]Read from MH i2c: E2 [17:55:09]MH_I2C_Read... [17:55:09]Read from MH i2c: E2 62 00 [17:55:09]MH_I2C_Read... [17:55:09]Read from MH i2c: E2 62 00 0B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D1 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [17:55:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D1 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:55:09]wFMCommunicate OK [17:55:09]SAM_PROTO_GetFieldsCounters done [17:55:09]requested_item shift.num is exist - process it [17:55:09]requested_item shift.opened is exist - process it [17:55:09]req_shift_opened [17:55:09]FM_GetShiftState [17:55:09]SAM_PROTO_GetShiftState [17:55:09]wFMCommunicate request_size=4 [17:55:09]MH_SAM_APDU [17:55:09]CAPDU: 80 13 01 00 [17:55:09]Write to MH i2c: E2 08 00 0C 03 80 13 01 00 00 00 00 00 8C [17:55:09]Write i2c OK [17:55:09]MH_I2C_Read... [17:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:09]Read from MH i2c: E2 [17:55:09]MH_I2C_Read... [17:55:09]Read from MH i2c: E2 0E 00 [17:55:09]MH_I2C_Read... [17:55:09]Read from MH i2c: E2 0E 00 0C 03 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DC [17:55:09]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:55:09]wFMCommunicate OK [17:55:09]SAM_PROTO_GetShiftState done [17:55:09]FM_GetShiftState done [17:55:09]req_shift_opened done [17:55:09]requested_item shift.open_date is exist - process it [17:55:09]req_shift_open_date [17:55:09]req_shift_open_date done [17:55:09]produce_requested_data done [17:55:09]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192721,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:55:09]process_action_free close_receipt [17:55:09]json_value_free [17:55:09]json_value_free done [17:55:09]process_json_proto returns [17:55:09]Send response to host [17:55:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192721,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:55:09]free response buf [17:55:09]execute_script done [17:55:09]execute_script returns [17:55:09]free content buf [17:55:09]Sock 9.Close socket [17:55:09]Sock 9.Thread stoped [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:33]OFD Sender: No OFD packet to send [17:55:38]OFD Sender: No OFD packet to send [17:55:43]OFD Sender: No OFD packet to send [17:55:48]OFD Sender: No OFD packet to send [17:55:53]OFD Sender: No OFD packet to send [17:55:58]OFD Sender: No OFD packet to send [17:56:03]OFD Sender: No OFD packet to send [17:56:08]OFD Sender: No OFD packet to send [17:56:13]OFD Sender: No OFD packet to send [17:56:18]OFD Sender: No OFD packet to send [17:56:23]OFD Sender: No OFD packet to send [17:56:28]OFD Sender: No OFD packet to send [17:56:33]OFD Sender: No OFD packet to send [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:48]OFD Sender: No OFD packet to send [17:56:53]OFD Sender: No OFD packet to send [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:08]accept exits with 8 [17:57:08]New connection [17:57:08]New thread 3066801508 created [17:57:08]Thread 3066658148 joined [17:57:08]Waiting for new connection... [17:57:08] Sock 8.Parse request [17:57:08]Sock 8.Check first char [17:57:08]Sock 8.First char is OK [17:57:08]request: POST /json_proto HTTP/1.0 [17:57:08]Method: POST [17:57:08]URL: /json_proto [17:57:08]Method is POST - this is cgi request [17:57:08]url: /json_proto [17:57:08]query_string will be loaded in cgi processing [17:57:08]execute_cgi json_proto POST (null) [17:57:08]execute_cgi path=json_proto method=POST [17:57:08]POST find Content-Length [17:57:08]Host: 172.17.63.131:8080 [17:57:08]Content-Length: 681 [17:57:08]Content-Type: application/json [17:57:08] [17:57:08]POST finish read [17:57:08]Found Content-Length = 681 [17:57:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:08]execute_script... [17:57:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:08]POST & json_proto [17:57:08]process_json_proto [17:57:08]json parsed OK: [17:57:08]protocol is kg_v1.0 [17:57:08]action value=close_receipt [17:57:08]process_action close_receipt [17:57:08]cmd_close_receipt [17:57:08]MH_GetDate [17:57:08]Write to MH i2c: F0 00 00 0D 03 FF [17:57:08]Write i2c OK [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: F0 [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: F0 09 00 [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: F0 09 00 0D 03 00 75 D0 1F 67 22 05 6E 64 CC [17:57:08]GetLastDocTimeStamp 1730138105 [17:57:08]current date 1730138229 [17:57:08]FM_GetShiftState [17:57:08]SAM_PROTO_GetShiftState [17:57:08]wFMCommunicate request_size=4 [17:57:08]MH_SAM_APDU [17:57:08]CAPDU: 80 13 01 00 [17:57:08]Write to MH i2c: E2 08 00 0E 03 80 13 01 00 00 00 00 00 8E [17:57:08]Write i2c OK [17:57:08]MH_I2C_Read... [17:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:08]Read from MH i2c: E2 [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: E2 0E 00 [17:57:08]MH_I2C_Read... [17:57:08]Read from MH i2c: E2 0E 00 0E 03 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DE [17:57:08]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:57:08]wFMCommunicate OK [17:57:08]SAM_PROTO_GetShiftState done [17:57:08]FM_GetShiftState done [17:57:08]opened in 1730075620 [17:57:08]opened+sec_in_day 1730162020 [17:57:08]quantity*price = 100015 [17:57:08]sum+1 = 100017 [17:57:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 270 28.10.2024 17:57 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192722 ФПД: 36776924828217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T175709&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192722&fm=36776924828217&tin=02508201610067®Number=0000000000091776&sum=100000 [17:57:09]StoreToDocumentArchive [17:57:09]shift 543 fd 192722 [17:57:09]save to /storage/0543/doc_00192722 [17:57:09]save last doc name /storage/0543/doc_00192722 to /storage/kkm_last_doc_name [17:57:09]save OK [17:57:09]Clear old archive folders... [17:57:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:57:09]tlvbuf is 00FAC0F0 [17:57:09]SAM_PROTO_ClearQueue [17:57:09]wFMCommunicate request_size=4 [17:57:09]MH_SAM_APDU [17:57:09]CAPDU: 80 09 00 00 [17:57:09]Write to MH i2c: E2 08 00 1B 03 80 09 00 00 00 00 00 00 90 [17:57:09]Write i2c OK [17:57:09]MH_I2C_Read... [17:57:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:10]Read from MH i2c: E2 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 03 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [17:57:10]RAPDU: 90 00 [17:57:10]wFMCommunicate OK [17:57:10]SAM_PROTO_ClearQueue done [17:57:10]KKMCreateOFDPacket [17:57:10]OFDProtocolAddRootSTLVToBuf [17:57:10]FM_MakeSignedData [17:57:10]FM_MakeSignedData [17:57:10]SAM_PROTO_SignData [17:57:10]wFMCommunicate request_size=4 [17:57:10]MH_SAM_APDU [17:57:10]CAPDU: 80 0D 01 02 [17:57:10]Write to MH i2c: E2 08 00 1C 03 80 0D 01 02 00 00 00 00 98 [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:10]Read from MH i2c: E2 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 03 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 03 00 1C 03 00 90 00 93 [17:57:10]RAPDU: 90 00 [17:57:10]wFMCommunicate OK [17:57:10]wFMCommunicate request_size=255 [17:57:10]MH_SAM_APDU [17:57:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 75 D0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 F0 02 00 35 04 06 00 21 [17:57:10]Write to MH i2c: E2 02 01 1D 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 75 D0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 F0 02 00 35 04 06 00 21 00 00 06 [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:10]Read from MH i2c: E2 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 03 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 03 00 1D 03 00 90 00 94 [17:57:10]RAPDU: 90 00 [17:57:10]wFMCommunicate OK [17:57:10]wFMCommunicate request_size=10 [17:57:10]MH_SAM_APDU [17:57:10]CAPDU: 80 0D 02 02 05 72 CB 8A 52 39 [17:57:10]Write to MH i2c: E2 0D 00 1E 03 80 0D 02 02 05 00 72 CB 8A 52 39 00 00 F7 [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:10]Read from MH i2c: E2 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 03 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [17:57:10]RAPDU: 90 00 [17:57:10]wFMCommunicate OK [17:57:10]wFMCommunicate request_size=4 [17:57:10]MH_SAM_APDU [17:57:10]CAPDU: 80 0D 03 02 [17:57:10]Write to MH i2c: E2 08 00 1F 03 80 0D 03 02 00 00 00 00 9D [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:10]Read from MH i2c: E2 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 0B 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 0B 00 1F 03 00 61 50 F0 12 1D 0A 31 21 90 00 CA [17:57:10]RAPDU: 61 50 F0 12 1D 0A 31 21 90 00 [17:57:10]wFMCommunicate OK [17:57:10]SAM_PROTO_SignData done [17:57:10]FM_MakeSignedData done [17:57:10]CreateOFDProtocolMessage [17:57:10]wFMCommunicate request_size=4 [17:57:10]MH_SAM_APDU [17:57:10]CAPDU: 80 11 00 00 [17:57:10]Write to MH i2c: E2 08 00 20 03 80 11 00 00 00 00 00 00 9D [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:10]Read from MH i2c: E2 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 17 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: E2 17 00 20 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F0 [17:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:57:10]wFMCommunicate OK [17:57:10]CreateOFDProtocolMessage done [17:57:10]OFDSenderStorePacket 192722 [17:57:10]StoreOFDPacket docnum=192722 [17:57:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2E EF 07 01 A2 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 75 D0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 F0 02 00 35 04 06 00 21 72 CB 8A 52 39 61 50 F0 12 1D 0A 31 21 [17:57:10]CheckFolder [17:57:10]dirname=/storage/ofd_packets [17:57:10]CheckFolder done [17:57:10]ProducePacketName [17:57:10]name=ofd_packets/00192722 [17:57:10]NVStorageSaveData ofd_packets/00192722 [17:57:10]File name is /storage/ofd_packets/00192722 [17:57:10]Write 301 bytes [17:57:10]NVStorageSaveData done [17:57:10]OFDSenderStorePacket done [17:57:10]KKMCreateOFDPacket done [17:57:10]NVStorageSaveData kkm_last_timestamp [17:57:10]File name is /storage/kkm_last_timestamp [17:57:10]Write 4 bytes [17:57:10]NVStorageSaveData done [17:57:10]ExternCall_PrintAddStr [17:57:10]wPrintStart [17:57:10]Write to MH i2c: 01 00 00 21 03 24 [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: 01 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: 01 07 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: 01 07 00 21 03 00 00 00 00 00 FF 0F 39 [17:57:10]RasterBufferAndPrint [17:57:10]line Счет N : (1)32048 [17:57:10]line ИНН: 02508201610067 [17:57:10]line Контрольно-Кассовый Чек [17:57:10]line ПРОДАЖА [17:57:10]line ТРК (МРК, ГНК) : 21 [17:57:10]line Товар: 2710124130 [17:57:10]line Аи-92-К-5 [17:57:10]line 14.950 * 66.90 [17:57:10]line = 1000.16 [17:57:10]line НДС 12% НСП 1% [17:57:10]line > о реализуемом товаре [17:57:10]line ОКРУГЛЕНИЕ: -0.16 [17:57:10]line ИТОГО: 1000.00 [17:57:10]line Внесено: 1000.00 [17:57:10]line СДАЧА: 0.00 [17:57:10]line НСП 1% : 8.85 [17:57:10]line НДС 12% : 106.21 [17:57:10]line Наличными: 1000.00 [17:57:10]line Безнал.: 0.00 [17:57:10]line Место: АЗС № 170 "Партнер Нефть" [17:57:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:57:10]line СНО: Общий режим [17:57:10]line Чек 270 28.10.2024 17:57 [17:57:10]line Смена: 543 ФФД: 1.0 [17:57:10]line ЗНМ: 0300000110 [17:57:10]line РНМ: 0000000000091776 [17:57:10]line Версия ККМ: 001 [17:57:10]line ФМ: 0000000000871754 [17:57:10]line ФД: 192722 [17:57:10]line ФПД: 36776924828217 [17:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T175709&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192722&fm=36776924828217&tin=02508201610067®Number=0000000000091776&sum=100000 [17:57:10]written 0, free lines is 4095 [17:57:10]OFD Sender: Processing packet 192722 [packets to send 75, broken 74] [17:57:10]ProducePacketName [17:57:10]name=ofd_packets/00192722 [17:57:10]OFD Sender: To server: pG, [17:57:10]CommunicateWithHost lk.salyk.kg:30040 [17:57:10]ConnectInit lk.salyk.kg [17:57:10]Connected sock=11 [17:57:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2E EF 07 01 A2 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 75 D0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 F0 02 00 35 04 06 00 21 72 CB 8A 52 39 61 50 F0 12 1D 0A 31 21 [17:57:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1B F2 47 00 50 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 F0 02 00 F4 03 04 00 38 75 1F 67 B6 04 01 00 00 47 27 9E E5 A6 49 84 32 [17:57:10]CommunicateWithHost err = 0 [17:57:10]CheckOFDResponse [17:57:10]1017 (14) - 77093643461234 [17:57:10]1041 (16) - 0000000000871754 [17:57:10]1040 (4) - 192722 [17:57:10]1012 (4) - 28.10.2024 11:27 [17:57:10]1206 (1) - 0 [17:57:10]OFD Sender: Remove packet 192722 [17:57:10]ProducePacketName [17:57:10]name=ofd_packets/00192722 [17:57:10]NVStorageDeleteData [17:57:10]Write to MH i2c: 01 00 00 4C 03 4F [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: 01 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: 01 07 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: 01 07 00 4C 03 00 00 00 00 00 BF 0C 21 [17:57:10]RasterBufferAndPrint [17:57:10]line [17:57:10]line [17:57:10]line [17:57:10]line [17:57:10]line [17:57:10]written 0, free lines is 3267 [17:57:11]MH_Cut [17:57:11]Write to MH i2c: D1 01 00 53 03 01 28 [17:57:11]Write i2c OK [17:57:11]MH_I2C_Read... [17:57:11]Read from MH i2c: D1 [17:57:11]MH_I2C_Read... [17:57:11]Read from MH i2c: D1 01 00 [17:57:11]MH_I2C_Read... [17:57:11]Read from MH i2c: D1 01 00 53 03 00 27 [17:57:11]Write to MH i2c: 01 00 00 54 03 57 [17:57:11]Write i2c OK [17:57:11]MH_I2C_Read... [17:57:11]OFD Sender: No OFD packet to send [17:57:11]*** Cut start [17:57:11]*** Partial cut [17:57:11]*** CUTSNS_PIN = 1 [17:57:11]*** CUTSNS_PIN = 0 [17:57:12]*** Brake cut motor [17:57:12]Read from MH i2c: 01 [17:57:12]MH_I2C_Read... [17:57:12]*** Stop cut motor [17:57:12]*** Cut end [17:57:12]Read from MH i2c: 01 07 00 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: 01 07 00 54 03 00 00 00 00 00 FF 0F 6C [17:57:12]process_action close_receipt done [17:57:12]requested_data is exist [17:57:12]produce_requested_data [17:57:12]requested_item fm.sn is exist - process it [17:57:12]wFMCommunicate request_size=4 [17:57:12]MH_SAM_APDU [17:57:12]CAPDU: 80 11 00 00 [17:57:12]Write to MH i2c: E2 08 00 55 03 80 11 00 00 00 00 00 00 D2 [17:57:12]Write i2c OK [17:57:12]MH_I2C_Read... [17:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:12]Read from MH i2c: E2 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 17 00 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 17 00 55 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 25 [17:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:57:12]wFMCommunicate OK [17:57:12]requested_item fd.num is exist - process it [17:57:12]SAM_PROTO_GetFieldsCounters [17:57:12]wFMCommunicate request_size=4 [17:57:12]MH_SAM_APDU [17:57:12]CAPDU: 80 13 00 00 [17:57:12]Write to MH i2c: E2 08 00 56 03 80 13 00 00 00 00 00 00 D5 [17:57:12]Write i2c OK [17:57:12]MH_I2C_Read... [17:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:12]Read from MH i2c: E2 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 62 00 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 62 00 56 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D2 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 0D [17:57:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D2 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:12]wFMCommunicate OK [17:57:12]SAM_PROTO_GetFieldsCounters done [17:57:12]requested_item shift.num is exist - process it [17:57:12]requested_item shift.opened is exist - process it [17:57:12]req_shift_opened [17:57:12]FM_GetShiftState [17:57:12]SAM_PROTO_GetShiftState [17:57:12]wFMCommunicate request_size=4 [17:57:12]MH_SAM_APDU [17:57:12]CAPDU: 80 13 01 00 [17:57:12]Write to MH i2c: E2 08 00 57 03 80 13 01 00 00 00 00 00 D7 [17:57:12]Write i2c OK [17:57:12]MH_I2C_Read... [17:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:12]Read from MH i2c: E2 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 0E 00 [17:57:12]MH_I2C_Read... [17:57:12]Read from MH i2c: E2 0E 00 57 03 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 27 [17:57:12]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:57:12]wFMCommunicate OK [17:57:12]SAM_PROTO_GetShiftState done [17:57:12]FM_GetShiftState done [17:57:12]req_shift_opened done [17:57:12]requested_item shift.open_date is exist - process it [17:57:12]req_shift_open_date [17:57:12]req_shift_open_date done [17:57:12]produce_requested_data done [17:57:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192722,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:57:12]process_action_free close_receipt [17:57:12]json_value_free [17:57:12]json_value_free done [17:57:12]process_json_proto returns [17:57:12]Send response to host [17:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192722,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:57:12]free response buf [17:57:12]execute_script done [17:57:12]execute_script returns [17:57:12]free content buf [17:57:12]Sock 8.Close socket [17:57:12]Sock 8.Thread stoped [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:42]accept exits with 9 [17:57:42]New connection [17:57:42]New thread 3066658148 created [17:57:42]Thread 3066801508 joined [17:57:42]Waiting for new connection... [17:57:42] Sock 9.Parse request [17:57:42]Sock 9.Check first char [17:57:42]Sock 9.First char is OK [17:57:42]request: POST /json_proto HTTP/1.0 [17:57:42]Method: POST [17:57:42]URL: /json_proto [17:57:42]Method is POST - this is cgi request [17:57:42]url: /json_proto [17:57:42]query_string will be loaded in cgi processing [17:57:42]execute_cgi json_proto POST (null) [17:57:42]execute_cgi path=json_proto method=POST [17:57:42]POST find Content-Length [17:57:42]Host: 172.17.63.131:8080 [17:57:42]Content-Length: 676 [17:57:42]Content-Type: application/json [17:57:42] [17:57:42]POST finish read [17:57:42]Found Content-Length = 676 [17:57:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:42]execute_script... [17:57: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)32049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:42]POST & json_proto [17:57:42]process_json_proto [17:57:42]json parsed OK: [17:57:42]protocol is kg_v1.0 [17:57:42]action value=close_receipt [17:57:42]process_action close_receipt [17:57:42]cmd_close_receipt [17:57:42]MH_GetDate [17:57:42]Write to MH i2c: F0 00 00 58 03 4A [17:57:42]Write i2c OK [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: F0 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: F0 09 00 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: F0 09 00 58 03 00 96 D0 1F 67 22 05 6E 64 38 [17:57:42]GetLastDocTimeStamp 1730138229 [17:57:42]current date 1730138262 [17:57:42]FM_GetShiftState [17:57:42]SAM_PROTO_GetShiftState [17:57:42]wFMCommunicate request_size=4 [17:57:42]MH_SAM_APDU [17:57:42]CAPDU: 80 13 01 00 [17:57:42]Write to MH i2c: E2 08 00 59 03 80 13 01 00 00 00 00 00 D9 [17:57:42]Write i2c OK [17:57:42]MH_I2C_Read... [17:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:42]Read from MH i2c: E2 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: E2 0E 00 [17:57:42]MH_I2C_Read... [17:57:42]Read from MH i2c: E2 0E 00 59 03 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 29 [17:57:42]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:57:42]wFMCommunicate OK [17:57:42]SAM_PROTO_GetShiftState done [17:57:42]FM_GetShiftState done [17:57:42]opened in 1730075620 [17:57:42]opened+sec_in_day 1730162020 [17:57:42]quantity*price = 50041 [17:57:42]sum+1 = 50042 [17:57:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 271 28.10.2024 17:57 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192723 ФПД: 101934423240714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T175742&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192723&fm=101934423240714&tin=02508201610067®Number=0000000000091776&sum=50000 [17:57:43]StoreToDocumentArchive [17:57:43]shift 543 fd 192723 [17:57:43]save to /storage/0543/doc_00192723 [17:57:43]save last doc name /storage/0543/doc_00192723 to /storage/kkm_last_doc_name [17:57:43]save OK [17:57:43]Clear old archive folders... [17:57:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:57:43]tlvbuf is 00FA7060 [17:57:43]SAM_PROTO_ClearQueue [17:57:43]wFMCommunicate request_size=4 [17:57:43]MH_SAM_APDU [17:57:43]CAPDU: 80 09 00 00 [17:57:43]Write to MH i2c: E2 08 00 66 03 80 09 00 00 00 00 00 00 DB [17:57:43]Write i2c OK [17:57:43]MH_I2C_Read... [17:57:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:43]Read from MH i2c: E2 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: E2 03 00 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [17:57:43]RAPDU: 90 00 [17:57:43]wFMCommunicate OK [17:57:43]SAM_PROTO_ClearQueue done [17:57:43]KKMCreateOFDPacket [17:57:43]OFDProtocolAddRootSTLVToBuf [17:57:43]FM_MakeSignedData [17:57:43]FM_MakeSignedData [17:57:43]SAM_PROTO_SignData [17:57:43]wFMCommunicate request_size=4 [17:57:43]MH_SAM_APDU [17:57:43]CAPDU: 80 0D 01 02 [17:57:43]Write to MH i2c: E2 08 00 67 03 80 0D 01 02 00 00 00 00 E3 [17:57:43]Write i2c OK [17:57:43]MH_I2C_Read... [17:57:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:43]Read from MH i2c: E2 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: E2 03 00 [17:57:43]MH_I2C_Read... [17:57:43]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [17:57:43]RAPDU: 90 00 [17:57:43]wFMCommunicate OK [17:57:43]wFMCommunicate request_size=255 [17:57:43]MH_SAM_APDU [17:57:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 96 D0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 F0 02 00 35 04 06 00 5C [17:57:43]Write to MH i2c: E2 02 01 68 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 96 D0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 F0 02 00 35 04 06 00 5C 00 00 B5 [17:57:43]Write i2c OK [17:57:43]MH_I2C_Read... [17:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:44]Read from MH i2c: E2 [17:57:44]MH_I2C_Read... [17:57:44]Read from MH i2c: E2 03 00 [17:57:44]MH_I2C_Read... [17:57:44]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [17:57:44]RAPDU: 90 00 [17:57:44]wFMCommunicate OK [17:57:44]wFMCommunicate request_size=10 [17:57:44]MH_SAM_APDU [17:57:44]CAPDU: 80 0D 02 02 05 B5 75 16 70 0A [17:57:44]Write to MH i2c: E2 0D 00 69 03 80 0D 02 02 05 00 B5 75 16 70 0A 00 00 AA [17:57:44]Write i2c OK [17:57:44]MH_I2C_Read... [17:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:44]Read from MH i2c: E2 [17:57:44]MH_I2C_Read... [17:57:44]Read from MH i2c: E2 03 00 [17:57:44]MH_I2C_Read... [17:57:44]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [17:57:44]RAPDU: 90 00 [17:57:44]wFMCommunicate OK [17:57:44]wFMCommunicate request_size=4 [17:57:44]MH_SAM_APDU [17:57:44]CAPDU: 80 0D 03 02 [17:57:44]Write to MH i2c: E2 08 00 6A 03 80 0D 03 02 00 00 00 00 E8 [17:57:44]Write i2c OK [17:57:44]MH_I2C_Read... [17:57:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:44]Read from MH i2c: E2 [17:57:44]MH_I2C_Read... [17:57:44]Read from MH i2c: E2 0B 00 [17:57:44]MH_I2C_Read... [17:57:44]Read from MH i2c: E2 0B 00 6A 03 00 BF 43 4B 6B 2C 9C 19 86 90 00 08 [17:57:44]RAPDU: BF 43 4B 6B 2C 9C 19 86 90 00 [17:57:44]wFMCommunicate OK [17:57:44]SAM_PROTO_SignData done [17:57:44]FM_MakeSignedData done [17:57:44]CreateOFDProtocolMessage [17:57:44]wFMCommunicate request_size=4 [17:57:44]MH_SAM_APDU [17:57:44]CAPDU: 80 11 00 00 [17:57:44]Write to MH i2c: E2 08 00 6B 03 80 11 00 00 00 00 00 00 E8 [17:57:44]Write i2c OK [17:57:44]MH_I2C_Read... [17:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:44]Read from MH i2c: E2 [17:57:44]MH_I2C_Read... [17:57:44]Read from MH i2c: E2 17 00 [17:57:44]MH_I2C_Read... [17:57:44]Read from MH i2c: E2 17 00 6B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3B [17:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:57:44]wFMCommunicate OK [17:57:44]CreateOFDProtocolMessage done [17:57:44]OFDSenderStorePacket 192723 [17:57:44]StoreOFDPacket docnum=192723 [17:57:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0B 6C 07 01 9A E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 96 D0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 F0 02 00 35 04 06 00 5C B5 75 16 70 0A BF 43 4B 6B 2C 9C 19 86 [17:57:44]CheckFolder [17:57:44]dirname=/storage/ofd_packets [17:57:44]CheckFolder done [17:57:44]ProducePacketName [17:57:44]name=ofd_packets/00192723 [17:57:44]NVStorageSaveData ofd_packets/00192723 [17:57:44]File name is /storage/ofd_packets/00192723 [17:57:44]Write 301 bytes [17:57:44]NVStorageSaveData done [17:57:44]OFDSenderStorePacket done [17:57:44]KKMCreateOFDPacket done [17:57:44]NVStorageSaveData kkm_last_timestamp [17:57:44]File name is /storage/kkm_last_timestamp [17:57:44]Write 4 bytes [17:57:44]NVStorageSaveData done [17:57:44]ExternCall_PrintAddStr [17:57:44]wPrintStart [17:57:44]Write to MH i2c: 01 00 00 6C 03 6F [17:57:44]Write i2c OK [17:57:44]MH_I2C_Read... [17:57:44]Read from MH i2c: 01 [17:57:44]MH_I2C_Read... [17:57:44]Read from MH i2c: 01 07 00 [17:57:44]MH_I2C_Read... [17:57:44]Read from MH i2c: 01 07 00 6C 03 00 00 00 00 00 FF 0F 84 [17:57:44]RasterBufferAndPrint [17:57:44]line Счет N : (1)32049 [17:57:44]line ИНН: 02508201610067 [17:57:44]line Контрольно-Кассовый Чек [17:57:44]line ПРОДАЖА [17:57:44]line ТРК (МРК, ГНК) : 12 [17:57:44]line Товар: 2710124130 [17:57:44]line Аи-92-К-5 [17:57:44]line 7.480 * 66.90 [17:57:44]line = 500.41 [17:57:44]line НДС 12% НСП 1% [17:57:44]line > о реализуемом товаре [17:57:44]line ОКРУГЛЕНИЕ: -0.41 [17:57:44]line ИТОГО: 500.00 [17:57:44]line Внесено: 500.00 [17:57:44]line СДАЧА: 0.00 [17:57:44]line НСП 1% : 4.43 [17:57:44]line НДС 12% : 53.14 [17:57:44]line Наличными: 500.00 [17:57:44]line Безнал.: 0.00 [17:57:44]line Место: АЗС № 170 "Партнер Нефть" [17:57:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:57:44]line СНО: Общий режим [17:57:44]line Чек 271 28.10.2024 17:57 [17:57:44]line Смена: 543 ФФД: 1.0 [17:57:44]line ЗНМ: 0300000110 [17:57:44]line РНМ: 0000000000091776 [17:57:44]line Версия ККМ: 001 [17:57:44]line ФМ: 0000000000871754 [17:57:44]line ФД: 192723 [17:57:44]line ФПД: 101934423240714 [17:57:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T175742&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192723&fm=101934423240714&tin=02508201610067®Number=0000000000091776&sum=50000 [17:57:44]OFD Sender: Processing packet 192723 [packets to send 75, broken 74] [17:57:44]ProducePacketName [17:57:44]name=ofd_packets/00192723 [17:57:44]OFD Sender: To server: pG, [17:57:44]CommunicateWithHost lk.salyk.kg:30040 [17:57:44]ConnectInit lk.salyk.kg [17:57:44]written 0, free lines is 4095 [17:57:44]Connected sock=10 [17:57:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0B 6C 07 01 9A E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 96 D0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 F0 02 00 35 04 06 00 5C B5 75 16 70 0A BF 43 4B 6B 2C 9C 19 86 [17:57:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BD 9D 47 00 AF DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 F0 02 00 F4 03 04 00 5A 75 1F 67 B6 04 01 00 00 CE A7 2F 5B AB 01 26 41 [17:57:44]CommunicateWithHost err = 0 [17:57:44]CheckOFDResponse [17:57:44]1017 (14) - 77093643461234 [17:57:44]1041 (16) - 0000000000871754 [17:57:44]1040 (4) - 192723 [17:57:44]1012 (4) - 28.10.2024 11:28 [17:57:44]1206 (1) - 0 [17:57:44]OFD Sender: Remove packet 192723 [17:57:44]ProducePacketName [17:57:44]name=ofd_packets/00192723 [17:57:44]NVStorageDeleteData [17:57:45]Write to MH i2c: 01 00 00 97 03 9A [17:57:45]Write i2c OK [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: 01 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: 01 07 00 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: 01 07 00 97 03 00 00 00 00 00 BB 0C 68 [17:57:45]RasterBufferAndPrint [17:57:45]line [17:57:45]line [17:57:45]line [17:57:45]line [17:57:45]line [17:57:45]written 0, free lines is 3267 [17:57:45]MH_Cut [17:57:45]Write to MH i2c: D1 01 00 9E 03 01 73 [17:57:45]Write i2c OK [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: D1 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: D1 01 00 [17:57:45]MH_I2C_Read... [17:57:45]Read from MH i2c: D1 01 00 9E 03 00 72 [17:57:45]Write to MH i2c: 01 00 00 9F 03 A2 [17:57:45]Write i2c OK [17:57:45]MH_I2C_Read... [17:57:45]OFD Sender: No OFD packet to send [17:57:45]*** Cut start [17:57:45]*** Partial cut [17:57:45]*** CUTSNS_PIN = 1 [17:57:45]*** CUTSNS_PIN = 0 [17:57:46]*** Brake cut motor [17:57:46]Read from MH i2c: 01 [17:57:46]MH_I2C_Read... [17:57:46]*** Stop cut motor [17:57:46]*** Cut end [17:57:46]Read from MH i2c: 01 07 00 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: 01 07 00 9F 03 00 00 00 00 00 FF 0F B7 [17:57:46]process_action close_receipt done [17:57:46]requested_data is exist [17:57:46]produce_requested_data [17:57:46]requested_item fm.sn is exist - process it [17:57:46]wFMCommunicate request_size=4 [17:57:46]MH_SAM_APDU [17:57:46]CAPDU: 80 11 00 00 [17:57:46]Write to MH i2c: E2 08 00 A0 03 80 11 00 00 00 00 00 00 1D [17:57:46]Write i2c OK [17:57:46]MH_I2C_Read... [17:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:46]Read from MH i2c: E2 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 17 00 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 17 00 A0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [17:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:57:46]wFMCommunicate OK [17:57:46]requested_item fd.num is exist - process it [17:57:46]SAM_PROTO_GetFieldsCounters [17:57:46]wFMCommunicate request_size=4 [17:57:46]MH_SAM_APDU [17:57:46]CAPDU: 80 13 00 00 [17:57:46]Write to MH i2c: E2 08 00 A1 03 80 13 00 00 00 00 00 00 20 [17:57:46]Write i2c OK [17:57:46]MH_I2C_Read... [17:57:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:46]Read from MH i2c: E2 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 62 00 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 62 00 A1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D3 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [17:57:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D3 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:46]wFMCommunicate OK [17:57:46]SAM_PROTO_GetFieldsCounters done [17:57:46]requested_item shift.num is exist - process it [17:57:46]requested_item shift.opened is exist - process it [17:57:46]req_shift_opened [17:57:46]FM_GetShiftState [17:57:46]SAM_PROTO_GetShiftState [17:57:46]wFMCommunicate request_size=4 [17:57:46]MH_SAM_APDU [17:57:46]CAPDU: 80 13 01 00 [17:57:46]Write to MH i2c: E2 08 00 A2 03 80 13 01 00 00 00 00 00 22 [17:57:46]Write i2c OK [17:57:46]MH_I2C_Read... [17:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:46]Read from MH i2c: E2 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 0E 00 [17:57:46]MH_I2C_Read... [17:57:46]Read from MH i2c: E2 0E 00 A2 03 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 72 [17:57:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:57:46]wFMCommunicate OK [17:57:46]SAM_PROTO_GetShiftState done [17:57:46]FM_GetShiftState done [17:57:46]req_shift_opened done [17:57:46]requested_item shift.open_date is exist - process it [17:57:46]req_shift_open_date [17:57:46]req_shift_open_date done [17:57:46]produce_requested_data done [17:57:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192723,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:57:46]process_action_free close_receipt [17:57:46]json_value_free [17:57:46]json_value_free done [17:57:46]process_json_proto returns [17:57:46]Send response to host [17:57:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192723,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:57:46]free response buf [17:57:46]execute_script done [17:57:46]execute_script returns [17:57:46]free content buf [17:57:46]Sock 9.Close socket [17:57:46]Sock 9.Thread stoped [17:57:50]OFD Sender: No OFD packet to send [17:57:55]OFD Sender: No OFD packet to send [17:58:00]OFD Sender: No OFD packet to send [17:58:05]OFD Sender: No OFD packet to send [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:30]OFD Sender: No OFD packet to send [17:58:35]OFD Sender: No OFD packet to send [17:58:40]OFD Sender: No OFD packet to send [17:58:45]OFD Sender: No OFD packet to send [17:58:49]accept exits with 8 [17:58:49]New connection [17:58:49]New thread 3066801508 created [17:58:49]Thread 3066658148 joined [17:58:49]Waiting for new connection... [17:58:49] Sock 8.Parse request [17:58:49]Sock 8.Check first char [17:58:49]Sock 8.First char is OK [17:58:49]request: POST /json_proto HTTP/1.0 [17:58:49]Method: POST [17:58:49]URL: /json_proto [17:58:49]Method is POST - this is cgi request [17:58:49]url: /json_proto [17:58:49]query_string will be loaded in cgi processing [17:58:49]execute_cgi json_proto POST (null) [17:58:49]execute_cgi path=json_proto method=POST [17:58:49]POST find Content-Length [17:58:49]Host: 172.17.63.131:8080 [17:58:49]Content-Length: 676 [17:58:49]Content-Type: application/json [17:58:49] [17:58:49]POST finish read [17:58:49]Found Content-Length = 676 [17:58:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:49]execute_script... [17:58:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:49]POST & json_proto [17:58:49]process_json_proto [17:58:49]json parsed OK: [17:58:49]protocol is kg_v1.0 [17:58:49]action value=close_receipt [17:58:49]process_action close_receipt [17:58:49]cmd_close_receipt [17:58:49]MH_GetDate [17:58:49]Write to MH i2c: F0 00 00 A3 03 95 [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: F0 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: F0 09 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: F0 09 00 A3 03 00 D9 D0 1F 67 22 05 6E 64 C6 [17:58:49]GetLastDocTimeStamp 1730138262 [17:58:49]current date 1730138329 [17:58:49]FM_GetShiftState [17:58:49]SAM_PROTO_GetShiftState [17:58:49]wFMCommunicate request_size=4 [17:58:49]MH_SAM_APDU [17:58:49]CAPDU: 80 13 01 00 [17:58:49]Write to MH i2c: E2 08 00 A4 03 80 13 01 00 00 00 00 00 24 [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:49]Read from MH i2c: E2 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 0E 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 0E 00 A4 03 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 74 [17:58:49]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:58:49]wFMCommunicate OK [17:58:49]SAM_PROTO_GetShiftState done [17:58:49]FM_GetShiftState done [17:58:49]opened in 1730075620 [17:58:49]opened+sec_in_day 1730162020 [17:58:49]quantity*price = 25020 [17:58:49]sum+1 = 25022 [17:58:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 272 28.10.2024 17:58 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192724 ФПД: 179770400420271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T175849&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192724&fm=179770400420271&tin=02508201610067®Number=0000000000091776&sum=25000 [17:58:50]StoreToDocumentArchive [17:58:50]shift 543 fd 192724 [17:58:50]save to /storage/0543/doc_00192724 [17:58:50]save last doc name /storage/0543/doc_00192724 to /storage/kkm_last_doc_name [17:58:50]save OK [17:58:50]Clear old archive folders... [17:58:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:50]tlvbuf is 00EE66A0 [17:58:50]SAM_PROTO_ClearQueue [17:58:50]wFMCommunicate request_size=4 [17:58:50]MH_SAM_APDU [17:58:50]CAPDU: 80 09 00 00 [17:58:50]Write to MH i2c: E2 08 00 B1 03 80 09 00 00 00 00 00 00 26 [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:50]Read from MH i2c: E2 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 03 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [17:58:50]RAPDU: 90 00 [17:58:50]wFMCommunicate OK [17:58:50]SAM_PROTO_ClearQueue done [17:58:50]KKMCreateOFDPacket [17:58:50]OFDProtocolAddRootSTLVToBuf [17:58:50]FM_MakeSignedData [17:58:50]FM_MakeSignedData [17:58:50]SAM_PROTO_SignData [17:58:50]wFMCommunicate request_size=4 [17:58:50]MH_SAM_APDU [17:58:50]CAPDU: 80 0D 01 02 [17:58:50]Write to MH i2c: E2 08 00 B2 03 80 0D 01 02 00 00 00 00 2E [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:50]Read from MH i2c: E2 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 03 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [17:58:50]RAPDU: 90 00 [17:58:50]wFMCommunicate OK [17:58:50]wFMCommunicate request_size=255 [17:58:50]MH_SAM_APDU [17:58: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 D9 D0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 F0 02 00 35 04 06 00 A3 [17:58:50]Write to MH i2c: E2 02 01 B3 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 D9 D0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 F0 02 00 35 04 06 00 A3 00 00 65 [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:50]Read from MH i2c: E2 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 03 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 03 00 B3 03 00 90 00 2A [17:58:50]RAPDU: 90 00 [17:58:50]wFMCommunicate OK [17:58:50]wFMCommunicate request_size=10 [17:58:50]MH_SAM_APDU [17:58:50]CAPDU: 80 0D 02 02 05 80 0E DB B1 AF [17:58:50]Write to MH i2c: E2 0D 00 B4 03 80 0D 02 02 05 00 80 0E DB B1 AF 00 00 04 [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:50]Read from MH i2c: E2 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 03 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 03 00 B4 03 00 90 00 2B [17:58:50]RAPDU: 90 00 [17:58:50]wFMCommunicate OK [17:58:50]wFMCommunicate request_size=4 [17:58:50]MH_SAM_APDU [17:58:50]CAPDU: 80 0D 03 02 [17:58:50]Write to MH i2c: E2 08 00 B5 03 80 0D 03 02 00 00 00 00 33 [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:51]Read from MH i2c: E2 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: E2 0B 00 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: E2 0B 00 B5 03 00 35 2B 2B 14 FA 7E C5 80 90 00 90 [17:58:51]RAPDU: 35 2B 2B 14 FA 7E C5 80 90 00 [17:58:51]wFMCommunicate OK [17:58:51]SAM_PROTO_SignData done [17:58:51]FM_MakeSignedData done [17:58:51]CreateOFDProtocolMessage [17:58:51]wFMCommunicate request_size=4 [17:58:51]MH_SAM_APDU [17:58:51]CAPDU: 80 11 00 00 [17:58:51]Write to MH i2c: E2 08 00 B6 03 80 11 00 00 00 00 00 00 33 [17:58:51]Write i2c OK [17:58:51]MH_I2C_Read... [17:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:51]Read from MH i2c: E2 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: E2 17 00 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: E2 17 00 B6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 86 [17:58:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:58:51]wFMCommunicate OK [17:58:51]CreateOFDProtocolMessage done [17:58:51]OFDSenderStorePacket 192724 [17:58:51]StoreOFDPacket docnum=192724 [17:58:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7B F7 07 01 E6 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 D9 D0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 F0 02 00 35 04 06 00 A3 80 0E DB B1 AF 35 2B 2B 14 FA 7E C5 80 [17:58:51]CheckFolder [17:58:51]dirname=/storage/ofd_packets [17:58:51]CheckFolder done [17:58:51]ProducePacketName [17:58:51]name=ofd_packets/00192724 [17:58:51]NVStorageSaveData ofd_packets/00192724 [17:58:51]File name is /storage/ofd_packets/00192724 [17:58:51]Write 301 bytes [17:58:51]NVStorageSaveData done [17:58:51]OFDSenderStorePacket done [17:58:51]KKMCreateOFDPacket done [17:58:51]NVStorageSaveData kkm_last_timestamp [17:58:51]File name is /storage/kkm_last_timestamp [17:58:51]Write 4 bytes [17:58:51]NVStorageSaveData done [17:58:51]ExternCall_PrintAddStr [17:58:51]wPrintStart [17:58:51]Write to MH i2c: 01 00 00 B7 03 BA [17:58:51]Write i2c OK [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: 01 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: 01 07 00 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: 01 07 00 B7 03 00 00 00 00 00 FF 0F CF [17:58:51]RasterBufferAndPrint [17:58:51]line Счет N : (1)32050 [17:58:51]line ИНН: 02508201610067 [17:58:51]line Контрольно-Кассовый Чек [17:58:51]line ПРОДАЖА [17:58:51]line ТРК (МРК, ГНК) : 12 [17:58:51]line Товар: 2710124130 [17:58:51]line Аи-92-К-5 [17:58:51]line 3.740 * 66.90 [17:58:51]line = 250.21 [17:58:51]line НДС 12% НСП 1% [17:58:51]line > о реализуемом товаре [17:58:51]line ОКРУГЛЕНИЕ: -0.21 [17:58:51]line ИТОГО: 250.00 [17:58:51]line Внесено: 250.00 [17:58:51]line СДАЧА: 0.00 [17:58:51]line НСП 1% : 2.21 [17:58:51]line НДС 12% : 26.57 [17:58:51]line Наличными: 250.00 [17:58:51]line Безнал.: 0.00 [17:58:51]line Место: АЗС № 170 "Партнер Нефть" [17:58:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:58:51]line СНО: Общий режим [17:58:51]line Чек 272 28.10.2024 17:58 [17:58:51]line Смена: 543 ФФД: 1.0 [17:58:51]line ЗНМ: 0300000110 [17:58:51]line РНМ: 0000000000091776 [17:58:51]line Версия ККМ: 001 [17:58:51]line ФМ: 0000000000871754 [17:58:51]line ФД: 192724 [17:58:51]line ФПД: 179770400420271 [17:58:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T175849&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192724&fm=179770400420271&tin=02508201610067®Number=0000000000091776&sum=25000 [17:58:51]OFD Sender: Processing packet 192724 [packets to send 75, broken 74] [17:58:51]ProducePacketName [17:58:51]name=ofd_packets/00192724 [17:58:51]OFD Sender: To server: pG, [17:58:51]CommunicateWithHost lk.salyk.kg:30040 [17:58:51]ConnectInit lk.salyk.kg [17:58:51]written 0, free lines is 4095 [17:58:51]Connected sock=10 [17:58:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7B F7 07 01 E6 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 D9 D0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 F0 02 00 35 04 06 00 A3 80 0E DB B1 AF 35 2B 2B 14 FA 7E C5 80 [17:58:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 15 6F 47 00 69 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 F0 02 00 F4 03 04 00 9D 75 1F 67 B6 04 01 00 00 8F F6 88 14 12 DA AC 10 [17:58:51]CommunicateWithHost err = 0 [17:58:51]CheckOFDResponse [17:58:51]1017 (14) - 77093643461234 [17:58:51]1041 (16) - 0000000000871754 [17:58:51]1040 (4) - 192724 [17:58:51]1012 (4) - 28.10.2024 11:29 [17:58:51]1206 (1) - 0 [17:58:51]OFD Sender: Remove packet 192724 [17:58:51]ProducePacketName [17:58:51]name=ofd_packets/00192724 [17:58:51]NVStorageDeleteData [17:58:51]Write to MH i2c: 01 00 00 E2 03 E5 [17:58:51]Write i2c OK [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: 01 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: 01 07 00 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: 01 07 00 E2 03 00 00 00 00 00 B7 0C AF [17:58:51]RasterBufferAndPrint [17:58:51]line [17:58:51]line [17:58:51]line [17:58:51]line [17:58:51]line [17:58:51]written 0, free lines is 3262 [17:58:51]MH_Cut [17:58:51]Write to MH i2c: D1 01 00 E9 03 01 BE [17:58:51]Write i2c OK [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: D1 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: D1 01 00 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: D1 01 00 E9 03 00 BD [17:58:51]Write to MH i2c: 01 00 00 EA 03 ED [17:58:51]Write i2c OK [17:58:51]MH_I2C_Read... [17:58:52]OFD Sender: No OFD packet to send [17:58:52]*** Cut start [17:58:52]*** Partial cut [17:58:52]*** CUTSNS_PIN = 1 [17:58:52]*** CUTSNS_PIN = 0 [17:58:52]*** Brake cut motor [17:58:53]Read from MH i2c: 01 [17:58:53]MH_I2C_Read... [17:58:53]*** Stop cut motor [17:58:53]*** Cut end [17:58:53]Read from MH i2c: 01 07 00 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: 01 07 00 EA 03 00 00 00 00 00 FF 0F 02 [17:58:53]process_action close_receipt done [17:58:53]requested_data is exist [17:58:53]produce_requested_data [17:58:53]requested_item fm.sn is exist - process it [17:58:53]wFMCommunicate request_size=4 [17:58:53]MH_SAM_APDU [17:58:53]CAPDU: 80 11 00 00 [17:58:53]Write to MH i2c: E2 08 00 EB 03 80 11 00 00 00 00 00 00 68 [17:58:53]Write i2c OK [17:58:53]MH_I2C_Read... [17:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:53]Read from MH i2c: E2 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: E2 17 00 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: E2 17 00 EB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BB [17:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:58:53]wFMCommunicate OK [17:58:53]requested_item fd.num is exist - process it [17:58:53]SAM_PROTO_GetFieldsCounters [17:58:53]wFMCommunicate request_size=4 [17:58:53]MH_SAM_APDU [17:58:53]CAPDU: 80 13 00 00 [17:58:53]Write to MH i2c: E2 08 00 EC 03 80 13 00 00 00 00 00 00 6B [17:58:53]Write i2c OK [17:58:53]MH_I2C_Read... [17:58:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:53]Read from MH i2c: E2 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: E2 62 00 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: E2 62 00 EC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D4 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [17:58:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D4 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:53]wFMCommunicate OK [17:58:53]SAM_PROTO_GetFieldsCounters done [17:58:53]requested_item shift.num is exist - process it [17:58:53]requested_item shift.opened is exist - process it [17:58:53]req_shift_opened [17:58:53]FM_GetShiftState [17:58:53]SAM_PROTO_GetShiftState [17:58:53]wFMCommunicate request_size=4 [17:58:53]MH_SAM_APDU [17:58:53]CAPDU: 80 13 01 00 [17:58:53]Write to MH i2c: E2 08 00 ED 03 80 13 01 00 00 00 00 00 6D [17:58:53]Write i2c OK [17:58:53]MH_I2C_Read... [17:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:53]Read from MH i2c: E2 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: E2 0E 00 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: E2 0E 00 ED 03 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 BD [17:58:53]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:58:53]wFMCommunicate OK [17:58:53]SAM_PROTO_GetShiftState done [17:58:53]FM_GetShiftState done [17:58:53]req_shift_opened done [17:58:53]requested_item shift.open_date is exist - process it [17:58:53]req_shift_open_date [17:58:53]req_shift_open_date done [17:58:53]produce_requested_data done [17:58:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192724,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:58:53]process_action_free close_receipt [17:58:53]json_value_free [17:58:53]json_value_free done [17:58:53]process_json_proto returns [17:58:53]Send response to host [17:58:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192724,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:58:53]free response buf [17:58:53]execute_script done [17:58:53]execute_script returns [17:58:53]free content buf [17:58:53]Sock 8.Close socket [17:58:53]Sock 8.Thread stoped [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:26]accept exits with 9 [17:59:26]New connection [17:59:26]New thread 3066658148 created [17:59:26]Thread 3066801508 joined [17:59:26]Waiting for new connection... [17:59:26] Sock 9.Parse request [17:59:26]Sock 9.Check first char [17:59:26]Sock 9.First char is OK [17:59:26]request: POST /json_proto HTTP/1.0 [17:59:26]Method: POST [17:59:26]URL: /json_proto [17:59:26]Method is POST - this is cgi request [17:59:26]url: /json_proto [17:59:26]query_string will be loaded in cgi processing [17:59:26]execute_cgi json_proto POST (null) [17:59:26]execute_cgi path=json_proto method=POST [17:59:26]POST find Content-Length [17:59:26]Host: 172.17.63.131:8080 [17:59:26]Content-Length: 676 [17:59:26]Content-Type: application/json [17:59:26] [17:59:26]POST finish read [17:59:26]Found Content-Length = 676 [17:59:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:26]execute_script... [17:59: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)32051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:26]POST & json_proto [17:59:26]process_json_proto [17:59:26]json parsed OK: [17:59:26]protocol is kg_v1.0 [17:59:26]action value=close_receipt [17:59:26]process_action close_receipt [17:59:26]cmd_close_receipt [17:59:26]MH_GetDate [17:59:26]Write to MH i2c: F0 00 00 EE 03 E0 [17:59:26]Write i2c OK [17:59:26]MH_I2C_Read... [17:59:26]Read from MH i2c: F0 [17:59:26]MH_I2C_Read... [17:59:26]Read from MH i2c: F0 09 00 [17:59:26]MH_I2C_Read... [17:59:26]Read from MH i2c: F0 09 00 EE 03 00 FE D0 1F 67 22 05 6E 64 36 [17:59:26]GetLastDocTimeStamp 1730138329 [17:59:26]current date 1730138366 [17:59:26]FM_GetShiftState [17:59:26]SAM_PROTO_GetShiftState [17:59:26]wFMCommunicate request_size=4 [17:59:26]MH_SAM_APDU [17:59:26]CAPDU: 80 13 01 00 [17:59:26]Write to MH i2c: E2 08 00 EF 03 80 13 01 00 00 00 00 00 6F [17:59:26]Write i2c OK [17:59:26]MH_I2C_Read... [17:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:26]Read from MH i2c: E2 [17:59:26]MH_I2C_Read... [17:59:26]Read from MH i2c: E2 0E 00 [17:59:26]MH_I2C_Read... [17:59:26]Read from MH i2c: E2 0E 00 EF 03 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 BF [17:59:26]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:59:26]wFMCommunicate OK [17:59:26]SAM_PROTO_GetShiftState done [17:59:26]FM_GetShiftState done [17:59:26]opened in 1730075620 [17:59:26]opened+sec_in_day 1730162020 [17:59:26]quantity*price = 50041 [17:59:26]sum+1 = 50042 [17:59:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 273 28.10.2024 17:59 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192725 ФПД: 257355646736827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T175926&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192725&fm=257355646736827&tin=02508201610067®Number=0000000000091776&sum=50000 [17:59:27]StoreToDocumentArchive [17:59:27]shift 543 fd 192725 [17:59:27]save to /storage/0543/doc_00192725 [17:59:27]save last doc name /storage/0543/doc_00192725 to /storage/kkm_last_doc_name [17:59:27]save OK [17:59:27]Clear old archive folders... [17:59:27]OFD Sender: No OFD packet to send [17:59:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:59:27]tlvbuf is 00EE6260 [17:59:27]SAM_PROTO_ClearQueue [17:59:27]wFMCommunicate request_size=4 [17:59:27]MH_SAM_APDU [17:59:27]CAPDU: 80 09 00 00 [17:59:27]Write to MH i2c: E2 08 00 FC 03 80 09 00 00 00 00 00 00 71 [17:59:27]Write i2c OK [17:59:27]MH_I2C_Read... [17:59:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:27]Read from MH i2c: E2 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: E2 03 00 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [17:59:27]RAPDU: 90 00 [17:59:27]wFMCommunicate OK [17:59:27]SAM_PROTO_ClearQueue done [17:59:27]KKMCreateOFDPacket [17:59:27]OFDProtocolAddRootSTLVToBuf [17:59:27]FM_MakeSignedData [17:59:27]FM_MakeSignedData [17:59:27]SAM_PROTO_SignData [17:59:27]wFMCommunicate request_size=4 [17:59:27]MH_SAM_APDU [17:59:27]CAPDU: 80 0D 01 02 [17:59:27]Write to MH i2c: E2 08 00 FD 03 80 0D 01 02 00 00 00 00 79 [17:59:27]Write i2c OK [17:59:27]MH_I2C_Read... [17:59:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:27]Read from MH i2c: E2 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: E2 03 00 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: E2 03 00 FD 03 00 90 00 74 [17:59:27]RAPDU: 90 00 [17:59:27]wFMCommunicate OK [17:59:27]wFMCommunicate request_size=255 [17:59:27]MH_SAM_APDU [17:59:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 FE D0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 F0 02 00 35 04 06 00 EA [17:59:27]Write to MH i2c: E2 02 01 FE 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 FE D0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 F0 02 00 35 04 06 00 EA 00 00 45 [17:59:27]Write i2c OK [17:59:27]MH_I2C_Read... [17:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:27]Read from MH i2c: E2 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: E2 03 00 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: E2 03 00 FE 03 00 90 00 75 [17:59:27]RAPDU: 90 00 [17:59:27]wFMCommunicate OK [17:59:27]wFMCommunicate request_size=10 [17:59:27]MH_SAM_APDU [17:59:27]CAPDU: 80 0D 02 02 05 10 47 E7 99 BB [17:59:27]Write to MH i2c: E2 0D 00 FF 03 80 0D 02 02 05 00 10 47 E7 99 BB 00 00 18 [17:59:27]Write i2c OK [17:59:27]MH_I2C_Read... [17:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:27]Read from MH i2c: E2 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: E2 03 00 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: E2 03 00 FF 03 00 90 00 76 [17:59:27]RAPDU: 90 00 [17:59:27]wFMCommunicate OK [17:59:27]wFMCommunicate request_size=4 [17:59:27]MH_SAM_APDU [17:59:27]CAPDU: 80 0D 03 02 [17:59:27]Write to MH i2c: E2 08 00 00 04 80 0D 03 02 00 00 00 00 7F [17:59:27]Write i2c OK [17:59:27]MH_I2C_Read... [17:59:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:27]Read from MH i2c: E2 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: E2 0B 00 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: E2 0B 00 00 04 00 65 B5 45 AE DB 0E 97 87 90 00 94 [17:59:27]RAPDU: 65 B5 45 AE DB 0E 97 87 90 00 [17:59:27]wFMCommunicate OK [17:59:27]SAM_PROTO_SignData done [17:59:27]FM_MakeSignedData done [17:59:27]CreateOFDProtocolMessage [17:59:27]wFMCommunicate request_size=4 [17:59:27]MH_SAM_APDU [17:59:27]CAPDU: 80 11 00 00 [17:59:27]Write to MH i2c: E2 08 00 01 04 80 11 00 00 00 00 00 00 7F [17:59:27]Write i2c OK [17:59:27]MH_I2C_Read... [17:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:27]Read from MH i2c: E2 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: E2 17 00 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: E2 17 00 01 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [17:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:59:27]wFMCommunicate OK [17:59:27]CreateOFDProtocolMessage done [17:59:27]OFDSenderStorePacket 192725 [17:59:27]StoreOFDPacket docnum=192725 [17:59:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 55 D0 07 01 BA 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 FE D0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 F0 02 00 35 04 06 00 EA 10 47 E7 99 BB 65 B5 45 AE DB 0E 97 87 [17:59:27]CheckFolder [17:59:27]dirname=/storage/ofd_packets [17:59:27]CheckFolder done [17:59:27]ProducePacketName [17:59:27]name=ofd_packets/00192725 [17:59:27]NVStorageSaveData ofd_packets/00192725 [17:59:27]File name is /storage/ofd_packets/00192725 [17:59:27]Write 301 bytes [17:59:27]NVStorageSaveData done [17:59:27]OFDSenderStorePacket done [17:59:27]KKMCreateOFDPacket done [17:59:27]NVStorageSaveData kkm_last_timestamp [17:59:27]File name is /storage/kkm_last_timestamp [17:59:27]Write 4 bytes [17:59:27]NVStorageSaveData done [17:59:27]ExternCall_PrintAddStr [17:59:27]wPrintStart [17:59:27]Write to MH i2c: 01 00 00 02 04 06 [17:59:27]Write i2c OK [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: 01 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: 01 07 00 [17:59:27]MH_I2C_Read... [17:59:27]Read from MH i2c: 01 07 00 02 04 00 00 00 00 00 FF 0F 1B [17:59:27]RasterBufferAndPrint [17:59:27]line Счет N : (1)32051 [17:59:27]line ИНН: 02508201610067 [17:59:27]line Контрольно-Кассовый Чек [17:59:27]line ПРОДАЖА [17:59:27]line ТРК (МРК, ГНК) : 21 [17:59:27]line Товар: 2710124130 [17:59:27]line Аи-92-К-5 [17:59:27]line 7.480 * 66.90 [17:59:27]line = 500.41 [17:59:27]line НДС 12% НСП 1% [17:59:27]line > о реализуемом товаре [17:59:27]line ОКРУГЛЕНИЕ: -0.41 [17:59:27]line ИТОГО: 500.00 [17:59:27]line Внесено: 500.00 [17:59:27]line СДАЧА: 0.00 [17:59:27]line НСП 1% : 4.43 [17:59:27]line НДС 12% : 53.14 [17:59:27]line Наличными: 500.00 [17:59:27]line Безнал.: 0.00 [17:59:27]line Место: АЗС № 170 "Партнер Нефть" [17:59:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:59:27]line СНО: Общий режим [17:59:27]line Чек 273 28.10.2024 17:59 [17:59:27]line Смена: 543 ФФД: 1.0 [17:59:27]line ЗНМ: 0300000110 [17:59:27]line РНМ: 0000000000091776 [17:59:27]line Версия ККМ: 001 [17:59:27]line ФМ: 0000000000871754 [17:59:27]line ФД: 192725 [17:59:27]line ФПД: 257355646736827 [17:59:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T175926&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192725&fm=257355646736827&tin=02508201610067®Number=0000000000091776&sum=50000 [17:59:27]written 0, free lines is 4095 [17:59:27]OFD Sender: Processing packet 192725 [packets to send 75, broken 74] [17:59:27]ProducePacketName [17:59:27]name=ofd_packets/00192725 [17:59:27]OFD Sender: To server: pG, [17:59:27]CommunicateWithHost lk.salyk.kg:30040 [17:59:27]ConnectInit lk.salyk.kg [17:59:27]Connected sock=11 [17:59:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 55 D0 07 01 BA 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 FE D0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 F0 02 00 35 04 06 00 EA 10 47 E7 99 BB 65 B5 45 AE DB 0E 97 87 [17:59:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C8 65 47 00 A2 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 F0 02 00 F4 03 04 00 C1 75 1F 67 B6 04 01 00 00 9E 1E 0B C4 47 AA 31 3A [17:59:28]CommunicateWithHost err = 0 [17:59:28]CheckOFDResponse [17:59:28]1017 (14) - 77093643461234 [17:59:28]1041 (16) - 0000000000871754 [17:59:28]1040 (4) - 192725 [17:59:28]1012 (4) - 28.10.2024 11:30 [17:59:28]1206 (1) - 0 [17:59:28]OFD Sender: Remove packet 192725 [17:59:28]ProducePacketName [17:59:28]name=ofd_packets/00192725 [17:59:28]NVStorageDeleteData [17:59:28]Write to MH i2c: 01 00 00 2D 04 31 [17:59:28]Write i2c OK [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: 01 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: 01 07 00 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: 01 07 00 2D 04 00 00 00 00 00 BE 0C 02 [17:59:28]RasterBufferAndPrint [17:59:28]line [17:59:28]line [17:59:28]line [17:59:28]line [17:59:28]line [17:59:28]written 0, free lines is 3269 [17:59:28]MH_Cut [17:59:28]Write to MH i2c: D1 01 00 34 04 01 0A [17:59:28]Write i2c OK [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: D1 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: D1 01 00 [17:59:28]MH_I2C_Read... [17:59:28]Read from MH i2c: D1 01 00 34 04 00 09 [17:59:28]Write to MH i2c: 01 00 00 35 04 39 [17:59:28]Write i2c OK [17:59:28]MH_I2C_Read... [17:59:28]OFD Sender: No OFD packet to send [17:59:29]*** Cut start [17:59:29]*** Partial cut [17:59:29]*** CUTSNS_PIN = 1 [17:59:29]*** CUTSNS_PIN = 0 [17:59:29]*** Brake cut motor [17:59:29]Read from MH i2c: 01 [17:59:29]MH_I2C_Read... [17:59:29]*** Stop cut motor [17:59:29]*** Cut end [17:59:29]Read from MH i2c: 01 07 00 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: 01 07 00 35 04 00 00 00 00 00 FF 0F 4E [17:59:29]process_action close_receipt done [17:59:29]requested_data is exist [17:59:29]produce_requested_data [17:59:29]requested_item fm.sn is exist - process it [17:59:29]wFMCommunicate request_size=4 [17:59:29]MH_SAM_APDU [17:59:29]CAPDU: 80 11 00 00 [17:59:29]Write to MH i2c: E2 08 00 36 04 80 11 00 00 00 00 00 00 B4 [17:59:29]Write i2c OK [17:59:29]MH_I2C_Read... [17:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:29]Read from MH i2c: E2 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: E2 17 00 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: E2 17 00 36 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 07 [17:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:59:29]wFMCommunicate OK [17:59:29]requested_item fd.num is exist - process it [17:59:29]SAM_PROTO_GetFieldsCounters [17:59:29]wFMCommunicate request_size=4 [17:59:29]MH_SAM_APDU [17:59:29]CAPDU: 80 13 00 00 [17:59:29]Write to MH i2c: E2 08 00 37 04 80 13 00 00 00 00 00 00 B7 [17:59:29]Write i2c OK [17:59:29]MH_I2C_Read... [17:59:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:29]Read from MH i2c: E2 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: E2 62 00 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: E2 62 00 37 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D5 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [17:59:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D5 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:59:29]wFMCommunicate OK [17:59:29]SAM_PROTO_GetFieldsCounters done [17:59:29]requested_item shift.num is exist - process it [17:59:29]requested_item shift.opened is exist - process it [17:59:29]req_shift_opened [17:59:29]FM_GetShiftState [17:59:29]SAM_PROTO_GetShiftState [17:59:29]wFMCommunicate request_size=4 [17:59:29]MH_SAM_APDU [17:59:29]CAPDU: 80 13 01 00 [17:59:29]Write to MH i2c: E2 08 00 38 04 80 13 01 00 00 00 00 00 B9 [17:59:29]Write i2c OK [17:59:29]MH_I2C_Read... [17:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:29]Read from MH i2c: E2 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: E2 0E 00 [17:59:29]MH_I2C_Read... [17:59:29]Read from MH i2c: E2 0E 00 38 04 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 09 [17:59:29]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [17:59:29]wFMCommunicate OK [17:59:29]SAM_PROTO_GetShiftState done [17:59:29]FM_GetShiftState done [17:59:29]req_shift_opened done [17:59:29]requested_item shift.open_date is exist - process it [17:59:29]req_shift_open_date [17:59:29]req_shift_open_date done [17:59:29]produce_requested_data done [17:59:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192725,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [17:59:29]process_action_free close_receipt [17:59:29]json_value_free [17:59:29]json_value_free done [17:59:29]process_json_proto returns [17:59:29]Send response to host [17:59:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192725,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [17:59:29]free response buf [17:59:29]execute_script done [17:59:29]execute_script returns [17:59:29]free content buf [17:59:30]Sock 9.Close socket [17:59:30]Sock 9.Thread stoped [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:03]accept exits with 8 [18:07:03]New connection [18:07:03]New thread 3066801508 created [18:07:03]Thread 3066658148 joined [18:07:03]Waiting for new connection... [18:07:03] Sock 8.Parse request [18:07:03]Sock 8.Check first char [18:07:03]Sock 8.First char is OK [18:07:03]request: POST /json_proto HTTP/1.0 [18:07:03]Method: POST [18:07:03]URL: /json_proto [18:07:03]Method is POST - this is cgi request [18:07:03]url: /json_proto [18:07:03]query_string will be loaded in cgi processing [18:07:03]execute_cgi json_proto POST (null) [18:07:03]execute_cgi path=json_proto method=POST [18:07:03]POST find Content-Length [18:07:03]Host: 172.17.63.131:8080 [18:07:03]Content-Length: 676 [18:07:03]Content-Type: application/json [18:07:03] [18:07:03]POST finish read [18:07:03]Found Content-Length = 676 [18:07:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:03]execute_script... [18:07:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:03]POST & json_proto [18:07:03]process_json_proto [18:07:03]json parsed OK: [18:07:03]protocol is kg_v1.0 [18:07:03]action value=close_receipt [18:07:03]process_action close_receipt [18:07:03]cmd_close_receipt [18:07:03]MH_GetDate [18:07:03]Write to MH i2c: F0 00 00 39 04 2C [18:07:03]Write i2c OK [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: F0 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: F0 09 00 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: F0 09 00 39 04 00 C8 D2 1F 67 22 05 6E 64 4E [18:07:03]GetLastDocTimeStamp 1730138366 [18:07:03]current date 1730138824 [18:07:03]FM_GetShiftState [18:07:03]SAM_PROTO_GetShiftState [18:07:03]wFMCommunicate request_size=4 [18:07:03]MH_SAM_APDU [18:07:03]CAPDU: 80 13 01 00 [18:07:03]Write to MH i2c: E2 08 00 3A 04 80 13 01 00 00 00 00 00 BB [18:07:03]Write i2c OK [18:07:03]MH_I2C_Read... [18:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:03]Read from MH i2c: E2 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: E2 0E 00 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: E2 0E 00 3A 04 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0B [18:07:03]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:07:03]wFMCommunicate OK [18:07:03]SAM_PROTO_GetShiftState done [18:07:03]FM_GetShiftState done [18:07:03]opened in 1730075620 [18:07:03]opened+sec_in_day 1730162020 [18:07:03]quantity*price = 20003 [18:07:03]sum+1 = 20004 [18:07:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 274 28.10.2024 18:07 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192726 ФПД: 82414279970213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T180704&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192726&fm=82414279970213&tin=02508201610067®Number=0000000000091776&sum=20000 [18:07:04]StoreToDocumentArchive [18:07:04]shift 543 fd 192726 [18:07:04]save to /storage/0543/doc_00192726 [18:07:04]save last doc name /storage/0543/doc_00192726 to /storage/kkm_last_doc_name [18:07:04]save OK [18:07:04]Clear old archive folders... [18:07:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:04]tlvbuf is 00FA3900 [18:07:04]SAM_PROTO_ClearQueue [18:07:04]wFMCommunicate request_size=4 [18:07:04]MH_SAM_APDU [18:07:04]CAPDU: 80 09 00 00 [18:07:04]Write to MH i2c: E2 08 00 47 04 80 09 00 00 00 00 00 00 BD [18:07:04]Write i2c OK [18:07:04]MH_I2C_Read... [18:07:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:04]Read from MH i2c: E2 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: E2 03 00 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: E2 03 00 47 04 00 90 00 BF [18:07:04]RAPDU: 90 00 [18:07:04]wFMCommunicate OK [18:07:04]SAM_PROTO_ClearQueue done [18:07:04]KKMCreateOFDPacket [18:07:04]OFDProtocolAddRootSTLVToBuf [18:07:04]FM_MakeSignedData [18:07:04]FM_MakeSignedData [18:07:04]SAM_PROTO_SignData [18:07:04]wFMCommunicate request_size=4 [18:07:04]MH_SAM_APDU [18:07:04]CAPDU: 80 0D 01 02 [18:07:04]Write to MH i2c: E2 08 00 48 04 80 0D 01 02 00 00 00 00 C5 [18:07:04]Write i2c OK [18:07:04]MH_I2C_Read... [18:07:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:04]Read from MH i2c: E2 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: E2 03 00 [18:07:04]MH_I2C_Read... [18:07:04]Read from MH i2c: E2 03 00 48 04 00 90 00 C0 [18:07:04]RAPDU: 90 00 [18:07:04]wFMCommunicate OK [18:07:04]wFMCommunicate request_size=255 [18:07:04]MH_SAM_APDU [18:07:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 C8 D2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 F0 02 00 35 04 06 00 4A [18:07:04]Write to MH i2c: E2 02 01 49 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 C8 D2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 F0 02 00 35 04 06 00 4A 00 00 81 [18:07:04]Write i2c OK [18:07:04]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 49 04 00 90 00 C1 [18:07:05]RAPDU: 90 00 [18:07:05]wFMCommunicate OK [18:07:05]wFMCommunicate request_size=10 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 0D 02 02 05 F4 91 E1 CD A5 [18:07:05]Write to MH i2c: E2 0D 00 4A 04 80 0D 02 02 05 00 F4 91 E1 CD A5 00 00 AA [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 4A 04 00 90 00 C2 [18:07:05]RAPDU: 90 00 [18:07:05]wFMCommunicate OK [18:07:05]wFMCommunicate request_size=4 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 0D 03 02 [18:07:05]Write to MH i2c: E2 08 00 4B 04 80 0D 03 02 00 00 00 00 CA [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 0B 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 0B 00 4B 04 00 E6 8C 1B 9B 38 E3 29 AD 90 00 E4 [18:07:05]RAPDU: E6 8C 1B 9B 38 E3 29 AD 90 00 [18:07:05]wFMCommunicate OK [18:07:05]SAM_PROTO_SignData done [18:07:05]FM_MakeSignedData done [18:07:05]CreateOFDProtocolMessage [18:07:05]wFMCommunicate request_size=4 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 11 00 00 [18:07:05]Write to MH i2c: E2 08 00 4C 04 80 11 00 00 00 00 00 00 CA [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 17 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 17 00 4C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1D [18:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:07:05]wFMCommunicate OK [18:07:05]CreateOFDProtocolMessage done [18:07:05]OFDSenderStorePacket 192726 [18:07:05]StoreOFDPacket docnum=192726 [18:07:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A7 3A 07 01 1E B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 C8 D2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 F0 02 00 35 04 06 00 4A F4 91 E1 CD A5 E6 8C 1B 9B 38 E3 29 AD [18:07:05]CheckFolder [18:07:05]dirname=/storage/ofd_packets [18:07:05]CheckFolder done [18:07:05]ProducePacketName [18:07:05]name=ofd_packets/00192726 [18:07:05]NVStorageSaveData ofd_packets/00192726 [18:07:05]File name is /storage/ofd_packets/00192726 [18:07:05]Write 301 bytes [18:07:05]NVStorageSaveData done [18:07:05]OFDSenderStorePacket done [18:07:05]KKMCreateOFDPacket done [18:07:05]NVStorageSaveData kkm_last_timestamp [18:07:05]File name is /storage/kkm_last_timestamp [18:07:05]Write 4 bytes [18:07:05]NVStorageSaveData done [18:07:05]ExternCall_PrintAddStr [18:07:05]wPrintStart [18:07:05]Write to MH i2c: 01 00 00 4D 04 51 [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 07 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 07 00 4D 04 00 00 00 00 00 FF 0F 66 [18:07:05]RasterBufferAndPrint [18:07:05]line Счет N : (1)32052 [18:07:05]line ИНН: 02508201610067 [18:07:05]line Контрольно-Кассовый Чек [18:07:05]line ПРОДАЖА [18:07:05]line ТРК (МРК, ГНК) : 12 [18:07:05]line Товар: 2710124130 [18:07:05]line Аи-92-К-5 [18:07:05]line 2.990 * 66.90 [18:07:05]line = 200.03 [18:07:05]line НДС 12% НСП 1% [18:07:05]line > о реализуемом товаре [18:07:05]line ОКРУГЛЕНИЕ: -0.03 [18:07:05]line ИТОГО: 200.00 [18:07:05]line Внесено: 200.00 [18:07:05]line СДАЧА: 0.00 [18:07:05]line НСП 1% : 1.77 [18:07:05]line НДС 12% : 21.24 [18:07:05]line Наличными: 200.00 [18:07:05]line Безнал.: 0.00 [18:07:05]line Место: АЗС № 170 "Партнер Нефть" [18:07:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:07:05]line СНО: Общий режим [18:07:05]line Чек 274 28.10.2024 18:07 [18:07:05]line Смена: 543 ФФД: 1.0 [18:07:05]line ЗНМ: 0300000110 [18:07:05]line РНМ: 0000000000091776 [18:07:05]line Версия ККМ: 001 [18:07:05]line ФМ: 0000000000871754 [18:07:05]line ФД: 192726 [18:07:05]line ФПД: 82414279970213 [18:07:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T180704&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192726&fm=82414279970213&tin=02508201610067®Number=0000000000091776&sum=20000 [18:07:05]OFD Sender: Processing packet 192726 [packets to send 75, broken 74] [18:07:05]ProducePacketName [18:07:05]name=ofd_packets/00192726 [18:07:05]OFD Sender: To server: pG, [18:07:05]CommunicateWithHost lk.salyk.kg:30040 [18:07:05]ConnectInit lk.salyk.kg [18:07:05]written 0, free lines is 4095 [18:07:05]Connected sock=10 [18:07:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A7 3A 07 01 1E B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 C8 D2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 F0 02 00 35 04 06 00 4A F4 91 E1 CD A5 E6 8C 1B 9B 38 E3 29 AD [18:07:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 61 B1 47 00 84 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 F0 02 00 F4 03 04 00 8B 77 1F 67 B6 04 01 00 00 77 39 15 0B CC 6B 58 6A [18:07:06]CommunicateWithHost err = 0 [18:07:06]CheckOFDResponse [18:07:06]1017 (14) - 77093643461234 [18:07:06]1041 (16) - 0000000000871754 [18:07:06]1040 (4) - 192726 [18:07:06]1012 (4) - 28.10.2024 11:37 [18:07:06]1206 (1) - 0 [18:07:06]OFD Sender: Remove packet 192726 [18:07:06]ProducePacketName [18:07:06]name=ofd_packets/00192726 [18:07:06]NVStorageDeleteData [18:07:06]Write to MH i2c: 01 00 00 78 04 7C [18:07:06]Write i2c OK [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: 01 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: 01 07 00 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: 01 07 00 78 04 00 00 00 00 00 AF 0C 3E [18:07:06]RasterBufferAndPrint [18:07:06]line [18:07:06]line [18:07:06]line [18:07:06]line [18:07:06]line [18:07:06]written 0, free lines is 3255 [18:07:06]MH_Cut [18:07:06]Write to MH i2c: D1 01 00 7F 04 01 55 [18:07:06]Write i2c OK [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: D1 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: D1 01 00 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: D1 01 00 7F 04 00 54 [18:07:06]Write to MH i2c: 01 00 00 80 04 84 [18:07:06]Write i2c OK [18:07:06]MH_I2C_Read... [18:07:06]OFD Sender: No OFD packet to send [18:07:06]*** Cut start [18:07:06]*** Partial cut [18:07:06]*** CUTSNS_PIN = 1 [18:07:07]*** CUTSNS_PIN = 0 [18:07:07]*** Brake cut motor [18:07:07]Read from MH i2c: 01 [18:07:07]MH_I2C_Read... [18:07:07]*** Stop cut motor [18:07:07]*** Cut end [18:07:07]Read from MH i2c: 01 07 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: 01 07 00 80 04 00 00 00 00 00 FF 0F 99 [18:07:07]process_action close_receipt done [18:07:07]requested_data is exist [18:07:07]produce_requested_data [18:07:07]requested_item fm.sn is exist - process it [18:07:07]wFMCommunicate request_size=4 [18:07:07]MH_SAM_APDU [18:07:07]CAPDU: 80 11 00 00 [18:07:07]Write to MH i2c: E2 08 00 81 04 80 11 00 00 00 00 00 00 FF [18:07:07]Write i2c OK [18:07:07]MH_I2C_Read... [18:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:07]Read from MH i2c: E2 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 17 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 17 00 81 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 52 [18:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:07:07]wFMCommunicate OK [18:07:07]requested_item fd.num is exist - process it [18:07:07]SAM_PROTO_GetFieldsCounters [18:07:07]wFMCommunicate request_size=4 [18:07:07]MH_SAM_APDU [18:07:07]CAPDU: 80 13 00 00 [18:07:07]Write to MH i2c: E2 08 00 82 04 80 13 00 00 00 00 00 00 02 [18:07:07]Write i2c OK [18:07:07]MH_I2C_Read... [18:07:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:07]Read from MH i2c: E2 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 62 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 62 00 82 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D6 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [18:07:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D6 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:07]wFMCommunicate OK [18:07:07]SAM_PROTO_GetFieldsCounters done [18:07:07]requested_item shift.num is exist - process it [18:07:07]requested_item shift.opened is exist - process it [18:07:07]req_shift_opened [18:07:07]FM_GetShiftState [18:07:07]SAM_PROTO_GetShiftState [18:07:07]wFMCommunicate request_size=4 [18:07:07]MH_SAM_APDU [18:07:07]CAPDU: 80 13 01 00 [18:07:07]Write to MH i2c: E2 08 00 83 04 80 13 01 00 00 00 00 00 04 [18:07:07]Write i2c OK [18:07:07]MH_I2C_Read... [18:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:07]Read from MH i2c: E2 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 0E 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 0E 00 83 04 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 54 [18:07:07]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:07:07]wFMCommunicate OK [18:07:07]SAM_PROTO_GetShiftState done [18:07:07]FM_GetShiftState done [18:07:07]req_shift_opened done [18:07:07]requested_item shift.open_date is exist - process it [18:07:07]req_shift_open_date [18:07:07]req_shift_open_date done [18:07:07]produce_requested_data done [18:07:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192726,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:07:07]process_action_free close_receipt [18:07:07]json_value_free [18:07:07]json_value_free done [18:07:07]process_json_proto returns [18:07:07]Send response to host [18:07:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192726,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:07:07]free response buf [18:07:07]execute_script done [18:07:07]execute_script returns [18:07:07]free content buf [18:07:07]Sock 8.Close socket [18:07:07]Sock 8.Thread stoped [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]accept exits with 9 [18:10:01]New connection [18:10:01]New thread 3066658148 created [18:10:01]Thread 3066801508 joined [18:10:01]Waiting for new connection... [18:10:01] Sock 9.Parse request [18:10:01]Sock 9.Check first char [18:10:01]Sock 9.First char is OK [18:10:01]request: POST /json_proto HTTP/1.0 [18:10:01]Method: POST [18:10:01]URL: /json_proto [18:10:01]Method is POST - this is cgi request [18:10:01]url: /json_proto [18:10:01]query_string will be loaded in cgi processing [18:10:01]execute_cgi json_proto POST (null) [18:10:01]execute_cgi path=json_proto method=POST [18:10:01]POST find Content-Length [18:10:01]Host: 172.17.63.131:8080 [18:10:01]Content-Length: 678 [18:10:01]Content-Type: application/json [18:10:01] [18:10:01]POST finish read [18:10:01]Found Content-Length = 678 [18:10:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.240, "sum" : 1999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:01]execute_script... [18:10: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)32053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.240, "sum" : 1999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:01]POST & json_proto [18:10:01]process_json_proto [18:10:01]json parsed OK: [18:10:01]protocol is kg_v1.0 [18:10:01]action value=close_receipt [18:10:01]process_action close_receipt [18:10:01]cmd_close_receipt [18:10:01]MH_GetDate [18:10:01]Write to MH i2c: F0 00 00 84 04 77 [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: F0 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: F0 09 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: F0 09 00 84 04 00 79 D3 1F 67 22 05 6E 64 4B [18:10:01]GetLastDocTimeStamp 1730138824 [18:10:01]current date 1730139001 [18:10:01]FM_GetShiftState [18:10:01]SAM_PROTO_GetShiftState [18:10:01]wFMCommunicate request_size=4 [18:10:01]MH_SAM_APDU [18:10:01]CAPDU: 80 13 01 00 [18:10:01]Write to MH i2c: E2 08 00 85 04 80 13 01 00 00 00 00 00 06 [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:01]Read from MH i2c: E2 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 0E 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 0E 00 85 04 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 56 [18:10:01]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:10:01]wFMCommunicate OK [18:10:01]SAM_PROTO_GetShiftState done [18:10:01]FM_GetShiftState done [18:10:01]opened in 1730075620 [18:10:01]opened+sec_in_day 1730162020 [18:10:01]quantity*price = 199948 [18:10:01]sum+1 = 199950 [18:10:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1999.00 Внесено: 2000.00 СДАЧА: 1.00 НСП 1% : 17.69 НДС 12% : 212.33 Наличными: 1999.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 275 28.10.2024 18:10 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192727 ФПД: 27561325836777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T181001&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192727&fm=27561325836777&tin=02508201610067®Number=0000000000091776&sum=199900 [18:10:02]StoreToDocumentArchive [18:10:02]shift 543 fd 192727 [18:10:02]save to /storage/0543/doc_00192727 [18:10:02]save last doc name /storage/0543/doc_00192727 to /storage/kkm_last_doc_name [18:10:02]save OK [18:10:02]Clear old archive folders... [18:10:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:10:02]tlvbuf is 00FAA1C0 [18:10:02]SAM_PROTO_ClearQueue [18:10:02]wFMCommunicate request_size=4 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 09 00 00 [18:10:02]Write to MH i2c: E2 08 00 92 04 80 09 00 00 00 00 00 00 08 [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:02]Read from MH i2c: E2 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 03 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 03 00 92 04 00 90 00 0A [18:10:02]RAPDU: 90 00 [18:10:02]wFMCommunicate OK [18:10:02]SAM_PROTO_ClearQueue done [18:10:02]KKMCreateOFDPacket [18:10:02]OFDProtocolAddRootSTLVToBuf [18:10:02]FM_MakeSignedData [18:10:02]FM_MakeSignedData [18:10:02]SAM_PROTO_SignData [18:10:02]wFMCommunicate request_size=4 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 0D 01 02 [18:10:02]Write to MH i2c: E2 08 00 93 04 80 0D 01 02 00 00 00 00 10 [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:02]Read from MH i2c: E2 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 03 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 03 00 93 04 00 90 00 0B [18:10:02]RAPDU: 90 00 [18:10:02]wFMCommunicate OK [18:10:02]wFMCommunicate request_size=255 [18:10:02]MH_SAM_APDU [18:10: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 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 79 D3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 F0 02 00 35 04 06 00 19 11 1F 09 [18:10:02]Write to MH i2c: E2 02 01 94 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 79 D3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 F0 02 00 35 04 06 00 19 11 1F 09 00 00 80 [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:02]Read from MH i2c: E2 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 03 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 03 00 94 04 00 90 00 0C [18:10:02]RAPDU: 90 00 [18:10:02]wFMCommunicate OK [18:10:02]wFMCommunicate request_size=7 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 0D 02 02 02 39 E9 [18:10:02]Write to MH i2c: E2 0A 00 95 04 80 0D 02 02 02 00 39 E9 00 00 39 [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:02]Read from MH i2c: E2 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 03 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 03 00 95 04 00 90 00 0D [18:10:02]RAPDU: 90 00 [18:10:02]wFMCommunicate OK [18:10:02]wFMCommunicate request_size=4 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 0D 03 02 [18:10:02]Write to MH i2c: E2 08 00 96 04 80 0D 03 02 00 00 00 00 15 [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:02]Read from MH i2c: E2 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 0B 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 0B 00 96 04 00 67 72 6F 44 5B 87 EA 36 90 00 A4 [18:10:02]RAPDU: 67 72 6F 44 5B 87 EA 36 90 00 [18:10:02]wFMCommunicate OK [18:10:02]SAM_PROTO_SignData done [18:10:02]FM_MakeSignedData done [18:10:02]CreateOFDProtocolMessage [18:10:02]wFMCommunicate request_size=4 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 11 00 00 [18:10:02]Write to MH i2c: E2 08 00 97 04 80 11 00 00 00 00 00 00 15 [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:02]Read from MH i2c: E2 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 17 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 17 00 97 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 68 [18:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:10:02]wFMCommunicate OK [18:10:02]CreateOFDProtocolMessage done [18:10:02]OFDSenderStorePacket 192727 [18:10:02]StoreOFDPacket docnum=192727 [18:10:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B8 9D 04 01 5C CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 79 D3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 F0 02 00 35 04 06 00 19 11 1F 09 39 E9 67 72 6F 44 5B 87 EA 36 [18:10:02]CheckFolder [18:10:02]dirname=/storage/ofd_packets [18:10:02]CheckFolder done [18:10:02]ProducePacketName [18:10:02]name=ofd_packets/00192727 [18:10:02]NVStorageSaveData ofd_packets/00192727 [18:10:02]File name is /storage/ofd_packets/00192727 [18:10:02]Write 298 bytes [18:10:02]NVStorageSaveData done [18:10:02]OFDSenderStorePacket done [18:10:02]KKMCreateOFDPacket done [18:10:02]NVStorageSaveData kkm_last_timestamp [18:10:02]File name is /storage/kkm_last_timestamp [18:10:02]Write 4 bytes [18:10:02]NVStorageSaveData done [18:10:02]ExternCall_PrintAddStr [18:10:02]wPrintStart [18:10:02]Write to MH i2c: 01 00 00 98 04 9C [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: 01 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: 01 07 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: 01 07 00 98 04 00 00 00 00 00 FF 0F B1 [18:10:02]RasterBufferAndPrint [18:10:02]line Счет N : (1)32053 [18:10:02]line ИНН: 02508201610067 [18:10:02]line Контрольно-Кассовый Чек [18:10:02]line ПРОДАЖА [18:10:02]line ТРК (МРК, ГНК) : 11 [18:10:02]line Товар: 2710194210 [18:10:02]line ДТ-К-5 [18:10:02]line 26.240 * 76.20 [18:10:02]line = 1999.49 [18:10:02]line НДС 12% НСП 1% [18:10:02]line > о реализуемом товаре [18:10:02]line ОКРУГЛЕНИЕ: -0.49 [18:10:02]line ИТОГО: 1999.00 [18:10:02]line Внесено: 2000.00 [18:10:02]line СДАЧА: 1.00 [18:10:02]line НСП 1% : 17.69 [18:10:02]line НДС 12% : 212.33 [18:10:02]line Наличными: 1999.00 [18:10:02]line Безнал.: 0.00 [18:10:02]line Место: АЗС № 170 "Партнер Нефть" [18:10:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:10:02]line СНО: Общий режим [18:10:02]line Чек 275 28.10.2024 18:10 [18:10:02]line Смена: 543 ФФД: 1.0 [18:10:02]line ЗНМ: 0300000110 [18:10:02]line РНМ: 0000000000091776 [18:10:02]line Версия ККМ: 001 [18:10:02]line ФМ: 0000000000871754 [18:10:02]line ФД: 192727 [18:10:03]line ФПД: 27561325836777 [18:10:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T181001&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192727&fm=27561325836777&tin=02508201610067®Number=0000000000091776&sum=199900 [18:10:03]OFD Sender: Processing packet 192727 [packets to send 75, broken 74] [18:10:03]ProducePacketName [18:10:03]name=ofd_packets/00192727 [18:10:03]OFD Sender: To server: pG, [18:10:03]CommunicateWithHost lk.salyk.kg:30040 [18:10:03]ConnectInit lk.salyk.kg [18:10:03]written 0, free lines is 4095 [18:10:03]Connected sock=10 [18:10:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B8 9D 04 01 5C CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 79 D3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 F0 02 00 35 04 06 00 19 11 1F 09 39 E9 67 72 6F 44 5B 87 EA 36 [18:10:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B1 BC 47 00 06 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 F0 02 00 F4 03 04 00 3D 78 1F 67 B6 04 01 00 00 AA 4C F3 EE 19 75 58 AC [18:10:03]CommunicateWithHost err = 0 [18:10:03]CheckOFDResponse [18:10:03]1017 (14) - 77093643461234 [18:10:03]1041 (16) - 0000000000871754 [18:10:03]1040 (4) - 192727 [18:10:03]1012 (4) - 28.10.2024 11:40 [18:10:03]1206 (1) - 0 [18:10:03]OFD Sender: Remove packet 192727 [18:10:03]ProducePacketName [18:10:03]name=ofd_packets/00192727 [18:10:03]NVStorageDeleteData [18:10:03]Write to MH i2c: 01 00 00 C3 04 C7 [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: 01 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: 01 07 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: 01 07 00 C3 04 00 00 00 00 00 BA 0C 94 [18:10:03]RasterBufferAndPrint [18:10:03]line [18:10:03]line [18:10:03]line [18:10:03]line [18:10:03]line [18:10:03]written 0, free lines is 3264 [18:10:03]MH_Cut [18:10:03]Write to MH i2c: D1 01 00 CA 04 01 A0 [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: D1 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: D1 01 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: D1 01 00 CA 04 00 9F [18:10:03]Write to MH i2c: 01 00 00 CB 04 CF [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:04]OFD Sender: No OFD packet to send [18:10:04]*** Cut start [18:10:04]*** Partial cut [18:10:04]*** CUTSNS_PIN = 1 [18:10:04]*** CUTSNS_PIN = 0 [18:10:04]*** Brake cut motor [18:10:05]Read from MH i2c: 01 [18:10:05]MH_I2C_Read... [18:10:05]*** Stop cut motor [18:10:05]*** Cut end [18:10:05]Read from MH i2c: 01 07 00 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: 01 07 00 CB 04 00 00 00 00 00 FF 0F E4 [18:10:05]process_action close_receipt done [18:10:05]requested_data is exist [18:10:05]produce_requested_data [18:10:05]requested_item fm.sn is exist - process it [18:10:05]wFMCommunicate request_size=4 [18:10:05]MH_SAM_APDU [18:10:05]CAPDU: 80 11 00 00 [18:10:05]Write to MH i2c: E2 08 00 CC 04 80 11 00 00 00 00 00 00 4A [18:10:05]Write i2c OK [18:10:05]MH_I2C_Read... [18:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:05]Read from MH i2c: E2 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: E2 17 00 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: E2 17 00 CC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9D [18:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:10:05]wFMCommunicate OK [18:10:05]requested_item fd.num is exist - process it [18:10:05]SAM_PROTO_GetFieldsCounters [18:10:05]wFMCommunicate request_size=4 [18:10:05]MH_SAM_APDU [18:10:05]CAPDU: 80 13 00 00 [18:10:05]Write to MH i2c: E2 08 00 CD 04 80 13 00 00 00 00 00 00 4D [18:10:05]Write i2c OK [18:10:05]MH_I2C_Read... [18:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:05]Read from MH i2c: E2 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: E2 62 00 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: E2 62 00 CD 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D7 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [18:10:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D7 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:05]wFMCommunicate OK [18:10:05]SAM_PROTO_GetFieldsCounters done [18:10:05]requested_item shift.num is exist - process it [18:10:05]requested_item shift.opened is exist - process it [18:10:05]req_shift_opened [18:10:05]FM_GetShiftState [18:10:05]SAM_PROTO_GetShiftState [18:10:05]wFMCommunicate request_size=4 [18:10:05]MH_SAM_APDU [18:10:05]CAPDU: 80 13 01 00 [18:10:05]Write to MH i2c: E2 08 00 CE 04 80 13 01 00 00 00 00 00 4F [18:10:05]Write i2c OK [18:10:05]MH_I2C_Read... [18:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:05]Read from MH i2c: E2 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: E2 0E 00 [18:10:05]MH_I2C_Read... [18:10:05]Read from MH i2c: E2 0E 00 CE 04 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 9F [18:10:05]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:10:05]wFMCommunicate OK [18:10:05]SAM_PROTO_GetShiftState done [18:10:05]FM_GetShiftState done [18:10:05]req_shift_opened done [18:10:05]requested_item shift.open_date is exist - process it [18:10:05]req_shift_open_date [18:10:05]req_shift_open_date done [18:10:05]produce_requested_data done [18:10:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192727,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:10:05]process_action_free close_receipt [18:10:05]json_value_free [18:10:05]json_value_free done [18:10:05]process_json_proto returns [18:10:05]Send response to host [18:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192727,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:10:05]free response buf [18:10:05]execute_script done [18:10:05]execute_script returns [18:10:05]free content buf [18:10:05]Sock 9.Close socket [18:10:05]Sock 9.Thread stoped [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:22]accept exits with 8 [18:11:22]New connection [18:11:22]New thread 3066801508 created [18:11:22]Thread 3066658148 joined [18:11:22]Waiting for new connection... [18:11:22] Sock 8.Parse request [18:11:22]Sock 8.Check first char [18:11:22]Sock 8.First char is OK [18:11:22]request: POST /json_proto HTTP/1.0 [18:11:22]Method: POST [18:11:22]URL: /json_proto [18:11:22]Method is POST - this is cgi request [18:11:22]url: /json_proto [18:11:22]query_string will be loaded in cgi processing [18:11:22]execute_cgi json_proto POST (null) [18:11:22]execute_cgi path=json_proto method=POST [18:11:22]POST find Content-Length [18:11:22]Host: 172.17.63.131:8080 [18:11:22]Content-Length: 676 [18:11:22]Content-Type: application/json [18:11:22] [18:11:22]POST finish read [18:11:22]Found Content-Length = 676 [18:11:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:22]execute_script... [18:11: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)32054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:22]POST & json_proto [18:11:22]process_json_proto [18:11:22]json parsed OK: [18:11:22]protocol is kg_v1.0 [18:11:22]action value=close_receipt [18:11:22]process_action close_receipt [18:11:22]cmd_close_receipt [18:11:22]MH_GetDate [18:11:22]Write to MH i2c: F0 00 00 CF 04 C2 [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: F0 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: F0 09 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: F0 09 00 CF 04 00 CA D3 1F 67 22 05 6E 64 E7 [18:11:22]GetLastDocTimeStamp 1730139001 [18:11:22]current date 1730139082 [18:11:22]FM_GetShiftState [18:11:22]SAM_PROTO_GetShiftState [18:11:22]wFMCommunicate request_size=4 [18:11:22]MH_SAM_APDU [18:11:22]CAPDU: 80 13 01 00 [18:11:22]Write to MH i2c: E2 08 00 D0 04 80 13 01 00 00 00 00 00 51 [18:11:22]Write i2c OK [18:11:22]MH_I2C_Read... [18:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:22]Read from MH i2c: E2 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 0E 00 [18:11:22]MH_I2C_Read... [18:11:22]Read from MH i2c: E2 0E 00 D0 04 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A1 [18:11:22]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:11:22]wFMCommunicate OK [18:11:22]SAM_PROTO_GetShiftState done [18:11:22]FM_GetShiftState done [18:11:22]opened in 1730075620 [18:11:22]opened+sec_in_day 1730162020 [18:11:22]quantity*price = 15052 [18:11:22]sum+1 = 15054 [18:11:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 276 28.10.2024 18:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192728 ФПД: 44647051223221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T181123&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192728&fm=44647051223221&tin=02508201610067®Number=0000000000091776&sum=15000 [18:11:23]StoreToDocumentArchive [18:11:23]shift 543 fd 192728 [18:11:23]save to /storage/0543/doc_00192728 [18:11:23]save last doc name /storage/0543/doc_00192728 to /storage/kkm_last_doc_name [18:11:23]save OK [18:11:23]Clear old archive folders... [18:11:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:23]tlvbuf is 00EF1C60 [18:11:23]SAM_PROTO_ClearQueue [18:11:23]wFMCommunicate request_size=4 [18:11:23]MH_SAM_APDU [18:11:23]CAPDU: 80 09 00 00 [18:11:23]Write to MH i2c: E2 08 00 DD 04 80 09 00 00 00 00 00 00 53 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:23]Read from MH i2c: E2 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 03 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 03 00 DD 04 00 90 00 55 [18:11:23]RAPDU: 90 00 [18:11:23]wFMCommunicate OK [18:11:23]SAM_PROTO_ClearQueue done [18:11:23]KKMCreateOFDPacket [18:11:23]OFDProtocolAddRootSTLVToBuf [18:11:23]FM_MakeSignedData [18:11:23]FM_MakeSignedData [18:11:23]SAM_PROTO_SignData [18:11:23]wFMCommunicate request_size=4 [18:11:23]MH_SAM_APDU [18:11:23]CAPDU: 80 0D 01 02 [18:11:23]Write to MH i2c: E2 08 00 DE 04 80 0D 01 02 00 00 00 00 5B [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:23]Read from MH i2c: E2 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 03 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 03 00 DE 04 00 90 00 56 [18:11:23]RAPDU: 90 00 [18:11:23]wFMCommunicate OK [18:11:23]wFMCommunicate request_size=255 [18:11:23]MH_SAM_APDU [18:11:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 CB D3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 F0 02 00 35 04 06 00 28 [18:11:23]Write to MH i2c: E2 02 01 DF 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 CB D3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 F0 02 00 35 04 06 00 28 00 00 38 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:24]Read from MH i2c: E2 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 03 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 03 00 DF 04 00 90 00 57 [18:11:24]RAPDU: 90 00 [18:11:24]wFMCommunicate OK [18:11:24]wFMCommunicate request_size=10 [18:11:24]MH_SAM_APDU [18:11:24]CAPDU: 80 0D 02 02 05 9B 33 A0 E0 B5 [18:11:24]Write to MH i2c: E2 0D 00 E0 04 80 0D 02 02 05 00 9B 33 A0 E0 B5 00 00 6B [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:24]Read from MH i2c: E2 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 03 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 03 00 E0 04 00 90 00 58 [18:11:24]RAPDU: 90 00 [18:11:24]wFMCommunicate OK [18:11:24]wFMCommunicate request_size=4 [18:11:24]MH_SAM_APDU [18:11:24]CAPDU: 80 0D 03 02 [18:11:24]Write to MH i2c: E2 08 00 E1 04 80 0D 03 02 00 00 00 00 60 [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:24]Read from MH i2c: E2 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 0B 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 0B 00 E1 04 00 3C 8F E7 05 16 CC A8 01 90 00 A3 [18:11:24]RAPDU: 3C 8F E7 05 16 CC A8 01 90 00 [18:11:24]wFMCommunicate OK [18:11:24]SAM_PROTO_SignData done [18:11:24]FM_MakeSignedData done [18:11:24]CreateOFDProtocolMessage [18:11:24]wFMCommunicate request_size=4 [18:11:24]MH_SAM_APDU [18:11:24]CAPDU: 80 11 00 00 [18:11:24]Write to MH i2c: E2 08 00 E2 04 80 11 00 00 00 00 00 00 60 [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]OFD Sender: No OFD packet to send [18:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:24]Read from MH i2c: E2 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 17 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 17 00 E2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B3 [18:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:11:24]wFMCommunicate OK [18:11:24]CreateOFDProtocolMessage done [18:11:24]OFDSenderStorePacket 192728 [18:11:24]StoreOFDPacket docnum=192728 [18:11:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 61 5F 07 01 5E 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 CB D3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 F0 02 00 35 04 06 00 28 9B 33 A0 E0 B5 3C 8F E7 05 16 CC A8 01 [18:11:24]CheckFolder [18:11:24]dirname=/storage/ofd_packets [18:11:24]CheckFolder done [18:11:24]ProducePacketName [18:11:24]name=ofd_packets/00192728 [18:11:24]NVStorageSaveData ofd_packets/00192728 [18:11:24]File name is /storage/ofd_packets/00192728 [18:11:24]Write 301 bytes [18:11:24]NVStorageSaveData done [18:11:24]OFDSenderStorePacket done [18:11:24]KKMCreateOFDPacket done [18:11:24]NVStorageSaveData kkm_last_timestamp [18:11:24]File name is /storage/kkm_last_timestamp [18:11:24]Write 4 bytes [18:11:24]NVStorageSaveData done [18:11:24]ExternCall_PrintAddStr [18:11:24]wPrintStart [18:11:24]Write to MH i2c: 01 00 00 E3 04 E7 [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: 01 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: 01 07 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: 01 07 00 E3 04 00 00 00 00 00 FF 0F FC [18:11:24]RasterBufferAndPrint [18:11:24]line Счет N : (1)32054 [18:11:24]line ИНН: 02508201610067 [18:11:24]line Контрольно-Кассовый Чек [18:11:24]line ПРОДАЖА [18:11:24]line ТРК (МРК, ГНК) : 21 [18:11:24]line Товар: 2710124130 [18:11:24]line Аи-92-К-5 [18:11:24]line 2.250 * 66.90 [18:11:24]line = 150.53 [18:11:24]line НДС 12% НСП 1% [18:11:24]line > о реализуемом товаре [18:11:24]line ОКРУГЛЕНИЕ: -0.53 [18:11:24]line ИТОГО: 150.00 [18:11:24]line Внесено: 150.00 [18:11:24]line СДАЧА: 0.00 [18:11:24]line НСП 1% : 1.33 [18:11:24]line НДС 12% : 15.98 [18:11:24]line Наличными: 150.00 [18:11:24]line Безнал.: 0.00 [18:11:24]line Место: АЗС № 170 "Партнер Нефть" [18:11:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:11:24]line СНО: Общий режим [18:11:24]line Чек 276 28.10.2024 18:11 [18:11:24]line Смена: 543 ФФД: 1.0 [18:11:24]line ЗНМ: 0300000110 [18:11:24]line РНМ: 0000000000091776 [18:11:24]line Версия ККМ: 001 [18:11:24]line ФМ: 0000000000871754 [18:11:24]line ФД: 192728 [18:11:24]line ФПД: 44647051223221 [18:11:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T181123&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192728&fm=44647051223221&tin=02508201610067®Number=0000000000091776&sum=15000 [18:11:24]OFD Sender: Processing packet 192728 [packets to send 75, broken 74] [18:11:24]ProducePacketName [18:11:24]name=ofd_packets/00192728 [18:11:24]OFD Sender: To server: pG, [18:11:24]CommunicateWithHost lk.salyk.kg:30040 [18:11:24]ConnectInit lk.salyk.kg [18:11:24]written 0, free lines is 4095 [18:11:24]Connected sock=9 [18:11:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 61 5F 07 01 5E 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 CB D3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 F0 02 00 35 04 06 00 28 9B 33 A0 E0 B5 3C 8F E7 05 16 CC A8 01 [18:11:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2B 51 47 00 F7 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 F0 02 00 F4 03 04 00 8E 78 1F 67 B6 04 01 00 00 B0 E1 B0 33 49 22 FB 91 [18:11:24]CommunicateWithHost err = 0 [18:11:24]CheckOFDResponse [18:11:24]1017 (14) - 77093643461234 [18:11:24]1041 (16) - 0000000000871754 [18:11:24]1040 (4) - 192728 [18:11:24]1012 (4) - 28.10.2024 11:42 [18:11:24]1206 (1) - 0 [18:11:24]OFD Sender: Remove packet 192728 [18:11:24]ProducePacketName [18:11:24]name=ofd_packets/00192728 [18:11:24]NVStorageDeleteData [18:11:25]Write to MH i2c: 01 00 00 0E 05 13 [18:11:25]Write i2c OK [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: 01 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: 01 07 00 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: 01 07 00 0E 05 00 00 00 00 00 AE 0C D4 [18:11:25]RasterBufferAndPrint [18:11:25]line [18:11:25]line [18:11:25]line [18:11:25]line [18:11:25]line [18:11:25]written 0, free lines is 3253 [18:11:25]MH_Cut [18:11:25]Write to MH i2c: D1 01 00 15 05 01 EC [18:11:25]Write i2c OK [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: D1 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: D1 01 00 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: D1 01 00 15 05 00 EB [18:11:25]Write to MH i2c: 01 00 00 16 05 1B [18:11:25]Write i2c OK [18:11:25]MH_I2C_Read... [18:11:25]OFD Sender: No OFD packet to send [18:11:25]*** Cut start [18:11:25]*** Partial cut [18:11:25]*** CUTSNS_PIN = 1 [18:11:25]*** CUTSNS_PIN = 0 [18:11:26]*** Brake cut motor [18:11:26]Read from MH i2c: 01 [18:11:26]MH_I2C_Read... [18:11:26]*** Stop cut motor [18:11:26]*** Cut end [18:11:26]Read from MH i2c: 01 07 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: 01 07 00 16 05 00 00 00 00 00 FF 0F 30 [18:11:26]process_action close_receipt done [18:11:26]requested_data is exist [18:11:26]produce_requested_data [18:11:26]requested_item fm.sn is exist - process it [18:11:26]wFMCommunicate request_size=4 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 11 00 00 [18:11:26]Write to MH i2c: E2 08 00 17 05 80 11 00 00 00 00 00 00 96 [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 17 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 17 00 17 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E9 [18:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:11:26]wFMCommunicate OK [18:11:26]requested_item fd.num is exist - process it [18:11:26]SAM_PROTO_GetFieldsCounters [18:11:26]wFMCommunicate request_size=4 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 13 00 00 [18:11:26]Write to MH i2c: E2 08 00 18 05 80 13 00 00 00 00 00 00 99 [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 62 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 62 00 18 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D8 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [18:11:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D8 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:26]wFMCommunicate OK [18:11:26]SAM_PROTO_GetFieldsCounters done [18:11:26]requested_item shift.num is exist - process it [18:11:26]requested_item shift.opened is exist - process it [18:11:26]req_shift_opened [18:11:26]FM_GetShiftState [18:11:26]SAM_PROTO_GetShiftState [18:11:26]wFMCommunicate request_size=4 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 13 01 00 [18:11:26]Write to MH i2c: E2 08 00 19 05 80 13 01 00 00 00 00 00 9B [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 0E 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 0E 00 19 05 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EB [18:11:26]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:11:26]wFMCommunicate OK [18:11:26]SAM_PROTO_GetShiftState done [18:11:26]FM_GetShiftState done [18:11:26]req_shift_opened done [18:11:26]requested_item shift.open_date is exist - process it [18:11:26]req_shift_open_date [18:11:26]req_shift_open_date done [18:11:26]produce_requested_data done [18:11:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192728,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:11:26]process_action_free close_receipt [18:11:26]json_value_free [18:11:26]json_value_free done [18:11:26]process_json_proto returns [18:11:26]Send response to host [18:11:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192728,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:11:26]free response buf [18:11:26]execute_script done [18:11:26]execute_script returns [18:11:26]free content buf [18:11:26]Sock 8.Close socket [18:11:26]Sock 8.Thread stoped [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:10]OFD Sender: No OFD packet to send [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:45]OFD Sender: No OFD packet to send [18:12:50]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:06]accept exits with 10 [18:13:06]New connection [18:13:06]New thread 3066658148 created [18:13:06]Thread 3066801508 joined [18:13:06]Waiting for new connection... [18:13:06] Sock 10.Parse request [18:13:06]Sock 10.Check first char [18:13:06]Sock 10.First char is OK [18:13:06]request: POST /json_proto HTTP/1.0 [18:13:06]Method: POST [18:13:06]URL: /json_proto [18:13:06]Method is POST - this is cgi request [18:13:06]url: /json_proto [18:13:06]query_string will be loaded in cgi processing [18:13:06]execute_cgi json_proto POST (null) [18:13:06]execute_cgi path=json_proto method=POST [18:13:06]POST find Content-Length [18:13:06]Host: 172.17.63.131:8080 [18:13:06]Content-Length: 678 [18:13:06]Content-Type: application/json [18:13:06] [18:13:06]POST finish read [18:13:06]Found Content-Length = 678 [18:13:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:06]execute_script... [18:13:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:06]POST & json_proto [18:13:06]process_json_proto [18:13:06]json parsed OK: [18:13:06]protocol is kg_v1.0 [18:13:06]action value=close_receipt [18:13:06]process_action close_receipt [18:13:06]cmd_close_receipt [18:13:06]MH_GetDate [18:13:06]Write to MH i2c: F0 00 00 1A 05 0E [18:13:06]Write i2c OK [18:13:06]MH_I2C_Read... [18:13:06]Read from MH i2c: F0 [18:13:06]MH_I2C_Read... [18:13:06]Read from MH i2c: F0 09 00 [18:13:06]MH_I2C_Read... [18:13:06]Read from MH i2c: F0 09 00 1A 05 00 32 D4 1F 67 22 05 6E 64 9C [18:13:06]GetLastDocTimeStamp 1730139083 [18:13:06]current date 1730139186 [18:13:06]FM_GetShiftState [18:13:06]SAM_PROTO_GetShiftState [18:13:06]wFMCommunicate request_size=4 [18:13:06]MH_SAM_APDU [18:13:06]CAPDU: 80 13 01 00 [18:13:06]Write to MH i2c: E2 08 00 1B 05 80 13 01 00 00 00 00 00 9D [18:13:06]Write i2c OK [18:13:06]MH_I2C_Read... [18:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:06]Read from MH i2c: E2 [18:13:06]MH_I2C_Read... [18:13:06]Read from MH i2c: E2 0E 00 [18:13:06]MH_I2C_Read... [18:13:06]Read from MH i2c: E2 0E 00 1B 05 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 ED [18:13:06]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:13:06]wFMCommunicate OK [18:13:06]SAM_PROTO_GetShiftState done [18:13:06]FM_GetShiftState done [18:13:06]opened in 1730075620 [18:13:06]opened+sec_in_day 1730162020 [18:13:06]quantity*price = 100050 [18:13:06]sum+1 = 100052 [18:13:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 277 28.10.2024 18:13 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192729 ФПД: 95087736285778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T181306&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192729&fm=95087736285778&tin=02508201610067®Number=0000000000091776&sum=100000 [18:13:07]StoreToDocumentArchive [18:13:07]shift 543 fd 192729 [18:13:07]save to /storage/0543/doc_00192729 [18:13:07]save last doc name /storage/0543/doc_00192729 to /storage/kkm_last_doc_name [18:13:07]save OK [18:13:07]Clear old archive folders... [18:13:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:13:07]tlvbuf is 00FA5440 [18:13:07]SAM_PROTO_ClearQueue [18:13:07]wFMCommunicate request_size=4 [18:13:07]MH_SAM_APDU [18:13:07]CAPDU: 80 09 00 00 [18:13:07]Write to MH i2c: E2 08 00 28 05 80 09 00 00 00 00 00 00 9F [18:13:07]Write i2c OK [18:13:07]MH_I2C_Read... [18:13:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:07]Read from MH i2c: E2 [18:13:07]MH_I2C_Read... [18:13:07]Read from MH i2c: E2 03 00 [18:13:07]MH_I2C_Read... [18:13:07]Read from MH i2c: E2 03 00 28 05 00 90 00 A1 [18:13:07]RAPDU: 90 00 [18:13:07]wFMCommunicate OK [18:13:07]SAM_PROTO_ClearQueue done [18:13:07]KKMCreateOFDPacket [18:13:07]OFDProtocolAddRootSTLVToBuf [18:13:07]FM_MakeSignedData [18:13:07]FM_MakeSignedData [18:13:07]SAM_PROTO_SignData [18:13:07]wFMCommunicate request_size=4 [18:13:07]MH_SAM_APDU [18:13:07]CAPDU: 80 0D 01 02 [18:13:07]Write to MH i2c: E2 08 00 29 05 80 0D 01 02 00 00 00 00 A7 [18:13:07]Write i2c OK [18:13:07]MH_I2C_Read... [18:13:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:07]Read from MH i2c: E2 [18:13:07]MH_I2C_Read... [18:13:07]Read from MH i2c: E2 03 00 [18:13:07]MH_I2C_Read... [18:13:07]Read from MH i2c: E2 03 00 29 05 00 90 00 A2 [18:13:07]RAPDU: 90 00 [18:13:07]wFMCommunicate OK [18:13:07]wFMCommunicate request_size=255 [18:13:07]MH_SAM_APDU [18:13:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 32 D4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 F0 02 00 35 04 06 00 56 7B 56 BE [18:13:07]Write to MH i2c: E2 02 01 2A 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 32 D4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 F0 02 00 35 04 06 00 56 7B 56 BE 00 00 A4 [18:13:07]Write i2c OK [18:13:07]MH_I2C_Read... [18:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:08]Read from MH i2c: E2 [18:13:08]MH_I2C_Read... [18:13:08]Read from MH i2c: E2 03 00 [18:13:08]MH_I2C_Read... [18:13:08]Read from MH i2c: E2 03 00 2A 05 00 90 00 A3 [18:13:08]RAPDU: 90 00 [18:13:08]wFMCommunicate OK [18:13:08]wFMCommunicate request_size=7 [18:13:08]MH_SAM_APDU [18:13:08]CAPDU: 80 0D 02 02 02 6A 52 [18:13:08]Write to MH i2c: E2 0A 00 2B 05 80 0D 02 02 02 00 6A 52 00 00 6A [18:13:08]Write i2c OK [18:13:08]MH_I2C_Read... [18:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:08]Read from MH i2c: E2 [18:13:08]MH_I2C_Read... [18:13:08]Read from MH i2c: E2 03 00 [18:13:08]MH_I2C_Read... [18:13:08]Read from MH i2c: E2 03 00 2B 05 00 90 00 A4 [18:13:08]RAPDU: 90 00 [18:13:08]wFMCommunicate OK [18:13:08]wFMCommunicate request_size=4 [18:13:08]MH_SAM_APDU [18:13:08]CAPDU: 80 0D 03 02 [18:13:08]Write to MH i2c: E2 08 00 2C 05 80 0D 03 02 00 00 00 00 AC [18:13:08]Write i2c OK [18:13:08]MH_I2C_Read... [18:13:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:08]Read from MH i2c: E2 [18:13:08]MH_I2C_Read... [18:13:08]Read from MH i2c: E2 0B 00 [18:13:08]MH_I2C_Read... [18:13:08]Read from MH i2c: E2 0B 00 2C 05 00 84 3E CF 96 7E 7D A4 58 90 00 CB [18:13:08]RAPDU: 84 3E CF 96 7E 7D A4 58 90 00 [18:13:08]wFMCommunicate OK [18:13:08]SAM_PROTO_SignData done [18:13:08]FM_MakeSignedData done [18:13:08]CreateOFDProtocolMessage [18:13:08]wFMCommunicate request_size=4 [18:13:08]MH_SAM_APDU [18:13:08]CAPDU: 80 11 00 00 [18:13:08]Write to MH i2c: E2 08 00 2D 05 80 11 00 00 00 00 00 00 AC [18:13:08]Write i2c OK [18:13:08]MH_I2C_Read... [18:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:08]Read from MH i2c: E2 [18:13:08]MH_I2C_Read... [18:13:08]Read from MH i2c: E2 17 00 [18:13:08]MH_I2C_Read... [18:13:08]Read from MH i2c: E2 17 00 2D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FF [18:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:13:08]wFMCommunicate OK [18:13:08]CreateOFDProtocolMessage done [18:13:08]OFDSenderStorePacket 192729 [18:13:08]StoreOFDPacket docnum=192729 [18:13:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BA D2 04 01 6D EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 32 D4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 F0 02 00 35 04 06 00 56 7B 56 BE 6A 52 84 3E CF 96 7E 7D A4 58 [18:13:08]CheckFolder [18:13:08]dirname=/storage/ofd_packets [18:13:08]CheckFolder done [18:13:08]ProducePacketName [18:13:08]name=ofd_packets/00192729 [18:13:08]NVStorageSaveData ofd_packets/00192729 [18:13:08]File name is /storage/ofd_packets/00192729 [18:13:08]Write 298 bytes [18:13:08]NVStorageSaveData done [18:13:08]OFDSenderStorePacket done [18:13:08]KKMCreateOFDPacket done [18:13:08]NVStorageSaveData kkm_last_timestamp [18:13:08]File name is /storage/kkm_last_timestamp [18:13:08]Write 4 bytes [18:13:08]NVStorageSaveData done [18:13:08]ExternCall_PrintAddStr [18:13:08]wPrintStart [18:13:08]Write to MH i2c: 01 00 00 2E 05 33 [18:13:08]Write i2c OK [18:13:08]MH_I2C_Read... [18:13:08]Read from MH i2c: 01 [18:13:08]MH_I2C_Read... [18:13:08]Read from MH i2c: 01 07 00 [18:13:08]MH_I2C_Read... [18:13:08]Read from MH i2c: 01 07 00 2E 05 00 00 00 00 00 FF 0F 48 [18:13:08]RasterBufferAndPrint [18:13:08]line Счет N : (1)32055 [18:13:08]line ИНН: 02508201610067 [18:13:08]line Контрольно-Кассовый Чек [18:13:08]line ПРОДАЖА [18:13:08]line ТРК (МРК, ГНК) : 11 [18:13:08]line Товар: 2710194210 [18:13:08]line ДТ-К-5 [18:13:08]line 13.130 * 76.20 [18:13:08]line = 1000.51 [18:13:08]line НДС 12% НСП 1% [18:13:08]line > о реализуемом товаре [18:13:08]line ОКРУГЛЕНИЕ: -0.51 [18:13:08]line ИТОГО: 1000.00 [18:13:08]line Внесено: 1000.00 [18:13:08]line СДАЧА: 0.00 [18:13:08]line НСП 1% : 8.85 [18:13:08]line НДС 12% : 106.25 [18:13:08]line Наличными: 1000.00 [18:13:08]line Безнал.: 0.00 [18:13:08]line Место: АЗС № 170 "Партнер Нефть" [18:13:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:13:08]line СНО: Общий режим [18:13:08]line Чек 277 28.10.2024 18:13 [18:13:08]line Смена: 543 ФФД: 1.0 [18:13:08]line ЗНМ: 0300000110 [18:13:08]line РНМ: 0000000000091776 [18:13:08]line Версия ККМ: 001 [18:13:08]line ФМ: 0000000000871754 [18:13:08]line ФД: 192729 [18:13:08]line ФПД: 95087736285778 [18:13:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T181306&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192729&fm=95087736285778&tin=02508201610067®Number=0000000000091776&sum=100000 [18:13:08]OFD Sender: Processing packet 192729 [packets to send 75, broken 74] [18:13:08]ProducePacketName [18:13:08]name=ofd_packets/00192729 [18:13:08]OFD Sender: To server: pG, [18:13:08]CommunicateWithHost lk.salyk.kg:30040 [18:13:08]ConnectInit lk.salyk.kg [18:13:08]written 0, free lines is 4095 [18:13:08]Connected sock=11 [18:13:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BA D2 04 01 6D EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 32 D4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 F0 02 00 35 04 06 00 56 7B 56 BE 6A 52 84 3E CF 96 7E 7D A4 58 [18:13:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C5 45 47 00 18 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 F0 02 00 F4 03 04 00 F6 78 1F 67 B6 04 01 00 00 ED BF BD 63 FE 25 22 4D [18:13:08]CommunicateWithHost err = 0 [18:13:08]CheckOFDResponse [18:13:08]1017 (14) - 77093643461234 [18:13:08]1041 (16) - 0000000000871754 [18:13:08]1040 (4) - 192729 [18:13:08]1012 (4) - 28.10.2024 11:43 [18:13:08]1206 (1) - 0 [18:13:08]OFD Sender: Remove packet 192729 [18:13:08]ProducePacketName [18:13:08]name=ofd_packets/00192729 [18:13:08]NVStorageDeleteData [18:13:09]Write to MH i2c: 01 00 00 59 05 5E [18:13:09]Write i2c OK [18:13:09]MH_I2C_Read... [18:13:09]Read from MH i2c: 01 [18:13:09]MH_I2C_Read... [18:13:09]Read from MH i2c: 01 07 00 [18:13:09]MH_I2C_Read... [18:13:09]Read from MH i2c: 01 07 00 59 05 00 00 00 00 00 B5 0C 26 [18:13:09]RasterBufferAndPrint [18:13:09]line [18:13:09]line [18:13:09]line [18:13:09]line [18:13:09]line [18:13:09]written 0, free lines is 3257 [18:13:09]MH_Cut [18:13:09]Write to MH i2c: D1 01 00 60 05 01 37 [18:13:09]Write i2c OK [18:13:09]MH_I2C_Read... [18:13:09]Read from MH i2c: D1 [18:13:09]MH_I2C_Read... [18:13:09]Read from MH i2c: D1 01 00 [18:13:09]MH_I2C_Read... [18:13:09]Read from MH i2c: D1 01 00 60 05 00 36 [18:13:09]Write to MH i2c: 01 00 00 61 05 66 [18:13:09]Write i2c OK [18:13:09]MH_I2C_Read... [18:13:09]OFD Sender: No OFD packet to send [18:13:09]*** Cut start [18:13:09]*** Partial cut [18:13:09]*** CUTSNS_PIN = 1 [18:13:09]*** CUTSNS_PIN = 0 [18:13:10]*** Brake cut motor [18:13:10]Read from MH i2c: 01 [18:13:10]MH_I2C_Read... [18:13:10]*** Stop cut motor [18:13:10]*** Cut end [18:13:10]Read from MH i2c: 01 07 00 [18:13:10]MH_I2C_Read... [18:13:10]Read from MH i2c: 01 07 00 61 05 00 00 00 00 00 FF 0F 7B [18:13:10]process_action close_receipt done [18:13:10]requested_data is exist [18:13:10]produce_requested_data [18:13:10]requested_item fm.sn is exist - process it [18:13:10]wFMCommunicate request_size=4 [18:13:10]MH_SAM_APDU [18:13:10]CAPDU: 80 11 00 00 [18:13:10]Write to MH i2c: E2 08 00 62 05 80 11 00 00 00 00 00 00 E1 [18:13:10]Write i2c OK [18:13:10]MH_I2C_Read... [18:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:10]Read from MH i2c: E2 [18:13:10]MH_I2C_Read... [18:13:10]Read from MH i2c: E2 17 00 [18:13:10]MH_I2C_Read... [18:13:10]Read from MH i2c: E2 17 00 62 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 34 [18:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:13:10]wFMCommunicate OK [18:13:10]requested_item fd.num is exist - process it [18:13:10]SAM_PROTO_GetFieldsCounters [18:13:10]wFMCommunicate request_size=4 [18:13:10]MH_SAM_APDU [18:13:10]CAPDU: 80 13 00 00 [18:13:10]Write to MH i2c: E2 08 00 63 05 80 13 00 00 00 00 00 00 E4 [18:13:10]Write i2c OK [18:13:10]MH_I2C_Read... [18:13:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:10]Read from MH i2c: E2 [18:13:10]MH_I2C_Read... [18:13:10]Read from MH i2c: E2 62 00 [18:13:10]MH_I2C_Read... [18:13:10]Read from MH i2c: E2 62 00 63 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D9 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 38 [18:13:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D9 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:10]wFMCommunicate OK [18:13:10]SAM_PROTO_GetFieldsCounters done [18:13:10]requested_item shift.num is exist - process it [18:13:10]requested_item shift.opened is exist - process it [18:13:10]req_shift_opened [18:13:10]FM_GetShiftState [18:13:10]SAM_PROTO_GetShiftState [18:13:10]wFMCommunicate request_size=4 [18:13:10]MH_SAM_APDU [18:13:10]CAPDU: 80 13 01 00 [18:13:10]Write to MH i2c: E2 08 00 64 05 80 13 01 00 00 00 00 00 E6 [18:13:10]Write i2c OK [18:13:10]MH_I2C_Read... [18:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:10]Read from MH i2c: E2 [18:13:10]MH_I2C_Read... [18:13:10]Read from MH i2c: E2 0E 00 [18:13:10]MH_I2C_Read... [18:13:10]Read from MH i2c: E2 0E 00 64 05 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 36 [18:13:10]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:13:10]wFMCommunicate OK [18:13:10]SAM_PROTO_GetShiftState done [18:13:10]FM_GetShiftState done [18:13:10]req_shift_opened done [18:13:10]requested_item shift.open_date is exist - process it [18:13:10]req_shift_open_date [18:13:10]req_shift_open_date done [18:13:10]produce_requested_data done [18:13:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192729,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:13:10]process_action_free close_receipt [18:13:10]json_value_free [18:13:10]json_value_free done [18:13:10]process_json_proto returns [18:13:10]Send response to host [18:13:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192729,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:13:10]free response buf [18:13:10]execute_script done [18:13:10]execute_script returns [18:13:10]free content buf [18:13:10]Sock 10.Close socket [18:13:10]Sock 10.Thread stoped [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:08]accept exits with 8 [18:15:08]New connection [18:15:08]New thread 3066801508 created [18:15:08]Thread 3066658148 joined [18:15:08]Waiting for new connection... [18:15:08] Sock 8.Parse request [18:15:08]Sock 8.Check first char [18:15:08]Sock 8.First char is OK [18:15:08]request: POST /json_proto HTTP/1.0 [18:15:08]Method: POST [18:15:08]URL: /json_proto [18:15:08]Method is POST - this is cgi request [18:15:08]url: /json_proto [18:15:08]query_string will be loaded in cgi processing [18:15:08]execute_cgi json_proto POST (null) [18:15:08]execute_cgi path=json_proto method=POST [18:15:08]POST find Content-Length [18:15:08]Host: 172.17.63.131:8080 [18:15:08]Content-Length: 676 [18:15:08]Content-Type: application/json [18:15:08] [18:15:08]POST finish read [18:15:08]Found Content-Length = 676 [18:15:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:08]execute_script... [18: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)32056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:08]POST & json_proto [18:15:08]process_json_proto [18:15:08]json parsed OK: [18:15:08]protocol is kg_v1.0 [18:15:08]action value=close_receipt [18:15:08]process_action close_receipt [18:15:08]cmd_close_receipt [18:15:08]MH_GetDate [18:15:08]Write to MH i2c: F0 00 00 65 05 59 [18:15:08]Write i2c OK [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: F0 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: F0 09 00 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: F0 09 00 65 05 00 AC D4 1F 67 22 05 6E 64 61 [18:15:08]GetLastDocTimeStamp 1730139186 [18:15:08]current date 1730139308 [18:15:08]FM_GetShiftState [18:15:08]SAM_PROTO_GetShiftState [18:15:08]wFMCommunicate request_size=4 [18:15:08]MH_SAM_APDU [18:15:08]CAPDU: 80 13 01 00 [18:15:08]Write to MH i2c: E2 08 00 66 05 80 13 01 00 00 00 00 00 E8 [18:15:08]Write i2c OK [18:15:08]MH_I2C_Read... [18:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:08]Read from MH i2c: E2 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: E2 0E 00 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: E2 0E 00 66 05 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 38 [18:15:08]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:15:08]wFMCommunicate OK [18:15:08]SAM_PROTO_GetShiftState done [18:15:08]FM_GetShiftState done [18:15:08]opened in 1730075620 [18:15:08]opened+sec_in_day 1730162020 [18:15:08]quantity*price = 40006 [18:15:08]sum+1 = 40007 [18:15:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 278 28.10.2024 18:15 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192730 ФПД: 102041250176917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T181508&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192730&fm=102041250176917&tin=02508201610067®Number=0000000000091776&sum=40000 [18:15:09]StoreToDocumentArchive [18:15:09]shift 543 fd 192730 [18:15:09]save to /storage/0543/doc_00192730 [18:15:09]save last doc name /storage/0543/doc_00192730 to /storage/kkm_last_doc_name [18:15:09]save OK [18:15:09]Clear old archive folders... [18:15:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:15:09]tlvbuf is 00FA5E60 [18:15:09]SAM_PROTO_ClearQueue [18:15:09]wFMCommunicate request_size=4 [18:15:09]MH_SAM_APDU [18:15:09]CAPDU: 80 09 00 00 [18:15:09]Write to MH i2c: E2 08 00 73 05 80 09 00 00 00 00 00 00 EA [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:09]Read from MH i2c: E2 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 03 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 03 00 73 05 00 90 00 EC [18:15:09]RAPDU: 90 00 [18:15:09]wFMCommunicate OK [18:15:09]SAM_PROTO_ClearQueue done [18:15:09]KKMCreateOFDPacket [18:15:09]OFDProtocolAddRootSTLVToBuf [18:15:09]FM_MakeSignedData [18:15:09]FM_MakeSignedData [18:15:09]SAM_PROTO_SignData [18:15:09]wFMCommunicate request_size=4 [18:15:09]MH_SAM_APDU [18:15:09]CAPDU: 80 0D 01 02 [18:15:09]Write to MH i2c: E2 08 00 74 05 80 0D 01 02 00 00 00 00 F2 [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:09]Read from MH i2c: E2 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 03 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 03 00 74 05 00 90 00 ED [18:15:09]RAPDU: 90 00 [18:15:09]wFMCommunicate OK [18:15:09]wFMCommunicate request_size=255 [18:15:09]MH_SAM_APDU [18: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 AC D4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA F0 02 00 35 04 06 00 5C [18:15:09]Write to MH i2c: E2 02 01 75 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 AC D4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA F0 02 00 35 04 06 00 5C 00 00 BB [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]OFD Sender: No OFD packet to send [18:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:09]Read from MH i2c: E2 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 03 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 03 00 75 05 00 90 00 EE [18:15:09]RAPDU: 90 00 [18:15:09]wFMCommunicate OK [18:15:09]wFMCommunicate request_size=10 [18:15:09]MH_SAM_APDU [18:15:09]CAPDU: 80 0D 02 02 05 CE 54 78 1F 95 [18:15:09]Write to MH i2c: E2 0D 00 76 05 80 0D 02 02 05 00 CE 54 78 1F 95 00 00 4D [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:09]Read from MH i2c: E2 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 03 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 03 00 76 05 00 90 00 EF [18:15:09]RAPDU: 90 00 [18:15:09]wFMCommunicate OK [18:15:09]wFMCommunicate request_size=4 [18:15:09]MH_SAM_APDU [18:15:09]CAPDU: 80 0D 03 02 [18:15:09]Write to MH i2c: E2 08 00 77 05 80 0D 03 02 00 00 00 00 F7 [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:09]Read from MH i2c: E2 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 0B 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 0B 00 77 05 00 58 5E A6 7D BA B9 75 69 90 00 22 [18:15:09]RAPDU: 58 5E A6 7D BA B9 75 69 90 00 [18:15:09]wFMCommunicate OK [18:15:09]SAM_PROTO_SignData done [18:15:09]FM_MakeSignedData done [18:15:09]CreateOFDProtocolMessage [18:15:09]wFMCommunicate request_size=4 [18:15:09]MH_SAM_APDU [18:15:09]CAPDU: 80 11 00 00 [18:15:09]Write to MH i2c: E2 08 00 78 05 80 11 00 00 00 00 00 00 F7 [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:09]Read from MH i2c: E2 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 17 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 17 00 78 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4A [18:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:15:09]wFMCommunicate OK [18:15:09]CreateOFDProtocolMessage done [18:15:09]OFDSenderStorePacket 192730 [18:15:09]StoreOFDPacket docnum=192730 [18:15:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AC DA 07 01 BB 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 AC D4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA F0 02 00 35 04 06 00 5C CE 54 78 1F 95 58 5E A6 7D BA B9 75 69 [18:15:09]CheckFolder [18:15:09]dirname=/storage/ofd_packets [18:15:09]CheckFolder done [18:15:09]ProducePacketName [18:15:09]name=ofd_packets/00192730 [18:15:09]NVStorageSaveData ofd_packets/00192730 [18:15:09]File name is /storage/ofd_packets/00192730 [18:15:09]Write 301 bytes [18:15:09]NVStorageSaveData done [18:15:09]OFDSenderStorePacket done [18:15:09]KKMCreateOFDPacket done [18:15:09]NVStorageSaveData kkm_last_timestamp [18:15:09]File name is /storage/kkm_last_timestamp [18:15:09]Write 4 bytes [18:15:09]NVStorageSaveData done [18:15:09]ExternCall_PrintAddStr [18:15:09]wPrintStart [18:15:09]Write to MH i2c: 01 00 00 79 05 7E [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: 01 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: 01 07 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: 01 07 00 79 05 00 00 00 00 00 FF 0F 93 [18:15:09]RasterBufferAndPrint [18:15:09]line Счет N : (1)32056 [18:15:09]line ИНН: 02508201610067 [18:15:09]line Контрольно-Кассовый Чек [18:15:09]line ПРОДАЖА [18:15:09]line ТРК (МРК, ГНК) : 12 [18:15:09]line Товар: 2710124130 [18:15:09]line Аи-92-К-5 [18:15:09]line 5.980 * 66.90 [18:15:09]line = 400.06 [18:15:09]line НДС 12% НСП 1% [18:15:09]line > о реализуемом товаре [18:15:09]line ОКРУГЛЕНИЕ: -0.06 [18:15:09]line ИТОГО: 400.00 [18:15:09]line Внесено: 400.00 [18:15:09]line СДАЧА: 0.00 [18:15:09]line НСП 1% : 3.54 [18:15:09]line НДС 12% : 42.48 [18:15:09]line Наличными: 400.00 [18:15:09]line Безнал.: 0.00 [18:15:09]line Место: АЗС № 170 "Партнер Нефть" [18:15:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:15:09]line СНО: Общий режим [18:15:09]line Чек 278 28.10.2024 18:15 [18:15:09]line Смена: 543 ФФД: 1.0 [18:15:09]line ЗНМ: 0300000110 [18:15:09]line РНМ: 0000000000091776 [18:15:09]line Версия ККМ: 001 [18:15:09]line ФМ: 0000000000871754 [18:15:09]line ФД: 192730 [18:15:09]line ФПД: 102041250176917 [18:15:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T181508&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192730&fm=102041250176917&tin=02508201610067®Number=0000000000091776&sum=40000 [18:15:10]OFD Sender: Processing packet 192730 [packets to send 75, broken 74] [18:15:10]ProducePacketName [18:15:10]name=ofd_packets/00192730 [18:15:10]OFD Sender: To server: pG, [18:15:10]CommunicateWithHost lk.salyk.kg:30040 [18:15:10]ConnectInit lk.salyk.kg [18:15:10]written 0, free lines is 4095 [18:15:10]Connected sock=11 [18:15:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AC DA 07 01 BB 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 AC D4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA F0 02 00 35 04 06 00 5C CE 54 78 1F 95 58 5E A6 7D BA B9 75 69 [18:15:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B6 A3 47 00 E6 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA F0 02 00 F4 03 04 00 6F 79 1F 67 B6 04 01 00 00 A6 C9 3C 2A 6C 8F 09 2F [18:15:10]CommunicateWithHost err = 0 [18:15:10]CheckOFDResponse [18:15:10]1017 (14) - 77093643461234 [18:15:10]1041 (16) - 0000000000871754 [18:15:10]1040 (4) - 192730 [18:15:10]1012 (4) - 28.10.2024 11:45 [18:15:10]1206 (1) - 0 [18:15:10]OFD Sender: Remove packet 192730 [18:15:10]ProducePacketName [18:15:10]name=ofd_packets/00192730 [18:15:10]NVStorageDeleteData [18:15:10]Write to MH i2c: 01 00 00 A4 05 A9 [18:15:10]Write i2c OK [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: 01 [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: 01 07 00 [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: 01 07 00 A4 05 00 00 00 00 00 BC 0C 78 [18:15:10]RasterBufferAndPrint [18:15:10]line [18:15:10]line [18:15:10]line [18:15:10]line [18:15:10]line [18:15:10]written 0, free lines is 3267 [18:15:10]MH_Cut [18:15:10]Write to MH i2c: D1 01 00 AB 05 01 82 [18:15:10]Write i2c OK [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: D1 [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: D1 01 00 [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: D1 01 00 AB 05 00 81 [18:15:10]Write to MH i2c: 01 00 00 AC 05 B1 [18:15:10]Write i2c OK [18:15:10]MH_I2C_Read... [18:15:10]OFD Sender: No OFD packet to send [18:15:11]*** Cut start [18:15:11]*** Partial cut [18:15:11]*** CUTSNS_PIN = 1 [18:15:11]*** CUTSNS_PIN = 0 [18:15:11]*** Brake cut motor [18:15:12]Read from MH i2c: 01 [18:15:12]MH_I2C_Read... [18:15:12]*** Stop cut motor [18:15:12]*** Cut end [18:15:12]Read from MH i2c: 01 07 00 [18:15:12]MH_I2C_Read... [18:15:12]Read from MH i2c: 01 07 00 AC 05 00 00 00 00 00 FF 0F C6 [18:15:12]process_action close_receipt done [18:15:12]requested_data is exist [18:15:12]produce_requested_data [18:15:12]requested_item fm.sn is exist - process it [18:15:12]wFMCommunicate request_size=4 [18:15:12]MH_SAM_APDU [18:15:12]CAPDU: 80 11 00 00 [18:15:12]Write to MH i2c: E2 08 00 AD 05 80 11 00 00 00 00 00 00 2C [18:15:12]Write i2c OK [18:15:12]MH_I2C_Read... [18:15:12]Read from MH i2c: E2 [18:15:12]MH_I2C_Read... [18:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:12]Read from MH i2c: E2 17 00 [18:15:12]MH_I2C_Read... [18:15:12]Read from MH i2c: E2 17 00 AD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [18:15:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:15:12]wFMCommunicate OK [18:15:12]requested_item fd.num is exist - process it [18:15:12]SAM_PROTO_GetFieldsCounters [18:15:12]wFMCommunicate request_size=4 [18:15:12]MH_SAM_APDU [18:15:12]CAPDU: 80 13 00 00 [18:15:12]Write to MH i2c: E2 08 00 AE 05 80 13 00 00 00 00 00 00 2F [18:15:12]Write i2c OK [18:15:12]MH_I2C_Read... [18:15:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:12]Read from MH i2c: E2 [18:15:12]MH_I2C_Read... [18:15:12]Read from MH i2c: E2 62 00 [18:15:12]MH_I2C_Read... [18:15:12]Read from MH i2c: E2 62 00 AE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DA F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 87 [18:15:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DA F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:12]wFMCommunicate OK [18:15:12]SAM_PROTO_GetFieldsCounters done [18:15:12]requested_item shift.num is exist - process it [18:15:12]requested_item shift.opened is exist - process it [18:15:12]req_shift_opened [18:15:12]FM_GetShiftState [18:15:12]SAM_PROTO_GetShiftState [18:15:12]wFMCommunicate request_size=4 [18:15:12]MH_SAM_APDU [18:15:12]CAPDU: 80 13 01 00 [18:15:12]Write to MH i2c: E2 08 00 AF 05 80 13 01 00 00 00 00 00 31 [18:15:12]Write i2c OK [18:15:12]MH_I2C_Read... [18:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:12]Read from MH i2c: E2 [18:15:12]MH_I2C_Read... [18:15:12]Read from MH i2c: E2 0E 00 [18:15:12]MH_I2C_Read... [18:15:12]Read from MH i2c: E2 0E 00 AF 05 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 81 [18:15:12]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:15:12]wFMCommunicate OK [18:15:12]SAM_PROTO_GetShiftState done [18:15:12]FM_GetShiftState done [18:15:12]req_shift_opened done [18:15:12]requested_item shift.open_date is exist - process it [18:15:12]req_shift_open_date [18:15:12]req_shift_open_date done [18:15:12]produce_requested_data done [18:15:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192730,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:15:12]process_action_free close_receipt [18:15:12]json_value_free [18:15:12]json_value_free done [18:15:12]process_json_proto returns [18:15:12]Send response to host [18:15:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192730,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:15:12]free response buf [18:15:12]execute_script done [18:15:12]execute_script returns [18:15:12]free content buf [18:15:12]Sock 8.Close socket [18:15:12]Sock 8.Thread stoped [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]OFD Sender: No OFD packet to send [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:40]accept exits with 9 [18:20:40]New connection [18:20:40]New thread 3066658148 created [18:20:40]Thread 3066801508 joined [18:20:40]Waiting for new connection... [18:20:40] Sock 9.Parse request [18:20:40]Sock 9.Check first char [18:20:40]Sock 9.First char is OK [18:20:40]request: POST /json_proto HTTP/1.0 [18:20:40]Method: POST [18:20:40]URL: /json_proto [18:20:40]Method is POST - this is cgi request [18:20:40]url: /json_proto [18:20:40]query_string will be loaded in cgi processing [18:20:40]execute_cgi json_proto POST (null) [18:20:40]execute_cgi path=json_proto method=POST [18:20:40]POST find Content-Length [18:20:40]Host: 172.17.63.131:8080 [18:20:40]Content-Length: 681 [18:20:40]Content-Type: application/json [18:20:40] [18:20:40]POST finish read [18:20:40]Found Content-Length = 681 [18:20:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:40]execute_script... [18:20:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:40]POST & json_proto [18:20:40]process_json_proto [18:20:40]json parsed OK: [18:20:40]protocol is kg_v1.0 [18:20:40]action value=close_receipt [18:20:40]process_action close_receipt [18:20:40]cmd_close_receipt [18:20:40]MH_GetDate [18:20:40]Write to MH i2c: F0 00 00 B0 05 A4 [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: F0 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: F0 09 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: F0 09 00 B0 05 00 F9 D5 1F 67 22 05 6E 64 FA [18:20:40]GetLastDocTimeStamp 1730139308 [18:20:40]current date 1730139641 [18:20:40]FM_GetShiftState [18:20:40]SAM_PROTO_GetShiftState [18:20:40]wFMCommunicate request_size=4 [18:20:40]MH_SAM_APDU [18:20:40]CAPDU: 80 13 01 00 [18:20:40]Write to MH i2c: E2 08 00 B1 05 80 13 01 00 00 00 00 00 33 [18:20:40]Write i2c OK [18:20:40]MH_I2C_Read... [18:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:40]Read from MH i2c: E2 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 0E 00 [18:20:40]MH_I2C_Read... [18:20:40]Read from MH i2c: E2 0E 00 B1 05 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 83 [18:20:40]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:20:40]wFMCommunicate OK [18:20:40]SAM_PROTO_GetShiftState done [18:20:40]FM_GetShiftState done [18:20:40]opened in 1730075620 [18:20:40]opened+sec_in_day 1730162020 [18:20:40]quantity*price = 100015 [18:20:40]sum+1 = 100017 [18:20:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 279 28.10.2024 18:20 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192731 ФПД: 1784726655675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182041&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192731&fm=1784726655675&tin=02508201610067®Number=0000000000091776&sum=100000 [18:20:42]StoreToDocumentArchive [18:20:42]shift 543 fd 192731 [18:20:42]save to /storage/0543/doc_00192731 [18:20:42]save last doc name /storage/0543/doc_00192731 to /storage/kkm_last_doc_name [18:20:42]save OK [18:20:42]Clear old archive folders... [18:20:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:42]tlvbuf is 00FB0DE0 [18:20:42]SAM_PROTO_ClearQueue [18:20:42]wFMCommunicate request_size=4 [18:20:42]MH_SAM_APDU [18:20:42]CAPDU: 80 09 00 00 [18:20:42]Write to MH i2c: E2 08 00 BE 05 80 09 00 00 00 00 00 00 35 [18:20:42]Write i2c OK [18:20:42]MH_I2C_Read... [18:20:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:42]Read from MH i2c: E2 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 03 00 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 03 00 BE 05 00 90 00 37 [18:20:42]RAPDU: 90 00 [18:20:42]wFMCommunicate OK [18:20:42]SAM_PROTO_ClearQueue done [18:20:42]KKMCreateOFDPacket [18:20:42]OFDProtocolAddRootSTLVToBuf [18:20:42]FM_MakeSignedData [18:20:42]FM_MakeSignedData [18:20:42]SAM_PROTO_SignData [18:20:42]wFMCommunicate request_size=4 [18:20:42]MH_SAM_APDU [18:20:42]CAPDU: 80 0D 01 02 [18:20:42]Write to MH i2c: E2 08 00 BF 05 80 0D 01 02 00 00 00 00 3D [18:20:42]Write i2c OK [18:20:42]MH_I2C_Read... [18:20:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:42]Read from MH i2c: E2 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 03 00 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 03 00 BF 05 00 90 00 38 [18:20:42]RAPDU: 90 00 [18:20:42]wFMCommunicate OK [18:20:42]wFMCommunicate request_size=255 [18:20:42]MH_SAM_APDU [18:20:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 F9 D5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB F0 02 00 35 04 06 00 01 [18:20:42]Write to MH i2c: E2 02 01 C0 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 F9 D5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB F0 02 00 35 04 06 00 01 00 00 26 [18:20:42]Write i2c OK [18:20:42]MH_I2C_Read... [18:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:42]Read from MH i2c: E2 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 03 00 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 03 00 C0 05 00 90 00 39 [18:20:42]RAPDU: 90 00 [18:20:42]wFMCommunicate OK [18:20:42]wFMCommunicate request_size=10 [18:20:42]MH_SAM_APDU [18:20:42]CAPDU: 80 0D 02 02 05 9F 89 FF 92 BB [18:20:42]Write to MH i2c: E2 0D 00 C1 05 80 0D 02 02 05 00 9F 89 FF 92 BB 00 00 BE [18:20:42]Write i2c OK [18:20:42]MH_I2C_Read... [18:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:42]Read from MH i2c: E2 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 03 00 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 03 00 C1 05 00 90 00 3A [18:20:42]RAPDU: 90 00 [18:20:42]wFMCommunicate OK [18:20:42]wFMCommunicate request_size=4 [18:20:42]MH_SAM_APDU [18:20:42]CAPDU: 80 0D 03 02 [18:20:42]Write to MH i2c: E2 08 00 C2 05 80 0D 03 02 00 00 00 00 42 [18:20:42]Write i2c OK [18:20:42]MH_I2C_Read... [18:20:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:42]Read from MH i2c: E2 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 0B 00 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 0B 00 C2 05 00 26 95 98 DA 18 A4 A3 6B 90 00 3A [18:20:42]RAPDU: 26 95 98 DA 18 A4 A3 6B 90 00 [18:20:42]wFMCommunicate OK [18:20:42]SAM_PROTO_SignData done [18:20:42]FM_MakeSignedData done [18:20:42]CreateOFDProtocolMessage [18:20:42]wFMCommunicate request_size=4 [18:20:42]MH_SAM_APDU [18:20:42]CAPDU: 80 11 00 00 [18:20:42]Write to MH i2c: E2 08 00 C3 05 80 11 00 00 00 00 00 00 42 [18:20:42]Write i2c OK [18:20:42]MH_I2C_Read... [18:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:42]Read from MH i2c: E2 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 17 00 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: E2 17 00 C3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 95 [18:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:20:42]wFMCommunicate OK [18:20:42]CreateOFDProtocolMessage done [18:20:42]OFDSenderStorePacket 192731 [18:20:42]StoreOFDPacket docnum=192731 [18:20:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0E 69 07 01 3C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 F9 D5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB F0 02 00 35 04 06 00 01 9F 89 FF 92 BB 26 95 98 DA 18 A4 A3 6B [18:20:42]CheckFolder [18:20:42]dirname=/storage/ofd_packets [18:20:42]CheckFolder done [18:20:42]ProducePacketName [18:20:42]name=ofd_packets/00192731 [18:20:42]NVStorageSaveData ofd_packets/00192731 [18:20:42]File name is /storage/ofd_packets/00192731 [18:20:42]Write 301 bytes [18:20:42]NVStorageSaveData done [18:20:42]OFDSenderStorePacket done [18:20:42]KKMCreateOFDPacket done [18:20:42]NVStorageSaveData kkm_last_timestamp [18:20:42]File name is /storage/kkm_last_timestamp [18:20:42]Write 4 bytes [18:20:42]NVStorageSaveData done [18:20:42]ExternCall_PrintAddStr [18:20:42]wPrintStart [18:20:42]Write to MH i2c: 01 00 00 C4 05 C9 [18:20:42]Write i2c OK [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: 01 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: 01 07 00 [18:20:42]MH_I2C_Read... [18:20:42]Read from MH i2c: 01 07 00 C4 05 00 00 00 00 00 FF 0F DE [18:20:42]RasterBufferAndPrint [18:20:42]line Счет N : (1)32057 [18:20:42]line ИНН: 02508201610067 [18:20:42]line Контрольно-Кассовый Чек [18:20:42]line ПРОДАЖА [18:20:42]line ТРК (МРК, ГНК) : 12 [18:20:42]line Товар: 2710124130 [18:20:42]line Аи-92-К-5 [18:20:42]line 14.950 * 66.90 [18:20:42]line = 1000.16 [18:20:42]line НДС 12% НСП 1% [18:20:42]line > о реализуемом товаре [18:20:42]line ОКРУГЛЕНИЕ: -0.16 [18:20:42]line ИТОГО: 1000.00 [18:20:42]line Внесено: 1000.00 [18:20:42]line СДАЧА: 0.00 [18:20:42]line НСП 1% : 8.85 [18:20:42]line НДС 12% : 106.21 [18:20:42]line Наличными: 1000.00 [18:20:42]line Безнал.: 0.00 [18:20:42]line Место: АЗС № 170 "Партнер Нефть" [18:20:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:20:42]line СНО: Общий режим [18:20:42]line Чек 279 28.10.2024 18:20 [18:20:42]line Смена: 543 ФФД: 1.0 [18:20:42]line ЗНМ: 0300000110 [18:20:42]line РНМ: 0000000000091776 [18:20:42]line Версия ККМ: 001 [18:20:42]line ФМ: 0000000000871754 [18:20:42]line ФД: 192731 [18:20:42]line ФПД: 1784726655675 [18:20:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182041&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192731&fm=1784726655675&tin=02508201610067®Number=0000000000091776&sum=100000 [18:20:42]OFD Sender: Processing packet 192731 [packets to send 75, broken 74] [18:20:42]ProducePacketName [18:20:42]name=ofd_packets/00192731 [18:20:42]OFD Sender: To server: pG, [18:20:42]CommunicateWithHost lk.salyk.kg:30040 [18:20:42]ConnectInit lk.salyk.kg [18:20:42]written 0, free lines is 4095 [18:20:43]Connected sock=10 [18:20:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0E 69 07 01 3C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 F9 D5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB F0 02 00 35 04 06 00 01 9F 89 FF 92 BB 26 95 98 DA 18 A4 A3 6B [18:20:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 ED 64 47 00 D1 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB F0 02 00 F4 03 04 00 BC 7A 1F 67 B6 04 01 00 00 CA 3B 84 72 B8 3F BF 29 [18:20:43]CommunicateWithHost err = 0 [18:20:43]CheckOFDResponse [18:20:43]1017 (14) - 77093643461234 [18:20:43]1041 (16) - 0000000000871754 [18:20:43]1040 (4) - 192731 [18:20:43]1012 (4) - 28.10.2024 11:51 [18:20:43]1206 (1) - 0 [18:20:43]OFD Sender: Remove packet 192731 [18:20:43]ProducePacketName [18:20:43]name=ofd_packets/00192731 [18:20:43]NVStorageDeleteData [18:20:43]Write to MH i2c: 01 00 00 EF 05 F4 [18:20:43]Write i2c OK [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: 01 [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: 01 07 00 [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: 01 07 00 EF 05 00 00 00 00 00 BF 0C C6 [18:20:43]RasterBufferAndPrint [18:20:43]line [18:20:43]line [18:20:43]line [18:20:43]line [18:20:43]line [18:20:43]written 0, free lines is 3269 [18:20:43]MH_Cut [18:20:43]Write to MH i2c: D1 01 00 F6 05 01 CD [18:20:43]Write i2c OK [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: D1 [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: D1 01 00 [18:20:43]MH_I2C_Read... [18:20:43]Read from MH i2c: D1 01 00 F6 05 00 CC [18:20:43]Write to MH i2c: 01 00 00 F7 05 FC [18:20:43]Write i2c OK [18:20:43]MH_I2C_Read... [18:20:43]OFD Sender: No OFD packet to send [18:20:44]*** Cut start [18:20:44]*** Partial cut [18:20:44]*** CUTSNS_PIN = 1 [18:20:44]*** CUTSNS_PIN = 0 [18:20:44]*** Brake cut motor [18:20:44]Read from MH i2c: 01 [18:20:44]MH_I2C_Read... [18:20:44]*** Stop cut motor [18:20:44]*** Cut end [18:20:44]Read from MH i2c: 01 07 00 [18:20:44]MH_I2C_Read... [18:20:44]Read from MH i2c: 01 07 00 F7 05 00 00 00 00 00 FF 0F 11 [18:20:44]process_action close_receipt done [18:20:44]requested_data is exist [18:20:44]produce_requested_data [18:20:44]requested_item fm.sn is exist - process it [18:20:44]wFMCommunicate request_size=4 [18:20:44]MH_SAM_APDU [18:20:44]CAPDU: 80 11 00 00 [18:20:44]Write to MH i2c: E2 08 00 F8 05 80 11 00 00 00 00 00 00 77 [18:20:44]Write i2c OK [18:20:44]MH_I2C_Read... [18:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:44]Read from MH i2c: E2 [18:20:44]MH_I2C_Read... [18:20:44]Read from MH i2c: E2 17 00 [18:20:44]MH_I2C_Read... [18:20:44]Read from MH i2c: E2 17 00 F8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [18:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:20:44]wFMCommunicate OK [18:20:44]requested_item fd.num is exist - process it [18:20:44]SAM_PROTO_GetFieldsCounters [18:20:44]wFMCommunicate request_size=4 [18:20:44]MH_SAM_APDU [18:20:44]CAPDU: 80 13 00 00 [18:20:44]Write to MH i2c: E2 08 00 F9 05 80 13 00 00 00 00 00 00 7A [18:20:44]Write i2c OK [18:20:44]MH_I2C_Read... [18:20:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:45]Read from MH i2c: E2 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: E2 62 00 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: E2 62 00 F9 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DB F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [18:20:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DB F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:45]wFMCommunicate OK [18:20:45]SAM_PROTO_GetFieldsCounters done [18:20:45]requested_item shift.num is exist - process it [18:20:45]requested_item shift.opened is exist - process it [18:20:45]req_shift_opened [18:20:45]FM_GetShiftState [18:20:45]SAM_PROTO_GetShiftState [18:20:45]wFMCommunicate request_size=4 [18:20:45]MH_SAM_APDU [18:20:45]CAPDU: 80 13 01 00 [18:20:45]Write to MH i2c: E2 08 00 FA 05 80 13 01 00 00 00 00 00 7C [18:20:45]Write i2c OK [18:20:45]MH_I2C_Read... [18:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:45]Read from MH i2c: E2 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: E2 0E 00 [18:20:45]MH_I2C_Read... [18:20:45]Read from MH i2c: E2 0E 00 FA 05 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CC [18:20:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:20:45]wFMCommunicate OK [18:20:45]SAM_PROTO_GetShiftState done [18:20:45]FM_GetShiftState done [18:20:45]req_shift_opened done [18:20:45]requested_item shift.open_date is exist - process it [18:20:45]req_shift_open_date [18:20:45]req_shift_open_date done [18:20:45]produce_requested_data done [18:20:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192731,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:20:45]process_action_free close_receipt [18:20:45]json_value_free [18:20:45]json_value_free done [18:20:45]process_json_proto returns [18:20:45]Send response to host [18:20:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192731,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:20:45]free response buf [18:20:45]execute_script done [18:20:45]execute_script returns [18:20:45]free content buf [18:20:45]Sock 9.Close socket [18:20:45]Sock 9.Thread stoped [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:16]accept exits with 8 [18:22:16]New connection [18:22:16]New thread 3066801508 created [18:22:16]Thread 3066658148 joined [18:22:16]Waiting for new connection... [18:22:16] Sock 8.Parse request [18:22:16]Sock 8.Check first char [18:22:16]Sock 8.First char is OK [18:22:16]request: POST /json_proto HTTP/1.0 [18:22:16]Method: POST [18:22:16]URL: /json_proto [18:22:16]Method is POST - this is cgi request [18:22:16]url: /json_proto [18:22:16]query_string will be loaded in cgi processing [18:22:16]execute_cgi json_proto POST (null) [18:22:16]execute_cgi path=json_proto method=POST [18:22:16]POST find Content-Length [18:22:16]Host: 172.17.63.131:8080 [18:22:16]Content-Length: 676 [18:22:16]Content-Type: application/json [18:22:16] [18:22:16]POST finish read [18:22:16]Found Content-Length = 676 [18:22:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:16]execute_script... [18:22: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)32058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:16]POST & json_proto [18:22:16]process_json_proto [18:22:16]json parsed OK: [18:22:16]protocol is kg_v1.0 [18:22:16]action value=close_receipt [18:22:16]process_action close_receipt [18:22:16]cmd_close_receipt [18:22:16]MH_GetDate [18:22:16]Write to MH i2c: F0 00 00 FB 05 EF [18:22:16]Write i2c OK [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: F0 [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: F0 09 00 [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: F0 09 00 FB 05 00 58 D6 1F 67 22 05 6E 64 A5 [18:22:16]GetLastDocTimeStamp 1730139641 [18:22:16]current date 1730139736 [18:22:16]FM_GetShiftState [18:22:16]SAM_PROTO_GetShiftState [18:22:16]wFMCommunicate request_size=4 [18:22:16]MH_SAM_APDU [18:22:16]CAPDU: 80 13 01 00 [18:22:16]Write to MH i2c: E2 08 00 FC 05 80 13 01 00 00 00 00 00 7E [18:22:16]Write i2c OK [18:22:16]MH_I2C_Read... [18:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:16]Read from MH i2c: E2 [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: E2 0E 00 [18:22:16]MH_I2C_Read... [18:22:16]Read from MH i2c: E2 0E 00 FC 05 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CE [18:22:16]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:22:16]wFMCommunicate OK [18:22:16]SAM_PROTO_GetShiftState done [18:22:16]FM_GetShiftState done [18:22:16]opened in 1730075620 [18:22:16]opened+sec_in_day 1730162020 [18:22:16]quantity*price = 40006 [18:22:16]sum+1 = 40007 [18:22:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 280 28.10.2024 18:22 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192732 ФПД: 270761174818868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182216&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192732&fm=270761174818868&tin=02508201610067®Number=0000000000091776&sum=40000 [18:22:17]StoreToDocumentArchive [18:22:17]shift 543 fd 192732 [18:22:17]save to /storage/0543/doc_00192732 [18:22:17]save last doc name /storage/0543/doc_00192732 to /storage/kkm_last_doc_name [18:22:17]save OK [18:22:17]Clear old archive folders... [18:22:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:17]tlvbuf is 00EF15A0 [18:22:17]SAM_PROTO_ClearQueue [18:22:17]wFMCommunicate request_size=4 [18:22:17]MH_SAM_APDU [18:22:17]CAPDU: 80 09 00 00 [18:22:17]Write to MH i2c: E2 08 00 09 06 80 09 00 00 00 00 00 00 81 [18:22:17]Write i2c OK [18:22:17]MH_I2C_Read... [18:22:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:17]Read from MH i2c: E2 [18:22:17]MH_I2C_Read... [18:22:17]Read from MH i2c: E2 03 00 [18:22:17]MH_I2C_Read... [18:22:17]Read from MH i2c: E2 03 00 09 06 00 90 00 83 [18:22:17]RAPDU: 90 00 [18:22:17]wFMCommunicate OK [18:22:17]SAM_PROTO_ClearQueue done [18:22:17]KKMCreateOFDPacket [18:22:17]OFDProtocolAddRootSTLVToBuf [18:22:17]FM_MakeSignedData [18:22:17]FM_MakeSignedData [18:22:17]SAM_PROTO_SignData [18:22:17]wFMCommunicate request_size=4 [18:22:17]MH_SAM_APDU [18:22:17]CAPDU: 80 0D 01 02 [18:22:17]Write to MH i2c: E2 08 00 0A 06 80 0D 01 02 00 00 00 00 89 [18:22:17]Write i2c OK [18:22:17]MH_I2C_Read... [18:22:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:17]Read from MH i2c: E2 [18:22:17]MH_I2C_Read... [18:22:17]Read from MH i2c: E2 03 00 [18:22:17]MH_I2C_Read... [18:22:17]Read from MH i2c: E2 03 00 0A 06 00 90 00 84 [18:22:17]RAPDU: 90 00 [18:22:17]wFMCommunicate OK [18:22:17]wFMCommunicate request_size=255 [18:22:17]MH_SAM_APDU [18:22: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 58 D6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC F0 02 00 35 04 06 00 F6 [18:22:17]Write to MH i2c: E2 02 01 0B 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 58 D6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC F0 02 00 35 04 06 00 F6 00 00 9E [18:22:17]Write i2c OK [18:22:17]MH_I2C_Read... [18:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:18]Read from MH i2c: E2 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: E2 03 00 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: E2 03 00 0B 06 00 90 00 85 [18:22:18]RAPDU: 90 00 [18:22:18]wFMCommunicate OK [18:22:18]wFMCommunicate request_size=10 [18:22:18]MH_SAM_APDU [18:22:18]CAPDU: 80 0D 02 02 05 41 7F A4 E0 34 [18:22:18]Write to MH i2c: E2 0D 00 0C 06 80 0D 02 02 05 00 41 7F A4 E0 34 00 00 0E [18:22:18]Write i2c OK [18:22:18]MH_I2C_Read... [18:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:18]Read from MH i2c: E2 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: E2 03 00 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: E2 03 00 0C 06 00 90 00 86 [18:22:18]RAPDU: 90 00 [18:22:18]wFMCommunicate OK [18:22:18]wFMCommunicate request_size=4 [18:22:18]MH_SAM_APDU [18:22:18]CAPDU: 80 0D 03 02 [18:22:18]Write to MH i2c: E2 08 00 0D 06 80 0D 03 02 00 00 00 00 8E [18:22:18]Write i2c OK [18:22:18]MH_I2C_Read... [18:22:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:18]Read from MH i2c: E2 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: E2 0B 00 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: E2 0B 00 0D 06 00 4A CF 5C F1 0F FE 57 FC 90 00 55 [18:22:18]RAPDU: 4A CF 5C F1 0F FE 57 FC 90 00 [18:22:18]wFMCommunicate OK [18:22:18]SAM_PROTO_SignData done [18:22:18]FM_MakeSignedData done [18:22:18]CreateOFDProtocolMessage [18:22:18]wFMCommunicate request_size=4 [18:22:18]MH_SAM_APDU [18:22:18]CAPDU: 80 11 00 00 [18:22:18]Write to MH i2c: E2 08 00 0E 06 80 11 00 00 00 00 00 00 8E [18:22:18]Write i2c OK [18:22:18]MH_I2C_Read... [18:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:18]Read from MH i2c: E2 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: E2 17 00 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: E2 17 00 0E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E1 [18:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:22:18]wFMCommunicate OK [18:22:18]CreateOFDProtocolMessage done [18:22:18]OFDSenderStorePacket 192732 [18:22:18]StoreOFDPacket docnum=192732 [18:22:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 00 34 07 01 6A 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 58 D6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC F0 02 00 35 04 06 00 F6 41 7F A4 E0 34 4A CF 5C F1 0F FE 57 FC [18:22:18]CheckFolder [18:22:18]dirname=/storage/ofd_packets [18:22:18]CheckFolder done [18:22:18]ProducePacketName [18:22:18]name=ofd_packets/00192732 [18:22:18]NVStorageSaveData ofd_packets/00192732 [18:22:18]File name is /storage/ofd_packets/00192732 [18:22:18]Write 301 bytes [18:22:18]NVStorageSaveData done [18:22:18]OFDSenderStorePacket done [18:22:18]KKMCreateOFDPacket done [18:22:18]NVStorageSaveData kkm_last_timestamp [18:22:18]File name is /storage/kkm_last_timestamp [18:22:18]Write 4 bytes [18:22:18]NVStorageSaveData done [18:22:18]ExternCall_PrintAddStr [18:22:18]wPrintStart [18:22:18]Write to MH i2c: 01 00 00 0F 06 15 [18:22:18]Write i2c OK [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: 01 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: 01 07 00 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: 01 07 00 0F 06 00 00 00 00 00 FF 0F 2A [18:22:18]RasterBufferAndPrint [18:22:18]line Счет N : (1)32058 [18:22:18]line ИНН: 02508201610067 [18:22:18]line Контрольно-Кассовый Чек [18:22:18]line ПРОДАЖА [18:22:18]line ТРК (МРК, ГНК) : 21 [18:22:18]line Товар: 2710124130 [18:22:18]line Аи-92-К-5 [18:22:18]line 5.980 * 66.90 [18:22:18]line = 400.06 [18:22:18]line НДС 12% НСП 1% [18:22:18]line > о реализуемом товаре [18:22:18]line ОКРУГЛЕНИЕ: -0.06 [18:22:18]line ИТОГО: 400.00 [18:22:18]line Внесено: 400.00 [18:22:18]line СДАЧА: 0.00 [18:22:18]line НСП 1% : 3.54 [18:22:18]line НДС 12% : 42.48 [18:22:18]line Наличными: 400.00 [18:22:18]line Безнал.: 0.00 [18:22:18]line Место: АЗС № 170 "Партнер Нефть" [18:22:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:22:18]line СНО: Общий режим [18:22:18]line Чек 280 28.10.2024 18:22 [18:22:18]line Смена: 543 ФФД: 1.0 [18:22:18]line ЗНМ: 0300000110 [18:22:18]line РНМ: 0000000000091776 [18:22:18]line Версия ККМ: 001 [18:22:18]line ФМ: 0000000000871754 [18:22:18]line ФД: 192732 [18:22:18]line ФПД: 270761174818868 [18:22:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182216&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192732&fm=270761174818868&tin=02508201610067®Number=0000000000091776&sum=40000 [18:22:18]OFD Sender: Processing packet 192732 [packets to send 75, broken 74] [18:22:18]ProducePacketName [18:22:18]name=ofd_packets/00192732 [18:22:18]OFD Sender: To server: pG, [18:22:18]CommunicateWithHost lk.salyk.kg:30040 [18:22:18]ConnectInit lk.salyk.kg [18:22:18]written 0, free lines is 4095 [18:22:18]Connected sock=10 [18:22:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 00 34 07 01 6A 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 58 D6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC F0 02 00 35 04 06 00 F6 41 7F A4 E0 34 4A CF 5C F1 0F FE 57 FC [18:22:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1A 5A 47 00 6A E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC F0 02 00 F4 03 04 00 1C 7B 1F 67 B6 04 01 00 00 91 D9 09 42 56 51 B4 36 [18:22:18]CommunicateWithHost err = 0 [18:22:18]CheckOFDResponse [18:22:18]1017 (14) - 77093643461234 [18:22:18]1041 (16) - 0000000000871754 [18:22:18]1040 (4) - 192732 [18:22:18]1012 (4) - 28.10.2024 11:53 [18:22:18]1206 (1) - 0 [18:22:18]OFD Sender: Remove packet 192732 [18:22:18]ProducePacketName [18:22:18]name=ofd_packets/00192732 [18:22:18]NVStorageDeleteData [18:22:18]Write to MH i2c: 01 00 00 3A 06 40 [18:22:18]Write i2c OK [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: 01 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: 01 07 00 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: 01 07 00 3A 06 00 00 00 00 00 B6 0C 09 [18:22:18]RasterBufferAndPrint [18:22:18]line [18:22:18]line [18:22:18]line [18:22:18]line [18:22:18]line [18:22:18]written 0, free lines is 3258 [18:22:18]MH_Cut [18:22:18]Write to MH i2c: D1 01 00 41 06 01 19 [18:22:18]Write i2c OK [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: D1 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: D1 01 00 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: D1 01 00 41 06 00 18 [18:22:18]Write to MH i2c: 01 00 00 42 06 48 [18:22:18]Write i2c OK [18:22:18]MH_I2C_Read... [18:22:19]OFD Sender: No OFD packet to send [18:22:19]*** Cut start [18:22:19]*** Partial cut [18:22:19]*** CUTSNS_PIN = 1 [18:22:19]*** CUTSNS_PIN = 0 [18:22:20]*** Brake cut motor [18:22:20]Read from MH i2c: 01 [18:22:20]MH_I2C_Read... [18:22:20]*** Stop cut motor [18:22:20]*** Cut end [18:22:20]Read from MH i2c: 01 07 00 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: 01 07 00 42 06 00 00 00 00 00 FF 0F 5D [18:22:20]process_action close_receipt done [18:22:20]requested_data is exist [18:22:20]produce_requested_data [18:22:20]requested_item fm.sn is exist - process it [18:22:20]wFMCommunicate request_size=4 [18:22:20]MH_SAM_APDU [18:22:20]CAPDU: 80 11 00 00 [18:22:20]Write to MH i2c: E2 08 00 43 06 80 11 00 00 00 00 00 00 C3 [18:22:20]Write i2c OK [18:22:20]MH_I2C_Read... [18:22:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:20]Read from MH i2c: E2 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 17 00 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 17 00 43 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 16 [18:22:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:22:20]wFMCommunicate OK [18:22:20]requested_item fd.num is exist - process it [18:22:20]SAM_PROTO_GetFieldsCounters [18:22:20]wFMCommunicate request_size=4 [18:22:20]MH_SAM_APDU [18:22:20]CAPDU: 80 13 00 00 [18:22:20]Write to MH i2c: E2 08 00 44 06 80 13 00 00 00 00 00 00 C6 [18:22:20]Write i2c OK [18:22:20]MH_I2C_Read... [18:22:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:20]Read from MH i2c: E2 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 62 00 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 62 00 44 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DC F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [18:22:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DC F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:20]wFMCommunicate OK [18:22:20]SAM_PROTO_GetFieldsCounters done [18:22:20]requested_item shift.num is exist - process it [18:22:20]requested_item shift.opened is exist - process it [18:22:20]req_shift_opened [18:22:20]FM_GetShiftState [18:22:20]SAM_PROTO_GetShiftState [18:22:20]wFMCommunicate request_size=4 [18:22:20]MH_SAM_APDU [18:22:20]CAPDU: 80 13 01 00 [18:22:20]Write to MH i2c: E2 08 00 45 06 80 13 01 00 00 00 00 00 C8 [18:22:20]Write i2c OK [18:22:20]MH_I2C_Read... [18:22:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:20]Read from MH i2c: E2 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 0E 00 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 0E 00 45 06 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 18 [18:22:20]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:22:20]wFMCommunicate OK [18:22:20]SAM_PROTO_GetShiftState done [18:22:20]FM_GetShiftState done [18:22:20]req_shift_opened done [18:22:20]requested_item shift.open_date is exist - process it [18:22:20]req_shift_open_date [18:22:20]req_shift_open_date done [18:22:20]produce_requested_data done [18:22:20]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192732,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:22:20]process_action_free close_receipt [18:22:20]json_value_free [18:22:20]json_value_free done [18:22:20]process_json_proto returns [18:22:20]Send response to host [18:22:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192732,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:22:20]free response buf [18:22:20]execute_script done [18:22:20]execute_script returns [18:22:20]free content buf [18:22:20]Sock 8.Close socket [18:22:20]Sock 8.Thread stoped [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:10]accept exits with 9 [18:25:10]New connection [18:25:10]New thread 3066658148 created [18:25:10]Thread 3066801508 joined [18:25:10]Waiting for new connection... [18:25:10] Sock 9.Parse request [18:25:10]Sock 9.Check first char [18:25:10]Sock 9.First char is OK [18:25:10]request: POST /json_proto HTTP/1.0 [18:25:10]Method: POST [18:25:10]URL: /json_proto [18:25:10]Method is POST - this is cgi request [18:25:10]url: /json_proto [18:25:10]query_string will be loaded in cgi processing [18:25:10]execute_cgi json_proto POST (null) [18:25:10]execute_cgi path=json_proto method=POST [18:25:10]POST find Content-Length [18:25:10]Host: 172.17.63.131:8080 [18:25:10]Content-Length: 681 [18:25:10]Content-Type: application/json [18:25:10] [18:25:10]POST finish read [18:25:10]Found Content-Length = 681 [18:25:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:10]execute_script... [18:25:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:10]POST & json_proto [18:25:10]process_json_proto [18:25:10]json parsed OK: [18:25:10]protocol is kg_v1.0 [18:25:10]action value=close_receipt [18:25:10]process_action close_receipt [18:25:10]cmd_close_receipt [18:25:10]MH_GetDate [18:25:10]Write to MH i2c: F0 00 00 46 06 3B [18:25:10]Write i2c OK [18:25:10]MH_I2C_Read... [18:25:10]Read from MH i2c: F0 [18:25:10]MH_I2C_Read... [18:25:10]Read from MH i2c: F0 09 00 [18:25:10]MH_I2C_Read... [18:25:10]Read from MH i2c: F0 09 00 46 06 00 06 D7 1F 67 22 05 6E 64 A0 [18:25:10]GetLastDocTimeStamp 1730139736 [18:25:10]current date 1730139910 [18:25:10]FM_GetShiftState [18:25:10]SAM_PROTO_GetShiftState [18:25:10]wFMCommunicate request_size=4 [18:25:10]MH_SAM_APDU [18:25:10]CAPDU: 80 13 01 00 [18:25:10]Write to MH i2c: E2 08 00 47 06 80 13 01 00 00 00 00 00 CA [18:25:10]Write i2c OK [18:25:10]MH_I2C_Read... [18:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:10]Read from MH i2c: E2 [18:25:10]MH_I2C_Read... [18:25:10]Read from MH i2c: E2 0E 00 [18:25:10]MH_I2C_Read... [18:25:10]Read from MH i2c: E2 0E 00 47 06 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1A [18:25:10]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:25:10]wFMCommunicate OK [18:25:10]SAM_PROTO_GetShiftState done [18:25:10]FM_GetShiftState done [18:25:10]opened in 1730075620 [18:25:10]opened+sec_in_day 1730162020 [18:25:10]quantity*price = 100015 [18:25:10]sum+1 = 100017 [18:25:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 281 28.10.2024 18:25 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192733 ФПД: 227187057971441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182510&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192733&fm=227187057971441&tin=02508201610067®Number=0000000000091776&sum=100000 [18:25:11]StoreToDocumentArchive [18:25:11]shift 543 fd 192733 [18:25:11]save to /storage/0543/doc_00192733 [18:25:11]save last doc name /storage/0543/doc_00192733 to /storage/kkm_last_doc_name [18:25:11]save OK [18:25:11]Clear old archive folders... [18:25:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:11]tlvbuf is 00FB13D0 [18:25:11]SAM_PROTO_ClearQueue [18:25:11]wFMCommunicate request_size=4 [18:25:11]MH_SAM_APDU [18:25:11]CAPDU: 80 09 00 00 [18:25:11]Write to MH i2c: E2 08 00 54 06 80 09 00 00 00 00 00 00 CC [18:25:11]Write i2c OK [18:25:11]MH_I2C_Read... [18:25:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:11]Read from MH i2c: E2 [18:25:11]MH_I2C_Read... [18:25:11]Read from MH i2c: E2 03 00 [18:25:11]MH_I2C_Read... [18:25:11]Read from MH i2c: E2 03 00 54 06 00 90 00 CE [18:25:11]RAPDU: 90 00 [18:25:11]wFMCommunicate OK [18:25:11]SAM_PROTO_ClearQueue done [18:25:11]KKMCreateOFDPacket [18:25:11]OFDProtocolAddRootSTLVToBuf [18:25:11]FM_MakeSignedData [18:25:11]FM_MakeSignedData [18:25:11]SAM_PROTO_SignData [18:25:11]wFMCommunicate request_size=4 [18:25:11]MH_SAM_APDU [18:25:11]CAPDU: 80 0D 01 02 [18:25:11]Write to MH i2c: E2 08 00 55 06 80 0D 01 02 00 00 00 00 D4 [18:25:11]Write i2c OK [18:25:11]MH_I2C_Read... [18:25:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:11]Read from MH i2c: E2 [18:25:11]MH_I2C_Read... [18:25:11]Read from MH i2c: E2 03 00 [18:25:11]MH_I2C_Read... [18:25:11]Read from MH i2c: E2 03 00 55 06 00 90 00 CF [18:25:11]RAPDU: 90 00 [18:25:11]wFMCommunicate OK [18:25:11]wFMCommunicate request_size=255 [18:25:11]MH_SAM_APDU [18:25:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 06 D7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD F0 02 00 35 04 06 00 CE [18:25:11]Write to MH i2c: E2 02 01 56 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 06 D7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD F0 02 00 35 04 06 00 CE 00 00 9D [18:25:11]Write i2c OK [18:25:11]MH_I2C_Read... [18:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:11]Read from MH i2c: E2 [18:25:11]MH_I2C_Read... [18:25:11]Read from MH i2c: E2 03 00 [18:25:11]MH_I2C_Read... [18:25:11]Read from MH i2c: E2 03 00 56 06 00 90 00 D0 [18:25:11]RAPDU: 90 00 [18:25:11]wFMCommunicate OK [18:25:11]wFMCommunicate request_size=10 [18:25:11]MH_SAM_APDU [18:25:11]CAPDU: 80 0D 02 02 05 A0 1B E3 50 F1 [18:25:11]Write to MH i2c: E2 0D 00 57 06 80 0D 02 02 05 00 A0 1B E3 50 F1 00 00 C0 [18:25:11]Write i2c OK [18:25:11]MH_I2C_Read... [18:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:11]Read from MH i2c: E2 [18:25:11]MH_I2C_Read... [18:25:11]Read from MH i2c: E2 03 00 [18:25:11]MH_I2C_Read... [18:25:11]Read from MH i2c: E2 03 00 57 06 00 90 00 D1 [18:25:11]RAPDU: 90 00 [18:25:11]wFMCommunicate OK [18:25:11]wFMCommunicate request_size=4 [18:25:11]MH_SAM_APDU [18:25:11]CAPDU: 80 0D 03 02 [18:25:11]Write to MH i2c: E2 08 00 58 06 80 0D 03 02 00 00 00 00 D9 [18:25:11]Write i2c OK [18:25:11]MH_I2C_Read... [18:25:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:12]Read from MH i2c: E2 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: E2 0B 00 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: E2 0B 00 58 06 00 40 98 8E BA EB 87 C9 DB 90 00 10 [18:25:12]RAPDU: 40 98 8E BA EB 87 C9 DB 90 00 [18:25:12]wFMCommunicate OK [18:25:12]SAM_PROTO_SignData done [18:25:12]FM_MakeSignedData done [18:25:12]CreateOFDProtocolMessage [18:25:12]wFMCommunicate request_size=4 [18:25:12]MH_SAM_APDU [18:25:12]CAPDU: 80 11 00 00 [18:25:12]Write to MH i2c: E2 08 00 59 06 80 11 00 00 00 00 00 00 D9 [18:25:12]Write i2c OK [18:25:12]MH_I2C_Read... [18:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:12]Read from MH i2c: E2 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: E2 17 00 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: E2 17 00 59 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [18:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:25:12]wFMCommunicate OK [18:25:12]CreateOFDProtocolMessage done [18:25:12]OFDSenderStorePacket 192733 [18:25:12]StoreOFDPacket docnum=192733 [18:25:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 91 F9 07 01 0B 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 06 D7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD F0 02 00 35 04 06 00 CE A0 1B E3 50 F1 40 98 8E BA EB 87 C9 DB [18:25:12]CheckFolder [18:25:12]dirname=/storage/ofd_packets [18:25:12]CheckFolder done [18:25:12]ProducePacketName [18:25:12]name=ofd_packets/00192733 [18:25:12]NVStorageSaveData ofd_packets/00192733 [18:25:12]File name is /storage/ofd_packets/00192733 [18:25:12]Write 301 bytes [18:25:12]NVStorageSaveData done [18:25:12]OFDSenderStorePacket done [18:25:12]KKMCreateOFDPacket done [18:25:12]NVStorageSaveData kkm_last_timestamp [18:25:12]File name is /storage/kkm_last_timestamp [18:25:12]Write 4 bytes [18:25:12]NVStorageSaveData done [18:25:12]ExternCall_PrintAddStr [18:25:12]wPrintStart [18:25:12]Write to MH i2c: 01 00 00 5A 06 60 [18:25:12]Write i2c OK [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: 01 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: 01 07 00 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: 01 07 00 5A 06 00 00 00 00 00 FF 0F 75 [18:25:12]RasterBufferAndPrint [18:25:12]line Счет N : (1)32059 [18:25:12]line ИНН: 02508201610067 [18:25:12]line Контрольно-Кассовый Чек [18:25:12]line ПРОДАЖА [18:25:12]line ТРК (МРК, ГНК) : 21 [18:25:12]line Товар: 2710124130 [18:25:12]line Аи-92-К-5 [18:25:12]line 14.950 * 66.90 [18:25:12]line = 1000.16 [18:25:12]line НДС 12% НСП 1% [18:25:12]line > о реализуемом товаре [18:25:12]line ОКРУГЛЕНИЕ: -0.16 [18:25:12]line ИТОГО: 1000.00 [18:25:12]line Внесено: 1000.00 [18:25:12]line СДАЧА: 0.00 [18:25:12]line НСП 1% : 8.85 [18:25:12]line НДС 12% : 106.21 [18:25:12]line Наличными: 1000.00 [18:25:12]line Безнал.: 0.00 [18:25:12]line Место: АЗС № 170 "Партнер Нефть" [18:25:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:25:12]line СНО: Общий режим [18:25:12]line Чек 281 28.10.2024 18:25 [18:25:12]line Смена: 543 ФФД: 1.0 [18:25:12]line ЗНМ: 0300000110 [18:25:12]line РНМ: 0000000000091776 [18:25:12]line Версия ККМ: 001 [18:25:12]line ФМ: 0000000000871754 [18:25:12]line ФД: 192733 [18:25:12]line ФПД: 227187057971441 [18:25:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182510&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192733&fm=227187057971441&tin=02508201610067®Number=0000000000091776&sum=100000 [18:25:12]written 0, free lines is 4095 [18:25:12]OFD Sender: Processing packet 192733 [packets to send 75, broken 74] [18:25:12]ProducePacketName [18:25:12]name=ofd_packets/00192733 [18:25:12]OFD Sender: To server: pG, [18:25:12]CommunicateWithHost lk.salyk.kg:30040 [18:25:12]ConnectInit lk.salyk.kg [18:25:12]Connected sock=10 [18:25:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 91 F9 07 01 0B 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 06 D7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD F0 02 00 35 04 06 00 CE A0 1B E3 50 F1 40 98 8E BA EB 87 C9 DB [18:25:12]Write to MH i2c: 01 00 00 85 06 8B [18:25:12]Write i2c OK [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: 01 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: 01 07 00 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: 01 07 00 85 06 00 00 00 00 00 C0 0C 5E [18:25:12]RasterBufferAndPrint [18:25:12]line [18:25:12]line [18:25:12]line [18:25:12]line [18:25:12]line [18:25:12]written 0, free lines is 3270 [18:25:12]MH_Cut [18:25:12]Write to MH i2c: D1 01 00 8C 06 01 64 [18:25:12]Write i2c OK [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: D1 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: D1 01 00 [18:25:12]MH_I2C_Read... [18:25:12]Read from MH i2c: D1 01 00 8C 06 00 63 [18:25:12]Write to MH i2c: 01 00 00 8D 06 93 [18:25:12]Write i2c OK [18:25:12]MH_I2C_Read... [18:25:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 32 9A 47 00 2B 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD F0 02 00 F4 03 04 00 CA 7B 1F 67 B6 04 01 00 00 89 A2 26 D2 11 31 F8 92 [18:25:12]CommunicateWithHost err = 0 [18:25:12]CheckOFDResponse [18:25:12]1017 (14) - 77093643461234 [18:25:12]1041 (16) - 0000000000871754 [18:25:12]1040 (4) - 192733 [18:25:12]1012 (4) - 28.10.2024 11:55 [18:25:12]1206 (1) - 0 [18:25:12]OFD Sender: Remove packet 192733 [18:25:12]ProducePacketName [18:25:12]name=ofd_packets/00192733 [18:25:12]NVStorageDeleteData [18:25:13]OFD Sender: No OFD packet to send [18:25:13]*** Cut start [18:25:13]*** Partial cut [18:25:13]*** CUTSNS_PIN = 1 [18:25:13]*** CUTSNS_PIN = 0 [18:25:13]*** Brake cut motor [18:25:13]Read from MH i2c: 01 [18:25:13]MH_I2C_Read... [18:25:14]*** Stop cut motor [18:25:14]*** Cut end [18:25:14]Read from MH i2c: 01 07 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: 01 07 00 8D 06 00 00 00 00 00 FF 0F A8 [18:25:14]process_action close_receipt done [18:25:14]requested_data is exist [18:25:14]produce_requested_data [18:25:14]requested_item fm.sn is exist - process it [18:25:14]wFMCommunicate request_size=4 [18:25:14]MH_SAM_APDU [18:25:14]CAPDU: 80 11 00 00 [18:25:14]Write to MH i2c: E2 08 00 8E 06 80 11 00 00 00 00 00 00 0E [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 [18:25:14]MH_I2C_Read... [18:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:14]Read from MH i2c: E2 17 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 17 00 8E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [18:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:25:14]wFMCommunicate OK [18:25:14]requested_item fd.num is exist - process it [18:25:14]SAM_PROTO_GetFieldsCounters [18:25:14]wFMCommunicate request_size=4 [18:25:14]MH_SAM_APDU [18:25:14]CAPDU: 80 13 00 00 [18:25:14]Write to MH i2c: E2 08 00 8F 06 80 13 00 00 00 00 00 00 11 [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:14]Read from MH i2c: E2 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 62 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 62 00 8F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DD F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [18:25:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DD F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:14]wFMCommunicate OK [18:25:14]SAM_PROTO_GetFieldsCounters done [18:25:14]requested_item shift.num is exist - process it [18:25:14]requested_item shift.opened is exist - process it [18:25:14]req_shift_opened [18:25:14]FM_GetShiftState [18:25:14]SAM_PROTO_GetShiftState [18:25:14]wFMCommunicate request_size=4 [18:25:14]MH_SAM_APDU [18:25:14]CAPDU: 80 13 01 00 [18:25:14]Write to MH i2c: E2 08 00 90 06 80 13 01 00 00 00 00 00 13 [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:14]Read from MH i2c: E2 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 0E 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 0E 00 90 06 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 63 [18:25:14]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:25:14]wFMCommunicate OK [18:25:14]SAM_PROTO_GetShiftState done [18:25:14]FM_GetShiftState done [18:25:14]req_shift_opened done [18:25:14]requested_item shift.open_date is exist - process it [18:25:14]req_shift_open_date [18:25:14]req_shift_open_date done [18:25:14]produce_requested_data done [18:25:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192733,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:25:14]process_action_free close_receipt [18:25:14]json_value_free [18:25:14]json_value_free done [18:25:14]process_json_proto returns [18:25:14]Send response to host [18:25:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192733,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:25:14]free response buf [18:25:14]execute_script done [18:25:14]execute_script returns [18:25:14]free content buf [18:25:14]Sock 9.Close socket [18:25:14]Sock 9.Thread stoped [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:14]accept exits with 8 [18:26:14]New connection [18:26:14]New thread 3066801508 created [18:26:14]Thread 3066658148 joined [18:26:14]Waiting for new connection... [18:26:14] Sock 8.Parse request [18:26:14]Sock 8.Check first char [18:26:14]Sock 8.First char is OK [18:26:14]request: POST /json_proto HTTP/1.0 [18:26:14]Method: POST [18:26:14]URL: /json_proto [18:26:14]Method is POST - this is cgi request [18:26:14]url: /json_proto [18:26:14]query_string will be loaded in cgi processing [18:26:14]execute_cgi json_proto POST (null) [18:26:14]execute_cgi path=json_proto method=POST [18:26:14]POST find Content-Length [18:26:14]Host: 172.17.63.131:8080 [18:26:14]Content-Length: 676 [18:26:14]Content-Type: application/json [18:26:14] [18:26:14]POST finish read [18:26:14]Found Content-Length = 676 [18:26:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:14]execute_script... [18:26: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)32061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:14]POST & json_proto [18:26:14]process_json_proto [18:26:14]json parsed OK: [18:26:14]protocol is kg_v1.0 [18:26:14]action value=close_receipt [18:26:14]process_action close_receipt [18:26:14]cmd_close_receipt [18:26:14]MH_GetDate [18:26:14]Write to MH i2c: F0 00 00 91 06 86 [18:26:14]Write i2c OK [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: F0 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: F0 09 00 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: F0 09 00 91 06 00 47 D7 1F 67 22 05 6E 64 2C [18:26:14]GetLastDocTimeStamp 1730139910 [18:26:14]current date 1730139975 [18:26:14]FM_GetShiftState [18:26:14]SAM_PROTO_GetShiftState [18:26:14]wFMCommunicate request_size=4 [18:26:14]MH_SAM_APDU [18:26:14]CAPDU: 80 13 01 00 [18:26:14]Write to MH i2c: E2 08 00 92 06 80 13 01 00 00 00 00 00 15 [18:26:14]Write i2c OK [18:26:14]MH_I2C_Read... [18:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:14]Read from MH i2c: E2 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: E2 0E 00 [18:26:14]MH_I2C_Read... [18:26:14]Read from MH i2c: E2 0E 00 92 06 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 65 [18:26:14]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:26:14]wFMCommunicate OK [18:26:14]SAM_PROTO_GetShiftState done [18:26:14]FM_GetShiftState done [18:26:14]opened in 1730075620 [18:26:14]opened+sec_in_day 1730162020 [18:26:14]quantity*price = 50041 [18:26:14]sum+1 = 50042 [18:26:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 282 28.10.2024 18:26 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192734 ФПД: 154672405624785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182615&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192734&fm=154672405624785&tin=02508201610067®Number=0000000000091776&sum=50000 [18:26:15]StoreToDocumentArchive [18:26:15]shift 543 fd 192734 [18:26:15]save to /storage/0543/doc_00192734 [18:26:15]save last doc name /storage/0543/doc_00192734 to /storage/kkm_last_doc_name [18:26:15]save OK [18:26:15]Clear old archive folders... [18:26:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:15]tlvbuf is 00EF0690 [18:26:15]SAM_PROTO_ClearQueue [18:26:15]wFMCommunicate request_size=4 [18:26:15]MH_SAM_APDU [18:26:15]CAPDU: 80 09 00 00 [18:26:15]Write to MH i2c: E2 08 00 9F 06 80 09 00 00 00 00 00 00 17 [18:26:15]Write i2c OK [18:26:15]MH_I2C_Read... [18:26:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:15]Read from MH i2c: E2 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 03 00 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 03 00 9F 06 00 90 00 19 [18:26:15]RAPDU: 90 00 [18:26:15]wFMCommunicate OK [18:26:15]SAM_PROTO_ClearQueue done [18:26:15]KKMCreateOFDPacket [18:26:15]OFDProtocolAddRootSTLVToBuf [18:26:15]FM_MakeSignedData [18:26:15]FM_MakeSignedData [18:26:15]SAM_PROTO_SignData [18:26:15]wFMCommunicate request_size=4 [18:26:15]MH_SAM_APDU [18:26:15]CAPDU: 80 0D 01 02 [18:26:15]Write to MH i2c: E2 08 00 A0 06 80 0D 01 02 00 00 00 00 1F [18:26:15]Write i2c OK [18:26:15]MH_I2C_Read... [18:26:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:15]Read from MH i2c: E2 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 03 00 [18:26:15]MH_I2C_Read... [18:26:15]Read from MH i2c: E2 03 00 A0 06 00 90 00 1A [18:26:15]RAPDU: 90 00 [18:26:15]wFMCommunicate OK [18:26:15]wFMCommunicate request_size=255 [18:26:15]MH_SAM_APDU [18:26:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 47 D7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE F0 02 00 35 04 06 00 8C [18:26:15]Write to MH i2c: E2 02 01 A1 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 47 D7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE F0 02 00 35 04 06 00 8C 00 00 EF [18:26:15]Write i2c OK [18:26:15]MH_I2C_Read... [18:26:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:16]Read from MH i2c: E2 [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: E2 03 00 [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: E2 03 00 A1 06 00 90 00 1B [18:26:16]RAPDU: 90 00 [18:26:16]wFMCommunicate OK [18:26:16]wFMCommunicate request_size=10 [18:26:16]MH_SAM_APDU [18:26:16]CAPDU: 80 0D 02 02 05 AC 79 CB 37 D1 [18:26:16]Write to MH i2c: E2 0D 00 A2 06 80 0D 02 02 05 00 AC 79 CB 37 D1 00 00 24 [18:26:16]Write i2c OK [18:26:16]MH_I2C_Read... [18:26:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:16]Read from MH i2c: E2 [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: E2 03 00 [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: E2 03 00 A2 06 00 90 00 1C [18:26:16]RAPDU: 90 00 [18:26:16]wFMCommunicate OK [18:26:16]wFMCommunicate request_size=4 [18:26:16]MH_SAM_APDU [18:26:16]CAPDU: 80 0D 03 02 [18:26:16]Write to MH i2c: E2 08 00 A3 06 80 0D 03 02 00 00 00 00 24 [18:26:16]Write i2c OK [18:26:16]MH_I2C_Read... [18:26:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:16]Read from MH i2c: E2 [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: E2 0B 00 [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: E2 0B 00 A3 06 00 F5 CC 3D 8A 3C 98 E9 0A 90 00 74 [18:26:16]RAPDU: F5 CC 3D 8A 3C 98 E9 0A 90 00 [18:26:16]wFMCommunicate OK [18:26:16]SAM_PROTO_SignData done [18:26:16]FM_MakeSignedData done [18:26:16]CreateOFDProtocolMessage [18:26:16]wFMCommunicate request_size=4 [18:26:16]MH_SAM_APDU [18:26:16]CAPDU: 80 11 00 00 [18:26:16]Write to MH i2c: E2 08 00 A4 06 80 11 00 00 00 00 00 00 24 [18:26:16]Write i2c OK [18:26:16]MH_I2C_Read... [18:26:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:16]Read from MH i2c: E2 [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: E2 17 00 [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: E2 17 00 A4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 77 [18:26:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:26:16]wFMCommunicate OK [18:26:16]CreateOFDProtocolMessage done [18:26:16]OFDSenderStorePacket 192734 [18:26:16]StoreOFDPacket docnum=192734 [18:26:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E0 DD 07 01 24 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 47 D7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE F0 02 00 35 04 06 00 8C AC 79 CB 37 D1 F5 CC 3D 8A 3C 98 E9 0A [18:26:16]CheckFolder [18:26:16]dirname=/storage/ofd_packets [18:26:16]CheckFolder done [18:26:16]ProducePacketName [18:26:16]name=ofd_packets/00192734 [18:26:16]NVStorageSaveData ofd_packets/00192734 [18:26:16]File name is /storage/ofd_packets/00192734 [18:26:16]Write 301 bytes [18:26:16]NVStorageSaveData done [18:26:16]OFDSenderStorePacket done [18:26:16]KKMCreateOFDPacket done [18:26:16]NVStorageSaveData kkm_last_timestamp [18:26:16]File name is /storage/kkm_last_timestamp [18:26:16]Write 4 bytes [18:26:16]NVStorageSaveData done [18:26:16]ExternCall_PrintAddStr [18:26:16]wPrintStart [18:26:16]Write to MH i2c: 01 00 00 A5 06 AB [18:26:16]Write i2c OK [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: 01 [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: 01 07 00 [18:26:16]MH_I2C_Read... [18:26:16]Read from MH i2c: 01 07 00 A5 06 00 00 00 00 00 FF 0F C0 [18:26:16]RasterBufferAndPrint [18:26:16]line Счет N : (1)32061 [18:26:16]line ИНН: 02508201610067 [18:26:16]line Контрольно-Кассовый Чек [18:26:16]line ПРОДАЖА [18:26:16]line ТРК (МРК, ГНК) : 12 [18:26:16]line Товар: 2710124130 [18:26:16]line Аи-92-К-5 [18:26:16]line 7.480 * 66.90 [18:26:16]line = 500.41 [18:26:16]line НДС 12% НСП 1% [18:26:16]line > о реализуемом товаре [18:26:16]line ОКРУГЛЕНИЕ: -0.41 [18:26:16]line ИТОГО: 500.00 [18:26:16]line Внесено: 500.00 [18:26:16]line СДАЧА: 0.00 [18:26:16]line НСП 1% : 4.43 [18:26:16]line НДС 12% : 53.14 [18:26:16]line Наличными: 500.00 [18:26:16]line Безнал.: 0.00 [18:26:16]line Место: АЗС № 170 "Партнер Нефть" [18:26:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:26:16]line СНО: Общий режим [18:26:16]line Чек 282 28.10.2024 18:26 [18:26:16]line Смена: 543 ФФД: 1.0 [18:26:16]line ЗНМ: 0300000110 [18:26:16]line РНМ: 0000000000091776 [18:26:16]line Версия ККМ: 001 [18:26:16]line ФМ: 0000000000871754 [18:26:16]line ФД: 192734 [18:26:16]line ФПД: 154672405624785 [18:26:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182615&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192734&fm=154672405624785&tin=02508201610067®Number=0000000000091776&sum=50000 [18:26:16]OFD Sender: Processing packet 192734 [packets to send 75, broken 74] [18:26:16]ProducePacketName [18:26:16]name=ofd_packets/00192734 [18:26:16]OFD Sender: To server: pG, [18:26:16]CommunicateWithHost lk.salyk.kg:30040 [18:26:16]ConnectInit lk.salyk.kg [18:26:16]written 0, free lines is 4095 [18:26:16]Connected sock=7 [18:26:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E0 DD 07 01 24 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 47 D7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE F0 02 00 35 04 06 00 8C AC 79 CB 37 D1 F5 CC 3D 8A 3C 98 E9 0A [18:26:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C5 46 47 00 EC 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE F0 02 00 F4 03 04 00 0A 7C 1F 67 B6 04 01 00 00 94 BC 86 D5 0D 33 60 7C [18:26:16]CommunicateWithHost err = 0 [18:26:16]CheckOFDResponse [18:26:16]1017 (14) - 77093643461234 [18:26:16]1041 (16) - 0000000000871754 [18:26:16]1040 (4) - 192734 [18:26:16]1012 (4) - 28.10.2024 11:56 [18:26:16]1206 (1) - 0 [18:26:16]OFD Sender: Remove packet 192734 [18:26:16]ProducePacketName [18:26:16]name=ofd_packets/00192734 [18:26:16]NVStorageDeleteData [18:26:17]Write to MH i2c: 01 00 00 D0 06 D6 [18:26:17]Write i2c OK [18:26:17]MH_I2C_Read... [18:26:17]Read from MH i2c: 01 [18:26:17]MH_I2C_Read... [18:26:17]Read from MH i2c: 01 07 00 [18:26:17]MH_I2C_Read... [18:26:17]Read from MH i2c: 01 07 00 D0 06 00 00 00 00 00 BB 0C A4 [18:26:17]RasterBufferAndPrint [18:26:17]line [18:26:17]line [18:26:17]line [18:26:17]line [18:26:17]line [18:26:17]written 0, free lines is 3264 [18:26:17]MH_Cut [18:26:17]Write to MH i2c: D1 01 00 D7 06 01 AF [18:26:17]Write i2c OK [18:26:17]MH_I2C_Read... [18:26:17]Read from MH i2c: D1 [18:26:17]MH_I2C_Read... [18:26:17]Read from MH i2c: D1 01 00 [18:26:17]MH_I2C_Read... [18:26:17]Read from MH i2c: D1 01 00 D7 06 00 AE [18:26:17]Write to MH i2c: 01 00 00 D8 06 DE [18:26:17]Write i2c OK [18:26:17]MH_I2C_Read... [18:26:17]OFD Sender: No OFD packet to send [18:26:17]*** Cut start [18:26:17]*** Partial cut [18:26:17]*** CUTSNS_PIN = 1 [18:26:17]*** CUTSNS_PIN = 0 [18:26:18]*** Brake cut motor [18:26:18]Read from MH i2c: 01 [18:26:18]MH_I2C_Read... [18:26:18]*** Stop cut motor [18:26:18]*** Cut end [18:26:18]Read from MH i2c: 01 07 00 [18:26:18]MH_I2C_Read... [18:26:18]Read from MH i2c: 01 07 00 D8 06 00 00 00 00 00 FF 0F F3 [18:26:18]process_action close_receipt done [18:26:18]requested_data is exist [18:26:18]produce_requested_data [18:26:18]requested_item fm.sn is exist - process it [18:26:18]wFMCommunicate request_size=4 [18:26:18]MH_SAM_APDU [18:26:18]CAPDU: 80 11 00 00 [18:26:18]Write to MH i2c: E2 08 00 D9 06 80 11 00 00 00 00 00 00 59 [18:26:18]Write i2c OK [18:26:18]MH_I2C_Read... [18:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:18]Read from MH i2c: E2 [18:26:18]MH_I2C_Read... [18:26:18]Read from MH i2c: E2 17 00 [18:26:18]MH_I2C_Read... [18:26:18]Read from MH i2c: E2 17 00 D9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [18:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:26:18]wFMCommunicate OK [18:26:18]requested_item fd.num is exist - process it [18:26:18]SAM_PROTO_GetFieldsCounters [18:26:18]wFMCommunicate request_size=4 [18:26:18]MH_SAM_APDU [18:26:18]CAPDU: 80 13 00 00 [18:26:18]Write to MH i2c: E2 08 00 DA 06 80 13 00 00 00 00 00 00 5C [18:26:18]Write i2c OK [18:26:18]MH_I2C_Read... [18:26:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:18]Read from MH i2c: E2 [18:26:18]MH_I2C_Read... [18:26:18]Read from MH i2c: E2 62 00 [18:26:18]MH_I2C_Read... [18:26:18]Read from MH i2c: E2 62 00 DA 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [18:26:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:18]wFMCommunicate OK [18:26:18]SAM_PROTO_GetFieldsCounters done [18:26:18]requested_item shift.num is exist - process it [18:26:18]requested_item shift.opened is exist - process it [18:26:18]req_shift_opened [18:26:18]FM_GetShiftState [18:26:18]SAM_PROTO_GetShiftState [18:26:18]wFMCommunicate request_size=4 [18:26:18]MH_SAM_APDU [18:26:18]CAPDU: 80 13 01 00 [18:26:18]Write to MH i2c: E2 08 00 DB 06 80 13 01 00 00 00 00 00 5E [18:26:18]Write i2c OK [18:26:18]MH_I2C_Read... [18:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:18]Read from MH i2c: E2 [18:26:18]MH_I2C_Read... [18:26:18]Read from MH i2c: E2 0E 00 [18:26:18]MH_I2C_Read... [18:26:18]Read from MH i2c: E2 0E 00 DB 06 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 AE [18:26:18]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:26:18]wFMCommunicate OK [18:26:18]SAM_PROTO_GetShiftState done [18:26:18]FM_GetShiftState done [18:26:18]req_shift_opened done [18:26:18]requested_item shift.open_date is exist - process it [18:26:18]req_shift_open_date [18:26:18]req_shift_open_date done [18:26:18]produce_requested_data done [18:26:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192734,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:26:18]process_action_free close_receipt [18:26:18]json_value_free [18:26:18]json_value_free done [18:26:18]process_json_proto returns [18:26:18]Send response to host [18:26:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192734,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:26:18]free response buf [18:26:18]execute_script done [18:26:18]execute_script returns [18:26:18]free content buf [18:26:18]Sock 8.Close socket [18:26:18]Sock 8.Thread stoped [18:26:22]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:52]OFD Sender: No OFD packet to send [18:27:57]OFD Sender: No OFD packet to send [18:28:02]OFD Sender: No OFD packet to send [18:28:07]OFD Sender: No OFD packet to send [18:28:12]OFD Sender: No OFD packet to send [18:28:17]OFD Sender: No OFD packet to send [18:28:22]OFD Sender: No OFD packet to send [18:28:27]OFD Sender: No OFD packet to send [18:28:32]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:17]OFD Sender: No OFD packet to send [18:29:21]accept exits with 9 [18:29:21]New connection [18:29:21]New thread 3066658148 created [18:29:21]Thread 3066801508 joined [18:29:21]Waiting for new connection... [18:29:21] Sock 9.Parse request [18:29:21]Sock 9.Check first char [18:29:21]Sock 9.First char is OK [18:29:21]request: POST /json_proto HTTP/1.0 [18:29:21]Method: POST [18:29:21]URL: /json_proto [18:29:21]Method is POST - this is cgi request [18:29:21]url: /json_proto [18:29:21]query_string will be loaded in cgi processing [18:29:21]execute_cgi json_proto POST (null) [18:29:21]execute_cgi path=json_proto method=POST [18:29:21]POST find Content-Length [18:29:21]Host: 172.17.63.131:8080 [18:29:21]Content-Length: 681 [18:29:21]Content-Type: application/json [18:29:21] [18:29:21]POST finish read [18:29:21]Found Content-Length = 681 [18:29:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:21]execute_script... [18:29: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)32062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:21]POST & json_proto [18:29:21]process_json_proto [18:29:21]json parsed OK: [18:29:21]protocol is kg_v1.0 [18:29:21]action value=close_receipt [18:29:21]process_action close_receipt [18:29:21]cmd_close_receipt [18:29:21]MH_GetDate [18:29:21]Write to MH i2c: F0 00 00 DC 06 D1 [18:29:21]Write i2c OK [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: F0 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: F0 09 00 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: F0 09 00 DC 06 00 02 D8 1F 67 22 05 6E 64 33 [18:29:21]GetLastDocTimeStamp 1730139975 [18:29:21]current date 1730140162 [18:29:21]FM_GetShiftState [18:29:21]SAM_PROTO_GetShiftState [18:29:21]wFMCommunicate request_size=4 [18:29:21]MH_SAM_APDU [18:29:21]CAPDU: 80 13 01 00 [18:29:21]Write to MH i2c: E2 08 00 DD 06 80 13 01 00 00 00 00 00 60 [18:29:21]Write i2c OK [18:29:21]MH_I2C_Read... [18:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:21]Read from MH i2c: E2 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: E2 0E 00 [18:29:21]MH_I2C_Read... [18:29:21]Read from MH i2c: E2 0E 00 DD 06 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B0 [18:29:21]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:29:21]wFMCommunicate OK [18:29:21]SAM_PROTO_GetShiftState done [18:29:21]FM_GetShiftState done [18:29:21]opened in 1730075620 [18:29:21]opened+sec_in_day 1730162020 [18:29:21]quantity*price = 100015 [18:29:21]sum+1 = 100017 [18:29:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 283 28.10.2024 18:29 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192735 ФПД: 68261896909434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182922&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192735&fm=68261896909434&tin=02508201610067®Number=0000000000091776&sum=100000 [18:29:23]StoreToDocumentArchive [18:29:23]shift 543 fd 192735 [18:29:23]save to /storage/0543/doc_00192735 [18:29:23]save last doc name /storage/0543/doc_00192735 to /storage/kkm_last_doc_name [18:29:23]save OK [18:29:23]Clear old archive folders... [18:29:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:23]tlvbuf is 00EF0EC0 [18:29:23]SAM_PROTO_ClearQueue [18:29:23]wFMCommunicate request_size=4 [18:29:23]MH_SAM_APDU [18:29:23]CAPDU: 80 09 00 00 [18:29:23]Write to MH i2c: E2 08 00 EA 06 80 09 00 00 00 00 00 00 62 [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:23]Read from MH i2c: E2 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 03 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 03 00 EA 06 00 90 00 64 [18:29:23]RAPDU: 90 00 [18:29:23]wFMCommunicate OK [18:29:23]SAM_PROTO_ClearQueue done [18:29:23]KKMCreateOFDPacket [18:29:23]OFDProtocolAddRootSTLVToBuf [18:29:23]FM_MakeSignedData [18:29:23]FM_MakeSignedData [18:29:23]SAM_PROTO_SignData [18:29:23]wFMCommunicate request_size=4 [18:29:23]MH_SAM_APDU [18:29:23]CAPDU: 80 0D 01 02 [18:29:23]Write to MH i2c: E2 08 00 EB 06 80 0D 01 02 00 00 00 00 6A [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:23]Read from MH i2c: E2 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 03 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 03 00 EB 06 00 90 00 65 [18:29:23]RAPDU: 90 00 [18:29:23]wFMCommunicate OK [18:29:23]wFMCommunicate request_size=255 [18:29:23]MH_SAM_APDU [18:29:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 02 D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF F0 02 00 35 04 06 00 3E [18:29:23]Write to MH i2c: E2 02 01 EC 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 02 D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF F0 02 00 35 04 06 00 3E 00 00 A4 [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:23]Read from MH i2c: E2 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 03 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 03 00 EC 06 00 90 00 66 [18:29:23]RAPDU: 90 00 [18:29:23]wFMCommunicate OK [18:29:23]wFMCommunicate request_size=10 [18:29:23]MH_SAM_APDU [18:29:23]CAPDU: 80 0D 02 02 05 15 76 1D F2 7A [18:29:23]Write to MH i2c: E2 0D 00 ED 06 80 0D 02 02 05 00 15 76 1D F2 7A 00 00 8B [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:23]Read from MH i2c: E2 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 03 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 03 00 ED 06 00 90 00 67 [18:29:23]RAPDU: 90 00 [18:29:23]wFMCommunicate OK [18:29:23]wFMCommunicate request_size=4 [18:29:23]MH_SAM_APDU [18:29:23]CAPDU: 80 0D 03 02 [18:29:23]Write to MH i2c: E2 08 00 EE 06 80 0D 03 02 00 00 00 00 6F [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:23]Read from MH i2c: E2 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 0B 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 0B 00 EE 06 00 FB D8 E2 00 EF 7B 0E EA 90 00 87 [18:29:23]RAPDU: FB D8 E2 00 EF 7B 0E EA 90 00 [18:29:23]wFMCommunicate OK [18:29:23]SAM_PROTO_SignData done [18:29:23]FM_MakeSignedData done [18:29:23]CreateOFDProtocolMessage [18:29:23]wFMCommunicate request_size=4 [18:29:23]MH_SAM_APDU [18:29:23]CAPDU: 80 11 00 00 [18:29:23]Write to MH i2c: E2 08 00 EF 06 80 11 00 00 00 00 00 00 6F [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:23]Read from MH i2c: E2 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 17 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 17 00 EF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C2 [18:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:29:23]wFMCommunicate OK [18:29:23]CreateOFDProtocolMessage done [18:29:23]OFDSenderStorePacket 192735 [18:29:23]StoreOFDPacket docnum=192735 [18:29:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 27 83 07 01 44 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 02 D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF F0 02 00 35 04 06 00 3E 15 76 1D F2 7A FB D8 E2 00 EF 7B 0E EA [18:29:23]CheckFolder [18:29:23]dirname=/storage/ofd_packets [18:29:23]CheckFolder done [18:29:23]ProducePacketName [18:29:23]name=ofd_packets/00192735 [18:29:23]NVStorageSaveData ofd_packets/00192735 [18:29:23]File name is /storage/ofd_packets/00192735 [18:29:23]Write 301 bytes [18:29:23]NVStorageSaveData done [18:29:23]OFDSenderStorePacket done [18:29:23]KKMCreateOFDPacket done [18:29:23]NVStorageSaveData kkm_last_timestamp [18:29:23]File name is /storage/kkm_last_timestamp [18:29:23]Write 4 bytes [18:29:23]NVStorageSaveData done [18:29:23]OFD Sender: Processing packet 192735 [packets to send 75, broken 74] [18:29:23]ProducePacketName [18:29:23]name=ofd_packets/00192735 [18:29:23]OFD Sender: To server: pG, [18:29:23]CommunicateWithHost lk.salyk.kg:30040 [18:29:23]ConnectInit lk.salyk.kg [18:29:23]ExternCall_PrintAddStr [18:29:23]wPrintStart [18:29:23]Write to MH i2c: 01 00 00 F0 06 F6 [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: 01 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: 01 07 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: 01 07 00 F0 06 00 00 00 00 00 FF 0F 0B [18:29:23]RasterBufferAndPrint [18:29:23]line Счет N : (1)32062 [18:29:23]line ИНН: 02508201610067 [18:29:23]line Контрольно-Кассовый Чек [18:29:23]line ПРОДАЖА [18:29:23]line ТРК (МРК, ГНК) : 21 [18:29:23]line Товар: 2710124130 [18:29:23]line Аи-92-К-5 [18:29:23]line 14.950 * 66.90 [18:29:23]line = 1000.16 [18:29:23]line НДС 12% НСП 1% [18:29:23]line > о реализуемом товаре [18:29:23]line ОКРУГЛЕНИЕ: -0.16 [18:29:23]line ИТОГО: 1000.00 [18:29:23]line Внесено: 1000.00 [18:29:23]line СДАЧА: 0.00 [18:29:23]line НСП 1% : 8.85 [18:29:23]line НДС 12% : 106.21 [18:29:23]line Наличными: 1000.00 [18:29:23]line Безнал.: 0.00 [18:29:23]line Место: АЗС № 170 "Партнер Нефть" [18:29:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:29:23]line СНО: Общий режим [18:29:23]line Чек 283 28.10.2024 18:29 [18:29:23]line Смена: 543 ФФД: 1.0 [18:29:23]line ЗНМ: 0300000110 [18:29:23]line РНМ: 0000000000091776 [18:29:23]line Версия ККМ: 001 [18:29:23]line ФМ: 0000000000871754 [18:29:23]line ФД: 192735 [18:29:23]line ФПД: 68261896909434 [18:29:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182922&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192735&fm=68261896909434&tin=02508201610067®Number=0000000000091776&sum=100000 [18:29:23]Connected sock=11 [18:29:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 27 83 07 01 44 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 02 D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF F0 02 00 35 04 06 00 3E 15 76 1D F2 7A FB D8 E2 00 EF 7B 0E EA [18:29:23]written 0, free lines is 4095 [18:29:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 65 54 47 00 A9 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF F0 02 00 F4 03 04 00 C5 7C 1F 67 B6 04 01 00 00 AA 12 CA 65 81 E3 D9 51 [18:29:24]CommunicateWithHost err = 0 [18:29:24]CheckOFDResponse [18:29:24]1017 (14) - 77093643461234 [18:29:24]1041 (16) - 0000000000871754 [18:29:24]1040 (4) - 192735 [18:29:24]1012 (4) - 28.10.2024 12:00 [18:29:24]1206 (1) - 0 [18:29:24]OFD Sender: Remove packet 192735 [18:29:24]ProducePacketName [18:29:24]name=ofd_packets/00192735 [18:29:24]NVStorageDeleteData [18:29:24]Write to MH i2c: 01 00 00 1B 07 22 [18:29:24]Write i2c OK [18:29:24]MH_I2C_Read... [18:29:24]Read from MH i2c: 01 [18:29:24]MH_I2C_Read... [18:29:24]Read from MH i2c: 01 07 00 [18:29:24]MH_I2C_Read... [18:29:24]Read from MH i2c: 01 07 00 1B 07 00 00 00 00 00 C2 0C F7 [18:29:24]RasterBufferAndPrint [18:29:24]line [18:29:24]line [18:29:24]line [18:29:24]line [18:29:24]line [18:29:24]written 0, free lines is 3272 [18:29:24]MH_Cut [18:29:24]Write to MH i2c: D1 01 00 22 07 01 FB [18:29:24]Write i2c OK [18:29:24]MH_I2C_Read... [18:29:24]Read from MH i2c: D1 [18:29:24]MH_I2C_Read... [18:29:24]Read from MH i2c: D1 01 00 [18:29:24]MH_I2C_Read... [18:29:24]Read from MH i2c: D1 01 00 22 07 00 FA [18:29:24]Write to MH i2c: 01 00 00 23 07 2A [18:29:24]Write i2c OK [18:29:24]MH_I2C_Read... [18:29:24]OFD Sender: No OFD packet to send [18:29:25]*** Cut start [18:29:25]*** Partial cut [18:29:25]*** CUTSNS_PIN = 1 [18:29:25]*** CUTSNS_PIN = 0 [18:29:25]*** Brake cut motor [18:29:25]Read from MH i2c: 01 [18:29:25]MH_I2C_Read... [18:29:25]*** Stop cut motor [18:29:25]*** Cut end [18:29:25]Read from MH i2c: 01 07 00 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: 01 07 00 23 07 00 00 00 00 00 FF 0F 3F [18:29:25]process_action close_receipt done [18:29:25]requested_data is exist [18:29:25]produce_requested_data [18:29:25]requested_item fm.sn is exist - process it [18:29:25]wFMCommunicate request_size=4 [18:29:25]MH_SAM_APDU [18:29:25]CAPDU: 80 11 00 00 [18:29:25]Write to MH i2c: E2 08 00 24 07 80 11 00 00 00 00 00 00 A5 [18:29:25]Write i2c OK [18:29:25]MH_I2C_Read... [18:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:25]Read from MH i2c: E2 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 17 00 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 17 00 24 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F8 [18:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:29:25]wFMCommunicate OK [18:29:25]requested_item fd.num is exist - process it [18:29:25]SAM_PROTO_GetFieldsCounters [18:29:25]wFMCommunicate request_size=4 [18:29:25]MH_SAM_APDU [18:29:25]CAPDU: 80 13 00 00 [18:29:25]Write to MH i2c: E2 08 00 25 07 80 13 00 00 00 00 00 00 A8 [18:29:25]Write i2c OK [18:29:25]MH_I2C_Read... [18:29:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:26]Read from MH i2c: E2 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: E2 62 00 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: E2 62 00 25 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DF F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 14 [18:29:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DF F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:26]wFMCommunicate OK [18:29:26]SAM_PROTO_GetFieldsCounters done [18:29:26]requested_item shift.num is exist - process it [18:29:26]requested_item shift.opened is exist - process it [18:29:26]req_shift_opened [18:29:26]FM_GetShiftState [18:29:26]SAM_PROTO_GetShiftState [18:29:26]wFMCommunicate request_size=4 [18:29:26]MH_SAM_APDU [18:29:26]CAPDU: 80 13 01 00 [18:29:26]Write to MH i2c: E2 08 00 26 07 80 13 01 00 00 00 00 00 AA [18:29:26]Write i2c OK [18:29:26]MH_I2C_Read... [18:29:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:26]Read from MH i2c: E2 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: E2 0E 00 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: E2 0E 00 26 07 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FA [18:29:26]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:29:26]wFMCommunicate OK [18:29:26]SAM_PROTO_GetShiftState done [18:29:26]FM_GetShiftState done [18:29:26]req_shift_opened done [18:29:26]requested_item shift.open_date is exist - process it [18:29:26]req_shift_open_date [18:29:26]req_shift_open_date done [18:29:26]produce_requested_data done [18:29:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192735,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:29:26]process_action_free close_receipt [18:29:26]json_value_free [18:29:26]json_value_free done [18:29:26]process_json_proto returns [18:29:26]Send response to host [18:29:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192735,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:29:26]free response buf [18:29:26]execute_script done [18:29:26]execute_script returns [18:29:26]free content buf [18:29:26]Sock 9.Close socket [18:29:26]Sock 9.Thread stoped [18:29:29]OFD Sender: No OFD packet to send [18:29:34]OFD Sender: No OFD packet to send [18:29:39]accept exits with 8 [18:29:39]New connection [18:29:39]New thread 3066801508 created [18:29:39]Thread 3066658148 joined [18:29:39]Waiting for new connection... [18:29:39] Sock 8.Parse request [18:29:39]Sock 8.Check first char [18:29:39]Sock 8.First char is OK [18:29:39]request: POST /json_proto HTTP/1.0 [18:29:39]Method: POST [18:29:39]URL: /json_proto [18:29:39]Method is POST - this is cgi request [18:29:39]url: /json_proto [18:29:39]query_string will be loaded in cgi processing [18:29:39]execute_cgi json_proto POST (null) [18:29:39]execute_cgi path=json_proto method=POST [18:29:39]POST find Content-Length [18:29:39]Host: 172.17.63.131:8080 [18:29:39]Content-Length: 859 [18:29:39]Content-Type: application/json [18:29:39] [18:29:39]POST finish read [18:29:39]Found Content-Length = 859 [18:29:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:39]execute_script... [18:29:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:39]POST & json_proto [18:29:39]process_json_proto [18:29:39]json parsed OK: [18:29:39]protocol is kg_v1.0 [18:29:39]action value=close_receipt [18:29:39]process_action close_receipt [18:29:39]cmd_close_receipt [18:29:39]MH_GetDate [18:29:39]Write to MH i2c: F0 00 00 27 07 1D [18:29:39]Write i2c OK [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: F0 [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: F0 09 00 [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: F0 09 00 27 07 00 13 D8 1F 67 22 05 6E 64 90 [18:29:39]GetLastDocTimeStamp 1730140162 [18:29:39]current date 1730140179 [18:29:39]FM_GetShiftState [18:29:39]SAM_PROTO_GetShiftState [18:29:39]wFMCommunicate request_size=4 [18:29:39]MH_SAM_APDU [18:29:39]CAPDU: 80 13 01 00 [18:29:39]Write to MH i2c: E2 08 00 28 07 80 13 01 00 00 00 00 00 AC [18:29:39]Write i2c OK [18:29:39]MH_I2C_Read... [18:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:39]Read from MH i2c: E2 [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: E2 0E 00 [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: E2 0E 00 28 07 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FC [18:29:39]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:29:39]wFMCommunicate OK [18:29:39]SAM_PROTO_GetShiftState done [18:29:39]FM_GetShiftState done [18:29:39]opened in 1730075620 [18:29:39]opened+sec_in_day 1730162020 [18:29:39]quantity*price = 20040 [18:29:39]sum+1 = 20042 [18:29:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.41 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 0.00 Безнал.: 200.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 284 28.10.2024 18:29 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192736 ФПД: 277607364890681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182939&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192736&fm=277607364890681&tin=02508201610067®Number=0000000000091776&sum=20041 [18:29:40]StoreToDocumentArchive [18:29:40]shift 543 fd 192736 [18:29:40]save to /storage/0543/doc_00192736 [18:29:40]save last doc name /storage/0543/doc_00192736 to /storage/kkm_last_doc_name [18:29:40]save OK [18:29:40]Clear old archive folders... [18:29:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:29:40]tlvbuf is 00EF1380 [18:29:40]SAM_PROTO_ClearQueue [18:29:40]wFMCommunicate request_size=4 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 09 00 00 [18:29:40]Write to MH i2c: E2 08 00 35 07 80 09 00 00 00 00 00 00 AE [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 35 07 00 90 00 B0 [18:29:40]RAPDU: 90 00 [18:29:40]wFMCommunicate OK [18:29:40]SAM_PROTO_ClearQueue done [18:29:40]KKMCreateOFDPacket [18:29:40]OFDProtocolAddRootSTLVToBuf [18:29:40]FM_MakeSignedData [18:29:40]FM_MakeSignedData [18:29:40]SAM_PROTO_SignData [18:29:40]wFMCommunicate request_size=4 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 0D 01 02 [18:29:40]Write to MH i2c: E2 08 00 36 07 80 0D 01 02 00 00 00 00 B6 [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 36 07 00 90 00 B1 [18:29:40]RAPDU: 90 00 [18:29:40]wFMCommunicate OK [18:29:40]wFMCommunicate request_size=255 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 13 D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 F0 02 00 35 04 06 00 FC 7B 80 5F [18:29:40]Write to MH i2c: E2 02 01 37 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 13 D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 F0 02 00 35 04 06 00 FC 7B 80 5F 00 00 EE [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 37 07 00 90 00 B2 [18:29:40]RAPDU: 90 00 [18:29:40]wFMCommunicate OK [18:29:40]wFMCommunicate request_size=7 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 0D 02 02 02 10 39 [18:29:40]Write to MH i2c: E2 0A 00 38 07 80 0D 02 02 02 00 10 39 00 00 06 [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 38 07 00 90 00 B3 [18:29:40]RAPDU: 90 00 [18:29:40]wFMCommunicate OK [18:29:40]wFMCommunicate request_size=4 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 0D 03 02 [18:29:40]Write to MH i2c: E2 08 00 39 07 80 0D 03 02 00 00 00 00 BB [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 0B 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 0B 00 39 07 00 19 DF D1 FD CF 0B 52 49 90 00 F7 [18:29:40]RAPDU: 19 DF D1 FD CF 0B 52 49 90 00 [18:29:40]wFMCommunicate OK [18:29:40]SAM_PROTO_SignData done [18:29:40]FM_MakeSignedData done [18:29:40]CreateOFDProtocolMessage [18:29:40]wFMCommunicate request_size=4 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 11 00 00 [18:29:40]Write to MH i2c: E2 08 00 3A 07 80 11 00 00 00 00 00 00 BB [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:41]Read from MH i2c: E2 [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: E2 17 00 [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: E2 17 00 3A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0E [18:29:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:29:41]wFMCommunicate OK [18:29:41]CreateOFDProtocolMessage done [18:29:41]OFDSenderStorePacket 192736 [18:29:41]StoreOFDPacket docnum=192736 [18:29:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BE A1 04 01 C2 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 13 D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 F0 02 00 35 04 06 00 FC 7B 80 5F 10 39 19 DF D1 FD CF 0B 52 49 [18:29:41]CheckFolder [18:29:41]dirname=/storage/ofd_packets [18:29:41]CheckFolder done [18:29:41]ProducePacketName [18:29:41]name=ofd_packets/00192736 [18:29:41]NVStorageSaveData ofd_packets/00192736 [18:29:41]File name is /storage/ofd_packets/00192736 [18:29:41]Write 298 bytes [18:29:41]NVStorageSaveData done [18:29:41]OFDSenderStorePacket done [18:29:41]KKMCreateOFDPacket done [18:29:41]NVStorageSaveData kkm_last_timestamp [18:29:41]File name is /storage/kkm_last_timestamp [18:29:41]Write 4 bytes [18:29:41]NVStorageSaveData done [18:29:41]ExternCall_PrintAddStr [18:29:41]wPrintStart [18:29:41]Write to MH i2c: 01 00 00 3B 07 42 [18:29:41]Write i2c OK [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: 01 [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: 01 07 00 [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: 01 07 00 3B 07 00 00 00 00 00 FF 0F 57 [18:29:41]RasterBufferAndPrint [18:29:41]line Счет N : (1)32063 [18:29:41]line ИНН: 02508201610067 [18:29:41]line Контрольно-Кассовый Чек [18:29:41]line ПРОДАЖА [18:29:41]line ТРК (МРК, ГНК) : 11 [18:29:41]line Товар: 2710194210 [18:29:41]line ДТ-К-5 [18:29:41]line 2.630 * 76.20 [18:29:41]line = 200.41 [18:29:41]line НДС 12% НСП 1% [18:29:41]line > о реализуемом товаре [18:29:41]line ИТОГО: 200.41 [18:29:41]line НСП 1% : 1.77 [18:29:41]line НДС 12% : 21.28 [18:29:41]line Наличными: 0.00 [18:29:41]line Безнал.: 200.41 [18:29:41]line Место: АЗС № 170 "Партнер Нефть" [18:29:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:29:41]line СНО: Общий режим [18:29:41]line Чек 284 28.10.2024 18:29 [18:29:41]line Смена: 543 ФФД: 1.0 [18:29:41]line ЗНМ: 0300000110 [18:29:41]line РНМ: 0000000000091776 [18:29:41]line Версия ККМ: 001 [18:29:41]line Платежная система: Кыргызкоммерцбанк [18:29:41]line ФМ: 0000000000871754 [18:29:41]line ФД: 192736 [18:29:41]line ФПД: 277607364890681 [18:29:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182939&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192736&fm=277607364890681&tin=02508201610067®Number=0000000000091776&sum=20041 [18:29:41]OFD Sender: Processing packet 192736 [packets to send 75, broken 74] [18:29:41]ProducePacketName [18:29:41]name=ofd_packets/00192736 [18:29:41]OFD Sender: To server: pG, [18:29:41]CommunicateWithHost lk.salyk.kg:30040 [18:29:41]ConnectInit lk.salyk.kg [18:29:41]written 0, free lines is 4095 [18:29:41]Connected sock=10 [18:29:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 BE A1 04 01 C2 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 49 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 49 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 13 D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 F0 02 00 35 04 06 00 FC 7B 80 5F 10 39 19 DF D1 FD CF 0B 52 49 [18:29:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 69 A7 47 00 33 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 F0 02 00 F4 03 04 00 D7 7C 1F 67 B6 04 01 00 00 49 A2 7F 8B 9A D2 04 87 [18:29:41]CommunicateWithHost err = 0 [18:29:41]CheckOFDResponse [18:29:41]1017 (14) - 77093643461234 [18:29:41]1041 (16) - 0000000000871754 [18:29:41]1040 (4) - 192736 [18:29:41]1012 (4) - 28.10.2024 12:00 [18:29:41]1206 (1) - 0 [18:29:41]OFD Sender: Remove packet 192736 [18:29:41]ProducePacketName [18:29:41]name=ofd_packets/00192736 [18:29:41]NVStorageDeleteData [18:29:41]Write to MH i2c: 01 00 00 65 07 6C [18:29:41]Write i2c OK [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: 01 [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: 01 07 00 [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: 01 07 00 65 07 00 00 00 00 00 DD 0C 5C [18:29:41]RasterBufferAndPrint [18:29:41]line [18:29:41]line [18:29:41]line [18:29:41]line [18:29:41]line [18:29:41]written 0, free lines is 3299 [18:29:41]MH_Cut [18:29:41]Write to MH i2c: D1 01 00 6C 07 01 45 [18:29:41]Write i2c OK [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: D1 [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: D1 01 00 [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: D1 01 00 6C 07 00 44 [18:29:41]Write to MH i2c: 01 00 00 6D 07 74 [18:29:41]Write i2c OK [18:29:41]MH_I2C_Read... [18:29:42]OFD Sender: No OFD packet to send [18:29:42]*** Cut start [18:29:42]*** Partial cut [18:29:42]*** CUTSNS_PIN = 1 [18:29:42]*** CUTSNS_PIN = 0 [18:29:42]*** Brake cut motor [18:29:43]Read from MH i2c: 01 [18:29:43]MH_I2C_Read... [18:29:43]Read from MH i2c: 01 07 00 [18:29:43]MH_I2C_Read... [18:29:43]*** Stop cut motor [18:29:43]*** Cut end [18:29:43]Read from MH i2c: 01 07 00 6D 07 00 00 00 00 00 FF 0F 89 [18:29:43]process_action close_receipt done [18:29:43]requested_data is exist [18:29:43]produce_requested_data [18:29:43]requested_item fm.sn is exist - process it [18:29:43]wFMCommunicate request_size=4 [18:29:43]MH_SAM_APDU [18:29:43]CAPDU: 80 11 00 00 [18:29:43]Write to MH i2c: E2 08 00 6E 07 80 11 00 00 00 00 00 00 EF [18:29:43]Write i2c OK [18:29:43]MH_I2C_Read... [18:29:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:43]Read from MH i2c: E2 [18:29:43]MH_I2C_Read... [18:29:43]Read from MH i2c: E2 17 00 [18:29:43]MH_I2C_Read... [18:29:43]Read from MH i2c: E2 17 00 6E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 42 [18:29:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:29:43]wFMCommunicate OK [18:29:43]requested_item fd.num is exist - process it [18:29:43]SAM_PROTO_GetFieldsCounters [18:29:43]wFMCommunicate request_size=4 [18:29:43]MH_SAM_APDU [18:29:43]CAPDU: 80 13 00 00 [18:29:43]Write to MH i2c: E2 08 00 6F 07 80 13 00 00 00 00 00 00 F2 [18:29:43]Write i2c OK [18:29:43]MH_I2C_Read... [18:29:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:43]Read from MH i2c: E2 [18:29:43]MH_I2C_Read... [18:29:43]Read from MH i2c: E2 62 00 [18:29:43]MH_I2C_Read... [18:29:43]Read from MH i2c: E2 62 00 6F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E0 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 62 [18:29:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E0 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:43]wFMCommunicate OK [18:29:43]SAM_PROTO_GetFieldsCounters done [18:29:43]requested_item shift.num is exist - process it [18:29:43]requested_item shift.opened is exist - process it [18:29:43]req_shift_opened [18:29:43]FM_GetShiftState [18:29:43]SAM_PROTO_GetShiftState [18:29:43]wFMCommunicate request_size=4 [18:29:43]MH_SAM_APDU [18:29:43]CAPDU: 80 13 01 00 [18:29:43]Write to MH i2c: E2 08 00 70 07 80 13 01 00 00 00 00 00 F4 [18:29:43]Write i2c OK [18:29:43]MH_I2C_Read... [18:29:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:43]Read from MH i2c: E2 [18:29:43]MH_I2C_Read... [18:29:43]Read from MH i2c: E2 0E 00 [18:29:43]MH_I2C_Read... [18:29:43]Read from MH i2c: E2 0E 00 70 07 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 44 [18:29:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:29:43]wFMCommunicate OK [18:29:43]SAM_PROTO_GetShiftState done [18:29:43]FM_GetShiftState done [18:29:43]req_shift_opened done [18:29:43]requested_item shift.open_date is exist - process it [18:29:43]req_shift_open_date [18:29:43]req_shift_open_date done [18:29:43]produce_requested_data done [18:29:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192736,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:29:43]process_action_free close_receipt [18:29:43]json_value_free [18:29:43]json_value_free done [18:29:43]process_json_proto returns [18:29:43]Send response to host [18:29:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192736,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:29:43]free response buf [18:29:43]execute_script done [18:29:43]execute_script returns [18:29:43]free content buf [18:29:43]Sock 8.Close socket [18:29:43]Sock 8.Thread stoped [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:42]accept exits with 9 [18:30:42]New connection [18:30:42]New thread 3066658148 created [18:30:42]Thread 3066801508 joined [18:30:42]Waiting for new connection... [18:30:42] Sock 9.Parse request [18:30:42]Sock 9.Check first char [18:30:42]Sock 9.First char is OK [18:30:42]request: POST /json_proto HTTP/1.0 [18:30:42]Method: POST [18:30:42]URL: /json_proto [18:30:42]Method is POST - this is cgi request [18:30:42]url: /json_proto [18:30:42]query_string will be loaded in cgi processing [18:30:42]execute_cgi json_proto POST (null) [18:30:42]execute_cgi path=json_proto method=POST [18:30:42]POST find Content-Length [18:30:42]Host: 172.17.63.131:8080 [18:30:42]Content-Length: 676 [18:30:42]Content-Type: application/json [18:30:42] [18:30:42]POST finish read [18:30:42]Found Content-Length = 676 [18:30:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:42]execute_script... [18:30: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)32064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:42]POST & json_proto [18:30:42]process_json_proto [18:30:42]json parsed OK: [18:30:42]protocol is kg_v1.0 [18:30:42]action value=close_receipt [18:30:42]process_action close_receipt [18:30:42]cmd_close_receipt [18:30:42]MH_GetDate [18:30:42]Write to MH i2c: F0 00 00 71 07 67 [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: F0 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: F0 09 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: F0 09 00 71 07 00 53 D8 1F 67 22 05 6E 64 1A [18:30:42]GetLastDocTimeStamp 1730140179 [18:30:42]current date 1730140243 [18:30:42]FM_GetShiftState [18:30:42]SAM_PROTO_GetShiftState [18:30:42]wFMCommunicate request_size=4 [18:30:42]MH_SAM_APDU [18:30:42]CAPDU: 80 13 01 00 [18:30:42]Write to MH i2c: E2 08 00 72 07 80 13 01 00 00 00 00 00 F6 [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:43]Read from MH i2c: E2 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 0E 00 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 0E 00 72 07 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 46 [18:30:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:30:43]wFMCommunicate OK [18:30:43]SAM_PROTO_GetShiftState done [18:30:43]FM_GetShiftState done [18:30:43]opened in 1730075620 [18:30:43]opened+sec_in_day 1730162020 [18:30:43]quantity*price = 20003 [18:30:43]sum+1 = 20004 [18:30:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 285 28.10.2024 18:30 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192737 ФПД: 149847484896695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183043&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192737&fm=149847484896695&tin=02508201610067®Number=0000000000091776&sum=20000 [18:30:44]StoreToDocumentArchive [18:30:44]shift 543 fd 192737 [18:30:44]save to /storage/0543/doc_00192737 [18:30:44]save last doc name /storage/0543/doc_00192737 to /storage/kkm_last_doc_name [18:30:44]save OK [18:30:44]Clear old archive folders... [18:30:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:30:44]tlvbuf is 00FB7110 [18:30:44]SAM_PROTO_ClearQueue [18:30:44]wFMCommunicate request_size=4 [18:30:44]MH_SAM_APDU [18:30:44]CAPDU: 80 09 00 00 [18:30:44]Write to MH i2c: E2 08 00 7F 07 80 09 00 00 00 00 00 00 F8 [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:44]Read from MH i2c: E2 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 7F 07 00 90 00 FA [18:30:44]RAPDU: 90 00 [18:30:44]wFMCommunicate OK [18:30:44]SAM_PROTO_ClearQueue done [18:30:44]KKMCreateOFDPacket [18:30:44]OFDProtocolAddRootSTLVToBuf [18:30:44]FM_MakeSignedData [18:30:44]FM_MakeSignedData [18:30:44]SAM_PROTO_SignData [18:30:44]wFMCommunicate request_size=4 [18:30:44]MH_SAM_APDU [18:30:44]CAPDU: 80 0D 01 02 [18:30:44]Write to MH i2c: E2 08 00 80 07 80 0D 01 02 00 00 00 00 00 [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:44]Read from MH i2c: E2 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 80 07 00 90 00 FB [18:30:44]RAPDU: 90 00 [18:30:44]wFMCommunicate OK [18:30:44]wFMCommunicate request_size=255 [18:30:44]MH_SAM_APDU [18:30:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 53 D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 F0 02 00 35 04 06 00 88 [18:30:44]Write to MH i2c: E2 02 01 81 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 53 D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 F0 02 00 35 04 06 00 88 00 00 A1 [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:44]Read from MH i2c: E2 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 81 07 00 90 00 FC [18:30:44]RAPDU: 90 00 [18:30:44]wFMCommunicate OK [18:30:44]wFMCommunicate request_size=10 [18:30:44]MH_SAM_APDU [18:30:44]CAPDU: 80 0D 02 02 05 49 16 1B 95 B7 [18:30:44]Write to MH i2c: E2 0D 00 82 07 80 0D 02 02 05 00 49 16 1B 95 B7 00 00 D3 [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:44]Read from MH i2c: E2 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 03 00 82 07 00 90 00 FD [18:30:44]RAPDU: 90 00 [18:30:44]wFMCommunicate OK [18:30:44]wFMCommunicate request_size=4 [18:30:44]MH_SAM_APDU [18:30:44]CAPDU: 80 0D 03 02 [18:30:44]Write to MH i2c: E2 08 00 83 07 80 0D 03 02 00 00 00 00 05 [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:44]Read from MH i2c: E2 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 0B 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 0B 00 83 07 00 B8 8E 92 82 F0 B4 36 A3 90 00 DD [18:30:44]RAPDU: B8 8E 92 82 F0 B4 36 A3 90 00 [18:30:44]wFMCommunicate OK [18:30:44]SAM_PROTO_SignData done [18:30:44]FM_MakeSignedData done [18:30:44]CreateOFDProtocolMessage [18:30:44]wFMCommunicate request_size=4 [18:30:44]MH_SAM_APDU [18:30:44]CAPDU: 80 11 00 00 [18:30:44]Write to MH i2c: E2 08 00 84 07 80 11 00 00 00 00 00 00 05 [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:44]Read from MH i2c: E2 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 17 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: E2 17 00 84 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 58 [18:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:30:44]wFMCommunicate OK [18:30:44]CreateOFDProtocolMessage done [18:30:44]OFDSenderStorePacket 192737 [18:30:44]StoreOFDPacket docnum=192737 [18:30:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D0 39 07 01 DE 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 53 D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 F0 02 00 35 04 06 00 88 49 16 1B 95 B7 B8 8E 92 82 F0 B4 36 A3 [18:30:44]CheckFolder [18:30:44]dirname=/storage/ofd_packets [18:30:44]CheckFolder done [18:30:44]ProducePacketName [18:30:44]name=ofd_packets/00192737 [18:30:44]NVStorageSaveData ofd_packets/00192737 [18:30:44]File name is /storage/ofd_packets/00192737 [18:30:44]Write 301 bytes [18:30:44]NVStorageSaveData done [18:30:44]OFDSenderStorePacket done [18:30:44]KKMCreateOFDPacket done [18:30:44]NVStorageSaveData kkm_last_timestamp [18:30:44]File name is /storage/kkm_last_timestamp [18:30:44]Write 4 bytes [18:30:44]NVStorageSaveData done [18:30:44]ExternCall_PrintAddStr [18:30:44]wPrintStart [18:30:44]Write to MH i2c: 01 00 00 85 07 8C [18:30:44]Write i2c OK [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: 01 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: 01 07 00 [18:30:44]MH_I2C_Read... [18:30:44]Read from MH i2c: 01 07 00 85 07 00 00 00 00 00 FF 0F A1 [18:30:44]RasterBufferAndPrint [18:30:44]line Счет N : (1)32064 [18:30:44]line ИНН: 02508201610067 [18:30:44]line Контрольно-Кассовый Чек [18:30:44]line ПРОДАЖА [18:30:44]line ТРК (МРК, ГНК) : 12 [18:30:44]line Товар: 2710124130 [18:30:44]line Аи-92-К-5 [18:30:44]line 2.990 * 66.90 [18:30:44]line = 200.03 [18:30:44]line НДС 12% НСП 1% [18:30:44]line > о реализуемом товаре [18:30:44]line ОКРУГЛЕНИЕ: -0.03 [18:30:44]line ИТОГО: 200.00 [18:30:44]line Внесено: 200.00 [18:30:44]line СДАЧА: 0.00 [18:30:44]line НСП 1% : 1.77 [18:30:44]line НДС 12% : 21.24 [18:30:44]line Наличными: 200.00 [18:30:44]line Безнал.: 0.00 [18:30:44]line Место: АЗС № 170 "Партнер Нефть" [18:30:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:30:44]line СНО: Общий режим [18:30:44]line Чек 285 28.10.2024 18:30 [18:30:44]line Смена: 543 ФФД: 1.0 [18:30:44]line ЗНМ: 0300000110 [18:30:44]line РНМ: 0000000000091776 [18:30:44]line Версия ККМ: 001 [18:30:44]line ФМ: 0000000000871754 [18:30:44]line ФД: 192737 [18:30:44]line ФПД: 149847484896695 [18:30:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183043&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192737&fm=149847484896695&tin=02508201610067®Number=0000000000091776&sum=20000 [18:30:45]OFD Sender: Processing packet 192737 [packets to send 75, broken 74] [18:30:45]ProducePacketName [18:30:45]name=ofd_packets/00192737 [18:30:45]OFD Sender: To server: pG, [18:30:45]CommunicateWithHost lk.salyk.kg:30040 [18:30:45]ConnectInit lk.salyk.kg [18:30:45]written 0, free lines is 4095 [18:30:45]Connected sock=10 [18:30:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D0 39 07 01 DE 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 53 D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 F0 02 00 35 04 06 00 88 49 16 1B 95 B7 B8 8E 92 82 F0 B4 36 A3 [18:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 03 CD 47 00 5F 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 31 37 35 34 10 04 04 00 E1 F0 02 00 F4 03 04 00 16 7D 1F 67 B6 04 01 00 00 46 B5 B2 FB F3 DB 85 E6 [18:30:45]CommunicateWithHost err = 0 [18:30:45]CheckOFDResponse [18:30:45]1017 (14) - 77093643461234 [18:30:45]1041 (16) - 0000000000871754 [18:30:45]1040 (4) - 192737 [18:30:45]1012 (4) - 28.10.2024 12:01 [18:30:45]1206 (1) - 0 [18:30:45]OFD Sender: Remove packet 192737 [18:30:45]ProducePacketName [18:30:45]name=ofd_packets/00192737 [18:30:45]NVStorageDeleteData [18:30:45]Write to MH i2c: 01 00 00 B0 07 B7 [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: 01 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: 01 07 00 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: 01 07 00 B0 07 00 00 00 00 00 C1 0C 8B [18:30:45]RasterBufferAndPrint [18:30:45]line [18:30:45]line [18:30:45]line [18:30:45]line [18:30:45]line [18:30:45]written 0, free lines is 3272 [18:30:45]MH_Cut [18:30:45]Write to MH i2c: D1 01 00 B7 07 01 90 [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: D1 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: D1 01 00 [18:30:45]MH_I2C_Read... [18:30:45]Read from MH i2c: D1 01 00 B7 07 00 8F [18:30:45]Write to MH i2c: 01 00 00 B8 07 BF [18:30:45]Write i2c OK [18:30:45]MH_I2C_Read... [18:30:45]OFD Sender: No OFD packet to send [18:30:46]*** Cut start [18:30:46]*** Partial cut [18:30:46]*** CUTSNS_PIN = 1 [18:30:46]*** CUTSNS_PIN = 0 [18:30:46]*** Brake cut motor [18:30:46]Read from MH i2c: 01 [18:30:46]MH_I2C_Read... [18:30:46]Read from MH i2c: 01 07 00 [18:30:46]MH_I2C_Read... [18:30:46]*** Stop cut motor [18:30:46]Read from MH i2c: 01 07 00 B8 07 00 00 00 00 00 FF 0F D4 [18:30:46]process_action close_receipt done [18:30:46]requested_data is exist [18:30:46]produce_requested_data [18:30:46]requested_item fm.sn is exist - process it [18:30:46]wFMCommunicate request_size=4 [18:30:46]MH_SAM_APDU [18:30:46]CAPDU: 80 11 00 00 [18:30:46]Write to MH i2c: E2 08 00 B9 07 80 11 00 00 00 00 00 00 3A [18:30:46]*** Cut end [18:30:46]Write i2c OK [18:30:46]MH_I2C_Read... [18:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:46]Read from MH i2c: E2 [18:30:46]MH_I2C_Read... [18:30:46]Read from MH i2c: E2 17 00 [18:30:46]MH_I2C_Read... [18:30:46]Read from MH i2c: E2 17 00 B9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8D [18:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:30:46]wFMCommunicate OK [18:30:46]requested_item fd.num is exist - process it [18:30:46]SAM_PROTO_GetFieldsCounters [18:30:46]wFMCommunicate request_size=4 [18:30:46]MH_SAM_APDU [18:30:46]CAPDU: 80 13 00 00 [18:30:46]Write to MH i2c: E2 08 00 BA 07 80 13 00 00 00 00 00 00 3D [18:30:46]Write i2c OK [18:30:46]MH_I2C_Read... [18:30:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:47]Read from MH i2c: E2 [18:30:47]MH_I2C_Read... [18:30:47]Read from MH i2c: E2 62 00 [18:30:47]MH_I2C_Read... [18:30:47]Read from MH i2c: E2 62 00 BA 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E1 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [18:30:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E1 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:47]wFMCommunicate OK [18:30:47]SAM_PROTO_GetFieldsCounters done [18:30:47]requested_item shift.num is exist - process it [18:30:47]requested_item shift.opened is exist - process it [18:30:47]req_shift_opened [18:30:47]FM_GetShiftState [18:30:47]SAM_PROTO_GetShiftState [18:30:47]wFMCommunicate request_size=4 [18:30:47]MH_SAM_APDU [18:30:47]CAPDU: 80 13 01 00 [18:30:47]Write to MH i2c: E2 08 00 BB 07 80 13 01 00 00 00 00 00 3F [18:30:47]Write i2c OK [18:30:47]MH_I2C_Read... [18:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:47]Read from MH i2c: E2 [18:30:47]MH_I2C_Read... [18:30:47]Read from MH i2c: E2 0E 00 [18:30:47]MH_I2C_Read... [18:30:47]Read from MH i2c: E2 0E 00 BB 07 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 8F [18:30:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:30:47]wFMCommunicate OK [18:30:47]SAM_PROTO_GetShiftState done [18:30:47]FM_GetShiftState done [18:30:47]req_shift_opened done [18:30:47]requested_item shift.open_date is exist - process it [18:30:47]req_shift_open_date [18:30:47]req_shift_open_date done [18:30:47]produce_requested_data done [18:30:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192737,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:30:47]process_action_free close_receipt [18:30:47]json_value_free [18:30:47]json_value_free done [18:30:47]process_json_proto returns [18:30:47]Send response to host [18:30:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192737,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:30:47]free response buf [18:30:47]execute_script done [18:30:47]execute_script returns [18:30:47]free content buf [18:30:47]Sock 9.Close socket [18:30:47]Sock 9.Thread stoped [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]accept exits with 8 [18:31:30]New connection [18:31:30]New thread 3066801508 created [18:31:30]Thread 3066658148 joined [18:31:30]Waiting for new connection... [18:31:30] Sock 8.Parse request [18:31:30]Sock 8.Check first char [18:31:30]Sock 8.First char is OK [18:31:30]request: POST /json_proto HTTP/1.0 [18:31:30]Method: POST [18:31:30]URL: /json_proto [18:31:30]Method is POST - this is cgi request [18:31:30]url: /json_proto [18:31:30]query_string will be loaded in cgi processing [18:31:30]execute_cgi json_proto POST (null) [18:31:30]execute_cgi path=json_proto method=POST [18:31:30]POST find Content-Length [18:31:30]Host: 172.17.63.131:8080 [18:31:30]Content-Length: 676 [18:31:30]Content-Type: application/json [18:31:30] [18:31:30]POST finish read [18:31:30]Found Content-Length = 676 [18:31:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:30]execute_script... [18:31: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)32065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:30]POST & json_proto [18:31:30]process_json_proto [18:31:30]json parsed OK: [18:31:30]protocol is kg_v1.0 [18:31:30]action value=close_receipt [18:31:30]process_action close_receipt [18:31:30]cmd_close_receipt [18:31:30]MH_GetDate [18:31:30]Write to MH i2c: F0 00 00 BC 07 B2 [18:31:30]Write i2c OK [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: F0 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: F0 09 00 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: F0 09 00 BC 07 00 83 D8 1F 67 22 05 6E 64 95 [18:31:30]GetLastDocTimeStamp 1730140243 [18:31:30]current date 1730140291 [18:31:30]FM_GetShiftState [18:31:30]SAM_PROTO_GetShiftState [18:31:30]wFMCommunicate request_size=4 [18:31:30]MH_SAM_APDU [18:31:30]CAPDU: 80 13 01 00 [18:31:30]Write to MH i2c: E2 08 00 BD 07 80 13 01 00 00 00 00 00 41 [18:31:30]Write i2c OK [18:31:30]MH_I2C_Read... [18:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:30]Read from MH i2c: E2 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: E2 0E 00 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: E2 0E 00 BD 07 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 91 [18:31:30]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:31:30]wFMCommunicate OK [18:31:30]SAM_PROTO_GetShiftState done [18:31:30]FM_GetShiftState done [18:31:30]opened in 1730075620 [18:31:30]opened+sec_in_day 1730162020 [18:31:30]quantity*price = 32045 [18:31:30]sum+1 = 32046 [18:31:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 286 28.10.2024 18:31 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192738 ФПД: 13205780412641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183131&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192738&fm=13205780412641&tin=02508201610067®Number=0000000000091776&sum=32000 [18:31:31]StoreToDocumentArchive [18:31:31]shift 543 fd 192738 [18:31:31]save to /storage/0543/doc_00192738 [18:31:31]save last doc name /storage/0543/doc_00192738 to /storage/kkm_last_doc_name [18:31:31]save OK [18:31:31]Clear old archive folders... [18:31:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:32]tlvbuf is 00FB14A0 [18:31:32]SAM_PROTO_ClearQueue [18:31:32]wFMCommunicate request_size=4 [18:31:32]MH_SAM_APDU [18:31:32]CAPDU: 80 09 00 00 [18:31:32]Write to MH i2c: E2 08 00 CA 07 80 09 00 00 00 00 00 00 43 [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:32]Read from MH i2c: E2 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 03 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 03 00 CA 07 00 90 00 45 [18:31:32]RAPDU: 90 00 [18:31:32]wFMCommunicate OK [18:31:32]SAM_PROTO_ClearQueue done [18:31:32]KKMCreateOFDPacket [18:31:32]OFDProtocolAddRootSTLVToBuf [18:31:32]FM_MakeSignedData [18:31:32]FM_MakeSignedData [18:31:32]SAM_PROTO_SignData [18:31:32]wFMCommunicate request_size=4 [18:31:32]MH_SAM_APDU [18:31:32]CAPDU: 80 0D 01 02 [18:31:32]Write to MH i2c: E2 08 00 CB 07 80 0D 01 02 00 00 00 00 4B [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:32]Read from MH i2c: E2 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 03 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 03 00 CB 07 00 90 00 46 [18:31:32]RAPDU: 90 00 [18:31:32]wFMCommunicate OK [18:31:32]wFMCommunicate request_size=255 [18:31:32]MH_SAM_APDU [18:31: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 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 83 D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 F0 02 00 35 04 06 00 0C [18:31:32]Write to MH i2c: E2 02 01 CC 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 83 D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 F0 02 00 35 04 06 00 0C 00 00 78 [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:32]Read from MH i2c: E2 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 03 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 03 00 CC 07 00 90 00 47 [18:31:32]RAPDU: 90 00 [18:31:32]wFMCommunicate OK [18:31:32]wFMCommunicate request_size=10 [18:31:32]MH_SAM_APDU [18:31:32]CAPDU: 80 0D 02 02 05 02 B5 D9 B8 E1 [18:31:32]Write to MH i2c: E2 0D 00 CD 07 80 0D 02 02 05 00 02 B5 D9 B8 E1 00 00 81 [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:32]Read from MH i2c: E2 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 03 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 03 00 CD 07 00 90 00 48 [18:31:32]RAPDU: 90 00 [18:31:32]wFMCommunicate OK [18:31:32]wFMCommunicate request_size=4 [18:31:32]MH_SAM_APDU [18:31:32]CAPDU: 80 0D 03 02 [18:31:32]Write to MH i2c: E2 08 00 CE 07 80 0D 03 02 00 00 00 00 50 [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:32]Read from MH i2c: E2 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 0B 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 0B 00 CE 07 00 28 81 69 BC 6F 3C A7 93 90 00 04 [18:31:32]RAPDU: 28 81 69 BC 6F 3C A7 93 90 00 [18:31:32]wFMCommunicate OK [18:31:32]SAM_PROTO_SignData done [18:31:32]FM_MakeSignedData done [18:31:32]CreateOFDProtocolMessage [18:31:32]wFMCommunicate request_size=4 [18:31:32]MH_SAM_APDU [18:31:32]CAPDU: 80 11 00 00 [18:31:32]Write to MH i2c: E2 08 00 CF 07 80 11 00 00 00 00 00 00 50 [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:32]Read from MH i2c: E2 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 17 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 17 00 CF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A3 [18:31:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:31:32]wFMCommunicate OK [18:31:32]CreateOFDProtocolMessage done [18:31:32]OFDSenderStorePacket 192738 [18:31:32]StoreOFDPacket docnum=192738 [18:31:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0E 5F 07 01 F5 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 83 D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 F0 02 00 35 04 06 00 0C 02 B5 D9 B8 E1 28 81 69 BC 6F 3C A7 93 [18:31:32]CheckFolder [18:31:32]dirname=/storage/ofd_packets [18:31:32]CheckFolder done [18:31:32]ProducePacketName [18:31:32]name=ofd_packets/00192738 [18:31:32]NVStorageSaveData ofd_packets/00192738 [18:31:32]File name is /storage/ofd_packets/00192738 [18:31:32]Write 301 bytes [18:31:32]NVStorageSaveData done [18:31:32]OFDSenderStorePacket done [18:31:32]KKMCreateOFDPacket done [18:31:32]NVStorageSaveData kkm_last_timestamp [18:31:32]File name is /storage/kkm_last_timestamp [18:31:32]Write 4 bytes [18:31:32]NVStorageSaveData done [18:31:32]ExternCall_PrintAddStr [18:31:32]wPrintStart [18:31:32]Write to MH i2c: 01 00 00 D0 07 D7 [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: 01 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: 01 07 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: 01 07 00 D0 07 00 00 00 00 00 FF 0F EC [18:31:32]RasterBufferAndPrint [18:31:32]line Счет N : (1)32065 [18:31:32]line ИНН: 02508201610067 [18:31:32]line Контрольно-Кассовый Чек [18:31:32]line ПРОДАЖА [18:31:32]line ТРК (МРК, ГНК) : 21 [18:31:32]line Товар: 2710124130 [18:31:32]line Аи-92-К-5 [18:31:32]line 4.790 * 66.90 [18:31:32]line = 320.45 [18:31:32]line НДС 12% НСП 1% [18:31:32]line > о реализуемом товаре [18:31:32]line ОКРУГЛЕНИЕ: -0.45 [18:31:32]line ИТОГО: 320.00 [18:31:32]line Внесено: 320.00 [18:31:32]line СДАЧА: 0.00 [18:31:32]line НСП 1% : 2.84 [18:31:32]line НДС 12% : 34.03 [18:31:32]line Наличными: 320.00 [18:31:32]line Безнал.: 0.00 [18:31:32]line Место: АЗС № 170 "Партнер Нефть" [18:31:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:31:32]line СНО: Общий режим [18:31:32]line Чек 286 28.10.2024 18:31 [18:31:32]line Смена: 543 ФФД: 1.0 [18:31:32]line ЗНМ: 0300000110 [18:31:32]line РНМ: 0000000000091776 [18:31:32]line Версия ККМ: 001 [18:31:32]line ФМ: 0000000000871754 [18:31:32]line ФД: 192738 [18:31:32]line ФПД: 13205780412641 [18:31:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183131&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192738&fm=13205780412641&tin=02508201610067®Number=0000000000091776&sum=32000 [18:31:32]OFD Sender: Processing packet 192738 [packets to send 75, broken 74] [18:31:32]ProducePacketName [18:31:32]name=ofd_packets/00192738 [18:31:32]OFD Sender: To server: pG, [18:31:32]CommunicateWithHost lk.salyk.kg:30040 [18:31:32]ConnectInit lk.salyk.kg [18:31:32]written 0, free lines is 4095 [18:31:32]Connected sock=10 [18:31:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0E 5F 07 01 F5 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 83 D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 F0 02 00 35 04 06 00 0C 02 B5 D9 B8 E1 28 81 69 BC 6F 3C A7 93 [18:31:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E4 0B 47 00 DD 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 F0 02 00 F4 03 04 00 46 7D 1F 67 B6 04 01 00 00 AD FD 3B 89 C6 BE F6 5B [18:31:33]CommunicateWithHost err = 0 [18:31:33]CheckOFDResponse [18:31:33]1017 (14) - 77093643461234 [18:31:33]1041 (16) - 0000000000871754 [18:31:33]1040 (4) - 192738 [18:31:33]1012 (4) - 28.10.2024 12:02 [18:31:33]1206 (1) - 0 [18:31:33]OFD Sender: Remove packet 192738 [18:31:33]ProducePacketName [18:31:33]name=ofd_packets/00192738 [18:31:33]NVStorageDeleteData [18:31:33]Write to MH i2c: 01 00 00 FB 07 02 [18:31:33]Write i2c OK [18:31:33]MH_I2C_Read... [18:31:33]Read from MH i2c: 01 [18:31:33]MH_I2C_Read... [18:31:33]Read from MH i2c: 01 07 00 [18:31:33]MH_I2C_Read... [18:31:33]Read from MH i2c: 01 07 00 FB 07 00 00 00 00 00 D1 0C E6 [18:31:33]RasterBufferAndPrint [18:31:33]line [18:31:33]line [18:31:33]line [18:31:33]line [18:31:33]line [18:31:33]written 0, free lines is 3289 [18:31:33]MH_Cut [18:31:33]Write to MH i2c: D1 01 00 02 08 01 DC [18:31:33]Write i2c OK [18:31:33]MH_I2C_Read... [18:31:33]Read from MH i2c: D1 [18:31:33]MH_I2C_Read... [18:31:33]Read from MH i2c: D1 01 00 [18:31:33]MH_I2C_Read... [18:31:33]Read from MH i2c: D1 01 00 02 08 00 DB [18:31:33]Write to MH i2c: 01 00 00 03 08 0B [18:31:33]Write i2c OK [18:31:33]MH_I2C_Read... [18:31:33]OFD Sender: No OFD packet to send [18:31:34]*** Cut start [18:31:34]*** Partial cut [18:31:34]*** CUTSNS_PIN = 1 [18:31:34]*** CUTSNS_PIN = 0 [18:31:34]*** Brake cut motor [18:31:34]Read from MH i2c: 01 [18:31:34]MH_I2C_Read... [18:31:34]*** Stop cut motor [18:31:34]*** Cut end [18:31:34]Read from MH i2c: 01 07 00 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: 01 07 00 03 08 00 00 00 00 00 FF 0F 20 [18:31:34]process_action close_receipt done [18:31:34]requested_data is exist [18:31:34]produce_requested_data [18:31:34]requested_item fm.sn is exist - process it [18:31:34]wFMCommunicate request_size=4 [18:31:34]MH_SAM_APDU [18:31:34]CAPDU: 80 11 00 00 [18:31:34]Write to MH i2c: E2 08 00 04 08 80 11 00 00 00 00 00 00 86 [18:31:34]Write i2c OK [18:31:34]MH_I2C_Read... [18:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:34]Read from MH i2c: E2 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 17 00 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 17 00 04 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [18:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:31:34]wFMCommunicate OK [18:31:34]requested_item fd.num is exist - process it [18:31:34]SAM_PROTO_GetFieldsCounters [18:31:34]wFMCommunicate request_size=4 [18:31:34]MH_SAM_APDU [18:31:34]CAPDU: 80 13 00 00 [18:31:34]Write to MH i2c: E2 08 00 05 08 80 13 00 00 00 00 00 00 89 [18:31:34]Write i2c OK [18:31:34]MH_I2C_Read... [18:31:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:34]Read from MH i2c: E2 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 62 00 [18:31:34]MH_I2C_Read... [18:31:34]Read from MH i2c: E2 62 00 05 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E2 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [18:31:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E2 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:34]wFMCommunicate OK [18:31:34]SAM_PROTO_GetFieldsCounters done [18:31:34]requested_item shift.num is exist - process it [18:31:34]requested_item shift.opened is exist - process it [18:31:34]req_shift_opened [18:31:35]FM_GetShiftState [18:31:35]SAM_PROTO_GetShiftState [18:31:35]wFMCommunicate request_size=4 [18:31:35]MH_SAM_APDU [18:31:35]CAPDU: 80 13 01 00 [18:31:35]Write to MH i2c: E2 08 00 06 08 80 13 01 00 00 00 00 00 8B [18:31:35]Write i2c OK [18:31:35]MH_I2C_Read... [18:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:35]Read from MH i2c: E2 [18:31:35]MH_I2C_Read... [18:31:35]Read from MH i2c: E2 0E 00 [18:31:35]MH_I2C_Read... [18:31:35]Read from MH i2c: E2 0E 00 06 08 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DB [18:31:35]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:31:35]wFMCommunicate OK [18:31:35]SAM_PROTO_GetShiftState done [18:31:35]FM_GetShiftState done [18:31:35]req_shift_opened done [18:31:35]requested_item shift.open_date is exist - process it [18:31:35]req_shift_open_date [18:31:35]req_shift_open_date done [18:31:35]produce_requested_data done [18:31:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192738,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:31:35]process_action_free close_receipt [18:31:35]json_value_free [18:31:35]json_value_free done [18:31:35]process_json_proto returns [18:31:35]Send response to host [18:31:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192738,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:31:35]free response buf [18:31:35]execute_script done [18:31:35]execute_script returns [18:31:35]free content buf [18:31:35]Sock 8.Close socket [18:31:35]Sock 8.Thread stoped [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:57]accept exits with 9 [18:31:57]New connection [18:31:57]New thread 3066658148 created [18:31:57]Thread 3066801508 joined [18:31:57]Waiting for new connection... [18:31:57] Sock 9.Parse request [18:31:57]Sock 9.Check first char [18:31:57]Sock 9.First char is OK [18:31:57]request: POST /json_proto HTTP/1.0 [18:31:57]Method: POST [18:31:57]URL: /json_proto [18:31:57]Method is POST - this is cgi request [18:31:57]url: /json_proto [18:31:57]query_string will be loaded in cgi processing [18:31:57]execute_cgi json_proto POST (null) [18:31:57]execute_cgi path=json_proto method=POST [18:31:57]POST find Content-Length [18:31:57]Host: 172.17.63.131:8080 [18:31:57]Content-Length: 676 [18:31:57]Content-Type: application/json [18:31:57] [18:31:57]POST finish read [18:31:57]Found Content-Length = 676 [18:31:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:57]execute_script... [18:31:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:57]POST & json_proto [18:31:57]process_json_proto [18:31:57]json parsed OK: [18:31:57]protocol is kg_v1.0 [18:31:57]action value=close_receipt [18:31:57]process_action close_receipt [18:31:57]cmd_close_receipt [18:31:57]MH_GetDate [18:31:57]Write to MH i2c: F0 00 00 07 08 FE [18:31:57]Write i2c OK [18:31:57]MH_I2C_Read... [18:31:57]Read from MH i2c: F0 [18:31:57]MH_I2C_Read... [18:31:57]Read from MH i2c: F0 09 00 [18:31:57]MH_I2C_Read... [18:31:57]Read from MH i2c: F0 09 00 07 08 00 9D D8 1F 67 22 05 6E 64 FB [18:31:57]GetLastDocTimeStamp 1730140291 [18:31:57]current date 1730140317 [18:31:57]FM_GetShiftState [18:31:57]SAM_PROTO_GetShiftState [18:31:57]wFMCommunicate request_size=4 [18:31:57]MH_SAM_APDU [18:31:57]CAPDU: 80 13 01 00 [18:31:57]Write to MH i2c: E2 08 00 08 08 80 13 01 00 00 00 00 00 8D [18:31:57]Write i2c OK [18:31:57]MH_I2C_Read... [18:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:57]Read from MH i2c: E2 [18:31:57]MH_I2C_Read... [18:31:57]Read from MH i2c: E2 0E 00 [18:31:57]MH_I2C_Read... [18:31:57]Read from MH i2c: E2 0E 00 08 08 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DD [18:31:57]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:31:57]wFMCommunicate OK [18:31:57]SAM_PROTO_GetShiftState done [18:31:57]FM_GetShiftState done [18:31:57]opened in 1730075620 [18:31:57]opened+sec_in_day 1730162020 [18:31:57]quantity*price = 30038 [18:31:57]sum+1 = 30039 [18:31:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 287 28.10.2024 18:31 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192739 ФПД: 97462783872871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192739&fm=97462783872871&tin=02508201610067®Number=0000000000091776&sum=30000 [18:31:58]StoreToDocumentArchive [18:31:58]shift 543 fd 192739 [18:31:58]save to /storage/0543/doc_00192739 [18:31:58]save last doc name /storage/0543/doc_00192739 to /storage/kkm_last_doc_name [18:31:58]save OK [18:31:58]Clear old archive folders... [18:31:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:58]tlvbuf is 00FBD3A0 [18:31:58]SAM_PROTO_ClearQueue [18:31:58]wFMCommunicate request_size=4 [18:31:58]MH_SAM_APDU [18:31:58]CAPDU: 80 09 00 00 [18:31:58]Write to MH i2c: E2 08 00 15 08 80 09 00 00 00 00 00 00 8F [18:31:58]Write i2c OK [18:31:58]MH_I2C_Read... [18:31:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:58]Read from MH i2c: E2 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 03 00 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 03 00 15 08 00 90 00 91 [18:31:58]RAPDU: 90 00 [18:31:58]wFMCommunicate OK [18:31:58]SAM_PROTO_ClearQueue done [18:31:58]KKMCreateOFDPacket [18:31:58]OFDProtocolAddRootSTLVToBuf [18:31:58]FM_MakeSignedData [18:31:58]FM_MakeSignedData [18:31:58]SAM_PROTO_SignData [18:31:58]wFMCommunicate request_size=4 [18:31:58]MH_SAM_APDU [18:31:58]CAPDU: 80 0D 01 02 [18:31:58]Write to MH i2c: E2 08 00 16 08 80 0D 01 02 00 00 00 00 97 [18:31:58]Write i2c OK [18:31:58]MH_I2C_Read... [18:31:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:58]Read from MH i2c: E2 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 03 00 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 03 00 16 08 00 90 00 92 [18:31:58]RAPDU: 90 00 [18:31:58]wFMCommunicate OK [18:31:58]wFMCommunicate request_size=255 [18:31:58]MH_SAM_APDU [18:31:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 9D D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 F0 02 00 35 04 06 00 58 [18:31:58]Write to MH i2c: E2 02 01 17 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 9D D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 F0 02 00 35 04 06 00 58 00 00 88 [18:31:58]Write i2c OK [18:31:58]MH_I2C_Read... [18:31:58]OFD Sender: No OFD packet to send [18:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:58]Read from MH i2c: E2 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 03 00 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 03 00 17 08 00 90 00 93 [18:31:58]RAPDU: 90 00 [18:31:58]wFMCommunicate OK [18:31:58]wFMCommunicate request_size=10 [18:31:58]MH_SAM_APDU [18:31:58]CAPDU: 80 0D 02 02 05 A4 52 9C 8F 67 [18:31:58]Write to MH i2c: E2 0D 00 18 08 80 0D 02 02 05 00 A4 52 9C 8F 67 00 00 2C [18:31:58]Write i2c OK [18:31:58]MH_I2C_Read... [18:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:58]Read from MH i2c: E2 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 03 00 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 03 00 18 08 00 90 00 94 [18:31:58]RAPDU: 90 00 [18:31:58]wFMCommunicate OK [18:31:58]wFMCommunicate request_size=4 [18:31:58]MH_SAM_APDU [18:31:58]CAPDU: 80 0D 03 02 [18:31:58]Write to MH i2c: E2 08 00 19 08 80 0D 03 02 00 00 00 00 9C [18:31:58]Write i2c OK [18:31:58]MH_I2C_Read... [18:31:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:58]Read from MH i2c: E2 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 0B 00 [18:31:58]MH_I2C_Read... [18:31:58]Read from MH i2c: E2 0B 00 19 08 00 87 6B 29 46 52 0F 5E 91 90 00 4E [18:31:58]RAPDU: 87 6B 29 46 52 0F 5E 91 90 00 [18:31:58]wFMCommunicate OK [18:31:58]SAM_PROTO_SignData done [18:31:58]FM_MakeSignedData done [18:31:58]CreateOFDProtocolMessage [18:31:58]wFMCommunicate request_size=4 [18:31:58]MH_SAM_APDU [18:31:58]CAPDU: 80 11 00 00 [18:31:58]Write to MH i2c: E2 08 00 1A 08 80 11 00 00 00 00 00 00 9C [18:31:58]Write i2c OK [18:31:58]MH_I2C_Read... [18:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:59]Read from MH i2c: E2 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: E2 17 00 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: E2 17 00 1A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EF [18:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:31:59]wFMCommunicate OK [18:31:59]CreateOFDProtocolMessage done [18:31:59]OFDSenderStorePacket 192739 [18:31:59]StoreOFDPacket docnum=192739 [18:31:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BE B6 07 01 D3 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 9D D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 F0 02 00 35 04 06 00 58 A4 52 9C 8F 67 87 6B 29 46 52 0F 5E 91 [18:31:59]CheckFolder [18:31:59]dirname=/storage/ofd_packets [18:31:59]CheckFolder done [18:31:59]ProducePacketName [18:31:59]name=ofd_packets/00192739 [18:31:59]NVStorageSaveData ofd_packets/00192739 [18:31:59]File name is /storage/ofd_packets/00192739 [18:31:59]Write 301 bytes [18:31:59]NVStorageSaveData done [18:31:59]OFDSenderStorePacket done [18:31:59]KKMCreateOFDPacket done [18:31:59]NVStorageSaveData kkm_last_timestamp [18:31:59]File name is /storage/kkm_last_timestamp [18:31:59]Write 4 bytes [18:31:59]NVStorageSaveData done [18:31:59]ExternCall_PrintAddStr [18:31:59]wPrintStart [18:31:59]Write to MH i2c: 01 00 00 1B 08 23 [18:31:59]Write i2c OK [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: 01 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: 01 07 00 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: 01 07 00 1B 08 00 00 00 00 00 FF 0F 38 [18:31:59]RasterBufferAndPrint [18:31:59]line Счет N : (1)32066 [18:31:59]line ИНН: 02508201610067 [18:31:59]line Контрольно-Кассовый Чек [18:31:59]line ПРОДАЖА [18:31:59]line ТРК (МРК, ГНК) : 21 [18:31:59]line Товар: 2710124130 [18:31:59]line Аи-92-К-5 [18:31:59]line 4.490 * 66.90 [18:31:59]line = 300.38 [18:31:59]line НДС 12% НСП 1% [18:31:59]line > о реализуемом товаре [18:31:59]line ОКРУГЛЕНИЕ: -0.38 [18:31:59]line ИТОГО: 300.00 [18:31:59]line Внесено: 300.00 [18:31:59]line СДАЧА: 0.00 [18:31:59]line НСП 1% : 2.66 [18:31:59]line НДС 12% : 31.90 [18:31:59]line Наличными: 300.00 [18:31:59]line Безнал.: 0.00 [18:31:59]line Место: АЗС № 170 "Партнер Нефть" [18:31:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:31:59]line СНО: Общий режим [18:31:59]line Чек 287 28.10.2024 18:31 [18:31:59]line Смена: 543 ФФД: 1.0 [18:31:59]line ЗНМ: 0300000110 [18:31:59]line РНМ: 0000000000091776 [18:31:59]line Версия ККМ: 001 [18:31:59]line ФМ: 0000000000871754 [18:31:59]line ФД: 192739 [18:31:59]line ФПД: 97462783872871 [18:31:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192739&fm=97462783872871&tin=02508201610067®Number=0000000000091776&sum=30000 [18:31:59]OFD Sender: Processing packet 192739 [packets to send 75, broken 74] [18:31:59]ProducePacketName [18:31:59]name=ofd_packets/00192739 [18:31:59]OFD Sender: To server: pG, [18:31:59]CommunicateWithHost lk.salyk.kg:30040 [18:31:59]ConnectInit lk.salyk.kg [18:31:59]written 0, free lines is 4095 [18:31:59]Connected sock=10 [18:31:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BE B6 07 01 D3 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 9D D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 F0 02 00 35 04 06 00 58 A4 52 9C 8F 67 87 6B 29 46 52 0F 5E 91 [18:31:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A9 45 47 00 34 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 F0 02 00 F4 03 04 00 61 7D 1F 67 B6 04 01 00 00 1F 90 75 58 AB 10 84 BD [18:31:59]CommunicateWithHost err = 0 [18:31:59]CheckOFDResponse [18:31:59]1017 (14) - 77093643461234 [18:31:59]1041 (16) - 0000000000871754 [18:31:59]1040 (4) - 192739 [18:31:59]1012 (4) - 28.10.2024 12:02 [18:31:59]1206 (1) - 0 [18:31:59]OFD Sender: Remove packet 192739 [18:31:59]ProducePacketName [18:31:59]name=ofd_packets/00192739 [18:31:59]NVStorageDeleteData [18:31:59]Write to MH i2c: 01 00 00 46 08 4E [18:31:59]Write i2c OK [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: 01 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: 01 07 00 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: 01 07 00 46 08 00 00 00 00 00 CC 0C 2D [18:31:59]RasterBufferAndPrint [18:31:59]line [18:31:59]line [18:31:59]line [18:31:59]line [18:31:59]line [18:31:59]written 0, free lines is 3282 [18:31:59]MH_Cut [18:31:59]Write to MH i2c: D1 01 00 4D 08 01 27 [18:31:59]Write i2c OK [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: D1 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: D1 01 00 [18:31:59]MH_I2C_Read... [18:31:59]Read from MH i2c: D1 01 00 4D 08 00 26 [18:31:59]Write to MH i2c: 01 00 00 4E 08 56 [18:31:59]Write i2c OK [18:31:59]MH_I2C_Read... [18:32:00]OFD Sender: No OFD packet to send [18:32:00]*** Cut start [18:32:00]*** Partial cut [18:32:00]*** CUTSNS_PIN = 1 [18:32:00]*** CUTSNS_PIN = 0 [18:32:00]*** Brake cut motor [18:32:01]Read from MH i2c: 01 [18:32:01]MH_I2C_Read... [18:32:01]*** Stop cut motor [18:32:01]*** Cut end [18:32:01]Read from MH i2c: 01 07 00 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: 01 07 00 4E 08 00 00 00 00 00 FF 0F 6B [18:32:01]process_action close_receipt done [18:32:01]requested_data is exist [18:32:01]produce_requested_data [18:32:01]requested_item fm.sn is exist - process it [18:32:01]wFMCommunicate request_size=4 [18:32:01]MH_SAM_APDU [18:32:01]CAPDU: 80 11 00 00 [18:32:01]Write to MH i2c: E2 08 00 4F 08 80 11 00 00 00 00 00 00 D1 [18:32:01]Write i2c OK [18:32:01]MH_I2C_Read... [18:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:01]Read from MH i2c: E2 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: E2 17 00 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: E2 17 00 4F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [18:32:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:32:01]wFMCommunicate OK [18:32:01]requested_item fd.num is exist - process it [18:32:01]SAM_PROTO_GetFieldsCounters [18:32:01]wFMCommunicate request_size=4 [18:32:01]MH_SAM_APDU [18:32:01]CAPDU: 80 13 00 00 [18:32:01]Write to MH i2c: E2 08 00 50 08 80 13 00 00 00 00 00 00 D4 [18:32:01]Write i2c OK [18:32:01]MH_I2C_Read... [18:32:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:01]Read from MH i2c: E2 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: E2 62 00 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: E2 62 00 50 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E3 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [18:32:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E3 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:01]wFMCommunicate OK [18:32:01]SAM_PROTO_GetFieldsCounters done [18:32:01]requested_item shift.num is exist - process it [18:32:01]requested_item shift.opened is exist - process it [18:32:01]req_shift_opened [18:32:01]FM_GetShiftState [18:32:01]SAM_PROTO_GetShiftState [18:32:01]wFMCommunicate request_size=4 [18:32:01]MH_SAM_APDU [18:32:01]CAPDU: 80 13 01 00 [18:32:01]Write to MH i2c: E2 08 00 51 08 80 13 01 00 00 00 00 00 D6 [18:32:01]Write i2c OK [18:32:01]MH_I2C_Read... [18:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:01]Read from MH i2c: E2 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: E2 0E 00 [18:32:01]MH_I2C_Read... [18:32:01]Read from MH i2c: E2 0E 00 51 08 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 26 [18:32:01]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:32:01]wFMCommunicate OK [18:32:01]SAM_PROTO_GetShiftState done [18:32:01]FM_GetShiftState done [18:32:01]req_shift_opened done [18:32:01]requested_item shift.open_date is exist - process it [18:32:01]req_shift_open_date [18:32:01]req_shift_open_date done [18:32:01]produce_requested_data done [18:32:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192739,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:32:01]process_action_free close_receipt [18:32:01]json_value_free [18:32:01]json_value_free done [18:32:01]process_json_proto returns [18:32:01]Send response to host [18:32:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192739,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:32:01]free response buf [18:32:01]execute_script done [18:32:01]execute_script returns [18:32:01]free content buf [18:32:01]Sock 9.Close socket [18:32:01]Sock 9.Thread stoped [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:33:00]OFD Sender: No OFD packet to send [18:33:05]OFD Sender: No OFD packet to send [18:33:10]OFD Sender: No OFD packet to send [18:33:15]OFD Sender: No OFD packet to send [18:33:20]OFD Sender: No OFD packet to send [18:33:25]OFD Sender: No OFD packet to send [18:33:29]accept exits with 8 [18:33:29]New connection [18:33:29]New thread 3066801508 created [18:33:29]Thread 3066658148 joined [18:33:29]Waiting for new connection... [18:33:29] Sock 8.Parse request [18:33:29]Sock 8.Check first char [18:33:29]Sock 8.First char is OK [18:33:29]request: POST /json_proto HTTP/1.0 [18:33:29]Method: POST [18:33:29]URL: /json_proto [18:33:29]Method is POST - this is cgi request [18:33:29]url: /json_proto [18:33:29]query_string will be loaded in cgi processing [18:33:29]execute_cgi json_proto POST (null) [18:33:29]execute_cgi path=json_proto method=POST [18:33:29]POST find Content-Length [18:33:29]Host: 172.17.63.131:8080 [18:33:29]Content-Length: 676 [18:33:29]Content-Type: application/json [18:33:29] [18:33:29]POST finish read [18:33:29]Found Content-Length = 676 [18:33:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:29]execute_script... [18:33: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)32067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:29]POST & json_proto [18:33:29]process_json_proto [18:33:29]json parsed OK: [18:33:29]protocol is kg_v1.0 [18:33:29]action value=close_receipt [18:33:29]process_action close_receipt [18:33:29]cmd_close_receipt [18:33:29]MH_GetDate [18:33:29]Write to MH i2c: F0 00 00 52 08 49 [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: F0 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: F0 09 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: F0 09 00 52 08 00 FA D8 1F 67 22 05 6E 64 A3 [18:33:29]GetLastDocTimeStamp 1730140317 [18:33:29]current date 1730140410 [18:33:29]FM_GetShiftState [18:33:29]SAM_PROTO_GetShiftState [18:33:29]wFMCommunicate request_size=4 [18:33:29]MH_SAM_APDU [18:33:29]CAPDU: 80 13 01 00 [18:33:29]Write to MH i2c: E2 08 00 53 08 80 13 01 00 00 00 00 00 D8 [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:29]Read from MH i2c: E2 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 0E 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 0E 00 53 08 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 28 [18:33:29]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:33:29]wFMCommunicate OK [18:33:29]SAM_PROTO_GetShiftState done [18:33:29]FM_GetShiftState done [18:33:29]opened in 1730075620 [18:33:29]opened+sec_in_day 1730162020 [18:33:29]quantity*price = 40006 [18:33:29]sum+1 = 40007 [18:33:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 288 28.10.2024 18:33 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192740 ФПД: 221553066660669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183330&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192740&fm=221553066660669&tin=02508201610067®Number=0000000000091776&sum=40000 [18:33:31]StoreToDocumentArchive [18:33:31]shift 543 fd 192740 [18:33:31]save to /storage/0543/doc_00192740 [18:33:31]save last doc name /storage/0543/doc_00192740 to /storage/kkm_last_doc_name [18:33:31]save OK [18:33:31]Clear old archive folders... [18:33:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:31]tlvbuf is 00FB28F0 [18:33:31]SAM_PROTO_ClearQueue [18:33:31]wFMCommunicate request_size=4 [18:33:31]MH_SAM_APDU [18:33:31]CAPDU: 80 09 00 00 [18:33:31]Write to MH i2c: E2 08 00 60 08 80 09 00 00 00 00 00 00 DA [18:33:31]Write i2c OK [18:33:31]MH_I2C_Read... [18:33:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:31]Read from MH i2c: E2 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 03 00 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 03 00 60 08 00 90 00 DC [18:33:31]RAPDU: 90 00 [18:33:31]wFMCommunicate OK [18:33:31]SAM_PROTO_ClearQueue done [18:33:31]KKMCreateOFDPacket [18:33:31]OFDProtocolAddRootSTLVToBuf [18:33:31]FM_MakeSignedData [18:33:31]FM_MakeSignedData [18:33:31]SAM_PROTO_SignData [18:33:31]wFMCommunicate request_size=4 [18:33:31]MH_SAM_APDU [18:33:31]CAPDU: 80 0D 01 02 [18:33:31]Write to MH i2c: E2 08 00 61 08 80 0D 01 02 00 00 00 00 E2 [18:33:31]Write i2c OK [18:33:31]MH_I2C_Read... [18:33:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:31]Read from MH i2c: E2 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 03 00 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 03 00 61 08 00 90 00 DD [18:33:31]RAPDU: 90 00 [18:33:31]wFMCommunicate OK [18:33:31]wFMCommunicate request_size=255 [18:33:31]MH_SAM_APDU [18:33: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 FA D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 F0 02 00 35 04 06 00 C9 [18:33:31]Write to MH i2c: E2 02 01 62 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 FA D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 F0 02 00 35 04 06 00 C9 00 00 7E [18:33:31]Write i2c OK [18:33:31]MH_I2C_Read... [18:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:31]Read from MH i2c: E2 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 03 00 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 03 00 62 08 00 90 00 DE [18:33:31]RAPDU: 90 00 [18:33:31]wFMCommunicate OK [18:33:31]wFMCommunicate request_size=10 [18:33:31]MH_SAM_APDU [18:33:31]CAPDU: 80 0D 02 02 05 80 57 D6 53 3D [18:33:31]Write to MH i2c: E2 0D 00 63 08 80 0D 02 02 05 00 80 57 D6 53 3D 00 00 2C [18:33:31]Write i2c OK [18:33:31]MH_I2C_Read... [18:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:31]Read from MH i2c: E2 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 03 00 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 03 00 63 08 00 90 00 DF [18:33:31]RAPDU: 90 00 [18:33:31]wFMCommunicate OK [18:33:31]wFMCommunicate request_size=4 [18:33:31]MH_SAM_APDU [18:33:31]CAPDU: 80 0D 03 02 [18:33:31]Write to MH i2c: E2 08 00 64 08 80 0D 03 02 00 00 00 00 E7 [18:33:31]Write i2c OK [18:33:31]MH_I2C_Read... [18:33:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:31]Read from MH i2c: E2 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 0B 00 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 0B 00 64 08 00 72 0E 67 A8 73 1F 85 AA 90 00 38 [18:33:31]RAPDU: 72 0E 67 A8 73 1F 85 AA 90 00 [18:33:31]wFMCommunicate OK [18:33:31]SAM_PROTO_SignData done [18:33:31]FM_MakeSignedData done [18:33:31]CreateOFDProtocolMessage [18:33:31]wFMCommunicate request_size=4 [18:33:31]MH_SAM_APDU [18:33:31]CAPDU: 80 11 00 00 [18:33:31]Write to MH i2c: E2 08 00 65 08 80 11 00 00 00 00 00 00 E7 [18:33:31]Write i2c OK [18:33:31]MH_I2C_Read... [18:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:31]Read from MH i2c: E2 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 17 00 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 17 00 65 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3A [18:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:33:31]wFMCommunicate OK [18:33:31]CreateOFDProtocolMessage done [18:33:31]OFDSenderStorePacket 192740 [18:33:31]StoreOFDPacket docnum=192740 [18:33:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B5 4D 07 01 47 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 FA D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 F0 02 00 35 04 06 00 C9 80 57 D6 53 3D 72 0E 67 A8 73 1F 85 AA [18:33:31]CheckFolder [18:33:31]dirname=/storage/ofd_packets [18:33:31]CheckFolder done [18:33:31]ProducePacketName [18:33:31]name=ofd_packets/00192740 [18:33:31]NVStorageSaveData ofd_packets/00192740 [18:33:31]File name is /storage/ofd_packets/00192740 [18:33:31]Write 301 bytes [18:33:31]NVStorageSaveData done [18:33:31]OFDSenderStorePacket done [18:33:31]KKMCreateOFDPacket done [18:33:31]NVStorageSaveData kkm_last_timestamp [18:33:31]File name is /storage/kkm_last_timestamp [18:33:31]Write 4 bytes [18:33:31]NVStorageSaveData done [18:33:31]ExternCall_PrintAddStr [18:33:31]wPrintStart [18:33:31]Write to MH i2c: 01 00 00 66 08 6E [18:33:31]Write i2c OK [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: 01 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: 01 07 00 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: 01 07 00 66 08 00 00 00 00 00 FF 0F 83 [18:33:31]RasterBufferAndPrint [18:33:31]line Счет N : (1)32067 [18:33:31]line ИНН: 02508201610067 [18:33:31]line Контрольно-Кассовый Чек [18:33:31]line ПРОДАЖА [18:33:31]line ТРК (МРК, ГНК) : 21 [18:33:31]line Товар: 2710124130 [18:33:31]line Аи-92-К-5 [18:33:31]line 5.980 * 66.90 [18:33:31]line = 400.06 [18:33:31]line НДС 12% НСП 1% [18:33:31]line > о реализуемом товаре [18:33:31]line ОКРУГЛЕНИЕ: -0.06 [18:33:31]line ИТОГО: 400.00 [18:33:31]line Внесено: 400.00 [18:33:31]line СДАЧА: 0.00 [18:33:31]line НСП 1% : 3.54 [18:33:31]line НДС 12% : 42.48 [18:33:31]line Наличными: 400.00 [18:33:31]line Безнал.: 0.00 [18:33:31]line Место: АЗС № 170 "Партнер Нефть" [18:33:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:33:31]line СНО: Общий режим [18:33:31]line Чек 288 28.10.2024 18:33 [18:33:31]line Смена: 543 ФФД: 1.0 [18:33:31]line ЗНМ: 0300000110 [18:33:31]line РНМ: 0000000000091776 [18:33:31]line Версия ККМ: 001 [18:33:31]line ФМ: 0000000000871754 [18:33:31]line ФД: 192740 [18:33:31]line ФПД: 221553066660669 [18:33:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183330&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192740&fm=221553066660669&tin=02508201610067®Number=0000000000091776&sum=40000 [18:33:31]written 0, free lines is 4095 [18:33:31]OFD Sender: Processing packet 192740 [packets to send 75, broken 74] [18:33:31]ProducePacketName [18:33:31]name=ofd_packets/00192740 [18:33:31]OFD Sender: To server: pG, [18:33:31]CommunicateWithHost lk.salyk.kg:30040 [18:33:31]ConnectInit lk.salyk.kg [18:33:31]Connected sock=10 [18:33:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B5 4D 07 01 47 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 FA D8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 F0 02 00 35 04 06 00 C9 80 57 D6 53 3D 72 0E 67 A8 73 1F 85 AA [18:33:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DC B2 47 00 F5 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 F0 02 00 F4 03 04 00 BD 7D 1F 67 B6 04 01 00 00 D8 25 8C C5 67 38 FD 6D [18:33:31]CommunicateWithHost err = 0 [18:33:31]CheckOFDResponse [18:33:31]1017 (14) - 77093643461234 [18:33:31]1041 (16) - 0000000000871754 [18:33:31]1040 (4) - 192740 [18:33:31]1012 (4) - 28.10.2024 12:04 [18:33:31]1206 (1) - 0 [18:33:31]OFD Sender: Remove packet 192740 [18:33:31]ProducePacketName [18:33:31]name=ofd_packets/00192740 [18:33:31]NVStorageDeleteData [18:33:32]Write to MH i2c: 01 00 00 91 08 99 [18:33:32]Write i2c OK [18:33:32]MH_I2C_Read... [18:33:32]Read from MH i2c: 01 [18:33:32]MH_I2C_Read... [18:33:32]Read from MH i2c: 01 07 00 [18:33:32]MH_I2C_Read... [18:33:32]Read from MH i2c: 01 07 00 91 08 00 00 00 00 00 CC 0C 78 [18:33:32]RasterBufferAndPrint [18:33:32]line [18:33:32]line [18:33:32]line [18:33:32]line [18:33:32]line [18:33:32]written 0, free lines is 3282 [18:33:32]MH_Cut [18:33:32]Write to MH i2c: D1 01 00 98 08 01 72 [18:33:32]Write i2c OK [18:33:32]MH_I2C_Read... [18:33:32]Read from MH i2c: D1 [18:33:32]MH_I2C_Read... [18:33:32]Read from MH i2c: D1 01 00 [18:33:32]MH_I2C_Read... [18:33:32]Read from MH i2c: D1 01 00 98 08 00 71 [18:33:32]Write to MH i2c: 01 00 00 99 08 A1 [18:33:32]Write i2c OK [18:33:32]MH_I2C_Read... [18:33:32]OFD Sender: No OFD packet to send [18:33:32]*** Cut start [18:33:32]*** Partial cut [18:33:32]*** CUTSNS_PIN = 1 [18:33:32]*** CUTSNS_PIN = 0 [18:33:33]*** Brake cut motor [18:33:33]Read from MH i2c: 01 [18:33:33]MH_I2C_Read... [18:33:33]*** Stop cut motor [18:33:33]*** Cut end [18:33:33]Read from MH i2c: 01 07 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: 01 07 00 99 08 00 00 00 00 00 FF 0F B6 [18:33:33]process_action close_receipt done [18:33:33]requested_data is exist [18:33:33]produce_requested_data [18:33:33]requested_item fm.sn is exist - process it [18:33:33]wFMCommunicate request_size=4 [18:33:33]MH_SAM_APDU [18:33:33]CAPDU: 80 11 00 00 [18:33:33]Write to MH i2c: E2 08 00 9A 08 80 11 00 00 00 00 00 00 1C [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:33]Read from MH i2c: E2 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 17 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 17 00 9A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6F [18:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:33:33]wFMCommunicate OK [18:33:33]requested_item fd.num is exist - process it [18:33:33]SAM_PROTO_GetFieldsCounters [18:33:33]wFMCommunicate request_size=4 [18:33:33]MH_SAM_APDU [18:33:33]CAPDU: 80 13 00 00 [18:33:33]Write to MH i2c: E2 08 00 9B 08 80 13 00 00 00 00 00 00 1F [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:33]Read from MH i2c: E2 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 62 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 62 00 9B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E4 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [18:33:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E4 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:33]wFMCommunicate OK [18:33:33]SAM_PROTO_GetFieldsCounters done [18:33:33]requested_item shift.num is exist - process it [18:33:33]requested_item shift.opened is exist - process it [18:33:33]req_shift_opened [18:33:33]FM_GetShiftState [18:33:33]SAM_PROTO_GetShiftState [18:33:33]wFMCommunicate request_size=4 [18:33:33]MH_SAM_APDU [18:33:33]CAPDU: 80 13 01 00 [18:33:33]Write to MH i2c: E2 08 00 9C 08 80 13 01 00 00 00 00 00 21 [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:33]Read from MH i2c: E2 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 0E 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 0E 00 9C 08 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 71 [18:33:33]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:33:33]wFMCommunicate OK [18:33:33]SAM_PROTO_GetShiftState done [18:33:33]FM_GetShiftState done [18:33:33]req_shift_opened done [18:33:33]requested_item shift.open_date is exist - process it [18:33:33]req_shift_open_date [18:33:33]req_shift_open_date done [18:33:33]produce_requested_data done [18:33:33]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192740,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:33:33]process_action_free close_receipt [18:33:33]json_value_free [18:33:33]json_value_free done [18:33:33]process_json_proto returns [18:33:33]Send response to host [18:33:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192740,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:33:33]free response buf [18:33:33]execute_script done [18:33:33]execute_script returns [18:33:33]free content buf [18:33:33]Sock 8.Close socket [18:33:33]Sock 8.Thread stoped [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]accept exits with 9 [18:35:57]New connection [18:35:57]New thread 3066658148 created [18:35:57]Thread 3066801508 joined [18:35:57]Waiting for new connection... [18:35:57] Sock 9.Parse request [18:35:57]Sock 9.Check first char [18:35:57]Sock 9.First char is OK [18:35:57]request: POST /json_proto HTTP/1.0 [18:35:57]Method: POST [18:35:57]URL: /json_proto [18:35:57]Method is POST - this is cgi request [18:35:57]url: /json_proto [18:35:57]query_string will be loaded in cgi processing [18:35:57]execute_cgi json_proto POST (null) [18:35:57]execute_cgi path=json_proto method=POST [18:35:57]POST find Content-Length [18:35:57]Host: 172.17.63.131:8080 [18:35:57]Content-Length: 676 [18:35:57]Content-Type: application/json [18:35:57] [18:35:57]POST finish read [18:35:57]Found Content-Length = 676 [18:35:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:57]execute_script... [18:35:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:57]POST & json_proto [18:35:57]process_json_proto [18:35:57]json parsed OK: [18:35:57]protocol is kg_v1.0 [18:35:57]action value=close_receipt [18:35:57]process_action close_receipt [18:35:57]cmd_close_receipt [18:35:57]MH_GetDate [18:35:57]Write to MH i2c: F0 00 00 9D 08 94 [18:35:57]Write i2c OK [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: F0 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: F0 09 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: F0 09 00 9D 08 00 8D D9 1F 67 22 05 6E 64 82 [18:35:57]GetLastDocTimeStamp 1730140410 [18:35:57]current date 1730140557 [18:35:57]FM_GetShiftState [18:35:57]SAM_PROTO_GetShiftState [18:35:57]wFMCommunicate request_size=4 [18:35:57]MH_SAM_APDU [18:35:57]CAPDU: 80 13 01 00 [18:35:57]Write to MH i2c: E2 08 00 9E 08 80 13 01 00 00 00 00 00 23 [18:35:57]Write i2c OK [18:35:57]MH_I2C_Read... [18:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:57]Read from MH i2c: E2 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 0E 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 0E 00 9E 08 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 73 [18:35:57]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:35:57]wFMCommunicate OK [18:35:57]SAM_PROTO_GetShiftState done [18:35:57]FM_GetShiftState done [18:35:57]opened in 1730075620 [18:35:57]opened+sec_in_day 1730162020 [18:35:57]quantity*price = 30038 [18:35:57]sum+1 = 30039 [18:35:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 289 28.10.2024 18:35 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192741 ФПД: 182576003858064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183557&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192741&fm=182576003858064&tin=02508201610067®Number=0000000000091776&sum=30000 [18:35:58]StoreToDocumentArchive [18:35:58]shift 543 fd 192741 [18:35:58]save to /storage/0543/doc_00192741 [18:35:58]save last doc name /storage/0543/doc_00192741 to /storage/kkm_last_doc_name [18:35:58]save OK [18:35:58]Clear old archive folders... [18:35:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:58]tlvbuf is B6E9CA30 [18:35:58]SAM_PROTO_ClearQueue [18:35:58]wFMCommunicate request_size=4 [18:35:58]MH_SAM_APDU [18:35:58]CAPDU: 80 09 00 00 [18:35:58]Write to MH i2c: E2 08 00 AB 08 80 09 00 00 00 00 00 00 25 [18:35:58]Write i2c OK [18:35:58]MH_I2C_Read... [18:35:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:58]Read from MH i2c: E2 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 03 00 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 03 00 AB 08 00 90 00 27 [18:35:58]RAPDU: 90 00 [18:35:58]wFMCommunicate OK [18:35:58]SAM_PROTO_ClearQueue done [18:35:58]KKMCreateOFDPacket [18:35:58]OFDProtocolAddRootSTLVToBuf [18:35:58]FM_MakeSignedData [18:35:58]FM_MakeSignedData [18:35:58]SAM_PROTO_SignData [18:35:58]wFMCommunicate request_size=4 [18:35:58]MH_SAM_APDU [18:35:58]CAPDU: 80 0D 01 02 [18:35:58]Write to MH i2c: E2 08 00 AC 08 80 0D 01 02 00 00 00 00 2D [18:35:58]Write i2c OK [18:35:58]MH_I2C_Read... [18:35:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:58]Read from MH i2c: E2 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 03 00 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 03 00 AC 08 00 90 00 28 [18:35:58]RAPDU: 90 00 [18:35:58]wFMCommunicate OK [18:35:58]wFMCommunicate request_size=255 [18:35:58]MH_SAM_APDU [18:35:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 8D D9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 F0 02 00 35 04 06 00 A6 [18:35:58]Write to MH i2c: E2 02 01 AD 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 8D D9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 F0 02 00 35 04 06 00 A6 00 00 61 [18:35:58]Write i2c OK [18:35:58]MH_I2C_Read... [18:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:58]Read from MH i2c: E2 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 03 00 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 03 00 AD 08 00 90 00 29 [18:35:58]RAPDU: 90 00 [18:35:58]wFMCommunicate OK [18:35:58]wFMCommunicate request_size=10 [18:35:58]MH_SAM_APDU [18:35:58]CAPDU: 80 0D 02 02 05 0D 49 DA BE 90 [18:35:58]Write to MH i2c: E2 0D 00 AE 08 80 0D 02 02 05 00 0D 49 DA BE 90 00 00 B8 [18:35:58]Write i2c OK [18:35:58]MH_I2C_Read... [18:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:58]Read from MH i2c: E2 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 03 00 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 03 00 AE 08 00 90 00 2A [18:35:58]RAPDU: 90 00 [18:35:58]wFMCommunicate OK [18:35:58]wFMCommunicate request_size=4 [18:35:58]MH_SAM_APDU [18:35:58]CAPDU: 80 0D 03 02 [18:35:58]Write to MH i2c: E2 08 00 AF 08 80 0D 03 02 00 00 00 00 32 [18:35:58]Write i2c OK [18:35:58]MH_I2C_Read... [18:35:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:58]Read from MH i2c: E2 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 0B 00 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 0B 00 AF 08 00 B5 D5 11 73 9E 4D 1A 63 90 00 A9 [18:35:58]RAPDU: B5 D5 11 73 9E 4D 1A 63 90 00 [18:35:58]wFMCommunicate OK [18:35:58]SAM_PROTO_SignData done [18:35:58]FM_MakeSignedData done [18:35:58]CreateOFDProtocolMessage [18:35:58]wFMCommunicate request_size=4 [18:35:58]MH_SAM_APDU [18:35:58]CAPDU: 80 11 00 00 [18:35:58]Write to MH i2c: E2 08 00 B0 08 80 11 00 00 00 00 00 00 32 [18:35:58]Write i2c OK [18:35:58]MH_I2C_Read... [18:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:59]Read from MH i2c: E2 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: E2 17 00 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: E2 17 00 B0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 85 [18:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:35:59]wFMCommunicate OK [18:35:59]CreateOFDProtocolMessage done [18:35:59]OFDSenderStorePacket 192741 [18:35:59]StoreOFDPacket docnum=192741 [18:35:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AB 3F 07 01 C2 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 8D D9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 F0 02 00 35 04 06 00 A6 0D 49 DA BE 90 B5 D5 11 73 9E 4D 1A 63 [18:35:59]CheckFolder [18:35:59]dirname=/storage/ofd_packets [18:35:59]CheckFolder done [18:35:59]ProducePacketName [18:35:59]name=ofd_packets/00192741 [18:35:59]NVStorageSaveData ofd_packets/00192741 [18:35:59]File name is /storage/ofd_packets/00192741 [18:35:59]Write 301 bytes [18:35:59]NVStorageSaveData done [18:35:59]OFDSenderStorePacket done [18:35:59]KKMCreateOFDPacket done [18:35:59]NVStorageSaveData kkm_last_timestamp [18:35:59]File name is /storage/kkm_last_timestamp [18:35:59]Write 4 bytes [18:35:59]NVStorageSaveData done [18:35:59]ExternCall_PrintAddStr [18:35:59]wPrintStart [18:35:59]Write to MH i2c: 01 00 00 B1 08 B9 [18:35:59]Write i2c OK [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: 01 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: 01 07 00 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: 01 07 00 B1 08 00 00 00 00 00 FF 0F CE [18:35:59]RasterBufferAndPrint [18:35:59]line Счет N : (1)32068 [18:35:59]line ИНН: 02508201610067 [18:35:59]line Контрольно-Кассовый Чек [18:35:59]line ПРОДАЖА [18:35:59]line ТРК (МРК, ГНК) : 12 [18:35:59]line Товар: 2710124130 [18:35:59]line Аи-92-К-5 [18:35:59]line 4.490 * 66.90 [18:35:59]line = 300.38 [18:35:59]line НДС 12% НСП 1% [18:35:59]line > о реализуемом товаре [18:35:59]line ОКРУГЛЕНИЕ: -0.38 [18:35:59]line ИТОГО: 300.00 [18:35:59]line Внесено: 300.00 [18:35:59]line СДАЧА: 0.00 [18:35:59]line НСП 1% : 2.66 [18:35:59]line НДС 12% : 31.90 [18:35:59]line Наличными: 300.00 [18:35:59]line Безнал.: 0.00 [18:35:59]line Место: АЗС № 170 "Партнер Нефть" [18:35:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:35:59]line СНО: Общий режим [18:35:59]line Чек 289 28.10.2024 18:35 [18:35:59]line Смена: 543 ФФД: 1.0 [18:35:59]line ЗНМ: 0300000110 [18:35:59]line РНМ: 0000000000091776 [18:35:59]line Версия ККМ: 001 [18:35:59]line ФМ: 0000000000871754 [18:35:59]line ФД: 192741 [18:35:59]line ФПД: 182576003858064 [18:35:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183557&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192741&fm=182576003858064&tin=02508201610067®Number=0000000000091776&sum=30000 [18:35:59]OFD Sender: Processing packet 192741 [packets to send 75, broken 74] [18:35:59]ProducePacketName [18:35:59]name=ofd_packets/00192741 [18:35:59]OFD Sender: To server: pG, [18:35:59]CommunicateWithHost lk.salyk.kg:30040 [18:35:59]ConnectInit lk.salyk.kg [18:35:59]written 0, free lines is 4095 [18:35:59]Connected sock=11 [18:35:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AB 3F 07 01 C2 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 8D D9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 F0 02 00 35 04 06 00 A6 0D 49 DA BE 90 B5 D5 11 73 9E 4D 1A 63 [18:35:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A8 7B 47 00 E2 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 F0 02 00 F4 03 04 00 51 7E 1F 67 B6 04 01 00 00 49 5A 53 00 D4 31 42 A0 [18:35:59]CommunicateWithHost err = 0 [18:35:59]CheckOFDResponse [18:35:59]1017 (14) - 77093643461234 [18:35:59]1041 (16) - 0000000000871754 [18:35:59]1040 (4) - 192741 [18:35:59]1012 (4) - 28.10.2024 12:06 [18:35:59]1206 (1) - 0 [18:35:59]OFD Sender: Remove packet 192741 [18:35:59]ProducePacketName [18:35:59]name=ofd_packets/00192741 [18:35:59]NVStorageDeleteData [18:35:59]Write to MH i2c: 01 00 00 DC 08 E4 [18:35:59]Write i2c OK [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: 01 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: 01 07 00 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: 01 07 00 DC 08 00 00 00 00 00 BA 0C B1 [18:35:59]RasterBufferAndPrint [18:35:59]line [18:35:59]line [18:35:59]line [18:35:59]line [18:35:59]line [18:35:59]written 0, free lines is 3265 [18:35:59]MH_Cut [18:35:59]Write to MH i2c: D1 01 00 E3 08 01 BD [18:35:59]Write i2c OK [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: D1 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: D1 01 00 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: D1 01 00 E3 08 00 BC [18:35:59]Write to MH i2c: 01 00 00 E4 08 EC [18:35:59]Write i2c OK [18:35:59]MH_I2C_Read... [18:36:00]OFD Sender: No OFD packet to send [18:36:00]*** Cut start [18:36:00]*** Partial cut [18:36:00]*** CUTSNS_PIN = 1 [18:36:00]*** CUTSNS_PIN = 0 [18:36:00]*** Brake cut motor [18:36:01]Read from MH i2c: 01 [18:36:01]MH_I2C_Read... [18:36:01]*** Stop cut motor [18:36:01]*** Cut end [18:36:01]Read from MH i2c: 01 07 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: 01 07 00 E4 08 00 00 00 00 00 FF 0F 01 [18:36:01]process_action close_receipt done [18:36:01]requested_data is exist [18:36:01]produce_requested_data [18:36:01]requested_item fm.sn is exist - process it [18:36:01]wFMCommunicate request_size=4 [18:36:01]MH_SAM_APDU [18:36:01]CAPDU: 80 11 00 00 [18:36:01]Write to MH i2c: E2 08 00 E5 08 80 11 00 00 00 00 00 00 67 [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:01]Read from MH i2c: E2 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 17 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 17 00 E5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BA [18:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:36:01]wFMCommunicate OK [18:36:01]requested_item fd.num is exist - process it [18:36:01]SAM_PROTO_GetFieldsCounters [18:36:01]wFMCommunicate request_size=4 [18:36:01]MH_SAM_APDU [18:36:01]CAPDU: 80 13 00 00 [18:36:01]Write to MH i2c: E2 08 00 E6 08 80 13 00 00 00 00 00 00 6A [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:01]Read from MH i2c: E2 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 62 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 62 00 E6 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E5 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [18:36:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E5 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:01]wFMCommunicate OK [18:36:01]SAM_PROTO_GetFieldsCounters done [18:36:01]requested_item shift.num is exist - process it [18:36:01]requested_item shift.opened is exist - process it [18:36:01]req_shift_opened [18:36:01]FM_GetShiftState [18:36:01]SAM_PROTO_GetShiftState [18:36:01]wFMCommunicate request_size=4 [18:36:01]MH_SAM_APDU [18:36:01]CAPDU: 80 13 01 00 [18:36:01]Write to MH i2c: E2 08 00 E7 08 80 13 01 00 00 00 00 00 6C [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:01]Read from MH i2c: E2 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 0E 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 0E 00 E7 08 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 BC [18:36:01]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:36:01]wFMCommunicate OK [18:36:01]SAM_PROTO_GetShiftState done [18:36:01]FM_GetShiftState done [18:36:01]req_shift_opened done [18:36:01]requested_item shift.open_date is exist - process it [18:36:01]req_shift_open_date [18:36:01]req_shift_open_date done [18:36:01]produce_requested_data done [18:36:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192741,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:36:01]process_action_free close_receipt [18:36:01]json_value_free [18:36:01]json_value_free done [18:36:01]process_json_proto returns [18:36:01]Send response to host [18:36:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192741,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:36:01]free response buf [18:36:01]execute_script done [18:36:01]execute_script returns [18:36:01]free content buf [18:36:01]Sock 9.Close socket [18:36:01]Sock 9.Thread stoped [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:36]accept exits with 8 [18:39:36]New connection [18:39:36]New thread 3066801508 created [18:39:36]Thread 3066658148 joined [18:39:36]Waiting for new connection... [18:39:36] Sock 8.Parse request [18:39:36]Sock 8.Check first char [18:39:36]Sock 8.First char is OK [18:39:36]request: POST /json_proto HTTP/1.0 [18:39:36]Method: POST [18:39:36]URL: /json_proto [18:39:36]Method is POST - this is cgi request [18:39:36]url: /json_proto [18:39:36]query_string will be loaded in cgi processing [18:39:36]execute_cgi json_proto POST (null) [18:39:36]execute_cgi path=json_proto method=POST [18:39:36]POST find Content-Length [18:39:36]Host: 172.17.63.131:8080 [18:39:36]Content-Length: 676 [18:39:36]Content-Type: application/json [18:39:36] [18:39:36]POST finish read [18:39:36]Found Content-Length = 676 [18:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:36]execute_script... [18:39: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)32069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:36]POST & json_proto [18:39:36]process_json_proto [18:39:36]json parsed OK: [18:39:36]protocol is kg_v1.0 [18:39:36]action value=close_receipt [18:39:36]process_action close_receipt [18:39:36]cmd_close_receipt [18:39:36]MH_GetDate [18:39:36]Write to MH i2c: F0 00 00 E8 08 DF [18:39:36]Write i2c OK [18:39:36]MH_I2C_Read... [18:39:36]Read from MH i2c: F0 [18:39:36]MH_I2C_Read... [18:39:36]Read from MH i2c: F0 09 00 [18:39:36]MH_I2C_Read... [18:39:36]Read from MH i2c: F0 09 00 E8 08 00 69 DA 1F 67 22 05 6E 64 AA [18:39:36]GetLastDocTimeStamp 1730140557 [18:39:36]current date 1730140777 [18:39:36]FM_GetShiftState [18:39:36]SAM_PROTO_GetShiftState [18:39:36]wFMCommunicate request_size=4 [18:39:36]MH_SAM_APDU [18:39:36]CAPDU: 80 13 01 00 [18:39:36]Write to MH i2c: E2 08 00 E9 08 80 13 01 00 00 00 00 00 6E [18:39:36]Write i2c OK [18:39:36]MH_I2C_Read... [18:39:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:37]Read from MH i2c: E2 [18:39:37]MH_I2C_Read... [18:39:37]Read from MH i2c: E2 0E 00 [18:39:37]MH_I2C_Read... [18:39:37]Read from MH i2c: E2 0E 00 E9 08 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 BE [18:39:37]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:39:37]wFMCommunicate OK [18:39:37]SAM_PROTO_GetShiftState done [18:39:37]FM_GetShiftState done [18:39:37]opened in 1730075620 [18:39:37]opened+sec_in_day 1730162020 [18:39:37]quantity*price = 30038 [18:39:37]sum+1 = 30039 [18:39:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 290 28.10.2024 18:39 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192742 ФПД: 63744306432613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183937&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192742&fm=63744306432613&tin=02508201610067®Number=0000000000091776&sum=30000 [18:39:38]StoreToDocumentArchive [18:39:38]shift 543 fd 192742 [18:39:38]save to /storage/0543/doc_00192742 [18:39:38]save last doc name /storage/0543/doc_00192742 to /storage/kkm_last_doc_name [18:39:38]save OK [18:39:38]Clear old archive folders... [18:39:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:38]tlvbuf is 00FB1330 [18:39:38]SAM_PROTO_ClearQueue [18:39:38]wFMCommunicate request_size=4 [18:39:38]MH_SAM_APDU [18:39:38]CAPDU: 80 09 00 00 [18:39:38]Write to MH i2c: E2 08 00 F6 08 80 09 00 00 00 00 00 00 70 [18:39:38]Write i2c OK [18:39:38]MH_I2C_Read... [18:39:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:38]Read from MH i2c: E2 [18:39:38]MH_I2C_Read... [18:39:38]Read from MH i2c: E2 03 00 [18:39:38]MH_I2C_Read... [18:39:38]Read from MH i2c: E2 03 00 F6 08 00 90 00 72 [18:39:38]RAPDU: 90 00 [18:39:38]wFMCommunicate OK [18:39:38]SAM_PROTO_ClearQueue done [18:39:38]KKMCreateOFDPacket [18:39:38]OFDProtocolAddRootSTLVToBuf [18:39:38]FM_MakeSignedData [18:39:38]FM_MakeSignedData [18:39:38]SAM_PROTO_SignData [18:39:38]wFMCommunicate request_size=4 [18:39:38]MH_SAM_APDU [18:39:38]CAPDU: 80 0D 01 02 [18:39:38]Write to MH i2c: E2 08 00 F7 08 80 0D 01 02 00 00 00 00 78 [18:39:38]Write i2c OK [18:39:38]MH_I2C_Read... [18:39:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:38]Read from MH i2c: E2 [18:39:38]MH_I2C_Read... [18:39:38]Read from MH i2c: E2 03 00 [18:39:38]MH_I2C_Read... [18:39:38]Read from MH i2c: E2 03 00 F7 08 00 90 00 73 [18:39:38]RAPDU: 90 00 [18:39:38]wFMCommunicate OK [18:39:38]wFMCommunicate request_size=255 [18:39:38]MH_SAM_APDU [18:39: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 69 DA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 F0 02 00 35 04 06 00 39 [18:39:38]Write to MH i2c: E2 02 01 F8 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 69 DA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 F0 02 00 35 04 06 00 39 00 00 1E [18:39:38]Write i2c OK [18:39:38]MH_I2C_Read... [18:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:38]Read from MH i2c: E2 [18:39:38]MH_I2C_Read... [18:39:38]Read from MH i2c: E2 03 00 [18:39:38]MH_I2C_Read... [18:39:38]Read from MH i2c: E2 03 00 F8 08 00 90 00 74 [18:39:38]RAPDU: 90 00 [18:39:38]wFMCommunicate OK [18:39:38]wFMCommunicate request_size=10 [18:39:38]MH_SAM_APDU [18:39:38]CAPDU: 80 0D 02 02 05 F9 A0 BD CA 65 [18:39:38]Write to MH i2c: E2 0D 00 F9 08 80 0D 02 02 05 00 F9 A0 BD CA 65 00 00 0A [18:39:38]Write i2c OK [18:39:38]MH_I2C_Read... [18:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:38]Read from MH i2c: E2 [18:39:38]MH_I2C_Read... [18:39:38]Read from MH i2c: E2 03 00 [18:39:38]MH_I2C_Read... [18:39:38]Read from MH i2c: E2 03 00 F9 08 00 90 00 75 [18:39:38]RAPDU: 90 00 [18:39:38]wFMCommunicate OK [18:39:38]wFMCommunicate request_size=4 [18:39:38]MH_SAM_APDU [18:39:38]CAPDU: 80 0D 03 02 [18:39:38]Write to MH i2c: E2 08 00 FA 08 80 0D 03 02 00 00 00 00 7D [18:39:38]Write i2c OK [18:39:38]MH_I2C_Read... [18:39:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:38]Read from MH i2c: E2 [18:39:38]MH_I2C_Read... [18:39:38]Read from MH i2c: E2 0B 00 [18:39:38]MH_I2C_Read... [18:39:38]Read from MH i2c: E2 0B 00 FA 08 00 99 7C 7F E4 BF 68 26 A7 90 00 EA [18:39:38]RAPDU: 99 7C 7F E4 BF 68 26 A7 90 00 [18:39:38]wFMCommunicate OK [18:39:38]SAM_PROTO_SignData done [18:39:38]FM_MakeSignedData done [18:39:38]CreateOFDProtocolMessage [18:39:38]wFMCommunicate request_size=4 [18:39:38]MH_SAM_APDU [18:39:38]CAPDU: 80 11 00 00 [18:39:38]Write to MH i2c: E2 08 00 FB 08 80 11 00 00 00 00 00 00 7D [18:39:38]Write i2c OK [18:39:38]MH_I2C_Read... [18:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:38]Read from MH i2c: E2 [18:39:38]MH_I2C_Read... [18:39:38]Read from MH i2c: E2 17 00 [18:39:38]MH_I2C_Read... [18:39:38]Read from MH i2c: E2 17 00 FB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D0 [18:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:39:38]wFMCommunicate OK [18:39:38]CreateOFDProtocolMessage done [18:39:38]OFDSenderStorePacket 192742 [18:39:38]StoreOFDPacket docnum=192742 [18:39:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 45 07 01 67 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 69 DA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 F0 02 00 35 04 06 00 39 F9 A0 BD CA 65 99 7C 7F E4 BF 68 26 A7 [18:39:38]CheckFolder [18:39:38]dirname=/storage/ofd_packets [18:39:38]CheckFolder done [18:39:38]ProducePacketName [18:39:38]name=ofd_packets/00192742 [18:39:38]NVStorageSaveData ofd_packets/00192742 [18:39:38]File name is /storage/ofd_packets/00192742 [18:39:38]Write 301 bytes [18:39:38]NVStorageSaveData done [18:39:38]OFDSenderStorePacket done [18:39:38]KKMCreateOFDPacket done [18:39:38]NVStorageSaveData kkm_last_timestamp [18:39:38]File name is /storage/kkm_last_timestamp [18:39:38]Write 4 bytes [18:39:38]NVStorageSaveData done [18:39:38]OFD Sender: Processing packet 192742 [packets to send 75, broken 74] [18:39:38]ProducePacketName [18:39:38]name=ofd_packets/00192742 [18:39:38]OFD Sender: To server: pG, [18:39:38]CommunicateWithHost lk.salyk.kg:30040 [18:39:38]ConnectInit lk.salyk.kg [18:39:38]ExternCall_PrintAddStr [18:39:38]wPrintStart [18:39:38]Write to MH i2c: 01 00 00 FC 08 04 [18:39:38]Write i2c OK [18:39:38]MH_I2C_Read... [18:39:38]Read from MH i2c: 01 [18:39:38]MH_I2C_Read... [18:39:38]Read from MH i2c: 01 07 00 [18:39:38]MH_I2C_Read... [18:39:38]Read from MH i2c: 01 07 00 FC 08 00 00 00 00 00 FF 0F 19 [18:39:38]RasterBufferAndPrint [18:39:38]line Счет N : (1)32069 [18:39:38]line ИНН: 02508201610067 [18:39:38]line Контрольно-Кассовый Чек [18:39:38]line ПРОДАЖА [18:39:38]line ТРК (МРК, ГНК) : 12 [18:39:38]line Товар: 2710124130 [18:39:38]line Аи-92-К-5 [18:39:38]line 4.490 * 66.90 [18:39:38]line = 300.38 [18:39:38]line НДС 12% НСП 1% [18:39:38]line > о реализуемом товаре [18:39:38]line ОКРУГЛЕНИЕ: -0.38 [18:39:38]line ИТОГО: 300.00 [18:39:38]line Внесено: 300.00 [18:39:38]line СДАЧА: 0.00 [18:39:38]line НСП 1% : 2.66 [18:39:38]line НДС 12% : 31.90 [18:39:38]line Наличными: 300.00 [18:39:38]line Безнал.: 0.00 [18:39:38]line Место: АЗС № 170 "Партнер Нефть" [18:39:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:39:38]line СНО: Общий режим [18:39:38]line Чек 290 28.10.2024 18:39 [18:39:38]line Смена: 543 ФФД: 1.0 [18:39:38]line ЗНМ: 0300000110 [18:39:38]line РНМ: 0000000000091776 [18:39:38]line Версия ККМ: 001 [18:39:38]line ФМ: 0000000000871754 [18:39:38]line ФД: 192742 [18:39:38]line ФПД: 63744306432613 [18:39:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183937&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192742&fm=63744306432613&tin=02508201610067®Number=0000000000091776&sum=30000 [18:39:39]Connected sock=11 [18:39:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 45 07 01 67 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 69 DA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 F0 02 00 35 04 06 00 39 F9 A0 BD CA 65 99 7C 7F E4 BF 68 26 A7 [18:39:39]written 0, free lines is 4095 [18:39:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 95 97 47 00 8E 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 F0 02 00 F4 03 04 00 2C 7F 1F 67 B6 04 01 00 00 F7 56 4E 75 03 9E 48 39 [18:39:39]CommunicateWithHost err = 0 [18:39:39]CheckOFDResponse [18:39:39]1017 (14) - 77093643461234 [18:39:39]1041 (16) - 0000000000871754 [18:39:39]1040 (4) - 192742 [18:39:39]1012 (4) - 28.10.2024 12:10 [18:39:39]1206 (1) - 0 [18:39:39]OFD Sender: Remove packet 192742 [18:39:39]ProducePacketName [18:39:39]name=ofd_packets/00192742 [18:39:39]NVStorageDeleteData [18:39:39]Write to MH i2c: 01 00 00 27 09 30 [18:39:39]Write i2c OK [18:39:39]MH_I2C_Read... [18:39:39]Read from MH i2c: 01 [18:39:39]MH_I2C_Read... [18:39:39]Read from MH i2c: 01 07 00 [18:39:39]MH_I2C_Read... [18:39:39]Read from MH i2c: 01 07 00 27 09 00 00 00 00 00 C6 0C 09 [18:39:39]RasterBufferAndPrint [18:39:39]line [18:39:39]line [18:39:39]line [18:39:39]line [18:39:39]line [18:39:39]written 0, free lines is 3279 [18:39:39]MH_Cut [18:39:39]Write to MH i2c: D1 01 00 2E 09 01 09 [18:39:39]Write i2c OK [18:39:39]MH_I2C_Read... [18:39:39]Read from MH i2c: D1 [18:39:39]MH_I2C_Read... [18:39:39]Read from MH i2c: D1 01 00 [18:39:39]MH_I2C_Read... [18:39:39]Read from MH i2c: D1 01 00 2E 09 00 08 [18:39:39]Write to MH i2c: 01 00 00 2F 09 38 [18:39:39]Write i2c OK [18:39:39]MH_I2C_Read... [18:39:39]OFD Sender: No OFD packet to send [18:39:40]*** Cut start [18:39:40]*** Partial cut [18:39:40]*** CUTSNS_PIN = 1 [18:39:40]*** CUTSNS_PIN = 0 [18:39:40]*** Brake cut motor [18:39:40]Read from MH i2c: 01 [18:39:40]MH_I2C_Read... [18:39:40]*** Stop cut motor [18:39:40]*** Cut end [18:39:40]Read from MH i2c: 01 07 00 [18:39:40]MH_I2C_Read... [18:39:40]Read from MH i2c: 01 07 00 2F 09 00 00 00 00 00 FF 0F 4D [18:39:40]process_action close_receipt done [18:39:40]requested_data is exist [18:39:40]produce_requested_data [18:39:40]requested_item fm.sn is exist - process it [18:39:40]wFMCommunicate request_size=4 [18:39:40]MH_SAM_APDU [18:39:40]CAPDU: 80 11 00 00 [18:39:40]Write to MH i2c: E2 08 00 30 09 80 11 00 00 00 00 00 00 B3 [18:39:40]Write i2c OK [18:39:40]MH_I2C_Read... [18:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:40]Read from MH i2c: E2 [18:39:40]MH_I2C_Read... [18:39:40]Read from MH i2c: E2 17 00 [18:39:40]MH_I2C_Read... [18:39:40]Read from MH i2c: E2 17 00 30 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 06 [18:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:39:40]wFMCommunicate OK [18:39:40]requested_item fd.num is exist - process it [18:39:40]SAM_PROTO_GetFieldsCounters [18:39:40]wFMCommunicate request_size=4 [18:39:40]MH_SAM_APDU [18:39:40]CAPDU: 80 13 00 00 [18:39:40]Write to MH i2c: E2 08 00 31 09 80 13 00 00 00 00 00 00 B6 [18:39:40]Write i2c OK [18:39:40]MH_I2C_Read... [18:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:41]Read from MH i2c: E2 [18:39:41]MH_I2C_Read... [18:39:41]Read from MH i2c: E2 62 00 [18:39:41]MH_I2C_Read... [18:39:41]Read from MH i2c: E2 62 00 31 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E6 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [18:39: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E6 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:41]wFMCommunicate OK [18:39:41]SAM_PROTO_GetFieldsCounters done [18:39:41]requested_item shift.num is exist - process it [18:39:41]requested_item shift.opened is exist - process it [18:39:41]req_shift_opened [18:39:41]FM_GetShiftState [18:39:41]SAM_PROTO_GetShiftState [18:39:41]wFMCommunicate request_size=4 [18:39:41]MH_SAM_APDU [18:39:41]CAPDU: 80 13 01 00 [18:39:41]Write to MH i2c: E2 08 00 32 09 80 13 01 00 00 00 00 00 B8 [18:39:41]Write i2c OK [18:39:41]MH_I2C_Read... [18:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:41]Read from MH i2c: E2 [18:39:41]MH_I2C_Read... [18:39:41]Read from MH i2c: E2 0E 00 [18:39:41]MH_I2C_Read... [18:39:41]Read from MH i2c: E2 0E 00 32 09 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 08 [18:39:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:39:41]wFMCommunicate OK [18:39:41]SAM_PROTO_GetShiftState done [18:39:41]FM_GetShiftState done [18:39:41]req_shift_opened done [18:39:41]requested_item shift.open_date is exist - process it [18:39:41]req_shift_open_date [18:39:41]req_shift_open_date done [18:39:41]produce_requested_data done [18:39:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192742,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:39:41]process_action_free close_receipt [18:39:41]json_value_free [18:39:41]json_value_free done [18:39:41]process_json_proto returns [18:39:41]Send response to host [18:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192742,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:39:41]free response buf [18:39:41]execute_script done [18:39:41]execute_script returns [18:39:41]free content buf [18:39:41]Sock 8.Close socket [18:39:41]Sock 8.Thread stoped [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:24]OFD Sender: No OFD packet to send [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:39]OFD Sender: No OFD packet to send [18:40:41]accept exits with 9 [18:40:41]New connection [18:40:41]New thread 3066658148 created [18:40:41]Thread 3066801508 joined [18:40:41]Waiting for new connection... [18:40:41] Sock 9.Parse request [18:40:41]Sock 9.Check first char [18:40:41]Sock 9.First char is OK [18:40:41]request: POST /json_proto HTTP/1.0 [18:40:41]Method: POST [18:40:41]URL: /json_proto [18:40:41]Method is POST - this is cgi request [18:40:41]url: /json_proto [18:40:41]query_string will be loaded in cgi processing [18:40:41]execute_cgi json_proto POST (null) [18:40:41]execute_cgi path=json_proto method=POST [18:40:41]POST find Content-Length [18:40:41]Host: 172.17.63.131:8080 [18:40:41]Content-Length: 676 [18:40:41]Content-Type: application/json [18:40:41] [18:40:41]POST finish read [18:40:41]Found Content-Length = 676 [18:40:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.030, "sum" : 470.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:41]execute_script... [18:40:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.030, "sum" : 470.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:41]POST & json_proto [18:40:41]process_json_proto [18:40:41]json parsed OK: [18:40:41]protocol is kg_v1.0 [18:40:41]action value=close_receipt [18:40:41]process_action close_receipt [18:40:41]cmd_close_receipt [18:40:41]MH_GetDate [18:40:41]Write to MH i2c: F0 00 00 33 09 2B [18:40:41]Write i2c OK [18:40:41]MH_I2C_Read... [18:40:41]Read from MH i2c: F0 [18:40:41]MH_I2C_Read... [18:40:41]Read from MH i2c: F0 09 00 [18:40:41]MH_I2C_Read... [18:40:41]Read from MH i2c: F0 09 00 33 09 00 A9 DA 1F 67 22 05 6E 64 36 [18:40:41]GetLastDocTimeStamp 1730140777 [18:40:41]current date 1730140841 [18:40:41]FM_GetShiftState [18:40:41]SAM_PROTO_GetShiftState [18:40:41]wFMCommunicate request_size=4 [18:40:41]MH_SAM_APDU [18:40:41]CAPDU: 80 13 01 00 [18:40:41]Write to MH i2c: E2 08 00 34 09 80 13 01 00 00 00 00 00 BA [18:40:41]Write i2c OK [18:40:41]MH_I2C_Read... [18:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:41]Read from MH i2c: E2 [18:40:41]MH_I2C_Read... [18:40:41]Read from MH i2c: E2 0E 00 [18:40:41]MH_I2C_Read... [18:40:41]Read from MH i2c: E2 0E 00 34 09 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 0A [18:40:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:40:41]wFMCommunicate OK [18:40:41]SAM_PROTO_GetShiftState done [18:40:41]FM_GetShiftState done [18:40:41]opened in 1730075620 [18:40:41]opened+sec_in_day 1730162020 [18:40:41]quantity*price = 47030 [18:40:41]sum+1 = 47032 [18:40:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.94 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 291 28.10.2024 18:40 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192743 ФПД: 156812553854952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T184041&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192743&fm=156812553854952&tin=02508201610067®Number=0000000000091776&sum=47000 [18:40:42]StoreToDocumentArchive [18:40:42]shift 543 fd 192743 [18:40:42]save to /storage/0543/doc_00192743 [18:40:42]save last doc name /storage/0543/doc_00192743 to /storage/kkm_last_doc_name [18:40:42]save OK [18:40:42]Clear old archive folders... [18:40:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:42]tlvbuf is 00FB1550 [18:40:42]SAM_PROTO_ClearQueue [18:40:42]wFMCommunicate request_size=4 [18:40:42]MH_SAM_APDU [18:40:42]CAPDU: 80 09 00 00 [18:40:42]Write to MH i2c: E2 08 00 41 09 80 09 00 00 00 00 00 00 BC [18:40:42]Write i2c OK [18:40:42]MH_I2C_Read... [18:40:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:42]Read from MH i2c: E2 [18:40:42]MH_I2C_Read... [18:40:42]Read from MH i2c: E2 03 00 [18:40:42]MH_I2C_Read... [18:40:42]Read from MH i2c: E2 03 00 41 09 00 90 00 BE [18:40:42]RAPDU: 90 00 [18:40:42]wFMCommunicate OK [18:40:42]SAM_PROTO_ClearQueue done [18:40:42]KKMCreateOFDPacket [18:40:42]OFDProtocolAddRootSTLVToBuf [18:40:42]FM_MakeSignedData [18:40:42]FM_MakeSignedData [18:40:42]SAM_PROTO_SignData [18:40:42]wFMCommunicate request_size=4 [18:40:42]MH_SAM_APDU [18:40:42]CAPDU: 80 0D 01 02 [18:40:42]Write to MH i2c: E2 08 00 42 09 80 0D 01 02 00 00 00 00 C4 [18:40:42]Write i2c OK [18:40:42]MH_I2C_Read... [18:40:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:42]Read from MH i2c: E2 [18:40:42]MH_I2C_Read... [18:40:42]Read from MH i2c: E2 03 00 [18:40:42]MH_I2C_Read... [18:40:42]Read from MH i2c: E2 03 00 42 09 00 90 00 BF [18:40:42]RAPDU: 90 00 [18:40:42]wFMCommunicate OK [18:40:42]wFMCommunicate request_size=255 [18:40:42]MH_SAM_APDU [18:40: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 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 A9 DA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 F0 02 00 35 04 06 00 8E [18:40:42]Write to MH i2c: E2 02 01 43 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 A9 DA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 F0 02 00 35 04 06 00 8E 00 00 97 [18:40:42]Write i2c OK [18:40:42]MH_I2C_Read... [18:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:42]Read from MH i2c: E2 [18:40:42]MH_I2C_Read... [18:40:42]Read from MH i2c: E2 03 00 [18:40:42]MH_I2C_Read... [18:40:42]Read from MH i2c: E2 03 00 43 09 00 90 00 C0 [18:40:42]RAPDU: 90 00 [18:40:42]wFMCommunicate OK [18:40:42]wFMCommunicate request_size=10 [18:40:42]MH_SAM_APDU [18:40:42]CAPDU: 80 0D 02 02 05 9E C4 91 9F E8 [18:40:42]Write to MH i2c: E2 0D 00 44 09 80 0D 02 02 05 00 9E C4 91 9F E8 00 00 4B [18:40:42]Write i2c OK [18:40:42]MH_I2C_Read... [18:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:43]Read from MH i2c: E2 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: E2 03 00 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: E2 03 00 44 09 00 90 00 C1 [18:40:43]RAPDU: 90 00 [18:40:43]wFMCommunicate OK [18:40:43]wFMCommunicate request_size=4 [18:40:43]MH_SAM_APDU [18:40:43]CAPDU: 80 0D 03 02 [18:40:43]Write to MH i2c: E2 08 00 45 09 80 0D 03 02 00 00 00 00 C9 [18:40:43]Write i2c OK [18:40:43]MH_I2C_Read... [18:40:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:43]Read from MH i2c: E2 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: E2 0B 00 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: E2 0B 00 45 09 00 B6 43 84 AF BC EF EF 8E 90 00 1E [18:40:43]RAPDU: B6 43 84 AF BC EF EF 8E 90 00 [18:40:43]wFMCommunicate OK [18:40:43]SAM_PROTO_SignData done [18:40:43]FM_MakeSignedData done [18:40:43]CreateOFDProtocolMessage [18:40:43]wFMCommunicate request_size=4 [18:40:43]MH_SAM_APDU [18:40:43]CAPDU: 80 11 00 00 [18:40:43]Write to MH i2c: E2 08 00 46 09 80 11 00 00 00 00 00 00 C9 [18:40:43]Write i2c OK [18:40:43]MH_I2C_Read... [18:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:43]Read from MH i2c: E2 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: E2 17 00 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: E2 17 00 46 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1C [18:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:40:43]wFMCommunicate OK [18:40:43]CreateOFDProtocolMessage done [18:40:43]OFDSenderStorePacket 192743 [18:40:43]StoreOFDPacket docnum=192743 [18:40:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 68 07 01 0F 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 A9 DA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 F0 02 00 35 04 06 00 8E 9E C4 91 9F E8 B6 43 84 AF BC EF EF 8E [18:40:43]CheckFolder [18:40:43]dirname=/storage/ofd_packets [18:40:43]CheckFolder done [18:40:43]ProducePacketName [18:40:43]name=ofd_packets/00192743 [18:40:43]NVStorageSaveData ofd_packets/00192743 [18:40:43]File name is /storage/ofd_packets/00192743 [18:40:43]Write 301 bytes [18:40:43]NVStorageSaveData done [18:40:43]OFDSenderStorePacket done [18:40:43]KKMCreateOFDPacket done [18:40:43]NVStorageSaveData kkm_last_timestamp [18:40:43]File name is /storage/kkm_last_timestamp [18:40:43]Write 4 bytes [18:40:43]NVStorageSaveData done [18:40:43]ExternCall_PrintAddStr [18:40:43]wPrintStart [18:40:43]Write to MH i2c: 01 00 00 47 09 50 [18:40:43]Write i2c OK [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: 01 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: 01 07 00 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: 01 07 00 47 09 00 00 00 00 00 FF 0F 65 [18:40:43]RasterBufferAndPrint [18:40:43]line Счет N : (1)32070 [18:40:43]line ИНН: 02508201610067 [18:40:43]line Контрольно-Кассовый Чек [18:40:43]line ПРОДАЖА [18:40:43]line ТРК (МРК, ГНК) : 21 [18:40:43]line Товар: 2710124130 [18:40:43]line Аи-92-К-5 [18:40:43]line 7.030 * 66.90 [18:40:43]line = 470.31 [18:40:43]line НДС 12% НСП 1% [18:40:43]line > о реализуемом товаре [18:40:43]line ОКРУГЛЕНИЕ: -0.31 [18:40:43]line ИТОГО: 470.00 [18:40:43]line Внесено: 470.00 [18:40:43]line СДАЧА: 0.00 [18:40:43]line НСП 1% : 4.16 [18:40:43]line НДС 12% : 49.94 [18:40:43]line Наличными: 470.00 [18:40:43]line Безнал.: 0.00 [18:40:43]line Место: АЗС № 170 "Партнер Нефть" [18:40:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:40:43]line СНО: Общий режим [18:40:43]line Чек 291 28.10.2024 18:40 [18:40:43]line Смена: 543 ФФД: 1.0 [18:40:43]line ЗНМ: 0300000110 [18:40:43]line РНМ: 0000000000091776 [18:40:43]line Версия ККМ: 001 [18:40:43]line ФМ: 0000000000871754 [18:40:43]line ФД: 192743 [18:40:43]line ФПД: 156812553854952 [18:40:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T184041&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192743&fm=156812553854952&tin=02508201610067®Number=0000000000091776&sum=47000 [18:40:43]OFD Sender: Processing packet 192743 [packets to send 75, broken 74] [18:40:43]ProducePacketName [18:40:43]name=ofd_packets/00192743 [18:40:43]OFD Sender: To server: pG, [18:40:43]CommunicateWithHost lk.salyk.kg:30040 [18:40:43]ConnectInit lk.salyk.kg [18:40:43]written 0, free lines is 4095 [18:40:43]Connected sock=10 [18:40:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 68 07 01 0F 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 A9 DA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 F0 02 00 35 04 06 00 8E 9E C4 91 9F E8 B6 43 84 AF BC EF EF 8E [18:40:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 19 DB 47 00 FB 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 F0 02 00 F4 03 04 00 6D 7F 1F 67 B6 04 01 00 00 8A 6F 02 08 BD 5F 27 47 [18:40:43]CommunicateWithHost err = 0 [18:40:43]CheckOFDResponse [18:40:43]1017 (14) - 77093643461234 [18:40:43]1041 (16) - 0000000000871754 [18:40:43]1040 (4) - 192743 [18:40:43]1012 (4) - 28.10.2024 12:11 [18:40:43]1206 (1) - 0 [18:40:43]OFD Sender: Remove packet 192743 [18:40:43]ProducePacketName [18:40:43]name=ofd_packets/00192743 [18:40:43]NVStorageDeleteData [18:40:43]Write to MH i2c: 01 00 00 72 09 7B [18:40:43]Write i2c OK [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: 01 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: 01 07 00 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: 01 07 00 72 09 00 00 00 00 00 CA 0C 58 [18:40:43]RasterBufferAndPrint [18:40:43]line [18:40:43]line [18:40:43]line [18:40:43]line [18:40:43]line [18:40:43]written 0, free lines is 3280 [18:40:43]MH_Cut [18:40:43]Write to MH i2c: D1 01 00 79 09 01 54 [18:40:43]Write i2c OK [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: D1 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: D1 01 00 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: D1 01 00 79 09 00 53 [18:40:43]Write to MH i2c: 01 00 00 7A 09 83 [18:40:43]Write i2c OK [18:40:43]MH_I2C_Read... [18:40:44]OFD Sender: No OFD packet to send [18:40:44]*** Cut start [18:40:44]*** Partial cut [18:40:44]*** CUTSNS_PIN = 1 [18:40:44]*** CUTSNS_PIN = 0 [18:40:45]*** Brake cut motor [18:40:45]Read from MH i2c: 01 [18:40:45]MH_I2C_Read... [18:40:45]*** Stop cut motor [18:40:45]*** Cut end [18:40:45]Read from MH i2c: 01 07 00 [18:40:45]MH_I2C_Read... [18:40:45]Read from MH i2c: 01 07 00 7A 09 00 00 00 00 00 FF 0F 98 [18:40:45]process_action close_receipt done [18:40:45]requested_data is exist [18:40:45]produce_requested_data [18:40:45]requested_item fm.sn is exist - process it [18:40:45]wFMCommunicate request_size=4 [18:40:45]MH_SAM_APDU [18:40:45]CAPDU: 80 11 00 00 [18:40:45]Write to MH i2c: E2 08 00 7B 09 80 11 00 00 00 00 00 00 FE [18:40:45]Write i2c OK [18:40:45]MH_I2C_Read... [18:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:45]Read from MH i2c: E2 [18:40:45]MH_I2C_Read... [18:40:45]Read from MH i2c: E2 17 00 [18:40:45]MH_I2C_Read... [18:40:45]Read from MH i2c: E2 17 00 7B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 51 [18:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:40:45]wFMCommunicate OK [18:40:45]requested_item fd.num is exist - process it [18:40:45]SAM_PROTO_GetFieldsCounters [18:40:45]wFMCommunicate request_size=4 [18:40:45]MH_SAM_APDU [18:40:45]CAPDU: 80 13 00 00 [18:40:45]Write to MH i2c: E2 08 00 7C 09 80 13 00 00 00 00 00 00 01 [18:40:45]Write i2c OK [18:40:45]MH_I2C_Read... [18:40:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:45]Read from MH i2c: E2 [18:40:45]MH_I2C_Read... [18:40:45]Read from MH i2c: E2 62 00 [18:40:45]MH_I2C_Read... [18:40:45]Read from MH i2c: E2 62 00 7C 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E7 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [18:40:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E7 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:45]wFMCommunicate OK [18:40:45]SAM_PROTO_GetFieldsCounters done [18:40:45]requested_item shift.num is exist - process it [18:40:45]requested_item shift.opened is exist - process it [18:40:45]req_shift_opened [18:40:45]FM_GetShiftState [18:40:45]SAM_PROTO_GetShiftState [18:40:45]wFMCommunicate request_size=4 [18:40:45]MH_SAM_APDU [18:40:45]CAPDU: 80 13 01 00 [18:40:45]Write to MH i2c: E2 08 00 7D 09 80 13 01 00 00 00 00 00 03 [18:40:45]Write i2c OK [18:40:45]MH_I2C_Read... [18:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:45]Read from MH i2c: E2 [18:40:45]MH_I2C_Read... [18:40:45]Read from MH i2c: E2 0E 00 [18:40:45]MH_I2C_Read... [18:40:45]Read from MH i2c: E2 0E 00 7D 09 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 53 [18:40:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:40:45]wFMCommunicate OK [18:40:45]SAM_PROTO_GetShiftState done [18:40:45]FM_GetShiftState done [18:40:45]req_shift_opened done [18:40:45]requested_item shift.open_date is exist - process it [18:40:45]req_shift_open_date [18:40:45]req_shift_open_date done [18:40:45]produce_requested_data done [18:40:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192743,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:40:45]process_action_free close_receipt [18:40:45]json_value_free [18:40:45]json_value_free done [18:40:45]process_json_proto returns [18:40:45]Send response to host [18:40:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192743,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:40:45]free response buf [18:40:45]execute_script done [18:40:45]execute_script returns [18:40:45]free content buf [18:40:45]Sock 9.Close socket [18:40:45]Sock 9.Thread stoped [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:44]OFD Sender: No OFD packet to send [18:43:49]OFD Sender: No OFD packet to send [18:43:54]OFD Sender: No OFD packet to send [18:43:59]OFD Sender: No OFD packet to send [18:44:04]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [18:44:24]OFD Sender: No OFD packet to send [18:44:29]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]accept exits with 8 [18:46:39]New connection [18:46:39]New thread 3066801508 created [18:46:39]Thread 3066658148 joined [18:46:39]Waiting for new connection... [18:46:39] Sock 8.Parse request [18:46:39]Sock 8.Check first char [18:46:39]Sock 8.First char is OK [18:46:39]request: POST /json_proto HTTP/1.0 [18:46:39]Method: POST [18:46:39]URL: /json_proto [18:46:39]Method is POST - this is cgi request [18:46:39]url: /json_proto [18:46:39]query_string will be loaded in cgi processing [18:46:39]execute_cgi json_proto POST (null) [18:46:39]execute_cgi path=json_proto method=POST [18:46:39]POST find Content-Length [18:46:39]Host: 172.17.63.131:8080 [18:46:39]Content-Length: 676 [18:46:39]Content-Type: application/json [18:46:39] [18:46:39]POST finish read [18:46:39]Found Content-Length = 676 [18:46:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:39]execute_script... [18:46:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:39]POST & json_proto [18:46:39]process_json_proto [18:46:39]json parsed OK: [18:46:39]protocol is kg_v1.0 [18:46:39]action value=close_receipt [18:46:39]process_action close_receipt [18:46:39]cmd_close_receipt [18:46:39]MH_GetDate [18:46:39]Write to MH i2c: F0 00 00 7E 09 76 [18:46:39]Write i2c OK [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: F0 [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: F0 09 00 [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: F0 09 00 7E 09 00 0F DC 1F 67 22 05 6E 64 E9 [18:46:39]GetLastDocTimeStamp 1730140841 [18:46:39]current date 1730141199 [18:46:39]FM_GetShiftState [18:46:39]SAM_PROTO_GetShiftState [18:46:39]wFMCommunicate request_size=4 [18:46:39]MH_SAM_APDU [18:46:39]CAPDU: 80 13 01 00 [18:46:39]Write to MH i2c: E2 08 00 7F 09 80 13 01 00 00 00 00 00 05 [18:46:39]Write i2c OK [18:46:39]MH_I2C_Read... [18:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:39]Read from MH i2c: E2 [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: E2 0E 00 [18:46:39]MH_I2C_Read... [18:46:39]Read from MH i2c: E2 0E 00 7F 09 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 55 [18:46:39]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:46:39]wFMCommunicate OK [18:46:39]SAM_PROTO_GetShiftState done [18:46:39]FM_GetShiftState done [18:46:39]opened in 1730075620 [18:46:39]opened+sec_in_day 1730162020 [18:46:39]quantity*price = 50041 [18:46:39]sum+1 = 50042 [18:46:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 292 28.10.2024 18:46 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192744 ФПД: 118373483877770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T184639&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192744&fm=118373483877770&tin=02508201610067®Number=0000000000091776&sum=50000 [18:46:40]StoreToDocumentArchive [18:46:40]shift 543 fd 192744 [18:46:40]save to /storage/0543/doc_00192744 [18:46:40]save last doc name /storage/0543/doc_00192744 to /storage/kkm_last_doc_name [18:46:40]save OK [18:46:40]Clear old archive folders... [18:46:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:40]tlvbuf is 00EED970 [18:46:40]SAM_PROTO_ClearQueue [18:46:40]wFMCommunicate request_size=4 [18:46:40]MH_SAM_APDU [18:46:40]CAPDU: 80 09 00 00 [18:46:40]Write to MH i2c: E2 08 00 8C 09 80 09 00 00 00 00 00 00 07 [18:46:40]Write i2c OK [18:46:40]MH_I2C_Read... [18:46:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:40]Read from MH i2c: E2 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: E2 03 00 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: E2 03 00 8C 09 00 90 00 09 [18:46:40]RAPDU: 90 00 [18:46:40]wFMCommunicate OK [18:46:40]SAM_PROTO_ClearQueue done [18:46:40]KKMCreateOFDPacket [18:46:40]OFDProtocolAddRootSTLVToBuf [18:46:40]FM_MakeSignedData [18:46:40]FM_MakeSignedData [18:46:40]SAM_PROTO_SignData [18:46:40]wFMCommunicate request_size=4 [18:46:40]MH_SAM_APDU [18:46:40]CAPDU: 80 0D 01 02 [18:46:40]Write to MH i2c: E2 08 00 8D 09 80 0D 01 02 00 00 00 00 0F [18:46:40]Write i2c OK [18:46:40]MH_I2C_Read... [18:46:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:40]Read from MH i2c: E2 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: E2 03 00 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: E2 03 00 8D 09 00 90 00 0A [18:46:40]RAPDU: 90 00 [18:46:40]wFMCommunicate OK [18:46:40]wFMCommunicate request_size=255 [18:46:40]MH_SAM_APDU [18:46:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 0F DC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 F0 02 00 35 04 06 00 6B [18:46:40]Write to MH i2c: E2 02 01 8E 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 0F DC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 F0 02 00 35 04 06 00 6B 00 00 9F [18:46:40]Write i2c OK [18:46:40]MH_I2C_Read... [18:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:40]Read from MH i2c: E2 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: E2 03 00 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: E2 03 00 8E 09 00 90 00 0B [18:46:40]RAPDU: 90 00 [18:46:40]wFMCommunicate OK [18:46:40]wFMCommunicate request_size=10 [18:46:40]MH_SAM_APDU [18:46:40]CAPDU: 80 0D 02 02 05 A8 F9 75 15 8A [18:46:40]Write to MH i2c: E2 0D 00 8F 09 80 0D 02 02 05 00 A8 F9 75 15 8A 00 00 D1 [18:46:40]Write i2c OK [18:46:40]MH_I2C_Read... [18:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:40]Read from MH i2c: E2 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: E2 03 00 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: E2 03 00 8F 09 00 90 00 0C [18:46:40]RAPDU: 90 00 [18:46:40]wFMCommunicate OK [18:46:40]wFMCommunicate request_size=4 [18:46:40]MH_SAM_APDU [18:46:40]CAPDU: 80 0D 03 02 [18:46:40]Write to MH i2c: E2 08 00 90 09 80 0D 03 02 00 00 00 00 14 [18:46:40]Write i2c OK [18:46:40]MH_I2C_Read... [18:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:40]Read from MH i2c: E2 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: E2 0B 00 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: E2 0B 00 90 09 00 20 F5 1A 3C 42 34 0A D4 90 00 D4 [18:46:40]RAPDU: 20 F5 1A 3C 42 34 0A D4 90 00 [18:46:40]wFMCommunicate OK [18:46:40]SAM_PROTO_SignData done [18:46:40]FM_MakeSignedData done [18:46:40]CreateOFDProtocolMessage [18:46:40]wFMCommunicate request_size=4 [18:46:40]MH_SAM_APDU [18:46:40]CAPDU: 80 11 00 00 [18:46:40]Write to MH i2c: E2 08 00 91 09 80 11 00 00 00 00 00 00 14 [18:46:40]Write i2c OK [18:46:40]MH_I2C_Read... [18:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:40]Read from MH i2c: E2 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: E2 17 00 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: E2 17 00 91 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 67 [18:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:46:40]wFMCommunicate OK [18:46:40]CreateOFDProtocolMessage done [18:46:40]OFDSenderStorePacket 192744 [18:46:40]StoreOFDPacket docnum=192744 [18:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7F B8 07 01 76 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 0F DC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 F0 02 00 35 04 06 00 6B A8 F9 75 15 8A 20 F5 1A 3C 42 34 0A D4 [18:46:40]CheckFolder [18:46:40]dirname=/storage/ofd_packets [18:46:40]CheckFolder done [18:46:40]ProducePacketName [18:46:40]name=ofd_packets/00192744 [18:46:40]NVStorageSaveData ofd_packets/00192744 [18:46:40]File name is /storage/ofd_packets/00192744 [18:46:40]Write 301 bytes [18:46:40]NVStorageSaveData done [18:46:40]OFDSenderStorePacket done [18:46:40]KKMCreateOFDPacket done [18:46:40]NVStorageSaveData kkm_last_timestamp [18:46:40]File name is /storage/kkm_last_timestamp [18:46:40]Write 4 bytes [18:46:40]NVStorageSaveData done [18:46:40]ExternCall_PrintAddStr [18:46:40]wPrintStart [18:46:40]Write to MH i2c: 01 00 00 92 09 9B [18:46:40]Write i2c OK [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: 01 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: 01 07 00 [18:46:40]MH_I2C_Read... [18:46:40]Read from MH i2c: 01 07 00 92 09 00 00 00 00 00 FF 0F B0 [18:46:40]RasterBufferAndPrint [18:46:40]line Счет N : (1)32071 [18:46:40]line ИНН: 02508201610067 [18:46:40]line Контрольно-Кассовый Чек [18:46:40]line ПРОДАЖА [18:46:40]line ТРК (МРК, ГНК) : 21 [18:46:40]line Товар: 2710124130 [18:46:40]line Аи-92-К-5 [18:46:40]line 7.480 * 66.90 [18:46:40]line = 500.41 [18:46:40]line НДС 12% НСП 1% [18:46:40]line > о реализуемом товаре [18:46:40]line ОКРУГЛЕНИЕ: -0.41 [18:46:40]line ИТОГО: 500.00 [18:46:40]line Внесено: 500.00 [18:46:40]line СДАЧА: 0.00 [18:46:40]line НСП 1% : 4.43 [18:46:40]line НДС 12% : 53.14 [18:46:40]line Наличными: 500.00 [18:46:40]line Безнал.: 0.00 [18:46:40]line Место: АЗС № 170 "Партнер Нефть" [18:46:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:46:40]line СНО: Общий режим [18:46:40]line Чек 292 28.10.2024 18:46 [18:46:40]line Смена: 543 ФФД: 1.0 [18:46:40]line ЗНМ: 0300000110 [18:46:40]line РНМ: 0000000000091776 [18:46:40]line Версия ККМ: 001 [18:46:40]line ФМ: 0000000000871754 [18:46:40]line ФД: 192744 [18:46:40]line ФПД: 118373483877770 [18:46:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T184639&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192744&fm=118373483877770&tin=02508201610067®Number=0000000000091776&sum=50000 [18:46:41]OFD Sender: Processing packet 192744 [packets to send 75, broken 74] [18:46:41]ProducePacketName [18:46:41]name=ofd_packets/00192744 [18:46:41]OFD Sender: To server: pG, [18:46:41]CommunicateWithHost lk.salyk.kg:30040 [18:46:41]ConnectInit lk.salyk.kg [18:46:41]written 0, free lines is 4095 [18:46:41]Connected sock=10 [18:46:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7F B8 07 01 76 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 0F DC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 F0 02 00 35 04 06 00 6B A8 F9 75 15 8A 20 F5 1A 3C 42 34 0A D4 [18:46:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A9 3D 47 00 BF 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 F0 02 00 F4 03 04 00 D3 80 1F 67 B6 04 01 00 00 ED EA D9 C9 81 4C AC 09 [18:46:41]CommunicateWithHost err = 0 [18:46:41]CheckOFDResponse [18:46:41]1017 (14) - 77093643461234 [18:46:41]1041 (16) - 0000000000871754 [18:46:41]1040 (4) - 192744 [18:46:41]1012 (4) - 28.10.2024 12:17 [18:46:41]1206 (1) - 0 [18:46:41]OFD Sender: Remove packet 192744 [18:46:41]ProducePacketName [18:46:41]name=ofd_packets/00192744 [18:46:41]NVStorageDeleteData [18:46:41]Write to MH i2c: 01 00 00 BD 09 C6 [18:46:41]Write i2c OK [18:46:41]MH_I2C_Read... [18:46:41]Read from MH i2c: 01 [18:46:41]MH_I2C_Read... [18:46:41]Read from MH i2c: 01 07 00 [18:46:41]MH_I2C_Read... [18:46:41]Read from MH i2c: 01 07 00 BD 09 00 00 00 00 00 C0 0C 99 [18:46:41]RasterBufferAndPrint [18:46:41]line [18:46:41]line [18:46:41]line [18:46:41]line [18:46:41]line [18:46:41]written 0, free lines is 3270 [18:46:41]MH_Cut [18:46:41]Write to MH i2c: D1 01 00 C4 09 01 9F [18:46:41]Write i2c OK [18:46:41]MH_I2C_Read... [18:46:41]Read from MH i2c: D1 [18:46:41]MH_I2C_Read... [18:46:41]Read from MH i2c: D1 01 00 [18:46:41]MH_I2C_Read... [18:46:41]Read from MH i2c: D1 01 00 C4 09 00 9E [18:46:41]Write to MH i2c: 01 00 00 C5 09 CE [18:46:41]Write i2c OK [18:46:41]MH_I2C_Read... [18:46:42]OFD Sender: No OFD packet to send [18:46:42]*** Cut start [18:46:42]*** Partial cut [18:46:42]*** CUTSNS_PIN = 1 [18:46:42]*** CUTSNS_PIN = 0 [18:46:42]*** Brake cut motor [18:46:43]Read from MH i2c: 01 [18:46:43]MH_I2C_Read... [18:46:43]*** Stop cut motor [18:46:43]*** Cut end [18:46:43]Read from MH i2c: 01 07 00 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: 01 07 00 C5 09 00 00 00 00 00 FF 0F E3 [18:46:43]process_action close_receipt done [18:46:43]requested_data is exist [18:46:43]produce_requested_data [18:46:43]requested_item fm.sn is exist - process it [18:46:43]wFMCommunicate request_size=4 [18:46:43]MH_SAM_APDU [18:46:43]CAPDU: 80 11 00 00 [18:46:43]Write to MH i2c: E2 08 00 C6 09 80 11 00 00 00 00 00 00 49 [18:46:43]Write i2c OK [18:46:43]MH_I2C_Read... [18:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:43]Read from MH i2c: E2 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 17 00 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 17 00 C6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9C [18:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:46:43]wFMCommunicate OK [18:46:43]requested_item fd.num is exist - process it [18:46:43]SAM_PROTO_GetFieldsCounters [18:46:43]wFMCommunicate request_size=4 [18:46:43]MH_SAM_APDU [18:46:43]CAPDU: 80 13 00 00 [18:46:43]Write to MH i2c: E2 08 00 C7 09 80 13 00 00 00 00 00 00 4C [18:46:43]Write i2c OK [18:46:43]MH_I2C_Read... [18:46:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:43]Read from MH i2c: E2 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 62 00 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 62 00 C7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E8 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [18:46:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E8 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:43]wFMCommunicate OK [18:46:43]SAM_PROTO_GetFieldsCounters done [18:46:43]requested_item shift.num is exist - process it [18:46:43]requested_item shift.opened is exist - process it [18:46:43]req_shift_opened [18:46:43]FM_GetShiftState [18:46:43]SAM_PROTO_GetShiftState [18:46:43]wFMCommunicate request_size=4 [18:46:43]MH_SAM_APDU [18:46:43]CAPDU: 80 13 01 00 [18:46:43]Write to MH i2c: E2 08 00 C8 09 80 13 01 00 00 00 00 00 4E [18:46:43]Write i2c OK [18:46:43]MH_I2C_Read... [18:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:43]Read from MH i2c: E2 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 0E 00 [18:46:43]MH_I2C_Read... [18:46:43]Read from MH i2c: E2 0E 00 C8 09 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 9E [18:46:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:46:43]wFMCommunicate OK [18:46:43]SAM_PROTO_GetShiftState done [18:46:43]FM_GetShiftState done [18:46:43]req_shift_opened done [18:46:43]requested_item shift.open_date is exist - process it [18:46:43]req_shift_open_date [18:46:43]req_shift_open_date done [18:46:43]produce_requested_data done [18:46:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192744,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:46:43]process_action_free close_receipt [18:46:43]json_value_free [18:46:43]json_value_free done [18:46:43]process_json_proto returns [18:46:43]Send response to host [18:46:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192744,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:46:43]free response buf [18:46:43]execute_script done [18:46:43]execute_script returns [18:46:43]free content buf [18:46:43]Sock 8.Close socket [18:46:43]Sock 8.Thread stoped [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:32]OFD Sender: No OFD packet to send [18:49:37]OFD Sender: No OFD packet to send [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:54]accept exits with 9 [18:51:54]New connection [18:51:54]New thread 3066658148 created [18:51:54]Thread 3066801508 joined [18:51:54]Waiting for new connection... [18:51:54] Sock 9.Parse request [18:51:54]Sock 9.Check first char [18:51:54]Sock 9.First char is OK [18:51:54]request: POST /json_proto HTTP/1.0 [18:51:54]Method: POST [18:51:54]URL: /json_proto [18:51:54]Method is POST - this is cgi request [18:51:54]url: /json_proto [18:51:54]query_string will be loaded in cgi processing [18:51:54]execute_cgi json_proto POST (null) [18:51:54]execute_cgi path=json_proto method=POST [18:51:54]POST find Content-Length [18:51:54]Host: 172.17.63.131:8080 [18:51:54]Content-Length: 676 [18:51:54]Content-Type: application/json [18:51:54] [18:51:54]POST finish read [18:51:54]Found Content-Length = 676 [18:51:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:54]execute_script... [18:51: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)32072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:54]POST & json_proto [18:51:54]process_json_proto [18:51:54]json parsed OK: [18:51:54]protocol is kg_v1.0 [18:51:54]action value=close_receipt [18:51:54]process_action close_receipt [18:51:54]cmd_close_receipt [18:51:54]MH_GetDate [18:51:54]Write to MH i2c: F0 00 00 C9 09 C1 [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: F0 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: F0 09 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: F0 09 00 C9 09 00 4B DD 1F 67 22 05 6E 64 71 [18:51:54]GetLastDocTimeStamp 1730141199 [18:51:54]current date 1730141515 [18:51:54]FM_GetShiftState [18:51:54]SAM_PROTO_GetShiftState [18:51:54]wFMCommunicate request_size=4 [18:51:54]MH_SAM_APDU [18:51:54]CAPDU: 80 13 01 00 [18:51:54]Write to MH i2c: E2 08 00 CA 09 80 13 01 00 00 00 00 00 50 [18:51:54]Write i2c OK [18:51:54]MH_I2C_Read... [18:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:54]Read from MH i2c: E2 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 0E 00 [18:51:54]MH_I2C_Read... [18:51:54]Read from MH i2c: E2 0E 00 CA 09 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A0 [18:51:54]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:51:54]wFMCommunicate OK [18:51:54]SAM_PROTO_GetShiftState done [18:51:54]FM_GetShiftState done [18:51:54]opened in 1730075620 [18:51:54]opened+sec_in_day 1730162020 [18:51:54]quantity*price = 20003 [18:51:54]sum+1 = 20004 [18:51:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 293 28.10.2024 18:51 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192745 ФПД: 266605679599696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T185155&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192745&fm=266605679599696&tin=02508201610067®Number=0000000000091776&sum=20000 [18:51:56]StoreToDocumentArchive [18:51:56]shift 543 fd 192745 [18:51:56]save to /storage/0543/doc_00192745 [18:51:56]save last doc name /storage/0543/doc_00192745 to /storage/kkm_last_doc_name [18:51:56]save OK [18:51:56]Clear old archive folders... [18:51:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:51:56]tlvbuf is 00F9A320 [18:51:56]SAM_PROTO_ClearQueue [18:51:56]wFMCommunicate request_size=4 [18:51:56]MH_SAM_APDU [18:51:56]CAPDU: 80 09 00 00 [18:51:56]Write to MH i2c: E2 08 00 D7 09 80 09 00 00 00 00 00 00 52 [18:51:56]Write i2c OK [18:51:56]MH_I2C_Read... [18:51:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:56]Read from MH i2c: E2 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: E2 03 00 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: E2 03 00 D7 09 00 90 00 54 [18:51:56]RAPDU: 90 00 [18:51:56]wFMCommunicate OK [18:51:56]SAM_PROTO_ClearQueue done [18:51:56]KKMCreateOFDPacket [18:51:56]OFDProtocolAddRootSTLVToBuf [18:51:56]FM_MakeSignedData [18:51:56]FM_MakeSignedData [18:51:56]SAM_PROTO_SignData [18:51:56]wFMCommunicate request_size=4 [18:51:56]MH_SAM_APDU [18:51:56]CAPDU: 80 0D 01 02 [18:51:56]Write to MH i2c: E2 08 00 D8 09 80 0D 01 02 00 00 00 00 5A [18:51:56]Write i2c OK [18:51:56]MH_I2C_Read... [18:51:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:56]Read from MH i2c: E2 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: E2 03 00 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: E2 03 00 D8 09 00 90 00 55 [18:51:56]RAPDU: 90 00 [18:51:56]wFMCommunicate OK [18:51:56]wFMCommunicate request_size=255 [18:51:56]MH_SAM_APDU [18:51:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 4B DD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 F0 02 00 35 04 06 00 F2 [18:51:56]Write to MH i2c: E2 02 01 D9 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 4B DD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 F0 02 00 35 04 06 00 F2 00 00 72 [18:51:56]Write i2c OK [18:51:56]MH_I2C_Read... [18:51:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:56]Read from MH i2c: E2 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: E2 03 00 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: E2 03 00 D9 09 00 90 00 56 [18:51:56]RAPDU: 90 00 [18:51:56]wFMCommunicate OK [18:51:56]wFMCommunicate request_size=10 [18:51:56]MH_SAM_APDU [18:51:56]CAPDU: 80 0D 02 02 05 79 F8 D3 E0 50 [18:51:56]Write to MH i2c: E2 0D 00 DA 09 80 0D 02 02 05 00 79 F8 D3 E0 50 00 00 DB [18:51:56]Write i2c OK [18:51:56]MH_I2C_Read... [18:51:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:56]Read from MH i2c: E2 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: E2 03 00 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: E2 03 00 DA 09 00 90 00 57 [18:51:56]RAPDU: 90 00 [18:51:56]wFMCommunicate OK [18:51:56]wFMCommunicate request_size=4 [18:51:56]MH_SAM_APDU [18:51:56]CAPDU: 80 0D 03 02 [18:51:56]Write to MH i2c: E2 08 00 DB 09 80 0D 03 02 00 00 00 00 5F [18:51:56]Write i2c OK [18:51:56]MH_I2C_Read... [18:51:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:56]Read from MH i2c: E2 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: E2 0B 00 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: E2 0B 00 DB 09 00 A0 8D B9 94 B0 2D 83 6B 90 00 A5 [18:51:56]RAPDU: A0 8D B9 94 B0 2D 83 6B 90 00 [18:51:56]wFMCommunicate OK [18:51:56]SAM_PROTO_SignData done [18:51:56]FM_MakeSignedData done [18:51:56]CreateOFDProtocolMessage [18:51:56]wFMCommunicate request_size=4 [18:51:56]MH_SAM_APDU [18:51:56]CAPDU: 80 11 00 00 [18:51:56]Write to MH i2c: E2 08 00 DC 09 80 11 00 00 00 00 00 00 5F [18:51:56]Write i2c OK [18:51:56]MH_I2C_Read... [18:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:56]Read from MH i2c: E2 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: E2 17 00 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: E2 17 00 DC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B2 [18:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:51:56]wFMCommunicate OK [18:51:56]CreateOFDProtocolMessage done [18:51:56]OFDSenderStorePacket 192745 [18:51:56]StoreOFDPacket docnum=192745 [18:51:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B0 DE 07 01 52 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 4B DD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 F0 02 00 35 04 06 00 F2 79 F8 D3 E0 50 A0 8D B9 94 B0 2D 83 6B [18:51:56]CheckFolder [18:51:56]dirname=/storage/ofd_packets [18:51:56]CheckFolder done [18:51:56]ProducePacketName [18:51:56]name=ofd_packets/00192745 [18:51:56]NVStorageSaveData ofd_packets/00192745 [18:51:56]File name is /storage/ofd_packets/00192745 [18:51:56]Write 301 bytes [18:51:56]NVStorageSaveData done [18:51:56]OFDSenderStorePacket done [18:51:56]KKMCreateOFDPacket done [18:51:56]NVStorageSaveData kkm_last_timestamp [18:51:56]File name is /storage/kkm_last_timestamp [18:51:56]Write 4 bytes [18:51:56]NVStorageSaveData done [18:51:56]ExternCall_PrintAddStr [18:51:56]wPrintStart [18:51:56]Write to MH i2c: 01 00 00 DD 09 E6 [18:51:56]Write i2c OK [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: 01 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: 01 07 00 [18:51:56]MH_I2C_Read... [18:51:56]Read from MH i2c: 01 07 00 DD 09 00 00 00 00 00 FF 0F FB [18:51:56]RasterBufferAndPrint [18:51:56]line Счет N : (1)32072 [18:51:56]line ИНН: 02508201610067 [18:51:56]line Контрольно-Кассовый Чек [18:51:56]line ПРОДАЖА [18:51:56]line ТРК (МРК, ГНК) : 21 [18:51:56]line Товар: 2710124130 [18:51:56]line Аи-92-К-5 [18:51:56]line 2.990 * 66.90 [18:51:56]line = 200.03 [18:51:56]line НДС 12% НСП 1% [18:51:56]line > о реализуемом товаре [18:51:56]line ОКРУГЛЕНИЕ: -0.03 [18:51:56]line ИТОГО: 200.00 [18:51:56]line Внесено: 200.00 [18:51:56]line СДАЧА: 0.00 [18:51:56]line НСП 1% : 1.77 [18:51:56]line НДС 12% : 21.24 [18:51:56]line Наличными: 200.00 [18:51:56]line Безнал.: 0.00 [18:51:56]line Место: АЗС № 170 "Партнер Нефть" [18:51:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:51:56]line СНО: Общий режим [18:51:56]line Чек 293 28.10.2024 18:51 [18:51:56]line Смена: 543 ФФД: 1.0 [18:51:56]line ЗНМ: 0300000110 [18:51:56]line РНМ: 0000000000091776 [18:51:56]line Версия ККМ: 001 [18:51:56]line ФМ: 0000000000871754 [18:51:56]line ФД: 192745 [18:51:56]line ФПД: 266605679599696 [18:51:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T185155&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192745&fm=266605679599696&tin=02508201610067®Number=0000000000091776&sum=20000 [18:51:56]OFD Sender: Processing packet 192745 [packets to send 75, broken 74] [18:51:56]ProducePacketName [18:51:56]name=ofd_packets/00192745 [18:51:56]OFD Sender: To server: pG, [18:51:56]CommunicateWithHost lk.salyk.kg:30040 [18:51:56]ConnectInit lk.salyk.kg [18:51:56]written 0, free lines is 4095 [18:51:57]Connected sock=10 [18:51:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B0 DE 07 01 52 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 4B DD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 F0 02 00 35 04 06 00 F2 79 F8 D3 E0 50 A0 8D B9 94 B0 2D 83 6B [18:51:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F7 22 47 00 E2 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 F0 02 00 F4 03 04 00 0E 82 1F 67 B6 04 01 00 00 AC 8C 9D 95 A2 24 C4 BA [18:51:57]CommunicateWithHost err = 0 [18:51:57]CheckOFDResponse [18:51:57]1017 (14) - 77093643461234 [18:51:57]1041 (16) - 0000000000871754 [18:51:57]1040 (4) - 192745 [18:51:57]1012 (4) - 28.10.2024 12:22 [18:51:57]1206 (1) - 0 [18:51:57]OFD Sender: Remove packet 192745 [18:51:57]ProducePacketName [18:51:57]name=ofd_packets/00192745 [18:51:57]NVStorageDeleteData [18:51:57]Write to MH i2c: 01 00 00 08 0A 12 [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: 01 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: 01 07 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: 01 07 00 08 0A 00 00 00 00 00 AD 0C D2 [18:51:57]RasterBufferAndPrint [18:51:57]line [18:51:57]line [18:51:57]line [18:51:57]line [18:51:57]line [18:51:57]written 0, free lines is 3253 [18:51:57]MH_Cut [18:51:57]Write to MH i2c: D1 01 00 0F 0A 01 EB [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: D1 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: D1 01 00 [18:51:57]MH_I2C_Read... [18:51:57]Read from MH i2c: D1 01 00 0F 0A 00 EA [18:51:57]Write to MH i2c: 01 00 00 10 0A 1A [18:51:57]Write i2c OK [18:51:57]MH_I2C_Read... [18:51:57]OFD Sender: No OFD packet to send [18:51:58]*** Cut start [18:51:58]*** Partial cut [18:51:58]*** CUTSNS_PIN = 1 [18:51:58]*** CUTSNS_PIN = 0 [18:51:58]*** Brake cut motor [18:51:58]Read from MH i2c: 01 [18:51:58]MH_I2C_Read... [18:51:58]*** Stop cut motor [18:51:58]*** Cut end [18:51:58]Read from MH i2c: 01 07 00 [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: 01 07 00 10 0A 00 00 00 00 00 FF 0F 2F [18:51:58]process_action close_receipt done [18:51:58]requested_data is exist [18:51:58]produce_requested_data [18:51:58]requested_item fm.sn is exist - process it [18:51:58]wFMCommunicate request_size=4 [18:51:58]MH_SAM_APDU [18:51:58]CAPDU: 80 11 00 00 [18:51:58]Write to MH i2c: E2 08 00 11 0A 80 11 00 00 00 00 00 00 95 [18:51:58]Write i2c OK [18:51:58]MH_I2C_Read... [18:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:58]Read from MH i2c: E2 [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: E2 17 00 [18:51:58]MH_I2C_Read... [18:51:58]Read from MH i2c: E2 17 00 11 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E8 [18:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:51:58]wFMCommunicate OK [18:51:58]requested_item fd.num is exist - process it [18:51:58]SAM_PROTO_GetFieldsCounters [18:51:58]wFMCommunicate request_size=4 [18:51:58]MH_SAM_APDU [18:51:58]CAPDU: 80 13 00 00 [18:51:58]Write to MH i2c: E2 08 00 12 0A 80 13 00 00 00 00 00 00 98 [18:51:58]Write i2c OK [18:51:58]MH_I2C_Read... [18:51:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:59]Read from MH i2c: E2 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: E2 62 00 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: E2 62 00 12 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E9 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [18:51:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E9 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:59]wFMCommunicate OK [18:51:59]SAM_PROTO_GetFieldsCounters done [18:51:59]requested_item shift.num is exist - process it [18:51:59]requested_item shift.opened is exist - process it [18:51:59]req_shift_opened [18:51:59]FM_GetShiftState [18:51:59]SAM_PROTO_GetShiftState [18:51:59]wFMCommunicate request_size=4 [18:51:59]MH_SAM_APDU [18:51:59]CAPDU: 80 13 01 00 [18:51:59]Write to MH i2c: E2 08 00 13 0A 80 13 01 00 00 00 00 00 9A [18:51:59]Write i2c OK [18:51:59]MH_I2C_Read... [18:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:59]Read from MH i2c: E2 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: E2 0E 00 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: E2 0E 00 13 0A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EA [18:51:59]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [18:51:59]wFMCommunicate OK [18:51:59]SAM_PROTO_GetShiftState done [18:51:59]FM_GetShiftState done [18:51:59]req_shift_opened done [18:51:59]requested_item shift.open_date is exist - process it [18:51:59]req_shift_open_date [18:51:59]req_shift_open_date done [18:51:59]produce_requested_data done [18:51:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192745,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [18:51:59]process_action_free close_receipt [18:51:59]json_value_free [18:51:59]json_value_free done [18:51:59]process_json_proto returns [18:51:59]Send response to host [18:51:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192745,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [18:51:59]free response buf [18:51:59]execute_script done [18:51:59]execute_script returns [18:51:59]free content buf [18:51:59]Sock 9.Close socket [18:51:59]Sock 9.Thread stoped [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:37]OFD Sender: No OFD packet to send [18:54:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:57]OFD Sender: No OFD packet to send [18:55:02]OFD Sender: No OFD packet to send [18:55:07]OFD Sender: No OFD packet to send [18:55:12]OFD Sender: No OFD packet to send [18:55:17]OFD Sender: No OFD packet to send [18:55:22]OFD Sender: No OFD packet to send [18:55:27]OFD Sender: No OFD packet to send [18:55:32]OFD Sender: No OFD packet to send [18:55:37]OFD Sender: No OFD packet to send [18:55:42]OFD Sender: No OFD packet to send [18:55:47]OFD Sender: No OFD packet to send [18:55:52]OFD Sender: No OFD packet to send [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:43]OFD Sender: No OFD packet to send [18:56:48]OFD Sender: No OFD packet to send [18:56:53]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:57:03]OFD Sender: No OFD packet to send [18:57:08]OFD Sender: No OFD packet to send [18:57:13]OFD Sender: No OFD packet to send [18:57:18]OFD Sender: No OFD packet to send [18:57:23]OFD Sender: No OFD packet to send [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:58:03]OFD Sender: No OFD packet to send [18:58:08]OFD Sender: No OFD packet to send [18:58:13]OFD Sender: No OFD packet to send [18:58:18]OFD Sender: No OFD packet to send [18:58:23]OFD Sender: No OFD packet to send [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:19]accept exits with 8 [19:03:19]New connection [19:03:19]New thread 3066801508 created [19:03:19]Thread 3066658148 joined [19:03:19]Waiting for new connection... [19:03:19] Sock 8.Parse request [19:03:19]Sock 8.Check first char [19:03:19]Sock 8.First char is OK [19:03:19]request: POST /json_proto HTTP/1.0 [19:03:19]Method: POST [19:03:19]URL: /json_proto [19:03:19]Method is POST - this is cgi request [19:03:19]url: /json_proto [19:03:19]query_string will be loaded in cgi processing [19:03:19]execute_cgi json_proto POST (null) [19:03:19]execute_cgi path=json_proto method=POST [19:03:19]POST find Content-Length [19:03:19]Host: 172.17.63.131:8080 [19:03:19]Content-Length: 676 [19:03:19]Content-Type: application/json [19:03:19] [19:03:19]POST finish read [19:03:19]Found Content-Length = 676 [19:03:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.180, "sum" : 480.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:19]execute_script... [19:03: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)32073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.180, "sum" : 480.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:19]POST & json_proto [19:03:19]process_json_proto [19:03:19]json parsed OK: [19:03:19]protocol is kg_v1.0 [19:03:19]action value=close_receipt [19:03:19]process_action close_receipt [19:03:19]cmd_close_receipt [19:03:19]MH_GetDate [19:03:19]Write to MH i2c: F0 00 00 14 0A 0D [19:03:19]Write i2c OK [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: F0 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: F0 09 00 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: F0 09 00 14 0A 00 F8 DF 1F 67 22 05 6E 64 6C [19:03:19]GetLastDocTimeStamp 1730141515 [19:03:19]current date 1730142200 [19:03:19]FM_GetShiftState [19:03:19]SAM_PROTO_GetShiftState [19:03:19]wFMCommunicate request_size=4 [19:03:19]MH_SAM_APDU [19:03:19]CAPDU: 80 13 01 00 [19:03:19]Write to MH i2c: E2 08 00 15 0A 80 13 01 00 00 00 00 00 9C [19:03:19]Write i2c OK [19:03:19]MH_I2C_Read... [19:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:19]Read from MH i2c: E2 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 0E 00 [19:03:19]MH_I2C_Read... [19:03:19]Read from MH i2c: E2 0E 00 15 0A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EC [19:03:19]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:03:19]wFMCommunicate OK [19:03:19]SAM_PROTO_GetShiftState done [19:03:19]FM_GetShiftState done [19:03:19]opened in 1730075620 [19:03:19]opened+sec_in_day 1730162020 [19:03:19]quantity*price = 48034 [19:03:19]sum+1 = 48035 [19:03:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 480.00 Внесено: 480.00 СДАЧА: 0.00 НСП 1% : 4.25 НДС 12% : 51.01 Наличными: 480.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 294 28.10.2024 19:03 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192746 ФПД: 86304287872367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T190320&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192746&fm=86304287872367&tin=02508201610067®Number=0000000000091776&sum=48000 [19:03:20]StoreToDocumentArchive [19:03:20]shift 543 fd 192746 [19:03:20]save to /storage/0543/doc_00192746 [19:03:20]save last doc name /storage/0543/doc_00192746 to /storage/kkm_last_doc_name [19:03:20]save OK [19:03:20]Clear old archive folders... [19:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:21]tlvbuf is 00FA0B20 [19:03:21]SAM_PROTO_ClearQueue [19:03:21]wFMCommunicate request_size=4 [19:03:21]MH_SAM_APDU [19:03:21]CAPDU: 80 09 00 00 [19:03:21]Write to MH i2c: E2 08 00 22 0A 80 09 00 00 00 00 00 00 9E [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:21]Read from MH i2c: E2 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 03 00 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 03 00 22 0A 00 90 00 A0 [19:03:21]RAPDU: 90 00 [19:03:21]wFMCommunicate OK [19:03:21]SAM_PROTO_ClearQueue done [19:03:21]KKMCreateOFDPacket [19:03:21]OFDProtocolAddRootSTLVToBuf [19:03:21]FM_MakeSignedData [19:03:21]FM_MakeSignedData [19:03:21]SAM_PROTO_SignData [19:03:21]wFMCommunicate request_size=4 [19:03:21]MH_SAM_APDU [19:03:21]CAPDU: 80 0D 01 02 [19:03:21]Write to MH i2c: E2 08 00 23 0A 80 0D 01 02 00 00 00 00 A6 [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:21]Read from MH i2c: E2 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 03 00 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 03 00 23 0A 00 90 00 A1 [19:03:21]RAPDU: 90 00 [19:03:21]wFMCommunicate OK [19:03:21]wFMCommunicate request_size=255 [19:03:21]MH_SAM_APDU [19:03:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 F8 DF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA F0 02 00 35 04 06 00 4E [19:03:21]Write to MH i2c: E2 02 01 24 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 F8 DF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA F0 02 00 35 04 06 00 4E 00 00 65 [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:21]Read from MH i2c: E2 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 03 00 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 03 00 24 0A 00 90 00 A2 [19:03:21]RAPDU: 90 00 [19:03:21]wFMCommunicate OK [19:03:21]wFMCommunicate request_size=10 [19:03:21]MH_SAM_APDU [19:03:21]CAPDU: 80 0D 02 02 05 7E 48 6B D5 6F [19:03:21]Write to MH i2c: E2 0D 00 25 0A 80 0D 02 02 05 00 7E 48 6B D5 6F 00 00 28 [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:21]Read from MH i2c: E2 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 03 00 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 03 00 25 0A 00 90 00 A3 [19:03:21]RAPDU: 90 00 [19:03:21]wFMCommunicate OK [19:03:21]wFMCommunicate request_size=4 [19:03:21]MH_SAM_APDU [19:03:21]CAPDU: 80 0D 03 02 [19:03:21]Write to MH i2c: E2 08 00 26 0A 80 0D 03 02 00 00 00 00 AB [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:21]Read from MH i2c: E2 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 0B 00 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 0B 00 26 0A 00 4F 02 61 5A DA 9B C6 8D 90 00 80 [19:03:21]RAPDU: 4F 02 61 5A DA 9B C6 8D 90 00 [19:03:21]wFMCommunicate OK [19:03:21]SAM_PROTO_SignData done [19:03:21]FM_MakeSignedData done [19:03:21]CreateOFDProtocolMessage [19:03:21]wFMCommunicate request_size=4 [19:03:21]MH_SAM_APDU [19:03:21]CAPDU: 80 11 00 00 [19:03:21]Write to MH i2c: E2 08 00 27 0A 80 11 00 00 00 00 00 00 AB [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:21]Read from MH i2c: E2 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 17 00 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 17 00 27 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FE [19:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:03:21]wFMCommunicate OK [19:03:21]CreateOFDProtocolMessage done [19:03:21]OFDSenderStorePacket 192746 [19:03:21]StoreOFDPacket docnum=192746 [19:03:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E5 21 07 01 34 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 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 F8 DF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA F0 02 00 35 04 06 00 4E 7E 48 6B D5 6F 4F 02 61 5A DA 9B C6 8D [19:03:21]CheckFolder [19:03:21]dirname=/storage/ofd_packets [19:03:21]CheckFolder done [19:03:21]ProducePacketName [19:03:21]name=ofd_packets/00192746 [19:03:21]NVStorageSaveData ofd_packets/00192746 [19:03:21]File name is /storage/ofd_packets/00192746 [19:03:21]Write 301 bytes [19:03:21]NVStorageSaveData done [19:03:21]OFDSenderStorePacket done [19:03:21]KKMCreateOFDPacket done [19:03:21]NVStorageSaveData kkm_last_timestamp [19:03:21]File name is /storage/kkm_last_timestamp [19:03:21]Write 4 bytes [19:03:21]NVStorageSaveData done [19:03:21]ExternCall_PrintAddStr [19:03:21]wPrintStart [19:03:21]Write to MH i2c: 01 00 00 28 0A 32 [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: 01 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: 01 07 00 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: 01 07 00 28 0A 00 00 00 00 00 FF 0F 47 [19:03:21]RasterBufferAndPrint [19:03:21]line Счет N : (1)32073 [19:03:21]line ИНН: 02508201610067 [19:03:21]line Контрольно-Кассовый Чек [19:03:21]line ПРОДАЖА [19:03:21]line ТРК (МРК, ГНК) : 21 [19:03:21]line Товар: 2710124130 [19:03:21]line Аи-92-К-5 [19:03:21]line 7.180 * 66.90 [19:03:21]line = 480.34 [19:03:21]line НДС 12% НСП 1% [19:03:21]line > о реализуемом товаре [19:03:21]line ОКРУГЛЕНИЕ: -0.34 [19:03:21]line ИТОГО: 480.00 [19:03:21]line Внесено: 480.00 [19:03:21]line СДАЧА: 0.00 [19:03:21]line НСП 1% : 4.25 [19:03:21]line НДС 12% : 51.01 [19:03:21]line Наличными: 480.00 [19:03:21]line Безнал.: 0.00 [19:03:21]line Место: АЗС № 170 "Партнер Нефть" [19:03:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:03:21]line СНО: Общий режим [19:03:21]line Чек 294 28.10.2024 19:03 [19:03:21]line Смена: 543 ФФД: 1.0 [19:03:21]line ЗНМ: 0300000110 [19:03:21]line РНМ: 0000000000091776 [19:03:21]line Версия ККМ: 001 [19:03:21]line ФМ: 0000000000871754 [19:03:21]line ФД: 192746 [19:03:21]line ФПД: 86304287872367 [19:03:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T190320&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192746&fm=86304287872367&tin=02508201610067®Number=0000000000091776&sum=48000 [19:03:21]OFD Sender: Processing packet 192746 [packets to send 75, broken 74] [19:03:21]ProducePacketName [19:03:21]name=ofd_packets/00192746 [19:03:21]OFD Sender: To server: pG, [19:03:21]CommunicateWithHost lk.salyk.kg:30040 [19:03:21]ConnectInit lk.salyk.kg [19:03:21]written 0, free lines is 4095 [19:03:21]Connected sock=10 [19:03:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E5 21 07 01 34 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 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 F8 DF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA F0 02 00 35 04 06 00 4E 7E 48 6B D5 6F 4F 02 61 5A DA 9B C6 8D [19:03:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AA 52 47 00 49 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA F0 02 00 F4 03 04 00 BB 84 1F 67 B6 04 01 00 00 2B 25 B1 AD EB 53 DA 67 [19:03:22]CommunicateWithHost err = 0 [19:03:22]CheckOFDResponse [19:03:22]1017 (14) - 77093643461234 [19:03:22]1041 (16) - 0000000000871754 [19:03:22]1040 (4) - 192746 [19:03:22]1012 (4) - 28.10.2024 12:34 [19:03:22]1206 (1) - 0 [19:03:22]OFD Sender: Remove packet 192746 [19:03:22]ProducePacketName [19:03:22]name=ofd_packets/00192746 [19:03:22]NVStorageDeleteData [19:03:22]Write to MH i2c: 01 00 00 53 0A 5D [19:03:22]Write i2c OK [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: 01 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: 01 07 00 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: 01 07 00 53 0A 00 00 00 00 00 B6 0C 26 [19:03:22]RasterBufferAndPrint [19:03:22]line [19:03:22]line [19:03:22]line [19:03:22]line [19:03:22]line [19:03:22]written 0, free lines is 3258 [19:03:22]MH_Cut [19:03:22]Write to MH i2c: D1 01 00 5A 0A 01 36 [19:03:22]Write i2c OK [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: D1 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: D1 01 00 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: D1 01 00 5A 0A 00 35 [19:03:22]Write to MH i2c: 01 00 00 5B 0A 65 [19:03:22]Write i2c OK [19:03:22]MH_I2C_Read... [19:03:22]OFD Sender: No OFD packet to send [19:03:23]*** Cut start [19:03:23]*** Partial cut [19:03:23]*** CUTSNS_PIN = 1 [19:03:23]*** CUTSNS_PIN = 0 [19:03:23]*** Brake cut motor [19:03:23]Read from MH i2c: 01 [19:03:23]MH_I2C_Read... [19:03:23]*** Stop cut motor [19:03:23]*** Cut end [19:03:23]Read from MH i2c: 01 07 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: 01 07 00 5B 0A 00 00 00 00 00 FF 0F 7A [19:03:23]process_action close_receipt done [19:03:23]requested_data is exist [19:03:23]produce_requested_data [19:03:23]requested_item fm.sn is exist - process it [19:03:23]wFMCommunicate request_size=4 [19:03:23]MH_SAM_APDU [19:03:23]CAPDU: 80 11 00 00 [19:03:23]Write to MH i2c: E2 08 00 5C 0A 80 11 00 00 00 00 00 00 E0 [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:23]Read from MH i2c: E2 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 17 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 17 00 5C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 33 [19:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:03:23]wFMCommunicate OK [19:03:23]requested_item fd.num is exist - process it [19:03:23]SAM_PROTO_GetFieldsCounters [19:03:23]wFMCommunicate request_size=4 [19:03:23]MH_SAM_APDU [19:03:23]CAPDU: 80 13 00 00 [19:03:23]Write to MH i2c: E2 08 00 5D 0A 80 13 00 00 00 00 00 00 E3 [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:23]Read from MH i2c: E2 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 62 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 62 00 5D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EA F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 7B [19:03:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EA F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:23]wFMCommunicate OK [19:03:23]SAM_PROTO_GetFieldsCounters done [19:03:23]requested_item shift.num is exist - process it [19:03:23]requested_item shift.opened is exist - process it [19:03:23]req_shift_opened [19:03:23]FM_GetShiftState [19:03:23]SAM_PROTO_GetShiftState [19:03:23]wFMCommunicate request_size=4 [19:03:23]MH_SAM_APDU [19:03:23]CAPDU: 80 13 01 00 [19:03:23]Write to MH i2c: E2 08 00 5E 0A 80 13 01 00 00 00 00 00 E5 [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:24]Read from MH i2c: E2 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: E2 0E 00 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: E2 0E 00 5E 0A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 35 [19:03:24]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:03:24]wFMCommunicate OK [19:03:24]SAM_PROTO_GetShiftState done [19:03:24]FM_GetShiftState done [19:03:24]req_shift_opened done [19:03:24]requested_item shift.open_date is exist - process it [19:03:24]req_shift_open_date [19:03:24]req_shift_open_date done [19:03:24]produce_requested_data done [19:03:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192746,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:03:24]process_action_free close_receipt [19:03:24]json_value_free [19:03:24]json_value_free done [19:03:24]process_json_proto returns [19:03:24]Send response to host [19:03:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192746,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:03:24]free response buf [19:03:24]execute_script done [19:03:24]execute_script returns [19:03:24]free content buf [19:03:24]Sock 8.Close socket [19:03:24]Sock 8.Thread stoped [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]accept exits with 9 [19:06:02]New connection [19:06:02]New thread 3066658148 created [19:06:02]Thread 3066801508 joined [19:06:02]Waiting for new connection... [19:06:02] Sock 9.Parse request [19:06:02]Sock 9.Check first char [19:06:02]Sock 9.First char is OK [19:06:02]request: POST /json_proto HTTP/1.0 [19:06:02]Method: POST [19:06:02]URL: /json_proto [19:06:02]Method is POST - this is cgi request [19:06:02]url: /json_proto [19:06:02]query_string will be loaded in cgi processing [19:06:02]execute_cgi json_proto POST (null) [19:06:02]execute_cgi path=json_proto method=POST [19:06:02]POST find Content-Length [19:06:02]Host: 172.17.63.131:8080 [19:06:02]Content-Length: 676 [19:06:02]Content-Type: application/json [19:06:02] [19:06:02]POST finish read [19:06:02]Found Content-Length = 676 [19:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:02]execute_script... [19:06:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:02]POST & json_proto [19:06:02]process_json_proto [19:06:02]json parsed OK: [19:06:02]protocol is kg_v1.0 [19:06:02]action value=close_receipt [19:06:02]process_action close_receipt [19:06:02]cmd_close_receipt [19:06:02]MH_GetDate [19:06:02]Write to MH i2c: F0 00 00 5F 0A 58 [19:06:02]Write i2c OK [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: F0 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: F0 09 00 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: F0 09 00 5F 0A 00 9A E0 1F 67 22 05 6E 64 5A [19:06:02]GetLastDocTimeStamp 1730142200 [19:06:02]current date 1730142362 [19:06:02]FM_GetShiftState [19:06:02]SAM_PROTO_GetShiftState [19:06:02]wFMCommunicate request_size=4 [19:06:02]MH_SAM_APDU [19:06:02]CAPDU: 80 13 01 00 [19:06:02]Write to MH i2c: E2 08 00 60 0A 80 13 01 00 00 00 00 00 E7 [19:06:02]Write i2c OK [19:06:02]MH_I2C_Read... [19:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:02]Read from MH i2c: E2 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: E2 0E 00 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: E2 0E 00 60 0A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 37 [19:06:02]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:06:02]wFMCommunicate OK [19:06:02]SAM_PROTO_GetShiftState done [19:06:02]FM_GetShiftState done [19:06:02]opened in 1730075620 [19:06:02]opened+sec_in_day 1730162020 [19:06:02]quantity*price = 30038 [19:06:02]sum+1 = 30039 [19:06:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 295 28.10.2024 19:06 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192747 ФПД: 207426958098919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T190603&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192747&fm=207426958098919&tin=02508201610067®Number=0000000000091776&sum=30000 [19:06:03]StoreToDocumentArchive [19:06:03]shift 543 fd 192747 [19:06:03]save to /storage/0543/doc_00192747 [19:06:03]save last doc name /storage/0543/doc_00192747 to /storage/kkm_last_doc_name [19:06:03]save OK [19:06:03]Clear old archive folders... [19:06:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:03]tlvbuf is 00EF4DE0 [19:06:03]SAM_PROTO_ClearQueue [19:06:03]wFMCommunicate request_size=4 [19:06:03]MH_SAM_APDU [19:06:03]CAPDU: 80 09 00 00 [19:06:03]Write to MH i2c: E2 08 00 6D 0A 80 09 00 00 00 00 00 00 E9 [19:06:03]Write i2c OK [19:06:03]MH_I2C_Read... [19:06:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:03]Read from MH i2c: E2 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 03 00 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 03 00 6D 0A 00 90 00 EB [19:06:03]RAPDU: 90 00 [19:06:03]wFMCommunicate OK [19:06:03]SAM_PROTO_ClearQueue done [19:06:03]KKMCreateOFDPacket [19:06:03]OFDProtocolAddRootSTLVToBuf [19:06:03]FM_MakeSignedData [19:06:03]FM_MakeSignedData [19:06:03]SAM_PROTO_SignData [19:06:03]wFMCommunicate request_size=4 [19:06:03]MH_SAM_APDU [19:06:03]CAPDU: 80 0D 01 02 [19:06:03]Write to MH i2c: E2 08 00 6E 0A 80 0D 01 02 00 00 00 00 F1 [19:06:03]Write i2c OK [19:06:03]MH_I2C_Read... [19:06:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:03]Read from MH i2c: E2 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 03 00 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 03 00 6E 0A 00 90 00 EC [19:06:03]RAPDU: 90 00 [19:06:03]wFMCommunicate OK [19:06:03]wFMCommunicate request_size=255 [19:06:03]MH_SAM_APDU [19: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 9B E0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB F0 02 00 35 04 06 00 BC [19:06:03]Write to MH i2c: E2 02 01 6F 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 9B E0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB F0 02 00 35 04 06 00 BC 00 00 5C [19:06:03]Write i2c OK [19:06:03]MH_I2C_Read... [19:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:03]Read from MH i2c: E2 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 03 00 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 03 00 6F 0A 00 90 00 ED [19:06:03]RAPDU: 90 00 [19:06:03]wFMCommunicate OK [19:06:03]wFMCommunicate request_size=10 [19:06:03]MH_SAM_APDU [19:06:03]CAPDU: 80 0D 02 02 05 A7 5A 27 81 E7 [19:06:03]Write to MH i2c: E2 0D 00 70 0A 80 0D 02 02 05 00 A7 5A 27 81 E7 00 00 8E [19:06:03]Write i2c OK [19:06:03]MH_I2C_Read... [19:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:03]Read from MH i2c: E2 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 03 00 [19:06:03]MH_I2C_Read... [19:06:03]Read from MH i2c: E2 03 00 70 0A 00 90 00 EE [19:06:03]RAPDU: 90 00 [19:06:03]wFMCommunicate OK [19:06:03]wFMCommunicate request_size=4 [19:06:03]MH_SAM_APDU [19:06:03]CAPDU: 80 0D 03 02 [19:06:03]Write to MH i2c: E2 08 00 71 0A 80 0D 03 02 00 00 00 00 F6 [19:06:03]Write i2c OK [19:06:03]MH_I2C_Read... [19:06:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:04]Read from MH i2c: E2 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 0B 00 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 0B 00 71 0A 00 CD 37 E6 1D E3 49 B9 ED 90 00 D0 [19:06:04]RAPDU: CD 37 E6 1D E3 49 B9 ED 90 00 [19:06:04]wFMCommunicate OK [19:06:04]SAM_PROTO_SignData done [19:06:04]FM_MakeSignedData done [19:06:04]CreateOFDProtocolMessage [19:06:04]wFMCommunicate request_size=4 [19:06:04]MH_SAM_APDU [19:06:04]CAPDU: 80 11 00 00 [19:06:04]Write to MH i2c: E2 08 00 72 0A 80 11 00 00 00 00 00 00 F6 [19:06:04]Write i2c OK [19:06:04]MH_I2C_Read... [19:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:04]Read from MH i2c: E2 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 17 00 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 17 00 72 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 49 [19:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:06:04]wFMCommunicate OK [19:06:04]CreateOFDProtocolMessage done [19:06:04]OFDSenderStorePacket 192747 [19:06:04]StoreOFDPacket docnum=192747 [19:06:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 04 6C 07 01 9F B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 9B E0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB F0 02 00 35 04 06 00 BC A7 5A 27 81 E7 CD 37 E6 1D E3 49 B9 ED [19:06:04]CheckFolder [19:06:04]dirname=/storage/ofd_packets [19:06:04]CheckFolder done [19:06:04]ProducePacketName [19:06:04]name=ofd_packets/00192747 [19:06:04]NVStorageSaveData ofd_packets/00192747 [19:06:04]File name is /storage/ofd_packets/00192747 [19:06:04]Write 301 bytes [19:06:04]NVStorageSaveData done [19:06:04]OFDSenderStorePacket done [19:06:04]KKMCreateOFDPacket done [19:06:04]NVStorageSaveData kkm_last_timestamp [19:06:04]File name is /storage/kkm_last_timestamp [19:06:04]Write 4 bytes [19:06:04]NVStorageSaveData done [19:06:04]ExternCall_PrintAddStr [19:06:04]wPrintStart [19:06:04]Write to MH i2c: 01 00 00 73 0A 7D [19:06:04]Write i2c OK [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: 01 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: 01 07 00 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: 01 07 00 73 0A 00 00 00 00 00 FF 0F 92 [19:06:04]RasterBufferAndPrint [19:06:04]line Счет N : (1)32074 [19:06:04]line ИНН: 02508201610067 [19:06:04]line Контрольно-Кассовый Чек [19:06:04]line ПРОДАЖА [19:06:04]line ТРК (МРК, ГНК) : 21 [19:06:04]line Товар: 2710124130 [19:06:04]line Аи-92-К-5 [19:06:04]line 4.490 * 66.90 [19:06:04]line = 300.38 [19:06:04]line НДС 12% НСП 1% [19:06:04]line > о реализуемом товаре [19:06:04]line ОКРУГЛЕНИЕ: -0.38 [19:06:04]line ИТОГО: 300.00 [19:06:04]line Внесено: 300.00 [19:06:04]line СДАЧА: 0.00 [19:06:04]line НСП 1% : 2.66 [19:06:04]line НДС 12% : 31.90 [19:06:04]line Наличными: 300.00 [19:06:04]line Безнал.: 0.00 [19:06:04]line Место: АЗС № 170 "Партнер Нефть" [19:06:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:06:04]line СНО: Общий режим [19:06:04]line Чек 295 28.10.2024 19:06 [19:06:04]line Смена: 543 ФФД: 1.0 [19:06:04]line ЗНМ: 0300000110 [19:06:04]line РНМ: 0000000000091776 [19:06:04]line Версия ККМ: 001 [19:06:04]line ФМ: 0000000000871754 [19:06:04]line ФД: 192747 [19:06:04]line ФПД: 207426958098919 [19:06:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T190603&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192747&fm=207426958098919&tin=02508201610067®Number=0000000000091776&sum=30000 [19:06:04]OFD Sender: Processing packet 192747 [packets to send 75, broken 74] [19:06:04]ProducePacketName [19:06:04]name=ofd_packets/00192747 [19:06:04]OFD Sender: To server: pG, [19:06:04]CommunicateWithHost lk.salyk.kg:30040 [19:06:04]ConnectInit lk.salyk.kg [19:06:04]written 0, free lines is 4095 [19:06:04]Connected sock=10 [19: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 31 37 35 34 0F 01 00 00 04 6C 07 01 9F B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 9B E0 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB F0 02 00 35 04 06 00 BC A7 5A 27 81 E7 CD 37 E6 1D E3 49 B9 ED [19:06:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1C 14 47 00 2D B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB F0 02 00 F4 03 04 00 5E 85 1F 67 B6 04 01 00 00 E6 5A BD 5C 09 24 E1 58 [19:06:04]CommunicateWithHost err = 0 [19:06:04]CheckOFDResponse [19:06:04]1017 (14) - 77093643461234 [19:06:04]1041 (16) - 0000000000871754 [19:06:04]1040 (4) - 192747 [19:06:04]1012 (4) - 28.10.2024 12:36 [19:06:04]1206 (1) - 0 [19:06:04]OFD Sender: Remove packet 192747 [19:06:04]ProducePacketName [19:06:04]name=ofd_packets/00192747 [19:06:04]NVStorageDeleteData [19:06:04]Write to MH i2c: 01 00 00 9E 0A A8 [19:06:04]Write i2c OK [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: 01 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: 01 07 00 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: 01 07 00 9E 0A 00 00 00 00 00 BB 0C 76 [19:06:04]RasterBufferAndPrint [19:06:04]line [19:06:04]line [19:06:04]line [19:06:04]line [19:06:04]line [19:06:04]written 0, free lines is 3264 [19:06:04]MH_Cut [19:06:04]Write to MH i2c: D1 01 00 A5 0A 01 81 [19:06:04]Write i2c OK [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: D1 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: D1 01 00 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: D1 01 00 A5 0A 00 80 [19:06:04]Write to MH i2c: 01 00 00 A6 0A B0 [19:06:04]Write i2c OK [19:06:04]MH_I2C_Read... [19:06:05]OFD Sender: No OFD packet to send [19:06:05]*** Cut start [19:06:05]*** Partial cut [19:06:05]*** CUTSNS_PIN = 1 [19:06:05]*** CUTSNS_PIN = 0 [19:06:05]*** Brake cut motor [19:06:06]Read from MH i2c: 01 [19:06:06]MH_I2C_Read... [19:06:06]*** Stop cut motor [19:06:06]*** Cut end [19:06:06]Read from MH i2c: 01 07 00 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: 01 07 00 A6 0A 00 00 00 00 00 FF 0F C5 [19:06:06]process_action close_receipt done [19:06:06]requested_data is exist [19:06:06]produce_requested_data [19:06:06]requested_item fm.sn is exist - process it [19:06:06]wFMCommunicate request_size=4 [19:06:06]MH_SAM_APDU [19:06:06]CAPDU: 80 11 00 00 [19:06:06]Write to MH i2c: E2 08 00 A7 0A 80 11 00 00 00 00 00 00 2B [19:06:06]Write i2c OK [19:06:06]MH_I2C_Read... [19:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:06]Read from MH i2c: E2 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: E2 17 00 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: E2 17 00 A7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7E [19:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:06:06]wFMCommunicate OK [19:06:06]requested_item fd.num is exist - process it [19:06:06]SAM_PROTO_GetFieldsCounters [19:06:06]wFMCommunicate request_size=4 [19:06:06]MH_SAM_APDU [19:06:06]CAPDU: 80 13 00 00 [19:06:06]Write to MH i2c: E2 08 00 A8 0A 80 13 00 00 00 00 00 00 2E [19:06:06]Write i2c OK [19:06:06]MH_I2C_Read... [19:06:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:06]Read from MH i2c: E2 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: E2 62 00 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: E2 62 00 A8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EB F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [19:06:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EB F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:06]wFMCommunicate OK [19:06:06]SAM_PROTO_GetFieldsCounters done [19:06:06]requested_item shift.num is exist - process it [19:06:06]requested_item shift.opened is exist - process it [19:06:06]req_shift_opened [19:06:06]FM_GetShiftState [19:06:06]SAM_PROTO_GetShiftState [19:06:06]wFMCommunicate request_size=4 [19:06:06]MH_SAM_APDU [19:06:06]CAPDU: 80 13 01 00 [19:06:06]Write to MH i2c: E2 08 00 A9 0A 80 13 01 00 00 00 00 00 30 [19:06:06]Write i2c OK [19:06:06]MH_I2C_Read... [19:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:06]Read from MH i2c: E2 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: E2 0E 00 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: E2 0E 00 A9 0A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 80 [19:06:06]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:06:06]wFMCommunicate OK [19:06:06]SAM_PROTO_GetShiftState done [19:06:06]FM_GetShiftState done [19:06:06]req_shift_opened done [19:06:06]requested_item shift.open_date is exist - process it [19:06:06]req_shift_open_date [19:06:06]req_shift_open_date done [19:06:06]produce_requested_data done [19:06:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192747,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:06:06]process_action_free close_receipt [19:06:06]json_value_free [19:06:06]json_value_free done [19:06:06]process_json_proto returns [19:06:06]Send response to host [19:06:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192747,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:06:06]free response buf [19:06:06]execute_script done [19:06:06]execute_script returns [19:06:06]free content buf [19:06:06]Sock 9.Close socket [19:06:06]Sock 9.Thread stoped [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:53]accept exits with 8 [19:11:53]New connection [19:11:53]New thread 3066801508 created [19:11:53]Thread 3066658148 joined [19:11:53]Waiting for new connection... [19:11:53] Sock 8.Parse request [19:11:53]Sock 8.Check first char [19:11:53]Sock 8.First char is OK [19:11:53]request: POST /json_proto HTTP/1.0 [19:11:53]Method: POST [19:11:53]URL: /json_proto [19:11:53]Method is POST - this is cgi request [19:11:53]url: /json_proto [19:11:53]query_string will be loaded in cgi processing [19:11:53]execute_cgi json_proto POST (null) [19:11:53]execute_cgi path=json_proto method=POST [19:11:53]POST find Content-Length [19:11:53]Host: 172.17.63.131:8080 [19:11:53]Content-Length: 862 [19:11:53]Content-Type: application/json [19:11:53] [19:11:53]POST finish read [19:11:53]Found Content-Length = 862 [19:11:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:53]execute_script... [19:11: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)32075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:53]POST & json_proto [19:11:53]process_json_proto [19:11:53]json parsed OK: [19:11:53]protocol is kg_v1.0 [19:11:53]action value=close_receipt [19:11:53]process_action close_receipt [19:11:53]cmd_close_receipt [19:11:53]MH_GetDate [19:11:53]Write to MH i2c: F0 00 00 AA 0A A3 [19:11:53]Write i2c OK [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: F0 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: F0 09 00 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: F0 09 00 AA 0A 00 F9 E1 1F 67 22 05 6E 64 05 [19:11:53]GetLastDocTimeStamp 1730142363 [19:11:53]current date 1730142713 [19:11:53]FM_GetShiftState [19:11:53]SAM_PROTO_GetShiftState [19:11:53]wFMCommunicate request_size=4 [19:11:53]MH_SAM_APDU [19:11:53]CAPDU: 80 13 01 00 [19:11:53]Write to MH i2c: E2 08 00 AB 0A 80 13 01 00 00 00 00 00 32 [19:11:53]Write i2c OK [19:11:53]MH_I2C_Read... [19:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:53]Read from MH i2c: E2 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: E2 0E 00 [19:11:53]MH_I2C_Read... [19:11:53]Read from MH i2c: E2 0E 00 AB 0A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 82 [19:11:53]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:11:53]wFMCommunicate OK [19:11:53]SAM_PROTO_GetShiftState done [19:11:53]FM_GetShiftState done [19:11:53]opened in 1730075620 [19:11:53]opened+sec_in_day 1730162020 [19:11:53]quantity*price = 200025 [19:11:53]sum+1 = 200026 [19:11:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 296 28.10.2024 19:11 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192748 ФПД: 26082209112865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T191153&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192748&fm=26082209112865&tin=02508201610067®Number=0000000000091776&sum=200025 [19:11:54]StoreToDocumentArchive [19:11:54]shift 543 fd 192748 [19:11:54]save to /storage/0543/doc_00192748 [19:11:54]save last doc name /storage/0543/doc_00192748 to /storage/kkm_last_doc_name [19:11:54]save OK [19:11:54]Clear old archive folders... [19:11:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:11:54]tlvbuf is 00EF41D0 [19:11:54]SAM_PROTO_ClearQueue [19:11:54]wFMCommunicate request_size=4 [19:11:54]MH_SAM_APDU [19:11:54]CAPDU: 80 09 00 00 [19:11:54]Write to MH i2c: E2 08 00 B8 0A 80 09 00 00 00 00 00 00 34 [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:54]Read from MH i2c: E2 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 B8 0A 00 90 00 36 [19:11:54]RAPDU: 90 00 [19:11:54]wFMCommunicate OK [19:11:54]SAM_PROTO_ClearQueue done [19:11:54]KKMCreateOFDPacket [19:11:54]OFDProtocolAddRootSTLVToBuf [19:11:54]FM_MakeSignedData [19:11:54]FM_MakeSignedData [19:11:54]SAM_PROTO_SignData [19:11:54]wFMCommunicate request_size=4 [19:11:54]MH_SAM_APDU [19:11:54]CAPDU: 80 0D 01 02 [19:11:54]Write to MH i2c: E2 08 00 B9 0A 80 0D 01 02 00 00 00 00 3C [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:54]Read from MH i2c: E2 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 B9 0A 00 90 00 37 [19:11:54]RAPDU: 90 00 [19:11:54]wFMCommunicate OK [19:11:54]wFMCommunicate request_size=255 [19:11:54]MH_SAM_APDU [19:11:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 F9 E1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC F0 02 00 35 04 06 00 17 B8 BC CF [19:11:54]Write to MH i2c: E2 02 01 BA 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 F9 E1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC F0 02 00 35 04 06 00 17 B8 BC CF 00 00 C8 [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:54]Read from MH i2c: E2 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 BA 0A 00 90 00 38 [19:11:54]RAPDU: 90 00 [19:11:54]wFMCommunicate OK [19:11:54]wFMCommunicate request_size=7 [19:11:54]MH_SAM_APDU [19:11:54]CAPDU: 80 0D 02 02 02 23 21 [19:11:54]Write to MH i2c: E2 0A 00 BB 0A 80 0D 02 02 02 00 23 21 00 00 87 [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:54]Read from MH i2c: E2 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 03 00 BB 0A 00 90 00 39 [19:11:54]RAPDU: 90 00 [19:11:54]wFMCommunicate OK [19:11:54]wFMCommunicate request_size=4 [19:11:54]MH_SAM_APDU [19:11:54]CAPDU: 80 0D 03 02 [19:11:54]Write to MH i2c: E2 08 00 BC 0A 80 0D 03 02 00 00 00 00 41 [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:54]Read from MH i2c: E2 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 0B 00 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 0B 00 BC 0A 00 D2 CE 7B 6B 07 7B DE BD 90 00 E5 [19:11:54]RAPDU: D2 CE 7B 6B 07 7B DE BD 90 00 [19:11:54]wFMCommunicate OK [19:11:54]SAM_PROTO_SignData done [19:11:54]FM_MakeSignedData done [19:11:54]CreateOFDProtocolMessage [19:11:54]wFMCommunicate request_size=4 [19:11:54]MH_SAM_APDU [19:11:54]CAPDU: 80 11 00 00 [19:11:54]Write to MH i2c: E2 08 00 BD 0A 80 11 00 00 00 00 00 00 41 [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:54]Read from MH i2c: E2 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 17 00 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: E2 17 00 BD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 94 [19:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:11:54]wFMCommunicate OK [19:11:54]CreateOFDProtocolMessage done [19:11:54]OFDSenderStorePacket 192748 [19:11:54]StoreOFDPacket docnum=192748 [19:11:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F4 27 04 01 9C AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 F9 E1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC F0 02 00 35 04 06 00 17 B8 BC CF 23 21 D2 CE 7B 6B 07 7B DE BD [19:11:54]CheckFolder [19:11:54]dirname=/storage/ofd_packets [19:11:54]CheckFolder done [19:11:54]ProducePacketName [19:11:54]name=ofd_packets/00192748 [19:11:54]NVStorageSaveData ofd_packets/00192748 [19:11:54]File name is /storage/ofd_packets/00192748 [19:11:54]Write 298 bytes [19:11:54]NVStorageSaveData done [19:11:54]OFDSenderStorePacket done [19:11:54]KKMCreateOFDPacket done [19:11:54]NVStorageSaveData kkm_last_timestamp [19:11:54]File name is /storage/kkm_last_timestamp [19:11:54]Write 4 bytes [19:11:54]NVStorageSaveData done [19:11:54]ExternCall_PrintAddStr [19:11:54]wPrintStart [19:11:54]Write to MH i2c: 01 00 00 BE 0A C8 [19:11:54]Write i2c OK [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: 01 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: 01 07 00 [19:11:54]MH_I2C_Read... [19:11:54]Read from MH i2c: 01 07 00 BE 0A 00 00 00 00 00 FF 0F DD [19:11:54]RasterBufferAndPrint [19:11:54]line Счет N : (1)32075 [19:11:54]line ИНН: 02508201610067 [19:11:54]line Контрольно-Кассовый Чек [19:11:54]line ПРОДАЖА [19:11:54]line ТРК (МРК, ГНК) : 11 [19:11:54]line Товар: 2710194210 [19:11:54]line ДТ-К-5 [19:11:54]line 26.250 * 76.20 [19:11:54]line = 2000.25 [19:11:54]line НДС 12% НСП 1% [19:11:54]line > о реализуемом товаре [19:11:54]line ИТОГО: 2000.25 [19:11:54]line НСП 1% : 17.70 [19:11:54]line НДС 12% : 212.42 [19:11:54]line Наличными: 0.00 [19:11:54]line Безнал.: 2000.25 [19:11:54]line Место: АЗС № 170 "Партнер Нефть" [19:11:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:11:54]line СНО: Общий режим [19:11:54]line Чек 296 28.10.2024 19:11 [19:11:54]line Смена: 543 ФФД: 1.0 [19:11:54]line ЗНМ: 0300000110 [19:11:54]line РНМ: 0000000000091776 [19:11:54]line Версия ККМ: 001 [19:11:54]line Платежная система: Кыргызкоммерцбанк [19:11:54]line ФМ: 0000000000871754 [19:11:54]line ФД: 192748 [19:11:54]line ФПД: 26082209112865 [19:11:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T191153&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192748&fm=26082209112865&tin=02508201610067®Number=0000000000091776&sum=200025 [19:11:55]OFD Sender: Processing packet 192748 [packets to send 75, broken 74] [19:11:55]ProducePacketName [19:11:55]name=ofd_packets/00192748 [19:11:55]OFD Sender: To server: pG, [19:11:55]CommunicateWithHost lk.salyk.kg:30040 [19:11:55]ConnectInit lk.salyk.kg [19:11:55]written 0, free lines is 4095 [19:11:55]Connected sock=10 [19:11:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F4 27 04 01 9C AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 F9 E1 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC F0 02 00 35 04 06 00 17 B8 BC CF 23 21 D2 CE 7B 6B 07 7B DE BD [19:11:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 73 63 47 00 C1 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC F0 02 00 F4 03 04 00 BC 86 1F 67 B6 04 01 00 00 FC 48 AC 67 C8 5F 1B 94 [19:11:55]CommunicateWithHost err = 0 [19:11:55]CheckOFDResponse [19:11:55]1017 (14) - 77093643461234 [19:11:55]1041 (16) - 0000000000871754 [19:11:55]1040 (4) - 192748 [19:11:55]1012 (4) - 28.10.2024 12:42 [19:11:55]1206 (1) - 0 [19:11:55]OFD Sender: Remove packet 192748 [19:11:55]ProducePacketName [19:11:55]name=ofd_packets/00192748 [19:11:55]NVStorageDeleteData [19:11:55]Write to MH i2c: 01 00 00 E8 0A F2 [19:11:55]Write i2c OK [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: 01 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: 01 07 00 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: 01 07 00 E8 0A 00 00 00 00 00 CC 0C D1 [19:11:55]RasterBufferAndPrint [19:11:55]line [19:11:55]line [19:11:55]line [19:11:55]line [19:11:55]line [19:11:55]written 0, free lines is 3280 [19:11:55]MH_Cut [19:11:55]Write to MH i2c: D1 01 00 EF 0A 01 CB [19:11:55]Write i2c OK [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: D1 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: D1 01 00 [19:11:55]MH_I2C_Read... [19:11:55]Read from MH i2c: D1 01 00 EF 0A 00 CA [19:11:55]Write to MH i2c: 01 00 00 F0 0A FA [19:11:55]Write i2c OK [19:11:55]MH_I2C_Read... [19:11:55]OFD Sender: No OFD packet to send [19:11:56]*** Cut start [19:11:56]*** Partial cut [19:11:56]*** CUTSNS_PIN = 1 [19:11:56]*** CUTSNS_PIN = 0 [19:11:56]*** Brake cut motor [19:11:56]Read from MH i2c: 01 [19:11:56]MH_I2C_Read... [19:11:56]*** Stop cut motor [19:11:56]*** Cut end [19:11:56]Read from MH i2c: 01 07 00 [19:11:56]MH_I2C_Read... [19:11:56]Read from MH i2c: 01 07 00 F0 0A 00 00 00 00 00 FF 0F 0F [19:11:56]process_action close_receipt done [19:11:56]requested_data is exist [19:11:56]produce_requested_data [19:11:56]requested_item fm.sn is exist - process it [19:11:56]wFMCommunicate request_size=4 [19:11:56]MH_SAM_APDU [19:11:56]CAPDU: 80 11 00 00 [19:11:56]Write to MH i2c: E2 08 00 F1 0A 80 11 00 00 00 00 00 00 75 [19:11:56]Write i2c OK [19:11:56]MH_I2C_Read... [19:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:57]Read from MH i2c: E2 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 17 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 17 00 F1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C8 [19:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:11:57]wFMCommunicate OK [19:11:57]requested_item fd.num is exist - process it [19:11:57]SAM_PROTO_GetFieldsCounters [19:11:57]wFMCommunicate request_size=4 [19:11:57]MH_SAM_APDU [19:11:57]CAPDU: 80 13 00 00 [19:11:57]Write to MH i2c: E2 08 00 F2 0A 80 13 00 00 00 00 00 00 78 [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:57]Read from MH i2c: E2 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 62 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 62 00 F2 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EC F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [19:11:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EC F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:57]wFMCommunicate OK [19:11:57]SAM_PROTO_GetFieldsCounters done [19:11:57]requested_item shift.num is exist - process it [19:11:57]requested_item shift.opened is exist - process it [19:11:57]req_shift_opened [19:11:57]FM_GetShiftState [19:11:57]SAM_PROTO_GetShiftState [19:11:57]wFMCommunicate request_size=4 [19:11:57]MH_SAM_APDU [19:11:57]CAPDU: 80 13 01 00 [19:11:57]Write to MH i2c: E2 08 00 F3 0A 80 13 01 00 00 00 00 00 7A [19:11:57]Write i2c OK [19:11:57]MH_I2C_Read... [19:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:57]Read from MH i2c: E2 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 0E 00 [19:11:57]MH_I2C_Read... [19:11:57]Read from MH i2c: E2 0E 00 F3 0A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CA [19:11:57]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:11:57]wFMCommunicate OK [19:11:57]SAM_PROTO_GetShiftState done [19:11:57]FM_GetShiftState done [19:11:57]req_shift_opened done [19:11:57]requested_item shift.open_date is exist - process it [19:11:57]req_shift_open_date [19:11:57]req_shift_open_date done [19:11:57]produce_requested_data done [19:11:57]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192748,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:11:57]process_action_free close_receipt [19:11:57]json_value_free [19:11:57]json_value_free done [19:11:57]process_json_proto returns [19:11:57]Send response to host [19:11:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192748,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:11:57]free response buf [19:11:57]execute_script done [19:11:57]execute_script returns [19:11:57]free content buf [19:11:57]Sock 8.Close socket [19:11:57]Sock 8.Thread stoped [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:43]accept exits with 9 [19:14:43]New connection [19:14:43]New thread 3066658148 created [19:14:43]Thread 3066801508 joined [19:14:43]Waiting for new connection... [19:14:43] Sock 9.Parse request [19:14:43]Sock 9.Check first char [19:14:43]Sock 9.First char is OK [19:14:43]request: POST /json_proto HTTP/1.0 [19:14:43]Method: POST [19:14:43]URL: /json_proto [19:14:43]Method is POST - this is cgi request [19:14:43]url: /json_proto [19:14:43]query_string will be loaded in cgi processing [19:14:43]execute_cgi json_proto POST (null) [19:14:43]execute_cgi path=json_proto method=POST [19:14:43]POST find Content-Length [19:14:43]Host: 172.17.63.131:8080 [19:14:43]Content-Length: 670 [19:14:43]Content-Type: application/json [19:14:43] [19:14:43]POST finish read [19:14:43]Found Content-Length = 670 [19:14:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:43]execute_script... [19:14: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)32076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:14:43]POST & json_proto [19:14:43]process_json_proto [19:14:43]json parsed OK: [19:14:43]protocol is kg_v1.0 [19:14:43]action value=close_receipt [19:14:43]process_action close_receipt [19:14:43]cmd_close_receipt [19:14:43]MH_GetDate [19:14:43]Write to MH i2c: F0 00 00 F4 0A ED [19:14:43]Write i2c OK [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: F0 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: F0 09 00 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: F0 09 00 F4 0A 00 A3 E2 1F 67 22 05 6E 64 FA [19:14:43]GetLastDocTimeStamp 1730142713 [19:14:43]current date 1730142883 [19:14:43]FM_GetShiftState [19:14:43]SAM_PROTO_GetShiftState [19:14:43]wFMCommunicate request_size=4 [19:14:43]MH_SAM_APDU [19:14:43]CAPDU: 80 13 01 00 [19:14:43]Write to MH i2c: E2 08 00 F5 0A 80 13 01 00 00 00 00 00 7C [19:14:43]Write i2c OK [19:14:43]MH_I2C_Read... [19:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:43]Read from MH i2c: E2 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: E2 0E 00 [19:14:43]MH_I2C_Read... [19:14:43]Read from MH i2c: E2 0E 00 F5 0A 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CC [19:14:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:14:43]wFMCommunicate OK [19:14:43]SAM_PROTO_GetShiftState done [19:14:43]FM_GetShiftState done [19:14:43]opened in 1730075620 [19:14:43]opened+sec_in_day 1730162020 [19:14:43]quantity*price = 66 [19:14:43]sum+1 = 68 [19:14:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 0.00 Внесено: 500.00 СДАЧА: 500.00 НСП 1% : 0.01 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 297 28.10.2024 19:14 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192749 ФПД: 27544237507941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T191444&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192749&fm=27544237507941&tin=02508201610067®Number=0000000000091776&sum=0 [19:14:44]StoreToDocumentArchive [19:14:44]shift 543 fd 192749 [19:14:44]save to /storage/0543/doc_00192749 [19:14:44]save last doc name /storage/0543/doc_00192749 to /storage/kkm_last_doc_name [19:14:44]save OK [19:14:44]Clear old archive folders... [19:14:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:14:44]tlvbuf is 00EED000 [19:14:44]SAM_PROTO_ClearQueue [19:14:44]wFMCommunicate request_size=4 [19:14:44]MH_SAM_APDU [19:14:44]CAPDU: 80 09 00 00 [19:14:44]Write to MH i2c: E2 08 00 02 0B 80 09 00 00 00 00 00 00 7F [19:14:44]Write i2c OK [19:14:44]MH_I2C_Read... [19:14:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:44]Read from MH i2c: E2 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: E2 03 00 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: E2 03 00 02 0B 00 90 00 81 [19:14:44]RAPDU: 90 00 [19:14:44]wFMCommunicate OK [19:14:44]SAM_PROTO_ClearQueue done [19:14:44]KKMCreateOFDPacket [19:14:44]OFDProtocolAddRootSTLVToBuf [19:14:44]FM_MakeSignedData [19:14:44]FM_MakeSignedData [19:14:44]SAM_PROTO_SignData [19:14:44]wFMCommunicate request_size=4 [19:14:44]MH_SAM_APDU [19:14:44]CAPDU: 80 0D 01 02 [19:14:44]Write to MH i2c: E2 08 00 03 0B 80 0D 01 02 00 00 00 00 87 [19:14:44]Write i2c OK [19:14:44]MH_I2C_Read... [19:14:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:44]Read from MH i2c: E2 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: E2 03 00 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: E2 03 00 03 0B 00 90 00 82 [19:14:44]RAPDU: 90 00 [19:14:44]wFMCommunicate OK [19:14:44]wFMCommunicate request_size=255 [19:14:44]MH_SAM_APDU [19:14: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 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 A4 E2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED F0 02 00 35 04 06 00 19 [19:14:44]Write to MH i2c: E2 02 01 04 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 A4 E2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED F0 02 00 35 04 06 00 19 00 00 76 [19:14:44]Write i2c OK [19:14:44]MH_I2C_Read... [19:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:44]Read from MH i2c: E2 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: E2 03 00 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: E2 03 00 04 0B 00 90 00 83 [19:14:44]RAPDU: 90 00 [19:14:44]wFMCommunicate OK [19:14:44]wFMCommunicate request_size=10 [19:14:44]MH_SAM_APDU [19:14:44]CAPDU: 80 0D 02 02 05 0D 24 7E 05 65 [19:14:44]Write to MH i2c: E2 0D 00 05 0B 80 0D 02 02 05 00 0D 24 7E 05 65 00 00 AD [19:14:44]Write i2c OK [19:14:44]MH_I2C_Read... [19:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:44]Read from MH i2c: E2 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: E2 03 00 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: E2 03 00 05 0B 00 90 00 84 [19:14:44]RAPDU: 90 00 [19:14:44]wFMCommunicate OK [19:14:44]wFMCommunicate request_size=4 [19:14:44]MH_SAM_APDU [19:14:44]CAPDU: 80 0D 03 02 [19:14:44]Write to MH i2c: E2 08 00 06 0B 80 0D 03 02 00 00 00 00 8C [19:14:44]Write i2c OK [19:14:44]MH_I2C_Read... [19:14:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:44]Read from MH i2c: E2 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: E2 0B 00 [19:14:44]MH_I2C_Read... [19:14:44]Read from MH i2c: E2 0B 00 06 0B 00 73 0C FE B9 72 0C 75 F7 90 00 AD [19:14:44]RAPDU: 73 0C FE B9 72 0C 75 F7 90 00 [19:14:44]wFMCommunicate OK [19:14:44]SAM_PROTO_SignData done [19:14:44]FM_MakeSignedData done [19:14:44]CreateOFDProtocolMessage [19:14:44]wFMCommunicate request_size=4 [19:14:44]MH_SAM_APDU [19:14:44]CAPDU: 80 11 00 00 [19:14:44]Write to MH i2c: E2 08 00 07 0B 80 11 00 00 00 00 00 00 8C [19:14:44]Write i2c OK [19:14:44]MH_I2C_Read... [19:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:45]Read from MH i2c: E2 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: E2 17 00 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: E2 17 00 07 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [19:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:14:45]wFMCommunicate OK [19:14:45]CreateOFDProtocolMessage done [19:14:45]OFDSenderStorePacket 192749 [19:14:45]StoreOFDPacket docnum=192749 [19:14:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D3 69 07 01 9F 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 A4 E2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED F0 02 00 35 04 06 00 19 0D 24 7E 05 65 73 0C FE B9 72 0C 75 F7 [19:14:45]CheckFolder [19:14:45]dirname=/storage/ofd_packets [19:14:45]CheckFolder done [19:14:45]ProducePacketName [19:14:45]name=ofd_packets/00192749 [19:14:45]NVStorageSaveData ofd_packets/00192749 [19:14:45]File name is /storage/ofd_packets/00192749 [19:14:45]Write 301 bytes [19:14:45]NVStorageSaveData done [19:14:45]OFDSenderStorePacket done [19:14:45]KKMCreateOFDPacket done [19:14:45]NVStorageSaveData kkm_last_timestamp [19:14:45]File name is /storage/kkm_last_timestamp [19:14:45]Write 4 bytes [19:14:45]NVStorageSaveData done [19:14:45]ExternCall_PrintAddStr [19:14:45]wPrintStart [19:14:45]Write to MH i2c: 01 00 00 08 0B 13 [19:14:45]Write i2c OK [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: 01 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: 01 07 00 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: 01 07 00 08 0B 00 00 00 00 00 FF 0F 28 [19:14:45]RasterBufferAndPrint [19:14:45]line Счет N : (1)32076 [19:14:45]line ИНН: 02508201610067 [19:14:45]line Контрольно-Кассовый Чек [19:14:45]line ПРОДАЖА [19:14:45]line ТРК (МРК, ГНК) : 12 [19:14:45]line Товар: 2710124130 [19:14:45]line Аи-92-К-5 [19:14:45]line 0.010 * 66.90 [19:14:45]line = 0.67 [19:14:45]line НДС 12% НСП 1% [19:14:45]line > о реализуемом товаре [19:14:45]line ОКРУГЛЕНИЕ: -0.67 [19:14:45]line ИТОГО: 0.00 [19:14:45]line Внесено: 500.00 [19:14:45]line СДАЧА: 500.00 [19:14:45]line НСП 1% : 0.01 [19:14:45]line НДС 12% : 0.07 [19:14:45]line Наличными: 0.00 [19:14:45]line Безнал.: 0.00 [19:14:45]line Место: АЗС № 170 "Партнер Нефть" [19:14:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:14:45]line СНО: Общий режим [19:14:45]line Чек 297 28.10.2024 19:14 [19:14:45]line Смена: 543 ФФД: 1.0 [19:14:45]line ЗНМ: 0300000110 [19:14:45]line РНМ: 0000000000091776 [19:14:45]line Версия ККМ: 001 [19:14:45]line ФМ: 0000000000871754 [19:14:45]line ФД: 192749 [19:14:45]line ФПД: 27544237507941 [19:14:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T191444&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192749&fm=27544237507941&tin=02508201610067®Number=0000000000091776&sum=0 [19:14:45]OFD Sender: Processing packet 192749 [packets to send 75, broken 74] [19:14:45]ProducePacketName [19:14:45]name=ofd_packets/00192749 [19:14:45]OFD Sender: To server: pG, [19:14:45]CommunicateWithHost lk.salyk.kg:30040 [19:14:45]ConnectInit lk.salyk.kg [19:14:45]written 0, free lines is 4095 [19:14:45]Connected sock=10 [19: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 31 37 35 34 0F 01 00 00 D3 69 07 01 9F 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 A4 E2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED F0 02 00 35 04 06 00 19 0D 24 7E 05 65 73 0C FE B9 72 0C 75 F7 [19:14:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 82 67 47 00 EB 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 31 37 35 34 10 04 04 00 ED F0 02 00 F4 03 04 00 67 87 1F 67 B6 04 01 00 00 5D A5 A1 8B 64 84 97 3C [19:14:45]CommunicateWithHost err = 0 [19:14:45]CheckOFDResponse [19:14:45]1017 (14) - 77093643461234 [19:14:45]1041 (16) - 0000000000871754 [19:14:45]1040 (4) - 192749 [19:14:45]1012 (4) - 28.10.2024 12:45 [19:14:45]1206 (1) - 0 [19:14:45]OFD Sender: Remove packet 192749 [19:14:45]ProducePacketName [19:14:45]name=ofd_packets/00192749 [19:14:45]NVStorageDeleteData [19:14:45]Write to MH i2c: 01 00 00 33 0B 3E [19:14:45]Write i2c OK [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: 01 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: 01 07 00 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: 01 07 00 33 0B 00 00 00 00 00 AC 0C FD [19:14:45]RasterBufferAndPrint [19:14:45]line [19:14:45]line [19:14:45]line [19:14:45]line [19:14:45]line [19:14:45]written 0, free lines is 3251 [19:14:45]MH_Cut [19:14:45]Write to MH i2c: D1 01 00 3A 0B 01 17 [19:14:45]Write i2c OK [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: D1 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: D1 01 00 [19:14:45]MH_I2C_Read... [19:14:45]Read from MH i2c: D1 01 00 3A 0B 00 16 [19:14:45]Write to MH i2c: 01 00 00 3B 0B 46 [19:14:45]Write i2c OK [19:14:45]MH_I2C_Read... [19:14:46]OFD Sender: No OFD packet to send [19:14:46]*** Cut start [19:14:46]*** Partial cut [19:14:46]*** CUTSNS_PIN = 1 [19:14:46]*** CUTSNS_PIN = 0 [19:14:46]*** Brake cut motor [19:14:47]Read from MH i2c: 01 [19:14:47]MH_I2C_Read... [19:14:47]*** Stop cut motor [19:14:47]*** Cut end [19:14:47]Read from MH i2c: 01 07 00 [19:14:47]MH_I2C_Read... [19:14:47]Read from MH i2c: 01 07 00 3B 0B 00 00 00 00 00 FF 0F 5B [19:14:47]process_action close_receipt done [19:14:47]requested_data is exist [19:14:47]produce_requested_data [19:14:47]requested_item fm.sn is exist - process it [19:14:47]wFMCommunicate request_size=4 [19:14:47]MH_SAM_APDU [19:14:47]CAPDU: 80 11 00 00 [19:14:47]Write to MH i2c: E2 08 00 3C 0B 80 11 00 00 00 00 00 00 C1 [19:14:47]Write i2c OK [19:14:47]MH_I2C_Read... [19:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:47]Read from MH i2c: E2 [19:14:47]MH_I2C_Read... [19:14:47]Read from MH i2c: E2 17 00 [19:14:47]MH_I2C_Read... [19:14:47]Read from MH i2c: E2 17 00 3C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 14 [19:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:14:47]wFMCommunicate OK [19:14:47]requested_item fd.num is exist - process it [19:14:47]SAM_PROTO_GetFieldsCounters [19:14:47]wFMCommunicate request_size=4 [19:14:47]MH_SAM_APDU [19:14:47]CAPDU: 80 13 00 00 [19:14:47]Write to MH i2c: E2 08 00 3D 0B 80 13 00 00 00 00 00 00 C4 [19:14:47]Write i2c OK [19:14:47]MH_I2C_Read... [19:14:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:47]Read from MH i2c: E2 [19:14:47]MH_I2C_Read... [19:14:47]Read from MH i2c: E2 62 00 [19:14:47]MH_I2C_Read... [19:14:47]Read from MH i2c: E2 62 00 3D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 ED F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [19:14:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 ED F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:47]wFMCommunicate OK [19:14:47]SAM_PROTO_GetFieldsCounters done [19:14:47]requested_item shift.num is exist - process it [19:14:47]requested_item shift.opened is exist - process it [19:14:47]req_shift_opened [19:14:47]FM_GetShiftState [19:14:47]SAM_PROTO_GetShiftState [19:14:47]wFMCommunicate request_size=4 [19:14:47]MH_SAM_APDU [19:14:47]CAPDU: 80 13 01 00 [19:14:47]Write to MH i2c: E2 08 00 3E 0B 80 13 01 00 00 00 00 00 C6 [19:14:47]Write i2c OK [19:14:47]MH_I2C_Read... [19:14:47]Read from MH i2c: E2 [19:14:47]MH_I2C_Read... [19:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:47]Read from MH i2c: E2 0E 00 [19:14:47]MH_I2C_Read... [19:14:47]Read from MH i2c: E2 0E 00 3E 0B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 16 [19:14:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:14:47]wFMCommunicate OK [19:14:47]SAM_PROTO_GetShiftState done [19:14:47]FM_GetShiftState done [19:14:47]req_shift_opened done [19:14:47]requested_item shift.open_date is exist - process it [19:14:47]req_shift_open_date [19:14:47]req_shift_open_date done [19:14:47]produce_requested_data done [19:14:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192749,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:14:47]process_action_free close_receipt [19:14:47]json_value_free [19:14:47]json_value_free done [19:14:47]process_json_proto returns [19:14:47]Send response to host [19:14:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192749,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:14:47]free response buf [19:14:47]execute_script done [19:14:47]execute_script returns [19:14:47]free content buf [19:14:47]Sock 9.Close socket [19:14:47]Sock 9.Thread stoped [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:43]accept exits with 8 [19:15:43]New connection [19:15:43]New thread 3066801508 created [19:15:43]Thread 3066658148 joined [19:15:43]Waiting for new connection... [19:15:43] Sock 8.Parse request [19:15:43]Sock 8.Check first char [19:15:43]Sock 8.First char is OK [19:15:43]request: POST /json_proto HTTP/1.0 [19:15:43]Method: POST [19:15:43]URL: /json_proto [19:15:43]Method is POST - this is cgi request [19:15:43]url: /json_proto [19:15:43]query_string will be loaded in cgi processing [19:15:43]execute_cgi json_proto POST (null) [19:15:43]execute_cgi path=json_proto method=POST [19:15:43]POST find Content-Length [19:15:43]Host: 172.17.63.131:8080 [19:15:43]Content-Length: 676 [19:15:43]Content-Type: application/json [19:15:43] [19:15:43]POST finish read [19:15:43]Found Content-Length = 676 [19:15:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:43]execute_script... [19:15:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:43]POST & json_proto [19:15:43]process_json_proto [19:15:43]json parsed OK: [19:15:43]protocol is kg_v1.0 [19:15:43]action value=close_receipt [19:15:43]process_action close_receipt [19:15:43]cmd_close_receipt [19:15:43]MH_GetDate [19:15:43]Write to MH i2c: F0 00 00 3F 0B 39 [19:15:43]Write i2c OK [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: F0 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: F0 09 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: F0 09 00 3F 0B 00 E0 E2 1F 67 22 05 6E 64 83 [19:15:43]GetLastDocTimeStamp 1730142884 [19:15:43]current date 1730142944 [19:15:43]FM_GetShiftState [19:15:43]SAM_PROTO_GetShiftState [19:15:43]wFMCommunicate request_size=4 [19:15:43]MH_SAM_APDU [19:15:43]CAPDU: 80 13 01 00 [19:15:43]Write to MH i2c: E2 08 00 40 0B 80 13 01 00 00 00 00 00 C8 [19:15:43]Write i2c OK [19:15:43]MH_I2C_Read... [19:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:43]Read from MH i2c: E2 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 0E 00 [19:15:43]MH_I2C_Read... [19:15:43]Read from MH i2c: E2 0E 00 40 0B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 18 [19:15:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:15:43]wFMCommunicate OK [19:15:43]SAM_PROTO_GetShiftState done [19:15:43]FM_GetShiftState done [19:15:43]opened in 1730075620 [19:15:43]opened+sec_in_day 1730162020 [19:15:43]quantity*price = 50041 [19:15:43]sum+1 = 50042 [19:15:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 298 28.10.2024 19:15 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192750 ФПД: 278536366343470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T191544&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192750&fm=278536366343470&tin=02508201610067®Number=0000000000091776&sum=50000 [19:15:44]StoreToDocumentArchive [19:15:44]shift 543 fd 192750 [19:15:44]save to /storage/0543/doc_00192750 [19:15:44]save last doc name /storage/0543/doc_00192750 to /storage/kkm_last_doc_name [19:15:44]save OK [19:15:44]Clear old archive folders... [19:15:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:44]tlvbuf is 00F658F0 [19:15:44]SAM_PROTO_ClearQueue [19:15:44]wFMCommunicate request_size=4 [19:15:44]MH_SAM_APDU [19:15:44]CAPDU: 80 09 00 00 [19:15:44]Write to MH i2c: E2 08 00 4D 0B 80 09 00 00 00 00 00 00 CA [19:15:44]Write i2c OK [19:15:44]MH_I2C_Read... [19:15:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:44]Read from MH i2c: E2 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 03 00 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 03 00 4D 0B 00 90 00 CC [19:15:44]RAPDU: 90 00 [19:15:44]wFMCommunicate OK [19:15:44]SAM_PROTO_ClearQueue done [19:15:44]KKMCreateOFDPacket [19:15:44]OFDProtocolAddRootSTLVToBuf [19:15:44]FM_MakeSignedData [19:15:44]FM_MakeSignedData [19:15:44]SAM_PROTO_SignData [19:15:44]wFMCommunicate request_size=4 [19:15:44]MH_SAM_APDU [19:15:44]CAPDU: 80 0D 01 02 [19:15:44]Write to MH i2c: E2 08 00 4E 0B 80 0D 01 02 00 00 00 00 D2 [19:15:44]Write i2c OK [19:15:44]MH_I2C_Read... [19:15:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:44]Read from MH i2c: E2 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 03 00 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 03 00 4E 0B 00 90 00 CD [19:15:44]RAPDU: 90 00 [19:15:44]wFMCommunicate OK [19:15:44]wFMCommunicate request_size=255 [19:15:44]MH_SAM_APDU [19:15:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 E0 E2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE F0 02 00 35 04 06 00 FD [19:15:44]Write to MH i2c: E2 02 01 4F 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 E0 E2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE F0 02 00 35 04 06 00 FD 00 00 D7 [19:15:44]Write i2c OK [19:15:44]MH_I2C_Read... [19:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:44]Read from MH i2c: E2 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 03 00 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 03 00 4F 0B 00 90 00 CE [19:15:44]RAPDU: 90 00 [19:15:44]wFMCommunicate OK [19:15:44]wFMCommunicate request_size=10 [19:15:44]MH_SAM_APDU [19:15:44]CAPDU: 80 0D 02 02 05 53 CD 2C 45 2E [19:15:44]Write to MH i2c: E2 0D 00 50 0B 80 0D 02 02 05 00 53 CD 2C 45 2E 00 00 9E [19:15:44]Write i2c OK [19:15:44]MH_I2C_Read... [19:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:44]Read from MH i2c: E2 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 03 00 [19:15:44]MH_I2C_Read... [19:15:44]Read from MH i2c: E2 03 00 50 0B 00 90 00 CF [19:15:44]RAPDU: 90 00 [19:15:44]wFMCommunicate OK [19:15:44]wFMCommunicate request_size=4 [19:15:44]MH_SAM_APDU [19:15:44]CAPDU: 80 0D 03 02 [19:15:44]Write to MH i2c: E2 08 00 51 0B 80 0D 03 02 00 00 00 00 D7 [19:15:44]Write i2c OK [19:15:44]MH_I2C_Read... [19:15:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:45]Read from MH i2c: E2 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: E2 0B 00 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: E2 0B 00 51 0B 00 1C 49 C0 A5 DD 0B 04 37 90 00 C5 [19:15:45]RAPDU: 1C 49 C0 A5 DD 0B 04 37 90 00 [19:15:45]wFMCommunicate OK [19:15:45]SAM_PROTO_SignData done [19:15:45]FM_MakeSignedData done [19:15:45]CreateOFDProtocolMessage [19:15:45]wFMCommunicate request_size=4 [19:15:45]MH_SAM_APDU [19:15:45]CAPDU: 80 11 00 00 [19:15:45]Write to MH i2c: E2 08 00 52 0B 80 11 00 00 00 00 00 00 D7 [19:15:45]Write i2c OK [19:15:45]MH_I2C_Read... [19:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:45]Read from MH i2c: E2 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: E2 17 00 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: E2 17 00 52 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2A [19:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:15:45]wFMCommunicate OK [19:15:45]CreateOFDProtocolMessage done [19:15:45]OFDSenderStorePacket 192750 [19:15:45]StoreOFDPacket docnum=192750 [19:15:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 23 93 07 01 A3 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 E0 E2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE F0 02 00 35 04 06 00 FD 53 CD 2C 45 2E 1C 49 C0 A5 DD 0B 04 37 [19:15:45]CheckFolder [19:15:45]dirname=/storage/ofd_packets [19:15:45]CheckFolder done [19:15:45]ProducePacketName [19:15:45]name=ofd_packets/00192750 [19:15:45]NVStorageSaveData ofd_packets/00192750 [19:15:45]File name is /storage/ofd_packets/00192750 [19:15:45]Write 301 bytes [19:15:45]NVStorageSaveData done [19:15:45]OFDSenderStorePacket done [19:15:45]KKMCreateOFDPacket done [19:15:45]NVStorageSaveData kkm_last_timestamp [19:15:45]File name is /storage/kkm_last_timestamp [19:15:45]Write 4 bytes [19:15:45]NVStorageSaveData done [19:15:45]ExternCall_PrintAddStr [19:15:45]wPrintStart [19:15:45]Write to MH i2c: 01 00 00 53 0B 5E [19:15:45]Write i2c OK [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: 01 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: 01 07 00 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: 01 07 00 53 0B 00 00 00 00 00 FF 0F 73 [19:15:45]RasterBufferAndPrint [19:15:45]line Счет N : (1)32077 [19:15:45]line ИНН: 02508201610067 [19:15:45]line Контрольно-Кассовый Чек [19:15:45]line ПРОДАЖА [19:15:45]line ТРК (МРК, ГНК) : 12 [19:15:45]line Товар: 2710124130 [19:15:45]line Аи-92-К-5 [19:15:45]line 7.480 * 66.90 [19:15:45]line = 500.41 [19:15:45]line НДС 12% НСП 1% [19:15:45]line > о реализуемом товаре [19:15:45]line ОКРУГЛЕНИЕ: -0.41 [19:15:45]line ИТОГО: 500.00 [19:15:45]line Внесено: 500.00 [19:15:45]line СДАЧА: 0.00 [19:15:45]line НСП 1% : 4.43 [19:15:45]line НДС 12% : 53.14 [19:15:45]line Наличными: 500.00 [19:15:45]line Безнал.: 0.00 [19:15:45]line Место: АЗС № 170 "Партнер Нефть" [19:15:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:15:45]line СНО: Общий режим [19:15:45]line Чек 298 28.10.2024 19:15 [19:15:45]line Смена: 543 ФФД: 1.0 [19:15:45]line ЗНМ: 0300000110 [19:15:45]line РНМ: 0000000000091776 [19:15:45]line Версия ККМ: 001 [19:15:45]line ФМ: 0000000000871754 [19:15:45]line ФД: 192750 [19:15:45]line ФПД: 278536366343470 [19:15:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T191544&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192750&fm=278536366343470&tin=02508201610067®Number=0000000000091776&sum=50000 [19:15:45]OFD Sender: Processing packet 192750 [packets to send 75, broken 74] [19:15:45]ProducePacketName [19:15:45]name=ofd_packets/00192750 [19:15:45]OFD Sender: To server: pG, [19:15:45]CommunicateWithHost lk.salyk.kg:30040 [19:15:45]ConnectInit lk.salyk.kg [19:15:45]written 0, free lines is 4095 [19:15:45]Connected sock=10 [19:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 23 93 07 01 A3 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 E0 E2 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE F0 02 00 35 04 06 00 FD 53 CD 2C 45 2E 1C 49 C0 A5 DD 0B 04 37 [19:15:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 20 B2 47 00 41 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE F0 02 00 F4 03 04 00 A3 87 1F 67 B6 04 01 00 00 3F BD 6A EB 27 4E 51 C3 [19:15:45]CommunicateWithHost err = 0 [19:15:45]CheckOFDResponse [19:15:45]1017 (14) - 77093643461234 [19:15:45]1041 (16) - 0000000000871754 [19:15:45]1040 (4) - 192750 [19:15:45]1012 (4) - 28.10.2024 12:46 [19:15:45]1206 (1) - 0 [19:15:45]OFD Sender: Remove packet 192750 [19:15:45]ProducePacketName [19:15:45]name=ofd_packets/00192750 [19:15:45]NVStorageDeleteData [19:15:45]Write to MH i2c: 01 00 00 7E 0B 89 [19:15:45]Write i2c OK [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: 01 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: 01 07 00 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: 01 07 00 7E 0B 00 00 00 00 00 AA 0C 46 [19:15:45]RasterBufferAndPrint [19:15:45]line [19:15:45]line [19:15:45]line [19:15:45]line [19:15:45]line [19:15:45]written 0, free lines is 3250 [19:15:45]MH_Cut [19:15:45]Write to MH i2c: D1 01 00 85 0B 01 62 [19:15:45]Write i2c OK [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: D1 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: D1 01 00 [19:15:45]MH_I2C_Read... [19:15:45]Read from MH i2c: D1 01 00 85 0B 00 61 [19:15:45]Write to MH i2c: 01 00 00 86 0B 91 [19:15:45]Write i2c OK [19:15:45]MH_I2C_Read... [19:15:46]OFD Sender: No OFD packet to send [19:15:46]*** Cut start [19:15:46]*** Partial cut [19:15:46]*** CUTSNS_PIN = 1 [19:15:46]*** CUTSNS_PIN = 0 [19:15:46]*** Brake cut motor [19:15:47]Read from MH i2c: 01 [19:15:47]MH_I2C_Read... [19:15:47]*** Stop cut motor [19:15:47]*** Cut end [19:15:47]Read from MH i2c: 01 07 00 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: 01 07 00 86 0B 00 00 00 00 00 FF 0F A6 [19:15:47]process_action close_receipt done [19:15:47]requested_data is exist [19:15:47]produce_requested_data [19:15:47]requested_item fm.sn is exist - process it [19:15:47]wFMCommunicate request_size=4 [19:15:47]MH_SAM_APDU [19:15:47]CAPDU: 80 11 00 00 [19:15:47]Write to MH i2c: E2 08 00 87 0B 80 11 00 00 00 00 00 00 0C [19:15:47]Write i2c OK [19:15:47]MH_I2C_Read... [19:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:47]Read from MH i2c: E2 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 17 00 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 17 00 87 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5F [19:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:15:47]wFMCommunicate OK [19:15:47]requested_item fd.num is exist - process it [19:15:47]SAM_PROTO_GetFieldsCounters [19:15:47]wFMCommunicate request_size=4 [19:15:47]MH_SAM_APDU [19:15:47]CAPDU: 80 13 00 00 [19:15:47]Write to MH i2c: E2 08 00 88 0B 80 13 00 00 00 00 00 00 0F [19:15:47]Write i2c OK [19:15:47]MH_I2C_Read... [19:15:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:47]Read from MH i2c: E2 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 62 00 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 62 00 88 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EE F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [19:15:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EE F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:47]wFMCommunicate OK [19:15:47]SAM_PROTO_GetFieldsCounters done [19:15:47]requested_item shift.num is exist - process it [19:15:47]requested_item shift.opened is exist - process it [19:15:47]req_shift_opened [19:15:47]FM_GetShiftState [19:15:47]SAM_PROTO_GetShiftState [19:15:47]wFMCommunicate request_size=4 [19:15:47]MH_SAM_APDU [19:15:47]CAPDU: 80 13 01 00 [19:15:47]Write to MH i2c: E2 08 00 89 0B 80 13 01 00 00 00 00 00 11 [19:15:47]Write i2c OK [19:15:47]MH_I2C_Read... [19:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:47]Read from MH i2c: E2 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 0E 00 [19:15:47]MH_I2C_Read... [19:15:47]Read from MH i2c: E2 0E 00 89 0B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 61 [19:15:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:15:47]wFMCommunicate OK [19:15:47]SAM_PROTO_GetShiftState done [19:15:47]FM_GetShiftState done [19:15:47]req_shift_opened done [19:15:47]requested_item shift.open_date is exist - process it [19:15:47]req_shift_open_date [19:15:47]req_shift_open_date done [19:15:47]produce_requested_data done [19:15:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192750,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:15:47]process_action_free close_receipt [19:15:47]json_value_free [19:15:47]json_value_free done [19:15:47]process_json_proto returns [19:15:47]Send response to host [19:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192750,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:15:47]free response buf [19:15:47]execute_script done [19:15:47]execute_script returns [19:15:47]free content buf [19:15:47]Sock 8.Close socket [19:15:47]Sock 8.Thread stoped [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:26]OFD Sender: No OFD packet to send [19:17:31]OFD Sender: No OFD packet to send [19:17:36]OFD Sender: No OFD packet to send [19:17:41]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:18:01]OFD Sender: No OFD packet to send [19:18:06]OFD Sender: No OFD packet to send [19:18:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:44]accept exits with 9 [19:18:44]New connection [19:18:44]New thread 3066658148 created [19:18:44]Thread 3066801508 joined [19:18:44]Waiting for new connection... [19:18:44] Sock 9.Parse request [19:18:44]Sock 9.Check first char [19:18:44]Sock 9.First char is OK [19:18:44]request: POST /json_proto HTTP/1.0 [19:18:44]Method: POST [19:18:44]URL: /json_proto [19:18:44]Method is POST - this is cgi request [19:18:44]url: /json_proto [19:18:44]query_string will be loaded in cgi processing [19:18:44]execute_cgi json_proto POST (null) [19:18:44]execute_cgi path=json_proto method=POST [19:18:44]POST find Content-Length [19:18:44]Host: 172.17.63.131:8080 [19:18:44]Content-Length: 676 [19:18:44]Content-Type: application/json [19:18:44] [19:18:44]POST finish read [19:18:44]Found Content-Length = 676 [19:18:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:44]execute_script... [19: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)32078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:44]POST & json_proto [19:18:44]process_json_proto [19:18:44]json parsed OK: [19:18:44]protocol is kg_v1.0 [19:18:44]action value=close_receipt [19:18:44]process_action close_receipt [19:18:44]cmd_close_receipt [19:18:44]MH_GetDate [19:18:44]Write to MH i2c: F0 00 00 8A 0B 84 [19:18:44]Write i2c OK [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: F0 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: F0 09 00 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: F0 09 00 8A 0B 00 95 E3 1F 67 22 05 6E 64 84 [19:18:44]GetLastDocTimeStamp 1730142944 [19:18:44]current date 1730143125 [19:18:44]FM_GetShiftState [19:18:44]SAM_PROTO_GetShiftState [19:18:44]wFMCommunicate request_size=4 [19:18:44]MH_SAM_APDU [19:18:44]CAPDU: 80 13 01 00 [19:18:44]Write to MH i2c: E2 08 00 8B 0B 80 13 01 00 00 00 00 00 13 [19:18:44]Write i2c OK [19:18:44]MH_I2C_Read... [19:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:44]Read from MH i2c: E2 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: E2 0E 00 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: E2 0E 00 8B 0B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 63 [19:18:44]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:18:44]wFMCommunicate OK [19:18:44]SAM_PROTO_GetShiftState done [19:18:44]FM_GetShiftState done [19:18:44]opened in 1730075620 [19:18:44]opened+sec_in_day 1730162020 [19:18:44]quantity*price = 40006 [19:18:44]sum+1 = 40007 [19:18:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 299 28.10.2024 19:18 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192751 ФПД: 252854089317933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T191845&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192751&fm=252854089317933&tin=02508201610067®Number=0000000000091776&sum=40000 [19:18:45]StoreToDocumentArchive [19:18:45]shift 543 fd 192751 [19:18:45]save to /storage/0543/doc_00192751 [19:18:45]save last doc name /storage/0543/doc_00192751 to /storage/kkm_last_doc_name [19:18:45]save OK [19:18:45]Clear old archive folders... [19:18:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:18:45]tlvbuf is 00F66A90 [19:18:45]SAM_PROTO_ClearQueue [19:18:45]wFMCommunicate request_size=4 [19:18:45]MH_SAM_APDU [19:18:45]CAPDU: 80 09 00 00 [19:18:45]Write to MH i2c: E2 08 00 98 0B 80 09 00 00 00 00 00 00 15 [19:18:45]Write i2c OK [19:18:45]MH_I2C_Read... [19:18:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:45]Read from MH i2c: E2 [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: E2 03 00 [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: E2 03 00 98 0B 00 90 00 17 [19:18:45]RAPDU: 90 00 [19:18:45]wFMCommunicate OK [19:18:45]SAM_PROTO_ClearQueue done [19:18:45]KKMCreateOFDPacket [19:18:45]OFDProtocolAddRootSTLVToBuf [19:18:45]FM_MakeSignedData [19:18:45]FM_MakeSignedData [19:18:45]SAM_PROTO_SignData [19:18:45]wFMCommunicate request_size=4 [19:18:45]MH_SAM_APDU [19:18:45]CAPDU: 80 0D 01 02 [19:18:45]Write to MH i2c: E2 08 00 99 0B 80 0D 01 02 00 00 00 00 1D [19:18:45]Write i2c OK [19:18:45]MH_I2C_Read... [19:18:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:45]Read from MH i2c: E2 [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: E2 03 00 [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: E2 03 00 99 0B 00 90 00 18 [19:18:45]RAPDU: 90 00 [19:18:45]wFMCommunicate OK [19:18:45]wFMCommunicate request_size=255 [19:18:45]MH_SAM_APDU [19: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 95 E3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF F0 02 00 35 04 06 00 E5 [19:18:45]Write to MH i2c: E2 02 01 9A 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 95 E3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF F0 02 00 35 04 06 00 E5 00 00 91 [19:18:45]Write i2c OK [19:18:45]MH_I2C_Read... [19:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:46]Read from MH i2c: E2 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: E2 03 00 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: E2 03 00 9A 0B 00 90 00 19 [19:18:46]RAPDU: 90 00 [19:18:46]wFMCommunicate OK [19:18:46]wFMCommunicate request_size=10 [19:18:46]MH_SAM_APDU [19:18:46]CAPDU: 80 0D 02 02 05 F8 2E 2C 7E 2D [19:18:46]Write to MH i2c: E2 0D 00 9B 0B 80 0D 02 02 05 00 F8 2E 2C 7E 2D 00 00 27 [19:18:46]Write i2c OK [19:18:46]MH_I2C_Read... [19:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:46]Read from MH i2c: E2 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: E2 03 00 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: E2 03 00 9B 0B 00 90 00 1A [19:18:46]RAPDU: 90 00 [19:18:46]wFMCommunicate OK [19:18:46]wFMCommunicate request_size=4 [19:18:46]MH_SAM_APDU [19:18:46]CAPDU: 80 0D 03 02 [19:18:46]Write to MH i2c: E2 08 00 9C 0B 80 0D 03 02 00 00 00 00 22 [19:18:46]Write i2c OK [19:18:46]MH_I2C_Read... [19:18:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:46]Read from MH i2c: E2 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: E2 0B 00 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: E2 0B 00 9C 0B 00 30 85 BF 04 43 56 E7 FF 90 00 1A [19:18:46]RAPDU: 30 85 BF 04 43 56 E7 FF 90 00 [19:18:46]wFMCommunicate OK [19:18:46]SAM_PROTO_SignData done [19:18:46]FM_MakeSignedData done [19:18:46]CreateOFDProtocolMessage [19:18:46]wFMCommunicate request_size=4 [19:18:46]MH_SAM_APDU [19:18:46]CAPDU: 80 11 00 00 [19:18:46]Write to MH i2c: E2 08 00 9D 0B 80 11 00 00 00 00 00 00 22 [19:18:46]Write i2c OK [19:18:46]MH_I2C_Read... [19:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:46]Read from MH i2c: E2 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: E2 17 00 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: E2 17 00 9D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 75 [19:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:18:46]wFMCommunicate OK [19:18:46]CreateOFDProtocolMessage done [19:18:46]OFDSenderStorePacket 192751 [19:18:46]StoreOFDPacket docnum=192751 [19:18:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 12 19 07 01 E1 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 95 E3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF F0 02 00 35 04 06 00 E5 F8 2E 2C 7E 2D 30 85 BF 04 43 56 E7 FF [19:18:46]CheckFolder [19:18:46]dirname=/storage/ofd_packets [19:18:46]CheckFolder done [19:18:46]ProducePacketName [19:18:46]name=ofd_packets/00192751 [19:18:46]NVStorageSaveData ofd_packets/00192751 [19:18:46]File name is /storage/ofd_packets/00192751 [19:18:46]Write 301 bytes [19:18:46]NVStorageSaveData done [19:18:46]OFDSenderStorePacket done [19:18:46]KKMCreateOFDPacket done [19:18:46]NVStorageSaveData kkm_last_timestamp [19:18:46]File name is /storage/kkm_last_timestamp [19:18:46]Write 4 bytes [19:18:46]NVStorageSaveData done [19:18:46]ExternCall_PrintAddStr [19:18:46]wPrintStart [19:18:46]Write to MH i2c: 01 00 00 9E 0B A9 [19:18:46]Write i2c OK [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: 01 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: 01 07 00 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: 01 07 00 9E 0B 00 00 00 00 00 FF 0F BE [19:18:46]RasterBufferAndPrint [19:18:46]line Счет N : (1)32078 [19:18:46]line ИНН: 02508201610067 [19:18:46]line Контрольно-Кассовый Чек [19:18:46]line ПРОДАЖА [19:18:46]line ТРК (МРК, ГНК) : 12 [19:18:46]line Товар: 2710124130 [19:18:46]line Аи-92-К-5 [19:18:46]line 5.980 * 66.90 [19:18:46]line = 400.06 [19:18:46]line НДС 12% НСП 1% [19:18:46]line > о реализуемом товаре [19:18:46]line ОКРУГЛЕНИЕ: -0.06 [19:18:46]line ИТОГО: 400.00 [19:18:46]line Внесено: 400.00 [19:18:46]line СДАЧА: 0.00 [19:18:46]line НСП 1% : 3.54 [19:18:46]line НДС 12% : 42.48 [19:18:46]line Наличными: 400.00 [19:18:46]line Безнал.: 0.00 [19:18:46]line Место: АЗС № 170 "Партнер Нефть" [19:18:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:18:46]line СНО: Общий режим [19:18:46]line Чек 299 28.10.2024 19:18 [19:18:46]line Смена: 543 ФФД: 1.0 [19:18:46]line ЗНМ: 0300000110 [19:18:46]line РНМ: 0000000000091776 [19:18:46]line Версия ККМ: 001 [19:18:46]line ФМ: 0000000000871754 [19:18:46]line ФД: 192751 [19:18:46]line ФПД: 252854089317933 [19:18:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T191845&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192751&fm=252854089317933&tin=02508201610067®Number=0000000000091776&sum=40000 [19:18:46]OFD Sender: Processing packet 192751 [packets to send 75, broken 74] [19:18:46]ProducePacketName [19:18:46]name=ofd_packets/00192751 [19:18:46]OFD Sender: To server: pG, [19:18:46]CommunicateWithHost lk.salyk.kg:30040 [19:18:46]ConnectInit lk.salyk.kg [19:18:46]written 0, free lines is 4095 [19:18:46]Connected sock=10 [19: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 31 37 35 34 0F 01 00 00 12 19 07 01 E1 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 95 E3 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF F0 02 00 35 04 06 00 E5 F8 2E 2C 7E 2D 30 85 BF 04 43 56 E7 FF [19:18:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9B A3 47 00 9E 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF F0 02 00 F4 03 04 00 58 88 1F 67 B6 04 01 00 00 BE E6 C3 9F 4A 56 21 08 [19:18:46]CommunicateWithHost err = 0 [19:18:46]CheckOFDResponse [19:18:46]1017 (14) - 77093643461234 [19:18:46]1041 (16) - 0000000000871754 [19:18:46]1040 (4) - 192751 [19:18:46]1012 (4) - 28.10.2024 12:49 [19:18:46]1206 (1) - 0 [19:18:46]OFD Sender: Remove packet 192751 [19:18:46]ProducePacketName [19:18:46]name=ofd_packets/00192751 [19:18:46]NVStorageDeleteData [19:18:47]Write to MH i2c: 01 00 00 C9 0B D4 [19:18:47]Write i2c OK [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: 01 [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: 01 07 00 [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: 01 07 00 C9 0B 00 00 00 00 00 AD 0C 94 [19:18:47]RasterBufferAndPrint [19:18:47]line [19:18:47]line [19:18:47]line [19:18:47]line [19:18:47]line [19:18:47]written 0, free lines is 3251 [19:18:47]MH_Cut [19:18:47]Write to MH i2c: D1 01 00 D0 0B 01 AD [19:18:47]Write i2c OK [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: D1 [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: D1 01 00 [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: D1 01 00 D0 0B 00 AC [19:18:47]Write to MH i2c: 01 00 00 D1 0B DC [19:18:47]Write i2c OK [19:18:47]MH_I2C_Read... [19:18:47]OFD Sender: No OFD packet to send [19:18:47]*** Cut start [19:18:47]*** Partial cut [19:18:47]*** CUTSNS_PIN = 1 [19:18:47]*** CUTSNS_PIN = 0 [19:18:48]*** Brake cut motor [19:18:48]Read from MH i2c: 01 [19:18:48]MH_I2C_Read... [19:18:48]*** Stop cut motor [19:18:48]*** Cut end [19:18:48]Read from MH i2c: 01 07 00 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: 01 07 00 D1 0B 00 00 00 00 00 FF 0F F1 [19:18:48]process_action close_receipt done [19:18:48]requested_data is exist [19:18:48]produce_requested_data [19:18:48]requested_item fm.sn is exist - process it [19:18:48]wFMCommunicate request_size=4 [19:18:48]MH_SAM_APDU [19:18:48]CAPDU: 80 11 00 00 [19:18:48]Write to MH i2c: E2 08 00 D2 0B 80 11 00 00 00 00 00 00 57 [19:18:48]Write i2c OK [19:18:48]MH_I2C_Read... [19:18:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:48]Read from MH i2c: E2 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: E2 17 00 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: E2 17 00 D2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AA [19:18:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:18:48]wFMCommunicate OK [19:18:48]requested_item fd.num is exist - process it [19:18:48]SAM_PROTO_GetFieldsCounters [19:18:48]wFMCommunicate request_size=4 [19:18:48]MH_SAM_APDU [19:18:48]CAPDU: 80 13 00 00 [19:18:48]Write to MH i2c: E2 08 00 D3 0B 80 13 00 00 00 00 00 00 5A [19:18:48]Write i2c OK [19:18:48]MH_I2C_Read... [19:18:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:48]Read from MH i2c: E2 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: E2 62 00 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: E2 62 00 D3 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EF F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [19:18:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EF F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:48]wFMCommunicate OK [19:18:48]SAM_PROTO_GetFieldsCounters done [19:18:48]requested_item shift.num is exist - process it [19:18:48]requested_item shift.opened is exist - process it [19:18:48]req_shift_opened [19:18:48]FM_GetShiftState [19:18:48]SAM_PROTO_GetShiftState [19:18:48]wFMCommunicate request_size=4 [19:18:48]MH_SAM_APDU [19:18:48]CAPDU: 80 13 01 00 [19:18:48]Write to MH i2c: E2 08 00 D4 0B 80 13 01 00 00 00 00 00 5C [19:18:48]Write i2c OK [19:18:48]MH_I2C_Read... [19:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:48]Read from MH i2c: E2 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: E2 0E 00 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: E2 0E 00 D4 0B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 AC [19:18:48]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:18:48]wFMCommunicate OK [19:18:48]SAM_PROTO_GetShiftState done [19:18:48]FM_GetShiftState done [19:18:48]req_shift_opened done [19:18:48]requested_item shift.open_date is exist - process it [19:18:48]req_shift_open_date [19:18:48]req_shift_open_date done [19:18:48]produce_requested_data done [19:18:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192751,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:18:48]process_action_free close_receipt [19:18:48]json_value_free [19:18:48]json_value_free done [19:18:48]process_json_proto returns [19:18:48]Send response to host [19:18:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192751,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:18:48]free response buf [19:18:48]execute_script done [19:18:48]execute_script returns [19:18:48]free content buf [19:18:48]Sock 9.Close socket [19:18:48]Sock 9.Thread stoped [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:38]accept exits with 8 [19:20:38]New connection [19:20:38]New thread 3066801508 created [19:20:38]Thread 3066658148 joined [19:20:38]Waiting for new connection... [19:20:38] Sock 8.Parse request [19:20:38]Sock 8.Check first char [19:20:38]Sock 8.First char is OK [19:20:38]request: POST /json_proto HTTP/1.0 [19:20:38]Method: POST [19:20:38]URL: /json_proto [19:20:38]Method is POST - this is cgi request [19:20:38]url: /json_proto [19:20:38]query_string will be loaded in cgi processing [19:20:38]execute_cgi json_proto POST (null) [19:20:38]execute_cgi path=json_proto method=POST [19:20:38]POST find Content-Length [19:20:38]Host: 172.17.63.131:8080 [19:20:38]Content-Length: 676 [19:20:38]Content-Type: application/json [19:20:38] [19:20:38]POST finish read [19:20:38]Found Content-Length = 676 [19:20:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:38]execute_script... [19:20:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:38]POST & json_proto [19:20:38]process_json_proto [19:20:38]json parsed OK: [19:20:38]protocol is kg_v1.0 [19:20:38]action value=close_receipt [19:20:38]process_action close_receipt [19:20:38]cmd_close_receipt [19:20:38]MH_GetDate [19:20:38]Write to MH i2c: F0 00 00 D5 0B CF [19:20:38]Write i2c OK [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: F0 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: F0 09 00 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: F0 09 00 D5 0B 00 07 E4 1F 67 22 05 6E 64 42 [19:20:38]GetLastDocTimeStamp 1730143125 [19:20:38]current date 1730143239 [19:20:38]FM_GetShiftState [19:20:38]SAM_PROTO_GetShiftState [19:20:38]wFMCommunicate request_size=4 [19:20:38]MH_SAM_APDU [19:20:38]CAPDU: 80 13 01 00 [19:20:38]Write to MH i2c: E2 08 00 D6 0B 80 13 01 00 00 00 00 00 5E [19:20:38]Write i2c OK [19:20:38]MH_I2C_Read... [19:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:38]Read from MH i2c: E2 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: E2 0E 00 [19:20:38]MH_I2C_Read... [19:20:38]Read from MH i2c: E2 0E 00 D6 0B 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 AE [19:20:38]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:20:38]wFMCommunicate OK [19:20:38]SAM_PROTO_GetShiftState done [19:20:38]FM_GetShiftState done [19:20:38]opened in 1730075620 [19:20:38]opened+sec_in_day 1730162020 [19:20:38]quantity*price = 25020 [19:20:38]sum+1 = 25022 [19:20:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 300 28.10.2024 19:20 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192752 ФПД: 139161885959397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T192039&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192752&fm=139161885959397&tin=02508201610067®Number=0000000000091776&sum=25000 [19:20:39]StoreToDocumentArchive [19:20:39]shift 543 fd 192752 [19:20:39]save to /storage/0543/doc_00192752 [19:20:39]save last doc name /storage/0543/doc_00192752 to /storage/kkm_last_doc_name [19:20:39]save OK [19:20:39]Clear old archive folders... [19:20:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:20:39]tlvbuf is 00EED9B0 [19:20:39]SAM_PROTO_ClearQueue [19:20:39]wFMCommunicate request_size=4 [19:20:39]MH_SAM_APDU [19:20:39]CAPDU: 80 09 00 00 [19:20:39]Write to MH i2c: E2 08 00 E3 0B 80 09 00 00 00 00 00 00 60 [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 E3 0B 00 90 00 62 [19:20:39]RAPDU: 90 00 [19:20:39]wFMCommunicate OK [19:20:39]SAM_PROTO_ClearQueue done [19:20:39]KKMCreateOFDPacket [19:20:39]OFDProtocolAddRootSTLVToBuf [19:20:39]FM_MakeSignedData [19:20:39]FM_MakeSignedData [19:20:39]SAM_PROTO_SignData [19:20:39]wFMCommunicate request_size=4 [19:20:39]MH_SAM_APDU [19:20:39]CAPDU: 80 0D 01 02 [19:20:39]Write to MH i2c: E2 08 00 E4 0B 80 0D 01 02 00 00 00 00 68 [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 E4 0B 00 90 00 63 [19:20:39]RAPDU: 90 00 [19:20:39]wFMCommunicate OK [19:20:39]wFMCommunicate request_size=255 [19:20:39]MH_SAM_APDU [19:20: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 07 E4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 F0 02 00 35 04 06 00 7E [19:20:39]Write to MH i2c: E2 02 01 E5 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 07 E4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 F0 02 00 35 04 06 00 7E 00 00 F4 [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:39]Read from MH i2c: E2 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 [19:20:39]MH_I2C_Read... [19:20:39]Read from MH i2c: E2 03 00 E5 0B 00 90 00 64 [19:20:39]RAPDU: 90 00 [19:20:39]wFMCommunicate OK [19:20:39]wFMCommunicate request_size=10 [19:20:39]MH_SAM_APDU [19:20:39]CAPDU: 80 0D 02 02 05 91 26 C7 64 E5 [19:20:39]Write to MH i2c: E2 0D 00 E6 0B 80 0D 02 02 05 00 91 26 C7 64 E5 00 00 3C [19:20:39]Write i2c OK [19:20:39]MH_I2C_Read... [19:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:40]Read from MH i2c: E2 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: E2 03 00 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: E2 03 00 E6 0B 00 90 00 65 [19:20:40]RAPDU: 90 00 [19:20:40]wFMCommunicate OK [19:20:40]wFMCommunicate request_size=4 [19:20:40]MH_SAM_APDU [19:20:40]CAPDU: 80 0D 03 02 [19:20:40]Write to MH i2c: E2 08 00 E7 0B 80 0D 03 02 00 00 00 00 6D [19:20:40]Write i2c OK [19:20:40]MH_I2C_Read... [19:20:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:40]Read from MH i2c: E2 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: E2 0B 00 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: E2 0B 00 E7 0B 00 1C BD 08 06 34 81 D0 36 90 00 10 [19:20:40]RAPDU: 1C BD 08 06 34 81 D0 36 90 00 [19:20:40]wFMCommunicate OK [19:20:40]SAM_PROTO_SignData done [19:20:40]FM_MakeSignedData done [19:20:40]CreateOFDProtocolMessage [19:20:40]wFMCommunicate request_size=4 [19:20:40]MH_SAM_APDU [19:20:40]CAPDU: 80 11 00 00 [19:20:40]Write to MH i2c: E2 08 00 E8 0B 80 11 00 00 00 00 00 00 6D [19:20:40]Write i2c OK [19:20:40]MH_I2C_Read... [19:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:40]Read from MH i2c: E2 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: E2 17 00 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: E2 17 00 E8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C0 [19:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:20:40]wFMCommunicate OK [19:20:40]CreateOFDProtocolMessage done [19:20:40]OFDSenderStorePacket 192752 [19:20:40]StoreOFDPacket docnum=192752 [19:20:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 03 57 07 01 C0 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 07 E4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 F0 02 00 35 04 06 00 7E 91 26 C7 64 E5 1C BD 08 06 34 81 D0 36 [19:20:40]CheckFolder [19:20:40]dirname=/storage/ofd_packets [19:20:40]CheckFolder done [19:20:40]ProducePacketName [19:20:40]name=ofd_packets/00192752 [19:20:40]NVStorageSaveData ofd_packets/00192752 [19:20:40]File name is /storage/ofd_packets/00192752 [19:20:40]Write 301 bytes [19:20:40]NVStorageSaveData done [19:20:40]OFDSenderStorePacket done [19:20:40]KKMCreateOFDPacket done [19:20:40]NVStorageSaveData kkm_last_timestamp [19:20:40]File name is /storage/kkm_last_timestamp [19:20:40]Write 4 bytes [19:20:40]NVStorageSaveData done [19:20:40]ExternCall_PrintAddStr [19:20:40]wPrintStart [19:20:40]Write to MH i2c: 01 00 00 E9 0B F4 [19:20:40]Write i2c OK [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: 01 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: 01 07 00 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: 01 07 00 E9 0B 00 00 00 00 00 FF 0F 09 [19:20:40]RasterBufferAndPrint [19:20:40]line Счет N : (1)32080 [19:20:40]line ИНН: 02508201610067 [19:20:40]line Контрольно-Кассовый Чек [19:20:40]line ПРОДАЖА [19:20:40]line ТРК (МРК, ГНК) : 12 [19:20:40]line Товар: 2710124130 [19:20:40]line Аи-92-К-5 [19:20:40]line 3.740 * 66.90 [19:20:40]line = 250.21 [19:20:40]line НДС 12% НСП 1% [19:20:40]line > о реализуемом товаре [19:20:40]line ОКРУГЛЕНИЕ: -0.21 [19:20:40]line ИТОГО: 250.00 [19:20:40]line Внесено: 250.00 [19:20:40]line СДАЧА: 0.00 [19:20:40]line НСП 1% : 2.21 [19:20:40]line НДС 12% : 26.57 [19:20:40]line Наличными: 250.00 [19:20:40]line Безнал.: 0.00 [19:20:40]line Место: АЗС № 170 "Партнер Нефть" [19:20:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:20:40]line СНО: Общий режим [19:20:40]line Чек 300 28.10.2024 19:20 [19:20:40]line Смена: 543 ФФД: 1.0 [19:20:40]line ЗНМ: 0300000110 [19:20:40]line РНМ: 0000000000091776 [19:20:40]line Версия ККМ: 001 [19:20:40]line ФМ: 0000000000871754 [19:20:40]line ФД: 192752 [19:20:40]line ФПД: 139161885959397 [19:20:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T192039&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192752&fm=139161885959397&tin=02508201610067®Number=0000000000091776&sum=25000 [19:20:40]OFD Sender: Processing packet 192752 [packets to send 75, broken 74] [19:20:40]ProducePacketName [19:20:40]name=ofd_packets/00192752 [19:20:40]OFD Sender: To server: pG, [19:20:40]CommunicateWithHost lk.salyk.kg:30040 [19:20:40]ConnectInit lk.salyk.kg [19:20:40]written 0, free lines is 4095 [19:20:40]Connected sock=9 [19:20:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 03 57 07 01 C0 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 07 E4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 F0 02 00 35 04 06 00 7E 91 26 C7 64 E5 1C BD 08 06 34 81 D0 36 [19:20:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 74 64 47 00 51 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 F0 02 00 F4 03 04 00 CA 88 1F 67 B6 04 01 00 00 0D 09 63 EB 00 08 0E C7 [19:20:40]CommunicateWithHost err = 0 [19:20:40]CheckOFDResponse [19:20:40]1017 (14) - 77093643461234 [19:20:40]1041 (16) - 0000000000871754 [19:20:40]1040 (4) - 192752 [19:20:40]1012 (4) - 28.10.2024 12:51 [19:20:40]1206 (1) - 0 [19:20:40]OFD Sender: Remove packet 192752 [19:20:40]ProducePacketName [19:20:40]name=ofd_packets/00192752 [19:20:40]NVStorageDeleteData [19:20:40]Write to MH i2c: 01 00 00 14 0C 20 [19:20:40]Write i2c OK [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: 01 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: 01 07 00 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: 01 07 00 14 0C 00 00 00 00 00 C0 0C F3 [19:20:40]RasterBufferAndPrint [19:20:40]line [19:20:40]line [19:20:40]line [19:20:40]line [19:20:40]line [19:20:40]written 0, free lines is 3273 [19:20:40]MH_Cut [19:20:40]Write to MH i2c: D1 01 00 1B 0C 01 F9 [19:20:40]Write i2c OK [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: D1 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: D1 01 00 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: D1 01 00 1B 0C 00 F8 [19:20:40]Write to MH i2c: 01 00 00 1C 0C 28 [19:20:40]Write i2c OK [19:20:40]MH_I2C_Read... [19:20:41]OFD Sender: No OFD packet to send [19:20:41]*** Cut start [19:20:41]*** Partial cut [19:20:41]*** CUTSNS_PIN = 1 [19:20:41]*** CUTSNS_PIN = 0 [19:20:42]*** Brake cut motor [19:20:42]Read from MH i2c: 01 [19:20:42]MH_I2C_Read... [19:20:42]*** Stop cut motor [19:20:42]*** Cut end [19:20:42]Read from MH i2c: 01 07 00 [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: 01 07 00 1C 0C 00 00 00 00 00 FF 0F 3D [19:20:42]process_action close_receipt done [19:20:42]requested_data is exist [19:20:42]produce_requested_data [19:20:42]requested_item fm.sn is exist - process it [19:20:42]wFMCommunicate request_size=4 [19:20:42]MH_SAM_APDU [19:20:42]CAPDU: 80 11 00 00 [19:20:42]Write to MH i2c: E2 08 00 1D 0C 80 11 00 00 00 00 00 00 A3 [19:20:42]Write i2c OK [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: E2 [19:20:42]MH_I2C_Read... [19:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:42]Read from MH i2c: E2 17 00 [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: E2 17 00 1D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F6 [19:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:20:42]wFMCommunicate OK [19:20:42]requested_item fd.num is exist - process it [19:20:42]SAM_PROTO_GetFieldsCounters [19:20:42]wFMCommunicate request_size=4 [19:20:42]MH_SAM_APDU [19:20:42]CAPDU: 80 13 00 00 [19:20:42]Write to MH i2c: E2 08 00 1E 0C 80 13 00 00 00 00 00 00 A6 [19:20:42]Write i2c OK [19:20:42]MH_I2C_Read... [19:20:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:42]Read from MH i2c: E2 [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: E2 62 00 [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: E2 62 00 1E 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F0 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 56 [19:20:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F0 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:42]wFMCommunicate OK [19:20:42]SAM_PROTO_GetFieldsCounters done [19:20:42]requested_item shift.num is exist - process it [19:20:42]requested_item shift.opened is exist - process it [19:20:42]req_shift_opened [19:20:42]FM_GetShiftState [19:20:42]SAM_PROTO_GetShiftState [19:20:42]wFMCommunicate request_size=4 [19:20:42]MH_SAM_APDU [19:20:42]CAPDU: 80 13 01 00 [19:20:42]Write to MH i2c: E2 08 00 1F 0C 80 13 01 00 00 00 00 00 A8 [19:20:42]Write i2c OK [19:20:42]MH_I2C_Read... [19:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:42]Read from MH i2c: E2 [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: E2 0E 00 [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: E2 0E 00 1F 0C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F8 [19:20:42]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:20:42]wFMCommunicate OK [19:20:42]SAM_PROTO_GetShiftState done [19:20:42]FM_GetShiftState done [19:20:42]req_shift_opened done [19:20:42]requested_item shift.open_date is exist - process it [19:20:42]req_shift_open_date [19:20:42]req_shift_open_date done [19:20:42]produce_requested_data done [19:20:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192752,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:20:42]process_action_free close_receipt [19:20:42]json_value_free [19:20:42]json_value_free done [19:20:42]process_json_proto returns [19:20:42]Send response to host [19:20:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192752,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:20:42]free response buf [19:20:42]execute_script done [19:20:42]execute_script returns [19:20:42]free content buf [19:20:42]Sock 8.Close socket [19:20:42]Sock 8.Thread stoped [19:20:46]OFD Sender: No OFD packet to send [19:20:51]OFD Sender: No OFD packet to send [19:20:56]OFD Sender: No OFD packet to send [19:21:01]OFD Sender: No OFD packet to send [19:21:06]OFD Sender: No OFD packet to send [19:21:11]OFD Sender: No OFD packet to send [19:21:16]OFD Sender: No OFD packet to send [19:21:21]OFD Sender: No OFD packet to send [19:21:26]OFD Sender: No OFD packet to send [19:21:31]OFD Sender: No OFD packet to send [19:21:36]OFD Sender: No OFD packet to send [19:21:41]OFD Sender: No OFD packet to send [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:44]accept exits with 10 [19:22:44]New connection [19:22:44]New thread 3066658148 created [19:22:44]Thread 3066801508 joined [19:22:44]Waiting for new connection... [19:22:44] Sock 10.Parse request [19:22:44]Sock 10.Check first char [19:22:44]Sock 10.First char is OK [19:22:44]request: POST /json_proto HTTP/1.0 [19:22:44]Method: POST [19:22:44]URL: /json_proto [19:22:44]Method is POST - this is cgi request [19:22:44]url: /json_proto [19:22:44]query_string will be loaded in cgi processing [19:22:44]execute_cgi json_proto POST (null) [19:22:44]execute_cgi path=json_proto method=POST [19:22:44]POST find Content-Length [19:22:44]Host: 172.17.63.131:8080 [19:22:44]Content-Length: 681 [19:22:44]Content-Type: application/json [19:22:44] [19:22:44]POST finish read [19:22:44]Found Content-Length = 681 [19:22:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:44]execute_script... [19:22: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)32081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:44]POST & json_proto [19:22:44]process_json_proto [19:22:44]json parsed OK: [19:22:44]protocol is kg_v1.0 [19:22:44]action value=close_receipt [19:22:44]process_action close_receipt [19:22:44]cmd_close_receipt [19:22:44]MH_GetDate [19:22:44]Write to MH i2c: F0 00 00 20 0C 1B [19:22:44]Write i2c OK [19:22:44]MH_I2C_Read... [19:22:44]Read from MH i2c: F0 [19:22:44]MH_I2C_Read... [19:22:44]Read from MH i2c: F0 09 00 [19:22:44]MH_I2C_Read... [19:22:44]Read from MH i2c: F0 09 00 20 0C 00 85 E4 1F 67 22 05 6E 64 0C [19:22:44]GetLastDocTimeStamp 1730143239 [19:22:44]current date 1730143365 [19:22:44]FM_GetShiftState [19:22:44]SAM_PROTO_GetShiftState [19:22:44]wFMCommunicate request_size=4 [19:22:44]MH_SAM_APDU [19:22:44]CAPDU: 80 13 01 00 [19:22:44]Write to MH i2c: E2 08 00 21 0C 80 13 01 00 00 00 00 00 AA [19:22:44]Write i2c OK [19:22:44]MH_I2C_Read... [19:22:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:44]Read from MH i2c: E2 [19:22:44]MH_I2C_Read... [19:22:44]Read from MH i2c: E2 0E 00 [19:22:44]MH_I2C_Read... [19:22:44]Read from MH i2c: E2 0E 00 21 0C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 FA [19:22:44]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:22:44]wFMCommunicate OK [19:22:44]SAM_PROTO_GetShiftState done [19:22:44]FM_GetShiftState done [19:22:44]opened in 1730075620 [19:22:44]opened+sec_in_day 1730162020 [19:22:44]quantity*price = 100015 [19:22:44]sum+1 = 100017 [19:22:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 301 28.10.2024 19:22 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192753 ФПД: 210766555188266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T192245&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192753&fm=210766555188266&tin=02508201610067®Number=0000000000091776&sum=100000 [19:22:45]StoreToDocumentArchive [19:22:45]shift 543 fd 192753 [19:22:45]save to /storage/0543/doc_00192753 [19:22:45]save last doc name /storage/0543/doc_00192753 to /storage/kkm_last_doc_name [19:22:45]save OK [19:22:45]Clear old archive folders... [19:22:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:45]tlvbuf is 00EE6BD0 [19:22:45]SAM_PROTO_ClearQueue [19:22:45]wFMCommunicate request_size=4 [19:22:45]MH_SAM_APDU [19:22:45]CAPDU: 80 09 00 00 [19:22:45]Write to MH i2c: E2 08 00 2E 0C 80 09 00 00 00 00 00 00 AC [19:22:45]Write i2c OK [19:22:45]MH_I2C_Read... [19:22:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:46]Read from MH i2c: E2 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 03 00 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 03 00 2E 0C 00 90 00 AE [19:22:46]RAPDU: 90 00 [19:22:46]wFMCommunicate OK [19:22:46]SAM_PROTO_ClearQueue done [19:22:46]KKMCreateOFDPacket [19:22:46]OFDProtocolAddRootSTLVToBuf [19:22:46]FM_MakeSignedData [19:22:46]FM_MakeSignedData [19:22:46]SAM_PROTO_SignData [19:22:46]wFMCommunicate request_size=4 [19:22:46]MH_SAM_APDU [19:22:46]CAPDU: 80 0D 01 02 [19:22:46]Write to MH i2c: E2 08 00 2F 0C 80 0D 01 02 00 00 00 00 B4 [19:22:46]Write i2c OK [19:22:46]MH_I2C_Read... [19:22:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:46]Read from MH i2c: E2 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 03 00 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 03 00 2F 0C 00 90 00 AF [19:22:46]RAPDU: 90 00 [19:22:46]wFMCommunicate OK [19:22:46]wFMCommunicate request_size=255 [19:22:46]MH_SAM_APDU [19:22:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 85 E4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 F0 02 00 35 04 06 00 BF [19:22:46]Write to MH i2c: E2 02 01 30 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 85 E4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 F0 02 00 35 04 06 00 BF 00 00 22 [19:22:46]Write i2c OK [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 [19:22:46]MH_I2C_Read... [19:22:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:46]Read from MH i2c: E2 03 00 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 03 00 30 0C 00 90 00 B0 [19:22:46]RAPDU: 90 00 [19:22:46]wFMCommunicate OK [19:22:46]wFMCommunicate request_size=10 [19:22:46]MH_SAM_APDU [19:22:46]CAPDU: 80 0D 02 02 05 B0 E9 A7 0C 2A [19:22:46]Write to MH i2c: E2 0D 00 31 0C 80 0D 02 02 05 00 B0 E9 A7 0C 2A 00 00 37 [19:22:46]Write i2c OK [19:22:46]MH_I2C_Read... [19:22:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:46]Read from MH i2c: E2 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 03 00 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 03 00 31 0C 00 90 00 B1 [19:22:46]RAPDU: 90 00 [19:22:46]wFMCommunicate OK [19:22:46]wFMCommunicate request_size=4 [19:22:46]MH_SAM_APDU [19:22:46]CAPDU: 80 0D 03 02 [19:22:46]Write to MH i2c: E2 08 00 32 0C 80 0D 03 02 00 00 00 00 B9 [19:22:46]Write i2c OK [19:22:46]MH_I2C_Read... [19:22:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:46]Read from MH i2c: E2 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 0B 00 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 0B 00 32 0C 00 DA 0A 06 DF 3A DD 7E 6D 90 00 85 [19:22:46]RAPDU: DA 0A 06 DF 3A DD 7E 6D 90 00 [19:22:46]wFMCommunicate OK [19:22:46]SAM_PROTO_SignData done [19:22:46]FM_MakeSignedData done [19:22:46]CreateOFDProtocolMessage [19:22:46]wFMCommunicate request_size=4 [19:22:46]MH_SAM_APDU [19:22:46]CAPDU: 80 11 00 00 [19:22:46]Write to MH i2c: E2 08 00 33 0C 80 11 00 00 00 00 00 00 B9 [19:22:46]Write i2c OK [19:22:46]MH_I2C_Read... [19:22:46]OFD Sender: No OFD packet to send [19:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:46]Read from MH i2c: E2 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 17 00 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: E2 17 00 33 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0C [19:22:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:22:46]wFMCommunicate OK [19:22:46]CreateOFDProtocolMessage done [19:22:46]OFDSenderStorePacket 192753 [19:22:46]StoreOFDPacket docnum=192753 [19:22:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 92 2B 07 01 05 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 85 E4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 F0 02 00 35 04 06 00 BF B0 E9 A7 0C 2A DA 0A 06 DF 3A DD 7E 6D [19:22:46]CheckFolder [19:22:46]dirname=/storage/ofd_packets [19:22:46]CheckFolder done [19:22:46]ProducePacketName [19:22:46]name=ofd_packets/00192753 [19:22:46]NVStorageSaveData ofd_packets/00192753 [19:22:46]File name is /storage/ofd_packets/00192753 [19:22:46]Write 301 bytes [19:22:46]NVStorageSaveData done [19:22:46]OFDSenderStorePacket done [19:22:46]KKMCreateOFDPacket done [19:22:46]NVStorageSaveData kkm_last_timestamp [19:22:46]File name is /storage/kkm_last_timestamp [19:22:46]Write 4 bytes [19:22:46]NVStorageSaveData done [19:22:46]ExternCall_PrintAddStr [19:22:46]wPrintStart [19:22:46]Write to MH i2c: 01 00 00 34 0C 40 [19:22:46]Write i2c OK [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: 01 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: 01 07 00 [19:22:46]MH_I2C_Read... [19:22:46]Read from MH i2c: 01 07 00 34 0C 00 00 00 00 00 FF 0F 55 [19:22:46]RasterBufferAndPrint [19:22:46]line Счет N : (1)32081 [19:22:46]line ИНН: 02508201610067 [19:22:46]line Контрольно-Кассовый Чек [19:22:46]line ПРОДАЖА [19:22:46]line ТРК (МРК, ГНК) : 12 [19:22:46]line Товар: 2710124130 [19:22:46]line Аи-92-К-5 [19:22:46]line 14.950 * 66.90 [19:22:46]line = 1000.16 [19:22:46]line НДС 12% НСП 1% [19:22:46]line > о реализуемом товаре [19:22:46]line ОКРУГЛЕНИЕ: -0.16 [19:22:46]line ИТОГО: 1000.00 [19:22:46]line Внесено: 1000.00 [19:22:46]line СДАЧА: 0.00 [19:22:46]line НСП 1% : 8.85 [19:22:46]line НДС 12% : 106.21 [19:22:46]line Наличными: 1000.00 [19:22:46]line Безнал.: 0.00 [19:22:46]line Место: АЗС № 170 "Партнер Нефть" [19:22:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:22:46]line СНО: Общий режим [19:22:46]line Чек 301 28.10.2024 19:22 [19:22:46]line Смена: 543 ФФД: 1.0 [19:22:46]line ЗНМ: 0300000110 [19:22:46]line РНМ: 0000000000091776 [19:22:46]line Версия ККМ: 001 [19:22:46]line ФМ: 0000000000871754 [19:22:46]line ФД: 192753 [19:22:46]line ФПД: 210766555188266 [19:22:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T192245&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192753&fm=210766555188266&tin=02508201610067®Number=0000000000091776&sum=100000 [19:22:46]OFD Sender: Processing packet 192753 [packets to send 75, broken 74] [19:22:46]ProducePacketName [19:22:46]name=ofd_packets/00192753 [19:22:46]OFD Sender: To server: pG, [19:22:46]CommunicateWithHost lk.salyk.kg:30040 [19:22:46]ConnectInit lk.salyk.kg [19:22:46]written 0, free lines is 4095 [19:22:46]Connected sock=9 [19:22:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 92 2B 07 01 05 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 85 E4 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 F0 02 00 35 04 06 00 BF B0 E9 A7 0C 2A DA 0A 06 DF 3A DD 7E 6D [19:22:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 30 0E 47 00 84 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 F0 02 00 F4 03 04 00 48 89 1F 67 B6 04 01 00 00 1D 8B 09 1D 1C 3E 11 91 [19:22:47]CommunicateWithHost err = 0 [19:22:47]CheckOFDResponse [19:22:47]1017 (14) - 77093643461234 [19:22:47]1041 (16) - 0000000000871754 [19:22:47]1040 (4) - 192753 [19:22:47]1012 (4) - 28.10.2024 12:53 [19:22:47]1206 (1) - 0 [19:22:47]OFD Sender: Remove packet 192753 [19:22:47]ProducePacketName [19:22:47]name=ofd_packets/00192753 [19:22:47]NVStorageDeleteData [19:22:47]Write to MH i2c: 01 00 00 5F 0C 6B [19:22:47]Write i2c OK [19:22:47]MH_I2C_Read... [19:22:47]Read from MH i2c: 01 [19:22:47]MH_I2C_Read... [19:22:47]Read from MH i2c: 01 07 00 [19:22:47]MH_I2C_Read... [19:22:47]Read from MH i2c: 01 07 00 5F 0C 00 00 00 00 00 CD 0C 4B [19:22:47]RasterBufferAndPrint [19:22:47]line [19:22:47]line [19:22:47]line [19:22:47]line [19:22:47]line [19:22:47]written 0, free lines is 3282 [19:22:47]MH_Cut [19:22:47]Write to MH i2c: D1 01 00 66 0C 01 44 [19:22:47]Write i2c OK [19:22:47]MH_I2C_Read... [19:22:47]Read from MH i2c: D1 [19:22:47]MH_I2C_Read... [19:22:47]Read from MH i2c: D1 01 00 [19:22:47]MH_I2C_Read... [19:22:47]Read from MH i2c: D1 01 00 66 0C 00 43 [19:22:47]Write to MH i2c: 01 00 00 67 0C 73 [19:22:47]Write i2c OK [19:22:47]MH_I2C_Read... [19:22:47]OFD Sender: No OFD packet to send [19:22:48]*** Cut start [19:22:48]*** Partial cut [19:22:48]*** CUTSNS_PIN = 1 [19:22:48]*** CUTSNS_PIN = 0 [19:22:48]*** Brake cut motor [19:22:48]Read from MH i2c: 01 [19:22:48]MH_I2C_Read... [19:22:48]*** Stop cut motor [19:22:48]*** Cut end [19:22:48]Read from MH i2c: 01 07 00 [19:22:48]MH_I2C_Read... [19:22:48]Read from MH i2c: 01 07 00 67 0C 00 00 00 00 00 FF 0F 88 [19:22:48]process_action close_receipt done [19:22:48]requested_data is exist [19:22:48]produce_requested_data [19:22:48]requested_item fm.sn is exist - process it [19:22:48]wFMCommunicate request_size=4 [19:22:48]MH_SAM_APDU [19:22:48]CAPDU: 80 11 00 00 [19:22:48]Write to MH i2c: E2 08 00 68 0C 80 11 00 00 00 00 00 00 EE [19:22:48]Write i2c OK [19:22:48]MH_I2C_Read... [19:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:48]Read from MH i2c: E2 [19:22:48]MH_I2C_Read... [19:22:48]Read from MH i2c: E2 17 00 [19:22:48]MH_I2C_Read... [19:22:48]Read from MH i2c: E2 17 00 68 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 41 [19:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:22:48]wFMCommunicate OK [19:22:48]requested_item fd.num is exist - process it [19:22:48]SAM_PROTO_GetFieldsCounters [19:22:48]wFMCommunicate request_size=4 [19:22:48]MH_SAM_APDU [19:22:48]CAPDU: 80 13 00 00 [19:22:48]Write to MH i2c: E2 08 00 69 0C 80 13 00 00 00 00 00 00 F1 [19:22:48]Write i2c OK [19:22:48]MH_I2C_Read... [19:22:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:48]Read from MH i2c: E2 [19:22:48]MH_I2C_Read... [19:22:48]Read from MH i2c: E2 62 00 [19:22:48]MH_I2C_Read... [19:22:48]Read from MH i2c: E2 62 00 69 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F1 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 A5 [19:22:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F1 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:22:48]wFMCommunicate OK [19:22:48]SAM_PROTO_GetFieldsCounters done [19:22:48]requested_item shift.num is exist - process it [19:22:48]requested_item shift.opened is exist - process it [19:22:48]req_shift_opened [19:22:48]FM_GetShiftState [19:22:48]SAM_PROTO_GetShiftState [19:22:48]wFMCommunicate request_size=4 [19:22:48]MH_SAM_APDU [19:22:48]CAPDU: 80 13 01 00 [19:22:48]Write to MH i2c: E2 08 00 6A 0C 80 13 01 00 00 00 00 00 F3 [19:22:48]Write i2c OK [19:22:48]MH_I2C_Read... [19:22:49]Read from MH i2c: E2 [19:22:49]MH_I2C_Read... [19:22:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:49]Read from MH i2c: E2 0E 00 [19:22:49]MH_I2C_Read... [19:22:49]Read from MH i2c: E2 0E 00 6A 0C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 43 [19:22:49]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:22:49]wFMCommunicate OK [19:22:49]SAM_PROTO_GetShiftState done [19:22:49]FM_GetShiftState done [19:22:49]req_shift_opened done [19:22:49]requested_item shift.open_date is exist - process it [19:22:49]req_shift_open_date [19:22:49]req_shift_open_date done [19:22:49]produce_requested_data done [19:22:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192753,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:22:49]process_action_free close_receipt [19:22:49]json_value_free [19:22:49]json_value_free done [19:22:49]process_json_proto returns [19:22:49]Send response to host [19:22:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192753,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:22:49]free response buf [19:22:49]execute_script done [19:22:49]execute_script returns [19:22:49]free content buf [19:22:49]Sock 10.Close socket [19:22:49]Sock 10.Thread stoped [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:36]accept exits with 8 [19:26:36]New connection [19:26:36]New thread 3066801508 created [19:26:36]Thread 3066658148 joined [19:26:36]Waiting for new connection... [19:26:36] Sock 8.Parse request [19:26:36]Sock 8.Check first char [19:26:36]Sock 8.First char is OK [19:26:36]request: POST /json_proto HTTP/1.0 [19:26:36]Method: POST [19:26:36]URL: /json_proto [19:26:36]Method is POST - this is cgi request [19:26:36]url: /json_proto [19:26:36]query_string will be loaded in cgi processing [19:26:36]execute_cgi json_proto POST (null) [19:26:36]execute_cgi path=json_proto method=POST [19:26:36]POST find Content-Length [19:26:36]Host: 172.17.63.131:8080 [19:26:36]Content-Length: 676 [19:26:36]Content-Type: application/json [19:26:36] [19:26:36]POST finish read [19:26:36]Found Content-Length = 676 [19:26:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:36]execute_script... [19:26:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:36]POST & json_proto [19:26:36]process_json_proto [19:26:36]json parsed OK: [19:26:36]protocol is kg_v1.0 [19:26:36]action value=close_receipt [19:26:36]process_action close_receipt [19:26:36]cmd_close_receipt [19:26:36]MH_GetDate [19:26:36]Write to MH i2c: F0 00 00 6B 0C 66 [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: F0 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: F0 09 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: F0 09 00 6B 0C 00 6C E5 1F 67 22 05 6E 64 3F [19:26:36]GetLastDocTimeStamp 1730143365 [19:26:36]current date 1730143596 [19:26:36]FM_GetShiftState [19:26:36]SAM_PROTO_GetShiftState [19:26:36]wFMCommunicate request_size=4 [19:26:36]MH_SAM_APDU [19:26:36]CAPDU: 80 13 01 00 [19:26:36]Write to MH i2c: E2 08 00 6C 0C 80 13 01 00 00 00 00 00 F5 [19:26:36]Write i2c OK [19:26:36]MH_I2C_Read... [19:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:36]Read from MH i2c: E2 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 0E 00 [19:26:36]MH_I2C_Read... [19:26:36]Read from MH i2c: E2 0E 00 6C 0C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 45 [19:26:36]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:26:36]wFMCommunicate OK [19:26:36]SAM_PROTO_GetShiftState done [19:26:36]FM_GetShiftState done [19:26:36]opened in 1730075620 [19:26:36]opened+sec_in_day 1730162020 [19:26:36]quantity*price = 50041 [19:26:36]sum+1 = 50042 [19:26:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 302 28.10.2024 19:26 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192754 ФПД: 170616763056552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T192636&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192754&fm=170616763056552&tin=02508201610067®Number=0000000000091776&sum=50000 [19:26:37]StoreToDocumentArchive [19:26:37]shift 543 fd 192754 [19:26:37]save to /storage/0543/doc_00192754 [19:26:37]save last doc name /storage/0543/doc_00192754 to /storage/kkm_last_doc_name [19:26:37]save OK [19:26:37]Clear old archive folders... [19:26:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:37]tlvbuf is 00EF45B0 [19:26:37]SAM_PROTO_ClearQueue [19:26:37]wFMCommunicate request_size=4 [19:26:37]MH_SAM_APDU [19:26:37]CAPDU: 80 09 00 00 [19:26:37]Write to MH i2c: E2 08 00 79 0C 80 09 00 00 00 00 00 00 F7 [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:37]Read from MH i2c: E2 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 03 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 03 00 79 0C 00 90 00 F9 [19:26:37]RAPDU: 90 00 [19:26:37]wFMCommunicate OK [19:26:37]SAM_PROTO_ClearQueue done [19:26:37]KKMCreateOFDPacket [19:26:37]OFDProtocolAddRootSTLVToBuf [19:26:37]FM_MakeSignedData [19:26:37]FM_MakeSignedData [19:26:37]SAM_PROTO_SignData [19:26:37]wFMCommunicate request_size=4 [19:26:37]MH_SAM_APDU [19:26:37]CAPDU: 80 0D 01 02 [19:26:37]Write to MH i2c: E2 08 00 7A 0C 80 0D 01 02 00 00 00 00 FF [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:37]Read from MH i2c: E2 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 03 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 03 00 7A 0C 00 90 00 FA [19:26:37]RAPDU: 90 00 [19:26:37]wFMCommunicate OK [19:26:37]wFMCommunicate request_size=255 [19:26:37]MH_SAM_APDU [19:26:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 6C E5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 F0 02 00 35 04 06 00 9B [19:26:37]Write to MH i2c: E2 02 01 7B 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 6C E5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 F0 02 00 35 04 06 00 9B 00 00 39 [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:37]Read from MH i2c: E2 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 03 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 03 00 7B 0C 00 90 00 FB [19:26:37]RAPDU: 90 00 [19:26:37]wFMCommunicate OK [19:26:37]wFMCommunicate request_size=10 [19:26:37]MH_SAM_APDU [19:26:37]CAPDU: 80 0D 02 02 05 2C CF 8E 01 A8 [19:26:37]Write to MH i2c: E2 0D 00 7C 0C 80 0D 02 02 05 00 2C CF 8E 01 A8 00 00 3E [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:37]Read from MH i2c: E2 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 03 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 03 00 7C 0C 00 90 00 FC [19:26:37]RAPDU: 90 00 [19:26:37]wFMCommunicate OK [19:26:37]wFMCommunicate request_size=4 [19:26:37]MH_SAM_APDU [19:26:37]CAPDU: 80 0D 03 02 [19:26:37]Write to MH i2c: E2 08 00 7D 0C 80 0D 03 02 00 00 00 00 04 [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:37]Read from MH i2c: E2 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 0B 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 0B 00 7D 0C 00 0F 92 A7 79 EA 25 18 4A 90 00 37 [19:26:37]RAPDU: 0F 92 A7 79 EA 25 18 4A 90 00 [19:26:37]wFMCommunicate OK [19:26:37]SAM_PROTO_SignData done [19:26:37]FM_MakeSignedData done [19:26:37]CreateOFDProtocolMessage [19:26:37]wFMCommunicate request_size=4 [19:26:37]MH_SAM_APDU [19:26:37]CAPDU: 80 11 00 00 [19:26:37]Write to MH i2c: E2 08 00 7E 0C 80 11 00 00 00 00 00 00 04 [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:37]Read from MH i2c: E2 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 17 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 17 00 7E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 57 [19:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:26:37]wFMCommunicate OK [19:26:37]CreateOFDProtocolMessage done [19:26:37]OFDSenderStorePacket 192754 [19:26:37]StoreOFDPacket docnum=192754 [19:26:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F2 88 07 01 CF 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 6C E5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 F0 02 00 35 04 06 00 9B 2C CF 8E 01 A8 0F 92 A7 79 EA 25 18 4A [19:26:37]CheckFolder [19:26:37]dirname=/storage/ofd_packets [19:26:37]CheckFolder done [19:26:37]ProducePacketName [19:26:37]name=ofd_packets/00192754 [19:26:37]NVStorageSaveData ofd_packets/00192754 [19:26:37]File name is /storage/ofd_packets/00192754 [19:26:37]Write 301 bytes [19:26:37]NVStorageSaveData done [19:26:37]OFDSenderStorePacket done [19:26:37]KKMCreateOFDPacket done [19:26:37]NVStorageSaveData kkm_last_timestamp [19:26:37]File name is /storage/kkm_last_timestamp [19:26:37]Write 4 bytes [19:26:37]NVStorageSaveData done [19:26:37]ExternCall_PrintAddStr [19:26:37]wPrintStart [19:26:37]Write to MH i2c: 01 00 00 7F 0C 8B [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: 01 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: 01 07 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: 01 07 00 7F 0C 00 00 00 00 00 FF 0F A0 [19:26:37]RasterBufferAndPrint [19:26:37]line Счет N : (1)32082 [19:26:37]line ИНН: 02508201610067 [19:26:37]line Контрольно-Кассовый Чек [19:26:37]line ПРОДАЖА [19:26:37]line ТРК (МРК, ГНК) : 21 [19:26:37]line Товар: 2710124130 [19:26:37]line Аи-92-К-5 [19:26:37]line 7.480 * 66.90 [19:26:37]line = 500.41 [19:26:37]line НДС 12% НСП 1% [19:26:37]line > о реализуемом товаре [19:26:37]line ОКРУГЛЕНИЕ: -0.41 [19:26:37]line ИТОГО: 500.00 [19:26:37]line Внесено: 500.00 [19:26:37]line СДАЧА: 0.00 [19:26:37]line НСП 1% : 4.43 [19:26:37]line НДС 12% : 53.14 [19:26:37]line Наличными: 500.00 [19:26:37]line Безнал.: 0.00 [19:26:37]line Место: АЗС № 170 "Партнер Нефть" [19:26:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:26:37]line СНО: Общий режим [19:26:37]line Чек 302 28.10.2024 19:26 [19:26:37]line Смена: 543 ФФД: 1.0 [19:26:37]line ЗНМ: 0300000110 [19:26:37]line РНМ: 0000000000091776 [19:26:37]line Версия ККМ: 001 [19:26:37]line ФМ: 0000000000871754 [19:26:37]line ФД: 192754 [19:26:37]line ФПД: 170616763056552 [19:26:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T192636&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192754&fm=170616763056552&tin=02508201610067®Number=0000000000091776&sum=50000 [19:26:37]OFD Sender: Processing packet 192754 [packets to send 75, broken 74] [19:26:37]ProducePacketName [19:26:37]name=ofd_packets/00192754 [19:26:37]OFD Sender: To server: pG, [19:26:37]CommunicateWithHost lk.salyk.kg:30040 [19:26:37]ConnectInit lk.salyk.kg [19:26:37]written 0, free lines is 4095 [19:26:38]Connected sock=10 [19:26:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F2 88 07 01 CF 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 6C E5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 F0 02 00 35 04 06 00 9B 2C CF 8E 01 A8 0F 92 A7 79 EA 25 18 4A [19:26:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E5 21 47 00 43 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 F0 02 00 F4 03 04 00 2F 8A 1F 67 B6 04 01 00 00 75 AC F6 BB 16 E2 72 2D [19:26:38]CommunicateWithHost err = 0 [19:26:38]CheckOFDResponse [19:26:38]1017 (14) - 77093643461234 [19:26:38]1041 (16) - 0000000000871754 [19:26:38]1040 (4) - 192754 [19:26:38]1012 (4) - 28.10.2024 12:57 [19:26:38]1206 (1) - 0 [19:26:38]OFD Sender: Remove packet 192754 [19:26:38]ProducePacketName [19:26:38]name=ofd_packets/00192754 [19:26:38]NVStorageDeleteData [19:26:38]Write to MH i2c: 01 00 00 AA 0C B6 [19:26:38]Write i2c OK [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: 01 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: 01 07 00 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: 01 07 00 AA 0C 00 00 00 00 00 C8 0C 91 [19:26:38]RasterBufferAndPrint [19:26:38]line [19:26:38]line [19:26:38]line [19:26:38]line [19:26:38]line [19:26:38]written 0, free lines is 3278 [19:26:38]MH_Cut [19:26:38]Write to MH i2c: D1 01 00 B1 0C 01 8F [19:26:38]Write i2c OK [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: D1 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: D1 01 00 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: D1 01 00 B1 0C 00 8E [19:26:38]Write to MH i2c: 01 00 00 B2 0C BE [19:26:38]Write i2c OK [19:26:38]MH_I2C_Read... [19:26:38]OFD Sender: No OFD packet to send [19:26:39]*** Cut start [19:26:39]*** Partial cut [19:26:39]*** CUTSNS_PIN = 1 [19:26:39]*** CUTSNS_PIN = 0 [19:26:39]*** Brake cut motor [19:26:39]Read from MH i2c: 01 [19:26:39]MH_I2C_Read... [19:26:39]*** Stop cut motor [19:26:39]*** Cut end [19:26:39]Read from MH i2c: 01 07 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: 01 07 00 B2 0C 00 00 00 00 00 FF 0F D3 [19:26:39]process_action close_receipt done [19:26:39]requested_data is exist [19:26:39]produce_requested_data [19:26:39]requested_item fm.sn is exist - process it [19:26:39]wFMCommunicate request_size=4 [19:26:39]MH_SAM_APDU [19:26:39]CAPDU: 80 11 00 00 [19:26:39]Write to MH i2c: E2 08 00 B3 0C 80 11 00 00 00 00 00 00 39 [19:26:39]Write i2c OK [19:26:39]MH_I2C_Read... [19:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:39]Read from MH i2c: E2 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 17 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 17 00 B3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8C [19:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:26:39]wFMCommunicate OK [19:26:39]requested_item fd.num is exist - process it [19:26:39]SAM_PROTO_GetFieldsCounters [19:26:39]wFMCommunicate request_size=4 [19:26:39]MH_SAM_APDU [19:26:39]CAPDU: 80 13 00 00 [19:26:39]Write to MH i2c: E2 08 00 B4 0C 80 13 00 00 00 00 00 00 3C [19:26:39]Write i2c OK [19:26:39]MH_I2C_Read... [19:26:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:40]Read from MH i2c: E2 [19:26:40]MH_I2C_Read... [19:26:40]Read from MH i2c: E2 62 00 [19:26:40]MH_I2C_Read... [19:26:40]Read from MH i2c: E2 62 00 B4 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F2 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [19:26:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F2 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:40]wFMCommunicate OK [19:26:40]SAM_PROTO_GetFieldsCounters done [19:26:40]requested_item shift.num is exist - process it [19:26:40]requested_item shift.opened is exist - process it [19:26:40]req_shift_opened [19:26:40]FM_GetShiftState [19:26:40]SAM_PROTO_GetShiftState [19:26:40]wFMCommunicate request_size=4 [19:26:40]MH_SAM_APDU [19:26:40]CAPDU: 80 13 01 00 [19:26:40]Write to MH i2c: E2 08 00 B5 0C 80 13 01 00 00 00 00 00 3E [19:26:40]Write i2c OK [19:26:40]MH_I2C_Read... [19:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:40]Read from MH i2c: E2 [19:26:40]MH_I2C_Read... [19:26:40]Read from MH i2c: E2 0E 00 [19:26:40]MH_I2C_Read... [19:26:40]Read from MH i2c: E2 0E 00 B5 0C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 8E [19:26:40]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:26:40]wFMCommunicate OK [19:26:40]SAM_PROTO_GetShiftState done [19:26:40]FM_GetShiftState done [19:26:40]req_shift_opened done [19:26:40]requested_item shift.open_date is exist - process it [19:26:40]req_shift_open_date [19:26:40]req_shift_open_date done [19:26:40]produce_requested_data done [19:26:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192754,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:26:40]process_action_free close_receipt [19:26:40]json_value_free [19:26:40]json_value_free done [19:26:40]process_json_proto returns [19:26:40]Send response to host [19:26:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192754,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:26:40]free response buf [19:26:40]execute_script done [19:26:40]execute_script returns [19:26:40]free content buf [19:26:40]Sock 8.Close socket [19:26:40]Sock 8.Thread stoped [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:49]accept exits with 9 [19:28:49]New connection [19:28:49]New thread 3066658148 created [19:28:49]Thread 3066801508 joined [19:28:49]Waiting for new connection... [19:28:49] Sock 9.Parse request [19:28:49]Sock 9.Check first char [19:28:49]Sock 9.First char is OK [19:28:49]request: POST /json_proto HTTP/1.0 [19:28:49]Method: POST [19:28:49]URL: /json_proto [19:28:49]Method is POST - this is cgi request [19:28:49]url: /json_proto [19:28:49]query_string will be loaded in cgi processing [19:28:49]execute_cgi json_proto POST (null) [19:28:49]execute_cgi path=json_proto method=POST [19:28:49]POST find Content-Length [19:28:49]Host: 172.17.63.131:8080 [19:28:49]Content-Length: 676 [19:28:49]Content-Type: application/json [19:28:49] [19:28:49]POST finish read [19:28:49]Found Content-Length = 676 [19:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:49]execute_script... [19:28:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:49]POST & json_proto [19:28:49]process_json_proto [19:28:49]json parsed OK: [19:28:49]protocol is kg_v1.0 [19:28:49]action value=close_receipt [19:28:49]process_action close_receipt [19:28:49]cmd_close_receipt [19:28:49]MH_GetDate [19:28:49]Write to MH i2c: F0 00 00 B6 0C B1 [19:28:49]Write i2c OK [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: F0 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: F0 09 00 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: F0 09 00 B6 0C 00 F2 E5 1F 67 22 05 6E 64 10 [19:28:49]GetLastDocTimeStamp 1730143596 [19:28:49]current date 1730143730 [19:28:49]FM_GetShiftState [19:28:49]SAM_PROTO_GetShiftState [19:28:49]wFMCommunicate request_size=4 [19:28:49]MH_SAM_APDU [19:28:49]CAPDU: 80 13 01 00 [19:28:49]Write to MH i2c: E2 08 00 B7 0C 80 13 01 00 00 00 00 00 40 [19:28:49]Write i2c OK [19:28:49]MH_I2C_Read... [19:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:49]Read from MH i2c: E2 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 0E 00 [19:28:49]MH_I2C_Read... [19:28:49]Read from MH i2c: E2 0E 00 B7 0C 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 90 [19:28:49]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:28:49]wFMCommunicate OK [19:28:49]SAM_PROTO_GetShiftState done [19:28:49]FM_GetShiftState done [19:28:49]opened in 1730075620 [19:28:49]opened+sec_in_day 1730162020 [19:28:49]quantity*price = 50041 [19:28:49]sum+1 = 50042 [19:28:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 303 28.10.2024 19:28 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192755 ФПД: 60021078244848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T192850&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192755&fm=60021078244848&tin=02508201610067®Number=0000000000091776&sum=50000 [19:28:50]StoreToDocumentArchive [19:28:50]shift 543 fd 192755 [19:28:50]save to /storage/0543/doc_00192755 [19:28:50]save last doc name /storage/0543/doc_00192755 to /storage/kkm_last_doc_name [19:28:50]save OK [19:28:50]Clear old archive folders... [19:28:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:50]tlvbuf is 00F66010 [19:28:50]SAM_PROTO_ClearQueue [19:28:50]wFMCommunicate request_size=4 [19:28:50]MH_SAM_APDU [19:28:50]CAPDU: 80 09 00 00 [19:28:50]Write to MH i2c: E2 08 00 C4 0C 80 09 00 00 00 00 00 00 42 [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:51]Read from MH i2c: E2 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 C4 0C 00 90 00 44 [19:28:51]RAPDU: 90 00 [19:28:51]wFMCommunicate OK [19:28:51]SAM_PROTO_ClearQueue done [19:28:51]KKMCreateOFDPacket [19:28:51]OFDProtocolAddRootSTLVToBuf [19:28:51]FM_MakeSignedData [19:28:51]FM_MakeSignedData [19:28:51]SAM_PROTO_SignData [19:28:51]wFMCommunicate request_size=4 [19:28:51]MH_SAM_APDU [19:28:51]CAPDU: 80 0D 01 02 [19:28:51]Write to MH i2c: E2 08 00 C5 0C 80 0D 01 02 00 00 00 00 4A [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:51]Read from MH i2c: E2 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 C5 0C 00 90 00 45 [19:28:51]RAPDU: 90 00 [19:28:51]wFMCommunicate OK [19:28:51]wFMCommunicate request_size=255 [19:28:51]MH_SAM_APDU [19:28:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 F2 E5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 F0 02 00 35 04 06 00 36 [19:28:51]Write to MH i2c: E2 02 01 C6 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 F2 E5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 F0 02 00 35 04 06 00 36 00 00 A7 [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:51]Read from MH i2c: E2 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [19:28:51]RAPDU: 90 00 [19:28:51]wFMCommunicate OK [19:28:51]wFMCommunicate request_size=10 [19:28:51]MH_SAM_APDU [19:28:51]CAPDU: 80 0D 02 02 05 96 BF 0C 3D F0 [19:28:51]Write to MH i2c: E2 0D 00 C7 0C 80 0D 02 02 05 00 96 BF 0C 3D F0 00 00 E5 [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:51]Read from MH i2c: E2 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [19:28:51]RAPDU: 90 00 [19:28:51]wFMCommunicate OK [19:28:51]wFMCommunicate request_size=4 [19:28:51]MH_SAM_APDU [19:28:51]CAPDU: 80 0D 03 02 [19:28:51]Write to MH i2c: E2 08 00 C8 0C 80 0D 03 02 00 00 00 00 4F [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:51]Read from MH i2c: E2 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 0B 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 0B 00 C8 0C 00 F4 55 BE 4A 28 C0 C9 F7 90 00 49 [19:28:51]RAPDU: F4 55 BE 4A 28 C0 C9 F7 90 00 [19:28:51]wFMCommunicate OK [19:28:51]SAM_PROTO_SignData done [19:28:51]FM_MakeSignedData done [19:28:51]CreateOFDProtocolMessage [19:28:51]wFMCommunicate request_size=4 [19:28:51]MH_SAM_APDU [19:28:51]CAPDU: 80 11 00 00 [19:28:51]Write to MH i2c: E2 08 00 C9 0C 80 11 00 00 00 00 00 00 4F [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:51]Read from MH i2c: E2 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 17 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 17 00 C9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A2 [19:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:28:51]wFMCommunicate OK [19:28:51]CreateOFDProtocolMessage done [19:28:51]OFDSenderStorePacket 192755 [19:28:51]StoreOFDPacket docnum=192755 [19:28:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 94 27 07 01 2E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 F2 E5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 F0 02 00 35 04 06 00 36 96 BF 0C 3D F0 F4 55 BE 4A 28 C0 C9 F7 [19:28:51]CheckFolder [19:28:51]dirname=/storage/ofd_packets [19:28:51]CheckFolder done [19:28:51]ProducePacketName [19:28:51]name=ofd_packets/00192755 [19:28:51]NVStorageSaveData ofd_packets/00192755 [19:28:51]File name is /storage/ofd_packets/00192755 [19:28:51]Write 301 bytes [19:28:51]NVStorageSaveData done [19:28:51]OFDSenderStorePacket done [19:28:51]KKMCreateOFDPacket done [19:28:51]NVStorageSaveData kkm_last_timestamp [19:28:51]File name is /storage/kkm_last_timestamp [19:28:51]Write 4 bytes [19:28:51]NVStorageSaveData done [19:28:51]ExternCall_PrintAddStr [19:28:51]wPrintStart [19:28:51]Write to MH i2c: 01 00 00 CA 0C D6 [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 07 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: 01 07 00 CA 0C 00 00 00 00 00 FF 0F EB [19:28:51]RasterBufferAndPrint [19:28:51]line Счет N : (1)32083 [19:28:51]line ИНН: 02508201610067 [19:28:51]line Контрольно-Кассовый Чек [19:28:51]line ПРОДАЖА [19:28:51]line ТРК (МРК, ГНК) : 12 [19:28:51]line Товар: 2710124130 [19:28:51]line Аи-92-К-5 [19:28:51]line 7.480 * 66.90 [19:28:51]line = 500.41 [19:28:51]line НДС 12% НСП 1% [19:28:51]line > о реализуемом товаре [19:28:51]line ОКРУГЛЕНИЕ: -0.41 [19:28:51]line ИТОГО: 500.00 [19:28:51]line Внесено: 500.00 [19:28:51]line СДАЧА: 0.00 [19:28:51]line НСП 1% : 4.43 [19:28:51]line НДС 12% : 53.14 [19:28:51]line Наличными: 500.00 [19:28:51]line Безнал.: 0.00 [19:28:51]line Место: АЗС № 170 "Партнер Нефть" [19:28:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:28:51]line СНО: Общий режим [19:28:51]line Чек 303 28.10.2024 19:28 [19:28:51]line Смена: 543 ФФД: 1.0 [19:28:51]line ЗНМ: 0300000110 [19:28:51]line РНМ: 0000000000091776 [19:28:51]line Версия ККМ: 001 [19:28:51]line ФМ: 0000000000871754 [19:28:51]line ФД: 192755 [19:28:51]line ФПД: 60021078244848 [19:28:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T192850&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192755&fm=60021078244848&tin=02508201610067®Number=0000000000091776&sum=50000 [19:28:51]OFD Sender: Processing packet 192755 [packets to send 75, broken 74] [19:28:51]ProducePacketName [19:28:51]name=ofd_packets/00192755 [19:28:51]OFD Sender: To server: pG, [19:28:51]CommunicateWithHost lk.salyk.kg:30040 [19:28:51]ConnectInit lk.salyk.kg [19:28:51]written 0, free lines is 4095 [19:28:51]Connected sock=10 [19:28:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 94 27 07 01 2E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 F2 E5 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 F0 02 00 35 04 06 00 36 96 BF 0C 3D F0 F4 55 BE 4A 28 C0 C9 F7 [19:28:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3C 7F 47 00 99 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 F0 02 00 F4 03 04 00 B5 8A 1F 67 B6 04 01 00 00 89 37 8C A3 63 71 81 E7 [19:28:52]CommunicateWithHost err = 0 [19:28:52]CheckOFDResponse [19:28:52]1017 (14) - 77093643461234 [19:28:52]1041 (16) - 0000000000871754 [19:28:52]1040 (4) - 192755 [19:28:52]1012 (4) - 28.10.2024 12:59 [19:28:52]1206 (1) - 0 [19:28:52]OFD Sender: Remove packet 192755 [19:28:52]ProducePacketName [19:28:52]name=ofd_packets/00192755 [19:28:52]NVStorageDeleteData [19:28:52]Write to MH i2c: 01 00 00 F5 0C 01 [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 07 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 07 00 F5 0C 00 00 00 00 00 B9 0C CD [19:28:52]RasterBufferAndPrint [19:28:52]line [19:28:52]line [19:28:52]line [19:28:52]line [19:28:52]line [19:28:52]written 0, free lines is 3264 [19:28:52]MH_Cut [19:28:52]Write to MH i2c: D1 01 00 FC 0C 01 DA [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: D1 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: D1 01 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: D1 01 00 FC 0C 00 D9 [19:28:52]Write to MH i2c: 01 00 00 FD 0C 09 [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]OFD Sender: No OFD packet to send [19:28:53]*** Cut start [19:28:53]*** Partial cut [19:28:53]*** CUTSNS_PIN = 1 [19:28:53]*** CUTSNS_PIN = 0 [19:28:53]*** Brake cut motor [19:28:53]Read from MH i2c: 01 [19:28:53]MH_I2C_Read... [19:28:53]*** Stop cut motor [19:28:53]*** Cut end [19:28:53]Read from MH i2c: 01 07 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: 01 07 00 FD 0C 00 00 00 00 00 FF 0F 1E [19:28:53]process_action close_receipt done [19:28:53]requested_data is exist [19:28:53]produce_requested_data [19:28:53]requested_item fm.sn is exist - process it [19:28:53]wFMCommunicate request_size=4 [19:28:53]MH_SAM_APDU [19:28:53]CAPDU: 80 11 00 00 [19:28:53]Write to MH i2c: E2 08 00 FE 0C 80 11 00 00 00 00 00 00 84 [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:53]Read from MH i2c: E2 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 17 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 17 00 FE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D7 [19:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:28:53]wFMCommunicate OK [19:28:53]requested_item fd.num is exist - process it [19:28:53]SAM_PROTO_GetFieldsCounters [19:28:53]wFMCommunicate request_size=4 [19:28:53]MH_SAM_APDU [19:28:53]CAPDU: 80 13 00 00 [19:28:53]Write to MH i2c: E2 08 00 FF 0C 80 13 00 00 00 00 00 00 87 [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:53]Read from MH i2c: E2 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 62 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 62 00 FF 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F3 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [19:28:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F3 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:53]wFMCommunicate OK [19:28:53]SAM_PROTO_GetFieldsCounters done [19:28:53]requested_item shift.num is exist - process it [19:28:53]requested_item shift.opened is exist - process it [19:28:53]req_shift_opened [19:28:53]FM_GetShiftState [19:28:53]SAM_PROTO_GetShiftState [19:28:53]wFMCommunicate request_size=4 [19:28:53]MH_SAM_APDU [19:28:53]CAPDU: 80 13 01 00 [19:28:53]Write to MH i2c: E2 08 00 00 0D 80 13 01 00 00 00 00 00 8A [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:53]Read from MH i2c: E2 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 0E 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: E2 0E 00 00 0D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DA [19:28:53]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:28:53]wFMCommunicate OK [19:28:53]SAM_PROTO_GetShiftState done [19:28:53]FM_GetShiftState done [19:28:53]req_shift_opened done [19:28:53]requested_item shift.open_date is exist - process it [19:28:53]req_shift_open_date [19:28:53]req_shift_open_date done [19:28:53]produce_requested_data done [19:28:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192755,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:28:53]process_action_free close_receipt [19:28:53]json_value_free [19:28:53]json_value_free done [19:28:53]process_json_proto returns [19:28:53]Send response to host [19:28:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192755,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:28:54]free response buf [19:28:54]execute_script done [19:28:54]execute_script returns [19:28:54]free content buf [19:28:54]Sock 9.Close socket [19:28:54]Sock 9.Thread stoped [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:47]accept exits with 8 [19:30:47]New connection [19:30:47]New thread 3066801508 created [19:30:47]Thread 3066658148 joined [19:30:47]Waiting for new connection... [19:30:47] Sock 8.Parse request [19:30:47]Sock 8.Check first char [19:30:47]Sock 8.First char is OK [19:30:47]request: POST /json_proto HTTP/1.0 [19:30:47]Method: POST [19:30:47]URL: /json_proto [19:30:47]Method is POST - this is cgi request [19:30:47]url: /json_proto [19:30:47]query_string will be loaded in cgi processing [19:30:47]execute_cgi json_proto POST (null) [19:30:47]execute_cgi path=json_proto method=POST [19:30:47]POST find Content-Length [19:30:47]Host: 172.17.63.131:8080 [19:30:47]Content-Length: 676 [19:30:47]Content-Type: application/json [19:30:47] [19:30:47]POST finish read [19:30:47]Found Content-Length = 676 [19:30:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:47]execute_script... [19:30: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)32084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:47]POST & json_proto [19:30:47]process_json_proto [19:30:47]json parsed OK: [19:30:47]protocol is kg_v1.0 [19:30:47]action value=close_receipt [19:30:47]process_action close_receipt [19:30:47]cmd_close_receipt [19:30:47]MH_GetDate [19:30:47]Write to MH i2c: F0 00 00 01 0D FD [19:30:47]Write i2c OK [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: F0 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: F0 09 00 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: F0 09 00 01 0D 00 68 E6 1F 67 22 05 6E 64 D3 [19:30:47]GetLastDocTimeStamp 1730143730 [19:30:47]current date 1730143848 [19:30:47]FM_GetShiftState [19:30:47]SAM_PROTO_GetShiftState [19:30:47]wFMCommunicate request_size=4 [19:30:47]MH_SAM_APDU [19:30:47]CAPDU: 80 13 01 00 [19:30:47]Write to MH i2c: E2 08 00 02 0D 80 13 01 00 00 00 00 00 8C [19:30:47]Write i2c OK [19:30:47]MH_I2C_Read... [19:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:47]Read from MH i2c: E2 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: E2 0E 00 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: E2 0E 00 02 0D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 DC [19:30:47]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:30:47]wFMCommunicate OK [19:30:47]SAM_PROTO_GetShiftState done [19:30:47]FM_GetShiftState done [19:30:47]opened in 1730075620 [19:30:47]opened+sec_in_day 1730162020 [19:30:47]quantity*price = 50041 [19:30:47]sum+1 = 50042 [19:30:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 304 28.10.2024 19:30 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192756 ФПД: 205475268743039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T193048&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192756&fm=205475268743039&tin=02508201610067®Number=0000000000091776&sum=50000 [19:30:48]StoreToDocumentArchive [19:30:48]shift 543 fd 192756 [19:30:48]save to /storage/0543/doc_00192756 [19:30:48]save last doc name /storage/0543/doc_00192756 to /storage/kkm_last_doc_name [19:30:48]save OK [19:30:48]Clear old archive folders... [19:30:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:48]tlvbuf is B6E83A10 [19:30:48]SAM_PROTO_ClearQueue [19:30:48]wFMCommunicate request_size=4 [19:30:48]MH_SAM_APDU [19:30:48]CAPDU: 80 09 00 00 [19:30:48]Write to MH i2c: E2 08 00 0F 0D 80 09 00 00 00 00 00 00 8E [19:30:48]Write i2c OK [19:30:48]MH_I2C_Read... [19:30:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 0F 0D 00 90 00 90 [19:30:49]RAPDU: 90 00 [19:30:49]wFMCommunicate OK [19:30:49]SAM_PROTO_ClearQueue done [19:30:49]KKMCreateOFDPacket [19:30:49]OFDProtocolAddRootSTLVToBuf [19:30:49]FM_MakeSignedData [19:30:49]FM_MakeSignedData [19:30:49]SAM_PROTO_SignData [19:30:49]wFMCommunicate request_size=4 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 0D 01 02 [19:30:49]Write to MH i2c: E2 08 00 10 0D 80 0D 01 02 00 00 00 00 96 [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 10 0D 00 90 00 91 [19:30:49]RAPDU: 90 00 [19:30:49]wFMCommunicate OK [19:30:49]wFMCommunicate request_size=255 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 68 E6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 F0 02 00 35 04 06 00 BA [19:30:49]Write to MH i2c: E2 02 01 11 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 68 E6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 F0 02 00 35 04 06 00 BA 00 00 F0 [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 11 0D 00 90 00 92 [19:30:49]RAPDU: 90 00 [19:30:49]wFMCommunicate OK [19:30:49]wFMCommunicate request_size=10 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 0D 02 02 05 E0 F0 67 4F 7F [19:30:49]Write to MH i2c: E2 0D 00 12 0D 80 0D 02 02 05 00 E0 F0 67 4F 7F 00 00 A8 [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 12 0D 00 90 00 93 [19:30:49]RAPDU: 90 00 [19:30:49]wFMCommunicate OK [19:30:49]wFMCommunicate request_size=4 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 0D 03 02 [19:30:49]Write to MH i2c: E2 08 00 13 0D 80 0D 03 02 00 00 00 00 9B [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 0B 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 0B 00 13 0D 00 23 84 82 48 7E 09 C2 6F 90 00 C5 [19:30:49]RAPDU: 23 84 82 48 7E 09 C2 6F 90 00 [19:30:49]wFMCommunicate OK [19:30:49]SAM_PROTO_SignData done [19:30:49]FM_MakeSignedData done [19:30:49]CreateOFDProtocolMessage [19:30:49]wFMCommunicate request_size=4 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 11 00 00 [19:30:49]Write to MH i2c: E2 08 00 14 0D 80 11 00 00 00 00 00 00 9B [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 17 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 17 00 14 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EE [19:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:30:49]wFMCommunicate OK [19:30:49]CreateOFDProtocolMessage done [19:30:49]OFDSenderStorePacket 192756 [19:30:49]StoreOFDPacket docnum=192756 [19:30:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6A 70 07 01 84 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 68 E6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 F0 02 00 35 04 06 00 BA E0 F0 67 4F 7F 23 84 82 48 7E 09 C2 6F [19:30:49]CheckFolder [19:30:49]dirname=/storage/ofd_packets [19:30:49]CheckFolder done [19:30:49]ProducePacketName [19:30:49]name=ofd_packets/00192756 [19:30:49]NVStorageSaveData ofd_packets/00192756 [19:30:49]File name is /storage/ofd_packets/00192756 [19:30:49]Write 301 bytes [19:30:49]NVStorageSaveData done [19:30:49]OFDSenderStorePacket done [19:30:49]KKMCreateOFDPacket done [19:30:49]NVStorageSaveData kkm_last_timestamp [19:30:49]File name is /storage/kkm_last_timestamp [19:30:49]Write 4 bytes [19:30:49]NVStorageSaveData done [19:30:49]ExternCall_PrintAddStr [19:30:49]wPrintStart [19:30:49]Write to MH i2c: 01 00 00 15 0D 22 [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 07 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 07 00 15 0D 00 00 00 00 00 FF 0F 37 [19:30:49]RasterBufferAndPrint [19:30:49]line Счет N : (1)32084 [19:30:49]line ИНН: 02508201610067 [19:30:49]line Контрольно-Кассовый Чек [19:30:49]line ПРОДАЖА [19:30:49]line ТРК (МРК, ГНК) : 12 [19:30:49]line Товар: 2710124130 [19:30:49]line Аи-92-К-5 [19:30:49]line 7.480 * 66.90 [19:30:49]line = 500.41 [19:30:49]line НДС 12% НСП 1% [19:30:49]line > о реализуемом товаре [19:30:49]line ОКРУГЛЕНИЕ: -0.41 [19:30:49]line ИТОГО: 500.00 [19:30:49]line Внесено: 500.00 [19:30:49]line СДАЧА: 0.00 [19:30:49]line НСП 1% : 4.43 [19:30:49]line НДС 12% : 53.14 [19:30:49]line Наличными: 500.00 [19:30:49]line Безнал.: 0.00 [19:30:49]line Место: АЗС № 170 "Партнер Нефть" [19:30:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:30:49]line СНО: Общий режим [19:30:49]line Чек 304 28.10.2024 19:30 [19:30:49]line Смена: 543 ФФД: 1.0 [19:30:49]line ЗНМ: 0300000110 [19:30:49]line РНМ: 0000000000091776 [19:30:49]line Версия ККМ: 001 [19:30:49]line ФМ: 0000000000871754 [19:30:49]line ФД: 192756 [19:30:49]line ФПД: 205475268743039 [19:30:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T193048&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192756&fm=205475268743039&tin=02508201610067®Number=0000000000091776&sum=50000 [19:30:49]OFD Sender: Processing packet 192756 [packets to send 75, broken 74] [19:30:49]ProducePacketName [19:30:49]name=ofd_packets/00192756 [19:30:49]OFD Sender: To server: pG, [19:30:49]CommunicateWithHost lk.salyk.kg:30040 [19:30:49]ConnectInit lk.salyk.kg [19:30:49]written 0, free lines is 4095 [19:30:49]Connected sock=10 [19:30:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6A 70 07 01 84 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 68 E6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 F0 02 00 35 04 06 00 BA E0 F0 67 4F 7F 23 84 82 48 7E 09 C2 6F [19:30:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EF BB 47 00 6D 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 F0 02 00 F4 03 04 00 2B 8B 1F 67 B6 04 01 00 00 2F 2B 73 80 FB A2 58 0D [19:30:50]CommunicateWithHost err = 0 [19:30:50]CheckOFDResponse [19:30:50]1017 (14) - 77093643461234 [19:30:50]1041 (16) - 0000000000871754 [19:30:50]1040 (4) - 192756 [19:30:50]1012 (4) - 28.10.2024 13:01 [19:30:50]1206 (1) - 0 [19:30:50]OFD Sender: Remove packet 192756 [19:30:50]ProducePacketName [19:30:50]name=ofd_packets/00192756 [19:30:50]NVStorageDeleteData [19:30:50]Write to MH i2c: 01 00 00 40 0D 4D [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 07 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: 01 07 00 40 0D 00 00 00 00 00 B9 0C 19 [19:30:50]RasterBufferAndPrint [19:30:50]line [19:30:50]line [19:30:50]line [19:30:50]line [19:30:50]line [19:30:50]written 0, free lines is 3264 [19:30:50]MH_Cut [19:30:50]Write to MH i2c: D1 01 00 47 0D 01 26 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: D1 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: D1 01 00 [19:30:50]MH_I2C_Read... [19:30:50]Read from MH i2c: D1 01 00 47 0D 00 25 [19:30:50]Write to MH i2c: 01 00 00 48 0D 55 [19:30:50]Write i2c OK [19:30:50]MH_I2C_Read... [19:30:50]OFD Sender: No OFD packet to send [19:30:51]*** Cut start [19:30:51]*** Partial cut [19:30:51]*** CUTSNS_PIN = 1 [19:30:51]*** CUTSNS_PIN = 0 [19:30:51]*** Brake cut motor [19:30:51]Read from MH i2c: 01 [19:30:51]MH_I2C_Read... [19:30:51]*** Stop cut motor [19:30:51]*** Cut end [19:30:51]Read from MH i2c: 01 07 00 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: 01 07 00 48 0D 00 00 00 00 00 FF 0F 6A [19:30:51]process_action close_receipt done [19:30:51]requested_data is exist [19:30:51]produce_requested_data [19:30:51]requested_item fm.sn is exist - process it [19:30:51]wFMCommunicate request_size=4 [19:30:51]MH_SAM_APDU [19:30:51]CAPDU: 80 11 00 00 [19:30:51]Write to MH i2c: E2 08 00 49 0D 80 11 00 00 00 00 00 00 D0 [19:30:51]Write i2c OK [19:30:51]MH_I2C_Read... [19:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:51]Read from MH i2c: E2 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: E2 17 00 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: E2 17 00 49 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 23 [19:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:30:51]wFMCommunicate OK [19:30:51]requested_item fd.num is exist - process it [19:30:51]SAM_PROTO_GetFieldsCounters [19:30:51]wFMCommunicate request_size=4 [19:30:51]MH_SAM_APDU [19:30:51]CAPDU: 80 13 00 00 [19:30:51]Write to MH i2c: E2 08 00 4A 0D 80 13 00 00 00 00 00 00 D3 [19:30:51]Write i2c OK [19:30:51]MH_I2C_Read... [19:30:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:51]Read from MH i2c: E2 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: E2 62 00 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: E2 62 00 4A 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F4 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 93 [19: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F4 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:51]wFMCommunicate OK [19:30:51]SAM_PROTO_GetFieldsCounters done [19:30:51]requested_item shift.num is exist - process it [19:30:51]requested_item shift.opened is exist - process it [19:30:51]req_shift_opened [19:30:51]FM_GetShiftState [19:30:51]SAM_PROTO_GetShiftState [19:30:51]wFMCommunicate request_size=4 [19:30:51]MH_SAM_APDU [19:30:51]CAPDU: 80 13 01 00 [19:30:51]Write to MH i2c: E2 08 00 4B 0D 80 13 01 00 00 00 00 00 D5 [19:30:51]Write i2c OK [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: E2 [19:30:52]MH_I2C_Read... [19:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:52]Read from MH i2c: E2 0E 00 [19:30:52]MH_I2C_Read... [19:30:52]Read from MH i2c: E2 0E 00 4B 0D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 25 [19:30:52]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:30:52]wFMCommunicate OK [19:30:52]SAM_PROTO_GetShiftState done [19:30:52]FM_GetShiftState done [19:30:52]req_shift_opened done [19:30:52]requested_item shift.open_date is exist - process it [19:30:52]req_shift_open_date [19:30:52]req_shift_open_date done [19:30:52]produce_requested_data done [19:30:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192756,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:30:52]process_action_free close_receipt [19:30:52]json_value_free [19:30:52]json_value_free done [19:30:52]process_json_proto returns [19:30:52]Send response to host [19:30:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192756,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:30:52]free response buf [19:30:52]execute_script done [19:30:52]execute_script returns [19:30:52]free content buf [19:30:52]Sock 8.Close socket [19:30:52]Sock 8.Thread stoped [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:19]accept exits with 9 [19:31:19]New connection [19:31:19]New thread 3066658148 created [19:31:19]Thread 3066801508 joined [19:31:19]Waiting for new connection... [19:31:19] Sock 9.Parse request [19:31:19]Sock 9.Check first char [19:31:19]Sock 9.First char is OK [19:31:19]request: POST /json_proto HTTP/1.0 [19:31:19]Method: POST [19:31:19]URL: /json_proto [19:31:19]Method is POST - this is cgi request [19:31:19]url: /json_proto [19:31:19]query_string will be loaded in cgi processing [19:31:19]execute_cgi json_proto POST (null) [19:31:19]execute_cgi path=json_proto method=POST [19:31:19]POST find Content-Length [19:31:19]Host: 172.17.63.131:8080 [19:31:19]Content-Length: 676 [19:31:19]Content-Type: application/json [19:31:19] [19:31:19]POST finish read [19:31:19]Found Content-Length = 676 [19:31:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:19]execute_script... [19:31: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)32085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:19]POST & json_proto [19:31:19]process_json_proto [19:31:19]json parsed OK: [19:31:19]protocol is kg_v1.0 [19:31:19]action value=close_receipt [19:31:19]process_action close_receipt [19:31:19]cmd_close_receipt [19:31:19]MH_GetDate [19:31:19]Write to MH i2c: F0 00 00 4C 0D 48 [19:31:19]Write i2c OK [19:31:19]MH_I2C_Read... [19:31:19]Read from MH i2c: F0 [19:31:19]MH_I2C_Read... [19:31:19]Read from MH i2c: F0 09 00 [19:31:19]MH_I2C_Read... [19:31:19]Read from MH i2c: F0 09 00 4C 0D 00 88 E6 1F 67 22 05 6E 64 3E [19:31:19]GetLastDocTimeStamp 1730143848 [19:31:19]current date 1730143880 [19:31:19]FM_GetShiftState [19:31:19]SAM_PROTO_GetShiftState [19:31:19]wFMCommunicate request_size=4 [19:31:19]MH_SAM_APDU [19:31:19]CAPDU: 80 13 01 00 [19:31:19]Write to MH i2c: E2 08 00 4D 0D 80 13 01 00 00 00 00 00 D7 [19:31:19]Write i2c OK [19:31:19]MH_I2C_Read... [19:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:19]Read from MH i2c: E2 [19:31:19]MH_I2C_Read... [19:31:19]Read from MH i2c: E2 0E 00 [19:31:19]MH_I2C_Read... [19:31:19]Read from MH i2c: E2 0E 00 4D 0D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 27 [19:31:19]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:31:19]wFMCommunicate OK [19:31:19]SAM_PROTO_GetShiftState done [19:31:19]FM_GetShiftState done [19:31:19]opened in 1730075620 [19:31:19]opened+sec_in_day 1730162020 [19:31:19]quantity*price = 20003 [19:31:19]sum+1 = 20004 [19:31:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 305 28.10.2024 19:31 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192757 ФПД: 98913048802575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T193120&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192757&fm=98913048802575&tin=02508201610067®Number=0000000000091776&sum=20000 [19:31:20]StoreToDocumentArchive [19:31:20]shift 543 fd 192757 [19:31:20]save to /storage/0543/doc_00192757 [19:31:20]save last doc name /storage/0543/doc_00192757 to /storage/kkm_last_doc_name [19:31:20]save OK [19:31:20]Clear old archive folders... [19:31:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:20]tlvbuf is 00EF52E0 [19:31:20]SAM_PROTO_ClearQueue [19:31:20]wFMCommunicate request_size=4 [19:31:20]MH_SAM_APDU [19:31:20]CAPDU: 80 09 00 00 [19:31:20]Write to MH i2c: E2 08 00 5A 0D 80 09 00 00 00 00 00 00 D9 [19:31:20]Write i2c OK [19:31:20]MH_I2C_Read... [19:31:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:20]Read from MH i2c: E2 [19:31:20]MH_I2C_Read... [19:31:20]Read from MH i2c: E2 03 00 [19:31:20]MH_I2C_Read... [19:31:20]Read from MH i2c: E2 03 00 5A 0D 00 90 00 DB [19:31:20]RAPDU: 90 00 [19:31:20]wFMCommunicate OK [19:31:20]SAM_PROTO_ClearQueue done [19:31:20]KKMCreateOFDPacket [19:31:20]OFDProtocolAddRootSTLVToBuf [19:31:20]FM_MakeSignedData [19:31:20]FM_MakeSignedData [19:31:20]SAM_PROTO_SignData [19:31:20]wFMCommunicate request_size=4 [19:31:20]MH_SAM_APDU [19:31:20]CAPDU: 80 0D 01 02 [19:31:20]Write to MH i2c: E2 08 00 5B 0D 80 0D 01 02 00 00 00 00 E1 [19:31:20]Write i2c OK [19:31:20]MH_I2C_Read... [19:31:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:20]Read from MH i2c: E2 [19:31:20]MH_I2C_Read... [19:31:20]Read from MH i2c: E2 03 00 [19:31:20]MH_I2C_Read... [19:31:20]Read from MH i2c: E2 03 00 5B 0D 00 90 00 DC [19:31:20]RAPDU: 90 00 [19:31:20]wFMCommunicate OK [19:31:20]wFMCommunicate request_size=255 [19:31:20]MH_SAM_APDU [19:31: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 88 E6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 F0 02 00 35 04 06 00 59 [19:31:20]Write to MH i2c: E2 02 01 5C 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 88 E6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 F0 02 00 35 04 06 00 59 00 00 BE [19:31:20]Write i2c OK [19:31:20]MH_I2C_Read... [19:31:20]OFD Sender: No OFD packet to send [19:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:20]Read from MH i2c: E2 [19:31:20]MH_I2C_Read... [19:31:20]Read from MH i2c: E2 03 00 [19:31:20]MH_I2C_Read... [19:31:20]Read from MH i2c: E2 03 00 5C 0D 00 90 00 DD [19:31:20]RAPDU: 90 00 [19:31:20]wFMCommunicate OK [19:31:20]wFMCommunicate request_size=10 [19:31:20]MH_SAM_APDU [19:31:20]CAPDU: 80 0D 02 02 05 F5 FD 23 35 0F [19:31:20]Write to MH i2c: E2 0D 00 5D 0D 80 0D 02 02 05 00 F5 FD 23 35 0F 00 00 47 [19:31:20]Write i2c OK [19:31:20]MH_I2C_Read... [19:31:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:20]Read from MH i2c: E2 [19:31:20]MH_I2C_Read... [19:31:20]Read from MH i2c: E2 03 00 [19:31:20]MH_I2C_Read... [19:31:20]Read from MH i2c: E2 03 00 5D 0D 00 90 00 DE [19:31:20]RAPDU: 90 00 [19:31:20]wFMCommunicate OK [19:31:20]wFMCommunicate request_size=4 [19:31:20]MH_SAM_APDU [19:31:20]CAPDU: 80 0D 03 02 [19:31:20]Write to MH i2c: E2 08 00 5E 0D 80 0D 03 02 00 00 00 00 E6 [19:31:20]Write i2c OK [19:31:20]MH_I2C_Read... [19:31:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:20]Read from MH i2c: E2 [19:31:20]MH_I2C_Read... [19:31:20]Read from MH i2c: E2 0B 00 [19:31:20]MH_I2C_Read... [19:31:20]Read from MH i2c: E2 0B 00 5E 0D 00 77 B1 CF AA 82 35 A3 8D 90 00 6F [19:31:20]RAPDU: 77 B1 CF AA 82 35 A3 8D 90 00 [19:31:20]wFMCommunicate OK [19:31:20]SAM_PROTO_SignData done [19:31:20]FM_MakeSignedData done [19:31:20]CreateOFDProtocolMessage [19:31:20]wFMCommunicate request_size=4 [19:31:20]MH_SAM_APDU [19:31:20]CAPDU: 80 11 00 00 [19:31:20]Write to MH i2c: E2 08 00 5F 0D 80 11 00 00 00 00 00 00 E6 [19:31:20]Write i2c OK [19:31:20]MH_I2C_Read... [19:31:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:21]Read from MH i2c: E2 [19:31:21]MH_I2C_Read... [19:31:21]Read from MH i2c: E2 17 00 [19:31:21]MH_I2C_Read... [19:31:21]Read from MH i2c: E2 17 00 5F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 39 [19:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:31:21]wFMCommunicate OK [19:31:21]CreateOFDProtocolMessage done [19:31:21]OFDSenderStorePacket 192757 [19:31:21]StoreOFDPacket docnum=192757 [19:31:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BB BC 07 01 B8 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 88 E6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 F0 02 00 35 04 06 00 59 F5 FD 23 35 0F 77 B1 CF AA 82 35 A3 8D [19:31:21]CheckFolder [19:31:21]dirname=/storage/ofd_packets [19:31:21]CheckFolder done [19:31:21]ProducePacketName [19:31:21]name=ofd_packets/00192757 [19:31:21]NVStorageSaveData ofd_packets/00192757 [19:31:21]File name is /storage/ofd_packets/00192757 [19:31:21]Write 301 bytes [19:31:21]NVStorageSaveData done [19:31:21]OFDSenderStorePacket done [19:31:21]KKMCreateOFDPacket done [19:31:21]NVStorageSaveData kkm_last_timestamp [19:31:21]File name is /storage/kkm_last_timestamp [19:31:21]Write 4 bytes [19:31:21]NVStorageSaveData done [19:31:21]ExternCall_PrintAddStr [19:31:21]wPrintStart [19:31:21]Write to MH i2c: 01 00 00 60 0D 6D [19:31:21]Write i2c OK [19:31:21]MH_I2C_Read... [19:31:21]Read from MH i2c: 01 [19:31:21]MH_I2C_Read... [19:31:21]Read from MH i2c: 01 07 00 [19:31:21]MH_I2C_Read... [19:31:21]Read from MH i2c: 01 07 00 60 0D 00 00 00 00 00 FF 0F 82 [19:31:21]RasterBufferAndPrint [19:31:21]line Счет N : (1)32085 [19:31:21]line ИНН: 02508201610067 [19:31:21]line Контрольно-Кассовый Чек [19:31:21]line ПРОДАЖА [19:31:21]line ТРК (МРК, ГНК) : 12 [19:31:21]line Товар: 2710124130 [19:31:21]line Аи-92-К-5 [19:31:21]line 2.990 * 66.90 [19:31:21]line = 200.03 [19:31:21]line НДС 12% НСП 1% [19:31:21]line > о реализуемом товаре [19:31:21]line ОКРУГЛЕНИЕ: -0.03 [19:31:21]line ИТОГО: 200.00 [19:31:21]line Внесено: 200.00 [19:31:21]line СДАЧА: 0.00 [19:31:21]line НСП 1% : 1.77 [19:31:21]line НДС 12% : 21.24 [19:31:21]line Наличными: 200.00 [19:31:21]line Безнал.: 0.00 [19:31:21]line Место: АЗС № 170 "Партнер Нефть" [19:31:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:31:21]line СНО: Общий режим [19:31:21]line Чек 305 28.10.2024 19:31 [19:31:21]line Смена: 543 ФФД: 1.0 [19:31:21]line ЗНМ: 0300000110 [19:31:21]line РНМ: 0000000000091776 [19:31:21]line Версия ККМ: 001 [19:31:21]line ФМ: 0000000000871754 [19:31:21]line ФД: 192757 [19:31:21]line ФПД: 98913048802575 [19:31:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T193120&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192757&fm=98913048802575&tin=02508201610067®Number=0000000000091776&sum=20000 [19:31:21]OFD Sender: Processing packet 192757 [packets to send 75, broken 74] [19:31:21]ProducePacketName [19:31:21]name=ofd_packets/00192757 [19:31:21]OFD Sender: To server: pG, [19:31:21]CommunicateWithHost lk.salyk.kg:30040 [19:31:21]ConnectInit lk.salyk.kg [19:31:21]written 0, free lines is 4095 [19:31:21]Connected sock=10 [19:31:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BB BC 07 01 B8 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 88 E6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 F0 02 00 35 04 06 00 59 F5 FD 23 35 0F 77 B1 CF AA 82 35 A3 8D [19:31:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 83 3A 47 00 32 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 F0 02 00 F4 03 04 00 4B 8B 1F 67 B6 04 01 00 00 BD 00 DB DE 9F 6E 28 DB [19:31:21]CommunicateWithHost err = 0 [19:31:21]CheckOFDResponse [19:31:21]1017 (14) - 77093643461234 [19:31:21]1041 (16) - 0000000000871754 [19:31:21]1040 (4) - 192757 [19:31:21]1012 (4) - 28.10.2024 13:02 [19:31:21]1206 (1) - 0 [19:31:21]OFD Sender: Remove packet 192757 [19:31:21]ProducePacketName [19:31:21]name=ofd_packets/00192757 [19:31:21]NVStorageDeleteData [19:31:21]Write to MH i2c: 01 00 00 8B 0D 98 [19:31:21]Write i2c OK [19:31:21]MH_I2C_Read... [19:31:21]Read from MH i2c: 01 [19:31:21]MH_I2C_Read... [19:31:21]Read from MH i2c: 01 07 00 [19:31:21]MH_I2C_Read... [19:31:21]Read from MH i2c: 01 07 00 8B 0D 00 00 00 00 00 C3 0C 6E [19:31:21]RasterBufferAndPrint [19:31:21]line [19:31:21]line [19:31:21]line [19:31:21]line [19:31:21]line [19:31:21]written 0, free lines is 3272 [19:31:21]MH_Cut [19:31:21]Write to MH i2c: D1 01 00 92 0D 01 71 [19:31:21]Write i2c OK [19:31:21]MH_I2C_Read... [19:31:21]Read from MH i2c: D1 [19:31:21]MH_I2C_Read... [19:31:21]Read from MH i2c: D1 01 00 [19:31:21]MH_I2C_Read... [19:31:21]Read from MH i2c: D1 01 00 92 0D 00 70 [19:31:21]Write to MH i2c: 01 00 00 93 0D A0 [19:31:21]Write i2c OK [19:31:21]MH_I2C_Read... [19:31:22]OFD Sender: No OFD packet to send [19:31:22]*** Cut start [19:31:22]*** Partial cut [19:31:22]*** CUTSNS_PIN = 1 [19:31:22]*** CUTSNS_PIN = 0 [19:31:22]*** Brake cut motor [19:31:23]Read from MH i2c: 01 [19:31:23]MH_I2C_Read... [19:31:23]*** Stop cut motor [19:31:23]*** Cut end [19:31:23]Read from MH i2c: 01 07 00 [19:31:23]MH_I2C_Read... [19:31:23]Read from MH i2c: 01 07 00 93 0D 00 00 00 00 00 FF 0F B5 [19:31:23]process_action close_receipt done [19:31:23]requested_data is exist [19:31:23]produce_requested_data [19:31:23]requested_item fm.sn is exist - process it [19:31:23]wFMCommunicate request_size=4 [19:31:23]MH_SAM_APDU [19:31:23]CAPDU: 80 11 00 00 [19:31:23]Write to MH i2c: E2 08 00 94 0D 80 11 00 00 00 00 00 00 1B [19:31:23]Write i2c OK [19:31:23]MH_I2C_Read... [19:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:23]Read from MH i2c: E2 [19:31:23]MH_I2C_Read... [19:31:23]Read from MH i2c: E2 17 00 [19:31:23]MH_I2C_Read... [19:31:23]Read from MH i2c: E2 17 00 94 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6E [19:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:31:23]wFMCommunicate OK [19:31:23]requested_item fd.num is exist - process it [19:31:23]SAM_PROTO_GetFieldsCounters [19:31:23]wFMCommunicate request_size=4 [19:31:23]MH_SAM_APDU [19:31:23]CAPDU: 80 13 00 00 [19:31:23]Write to MH i2c: E2 08 00 95 0D 80 13 00 00 00 00 00 00 1E [19:31:23]Write i2c OK [19:31:23]MH_I2C_Read... [19:31:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:23]Read from MH i2c: E2 [19:31:23]MH_I2C_Read... [19:31:23]Read from MH i2c: E2 62 00 [19:31:23]MH_I2C_Read... [19:31:23]Read from MH i2c: E2 62 00 95 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F5 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [19:31:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F5 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:23]wFMCommunicate OK [19:31:23]SAM_PROTO_GetFieldsCounters done [19:31:23]requested_item shift.num is exist - process it [19:31:23]requested_item shift.opened is exist - process it [19:31:23]req_shift_opened [19:31:23]FM_GetShiftState [19:31:23]SAM_PROTO_GetShiftState [19:31:23]wFMCommunicate request_size=4 [19:31:23]MH_SAM_APDU [19:31:23]CAPDU: 80 13 01 00 [19:31:23]Write to MH i2c: E2 08 00 96 0D 80 13 01 00 00 00 00 00 20 [19:31:23]Write i2c OK [19:31:23]MH_I2C_Read... [19:31:23]Read from MH i2c: E2 [19:31:23]MH_I2C_Read... [19:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:23]Read from MH i2c: E2 0E 00 [19:31:23]MH_I2C_Read... [19:31:23]Read from MH i2c: E2 0E 00 96 0D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 70 [19:31:23]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:31:23]wFMCommunicate OK [19:31:23]SAM_PROTO_GetShiftState done [19:31:23]FM_GetShiftState done [19:31:23]req_shift_opened done [19:31:23]requested_item shift.open_date is exist - process it [19:31:23]req_shift_open_date [19:31:23]req_shift_open_date done [19:31:23]produce_requested_data done [19:31:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192757,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:31:23]process_action_free close_receipt [19:31:23]json_value_free [19:31:23]json_value_free done [19:31:23]process_json_proto returns [19:31:23]Send response to host [19:31:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192757,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:31:23]free response buf [19:31:23]execute_script done [19:31:23]execute_script returns [19:31:23]free content buf [19:31:23]Sock 9.Close socket [19:31:23]Sock 9.Thread stoped [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:21]accept exits with 8 [19:33:21]New connection [19:33:21]New thread 3066801508 created [19:33:21]Thread 3066658148 joined [19:33:21]Waiting for new connection... [19:33:21] Sock 8.Parse request [19:33:21]Sock 8.Check first char [19:33:21]Sock 8.First char is OK [19:33:21]request: POST /json_proto HTTP/1.0 [19:33:21]Method: POST [19:33:21]URL: /json_proto [19:33:21]Method is POST - this is cgi request [19:33:21]url: /json_proto [19:33:21]query_string will be loaded in cgi processing [19:33:21]execute_cgi json_proto POST (null) [19:33:21]execute_cgi path=json_proto method=POST [19:33:21]POST find Content-Length [19:33:21]Host: 172.17.63.131:8080 [19:33:21]Content-Length: 676 [19:33:21]Content-Type: application/json [19:33:21] [19:33:21]POST finish read [19:33:21]Found Content-Length = 676 [19:33:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.390, "sum" : 360.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:21]execute_script... [19:33: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)32086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.390, "sum" : 360.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:21]POST & json_proto [19:33:21]process_json_proto [19:33:21]json parsed OK: [19:33:21]protocol is kg_v1.0 [19:33:21]action value=close_receipt [19:33:21]process_action close_receipt [19:33:21]cmd_close_receipt [19:33:21]MH_GetDate [19:33:21]Write to MH i2c: F0 00 00 97 0D 93 [19:33:21]Write i2c OK [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: F0 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: F0 09 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: F0 09 00 97 0D 00 02 E7 1F 67 22 05 6E 64 04 [19:33:21]GetLastDocTimeStamp 1730143880 [19:33:21]current date 1730144002 [19:33:21]FM_GetShiftState [19:33:21]SAM_PROTO_GetShiftState [19:33:21]wFMCommunicate request_size=4 [19:33:21]MH_SAM_APDU [19:33:21]CAPDU: 80 13 01 00 [19:33:21]Write to MH i2c: E2 08 00 98 0D 80 13 01 00 00 00 00 00 22 [19:33:21]Write i2c OK [19:33:21]MH_I2C_Read... [19:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:21]Read from MH i2c: E2 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 0E 00 [19:33:21]MH_I2C_Read... [19:33:21]Read from MH i2c: E2 0E 00 98 0D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 72 [19:33:21]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:33:21]wFMCommunicate OK [19:33:21]SAM_PROTO_GetShiftState done [19:33:21]FM_GetShiftState done [19:33:21]opened in 1730075620 [19:33:21]opened+sec_in_day 1730162020 [19:33:21]quantity*price = 36059 [19:33:21]sum+1 = 36060 [19:33:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.29 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 306 28.10.2024 19:33 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192758 ФПД: 241324983641515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T193322&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192758&fm=241324983641515&tin=02508201610067®Number=0000000000091776&sum=36000 [19:33:22]StoreToDocumentArchive [19:33:22]shift 543 fd 192758 [19:33:22]save to /storage/0543/doc_00192758 [19:33:22]save last doc name /storage/0543/doc_00192758 to /storage/kkm_last_doc_name [19:33:22]save OK [19:33:22]Clear old archive folders... [19:33:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:22]tlvbuf is 00F66770 [19:33:22]SAM_PROTO_ClearQueue [19:33:22]wFMCommunicate request_size=4 [19:33:22]MH_SAM_APDU [19:33:22]CAPDU: 80 09 00 00 [19:33:22]Write to MH i2c: E2 08 00 A5 0D 80 09 00 00 00 00 00 00 24 [19:33:22]Write i2c OK [19:33:22]MH_I2C_Read... [19:33:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:22]Read from MH i2c: E2 [19:33:22]MH_I2C_Read... [19:33:22]Read from MH i2c: E2 03 00 [19:33:22]MH_I2C_Read... [19:33:22]Read from MH i2c: E2 03 00 A5 0D 00 90 00 26 [19:33:22]RAPDU: 90 00 [19:33:22]wFMCommunicate OK [19:33:22]SAM_PROTO_ClearQueue done [19:33:22]KKMCreateOFDPacket [19:33:22]OFDProtocolAddRootSTLVToBuf [19:33:22]FM_MakeSignedData [19:33:22]FM_MakeSignedData [19:33:22]SAM_PROTO_SignData [19:33:22]wFMCommunicate request_size=4 [19:33:22]MH_SAM_APDU [19:33:22]CAPDU: 80 0D 01 02 [19:33:22]Write to MH i2c: E2 08 00 A6 0D 80 0D 01 02 00 00 00 00 2C [19:33:22]Write i2c OK [19:33:22]MH_I2C_Read... [19:33:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:22]Read from MH i2c: E2 [19:33:22]MH_I2C_Read... [19:33:22]Read from MH i2c: E2 03 00 [19:33:22]MH_I2C_Read... [19:33:22]Read from MH i2c: E2 03 00 A6 0D 00 90 00 27 [19:33:22]RAPDU: 90 00 [19:33:22]wFMCommunicate OK [19:33:22]wFMCommunicate request_size=255 [19:33:22]MH_SAM_APDU [19:33: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 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 02 E7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 F0 02 00 35 04 06 00 DB [19:33:22]Write to MH i2c: E2 02 01 A7 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 02 E7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 F0 02 00 35 04 06 00 DB 00 00 22 [19:33:23]Write i2c OK [19:33:23]MH_I2C_Read... [19:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:23]Read from MH i2c: E2 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: E2 03 00 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: E2 03 00 A7 0D 00 90 00 28 [19:33:23]RAPDU: 90 00 [19:33:23]wFMCommunicate OK [19:33:23]wFMCommunicate request_size=10 [19:33:23]MH_SAM_APDU [19:33:23]CAPDU: 80 0D 02 02 05 7B D9 EC E5 AB [19:33:23]Write to MH i2c: E2 0D 00 A8 0D 80 0D 02 02 05 00 7B D9 EC E5 AB 00 00 09 [19:33:23]Write i2c OK [19:33:23]MH_I2C_Read... [19:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:23]Read from MH i2c: E2 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: E2 03 00 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: E2 03 00 A8 0D 00 90 00 29 [19:33:23]RAPDU: 90 00 [19:33:23]wFMCommunicate OK [19:33:23]wFMCommunicate request_size=4 [19:33:23]MH_SAM_APDU [19:33:23]CAPDU: 80 0D 03 02 [19:33:23]Write to MH i2c: E2 08 00 A9 0D 80 0D 03 02 00 00 00 00 31 [19:33:23]Write i2c OK [19:33:23]MH_I2C_Read... [19:33:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:23]Read from MH i2c: E2 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: E2 0B 00 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: E2 0B 00 A9 0D 00 82 58 42 F9 08 D9 75 C2 90 00 5F [19:33:23]RAPDU: 82 58 42 F9 08 D9 75 C2 90 00 [19:33:23]wFMCommunicate OK [19:33:23]SAM_PROTO_SignData done [19:33:23]FM_MakeSignedData done [19:33:23]CreateOFDProtocolMessage [19:33:23]wFMCommunicate request_size=4 [19:33:23]MH_SAM_APDU [19:33:23]CAPDU: 80 11 00 00 [19:33:23]Write to MH i2c: E2 08 00 AA 0D 80 11 00 00 00 00 00 00 31 [19:33:23]Write i2c OK [19:33:23]MH_I2C_Read... [19:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:23]Read from MH i2c: E2 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: E2 17 00 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: E2 17 00 AA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 84 [19:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:33:23]wFMCommunicate OK [19:33:23]CreateOFDProtocolMessage done [19:33:23]OFDSenderStorePacket 192758 [19:33:23]StoreOFDPacket docnum=192758 [19:33:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FB D8 07 01 0F 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 02 E7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 F0 02 00 35 04 06 00 DB 7B D9 EC E5 AB 82 58 42 F9 08 D9 75 C2 [19:33:23]CheckFolder [19:33:23]dirname=/storage/ofd_packets [19:33:23]CheckFolder done [19:33:23]ProducePacketName [19:33:23]name=ofd_packets/00192758 [19:33:23]NVStorageSaveData ofd_packets/00192758 [19:33:23]File name is /storage/ofd_packets/00192758 [19:33:23]Write 301 bytes [19:33:23]NVStorageSaveData done [19:33:23]OFDSenderStorePacket done [19:33:23]KKMCreateOFDPacket done [19:33:23]NVStorageSaveData kkm_last_timestamp [19:33:23]File name is /storage/kkm_last_timestamp [19:33:23]Write 4 bytes [19:33:23]NVStorageSaveData done [19:33:23]ExternCall_PrintAddStr [19:33:23]wPrintStart [19:33:23]Write to MH i2c: 01 00 00 AB 0D B8 [19:33:23]Write i2c OK [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: 01 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: 01 07 00 [19:33:23]MH_I2C_Read... [19:33:23]Read from MH i2c: 01 07 00 AB 0D 00 00 00 00 00 FF 0F CD [19:33:23]RasterBufferAndPrint [19:33:23]line Счет N : (1)32086 [19:33:23]line ИНН: 02508201610067 [19:33:23]line Контрольно-Кассовый Чек [19:33:23]line ПРОДАЖА [19:33:23]line ТРК (МРК, ГНК) : 21 [19:33:23]line Товар: 2710124130 [19:33:23]line Аи-92-К-5 [19:33:23]line 5.390 * 66.90 [19:33:23]line = 360.59 [19:33:23]line НДС 12% НСП 1% [19:33:23]line > о реализуемом товаре [19:33:23]line ОКРУГЛЕНИЕ: -0.59 [19:33:23]line ИТОГО: 360.00 [19:33:23]line Внесено: 360.00 [19:33:23]line СДАЧА: 0.00 [19:33:23]line НСП 1% : 3.19 [19:33:23]line НДС 12% : 38.29 [19:33:23]line Наличными: 360.00 [19:33:23]line Безнал.: 0.00 [19:33:23]line Место: АЗС № 170 "Партнер Нефть" [19:33:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:33:23]line СНО: Общий режим [19:33:23]line Чек 306 28.10.2024 19:33 [19:33:23]line Смена: 543 ФФД: 1.0 [19:33:23]line ЗНМ: 0300000110 [19:33:23]line РНМ: 0000000000091776 [19:33:23]line Версия ККМ: 001 [19:33:23]line ФМ: 0000000000871754 [19:33:23]line ФД: 192758 [19:33:23]line ФПД: 241324983641515 [19:33:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T193322&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192758&fm=241324983641515&tin=02508201610067®Number=0000000000091776&sum=36000 [19:33:23]OFD Sender: Processing packet 192758 [packets to send 75, broken 74] [19:33:23]ProducePacketName [19:33:23]name=ofd_packets/00192758 [19:33:23]OFD Sender: To server: pG, [19:33:23]CommunicateWithHost lk.salyk.kg:30040 [19:33:23]ConnectInit lk.salyk.kg [19:33:23]written 0, free lines is 4095 [19:33:23]Connected sock=10 [19:33:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FB D8 07 01 0F 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 02 E7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 F0 02 00 35 04 06 00 DB 7B D9 EC E5 AB 82 58 42 F9 08 D9 75 C2 [19:33:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6F 23 47 00 52 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 F0 02 00 F4 03 04 00 C5 8B 1F 67 B6 04 01 00 00 F8 7B 14 D9 03 53 00 C3 [19:33:24]CommunicateWithHost err = 0 [19:33:24]CheckOFDResponse [19:33:24]1017 (14) - 77093643461234 [19:33:24]1041 (16) - 0000000000871754 [19:33:24]1040 (4) - 192758 [19:33:24]1012 (4) - 28.10.2024 13:04 [19:33:24]1206 (1) - 0 [19:33:24]OFD Sender: Remove packet 192758 [19:33:24]ProducePacketName [19:33:24]name=ofd_packets/00192758 [19:33:24]NVStorageDeleteData [19:33:24]Write to MH i2c: 01 00 00 D6 0D E3 [19:33:24]Write i2c OK [19:33:24]MH_I2C_Read... [19:33:24]Read from MH i2c: 01 [19:33:24]MH_I2C_Read... [19:33:24]Read from MH i2c: 01 07 00 [19:33:24]MH_I2C_Read... [19:33:24]Read from MH i2c: 01 07 00 D6 0D 00 00 00 00 00 B2 0C A8 [19:33:24]RasterBufferAndPrint [19:33:24]line [19:33:24]line [19:33:24]line [19:33:24]line [19:33:24]line [19:33:24]written 0, free lines is 3257 [19:33:24]MH_Cut [19:33:24]Write to MH i2c: D1 01 00 DD 0D 01 BC [19:33:24]Write i2c OK [19:33:24]MH_I2C_Read... [19:33:24]Read from MH i2c: D1 [19:33:24]MH_I2C_Read... [19:33:24]Read from MH i2c: D1 01 00 [19:33:24]MH_I2C_Read... [19:33:24]Read from MH i2c: D1 01 00 DD 0D 00 BB [19:33:24]Write to MH i2c: 01 00 00 DE 0D EB [19:33:24]Write i2c OK [19:33:24]MH_I2C_Read... [19:33:24]OFD Sender: No OFD packet to send [19:33:25]*** Cut start [19:33:25]*** Partial cut [19:33:25]*** CUTSNS_PIN = 1 [19:33:25]*** CUTSNS_PIN = 0 [19:33:25]*** Brake cut motor [19:33:25]Read from MH i2c: 01 [19:33:25]MH_I2C_Read... [19:33:25]*** Stop cut motor [19:33:25]*** Cut end [19:33:25]Read from MH i2c: 01 07 00 [19:33:25]MH_I2C_Read... [19:33:25]Read from MH i2c: 01 07 00 DE 0D 00 00 00 00 00 FF 0F 00 [19:33:25]process_action close_receipt done [19:33:25]requested_data is exist [19:33:25]produce_requested_data [19:33:25]requested_item fm.sn is exist - process it [19:33:25]wFMCommunicate request_size=4 [19:33:25]MH_SAM_APDU [19:33:25]CAPDU: 80 11 00 00 [19:33:25]Write to MH i2c: E2 08 00 DF 0D 80 11 00 00 00 00 00 00 66 [19:33:25]Write i2c OK [19:33:25]MH_I2C_Read... [19:33:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:25]Read from MH i2c: E2 [19:33:25]MH_I2C_Read... [19:33:25]Read from MH i2c: E2 17 00 [19:33:25]MH_I2C_Read... [19:33:25]Read from MH i2c: E2 17 00 DF 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B9 [19:33:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:33:25]wFMCommunicate OK [19:33:25]requested_item fd.num is exist - process it [19:33:25]SAM_PROTO_GetFieldsCounters [19:33:25]wFMCommunicate request_size=4 [19:33:25]MH_SAM_APDU [19:33:25]CAPDU: 80 13 00 00 [19:33:25]Write to MH i2c: E2 08 00 E0 0D 80 13 00 00 00 00 00 00 69 [19:33:25]Write i2c OK [19:33:25]MH_I2C_Read... [19:33:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:25]Read from MH i2c: E2 [19:33:25]MH_I2C_Read... [19:33:25]Read from MH i2c: E2 62 00 [19:33:25]MH_I2C_Read... [19:33:25]Read from MH i2c: E2 62 00 E0 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F6 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 31 [19:33:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F6 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:25]wFMCommunicate OK [19:33:25]SAM_PROTO_GetFieldsCounters done [19:33:25]requested_item shift.num is exist - process it [19:33:25]requested_item shift.opened is exist - process it [19:33:25]req_shift_opened [19:33:25]FM_GetShiftState [19:33:25]SAM_PROTO_GetShiftState [19:33:25]wFMCommunicate request_size=4 [19:33:25]MH_SAM_APDU [19:33:25]CAPDU: 80 13 01 00 [19:33:25]Write to MH i2c: E2 08 00 E1 0D 80 13 01 00 00 00 00 00 6B [19:33:25]Write i2c OK [19:33:25]MH_I2C_Read... [19:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:25]Read from MH i2c: E2 [19:33:25]MH_I2C_Read... [19:33:25]Read from MH i2c: E2 0E 00 [19:33:25]MH_I2C_Read... [19:33:25]Read from MH i2c: E2 0E 00 E1 0D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 BB [19:33:25]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:33:25]wFMCommunicate OK [19:33:25]SAM_PROTO_GetShiftState done [19:33:25]FM_GetShiftState done [19:33:25]req_shift_opened done [19:33:25]requested_item shift.open_date is exist - process it [19:33:25]req_shift_open_date [19:33:25]req_shift_open_date done [19:33:25]produce_requested_data done [19:33:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192758,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:33:25]process_action_free close_receipt [19:33:25]json_value_free [19:33:25]json_value_free done [19:33:25]process_json_proto returns [19:33:25]Send response to host [19:33:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192758,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:33:25]free response buf [19:33:25]execute_script done [19:33:25]execute_script returns [19:33:25]free content buf [19:33:25]Sock 8.Close socket [19:33:25]Sock 8.Thread stoped [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:36]accept exits with 9 [19:37:36]New connection [19:37:36]New thread 3066658148 created [19:37:36]Thread 3066801508 joined [19:37:36]Waiting for new connection... [19:37:36] Sock 9.Parse request [19:37:36]Sock 9.Check first char [19:37:36]Sock 9.First char is OK [19:37:36]request: POST /json_proto HTTP/1.0 [19:37:36]Method: POST [19:37:36]URL: /json_proto [19:37:36]Method is POST - this is cgi request [19:37:36]url: /json_proto [19:37:36]query_string will be loaded in cgi processing [19:37:36]execute_cgi json_proto POST (null) [19:37:36]execute_cgi path=json_proto method=POST [19:37:36]POST find Content-Length [19:37:36]Host: 172.17.63.131:8080 [19:37:36]Content-Length: 681 [19:37:36]Content-Type: application/json [19:37:36] [19:37:36]POST finish read [19:37:36]Found Content-Length = 681 [19:37:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:36]execute_script... [19:37: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)32087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:36]POST & json_proto [19:37:36]process_json_proto [19:37:36]json parsed OK: [19:37:36]protocol is kg_v1.0 [19:37:36]action value=close_receipt [19:37:36]process_action close_receipt [19:37:36]cmd_close_receipt [19:37:36]MH_GetDate [19:37:36]Write to MH i2c: F0 00 00 E2 0D DE [19:37:36]Write i2c OK [19:37:36]MH_I2C_Read... [19:37:36]Read from MH i2c: F0 [19:37:36]MH_I2C_Read... [19:37:36]Read from MH i2c: F0 09 00 [19:37:36]MH_I2C_Read... [19:37:36]Read from MH i2c: F0 09 00 E2 0D 00 00 E8 1F 67 22 05 6E 64 4E [19:37:36]GetLastDocTimeStamp 1730144002 [19:37:36]current date 1730144256 [19:37:36]FM_GetShiftState [19:37:36]SAM_PROTO_GetShiftState [19:37:36]wFMCommunicate request_size=4 [19:37:36]MH_SAM_APDU [19:37:36]CAPDU: 80 13 01 00 [19:37:36]Write to MH i2c: E2 08 00 E3 0D 80 13 01 00 00 00 00 00 6D [19:37:36]Write i2c OK [19:37:36]MH_I2C_Read... [19:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:36]Read from MH i2c: E2 [19:37:36]MH_I2C_Read... [19:37:36]Read from MH i2c: E2 0E 00 [19:37:36]MH_I2C_Read... [19:37:36]Read from MH i2c: E2 0E 00 E3 0D 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 BD [19:37:36]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:37:36]wFMCommunicate OK [19:37:36]SAM_PROTO_GetShiftState done [19:37:36]FM_GetShiftState done [19:37:36]opened in 1730075620 [19:37:36]opened+sec_in_day 1730162020 [19:37:36]quantity*price = 100015 [19:37:36]sum+1 = 100017 [19:37:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 307 28.10.2024 19:37 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192759 ФПД: 11007997710505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T193736&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192759&fm=11007997710505&tin=02508201610067®Number=0000000000091776&sum=100000 [19:37:37]StoreToDocumentArchive [19:37:37]shift 543 fd 192759 [19:37:37]save to /storage/0543/doc_00192759 [19:37:37]save last doc name /storage/0543/doc_00192759 to /storage/kkm_last_doc_name [19:37:37]save OK [19:37:37]Clear old archive folders... [19:37:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:37:37]tlvbuf is 00F84CA0 [19:37:37]SAM_PROTO_ClearQueue [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 09 00 00 [19:37:37]Write to MH i2c: E2 08 00 F0 0D 80 09 00 00 00 00 00 00 6F [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 F0 0D 00 90 00 71 [19:37:37]RAPDU: 90 00 [19:37:37]wFMCommunicate OK [19:37:37]SAM_PROTO_ClearQueue done [19:37:37]KKMCreateOFDPacket [19:37:37]OFDProtocolAddRootSTLVToBuf [19:37:37]FM_MakeSignedData [19:37:37]FM_MakeSignedData [19:37:37]SAM_PROTO_SignData [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 0D 01 02 [19:37:37]Write to MH i2c: E2 08 00 F1 0D 80 0D 01 02 00 00 00 00 77 [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 F1 0D 00 90 00 72 [19:37:37]RAPDU: 90 00 [19:37:37]wFMCommunicate OK [19:37:37]wFMCommunicate request_size=255 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 00 E8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 F0 02 00 35 04 06 00 0A [19:37:37]Write to MH i2c: E2 02 01 F2 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 00 E8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 F0 02 00 35 04 06 00 0A 00 00 BB [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 F2 0D 00 90 00 73 [19:37:37]RAPDU: 90 00 [19:37:37]wFMCommunicate OK [19:37:37]wFMCommunicate request_size=10 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 0D 02 02 05 02 FF CB 10 A9 [19:37:37]Write to MH i2c: E2 0D 00 F3 0D 80 0D 02 02 05 00 02 FF CB 10 A9 00 00 09 [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 F3 0D 00 90 00 74 [19:37:37]RAPDU: 90 00 [19:37:37]wFMCommunicate OK [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 0D 03 02 [19:37:37]Write to MH i2c: E2 08 00 F4 0D 80 0D 03 02 00 00 00 00 7C [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 0B 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 0B 00 F4 0D 00 E8 28 65 60 20 46 6A E5 90 00 07 [19:37:37]RAPDU: E8 28 65 60 20 46 6A E5 90 00 [19:37:37]wFMCommunicate OK [19:37:37]SAM_PROTO_SignData done [19:37:37]FM_MakeSignedData done [19:37:37]CreateOFDProtocolMessage [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 11 00 00 [19:37:37]Write to MH i2c: E2 08 00 F5 0D 80 11 00 00 00 00 00 00 7C [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 17 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 17 00 F5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CF [19:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:37:37]wFMCommunicate OK [19:37:37]CreateOFDProtocolMessage done [19:37:37]OFDSenderStorePacket 192759 [19:37:37]StoreOFDPacket docnum=192759 [19:37:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5E E1 07 01 73 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 00 E8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 F0 02 00 35 04 06 00 0A 02 FF CB 10 A9 E8 28 65 60 20 46 6A E5 [19:37:37]CheckFolder [19:37:37]dirname=/storage/ofd_packets [19:37:37]CheckFolder done [19:37:37]ProducePacketName [19:37:37]name=ofd_packets/00192759 [19:37:37]NVStorageSaveData ofd_packets/00192759 [19:37:37]File name is /storage/ofd_packets/00192759 [19:37:37]Write 301 bytes [19:37:37]NVStorageSaveData done [19:37:37]OFDSenderStorePacket done [19:37:37]KKMCreateOFDPacket done [19:37:37]NVStorageSaveData kkm_last_timestamp [19:37:37]File name is /storage/kkm_last_timestamp [19:37:37]Write 4 bytes [19:37:37]NVStorageSaveData done [19:37:37]ExternCall_PrintAddStr [19:37:37]wPrintStart [19:37:37]Write to MH i2c: 01 00 00 F6 0D 03 [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: 01 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: 01 07 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: 01 07 00 F6 0D 00 00 00 00 00 FF 0F 18 [19:37:37]RasterBufferAndPrint [19:37:37]line Счет N : (1)32087 [19:37:37]line ИНН: 02508201610067 [19:37:37]line Контрольно-Кассовый Чек [19:37:37]line ПРОДАЖА [19:37:37]line ТРК (МРК, ГНК) : 21 [19:37:37]line Товар: 2710124130 [19:37:37]line Аи-92-К-5 [19:37:37]line 14.950 * 66.90 [19:37:37]line = 1000.16 [19:37:37]line НДС 12% НСП 1% [19:37:37]line > о реализуемом товаре [19:37:37]line ОКРУГЛЕНИЕ: -0.16 [19:37:37]line ИТОГО: 1000.00 [19:37:37]line Внесено: 1000.00 [19:37:37]line СДАЧА: 0.00 [19:37:37]line НСП 1% : 8.85 [19:37:37]line НДС 12% : 106.21 [19:37:37]line Наличными: 1000.00 [19:37:37]line Безнал.: 0.00 [19:37:37]line Место: АЗС № 170 "Партнер Нефть" [19:37:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:37:37]line СНО: Общий режим [19:37:37]line Чек 307 28.10.2024 19:37 [19:37:37]line Смена: 543 ФФД: 1.0 [19:37:37]line ЗНМ: 0300000110 [19:37:37]line РНМ: 0000000000091776 [19:37:37]line Версия ККМ: 001 [19:37:37]line ФМ: 0000000000871754 [19:37:37]line ФД: 192759 [19:37:37]line ФПД: 11007997710505 [19:37:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T193736&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192759&fm=11007997710505&tin=02508201610067®Number=0000000000091776&sum=100000 [19:37:38]OFD Sender: Processing packet 192759 [packets to send 75, broken 74] [19:37:38]ProducePacketName [19:37:38]name=ofd_packets/00192759 [19:37:38]OFD Sender: To server: pG, [19:37:38]CommunicateWithHost lk.salyk.kg:30040 [19:37:38]ConnectInit lk.salyk.kg [19:37:38]written 0, free lines is 4095 [19:37:38]Connected sock=10 [19:37:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5E E1 07 01 73 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 00 E8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 F0 02 00 35 04 06 00 0A 02 FF CB 10 A9 E8 28 65 60 20 46 6A E5 [19:37:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 78 51 47 00 B0 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 F0 02 00 F4 03 04 00 C3 8C 1F 67 B6 04 01 00 00 12 02 20 7E 4D A7 A8 D1 [19:37:38]CommunicateWithHost err = 0 [19:37:38]CheckOFDResponse [19:37:38]1017 (14) - 77093643461234 [19:37:38]1041 (16) - 0000000000871754 [19:37:38]1040 (4) - 192759 [19:37:38]1012 (4) - 28.10.2024 13:08 [19:37:38]1206 (1) - 0 [19:37:38]OFD Sender: Remove packet 192759 [19:37:38]ProducePacketName [19:37:38]name=ofd_packets/00192759 [19:37:38]NVStorageDeleteData [19:37:38]Write to MH i2c: 01 00 00 21 0E 2F [19:37:38]Write i2c OK [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: 01 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: 01 07 00 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: 01 07 00 21 0E 00 00 00 00 00 AD 0C EF [19:37:38]RasterBufferAndPrint [19:37:38]line [19:37:38]line [19:37:38]line [19:37:38]line [19:37:38]line [19:37:38]written 0, free lines is 3251 [19:37:38]MH_Cut [19:37:38]Write to MH i2c: D1 01 00 28 0E 01 08 [19:37:38]Write i2c OK [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: D1 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: D1 01 00 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: D1 01 00 28 0E 00 07 [19:37:38]Write to MH i2c: 01 00 00 29 0E 37 [19:37:38]Write i2c OK [19:37:38]MH_I2C_Read... [19:37:38]OFD Sender: No OFD packet to send [19:37:39]*** Cut start [19:37:39]*** Partial cut [19:37:39]*** CUTSNS_PIN = 1 [19:37:39]*** CUTSNS_PIN = 0 [19:37:39]*** Brake cut motor [19:37:39]Read from MH i2c: 01 [19:37:39]MH_I2C_Read... [19:37:39]*** Stop cut motor [19:37:39]*** Cut end [19:37:39]Read from MH i2c: 01 07 00 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: 01 07 00 29 0E 00 00 00 00 00 FF 0F 4C [19:37:39]process_action close_receipt done [19:37:39]requested_data is exist [19:37:39]produce_requested_data [19:37:39]requested_item fm.sn is exist - process it [19:37:39]wFMCommunicate request_size=4 [19:37:39]MH_SAM_APDU [19:37:39]CAPDU: 80 11 00 00 [19:37:39]Write to MH i2c: E2 08 00 2A 0E 80 11 00 00 00 00 00 00 B2 [19:37:39]Write i2c OK [19:37:39]MH_I2C_Read... [19:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:39]Read from MH i2c: E2 [19:37:39]MH_I2C_Read... [19:37:39]Read from MH i2c: E2 17 00 [19:37:39]MH_I2C_Read... [19:37:40]Read from MH i2c: E2 17 00 2A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 05 [19:37:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:37:40]wFMCommunicate OK [19:37:40]requested_item fd.num is exist - process it [19:37:40]SAM_PROTO_GetFieldsCounters [19:37:40]wFMCommunicate request_size=4 [19:37:40]MH_SAM_APDU [19:37:40]CAPDU: 80 13 00 00 [19:37:40]Write to MH i2c: E2 08 00 2B 0E 80 13 00 00 00 00 00 00 B5 [19:37:40]Write i2c OK [19:37:40]MH_I2C_Read... [19:37:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:40]Read from MH i2c: E2 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: E2 62 00 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: E2 62 00 2B 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F7 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [19:37:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F7 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:40]wFMCommunicate OK [19:37:40]SAM_PROTO_GetFieldsCounters done [19:37:40]requested_item shift.num is exist - process it [19:37:40]requested_item shift.opened is exist - process it [19:37:40]req_shift_opened [19:37:40]FM_GetShiftState [19:37:40]SAM_PROTO_GetShiftState [19:37:40]wFMCommunicate request_size=4 [19:37:40]MH_SAM_APDU [19:37:40]CAPDU: 80 13 01 00 [19:37:40]Write to MH i2c: E2 08 00 2C 0E 80 13 01 00 00 00 00 00 B7 [19:37:40]Write i2c OK [19:37:40]MH_I2C_Read... [19:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:40]Read from MH i2c: E2 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: E2 0E 00 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: E2 0E 00 2C 0E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 07 [19:37:40]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:37:40]wFMCommunicate OK [19:37:40]SAM_PROTO_GetShiftState done [19:37:40]FM_GetShiftState done [19:37:40]req_shift_opened done [19:37:40]requested_item shift.open_date is exist - process it [19:37:40]req_shift_open_date [19:37:40]req_shift_open_date done [19:37:40]produce_requested_data done [19:37:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192759,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:37:40]process_action_free close_receipt [19:37:40]json_value_free [19:37:40]json_value_free done [19:37:40]process_json_proto returns [19:37:40]Send response to host [19:37:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192759,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:37:40]free response buf [19:37:40]execute_script done [19:37:40]execute_script returns [19:37:40]free content buf [19:37:40]Sock 9.Close socket [19:37:40]Sock 9.Thread stoped [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:24]accept exits with 8 [19:41:24]New connection [19:41:24]New thread 3066801508 created [19:41:24]Thread 3066658148 joined [19:41:24]Waiting for new connection... [19:41:24] Sock 8.Parse request [19:41:24]Sock 8.Check first char [19:41:24]Sock 8.First char is OK [19:41:24]request: POST /json_proto HTTP/1.0 [19:41:24]Method: POST [19:41:24]URL: /json_proto [19:41:24]Method is POST - this is cgi request [19:41:24]url: /json_proto [19:41:24]query_string will be loaded in cgi processing [19:41:24]execute_cgi json_proto POST (null) [19:41:24]execute_cgi path=json_proto method=POST [19:41:24]POST find Content-Length [19:41:24]Host: 172.17.63.131:8080 [19:41:24]Content-Length: 676 [19:41:24]Content-Type: application/json [19:41:24] [19:41:24]POST finish read [19:41:24]Found Content-Length = 676 [19:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:24]execute_script... [19:41:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:24]POST & json_proto [19:41:24]process_json_proto [19:41:24]json parsed OK: [19:41:24]protocol is kg_v1.0 [19:41:24]action value=close_receipt [19:41:24]process_action close_receipt [19:41:24]cmd_close_receipt [19:41:24]MH_GetDate [19:41:24]Write to MH i2c: F0 00 00 2D 0E 2A [19:41:24]Write i2c OK [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: F0 [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: F0 09 00 [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: F0 09 00 2D 0E 00 E5 E8 1F 67 22 05 6E 64 7F [19:41:24]GetLastDocTimeStamp 1730144256 [19:41:24]current date 1730144485 [19:41:24]FM_GetShiftState [19:41:24]SAM_PROTO_GetShiftState [19:41:24]wFMCommunicate request_size=4 [19:41:24]MH_SAM_APDU [19:41:24]CAPDU: 80 13 01 00 [19:41:24]Write to MH i2c: E2 08 00 2E 0E 80 13 01 00 00 00 00 00 B9 [19:41:24]Write i2c OK [19:41:24]MH_I2C_Read... [19:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:24]Read from MH i2c: E2 [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: E2 0E 00 [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: E2 0E 00 2E 0E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 09 [19:41:24]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:41:24]wFMCommunicate OK [19:41:24]SAM_PROTO_GetShiftState done [19:41:24]FM_GetShiftState done [19:41:24]opened in 1730075620 [19:41:24]opened+sec_in_day 1730162020 [19:41:24]quantity*price = 30038 [19:41:24]sum+1 = 30039 [19:41:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 308 28.10.2024 19:41 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192760 ФПД: 106004054297269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T194125&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192760&fm=106004054297269&tin=02508201610067®Number=0000000000091776&sum=30000 [19:41:25]StoreToDocumentArchive [19:41:25]shift 543 fd 192760 [19:41:25]save to /storage/0543/doc_00192760 [19:41:25]save last doc name /storage/0543/doc_00192760 to /storage/kkm_last_doc_name [19:41:25]save OK [19:41:25]Clear old archive folders... [19:41:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:41:25]tlvbuf is 00F9CF50 [19:41:25]SAM_PROTO_ClearQueue [19:41:25]wFMCommunicate request_size=4 [19:41:25]MH_SAM_APDU [19:41:25]CAPDU: 80 09 00 00 [19:41:25]Write to MH i2c: E2 08 00 3B 0E 80 09 00 00 00 00 00 00 BB [19:41:25]Write i2c OK [19:41:25]MH_I2C_Read... [19:41:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:25]Read from MH i2c: E2 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 03 00 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 03 00 3B 0E 00 90 00 BD [19:41:25]RAPDU: 90 00 [19:41:25]wFMCommunicate OK [19:41:25]SAM_PROTO_ClearQueue done [19:41:25]KKMCreateOFDPacket [19:41:25]OFDProtocolAddRootSTLVToBuf [19:41:25]FM_MakeSignedData [19:41:25]FM_MakeSignedData [19:41:25]SAM_PROTO_SignData [19:41:25]wFMCommunicate request_size=4 [19:41:25]MH_SAM_APDU [19:41:25]CAPDU: 80 0D 01 02 [19:41:25]Write to MH i2c: E2 08 00 3C 0E 80 0D 01 02 00 00 00 00 C3 [19:41:25]Write i2c OK [19:41:25]MH_I2C_Read... [19:41:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:25]Read from MH i2c: E2 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 03 00 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 03 00 3C 0E 00 90 00 BE [19:41:25]RAPDU: 90 00 [19:41:25]wFMCommunicate OK [19:41:25]wFMCommunicate request_size=255 [19:41:25]MH_SAM_APDU [19:41: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 E5 E8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 F0 02 00 35 04 06 00 60 [19:41:25]Write to MH i2c: E2 02 01 3D 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 E5 E8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 F0 02 00 35 04 06 00 60 00 00 3E [19:41:25]Write i2c OK [19:41:25]MH_I2C_Read... [19:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:25]Read from MH i2c: E2 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 03 00 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 03 00 3D 0E 00 90 00 BF [19:41:25]RAPDU: 90 00 [19:41:25]wFMCommunicate OK [19:41:25]wFMCommunicate request_size=10 [19:41:25]MH_SAM_APDU [19:41:25]CAPDU: 80 0D 02 02 05 68 FE 00 4A B5 [19:41:25]Write to MH i2c: E2 0D 00 3E 0E 80 0D 02 02 05 00 68 FE 00 4A B5 00 00 35 [19:41:25]Write i2c OK [19:41:25]MH_I2C_Read... [19:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:25]Read from MH i2c: E2 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 03 00 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 03 00 3E 0E 00 90 00 C0 [19:41:25]RAPDU: 90 00 [19:41:25]wFMCommunicate OK [19:41:25]wFMCommunicate request_size=4 [19:41:25]MH_SAM_APDU [19:41:25]CAPDU: 80 0D 03 02 [19:41:25]Write to MH i2c: E2 08 00 3F 0E 80 0D 03 02 00 00 00 00 C8 [19:41:25]Write i2c OK [19:41:25]MH_I2C_Read... [19:41:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:25]Read from MH i2c: E2 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 0B 00 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 0B 00 3F 0E 00 68 D5 B0 0B 05 DC 6B A4 90 00 B1 [19:41:25]RAPDU: 68 D5 B0 0B 05 DC 6B A4 90 00 [19:41:25]wFMCommunicate OK [19:41:25]SAM_PROTO_SignData done [19:41:25]FM_MakeSignedData done [19:41:25]CreateOFDProtocolMessage [19:41:25]wFMCommunicate request_size=4 [19:41:25]MH_SAM_APDU [19:41:25]CAPDU: 80 11 00 00 [19:41:25]Write to MH i2c: E2 08 00 40 0E 80 11 00 00 00 00 00 00 C8 [19:41:25]Write i2c OK [19:41:25]MH_I2C_Read... [19:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:25]Read from MH i2c: E2 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 17 00 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: E2 17 00 40 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1B [19:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:41:25]wFMCommunicate OK [19:41:25]CreateOFDProtocolMessage done [19:41:25]OFDSenderStorePacket 192760 [19:41:25]StoreOFDPacket docnum=192760 [19:41:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4F A6 07 01 A3 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 E5 E8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 F0 02 00 35 04 06 00 60 68 FE 00 4A B5 68 D5 B0 0B 05 DC 6B A4 [19:41:25]CheckFolder [19:41:25]dirname=/storage/ofd_packets [19:41:25]CheckFolder done [19:41:25]ProducePacketName [19:41:25]name=ofd_packets/00192760 [19:41:25]NVStorageSaveData ofd_packets/00192760 [19:41:25]File name is /storage/ofd_packets/00192760 [19:41:25]Write 301 bytes [19:41:25]NVStorageSaveData done [19:41:25]OFDSenderStorePacket done [19:41:25]KKMCreateOFDPacket done [19:41:25]NVStorageSaveData kkm_last_timestamp [19:41:25]File name is /storage/kkm_last_timestamp [19:41:25]Write 4 bytes [19:41:25]NVStorageSaveData done [19:41:25]ExternCall_PrintAddStr [19:41:25]wPrintStart [19:41:25]Write to MH i2c: 01 00 00 41 0E 4F [19:41:25]Write i2c OK [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: 01 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: 01 07 00 [19:41:25]MH_I2C_Read... [19:41:25]Read from MH i2c: 01 07 00 41 0E 00 00 00 00 00 FF 0F 64 [19:41:25]RasterBufferAndPrint [19:41:25]line Счет N : (1)32089 [19:41:25]line ИНН: 02508201610067 [19:41:25]line Контрольно-Кассовый Чек [19:41:25]line ПРОДАЖА [19:41:25]line ТРК (МРК, ГНК) : 12 [19:41:25]line Товар: 2710124130 [19:41:25]line Аи-92-К-5 [19:41:25]line 4.490 * 66.90 [19:41:25]line = 300.38 [19:41:25]line НДС 12% НСП 1% [19:41:25]line > о реализуемом товаре [19:41:25]line ОКРУГЛЕНИЕ: -0.38 [19:41:25]line ИТОГО: 300.00 [19:41:25]line Внесено: 300.00 [19:41:25]line СДАЧА: 0.00 [19:41:25]line НСП 1% : 2.66 [19:41:25]line НДС 12% : 31.90 [19:41:25]line Наличными: 300.00 [19:41:25]line Безнал.: 0.00 [19:41:25]line Место: АЗС № 170 "Партнер Нефть" [19:41:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:41:25]line СНО: Общий режим [19:41:25]line Чек 308 28.10.2024 19:41 [19:41:25]line Смена: 543 ФФД: 1.0 [19:41:25]line ЗНМ: 0300000110 [19:41:25]line РНМ: 0000000000091776 [19:41:25]line Версия ККМ: 001 [19:41:25]line ФМ: 0000000000871754 [19:41:25]line ФД: 192760 [19:41:25]line ФПД: 106004054297269 [19:41:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T194125&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192760&fm=106004054297269&tin=02508201610067®Number=0000000000091776&sum=30000 [19:41:26]OFD Sender: Processing packet 192760 [packets to send 75, broken 74] [19:41:26]ProducePacketName [19:41:26]name=ofd_packets/00192760 [19:41:26]OFD Sender: To server: pG, [19:41:26]CommunicateWithHost lk.salyk.kg:30040 [19:41:26]ConnectInit lk.salyk.kg [19:41:26]written 0, free lines is 4095 [19:41:26]Connected sock=10 [19:41:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4F A6 07 01 A3 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 E5 E8 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 F0 02 00 35 04 06 00 60 68 FE 00 4A B5 68 D5 B0 0B 05 DC 6B A4 [19:41:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A5 68 47 00 E3 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 F0 02 00 F4 03 04 00 A8 8D 1F 67 B6 04 01 00 00 E8 8C C3 B5 80 4E 54 41 [19:41:26]CommunicateWithHost err = 0 [19:41:26]CheckOFDResponse [19:41:26]1017 (14) - 77093643461234 [19:41:26]1041 (16) - 0000000000871754 [19:41:26]1040 (4) - 192760 [19:41:26]1012 (4) - 28.10.2024 13:12 [19:41:26]1206 (1) - 0 [19:41:26]OFD Sender: Remove packet 192760 [19:41:26]ProducePacketName [19:41:26]name=ofd_packets/00192760 [19:41:26]NVStorageDeleteData [19:41:26]Write to MH i2c: 01 00 00 6C 0E 7A [19:41:26]Write i2c OK [19:41:26]MH_I2C_Read... [19:41:26]Read from MH i2c: 01 [19:41:26]MH_I2C_Read... [19:41:26]Read from MH i2c: 01 07 00 [19:41:26]MH_I2C_Read... [19:41:26]Read from MH i2c: 01 07 00 6C 0E 00 00 00 00 00 B2 0C 3F [19:41:26]RasterBufferAndPrint [19:41:26]line [19:41:26]line [19:41:26]line [19:41:26]line [19:41:26]line [19:41:26]written 0, free lines is 3257 [19:41:26]MH_Cut [19:41:26]Write to MH i2c: D1 01 00 73 0E 01 53 [19:41:26]Write i2c OK [19:41:26]MH_I2C_Read... [19:41:26]Read from MH i2c: D1 [19:41:26]MH_I2C_Read... [19:41:26]Read from MH i2c: D1 01 00 [19:41:26]MH_I2C_Read... [19:41:26]Read from MH i2c: D1 01 00 73 0E 00 52 [19:41:26]Write to MH i2c: 01 00 00 74 0E 82 [19:41:26]Write i2c OK [19:41:26]MH_I2C_Read... [19:41:27]OFD Sender: No OFD packet to send [19:41:27]*** Cut start [19:41:27]*** Partial cut [19:41:27]*** CUTSNS_PIN = 1 [19:41:27]*** CUTSNS_PIN = 0 [19:41:27]*** Brake cut motor [19:41:28]Read from MH i2c: 01 [19:41:28]MH_I2C_Read... [19:41:28]*** Stop cut motor [19:41:28]*** Cut end [19:41:28]Read from MH i2c: 01 07 00 [19:41:28]MH_I2C_Read... [19:41:28]Read from MH i2c: 01 07 00 74 0E 00 00 00 00 00 FF 0F 97 [19:41:28]process_action close_receipt done [19:41:28]requested_data is exist [19:41:28]produce_requested_data [19:41:28]requested_item fm.sn is exist - process it [19:41:28]wFMCommunicate request_size=4 [19:41:28]MH_SAM_APDU [19:41:28]CAPDU: 80 11 00 00 [19:41:28]Write to MH i2c: E2 08 00 75 0E 80 11 00 00 00 00 00 00 FD [19:41:28]Write i2c OK [19:41:28]MH_I2C_Read... [19:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:28]Read from MH i2c: E2 [19:41:28]MH_I2C_Read... [19:41:28]Read from MH i2c: E2 17 00 [19:41:28]MH_I2C_Read... [19:41:28]Read from MH i2c: E2 17 00 75 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 50 [19:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:41:28]wFMCommunicate OK [19:41:28]requested_item fd.num is exist - process it [19:41:28]SAM_PROTO_GetFieldsCounters [19:41:28]wFMCommunicate request_size=4 [19:41:28]MH_SAM_APDU [19:41:28]CAPDU: 80 13 00 00 [19:41:28]Write to MH i2c: E2 08 00 76 0E 80 13 00 00 00 00 00 00 00 [19:41:28]Write i2c OK [19:41:28]MH_I2C_Read... [19:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:28]Read from MH i2c: E2 [19:41:28]MH_I2C_Read... [19:41:28]Read from MH i2c: E2 62 00 [19:41:28]MH_I2C_Read... [19:41:28]Read from MH i2c: E2 62 00 76 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F8 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [19:41:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F8 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:28]wFMCommunicate OK [19:41:28]SAM_PROTO_GetFieldsCounters done [19:41:28]requested_item shift.num is exist - process it [19:41:28]requested_item shift.opened is exist - process it [19:41:28]req_shift_opened [19:41:28]FM_GetShiftState [19:41:28]SAM_PROTO_GetShiftState [19:41:28]wFMCommunicate request_size=4 [19:41:28]MH_SAM_APDU [19:41:28]CAPDU: 80 13 01 00 [19:41:28]Write to MH i2c: E2 08 00 77 0E 80 13 01 00 00 00 00 00 02 [19:41:28]Write i2c OK [19:41:28]MH_I2C_Read... [19:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:28]Read from MH i2c: E2 [19:41:28]MH_I2C_Read... [19:41:28]Read from MH i2c: E2 0E 00 [19:41:28]MH_I2C_Read... [19:41:28]Read from MH i2c: E2 0E 00 77 0E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 52 [19:41:28]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:41:28]wFMCommunicate OK [19:41:28]SAM_PROTO_GetShiftState done [19:41:28]FM_GetShiftState done [19:41:28]req_shift_opened done [19:41:28]requested_item shift.open_date is exist - process it [19:41:28]req_shift_open_date [19:41:28]req_shift_open_date done [19:41:28]produce_requested_data done [19:41:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192760,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:41:28]process_action_free close_receipt [19:41:28]json_value_free [19:41:28]json_value_free done [19:41:28]process_json_proto returns [19:41:28]Send response to host [19:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192760,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:41:28]free response buf [19:41:28]execute_script done [19:41:28]execute_script returns [19:41:28]free content buf [19:41:28]Sock 8.Close socket [19:41:28]Sock 8.Thread stoped [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:04]accept exits with 9 [19:42:04]New connection [19:42:04]New thread 3066658148 created [19:42:04]Thread 3066801508 joined [19:42:04]Waiting for new connection... [19:42:04] Sock 9.Parse request [19:42:04]Sock 9.Check first char [19:42:04]Sock 9.First char is OK [19:42:04]request: POST /json_proto HTTP/1.0 [19:42:04]Method: POST [19:42:04]URL: /json_proto [19:42:04]Method is POST - this is cgi request [19:42:04]url: /json_proto [19:42:04]query_string will be loaded in cgi processing [19:42:04]execute_cgi json_proto POST (null) [19:42:04]execute_cgi path=json_proto method=POST [19:42:04]POST find Content-Length [19:42:04]Host: 172.17.63.131:8080 [19:42:04]Content-Length: 862 [19:42:04]Content-Type: application/json [19:42:04] [19:42:04]POST finish read [19:42:04]Found Content-Length = 862 [19:42:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:04]execute_script... [19:42: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)32090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:04]POST & json_proto [19:42:04]process_json_proto [19:42:04]json parsed OK: [19:42:04]protocol is kg_v1.0 [19:42:04]action value=close_receipt [19:42:04]process_action close_receipt [19:42:04]cmd_close_receipt [19:42:04]MH_GetDate [19:42:04]Write to MH i2c: F0 00 00 78 0E 75 [19:42:04]Write i2c OK [19:42:04]MH_I2C_Read... [19:42:04]Read from MH i2c: F0 [19:42:04]MH_I2C_Read... [19:42:04]Read from MH i2c: F0 09 00 [19:42:04]MH_I2C_Read... [19:42:04]Read from MH i2c: F0 09 00 78 0E 00 0D E9 1F 67 22 05 6E 64 F3 [19:42:04]GetLastDocTimeStamp 1730144485 [19:42:04]current date 1730144525 [19:42:04]FM_GetShiftState [19:42:04]SAM_PROTO_GetShiftState [19:42:04]wFMCommunicate request_size=4 [19:42:04]MH_SAM_APDU [19:42:04]CAPDU: 80 13 01 00 [19:42:04]Write to MH i2c: E2 08 00 79 0E 80 13 01 00 00 00 00 00 04 [19:42:04]Write i2c OK [19:42:04]MH_I2C_Read... [19:42:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:04]Read from MH i2c: E2 [19:42:04]MH_I2C_Read... [19:42:04]Read from MH i2c: E2 0E 00 [19:42:04]MH_I2C_Read... [19:42:04]Read from MH i2c: E2 0E 00 79 0E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 54 [19:42:04]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:42:04]wFMCommunicate OK [19:42:04]SAM_PROTO_GetShiftState done [19:42:04]FM_GetShiftState done [19:42:04]opened in 1730075620 [19:42:04]opened+sec_in_day 1730162020 [19:42:04]quantity*price = 30038 [19:42:04]sum+1 = 30039 [19:42:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 309 28.10.2024 19:42 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192761 ФПД: 40917070499313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T194205&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192761&fm=40917070499313&tin=02508201610067®Number=0000000000091776&sum=30038 [19:42:05]StoreToDocumentArchive [19:42:05]shift 543 fd 192761 [19:42:05]save to /storage/0543/doc_00192761 [19:42:05]save last doc name /storage/0543/doc_00192761 to /storage/kkm_last_doc_name [19:42:05]save OK [19:42:05]Clear old archive folders... [19:42:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:42:05]tlvbuf is 00F839F0 [19:42:05]SAM_PROTO_ClearQueue [19:42:05]wFMCommunicate request_size=4 [19:42:05]MH_SAM_APDU [19:42:05]CAPDU: 80 09 00 00 [19:42:05]Write to MH i2c: E2 08 00 86 0E 80 09 00 00 00 00 00 00 06 [19:42:05]Write i2c OK [19:42:05]MH_I2C_Read... [19:42:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:05]Read from MH i2c: E2 [19:42:05]MH_I2C_Read... [19:42:05]Read from MH i2c: E2 03 00 [19:42:05]MH_I2C_Read... [19:42:05]Read from MH i2c: E2 03 00 86 0E 00 90 00 08 [19:42:05]RAPDU: 90 00 [19:42:05]wFMCommunicate OK [19:42:05]SAM_PROTO_ClearQueue done [19:42:05]KKMCreateOFDPacket [19:42:05]OFDProtocolAddRootSTLVToBuf [19:42:05]FM_MakeSignedData [19:42:05]FM_MakeSignedData [19:42:05]SAM_PROTO_SignData [19:42:05]wFMCommunicate request_size=4 [19:42:05]MH_SAM_APDU [19:42:05]CAPDU: 80 0D 01 02 [19:42:05]Write to MH i2c: E2 08 00 87 0E 80 0D 01 02 00 00 00 00 0E [19:42:05]Write i2c OK [19:42:05]MH_I2C_Read... [19:42:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:05]Read from MH i2c: E2 [19:42:05]MH_I2C_Read... [19:42:05]Read from MH i2c: E2 03 00 [19:42:05]MH_I2C_Read... [19:42:05]Read from MH i2c: E2 03 00 87 0E 00 90 00 09 [19:42:05]RAPDU: 90 00 [19:42:05]wFMCommunicate OK [19:42:05]wFMCommunicate request_size=255 [19:42:05]MH_SAM_APDU [19:42: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 0D E9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 F0 02 00 35 04 06 00 25 [19:42:05]Write to MH i2c: E2 02 01 88 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 0D E9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 F0 02 00 35 04 06 00 25 00 00 C5 [19:42:05]Write i2c OK [19:42:05]MH_I2C_Read... [19:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:05]Read from MH i2c: E2 [19:42:05]MH_I2C_Read... [19:42:05]Read from MH i2c: E2 03 00 [19:42:05]MH_I2C_Read... [19:42:05]Read from MH i2c: E2 03 00 88 0E 00 90 00 0A [19:42:05]RAPDU: 90 00 [19:42:05]wFMCommunicate OK [19:42:05]wFMCommunicate request_size=10 [19:42:05]MH_SAM_APDU [19:42:05]CAPDU: 80 0D 02 02 05 36 BF 73 CD F1 [19:42:05]Write to MH i2c: E2 0D 00 89 0E 80 0D 02 02 05 00 36 BF 73 CD F1 00 00 41 [19:42:05]Write i2c OK [19:42:05]MH_I2C_Read... [19:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:05]Read from MH i2c: E2 [19:42:05]MH_I2C_Read... [19:42:05]Read from MH i2c: E2 03 00 [19:42:05]MH_I2C_Read... [19:42:05]Read from MH i2c: E2 03 00 89 0E 00 90 00 0B [19:42:05]RAPDU: 90 00 [19:42:05]wFMCommunicate OK [19:42:05]wFMCommunicate request_size=4 [19:42:05]MH_SAM_APDU [19:42:05]CAPDU: 80 0D 03 02 [19:42:05]Write to MH i2c: E2 08 00 8A 0E 80 0D 03 02 00 00 00 00 13 [19:42:05]Write i2c OK [19:42:05]MH_I2C_Read... [19:42:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:06]Read from MH i2c: E2 [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: E2 0B 00 [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: E2 0B 00 8A 0E 00 BA AC AF C3 39 28 33 14 90 00 94 [19:42:06]RAPDU: BA AC AF C3 39 28 33 14 90 00 [19:42:06]wFMCommunicate OK [19:42:06]SAM_PROTO_SignData done [19:42:06]FM_MakeSignedData done [19:42:06]CreateOFDProtocolMessage [19:42:06]wFMCommunicate request_size=4 [19:42:06]MH_SAM_APDU [19:42:06]CAPDU: 80 11 00 00 [19:42:06]Write to MH i2c: E2 08 00 8B 0E 80 11 00 00 00 00 00 00 13 [19:42:06]Write i2c OK [19:42:06]MH_I2C_Read... [19:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:06]Read from MH i2c: E2 [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: E2 17 00 [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: E2 17 00 8B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 66 [19:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:42:06]wFMCommunicate OK [19:42:06]CreateOFDProtocolMessage done [19:42:06]OFDSenderStorePacket 192761 [19:42:06]StoreOFDPacket docnum=192761 [19:42:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 1A 07 01 97 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 0D E9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 F0 02 00 35 04 06 00 25 36 BF 73 CD F1 BA AC AF C3 39 28 33 14 [19:42:06]CheckFolder [19:42:06]dirname=/storage/ofd_packets [19:42:06]CheckFolder done [19:42:06]ProducePacketName [19:42:06]name=ofd_packets/00192761 [19:42:06]NVStorageSaveData ofd_packets/00192761 [19:42:06]File name is /storage/ofd_packets/00192761 [19:42:06]Write 301 bytes [19:42:06]NVStorageSaveData done [19:42:06]OFDSenderStorePacket done [19:42:06]KKMCreateOFDPacket done [19:42:06]NVStorageSaveData kkm_last_timestamp [19:42:06]File name is /storage/kkm_last_timestamp [19:42:06]Write 4 bytes [19:42:06]NVStorageSaveData done [19:42:06]ExternCall_PrintAddStr [19:42:06]wPrintStart [19:42:06]Write to MH i2c: 01 00 00 8C 0E 9A [19:42:06]Write i2c OK [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: 01 [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: 01 07 00 [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: 01 07 00 8C 0E 00 00 00 00 00 FF 0F AF [19:42:06]RasterBufferAndPrint [19:42:06]line Счет N : (1)32090 [19:42:06]line ИНН: 02508201610067 [19:42:06]line Контрольно-Кассовый Чек [19:42:06]line ПРОДАЖА [19:42:06]line ТРК (МРК, ГНК) : 21 [19:42:06]line Товар: 2710124130 [19:42:06]line Аи-92-К-5 [19:42:06]line 4.490 * 66.90 [19:42:06]line = 300.38 [19:42:06]line НДС 12% НСП 1% [19:42:06]line > о реализуемом товаре [19:42:06]line ИТОГО: 300.38 [19:42:06]line НСП 1% : 2.66 [19:42:06]line НДС 12% : 31.90 [19:42:06]line Наличными: 0.00 [19:42:06]line Безнал.: 300.38 [19:42:06]line Место: АЗС № 170 "Партнер Нефть" [19:42:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:42:06]line СНО: Общий режим [19:42:06]line Чек 309 28.10.2024 19:42 [19:42:06]line Смена: 543 ФФД: 1.0 [19:42:06]line ЗНМ: 0300000110 [19:42:06]line РНМ: 0000000000091776 [19:42:06]line Версия ККМ: 001 [19:42:06]line Платежная система: Кыргызкоммерцбанк [19:42:06]line ФМ: 0000000000871754 [19:42:06]line ФД: 192761 [19:42:06]line ФПД: 40917070499313 [19:42:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T194205&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192761&fm=40917070499313&tin=02508201610067®Number=0000000000091776&sum=30038 [19:42:06]written 0, free lines is 4095 [19:42:06]OFD Sender: Processing packet 192761 [packets to send 75, broken 74] [19:42:06]ProducePacketName [19:42:06]name=ofd_packets/00192761 [19:42:06]OFD Sender: To server: pG, [19:42:06]CommunicateWithHost lk.salyk.kg:30040 [19:42:06]ConnectInit lk.salyk.kg [19:42:06]Connected sock=8 [19:42:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 42 1A 07 01 97 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 0D E9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 F0 02 00 35 04 06 00 25 36 BF 73 CD F1 BA AC AF C3 39 28 33 14 [19:42:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B7 A1 47 00 64 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 F0 02 00 F4 03 04 00 D0 8D 1F 67 B6 04 01 00 00 4C 0B 81 89 E6 19 8E 15 [19:42:06]CommunicateWithHost err = 0 [19:42:06]CheckOFDResponse [19:42:06]1017 (14) - 77093643461234 [19:42:06]1041 (16) - 0000000000871754 [19:42:06]1040 (4) - 192761 [19:42:06]1012 (4) - 28.10.2024 13:12 [19:42:06]1206 (1) - 0 [19:42:06]OFD Sender: Remove packet 192761 [19:42:06]ProducePacketName [19:42:06]name=ofd_packets/00192761 [19:42:06]NVStorageDeleteData [19:42:06]Write to MH i2c: 01 00 00 B6 0E C4 [19:42:06]Write i2c OK [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: 01 [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: 01 07 00 [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: 01 07 00 B6 0E 00 00 00 00 00 D4 0C AB [19:42:06]RasterBufferAndPrint [19:42:06]line [19:42:06]line [19:42:06]line [19:42:06]line [19:42:06]line [19:42:06]written 0, free lines is 3289 [19:42:06]MH_Cut [19:42:06]Write to MH i2c: D1 01 00 BD 0E 01 9D [19:42:06]Write i2c OK [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: D1 [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: D1 01 00 [19:42:06]MH_I2C_Read... [19:42:06]Read from MH i2c: D1 01 00 BD 0E 00 9C [19:42:06]Write to MH i2c: 01 00 00 BE 0E CC [19:42:06]Write i2c OK [19:42:06]MH_I2C_Read... [19:42:07]OFD Sender: No OFD packet to send [19:42:07]*** Cut start [19:42:07]*** Partial cut [19:42:07]*** CUTSNS_PIN = 1 [19:42:07]*** CUTSNS_PIN = 0 [19:42:07]*** Brake cut motor [19:42:08]Read from MH i2c: 01 [19:42:08]MH_I2C_Read... [19:42:08]*** Stop cut motor [19:42:08]*** Cut end [19:42:08]Read from MH i2c: 01 07 00 [19:42:08]MH_I2C_Read... [19:42:08]Read from MH i2c: 01 07 00 BE 0E 00 00 00 00 00 FF 0F E1 [19:42:08]process_action close_receipt done [19:42:08]requested_data is exist [19:42:08]produce_requested_data [19:42:08]requested_item fm.sn is exist - process it [19:42:08]wFMCommunicate request_size=4 [19:42:08]MH_SAM_APDU [19:42:08]CAPDU: 80 11 00 00 [19:42:08]Write to MH i2c: E2 08 00 BF 0E 80 11 00 00 00 00 00 00 47 [19:42:08]Write i2c OK [19:42:08]MH_I2C_Read... [19:42:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:08]Read from MH i2c: E2 [19:42:08]MH_I2C_Read... [19:42:08]Read from MH i2c: E2 17 00 [19:42:08]MH_I2C_Read... [19:42:08]Read from MH i2c: E2 17 00 BF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9A [19:42:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:42:08]wFMCommunicate OK [19:42:08]requested_item fd.num is exist - process it [19:42:08]SAM_PROTO_GetFieldsCounters [19:42:08]wFMCommunicate request_size=4 [19:42:08]MH_SAM_APDU [19:42:08]CAPDU: 80 13 00 00 [19:42:08]Write to MH i2c: E2 08 00 C0 0E 80 13 00 00 00 00 00 00 4A [19:42:08]Write i2c OK [19:42:08]MH_I2C_Read... [19:42:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:08]Read from MH i2c: E2 [19:42:08]MH_I2C_Read... [19:42:08]Read from MH i2c: E2 62 00 [19:42:08]MH_I2C_Read... [19:42:08]Read from MH i2c: E2 62 00 C0 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F9 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [19:42:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F9 F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:08]wFMCommunicate OK [19:42:08]SAM_PROTO_GetFieldsCounters done [19:42:08]requested_item shift.num is exist - process it [19:42:08]requested_item shift.opened is exist - process it [19:42:08]req_shift_opened [19:42:08]FM_GetShiftState [19:42:08]SAM_PROTO_GetShiftState [19:42:08]wFMCommunicate request_size=4 [19:42:08]MH_SAM_APDU [19:42:08]CAPDU: 80 13 01 00 [19:42:08]Write to MH i2c: E2 08 00 C1 0E 80 13 01 00 00 00 00 00 4C [19:42:08]Write i2c OK [19:42:08]MH_I2C_Read... [19:42:08]Read from MH i2c: E2 [19:42:08]MH_I2C_Read... [19:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:08]Read from MH i2c: E2 0E 00 [19:42:08]MH_I2C_Read... [19:42:08]Read from MH i2c: E2 0E 00 C1 0E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 9C [19:42:08]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:42:08]wFMCommunicate OK [19:42:08]SAM_PROTO_GetShiftState done [19:42:08]FM_GetShiftState done [19:42:08]req_shift_opened done [19:42:08]requested_item shift.open_date is exist - process it [19:42:08]req_shift_open_date [19:42:08]req_shift_open_date done [19:42:08]produce_requested_data done [19:42:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192761,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:42:08]process_action_free close_receipt [19:42:08]json_value_free [19:42:08]json_value_free done [19:42:08]process_json_proto returns [19:42:08]Send response to host [19:42:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192761,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:42:08]free response buf [19:42:08]execute_script done [19:42:08]execute_script returns [19:42:08]free content buf [19:42:08]Sock 9.Close socket [19:42:08]Sock 9.Thread stoped [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:06]accept exits with 10 [19:49:06]New connection [19:49:06]New thread 3066801508 created [19:49:06]Thread 3066658148 joined [19:49:06]Waiting for new connection... [19:49:06] Sock 10.Parse request [19:49:06]Sock 10.Check first char [19:49:06]Sock 10.First char is OK [19:49:06]request: POST /json_proto HTTP/1.0 [19:49:06]Method: POST [19:49:06]URL: /json_proto [19:49:06]Method is POST - this is cgi request [19:49:06]url: /json_proto [19:49:06]query_string will be loaded in cgi processing [19:49:06]execute_cgi json_proto POST (null) [19:49:06]execute_cgi path=json_proto method=POST [19:49:06]POST find Content-Length [19:49:06]Host: 172.17.63.131:8080 [19:49:06]Content-Length: 676 [19:49:06]Content-Type: application/json [19:49:06] [19:49:06]POST finish read [19:49:06]Found Content-Length = 676 [19:49:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:06]execute_script... [19:49:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:06]POST & json_proto [19:49:06]process_json_proto [19:49:06]json parsed OK: [19:49:06]protocol is kg_v1.0 [19:49:06]action value=close_receipt [19:49:06]process_action close_receipt [19:49:06]cmd_close_receipt [19:49:06]MH_GetDate [19:49:06]Write to MH i2c: F0 00 00 C2 0E BF [19:49:06]Write i2c OK [19:49:06]MH_I2C_Read... [19:49:06]Read from MH i2c: F0 [19:49:06]MH_I2C_Read... [19:49:06]Read from MH i2c: F0 09 00 [19:49:06]MH_I2C_Read... [19:49:06]Read from MH i2c: F0 09 00 C2 0E 00 B3 EA 1F 67 22 05 6E 64 E4 [19:49:06]GetLastDocTimeStamp 1730144525 [19:49:06]current date 1730144947 [19:49:06]FM_GetShiftState [19:49:06]SAM_PROTO_GetShiftState [19:49:06]wFMCommunicate request_size=4 [19:49:06]MH_SAM_APDU [19:49:06]CAPDU: 80 13 01 00 [19:49:06]Write to MH i2c: E2 08 00 C3 0E 80 13 01 00 00 00 00 00 4E [19:49:06]Write i2c OK [19:49:06]MH_I2C_Read... [19:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:06]Read from MH i2c: E2 [19:49:06]MH_I2C_Read... [19:49:06]Read from MH i2c: E2 0E 00 [19:49:06]MH_I2C_Read... [19:49:06]Read from MH i2c: E2 0E 00 C3 0E 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 9E [19:49:06]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:49:06]wFMCommunicate OK [19:49:06]SAM_PROTO_GetShiftState done [19:49:06]FM_GetShiftState done [19:49:06]opened in 1730075620 [19:49:06]opened+sec_in_day 1730162020 [19:49:06]quantity*price = 50041 [19:49:06]sum+1 = 50042 [19:49:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 310 28.10.2024 19:49 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192762 ФПД: 217284326881502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T194907&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192762&fm=217284326881502&tin=02508201610067®Number=0000000000091776&sum=50000 [19:49:07]StoreToDocumentArchive [19:49:07]shift 543 fd 192762 [19:49:07]save to /storage/0543/doc_00192762 [19:49:07]save last doc name /storage/0543/doc_00192762 to /storage/kkm_last_doc_name [19:49:07]save OK [19:49:07]Clear old archive folders... [19:49:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:49:07]tlvbuf is 00FACFF0 [19:49:07]SAM_PROTO_ClearQueue [19:49:07]wFMCommunicate request_size=4 [19:49:07]MH_SAM_APDU [19:49:07]CAPDU: 80 09 00 00 [19:49:07]Write to MH i2c: E2 08 00 D0 0E 80 09 00 00 00 00 00 00 50 [19:49:07]Write i2c OK [19:49:07]MH_I2C_Read... [19:49:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:07]Read from MH i2c: E2 [19:49:07]MH_I2C_Read... [19:49:07]Read from MH i2c: E2 03 00 [19:49:07]MH_I2C_Read... [19:49:07]Read from MH i2c: E2 03 00 D0 0E 00 90 00 52 [19:49:07]RAPDU: 90 00 [19:49:07]wFMCommunicate OK [19:49:07]SAM_PROTO_ClearQueue done [19:49:07]KKMCreateOFDPacket [19:49:07]OFDProtocolAddRootSTLVToBuf [19:49:07]FM_MakeSignedData [19:49:07]FM_MakeSignedData [19:49:07]SAM_PROTO_SignData [19:49:07]wFMCommunicate request_size=4 [19:49:07]MH_SAM_APDU [19:49:07]CAPDU: 80 0D 01 02 [19:49:07]Write to MH i2c: E2 08 00 D1 0E 80 0D 01 02 00 00 00 00 58 [19:49:07]Write i2c OK [19:49:07]MH_I2C_Read... [19:49:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:07]Read from MH i2c: E2 [19:49:07]MH_I2C_Read... [19:49:07]Read from MH i2c: E2 03 00 [19:49:07]MH_I2C_Read... [19:49:07]Read from MH i2c: E2 03 00 D1 0E 00 90 00 53 [19:49:07]RAPDU: 90 00 [19:49:07]wFMCommunicate OK [19:49:07]wFMCommunicate request_size=255 [19:49:07]MH_SAM_APDU [19:49:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 B3 EA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA F0 02 00 35 04 06 00 C5 [19:49:07]Write to MH i2c: E2 02 01 D2 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 B3 EA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA F0 02 00 35 04 06 00 C5 00 00 18 [19:49:07]Write i2c OK [19:49:07]MH_I2C_Read... [19:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:08]Read from MH i2c: E2 [19:49:08]MH_I2C_Read... [19:49:08]Read from MH i2c: E2 03 00 [19:49:08]MH_I2C_Read... [19:49:08]Read from MH i2c: E2 03 00 D2 0E 00 90 00 54 [19:49:08]RAPDU: 90 00 [19:49:08]wFMCommunicate OK [19:49:08]wFMCommunicate request_size=10 [19:49:08]MH_SAM_APDU [19:49:08]CAPDU: 80 0D 02 02 05 9E 73 1E 78 DE [19:49:08]Write to MH i2c: E2 0D 00 D3 0E 80 0D 02 02 05 00 9E 73 1E 78 DE 00 00 EA [19:49:08]Write i2c OK [19:49:08]MH_I2C_Read... [19:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:08]Read from MH i2c: E2 [19:49:08]MH_I2C_Read... [19:49:08]Read from MH i2c: E2 03 00 [19:49:08]MH_I2C_Read... [19:49:08]Read from MH i2c: E2 03 00 D3 0E 00 90 00 55 [19:49:08]RAPDU: 90 00 [19:49:08]wFMCommunicate OK [19:49:08]wFMCommunicate request_size=4 [19:49:08]MH_SAM_APDU [19:49:08]CAPDU: 80 0D 03 02 [19:49:08]Write to MH i2c: E2 08 00 D4 0E 80 0D 03 02 00 00 00 00 5D [19:49:08]Write i2c OK [19:49:08]MH_I2C_Read... [19:49:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:08]Read from MH i2c: E2 [19:49:08]MH_I2C_Read... [19:49:08]Read from MH i2c: E2 0B 00 [19:49:08]MH_I2C_Read... [19:49:08]Read from MH i2c: E2 0B 00 D4 0E 00 0E 38 9B 25 E3 04 14 40 90 00 9F [19:49:08]RAPDU: 0E 38 9B 25 E3 04 14 40 90 00 [19:49:08]wFMCommunicate OK [19:49:08]SAM_PROTO_SignData done [19:49:08]FM_MakeSignedData done [19:49:08]CreateOFDProtocolMessage [19:49:08]wFMCommunicate request_size=4 [19:49:08]MH_SAM_APDU [19:49:08]CAPDU: 80 11 00 00 [19:49:08]Write to MH i2c: E2 08 00 D5 0E 80 11 00 00 00 00 00 00 5D [19:49:08]Write i2c OK [19:49:08]MH_I2C_Read... [19:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:08]Read from MH i2c: E2 [19:49:08]MH_I2C_Read... [19:49:08]Read from MH i2c: E2 17 00 [19:49:08]MH_I2C_Read... [19:49:08]Read from MH i2c: E2 17 00 D5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B0 [19:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:49:08]wFMCommunicate OK [19:49:08]CreateOFDProtocolMessage done [19:49:08]OFDSenderStorePacket 192762 [19:49:08]StoreOFDPacket docnum=192762 [19:49:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FA F4 07 01 CD 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 B3 EA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA F0 02 00 35 04 06 00 C5 9E 73 1E 78 DE 0E 38 9B 25 E3 04 14 40 [19:49:08]CheckFolder [19:49:08]dirname=/storage/ofd_packets [19:49:08]CheckFolder done [19:49:08]ProducePacketName [19:49:08]name=ofd_packets/00192762 [19:49:08]NVStorageSaveData ofd_packets/00192762 [19:49:08]File name is /storage/ofd_packets/00192762 [19:49:08]Write 301 bytes [19:49:08]NVStorageSaveData done [19:49:08]OFDSenderStorePacket done [19:49:08]KKMCreateOFDPacket done [19:49:08]NVStorageSaveData kkm_last_timestamp [19:49:08]File name is /storage/kkm_last_timestamp [19:49:08]Write 4 bytes [19:49:08]NVStorageSaveData done [19:49:08]ExternCall_PrintAddStr [19:49:08]wPrintStart [19:49:08]Write to MH i2c: 01 00 00 D6 0E E4 [19:49:08]Write i2c OK [19:49:08]MH_I2C_Read... [19:49:08]Read from MH i2c: 01 [19:49:08]MH_I2C_Read... [19:49:08]Read from MH i2c: 01 07 00 [19:49:08]MH_I2C_Read... [19:49:08]Read from MH i2c: 01 07 00 D6 0E 00 00 00 00 00 FF 0F F9 [19:49:08]RasterBufferAndPrint [19:49:08]line Счет N : (1)32092 [19:49:08]line ИНН: 02508201610067 [19:49:08]line Контрольно-Кассовый Чек [19:49:08]line ПРОДАЖА [19:49:08]line ТРК (МРК, ГНК) : 12 [19:49:08]line Товар: 2710124130 [19:49:08]line Аи-92-К-5 [19:49:08]line 7.480 * 66.90 [19:49:08]line = 500.41 [19:49:08]line НДС 12% НСП 1% [19:49:08]line > о реализуемом товаре [19:49:08]line ОКРУГЛЕНИЕ: -0.41 [19:49:08]line ИТОГО: 500.00 [19:49:08]line Внесено: 500.00 [19:49:08]line СДАЧА: 0.00 [19:49:08]line НСП 1% : 4.43 [19:49:08]line НДС 12% : 53.14 [19:49:08]line Наличными: 500.00 [19:49:08]line Безнал.: 0.00 [19:49:08]line Место: АЗС № 170 "Партнер Нефть" [19:49:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:49:08]line СНО: Общий режим [19:49:08]line Чек 310 28.10.2024 19:49 [19:49:08]line Смена: 543 ФФД: 1.0 [19:49:08]line ЗНМ: 0300000110 [19:49:08]line РНМ: 0000000000091776 [19:49:08]line Версия ККМ: 001 [19:49:08]line ФМ: 0000000000871754 [19:49:08]line ФД: 192762 [19:49:08]line ФПД: 217284326881502 [19:49:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T194907&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192762&fm=217284326881502&tin=02508201610067®Number=0000000000091776&sum=50000 [19:49:08]OFD Sender: Processing packet 192762 [packets to send 75, broken 74] [19:49:08]ProducePacketName [19:49:08]name=ofd_packets/00192762 [19:49:08]OFD Sender: To server: pG, [19:49:08]CommunicateWithHost lk.salyk.kg:30040 [19:49:08]ConnectInit lk.salyk.kg [19:49:08]written 0, free lines is 4095 [19:49:08]Connected sock=9 [19:49:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FA F4 07 01 CD 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 B3 EA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA F0 02 00 35 04 06 00 C5 9E 73 1E 78 DE 0E 38 9B 25 E3 04 14 40 [19:49:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AB 30 47 00 55 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA F0 02 00 F4 03 04 00 76 8F 1F 67 B6 04 01 00 00 39 94 C8 08 18 19 0C 32 [19:49:09]CommunicateWithHost err = 0 [19:49:09]CheckOFDResponse [19:49:09]1017 (14) - 77093643461234 [19:49:09]1041 (16) - 0000000000871754 [19:49:09]1040 (4) - 192762 [19:49:09]1012 (4) - 28.10.2024 13:19 [19:49:09]1206 (1) - 0 [19:49:09]OFD Sender: Remove packet 192762 [19:49:09]ProducePacketName [19:49:09]name=ofd_packets/00192762 [19:49:09]NVStorageDeleteData [19:49:09]Write to MH i2c: 01 00 00 01 0F 10 [19:49:09]Write i2c OK [19:49:09]MH_I2C_Read... [19:49:09]Read from MH i2c: 01 [19:49:09]MH_I2C_Read... [19:49:09]Read from MH i2c: 01 07 00 [19:49:09]MH_I2C_Read... [19:49:09]Read from MH i2c: 01 07 00 01 0F 00 00 00 00 00 B6 0C D9 [19:49:09]RasterBufferAndPrint [19:49:09]line [19:49:09]line [19:49:09]line [19:49:09]line [19:49:09]line [19:49:09]written 0, free lines is 3260 [19:49:09]MH_Cut [19:49:09]Write to MH i2c: D1 01 00 08 0F 01 E9 [19:49:09]Write i2c OK [19:49:09]MH_I2C_Read... [19:49:09]Read from MH i2c: D1 [19:49:09]MH_I2C_Read... [19:49:09]Read from MH i2c: D1 01 00 [19:49:09]MH_I2C_Read... [19:49:09]Read from MH i2c: D1 01 00 08 0F 00 E8 [19:49:09]Write to MH i2c: 01 00 00 09 0F 18 [19:49:09]Write i2c OK [19:49:09]MH_I2C_Read... [19:49:09]OFD Sender: No OFD packet to send [19:49:09]*** Cut start [19:49:09]*** Partial cut [19:49:09]*** CUTSNS_PIN = 1 [19:49:10]*** CUTSNS_PIN = 0 [19:49:10]*** Brake cut motor [19:49:10]Read from MH i2c: 01 [19:49:10]MH_I2C_Read... [19:49:10]*** Stop cut motor [19:49:10]*** Cut end [19:49:10]Read from MH i2c: 01 07 00 [19:49:10]MH_I2C_Read... [19:49:10]Read from MH i2c: 01 07 00 09 0F 00 00 00 00 00 FF 0F 2D [19:49:10]process_action close_receipt done [19:49:10]requested_data is exist [19:49:10]produce_requested_data [19:49:10]requested_item fm.sn is exist - process it [19:49:10]wFMCommunicate request_size=4 [19:49:10]MH_SAM_APDU [19:49:10]CAPDU: 80 11 00 00 [19:49:10]Write to MH i2c: E2 08 00 0A 0F 80 11 00 00 00 00 00 00 93 [19:49:10]Write i2c OK [19:49:10]MH_I2C_Read... [19:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:10]Read from MH i2c: E2 [19:49:10]MH_I2C_Read... [19:49:10]Read from MH i2c: E2 17 00 [19:49:10]MH_I2C_Read... [19:49:10]Read from MH i2c: E2 17 00 0A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E6 [19:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:49:10]wFMCommunicate OK [19:49:10]requested_item fd.num is exist - process it [19:49:10]SAM_PROTO_GetFieldsCounters [19:49:10]wFMCommunicate request_size=4 [19:49:10]MH_SAM_APDU [19:49:10]CAPDU: 80 13 00 00 [19:49:10]Write to MH i2c: E2 08 00 0B 0F 80 13 00 00 00 00 00 00 96 [19:49:10]Write i2c OK [19:49:10]MH_I2C_Read... [19:49:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:10]Read from MH i2c: E2 [19:49:10]MH_I2C_Read... [19:49:10]Read from MH i2c: E2 62 00 [19:49:10]MH_I2C_Read... [19:49:10]Read from MH i2c: E2 62 00 0B 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FA F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [19:49:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FA F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:10]wFMCommunicate OK [19:49:10]SAM_PROTO_GetFieldsCounters done [19:49:10]requested_item shift.num is exist - process it [19:49:10]requested_item shift.opened is exist - process it [19:49:10]req_shift_opened [19:49:10]FM_GetShiftState [19:49:10]SAM_PROTO_GetShiftState [19:49:10]wFMCommunicate request_size=4 [19:49:10]MH_SAM_APDU [19:49:10]CAPDU: 80 13 01 00 [19:49:10]Write to MH i2c: E2 08 00 0C 0F 80 13 01 00 00 00 00 00 98 [19:49:10]Write i2c OK [19:49:10]MH_I2C_Read... [19:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:10]Read from MH i2c: E2 [19:49:10]MH_I2C_Read... [19:49:10]Read from MH i2c: E2 0E 00 [19:49:10]MH_I2C_Read... [19:49:10]Read from MH i2c: E2 0E 00 0C 0F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E8 [19:49:10]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:49:10]wFMCommunicate OK [19:49:10]SAM_PROTO_GetShiftState done [19:49:10]FM_GetShiftState done [19:49:10]req_shift_opened done [19:49:10]requested_item shift.open_date is exist - process it [19:49:10]req_shift_open_date [19:49:10]req_shift_open_date done [19:49:10]produce_requested_data done [19:49:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192762,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:49:10]process_action_free close_receipt [19:49:10]json_value_free [19:49:10]json_value_free done [19:49:10]process_json_proto returns [19:49:10]Send response to host [19:49:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192762,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:49:10]free response buf [19:49:10]execute_script done [19:49:10]execute_script returns [19:49:10]free content buf [19:49:10]Sock 10.Close socket [19:49:10]Sock 10.Thread stoped [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:30]accept exits with 8 [19:53:30]New connection [19:53:30]New thread 3066658148 created [19:53:30]Thread 3066801508 joined [19:53:30]Waiting for new connection... [19:53:30] Sock 8.Parse request [19:53:30]Sock 8.Check first char [19:53:30]Sock 8.First char is OK [19:53:30]request: POST /json_proto HTTP/1.0 [19:53:30]Method: POST [19:53:30]URL: /json_proto [19:53:30]Method is POST - this is cgi request [19:53:30]url: /json_proto [19:53:30]query_string will be loaded in cgi processing [19:53:30]execute_cgi json_proto POST (null) [19:53:30]execute_cgi path=json_proto method=POST [19:53:30]POST find Content-Length [19:53:30]Host: 172.17.63.131:8080 [19:53:30]Content-Length: 862 [19:53:30]Content-Type: application/json [19:53:30] [19:53:30]POST finish read [19:53:30]Found Content-Length = 862 [19:53:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:30]execute_script... [19:53: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)32093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:30]POST & json_proto [19:53:30]process_json_proto [19:53:30]json parsed OK: [19:53:30]protocol is kg_v1.0 [19:53:30]action value=close_receipt [19:53:30]process_action close_receipt [19:53:30]cmd_close_receipt [19:53:30]MH_GetDate [19:53:30]Write to MH i2c: F0 00 00 0D 0F 0B [19:53:30]Write i2c OK [19:53:30]MH_I2C_Read... [19:53:30]Read from MH i2c: F0 [19:53:30]MH_I2C_Read... [19:53:30]Read from MH i2c: F0 09 00 [19:53:30]MH_I2C_Read... [19:53:30]Read from MH i2c: F0 09 00 0D 0F 00 BB EB 1F 67 22 05 6E 64 39 [19:53:30]GetLastDocTimeStamp 1730144947 [19:53:30]current date 1730145211 [19:53:30]FM_GetShiftState [19:53:30]SAM_PROTO_GetShiftState [19:53:30]wFMCommunicate request_size=4 [19:53:30]MH_SAM_APDU [19:53:30]CAPDU: 80 13 01 00 [19:53:30]Write to MH i2c: E2 08 00 0E 0F 80 13 01 00 00 00 00 00 9A [19:53:30]Write i2c OK [19:53:30]MH_I2C_Read... [19:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:30]Read from MH i2c: E2 [19:53:30]MH_I2C_Read... [19:53:30]Read from MH i2c: E2 0E 00 [19:53:30]MH_I2C_Read... [19:53:30]Read from MH i2c: E2 0E 00 0E 0F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 EA [19:53:30]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:53:30]wFMCommunicate OK [19:53:30]SAM_PROTO_GetShiftState done [19:53:30]FM_GetShiftState done [19:53:30]opened in 1730075620 [19:53:30]opened+sec_in_day 1730162020 [19:53:30]quantity*price = 50041 [19:53:30]sum+1 = 50042 [19:53:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 311 28.10.2024 19:53 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192763 ФПД: 190309132074918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T195331&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192763&fm=190309132074918&tin=02508201610067®Number=0000000000091776&sum=50041 [19:53:31]StoreToDocumentArchive [19:53:31]shift 543 fd 192763 [19:53:31]save to /storage/0543/doc_00192763 [19:53:31]save last doc name /storage/0543/doc_00192763 to /storage/kkm_last_doc_name [19:53:31]save OK [19:53:31]Clear old archive folders... [19:53:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:53:31]tlvbuf is 00F7B3E0 [19:53:31]SAM_PROTO_ClearQueue [19:53:31]wFMCommunicate request_size=4 [19:53:31]MH_SAM_APDU [19:53:31]CAPDU: 80 09 00 00 [19:53:31]Write to MH i2c: E2 08 00 1B 0F 80 09 00 00 00 00 00 00 9C [19:53:31]Write i2c OK [19:53:31]MH_I2C_Read... [19:53:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:31]Read from MH i2c: E2 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: E2 03 00 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: E2 03 00 1B 0F 00 90 00 9E [19:53:31]RAPDU: 90 00 [19:53:31]wFMCommunicate OK [19:53:31]SAM_PROTO_ClearQueue done [19:53:31]KKMCreateOFDPacket [19:53:31]OFDProtocolAddRootSTLVToBuf [19:53:31]FM_MakeSignedData [19:53:31]FM_MakeSignedData [19:53:31]SAM_PROTO_SignData [19:53:31]wFMCommunicate request_size=4 [19:53:31]MH_SAM_APDU [19:53:31]CAPDU: 80 0D 01 02 [19:53:31]Write to MH i2c: E2 08 00 1C 0F 80 0D 01 02 00 00 00 00 A4 [19:53:31]Write i2c OK [19:53:31]MH_I2C_Read... [19:53:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:31]Read from MH i2c: E2 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: E2 03 00 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: E2 03 00 1C 0F 00 90 00 9F [19:53:31]RAPDU: 90 00 [19:53:31]wFMCommunicate OK [19:53:31]wFMCommunicate request_size=255 [19:53:31]MH_SAM_APDU [19:53: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 BB EB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB F0 02 00 35 04 06 00 AD [19:53:31]Write to MH i2c: E2 02 01 1D 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 BB EB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB F0 02 00 35 04 06 00 AD 00 00 A9 [19:53:31]Write i2c OK [19:53:31]MH_I2C_Read... [19:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:31]Read from MH i2c: E2 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: E2 03 00 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: E2 03 00 1D 0F 00 90 00 A0 [19:53:31]RAPDU: 90 00 [19:53:31]wFMCommunicate OK [19:53:31]wFMCommunicate request_size=10 [19:53:31]MH_SAM_APDU [19:53:31]CAPDU: 80 0D 02 02 05 15 CC 36 FF A6 [19:53:31]Write to MH i2c: E2 0D 00 1E 0F 80 0D 02 02 05 00 15 CC 36 FF A6 00 00 6D [19:53:31]Write i2c OK [19:53:31]MH_I2C_Read... [19:53:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:31]Read from MH i2c: E2 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: E2 03 00 [19:53:31]MH_I2C_Read... [19:53:31]Read from MH i2c: E2 03 00 1E 0F 00 90 00 A1 [19:53:31]RAPDU: 90 00 [19:53:31]wFMCommunicate OK [19:53:31]wFMCommunicate request_size=4 [19:53:31]MH_SAM_APDU [19:53:31]CAPDU: 80 0D 03 02 [19:53:31]Write to MH i2c: E2 08 00 1F 0F 80 0D 03 02 00 00 00 00 A9 [19:53:31]Write i2c OK [19:53:31]MH_I2C_Read... [19:53:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:32]Read from MH i2c: E2 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: E2 0B 00 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: E2 0B 00 1F 0F 00 F1 B5 5B 4A F7 54 6A D6 90 00 80 [19:53:32]RAPDU: F1 B5 5B 4A F7 54 6A D6 90 00 [19:53:32]wFMCommunicate OK [19:53:32]SAM_PROTO_SignData done [19:53:32]FM_MakeSignedData done [19:53:32]CreateOFDProtocolMessage [19:53:32]wFMCommunicate request_size=4 [19:53:32]MH_SAM_APDU [19:53:32]CAPDU: 80 11 00 00 [19:53:32]Write to MH i2c: E2 08 00 20 0F 80 11 00 00 00 00 00 00 A9 [19:53:32]Write i2c OK [19:53:32]MH_I2C_Read... [19:53:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:32]Read from MH i2c: E2 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: E2 17 00 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: E2 17 00 20 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FC [19:53:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:53:32]wFMCommunicate OK [19:53:32]CreateOFDProtocolMessage done [19:53:32]OFDSenderStorePacket 192763 [19:53:32]StoreOFDPacket docnum=192763 [19:53:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 30 EF 07 01 A8 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 BB EB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB F0 02 00 35 04 06 00 AD 15 CC 36 FF A6 F1 B5 5B 4A F7 54 6A D6 [19:53:32]CheckFolder [19:53:32]dirname=/storage/ofd_packets [19:53:32]CheckFolder done [19:53:32]ProducePacketName [19:53:32]name=ofd_packets/00192763 [19:53:32]NVStorageSaveData ofd_packets/00192763 [19:53:32]File name is /storage/ofd_packets/00192763 [19:53:32]Write 301 bytes [19:53:32]NVStorageSaveData done [19:53:32]OFDSenderStorePacket done [19:53:32]KKMCreateOFDPacket done [19:53:32]NVStorageSaveData kkm_last_timestamp [19:53:32]File name is /storage/kkm_last_timestamp [19:53:32]Write 4 bytes [19:53:32]NVStorageSaveData done [19:53:32]ExternCall_PrintAddStr [19:53:32]wPrintStart [19:53:32]Write to MH i2c: 01 00 00 21 0F 30 [19:53:32]Write i2c OK [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: 01 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: 01 07 00 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: 01 07 00 21 0F 00 00 00 00 00 FF 0F 45 [19:53:32]RasterBufferAndPrint [19:53:32]line Счет N : (1)32093 [19:53:32]line ИНН: 02508201610067 [19:53:32]line Контрольно-Кассовый Чек [19:53:32]line ПРОДАЖА [19:53:32]line ТРК (МРК, ГНК) : 21 [19:53:32]line Товар: 2710124130 [19:53:32]line Аи-92-К-5 [19:53:32]line 7.480 * 66.90 [19:53:32]line = 500.41 [19:53:32]line НДС 12% НСП 1% [19:53:32]line > о реализуемом товаре [19:53:32]line ИТОГО: 500.41 [19:53:32]line НСП 1% : 4.43 [19:53:32]line НДС 12% : 53.14 [19:53:32]line Наличными: 0.00 [19:53:32]line Безнал.: 500.41 [19:53:32]line Место: АЗС № 170 "Партнер Нефть" [19:53:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:53:32]line СНО: Общий режим [19:53:32]line Чек 311 28.10.2024 19:53 [19:53:32]line Смена: 543 ФФД: 1.0 [19:53:32]line ЗНМ: 0300000110 [19:53:32]line РНМ: 0000000000091776 [19:53:32]line Версия ККМ: 001 [19:53:32]line Платежная система: Кыргызкоммерцбанк [19:53:32]line ФМ: 0000000000871754 [19:53:32]line ФД: 192763 [19:53:32]line ФПД: 190309132074918 [19:53:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T195331&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192763&fm=190309132074918&tin=02508201610067®Number=0000000000091776&sum=50041 [19:53:32]OFD Sender: Processing packet 192763 [packets to send 75, broken 74] [19:53:32]ProducePacketName [19:53:32]name=ofd_packets/00192763 [19:53:32]OFD Sender: To server: pG, [19:53:32]CommunicateWithHost lk.salyk.kg:30040 [19:53:32]ConnectInit lk.salyk.kg [19:53:32]written 0, free lines is 4095 [19:53:32]Connected sock=11 [19:53:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 30 EF 07 01 A8 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 BB EB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB F0 02 00 35 04 06 00 AD 15 CC 36 FF A6 F1 B5 5B 4A F7 54 6A D6 [19:53:32]Write to MH i2c: 01 00 00 4B 0F 5A [19:53:32]Write i2c OK [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: 01 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: 01 07 00 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: 01 07 00 4B 0F 00 00 00 00 00 C5 0C 32 [19:53:32]RasterBufferAndPrint [19:53:32]line [19:53:32]line [19:53:32]line [19:53:32]line [19:53:32]line [19:53:32]written 0, free lines is 3275 [19:53:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 29 BD 47 00 95 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB F0 02 00 F4 03 04 00 7E 90 1F 67 B6 04 01 00 00 38 22 48 DB F1 07 BC AF [19:53:32]CommunicateWithHost err = 0 [19:53:32]CheckOFDResponse [19:53:32]1017 (14) - 77093643461234 [19:53:32]1041 (16) - 0000000000871754 [19:53:32]1040 (4) - 192763 [19:53:32]1012 (4) - 28.10.2024 13:24 [19:53:32]1206 (1) - 0 [19:53:32]OFD Sender: Remove packet 192763 [19:53:32]ProducePacketName [19:53:32]name=ofd_packets/00192763 [19:53:32]NVStorageDeleteData [19:53:32]MH_Cut [19:53:32]Write to MH i2c: D1 01 00 52 0F 01 33 [19:53:32]Write i2c OK [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: D1 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: D1 01 00 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: D1 01 00 52 0F 00 32 [19:53:32]Write to MH i2c: 01 00 00 53 0F 62 [19:53:32]Write i2c OK [19:53:32]MH_I2C_Read... [19:53:33]OFD Sender: No OFD packet to send [19:53:33]*** Cut start [19:53:33]*** Partial cut [19:53:33]*** CUTSNS_PIN = 1 [19:53:33]*** CUTSNS_PIN = 0 [19:53:33]*** Brake cut motor [19:53:34]Read from MH i2c: 01 [19:53:34]MH_I2C_Read... [19:53:34]*** Stop cut motor [19:53:34]*** Cut end [19:53:34]Read from MH i2c: 01 07 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: 01 07 00 53 0F 00 00 00 00 00 FF 0F 77 [19:53:34]process_action close_receipt done [19:53:34]requested_data is exist [19:53:34]produce_requested_data [19:53:34]requested_item fm.sn is exist - process it [19:53:34]wFMCommunicate request_size=4 [19:53:34]MH_SAM_APDU [19:53:34]CAPDU: 80 11 00 00 [19:53:34]Write to MH i2c: E2 08 00 54 0F 80 11 00 00 00 00 00 00 DD [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 17 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 17 00 54 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 30 [19:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:53:34]wFMCommunicate OK [19:53:34]requested_item fd.num is exist - process it [19:53:34]SAM_PROTO_GetFieldsCounters [19:53:34]wFMCommunicate request_size=4 [19:53:34]MH_SAM_APDU [19:53:34]CAPDU: 80 13 00 00 [19:53:34]Write to MH i2c: E2 08 00 55 0F 80 13 00 00 00 00 00 00 E0 [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 62 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 62 00 55 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FB F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 BC [19:53:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FB F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:34]wFMCommunicate OK [19:53:34]SAM_PROTO_GetFieldsCounters done [19:53:34]requested_item shift.num is exist - process it [19:53:34]requested_item shift.opened is exist - process it [19:53:34]req_shift_opened [19:53:34]FM_GetShiftState [19:53:34]SAM_PROTO_GetShiftState [19:53:34]wFMCommunicate request_size=4 [19:53:34]MH_SAM_APDU [19:53:34]CAPDU: 80 13 01 00 [19:53:34]Write to MH i2c: E2 08 00 56 0F 80 13 01 00 00 00 00 00 E2 [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 0E 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 0E 00 56 0F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 32 [19:53:34]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:53:34]wFMCommunicate OK [19:53:34]SAM_PROTO_GetShiftState done [19:53:34]FM_GetShiftState done [19:53:34]req_shift_opened done [19:53:34]requested_item shift.open_date is exist - process it [19:53:34]req_shift_open_date [19:53:34]req_shift_open_date done [19:53:34]produce_requested_data done [19:53:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192763,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:53:34]process_action_free close_receipt [19:53:34]json_value_free [19:53:34]json_value_free done [19:53:34]process_json_proto returns [19:53:34]Send response to host [19:53:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192763,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:53:34]free response buf [19:53:34]execute_script done [19:53:34]execute_script returns [19:53:34]free content buf [19:53:34]Sock 8.Close socket [19:53:34]Sock 8.Thread stoped [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:31]accept exits with 9 [19:54:31]New connection [19:54:31]New thread 3066801508 created [19:54:31]Thread 3066658148 joined [19:54:31]Waiting for new connection... [19:54:31] Sock 9.Parse request [19:54:31]Sock 9.Check first char [19:54:31]Sock 9.First char is OK [19:54:31]request: POST /json_proto HTTP/1.0 [19:54:31]Method: POST [19:54:31]URL: /json_proto [19:54:31]Method is POST - this is cgi request [19:54:31]url: /json_proto [19:54:31]query_string will be loaded in cgi processing [19:54:31]execute_cgi json_proto POST (null) [19:54:31]execute_cgi path=json_proto method=POST [19:54:31]POST find Content-Length [19:54:31]Host: 172.17.63.131:8080 [19:54:31]Content-Length: 681 [19:54:31]Content-Type: application/json [19:54:31] [19:54:31]POST finish read [19:54:31]Found Content-Length = 681 [19:54:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:31]execute_script... [19: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)32094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:31]POST & json_proto [19:54:31]process_json_proto [19:54:31]json parsed OK: [19:54:31]protocol is kg_v1.0 [19:54:31]action value=close_receipt [19:54:31]process_action close_receipt [19:54:31]cmd_close_receipt [19:54:31]MH_GetDate [19:54:31]Write to MH i2c: F0 00 00 57 0F 55 [19:54:31]Write i2c OK [19:54:31]MH_I2C_Read... [19:54:31]Read from MH i2c: F0 [19:54:31]MH_I2C_Read... [19:54:31]Read from MH i2c: F0 09 00 [19:54:31]MH_I2C_Read... [19:54:31]Read from MH i2c: F0 09 00 57 0F 00 F8 EB 1F 67 22 05 6E 64 C0 [19:54:31]GetLastDocTimeStamp 1730145211 [19:54:31]current date 1730145272 [19:54:31]FM_GetShiftState [19:54:31]SAM_PROTO_GetShiftState [19:54:31]wFMCommunicate request_size=4 [19:54:31]MH_SAM_APDU [19:54:31]CAPDU: 80 13 01 00 [19:54:31]Write to MH i2c: E2 08 00 58 0F 80 13 01 00 00 00 00 00 E4 [19:54:31]Write i2c OK [19:54:31]MH_I2C_Read... [19:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:31]Read from MH i2c: E2 [19:54:31]MH_I2C_Read... [19:54:31]Read from MH i2c: E2 0E 00 [19:54:31]MH_I2C_Read... [19:54:31]Read from MH i2c: E2 0E 00 58 0F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 34 [19:54:31]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:54:31]wFMCommunicate OK [19:54:31]SAM_PROTO_GetShiftState done [19:54:31]FM_GetShiftState done [19:54:31]opened in 1730075620 [19:54:31]opened+sec_in_day 1730162020 [19:54:31]quantity*price = 100015 [19:54:31]sum+1 = 100017 [19:54:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 312 28.10.2024 19:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192764 ФПД: 12487232247697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T195432&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192764&fm=12487232247697&tin=02508201610067®Number=0000000000091776&sum=100000 [19:54:32]StoreToDocumentArchive [19:54:32]shift 543 fd 192764 [19:54:32]save to /storage/0543/doc_00192764 [19:54:32]save last doc name /storage/0543/doc_00192764 to /storage/kkm_last_doc_name [19:54:32]save OK [19:54:32]Clear old archive folders... [19:54:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:54:32]tlvbuf is 00EE6A90 [19:54:32]SAM_PROTO_ClearQueue [19:54:32]wFMCommunicate request_size=4 [19:54:32]MH_SAM_APDU [19:54:32]CAPDU: 80 09 00 00 [19:54:32]Write to MH i2c: E2 08 00 65 0F 80 09 00 00 00 00 00 00 E6 [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:32]Read from MH i2c: E2 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 65 0F 00 90 00 E8 [19:54:32]RAPDU: 90 00 [19:54:32]wFMCommunicate OK [19:54:32]SAM_PROTO_ClearQueue done [19:54:32]KKMCreateOFDPacket [19:54:32]OFDProtocolAddRootSTLVToBuf [19:54:32]FM_MakeSignedData [19:54:32]FM_MakeSignedData [19:54:32]SAM_PROTO_SignData [19:54:32]wFMCommunicate request_size=4 [19:54:32]MH_SAM_APDU [19:54:32]CAPDU: 80 0D 01 02 [19:54:32]Write to MH i2c: E2 08 00 66 0F 80 0D 01 02 00 00 00 00 EE [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:32]Read from MH i2c: E2 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 66 0F 00 90 00 E9 [19:54:32]RAPDU: 90 00 [19:54:32]wFMCommunicate OK [19:54:32]wFMCommunicate request_size=255 [19:54:32]MH_SAM_APDU [19: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 F8 EB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC F0 02 00 35 04 06 00 0B [19:54:32]Write to MH i2c: E2 02 01 67 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 F8 EB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC F0 02 00 35 04 06 00 0B 00 00 38 [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:33]Read from MH i2c: E2 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: E2 03 00 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: E2 03 00 67 0F 00 90 00 EA [19:54:33]RAPDU: 90 00 [19:54:33]wFMCommunicate OK [19:54:33]wFMCommunicate request_size=10 [19:54:33]MH_SAM_APDU [19:54:33]CAPDU: 80 0D 02 02 05 5B 69 0A D7 91 [19:54:33]Write to MH i2c: E2 0D 00 68 0F 80 0D 02 02 05 00 5B 69 0A D7 91 00 00 31 [19:54:33]Write i2c OK [19:54:33]MH_I2C_Read... [19:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:33]Read from MH i2c: E2 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: E2 03 00 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: E2 03 00 68 0F 00 90 00 EB [19:54:33]RAPDU: 90 00 [19:54:33]wFMCommunicate OK [19:54:33]wFMCommunicate request_size=4 [19:54:33]MH_SAM_APDU [19:54:33]CAPDU: 80 0D 03 02 [19:54:33]Write to MH i2c: E2 08 00 69 0F 80 0D 03 02 00 00 00 00 F3 [19:54:33]Write i2c OK [19:54:33]MH_I2C_Read... [19:54:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:33]Read from MH i2c: E2 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: E2 0B 00 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: E2 0B 00 69 0F 00 14 91 14 9F 95 9D 9F 54 90 00 71 [19:54:33]RAPDU: 14 91 14 9F 95 9D 9F 54 90 00 [19:54:33]wFMCommunicate OK [19:54:33]SAM_PROTO_SignData done [19:54:33]FM_MakeSignedData done [19:54:33]CreateOFDProtocolMessage [19:54:33]wFMCommunicate request_size=4 [19:54:33]MH_SAM_APDU [19:54:33]CAPDU: 80 11 00 00 [19:54:33]Write to MH i2c: E2 08 00 6A 0F 80 11 00 00 00 00 00 00 F3 [19:54:33]Write i2c OK [19:54:33]MH_I2C_Read... [19:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:33]Read from MH i2c: E2 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: E2 17 00 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: E2 17 00 6A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 46 [19:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:54:33]wFMCommunicate OK [19:54:33]CreateOFDProtocolMessage done [19:54:33]OFDSenderStorePacket 192764 [19:54:33]StoreOFDPacket docnum=192764 [19:54:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FC E9 07 01 BF 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 F8 EB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC F0 02 00 35 04 06 00 0B 5B 69 0A D7 91 14 91 14 9F 95 9D 9F 54 [19:54:33]CheckFolder [19:54:33]dirname=/storage/ofd_packets [19:54:33]CheckFolder done [19:54:33]ProducePacketName [19:54:33]name=ofd_packets/00192764 [19:54:33]NVStorageSaveData ofd_packets/00192764 [19:54:33]File name is /storage/ofd_packets/00192764 [19:54:33]Write 301 bytes [19:54:33]NVStorageSaveData done [19:54:33]OFDSenderStorePacket done [19:54:33]KKMCreateOFDPacket done [19:54:33]NVStorageSaveData kkm_last_timestamp [19:54:33]File name is /storage/kkm_last_timestamp [19:54:33]Write 4 bytes [19:54:33]NVStorageSaveData done [19:54:33]ExternCall_PrintAddStr [19:54:33]wPrintStart [19:54:33]Write to MH i2c: 01 00 00 6B 0F 7A [19:54:33]Write i2c OK [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: 01 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: 01 07 00 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: 01 07 00 6B 0F 00 00 00 00 00 FF 0F 8F [19:54:33]RasterBufferAndPrint [19:54:33]line Счет N : (1)32094 [19:54:33]line ИНН: 02508201610067 [19:54:33]line Контрольно-Кассовый Чек [19:54:33]line ПРОДАЖА [19:54:33]line ТРК (МРК, ГНК) : 21 [19:54:33]line Товар: 2710124130 [19:54:33]line Аи-92-К-5 [19:54:33]line 14.950 * 66.90 [19:54:33]line = 1000.16 [19:54:33]line НДС 12% НСП 1% [19:54:33]line > о реализуемом товаре [19:54:33]line ОКРУГЛЕНИЕ: -0.16 [19:54:33]line ИТОГО: 1000.00 [19:54:33]line Внесено: 1000.00 [19:54:33]line СДАЧА: 0.00 [19:54:33]line НСП 1% : 8.85 [19:54:33]line НДС 12% : 106.21 [19:54:33]line Наличными: 1000.00 [19:54:33]line Безнал.: 0.00 [19:54:33]line Место: АЗС № 170 "Партнер Нефть" [19:54:33]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:54:33]line СНО: Общий режим [19:54:33]line Чек 312 28.10.2024 19:54 [19:54:33]line Смена: 543 ФФД: 1.0 [19:54:33]line ЗНМ: 0300000110 [19:54:33]line РНМ: 0000000000091776 [19:54:33]line Версия ККМ: 001 [19:54:33]line ФМ: 0000000000871754 [19:54:33]line ФД: 192764 [19:54:33]line ФПД: 12487232247697 [19:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T195432&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192764&fm=12487232247697&tin=02508201610067®Number=0000000000091776&sum=100000 [19:54:33]OFD Sender: Processing packet 192764 [packets to send 75, broken 74] [19:54:33]ProducePacketName [19:54:33]name=ofd_packets/00192764 [19:54:33]OFD Sender: To server: pG, [19:54:33]CommunicateWithHost lk.salyk.kg:30040 [19:54:33]ConnectInit lk.salyk.kg [19:54:33]written 0, free lines is 4095 [19:54:33]Connected sock=10 [19:54:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FC E9 07 01 BF 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 F8 EB 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC F0 02 00 35 04 06 00 0B 5B 69 0A D7 91 14 91 14 9F 95 9D 9F 54 [19:54:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 86 E2 47 00 7B A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC F0 02 00 F4 03 04 00 BB 90 1F 67 B6 04 01 00 00 16 96 67 62 5B F6 DB 22 [19:54:33]CommunicateWithHost err = 0 [19:54:33]CheckOFDResponse [19:54:33]1017 (14) - 77093643461234 [19:54:33]1041 (16) - 0000000000871754 [19:54:33]1040 (4) - 192764 [19:54:33]1012 (4) - 28.10.2024 13:25 [19:54:33]1206 (1) - 0 [19:54:33]OFD Sender: Remove packet 192764 [19:54:33]ProducePacketName [19:54:33]name=ofd_packets/00192764 [19:54:33]NVStorageDeleteData [19:54:34]Write to MH i2c: 01 00 00 96 0F A5 [19:54:34]Write i2c OK [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: 01 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: 01 07 00 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: 01 07 00 96 0F 00 00 00 00 00 B5 0C 6D [19:54:34]RasterBufferAndPrint [19:54:34]line [19:54:34]line [19:54:34]line [19:54:34]line [19:54:34]line [19:54:34]written 0, free lines is 3258 [19:54:34]MH_Cut [19:54:34]Write to MH i2c: D1 01 00 9D 0F 01 7E [19:54:34]Write i2c OK [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: D1 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: D1 01 00 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: D1 01 00 9D 0F 00 7D [19:54:34]Write to MH i2c: 01 00 00 9E 0F AD [19:54:34]Write i2c OK [19:54:34]MH_I2C_Read... [19:54:34]OFD Sender: No OFD packet to send [19:54:34]*** Cut start [19:54:34]*** Partial cut [19:54:34]*** CUTSNS_PIN = 1 [19:54:34]*** CUTSNS_PIN = 0 [19:54:35]*** Brake cut motor [19:54:35]Read from MH i2c: 01 [19:54:35]MH_I2C_Read... [19:54:35]*** Stop cut motor [19:54:35]*** Cut end [19:54:35]Read from MH i2c: 01 07 00 [19:54:35]MH_I2C_Read... [19:54:35]Read from MH i2c: 01 07 00 9E 0F 00 00 00 00 00 FF 0F C2 [19:54:35]process_action close_receipt done [19:54:35]requested_data is exist [19:54:35]produce_requested_data [19:54:35]requested_item fm.sn is exist - process it [19:54:35]wFMCommunicate request_size=4 [19:54:35]MH_SAM_APDU [19:54:35]CAPDU: 80 11 00 00 [19:54:35]Write to MH i2c: E2 08 00 9F 0F 80 11 00 00 00 00 00 00 28 [19:54:35]Write i2c OK [19:54:35]MH_I2C_Read... [19:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:35]Read from MH i2c: E2 [19:54:35]MH_I2C_Read... [19:54:35]Read from MH i2c: E2 17 00 [19:54:35]MH_I2C_Read... [19:54:35]Read from MH i2c: E2 17 00 9F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7B [19:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:54:35]wFMCommunicate OK [19:54:35]requested_item fd.num is exist - process it [19:54:35]SAM_PROTO_GetFieldsCounters [19:54:35]wFMCommunicate request_size=4 [19:54:35]MH_SAM_APDU [19:54:35]CAPDU: 80 13 00 00 [19:54:35]Write to MH i2c: E2 08 00 A0 0F 80 13 00 00 00 00 00 00 2B [19:54:35]Write i2c OK [19:54:35]MH_I2C_Read... [19:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:35]Read from MH i2c: E2 [19:54:35]MH_I2C_Read... [19:54:35]Read from MH i2c: E2 62 00 [19:54:35]MH_I2C_Read... [19:54:35]Read from MH i2c: E2 62 00 A0 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FC F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [19:54:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FC F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:35]wFMCommunicate OK [19:54:35]SAM_PROTO_GetFieldsCounters done [19:54:35]requested_item shift.num is exist - process it [19:54:35]requested_item shift.opened is exist - process it [19:54:35]req_shift_opened [19:54:35]FM_GetShiftState [19:54:35]SAM_PROTO_GetShiftState [19:54:35]wFMCommunicate request_size=4 [19:54:35]MH_SAM_APDU [19:54:35]CAPDU: 80 13 01 00 [19:54:35]Write to MH i2c: E2 08 00 A1 0F 80 13 01 00 00 00 00 00 2D [19:54:35]Write i2c OK [19:54:35]MH_I2C_Read... [19:54:35]Read from MH i2c: E2 [19:54:35]MH_I2C_Read... [19:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:35]Read from MH i2c: E2 0E 00 [19:54:35]MH_I2C_Read... [19:54:35]Read from MH i2c: E2 0E 00 A1 0F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 7D [19:54:35]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:54:35]wFMCommunicate OK [19:54:35]SAM_PROTO_GetShiftState done [19:54:35]FM_GetShiftState done [19:54:35]req_shift_opened done [19:54:35]requested_item shift.open_date is exist - process it [19:54:35]req_shift_open_date [19:54:35]req_shift_open_date done [19:54:35]produce_requested_data done [19:54:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192764,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:54:35]process_action_free close_receipt [19:54:35]json_value_free [19:54:35]json_value_free done [19:54:35]process_json_proto returns [19:54:35]Send response to host [19:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192764,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:54:35]free response buf [19:54:35]execute_script done [19:54:35]execute_script returns [19:54:35]free content buf [19:54:35]Sock 9.Close socket [19:54:35]Sock 9.Thread stoped [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:46]accept exits with 8 [19:58:46]New connection [19:58:46]New thread 3066658148 created [19:58:46]Thread 3066801508 joined [19:58:46]Waiting for new connection... [19:58:46] Sock 8.Parse request [19:58:46]Sock 8.Check first char [19:58:46]Sock 8.First char is OK [19:58:46]request: POST /json_proto HTTP/1.0 [19:58:46]Method: POST [19:58:46]URL: /json_proto [19:58:46]Method is POST - this is cgi request [19:58:46]url: /json_proto [19:58:46]query_string will be loaded in cgi processing [19:58:46]execute_cgi json_proto POST (null) [19:58:46]execute_cgi path=json_proto method=POST [19:58:46]POST find Content-Length [19:58:46]Host: 172.17.63.131:8080 [19:58:46]Content-Length: 676 [19:58:46]Content-Type: application/json [19:58:46] [19:58:46]POST finish read [19:58:46]Found Content-Length = 676 [19:58:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:46]execute_script... [19:58: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)32096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:46]POST & json_proto [19:58:46]process_json_proto [19:58:46]json parsed OK: [19:58:46]protocol is kg_v1.0 [19:58:46]action value=close_receipt [19:58:46]process_action close_receipt [19:58:46]cmd_close_receipt [19:58:46]MH_GetDate [19:58:46]Write to MH i2c: F0 00 00 A2 0F A0 [19:58:46]Write i2c OK [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: F0 [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: F0 09 00 [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: F0 09 00 A2 0F 00 F7 EC 1F 67 22 05 6E 64 0B [19:58:46]GetLastDocTimeStamp 1730145272 [19:58:46]current date 1730145527 [19:58:46]FM_GetShiftState [19:58:46]SAM_PROTO_GetShiftState [19:58:46]wFMCommunicate request_size=4 [19:58:46]MH_SAM_APDU [19:58:46]CAPDU: 80 13 01 00 [19:58:46]Write to MH i2c: E2 08 00 A3 0F 80 13 01 00 00 00 00 00 2F [19:58:46]Write i2c OK [19:58:46]MH_I2C_Read... [19:58:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:46]Read from MH i2c: E2 [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: E2 0E 00 [19:58:46]MH_I2C_Read... [19:58:46]Read from MH i2c: E2 0E 00 A3 0F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 7F [19:58:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:58:46]wFMCommunicate OK [19:58:46]SAM_PROTO_GetShiftState done [19:58:46]FM_GetShiftState done [19:58:46]opened in 1730075620 [19:58:46]opened+sec_in_day 1730162020 [19:58:46]quantity*price = 50041 [19:58:46]sum+1 = 50042 [19:58:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 313 28.10.2024 19:58 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192765 ФПД: 13430760730251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T195847&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192765&fm=13430760730251&tin=02508201610067®Number=0000000000091776&sum=50000 [19:58:47]StoreToDocumentArchive [19:58:47]shift 543 fd 192765 [19:58:47]save to /storage/0543/doc_00192765 [19:58:47]save last doc name /storage/0543/doc_00192765 to /storage/kkm_last_doc_name [19:58:47]save OK [19:58:47]Clear old archive folders... [19:58:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:58:47]tlvbuf is 00ECB6E0 [19:58:47]SAM_PROTO_ClearQueue [19:58:47]wFMCommunicate request_size=4 [19:58:47]MH_SAM_APDU [19:58:47]CAPDU: 80 09 00 00 [19:58:47]Write to MH i2c: E2 08 00 B0 0F 80 09 00 00 00 00 00 00 31 [19:58:47]Write i2c OK [19:58:47]MH_I2C_Read... [19:58:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:47]Read from MH i2c: E2 [19:58:47]MH_I2C_Read... [19:58:47]Read from MH i2c: E2 03 00 [19:58:47]MH_I2C_Read... [19:58:47]Read from MH i2c: E2 03 00 B0 0F 00 90 00 33 [19:58:47]RAPDU: 90 00 [19:58:47]wFMCommunicate OK [19:58:47]SAM_PROTO_ClearQueue done [19:58:47]KKMCreateOFDPacket [19:58:47]OFDProtocolAddRootSTLVToBuf [19:58:47]FM_MakeSignedData [19:58:47]FM_MakeSignedData [19:58:47]SAM_PROTO_SignData [19:58:47]wFMCommunicate request_size=4 [19:58:47]MH_SAM_APDU [19:58:47]CAPDU: 80 0D 01 02 [19:58:47]Write to MH i2c: E2 08 00 B1 0F 80 0D 01 02 00 00 00 00 39 [19:58:47]Write i2c OK [19:58:47]MH_I2C_Read... [19:58:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:47]Read from MH i2c: E2 [19:58:47]MH_I2C_Read... [19:58:47]Read from MH i2c: E2 03 00 [19:58:47]MH_I2C_Read... [19:58:47]Read from MH i2c: E2 03 00 B1 0F 00 90 00 34 [19:58:47]RAPDU: 90 00 [19:58:47]wFMCommunicate OK [19:58:47]wFMCommunicate request_size=255 [19:58:47]MH_SAM_APDU [19:58:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 F7 EC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD F0 02 00 35 04 06 00 0C [19:58:47]Write to MH i2c: E2 02 01 B2 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 F7 EC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD F0 02 00 35 04 06 00 0C 00 00 8C [19:58:47]Write i2c OK [19:58:47]MH_I2C_Read... [19:58:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:48]Read from MH i2c: E2 [19:58:48]MH_I2C_Read... [19:58:48]Read from MH i2c: E2 03 00 [19:58:48]MH_I2C_Read... [19:58:48]Read from MH i2c: E2 03 00 B2 0F 00 90 00 35 [19:58:48]RAPDU: 90 00 [19:58:48]wFMCommunicate OK [19:58:48]wFMCommunicate request_size=10 [19:58:48]MH_SAM_APDU [19:58:48]CAPDU: 80 0D 02 02 05 37 17 B8 EE 8B [19:58:48]Write to MH i2c: E2 0D 00 B3 0F 80 0D 02 02 05 00 37 17 B8 EE 8B 00 00 C5 [19:58:48]Write i2c OK [19:58:48]MH_I2C_Read... [19:58:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:48]Read from MH i2c: E2 [19:58:48]MH_I2C_Read... [19:58:48]Read from MH i2c: E2 03 00 [19:58:48]MH_I2C_Read... [19:58:48]Read from MH i2c: E2 03 00 B3 0F 00 90 00 36 [19:58:48]RAPDU: 90 00 [19:58:48]wFMCommunicate OK [19:58:48]wFMCommunicate request_size=4 [19:58:48]MH_SAM_APDU [19:58:48]CAPDU: 80 0D 03 02 [19:58:48]Write to MH i2c: E2 08 00 B4 0F 80 0D 03 02 00 00 00 00 3E [19:58:48]Write i2c OK [19:58:48]MH_I2C_Read... [19:58:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:48]Read from MH i2c: E2 [19:58:48]MH_I2C_Read... [19:58:48]Read from MH i2c: E2 0B 00 [19:58:48]MH_I2C_Read... [19:58:48]Read from MH i2c: E2 0B 00 B4 0F 00 28 79 6D C1 EA 2A 16 9A 90 00 D2 [19:58:48]RAPDU: 28 79 6D C1 EA 2A 16 9A 90 00 [19:58:48]wFMCommunicate OK [19:58:48]SAM_PROTO_SignData done [19:58:48]FM_MakeSignedData done [19:58:48]CreateOFDProtocolMessage [19:58:48]wFMCommunicate request_size=4 [19:58:48]MH_SAM_APDU [19:58:48]CAPDU: 80 11 00 00 [19:58:48]Write to MH i2c: E2 08 00 B5 0F 80 11 00 00 00 00 00 00 3E [19:58:48]Write i2c OK [19:58:48]MH_I2C_Read... [19:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:48]Read from MH i2c: E2 [19:58:48]MH_I2C_Read... [19:58:48]Read from MH i2c: E2 17 00 [19:58:48]MH_I2C_Read... [19:58:48]Read from MH i2c: E2 17 00 B5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 91 [19:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:58:48]wFMCommunicate OK [19:58:48]CreateOFDProtocolMessage done [19:58:48]OFDSenderStorePacket 192765 [19:58:48]StoreOFDPacket docnum=192765 [19:58:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FB 93 07 01 03 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 F7 EC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD F0 02 00 35 04 06 00 0C 37 17 B8 EE 8B 28 79 6D C1 EA 2A 16 9A [19:58:48]CheckFolder [19:58:48]dirname=/storage/ofd_packets [19:58:48]CheckFolder done [19:58:48]ProducePacketName [19:58:48]name=ofd_packets/00192765 [19:58:48]NVStorageSaveData ofd_packets/00192765 [19:58:48]File name is /storage/ofd_packets/00192765 [19:58:48]Write 301 bytes [19:58:48]NVStorageSaveData done [19:58:48]OFDSenderStorePacket done [19:58:48]KKMCreateOFDPacket done [19:58:48]NVStorageSaveData kkm_last_timestamp [19:58:48]File name is /storage/kkm_last_timestamp [19:58:48]Write 4 bytes [19:58:48]NVStorageSaveData done [19:58:48]ExternCall_PrintAddStr [19:58:48]wPrintStart [19:58:48]Write to MH i2c: 01 00 00 B6 0F C5 [19:58:48]Write i2c OK [19:58:48]MH_I2C_Read... [19:58:48]Read from MH i2c: 01 [19:58:48]MH_I2C_Read... [19:58:48]Read from MH i2c: 01 07 00 [19:58:48]MH_I2C_Read... [19:58:48]Read from MH i2c: 01 07 00 B6 0F 00 00 00 00 00 FF 0F DA [19:58:48]RasterBufferAndPrint [19:58:48]line Счет N : (1)32096 [19:58:48]line ИНН: 02508201610067 [19:58:48]line Контрольно-Кассовый Чек [19:58:48]line ПРОДАЖА [19:58:48]line ТРК (МРК, ГНК) : 12 [19:58:48]line Товар: 2710124130 [19:58:48]line Аи-92-К-5 [19:58:48]line 7.480 * 66.90 [19:58:48]line = 500.41 [19:58:48]line НДС 12% НСП 1% [19:58:48]line > о реализуемом товаре [19:58:48]line ОКРУГЛЕНИЕ: -0.41 [19:58:48]line ИТОГО: 500.00 [19:58:48]line Внесено: 500.00 [19:58:48]line СДАЧА: 0.00 [19:58:48]line НСП 1% : 4.43 [19:58:48]line НДС 12% : 53.14 [19:58:48]line Наличными: 500.00 [19:58:48]line Безнал.: 0.00 [19:58:48]line Место: АЗС № 170 "Партнер Нефть" [19:58:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:58:48]line СНО: Общий режим [19:58:48]line Чек 313 28.10.2024 19:58 [19:58:48]line Смена: 543 ФФД: 1.0 [19:58:48]line ЗНМ: 0300000110 [19:58:48]line РНМ: 0000000000091776 [19:58:48]line Версия ККМ: 001 [19:58:48]line ФМ: 0000000000871754 [19:58:48]line ФД: 192765 [19:58:48]line ФПД: 13430760730251 [19:58:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T195847&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192765&fm=13430760730251&tin=02508201610067®Number=0000000000091776&sum=50000 [19:58:48]OFD Sender: Processing packet 192765 [packets to send 75, broken 74] [19:58:48]ProducePacketName [19:58:48]name=ofd_packets/00192765 [19:58:48]OFD Sender: To server: pG, [19:58:48]CommunicateWithHost lk.salyk.kg:30040 [19:58:48]ConnectInit lk.salyk.kg [19:58:48]written 0, free lines is 4095 [19:58:48]Connected sock=10 [19:58:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FB 93 07 01 03 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 F7 EC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD F0 02 00 35 04 06 00 0C 37 17 B8 EE 8B 28 79 6D C1 EA 2A 16 9A [19:58:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AB A9 47 00 10 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD F0 02 00 F4 03 04 00 BA 91 1F 67 B6 04 01 00 00 A6 E8 0F FB 3B 30 A2 C9 [19:58:49]CommunicateWithHost err = 0 [19:58:49]CheckOFDResponse [19:58:49]1017 (14) - 77093643461234 [19:58:49]1041 (16) - 0000000000871754 [19:58:49]1040 (4) - 192765 [19:58:49]1012 (4) - 28.10.2024 13:29 [19:58:49]1206 (1) - 0 [19:58:49]OFD Sender: Remove packet 192765 [19:58:49]ProducePacketName [19:58:49]name=ofd_packets/00192765 [19:58:49]NVStorageDeleteData [19:58:49]Write to MH i2c: 01 00 00 E1 0F F0 [19:58:49]Write i2c OK [19:58:49]MH_I2C_Read... [19:58:49]Read from MH i2c: 01 [19:58:49]MH_I2C_Read... [19:58:49]Read from MH i2c: 01 07 00 [19:58:49]MH_I2C_Read... [19:58:49]Read from MH i2c: 01 07 00 E1 0F 00 00 00 00 00 AF 0C B2 [19:58:49]RasterBufferAndPrint [19:58:49]line [19:58:49]line [19:58:49]line [19:58:49]line [19:58:49]line [19:58:49]written 0, free lines is 3253 [19:58:49]MH_Cut [19:58:49]Write to MH i2c: D1 01 00 E8 0F 01 C9 [19:58:49]Write i2c OK [19:58:49]MH_I2C_Read... [19:58:49]Read from MH i2c: D1 [19:58:49]MH_I2C_Read... [19:58:49]Read from MH i2c: D1 01 00 [19:58:49]MH_I2C_Read... [19:58:49]Read from MH i2c: D1 01 00 E8 0F 00 C8 [19:58:49]Write to MH i2c: 01 00 00 E9 0F F8 [19:58:49]Write i2c OK [19:58:49]MH_I2C_Read... [19:58:49]OFD Sender: No OFD packet to send [19:58:49]*** Cut start [19:58:49]*** Partial cut [19:58:49]*** CUTSNS_PIN = 1 [19:58:50]*** CUTSNS_PIN = 0 [19:58:50]*** Brake cut motor [19:58:50]Read from MH i2c: 01 [19:58:50]MH_I2C_Read... [19:58:50]*** Stop cut motor [19:58:50]*** Cut end [19:58:50]Read from MH i2c: 01 07 00 [19:58:50]MH_I2C_Read... [19:58:50]Read from MH i2c: 01 07 00 E9 0F 00 00 00 00 00 FF 0F 0D [19:58:50]process_action close_receipt done [19:58:50]requested_data is exist [19:58:50]produce_requested_data [19:58:50]requested_item fm.sn is exist - process it [19:58:50]wFMCommunicate request_size=4 [19:58:50]MH_SAM_APDU [19:58:50]CAPDU: 80 11 00 00 [19:58:50]Write to MH i2c: E2 08 00 EA 0F 80 11 00 00 00 00 00 00 73 [19:58:50]Write i2c OK [19:58:50]MH_I2C_Read... [19:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:50]Read from MH i2c: E2 [19:58:50]MH_I2C_Read... [19:58:50]Read from MH i2c: E2 17 00 [19:58:50]MH_I2C_Read... [19:58:50]Read from MH i2c: E2 17 00 EA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C6 [19:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:58:50]wFMCommunicate OK [19:58:50]requested_item fd.num is exist - process it [19:58:50]SAM_PROTO_GetFieldsCounters [19:58:50]wFMCommunicate request_size=4 [19:58:50]MH_SAM_APDU [19:58:50]CAPDU: 80 13 00 00 [19:58:50]Write to MH i2c: E2 08 00 EB 0F 80 13 00 00 00 00 00 00 76 [19:58:50]Write i2c OK [19:58:50]MH_I2C_Read... [19:58:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:50]Read from MH i2c: E2 [19:58:50]MH_I2C_Read... [19:58:50]Read from MH i2c: E2 62 00 [19:58:50]MH_I2C_Read... [19:58:50]Read from MH i2c: E2 62 00 EB 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FD F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [19:58:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FD F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:50]wFMCommunicate OK [19:58:50]SAM_PROTO_GetFieldsCounters done [19:58:50]requested_item shift.num is exist - process it [19:58:50]requested_item shift.opened is exist - process it [19:58:50]req_shift_opened [19:58:50]FM_GetShiftState [19:58:50]SAM_PROTO_GetShiftState [19:58:50]wFMCommunicate request_size=4 [19:58:50]MH_SAM_APDU [19:58:50]CAPDU: 80 13 01 00 [19:58:50]Write to MH i2c: E2 08 00 EC 0F 80 13 01 00 00 00 00 00 78 [19:58:50]Write i2c OK [19:58:50]MH_I2C_Read... [19:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:50]Read from MH i2c: E2 [19:58:50]MH_I2C_Read... [19:58:50]Read from MH i2c: E2 0E 00 [19:58:50]MH_I2C_Read... [19:58:50]Read from MH i2c: E2 0E 00 EC 0F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C8 [19:58:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:58:50]wFMCommunicate OK [19:58:50]SAM_PROTO_GetShiftState done [19:58:50]FM_GetShiftState done [19:58:50]req_shift_opened done [19:58:50]requested_item shift.open_date is exist - process it [19:58:50]req_shift_open_date [19:58:50]req_shift_open_date done [19:58:50]produce_requested_data done [19:58:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192765,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [19:58:50]process_action_free close_receipt [19:58:50]json_value_free [19:58:50]json_value_free done [19:58:50]process_json_proto returns [19:58:50]Send response to host [19:58:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192765,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [19:58:50]free response buf [19:58:50]execute_script done [19:58:50]execute_script returns [19:58:50]free content buf [19:58:50]Sock 8.Close socket [19:58:50]Sock 8.Thread stoped [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:57]accept exits with 9 [19:59:57]New connection [19:59:57]New thread 3066801508 created [19:59:57]Thread 3066658148 joined [19:59:57]Waiting for new connection... [19:59:57] Sock 9.Parse request [19:59:57]Sock 9.Check first char [19:59:57]Sock 9.First char is OK [19:59:57]request: POST /json_proto HTTP/1.0 [19:59:57]Method: POST [19:59:57]URL: /json_proto [19:59:57]Method is POST - this is cgi request [19:59:57]url: /json_proto [19:59:57]query_string will be loaded in cgi processing [19:59:57]execute_cgi json_proto POST (null) [19:59:57]execute_cgi path=json_proto method=POST [19:59:57]POST find Content-Length [19:59:57]Host: 172.17.63.131:8080 [19:59:57]Content-Length: 862 [19:59:57]Content-Type: application/json [19:59:57] [19:59:57]POST finish read [19:59:57]Found Content-Length = 862 [19:59:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:57]execute_script... [19:59:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:57]POST & json_proto [19:59:57]process_json_proto [19:59:57]json parsed OK: [19:59:57]protocol is kg_v1.0 [19:59:57]action value=close_receipt [19:59:57]process_action close_receipt [19:59:57]cmd_close_receipt [19:59:57]MH_GetDate [19:59:57]Write to MH i2c: F0 00 00 ED 0F EB [19:59:57]Write i2c OK [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: F0 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: F0 09 00 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: F0 09 00 ED 0F 00 3E ED 1F 67 22 05 6E 64 9E [19:59:57]GetLastDocTimeStamp 1730145527 [19:59:57]current date 1730145598 [19:59:57]FM_GetShiftState [19:59:57]SAM_PROTO_GetShiftState [19:59:57]wFMCommunicate request_size=4 [19:59:57]MH_SAM_APDU [19:59:57]CAPDU: 80 13 01 00 [19:59:57]Write to MH i2c: E2 08 00 EE 0F 80 13 01 00 00 00 00 00 7A [19:59:57]Write i2c OK [19:59:57]MH_I2C_Read... [19:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:57]Read from MH i2c: E2 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 0E 00 [19:59:57]MH_I2C_Read... [19:59:57]Read from MH i2c: E2 0E 00 EE 0F 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CA [19:59:57]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [19:59:57]wFMCommunicate OK [19:59:57]SAM_PROTO_GetShiftState done [19:59:57]FM_GetShiftState done [19:59:57]opened in 1730075620 [19:59:57]opened+sec_in_day 1730162020 [19:59:57]quantity*price = 50041 [19:59:57]sum+1 = 50042 [19:59:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 314 28.10.2024 19:59 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192766 ФПД: 199198908042739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T195958&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192766&fm=199198908042739&tin=02508201610067®Number=0000000000091776&sum=50041 [19:59:58]StoreToDocumentArchive [19:59:58]shift 543 fd 192766 [19:59:58]save to /storage/0543/doc_00192766 [19:59:58]save last doc name /storage/0543/doc_00192766 to /storage/kkm_last_doc_name [19:59:58]save OK [19:59:58]Clear old archive folders... [19:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:59:58]tlvbuf is 00EE6C00 [19:59:58]SAM_PROTO_ClearQueue [19:59:58]wFMCommunicate request_size=4 [19:59:58]MH_SAM_APDU [19:59:58]CAPDU: 80 09 00 00 [19:59:58]Write to MH i2c: E2 08 00 FB 0F 80 09 00 00 00 00 00 00 7C [19:59:58]Write i2c OK [19:59:58]MH_I2C_Read... [19:59:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:58]Read from MH i2c: E2 [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: E2 03 00 [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: E2 03 00 FB 0F 00 90 00 7E [19:59:58]RAPDU: 90 00 [19:59:58]wFMCommunicate OK [19:59:58]SAM_PROTO_ClearQueue done [19:59:58]KKMCreateOFDPacket [19:59:58]OFDProtocolAddRootSTLVToBuf [19:59:58]FM_MakeSignedData [19:59:58]FM_MakeSignedData [19:59:58]SAM_PROTO_SignData [19:59:58]wFMCommunicate request_size=4 [19:59:58]MH_SAM_APDU [19:59:58]CAPDU: 80 0D 01 02 [19:59:58]Write to MH i2c: E2 08 00 FC 0F 80 0D 01 02 00 00 00 00 84 [19:59:58]Write i2c OK [19:59:58]MH_I2C_Read... [19:59:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:58]Read from MH i2c: E2 [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: E2 03 00 [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: E2 03 00 FC 0F 00 90 00 7F [19:59:58]RAPDU: 90 00 [19:59:58]wFMCommunicate OK [19:59:58]wFMCommunicate request_size=255 [19:59:58]MH_SAM_APDU [19:59:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 3E ED 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE F0 02 00 35 04 06 00 B5 [19:59:58]Write to MH i2c: E2 02 01 FD 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 3E ED 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE F0 02 00 35 04 06 00 B5 00 00 1C [19:59:58]Write i2c OK [19:59:58]MH_I2C_Read... [19:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:58]Read from MH i2c: E2 [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: E2 03 00 [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: E2 03 00 FD 0F 00 90 00 80 [19:59:58]RAPDU: 90 00 [19:59:58]wFMCommunicate OK [19:59:58]wFMCommunicate request_size=10 [19:59:58]MH_SAM_APDU [19:59:58]CAPDU: 80 0D 02 02 05 2B 9C 27 4D F3 [19:59:58]Write to MH i2c: E2 0D 00 FE 0F 80 0D 02 02 05 00 2B 9C 27 4D F3 00 00 BF [19:59:58]Write i2c OK [19:59:58]MH_I2C_Read... [19:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:58]Read from MH i2c: E2 [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: E2 03 00 [19:59:58]MH_I2C_Read... [19:59:58]Read from MH i2c: E2 03 00 FE 0F 00 90 00 81 [19:59:58]RAPDU: 90 00 [19:59:58]wFMCommunicate OK [19:59:58]wFMCommunicate request_size=4 [19:59:58]MH_SAM_APDU [19:59:58]CAPDU: 80 0D 03 02 [19:59:58]Write to MH i2c: E2 08 00 FF 0F 80 0D 03 02 00 00 00 00 89 [19:59:59]Write i2c OK [19:59:59]MH_I2C_Read... [19:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:59]Read from MH i2c: E2 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 0B 00 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 0B 00 FF 0F 00 7F 82 96 B6 FA 56 CF 43 90 00 39 [19:59:59]RAPDU: 7F 82 96 B6 FA 56 CF 43 90 00 [19:59:59]wFMCommunicate OK [19:59:59]SAM_PROTO_SignData done [19:59:59]FM_MakeSignedData done [19:59:59]CreateOFDProtocolMessage [19:59:59]wFMCommunicate request_size=4 [19:59:59]MH_SAM_APDU [19:59:59]CAPDU: 80 11 00 00 [19:59:59]Write to MH i2c: E2 08 00 00 10 80 11 00 00 00 00 00 00 8A [19:59:59]Write i2c OK [19:59:59]MH_I2C_Read... [19:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:59]Read from MH i2c: E2 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 17 00 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: E2 17 00 00 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DD [19:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:59:59]wFMCommunicate OK [19:59:59]CreateOFDProtocolMessage done [19:59:59]OFDSenderStorePacket 192766 [19:59:59]StoreOFDPacket docnum=192766 [19:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0B D1 07 01 6A 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 3E ED 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE F0 02 00 35 04 06 00 B5 2B 9C 27 4D F3 7F 82 96 B6 FA 56 CF 43 [19:59:59]CheckFolder [19:59:59]dirname=/storage/ofd_packets [19:59:59]CheckFolder done [19:59:59]ProducePacketName [19:59:59]name=ofd_packets/00192766 [19:59:59]NVStorageSaveData ofd_packets/00192766 [19:59:59]File name is /storage/ofd_packets/00192766 [19:59:59]Write 301 bytes [19:59:59]NVStorageSaveData done [19:59:59]OFDSenderStorePacket done [19:59:59]KKMCreateOFDPacket done [19:59:59]NVStorageSaveData kkm_last_timestamp [19:59:59]File name is /storage/kkm_last_timestamp [19:59:59]Write 4 bytes [19:59:59]NVStorageSaveData done [19:59:59]ExternCall_PrintAddStr [19:59:59]wPrintStart [19:59:59]Write to MH i2c: 01 00 00 01 10 11 [19:59:59]Write i2c OK [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: 01 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: 01 07 00 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: 01 07 00 01 10 00 00 00 00 00 FF 0F 26 [19:59:59]RasterBufferAndPrint [19:59:59]line Счет N : (1)32095 [19:59:59]line ИНН: 02508201610067 [19:59:59]line Контрольно-Кассовый Чек [19:59:59]line ПРОДАЖА [19:59:59]line ТРК (МРК, ГНК) : 21 [19:59:59]line Товар: 2710124130 [19:59:59]line Аи-92-К-5 [19:59:59]line 7.480 * 66.90 [19:59:59]line = 500.41 [19:59:59]line НДС 12% НСП 1% [19:59:59]line > о реализуемом товаре [19:59:59]line ИТОГО: 500.41 [19:59:59]line НСП 1% : 4.43 [19:59:59]line НДС 12% : 53.14 [19:59:59]line Наличными: 0.00 [19:59:59]line Безнал.: 500.41 [19:59:59]line Место: АЗС № 170 "Партнер Нефть" [19:59:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:59:59]line СНО: Общий режим [19:59:59]line Чек 314 28.10.2024 19:59 [19:59:59]line Смена: 543 ФФД: 1.0 [19:59:59]line ЗНМ: 0300000110 [19:59:59]line РНМ: 0000000000091776 [19:59:59]line Версия ККМ: 001 [19:59:59]line Платежная система: Кыргызкоммерцбанк [19:59:59]line ФМ: 0000000000871754 [19:59:59]line ФД: 192766 [19:59:59]line ФПД: 199198908042739 [19:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T195958&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192766&fm=199198908042739&tin=02508201610067®Number=0000000000091776&sum=50041 [19:59:59]OFD Sender: Processing packet 192766 [packets to send 75, broken 74] [19:59:59]ProducePacketName [19:59:59]name=ofd_packets/00192766 [19:59:59]OFD Sender: To server: pG, [19:59:59]CommunicateWithHost lk.salyk.kg:30040 [19:59:59]ConnectInit lk.salyk.kg [19:59:59]written 0, free lines is 4095 [19:59:59]Connected sock=10 [19:59:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0B D1 07 01 6A 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 3E ED 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE F0 02 00 35 04 06 00 B5 2B 9C 27 4D F3 7F 82 96 B6 FA 56 CF 43 [19:59:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DF FA 47 00 95 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE F0 02 00 F4 03 04 00 01 92 1F 67 B6 04 01 00 00 54 A9 9A D8 9B C7 50 F1 [19:59:59]CommunicateWithHost err = 0 [19:59:59]CheckOFDResponse [19:59:59]1017 (14) - 77093643461234 [19:59:59]1041 (16) - 0000000000871754 [19:59:59]1040 (4) - 192766 [19:59:59]1012 (4) - 28.10.2024 13:30 [19:59:59]1206 (1) - 0 [19:59:59]OFD Sender: Remove packet 192766 [19:59:59]ProducePacketName [19:59:59]name=ofd_packets/00192766 [19:59:59]NVStorageDeleteData [19:59:59]Write to MH i2c: 01 00 00 2B 10 3B [19:59:59]Write i2c OK [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: 01 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: 01 07 00 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: 01 07 00 2B 10 00 00 00 00 00 D5 0C 23 [19:59:59]RasterBufferAndPrint [19:59:59]line [19:59:59]line [19:59:59]line [19:59:59]line [19:59:59]line [19:59:59]written 0, free lines is 3289 [19:59:59]MH_Cut [19:59:59]Write to MH i2c: D1 01 00 32 10 01 14 [19:59:59]Write i2c OK [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: D1 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: D1 01 00 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: D1 01 00 32 10 00 13 [19:59:59]Write to MH i2c: 01 00 00 33 10 43 [19:59:59]Write i2c OK [19:59:59]MH_I2C_Read... [20:00:00]OFD Sender: No OFD packet to send [20:00:00]*** Cut start [20:00:00]*** Partial cut [20:00:00]*** CUTSNS_PIN = 1 [20:00:00]*** CUTSNS_PIN = 0 [20:00:00]*** Brake cut motor [20:00:01]Read from MH i2c: 01 [20:00:01]MH_I2C_Read... [20:00:01]*** Stop cut motor [20:00:01]*** Cut end [20:00:01]Read from MH i2c: 01 07 00 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: 01 07 00 33 10 00 00 00 00 00 FF 0F 58 [20:00:01]process_action close_receipt done [20:00:01]requested_data is exist [20:00:01]produce_requested_data [20:00:01]requested_item fm.sn is exist - process it [20:00:01]wFMCommunicate request_size=4 [20:00:01]MH_SAM_APDU [20:00:01]CAPDU: 80 11 00 00 [20:00:01]Write to MH i2c: E2 08 00 34 10 80 11 00 00 00 00 00 00 BE [20:00:01]Write i2c OK [20:00:01]MH_I2C_Read... [20:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:01]Read from MH i2c: E2 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 17 00 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 17 00 34 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 11 [20:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:00:01]wFMCommunicate OK [20:00:01]requested_item fd.num is exist - process it [20:00:01]SAM_PROTO_GetFieldsCounters [20:00:01]wFMCommunicate request_size=4 [20:00:01]MH_SAM_APDU [20:00:01]CAPDU: 80 13 00 00 [20:00:01]Write to MH i2c: E2 08 00 35 10 80 13 00 00 00 00 00 00 C1 [20:00:01]Write i2c OK [20:00:01]MH_I2C_Read... [20:00:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:01]Read from MH i2c: E2 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 62 00 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 62 00 35 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FE F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 A9 [20:00:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FE F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:01]wFMCommunicate OK [20:00:01]SAM_PROTO_GetFieldsCounters done [20:00:01]requested_item shift.num is exist - process it [20:00:01]requested_item shift.opened is exist - process it [20:00:01]req_shift_opened [20:00:01]FM_GetShiftState [20:00:01]SAM_PROTO_GetShiftState [20:00:01]wFMCommunicate request_size=4 [20:00:01]MH_SAM_APDU [20:00:01]CAPDU: 80 13 01 00 [20:00:01]Write to MH i2c: E2 08 00 36 10 80 13 01 00 00 00 00 00 C3 [20:00:01]Write i2c OK [20:00:01]MH_I2C_Read... [20:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:01]Read from MH i2c: E2 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 0E 00 [20:00:01]MH_I2C_Read... [20:00:01]Read from MH i2c: E2 0E 00 36 10 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 13 [20:00:01]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [20:00:01]wFMCommunicate OK [20:00:01]SAM_PROTO_GetShiftState done [20:00:01]FM_GetShiftState done [20:00:01]req_shift_opened done [20:00:01]requested_item shift.open_date is exist - process it [20:00:01]req_shift_open_date [20:00:01]req_shift_open_date done [20:00:01]produce_requested_data done [20:00:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192766,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [20:00:01]process_action_free close_receipt [20:00:01]json_value_free [20:00:01]json_value_free done [20:00:01]process_json_proto returns [20:00:01]Send response to host [20:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192766,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [20:00:01]free response buf [20:00:01]execute_script done [20:00:01]execute_script returns [20:00:01]free content buf [20:00:01]Sock 9.Close socket [20:00:01]Sock 9.Thread stoped [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:18]accept exits with 8 [20:03:18]New connection [20:03:18]New thread 3066658148 created [20:03:18]Thread 3066801508 joined [20:03:18]Waiting for new connection... [20:03:18] Sock 8.Parse request [20:03:18]Sock 8.Check first char [20:03:18]Sock 8.First char is OK [20:03:18]request: POST /json_proto HTTP/1.0 [20:03:18]Method: POST [20:03:18]URL: /json_proto [20:03:18]Method is POST - this is cgi request [20:03:18]url: /json_proto [20:03:18]query_string will be loaded in cgi processing [20:03:18]execute_cgi json_proto POST (null) [20:03:18]execute_cgi path=json_proto method=POST [20:03:18]POST find Content-Length [20:03:18]Host: 172.17.63.131:8080 [20:03:18]Content-Length: 676 [20:03:18]Content-Type: application/json [20:03:18] [20:03:18]POST finish read [20:03:18]Found Content-Length = 676 [20:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:18]execute_script... [20:03:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:18]POST & json_proto [20:03:18]process_json_proto [20:03:18]json parsed OK: [20:03:18]protocol is kg_v1.0 [20:03:18]action value=close_receipt [20:03:18]process_action close_receipt [20:03:18]cmd_close_receipt [20:03:18]MH_GetDate [20:03:18]Write to MH i2c: F0 00 00 37 10 36 [20:03:18]Write i2c OK [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: F0 [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: F0 09 00 [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: F0 09 00 37 10 00 07 EE 1F 67 22 05 6E 64 B3 [20:03:18]GetLastDocTimeStamp 1730145598 [20:03:18]current date 1730145799 [20:03:18]FM_GetShiftState [20:03:18]SAM_PROTO_GetShiftState [20:03:18]wFMCommunicate request_size=4 [20:03:18]MH_SAM_APDU [20:03:18]CAPDU: 80 13 01 00 [20:03:18]Write to MH i2c: E2 08 00 38 10 80 13 01 00 00 00 00 00 C5 [20:03:18]Write i2c OK [20:03:18]MH_I2C_Read... [20:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:18]Read from MH i2c: E2 [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: E2 0E 00 [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: E2 0E 00 38 10 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 15 [20:03:18]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [20:03:18]wFMCommunicate OK [20:03:18]SAM_PROTO_GetShiftState done [20:03:18]FM_GetShiftState done [20:03:18]opened in 1730075620 [20:03:18]opened+sec_in_day 1730162020 [20:03:18]quantity*price = 60009 [20:03:18]sum+1 = 60010 [20:03:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 315 28.10.2024 20:03 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192767 ФПД: 78267975587422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T200319&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192767&fm=78267975587422&tin=02508201610067®Number=0000000000091776&sum=60000 [20:03:19]StoreToDocumentArchive [20:03:19]shift 543 fd 192767 [20:03:19]save to /storage/0543/doc_00192767 [20:03:19]save last doc name /storage/0543/doc_00192767 to /storage/kkm_last_doc_name [20:03:19]save OK [20:03:19]Clear old archive folders... [20:03:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:19]tlvbuf is 00ECAC90 [20:03:19]SAM_PROTO_ClearQueue [20:03:19]wFMCommunicate request_size=4 [20:03:19]MH_SAM_APDU [20:03:19]CAPDU: 80 09 00 00 [20:03:19]Write to MH i2c: E2 08 00 45 10 80 09 00 00 00 00 00 00 C7 [20:03:19]Write i2c OK [20:03:19]MH_I2C_Read... [20:03:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:19]Read from MH i2c: E2 [20:03:19]MH_I2C_Read... [20:03:19]Read from MH i2c: E2 03 00 [20:03:19]MH_I2C_Read... [20:03:19]Read from MH i2c: E2 03 00 45 10 00 90 00 C9 [20:03:19]RAPDU: 90 00 [20:03:19]wFMCommunicate OK [20:03:19]SAM_PROTO_ClearQueue done [20:03:19]KKMCreateOFDPacket [20:03:19]OFDProtocolAddRootSTLVToBuf [20:03:19]FM_MakeSignedData [20:03:19]FM_MakeSignedData [20:03:19]SAM_PROTO_SignData [20:03:19]wFMCommunicate request_size=4 [20:03:19]MH_SAM_APDU [20:03:19]CAPDU: 80 0D 01 02 [20:03:19]Write to MH i2c: E2 08 00 46 10 80 0D 01 02 00 00 00 00 CF [20:03:19]Write i2c OK [20:03:19]MH_I2C_Read... [20:03:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:20]Read from MH i2c: E2 [20:03:20]MH_I2C_Read... [20:03:20]Read from MH i2c: E2 03 00 [20:03:20]MH_I2C_Read... [20:03:20]Read from MH i2c: E2 03 00 46 10 00 90 00 CA [20:03:20]RAPDU: 90 00 [20:03:20]wFMCommunicate OK [20:03:20]wFMCommunicate request_size=255 [20:03:20]MH_SAM_APDU [20:03: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 07 EE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF F0 02 00 35 04 06 00 47 [20:03:20]Write to MH i2c: E2 02 01 47 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 07 EE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF F0 02 00 35 04 06 00 47 00 00 50 [20:03:20]Write i2c OK [20:03:20]MH_I2C_Read... [20:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:20]Read from MH i2c: E2 [20:03:20]MH_I2C_Read... [20:03:20]Read from MH i2c: E2 03 00 [20:03:20]MH_I2C_Read... [20:03:20]Read from MH i2c: E2 03 00 47 10 00 90 00 CB [20:03:20]RAPDU: 90 00 [20:03:20]wFMCommunicate OK [20:03:20]wFMCommunicate request_size=10 [20:03:20]MH_SAM_APDU [20:03:20]CAPDU: 80 0D 02 02 05 2F 2E E1 D6 5E [20:03:20]Write to MH i2c: E2 0D 00 48 10 80 0D 02 02 05 00 2F 2E E1 D6 5E 00 00 4E [20:03:20]Write i2c OK [20:03:20]MH_I2C_Read... [20:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:20]Read from MH i2c: E2 [20:03:20]MH_I2C_Read... [20:03:20]Read from MH i2c: E2 03 00 [20:03:20]MH_I2C_Read... [20:03:20]Read from MH i2c: E2 03 00 48 10 00 90 00 CC [20:03:20]RAPDU: 90 00 [20:03:20]wFMCommunicate OK [20:03:20]wFMCommunicate request_size=4 [20:03:20]MH_SAM_APDU [20:03:20]CAPDU: 80 0D 03 02 [20:03:20]Write to MH i2c: E2 08 00 49 10 80 0D 03 02 00 00 00 00 D4 [20:03:20]Write i2c OK [20:03:20]MH_I2C_Read... [20:03:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:20]Read from MH i2c: E2 [20:03:20]MH_I2C_Read... [20:03:20]Read from MH i2c: E2 0B 00 [20:03:20]MH_I2C_Read... [20:03:20]Read from MH i2c: E2 0B 00 49 10 00 AB 55 1B E8 4E FD F9 45 90 00 61 [20:03:20]RAPDU: AB 55 1B E8 4E FD F9 45 90 00 [20:03:20]wFMCommunicate OK [20:03:20]SAM_PROTO_SignData done [20:03:20]FM_MakeSignedData done [20:03:20]CreateOFDProtocolMessage [20:03:20]wFMCommunicate request_size=4 [20:03:20]MH_SAM_APDU [20:03:20]CAPDU: 80 11 00 00 [20:03:20]Write to MH i2c: E2 08 00 4A 10 80 11 00 00 00 00 00 00 D4 [20:03:20]Write i2c OK [20:03:20]MH_I2C_Read... [20:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:20]Read from MH i2c: E2 [20:03:20]MH_I2C_Read... [20:03:20]Read from MH i2c: E2 17 00 [20:03:20]MH_I2C_Read... [20:03:20]Read from MH i2c: E2 17 00 4A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 27 [20:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:03:20]wFMCommunicate OK [20:03:20]CreateOFDProtocolMessage done [20:03:20]OFDSenderStorePacket 192767 [20:03:20]StoreOFDPacket docnum=192767 [20:03:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B8 0B 07 01 DB 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 07 EE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF F0 02 00 35 04 06 00 47 2F 2E E1 D6 5E AB 55 1B E8 4E FD F9 45 [20:03:20]CheckFolder [20:03:20]dirname=/storage/ofd_packets [20:03:20]CheckFolder done [20:03:20]ProducePacketName [20:03:20]name=ofd_packets/00192767 [20:03:20]NVStorageSaveData ofd_packets/00192767 [20:03:20]File name is /storage/ofd_packets/00192767 [20:03:20]Write 301 bytes [20:03:20]NVStorageSaveData done [20:03:20]OFDSenderStorePacket done [20:03:20]KKMCreateOFDPacket done [20:03:20]NVStorageSaveData kkm_last_timestamp [20:03:20]File name is /storage/kkm_last_timestamp [20:03:20]Write 4 bytes [20:03:20]NVStorageSaveData done [20:03:20]ExternCall_PrintAddStr [20:03:20]wPrintStart [20:03:20]Write to MH i2c: 01 00 00 4B 10 5B [20:03:20]Write i2c OK [20:03:20]MH_I2C_Read... [20:03:20]Read from MH i2c: 01 [20:03:20]MH_I2C_Read... [20:03:20]Read from MH i2c: 01 07 00 [20:03:20]MH_I2C_Read... [20:03:20]Read from MH i2c: 01 07 00 4B 10 00 00 00 00 00 FF 0F 70 [20:03:20]RasterBufferAndPrint [20:03:20]line Счет N : (1)32097 [20:03:20]line ИНН: 02508201610067 [20:03:20]line Контрольно-Кассовый Чек [20:03:20]line ПРОДАЖА [20:03:20]line ТРК (МРК, ГНК) : 12 [20:03:20]line Товар: 2710124130 [20:03:20]line Аи-92-К-5 [20:03:20]line 8.970 * 66.90 [20:03:20]line = 600.09 [20:03:20]line НДС 12% НСП 1% [20:03:20]line > о реализуемом товаре [20:03:20]line ОКРУГЛЕНИЕ: -0.09 [20:03:20]line ИТОГО: 600.00 [20:03:20]line Внесено: 600.00 [20:03:20]line СДАЧА: 0.00 [20:03:20]line НСП 1% : 5.31 [20:03:20]line НДС 12% : 63.73 [20:03:20]line Наличными: 600.00 [20:03:20]line Безнал.: 0.00 [20:03:20]line Место: АЗС № 170 "Партнер Нефть" [20:03:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:03:20]line СНО: Общий режим [20:03:20]line Чек 315 28.10.2024 20:03 [20:03:20]line Смена: 543 ФФД: 1.0 [20:03:20]line ЗНМ: 0300000110 [20:03:20]line РНМ: 0000000000091776 [20:03:20]line Версия ККМ: 001 [20:03:20]line ФМ: 0000000000871754 [20:03:20]line ФД: 192767 [20:03:20]line ФПД: 78267975587422 [20:03:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T200319&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192767&fm=78267975587422&tin=02508201610067®Number=0000000000091776&sum=60000 [20:03:20]OFD Sender: Processing packet 192767 [packets to send 75, broken 74] [20:03:20]ProducePacketName [20:03:20]name=ofd_packets/00192767 [20:03:20]OFD Sender: To server: pG, [20:03:20]CommunicateWithHost lk.salyk.kg:30040 [20:03:20]ConnectInit lk.salyk.kg [20:03:20]written 0, free lines is 4095 [20:03:20]Connected sock=10 [20:03:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B8 0B 07 01 DB 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 07 EE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF F0 02 00 35 04 06 00 47 2F 2E E1 D6 5E AB 55 1B E8 4E FD F9 45 [20:03:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6A 6E 47 00 45 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF F0 02 00 F4 03 04 00 CA 92 1F 67 B6 04 01 00 00 47 13 88 18 A8 8D 8C 73 [20:03:21]CommunicateWithHost err = 0 [20:03:21]CheckOFDResponse [20:03:21]1017 (14) - 77093643461234 [20:03:21]1041 (16) - 0000000000871754 [20:03:21]1040 (4) - 192767 [20:03:21]1012 (4) - 28.10.2024 13:34 [20:03:21]1206 (1) - 0 [20:03:21]OFD Sender: Remove packet 192767 [20:03:21]ProducePacketName [20:03:21]name=ofd_packets/00192767 [20:03:21]NVStorageDeleteData [20:03:21]Write to MH i2c: 01 00 00 76 10 86 [20:03:21]Write i2c OK [20:03:21]MH_I2C_Read... [20:03:21]Read from MH i2c: 01 [20:03:21]MH_I2C_Read... [20:03:21]Read from MH i2c: 01 07 00 [20:03:21]MH_I2C_Read... [20:03:21]Read from MH i2c: 01 07 00 76 10 00 00 00 00 00 BF 0C 58 [20:03:21]RasterBufferAndPrint [20:03:21]line [20:03:21]line [20:03:21]line [20:03:21]line [20:03:21]line [20:03:21]written 0, free lines is 3269 [20:03:21]MH_Cut [20:03:21]Write to MH i2c: D1 01 00 7D 10 01 5F [20:03:21]Write i2c OK [20:03:21]MH_I2C_Read... [20:03:21]Read from MH i2c: D1 [20:03:21]MH_I2C_Read... [20:03:21]Read from MH i2c: D1 01 00 [20:03:21]MH_I2C_Read... [20:03:21]Read from MH i2c: D1 01 00 7D 10 00 5E [20:03:21]Write to MH i2c: 01 00 00 7E 10 8E [20:03:21]Write i2c OK [20:03:21]MH_I2C_Read... [20:03:21]OFD Sender: No OFD packet to send [20:03:22]*** Cut start [20:03:22]*** Partial cut [20:03:22]*** CUTSNS_PIN = 1 [20:03:22]*** CUTSNS_PIN = 0 [20:03:22]*** Brake cut motor [20:03:22]Read from MH i2c: 01 [20:03:22]MH_I2C_Read... [20:03:22]*** Stop cut motor [20:03:22]*** Cut end [20:03:22]Read from MH i2c: 01 07 00 [20:03:22]MH_I2C_Read... [20:03:22]Read from MH i2c: 01 07 00 7E 10 00 00 00 00 00 FF 0F A3 [20:03:22]process_action close_receipt done [20:03:22]requested_data is exist [20:03:22]produce_requested_data [20:03:22]requested_item fm.sn is exist - process it [20:03:22]wFMCommunicate request_size=4 [20:03:22]MH_SAM_APDU [20:03:22]CAPDU: 80 11 00 00 [20:03:22]Write to MH i2c: E2 08 00 7F 10 80 11 00 00 00 00 00 00 09 [20:03:22]Write i2c OK [20:03:22]MH_I2C_Read... [20:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:22]Read from MH i2c: E2 [20:03:22]MH_I2C_Read... [20:03:22]Read from MH i2c: E2 17 00 [20:03:22]MH_I2C_Read... [20:03:22]Read from MH i2c: E2 17 00 7F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [20:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:03:22]wFMCommunicate OK [20:03:22]requested_item fd.num is exist - process it [20:03:22]SAM_PROTO_GetFieldsCounters [20:03:22]wFMCommunicate request_size=4 [20:03:22]MH_SAM_APDU [20:03:22]CAPDU: 80 13 00 00 [20:03:22]Write to MH i2c: E2 08 00 80 10 80 13 00 00 00 00 00 00 0C [20:03:22]Write i2c OK [20:03:22]MH_I2C_Read... [20:03:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:22]Read from MH i2c: E2 [20:03:22]MH_I2C_Read... [20:03:22]Read from MH i2c: E2 62 00 [20:03:22]MH_I2C_Read... [20:03:22]Read from MH i2c: E2 62 00 80 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FF F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [20:03:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FF F0 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:03:22]wFMCommunicate OK [20:03:22]SAM_PROTO_GetFieldsCounters done [20:03:22]requested_item shift.num is exist - process it [20:03:22]requested_item shift.opened is exist - process it [20:03:22]req_shift_opened [20:03:22]FM_GetShiftState [20:03:22]SAM_PROTO_GetShiftState [20:03:22]wFMCommunicate request_size=4 [20:03:22]MH_SAM_APDU [20:03:22]CAPDU: 80 13 01 00 [20:03:22]Write to MH i2c: E2 08 00 81 10 80 13 01 00 00 00 00 00 0E [20:03:22]Write i2c OK [20:03:22]MH_I2C_Read... [20:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:22]Read from MH i2c: E2 [20:03:22]MH_I2C_Read... [20:03:22]Read from MH i2c: E2 0E 00 [20:03:22]MH_I2C_Read... [20:03:22]Read from MH i2c: E2 0E 00 81 10 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 5E [20:03:22]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [20:03:22]wFMCommunicate OK [20:03:22]SAM_PROTO_GetShiftState done [20:03:22]FM_GetShiftState done [20:03:22]req_shift_opened done [20:03:22]requested_item shift.open_date is exist - process it [20:03:22]req_shift_open_date [20:03:22]req_shift_open_date done [20:03:22]produce_requested_data done [20:03:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192767,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [20:03:22]process_action_free close_receipt [20:03:22]json_value_free [20:03:22]json_value_free done [20:03:22]process_json_proto returns [20:03:22]Send response to host [20:03:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192767,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [20:03:22]free response buf [20:03:22]execute_script done [20:03:22]execute_script returns [20:03:22]free content buf [20:03:22]Sock 8.Close socket [20:03:22]Sock 8.Thread stoped [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:04:56]accept exits with 9 [20:04:56]New connection [20:04:56]New thread 3066801508 created [20:04:56]Thread 3066658148 joined [20:04:56]Waiting for new connection... [20:04:56] Sock 9.Parse request [20:04:56]Sock 9.Check first char [20:04:56]Sock 9.First char is OK [20:04:56]request: POST /json_proto HTTP/1.0 [20:04:56]Method: POST [20:04:56]URL: /json_proto [20:04:56]Method is POST - this is cgi request [20:04:56]url: /json_proto [20:04:56]query_string will be loaded in cgi processing [20:04:56]execute_cgi json_proto POST (null) [20:04:56]execute_cgi path=json_proto method=POST [20:04:56]POST find Content-Length [20:04:56]Host: 172.17.63.131:8080 [20:04:56]Content-Length: 676 [20:04:56]Content-Type: application/json [20:04:56] [20:04:56]POST finish read [20:04:56]Found Content-Length = 676 [20:04:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:56]execute_script... [20:04: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)32098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:56]POST & json_proto [20:04:56]process_json_proto [20:04:56]json parsed OK: [20:04:56]protocol is kg_v1.0 [20:04:56]action value=close_receipt [20:04:56]process_action close_receipt [20:04:56]cmd_close_receipt [20:04:56]MH_GetDate [20:04:56]Write to MH i2c: F0 00 00 82 10 81 [20:04:56]Write i2c OK [20:04:56]MH_I2C_Read... [20:04:56]Read from MH i2c: F0 [20:04:56]MH_I2C_Read... [20:04:56]Read from MH i2c: F0 09 00 [20:04:56]MH_I2C_Read... [20:04:56]Read from MH i2c: F0 09 00 82 10 00 69 EE 1F 67 22 05 6E 64 60 [20:04:56]GetLastDocTimeStamp 1730145799 [20:04:56]current date 1730145897 [20:04:56]FM_GetShiftState [20:04:56]SAM_PROTO_GetShiftState [20:04:56]wFMCommunicate request_size=4 [20:04:56]MH_SAM_APDU [20:04:56]CAPDU: 80 13 01 00 [20:04:56]Write to MH i2c: E2 08 00 83 10 80 13 01 00 00 00 00 00 10 [20:04:56]Write i2c OK [20:04:56]MH_I2C_Read... [20:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:56]Read from MH i2c: E2 [20:04:56]MH_I2C_Read... [20:04:56]Read from MH i2c: E2 0E 00 [20:04:56]MH_I2C_Read... [20:04:56]Read from MH i2c: E2 0E 00 83 10 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 60 [20:04:56]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [20:04:56]wFMCommunicate OK [20:04:56]SAM_PROTO_GetShiftState done [20:04:56]FM_GetShiftState done [20:04:56]opened in 1730075620 [20:04:56]opened+sec_in_day 1730162020 [20:04:56]quantity*price = 50041 [20:04:56]sum+1 = 50042 [20:04:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 316 28.10.2024 20:04 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192768 ФПД: 152266653070958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T200457&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192768&fm=152266653070958&tin=02508201610067®Number=0000000000091776&sum=50000 [20:04:57]StoreToDocumentArchive [20:04:57]shift 543 fd 192768 [20:04:57]save to /storage/0543/doc_00192768 [20:04:57]save last doc name /storage/0543/doc_00192768 to /storage/kkm_last_doc_name [20:04:57]save OK [20:04:57]Clear old archive folders... [20:04:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:04:58]tlvbuf is 00ECAF80 [20:04:58]SAM_PROTO_ClearQueue [20:04:58]wFMCommunicate request_size=4 [20:04:58]MH_SAM_APDU [20:04:58]CAPDU: 80 09 00 00 [20:04:58]Write to MH i2c: E2 08 00 90 10 80 09 00 00 00 00 00 00 12 [20:04:58]Write i2c OK [20:04:58]MH_I2C_Read... [20:04:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:04:58]Read from MH i2c: E2 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: E2 03 00 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: E2 03 00 90 10 00 90 00 14 [20:04:58]RAPDU: 90 00 [20:04:58]wFMCommunicate OK [20:04:58]SAM_PROTO_ClearQueue done [20:04:58]KKMCreateOFDPacket [20:04:58]OFDProtocolAddRootSTLVToBuf [20:04:58]FM_MakeSignedData [20:04:58]FM_MakeSignedData [20:04:58]SAM_PROTO_SignData [20:04:58]wFMCommunicate request_size=4 [20:04:58]MH_SAM_APDU [20:04:58]CAPDU: 80 0D 01 02 [20:04:58]Write to MH i2c: E2 08 00 91 10 80 0D 01 02 00 00 00 00 1A [20:04:58]Write i2c OK [20:04:58]MH_I2C_Read... [20:04:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:04:58]Read from MH i2c: E2 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: E2 03 00 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: E2 03 00 91 10 00 90 00 15 [20:04:58]RAPDU: 90 00 [20:04:58]wFMCommunicate OK [20:04:58]wFMCommunicate request_size=255 [20:04:58]MH_SAM_APDU [20:04:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 69 EE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 F1 02 00 35 04 06 00 8A [20:04:58]Write to MH i2c: E2 02 01 92 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 69 EE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 F1 02 00 35 04 06 00 8A 00 00 66 [20:04:58]Write i2c OK [20:04:58]MH_I2C_Read... [20:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:58]Read from MH i2c: E2 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: E2 03 00 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: E2 03 00 92 10 00 90 00 16 [20:04:58]RAPDU: 90 00 [20:04:58]wFMCommunicate OK [20:04:58]wFMCommunicate request_size=10 [20:04:58]MH_SAM_APDU [20:04:58]CAPDU: 80 0D 02 02 05 7C 57 C4 76 6E [20:04:58]Write to MH i2c: E2 0D 00 93 10 80 0D 02 02 05 00 7C 57 C4 76 6E 00 00 A2 [20:04:58]Write i2c OK [20:04:58]MH_I2C_Read... [20:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:58]Read from MH i2c: E2 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: E2 03 00 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: E2 03 00 93 10 00 90 00 17 [20:04:58]RAPDU: 90 00 [20:04:58]wFMCommunicate OK [20:04:58]wFMCommunicate request_size=4 [20:04:58]MH_SAM_APDU [20:04:58]CAPDU: 80 0D 03 02 [20:04:58]Write to MH i2c: E2 08 00 94 10 80 0D 03 02 00 00 00 00 1F [20:04:58]Write i2c OK [20:04:58]MH_I2C_Read... [20:04:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:04:58]Read from MH i2c: E2 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: E2 0B 00 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: E2 0B 00 94 10 00 3D 1D 55 C9 D1 4A EF DF 90 00 81 [20:04:58]RAPDU: 3D 1D 55 C9 D1 4A EF DF 90 00 [20:04:58]wFMCommunicate OK [20:04:58]SAM_PROTO_SignData done [20:04:58]FM_MakeSignedData done [20:04:58]CreateOFDProtocolMessage [20:04:58]wFMCommunicate request_size=4 [20:04:58]MH_SAM_APDU [20:04:58]CAPDU: 80 11 00 00 [20:04:58]Write to MH i2c: E2 08 00 95 10 80 11 00 00 00 00 00 00 1F [20:04:58]Write i2c OK [20:04:58]MH_I2C_Read... [20:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:58]Read from MH i2c: E2 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: E2 17 00 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: E2 17 00 95 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 72 [20:04:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:04:58]wFMCommunicate OK [20:04:58]CreateOFDProtocolMessage done [20:04:58]OFDSenderStorePacket 192768 [20:04:58]StoreOFDPacket docnum=192768 [20:04:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7A 63 07 01 71 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 69 EE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 F1 02 00 35 04 06 00 8A 7C 57 C4 76 6E 3D 1D 55 C9 D1 4A EF DF [20:04:58]CheckFolder [20:04:58]dirname=/storage/ofd_packets [20:04:58]CheckFolder done [20:04:58]ProducePacketName [20:04:58]name=ofd_packets/00192768 [20:04:58]NVStorageSaveData ofd_packets/00192768 [20:04:58]File name is /storage/ofd_packets/00192768 [20:04:58]Write 301 bytes [20:04:58]NVStorageSaveData done [20:04:58]OFDSenderStorePacket done [20:04:58]KKMCreateOFDPacket done [20:04:58]NVStorageSaveData kkm_last_timestamp [20:04:58]File name is /storage/kkm_last_timestamp [20:04:58]Write 4 bytes [20:04:58]NVStorageSaveData done [20:04:58]ExternCall_PrintAddStr [20:04:58]wPrintStart [20:04:58]Write to MH i2c: 01 00 00 96 10 A6 [20:04:58]Write i2c OK [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: 01 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: 01 07 00 [20:04:58]MH_I2C_Read... [20:04:58]Read from MH i2c: 01 07 00 96 10 00 00 00 00 00 FF 0F BB [20:04:58]RasterBufferAndPrint [20:04:58]line Счет N : (1)32098 [20:04:58]line ИНН: 02508201610067 [20:04:58]line Контрольно-Кассовый Чек [20:04:58]line ПРОДАЖА [20:04:58]line ТРК (МРК, ГНК) : 12 [20:04:58]line Товар: 2710124130 [20:04:58]line Аи-92-К-5 [20:04:58]line 7.480 * 66.90 [20:04:58]line = 500.41 [20:04:58]line НДС 12% НСП 1% [20:04:58]line > о реализуемом товаре [20:04:58]line ОКРУГЛЕНИЕ: -0.41 [20:04:58]line ИТОГО: 500.00 [20:04:58]line Внесено: 500.00 [20:04:58]line СДАЧА: 0.00 [20:04:58]line НСП 1% : 4.43 [20:04:58]line НДС 12% : 53.14 [20:04:58]line Наличными: 500.00 [20:04:58]line Безнал.: 0.00 [20:04:58]line Место: АЗС № 170 "Партнер Нефть" [20:04:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:04:58]line СНО: Общий режим [20:04:58]line Чек 316 28.10.2024 20:04 [20:04:58]line Смена: 543 ФФД: 1.0 [20:04:58]line ЗНМ: 0300000110 [20:04:58]line РНМ: 0000000000091776 [20:04:58]line Версия ККМ: 001 [20:04:58]line ФМ: 0000000000871754 [20:04:58]line ФД: 192768 [20:04:58]line ФПД: 152266653070958 [20:04:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T200457&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192768&fm=152266653070958&tin=02508201610067®Number=0000000000091776&sum=50000 [20:04:58]OFD Sender: Processing packet 192768 [packets to send 75, broken 74] [20:04:58]ProducePacketName [20:04:58]name=ofd_packets/00192768 [20:04:58]OFD Sender: To server: pG, [20:04:58]CommunicateWithHost lk.salyk.kg:30040 [20:04:58]ConnectInit lk.salyk.kg [20:04:58]written 0, free lines is 4095 [20:04:58]Connected sock=10 [20: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 31 37 35 34 0F 01 00 00 7A 63 07 01 71 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 69 EE 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 F1 02 00 35 04 06 00 8A 7C 57 C4 76 6E 3D 1D 55 C9 D1 4A EF DF [20:04:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 77 38 47 00 5A 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 31 37 35 34 10 04 04 00 00 F1 02 00 F4 03 04 00 2C 93 1F 67 B6 04 01 00 00 2B 95 2F FF D8 21 61 18 [20:04:59]CommunicateWithHost err = 0 [20:04:59]CheckOFDResponse [20:04:59]1017 (14) - 77093643461234 [20:04:59]1041 (16) - 0000000000871754 [20:04:59]1040 (4) - 192768 [20:04:59]1012 (4) - 28.10.2024 13:35 [20:04:59]1206 (1) - 0 [20:04:59]OFD Sender: Remove packet 192768 [20:04:59]ProducePacketName [20:04:59]name=ofd_packets/00192768 [20:04:59]NVStorageDeleteData [20:04:59]Write to MH i2c: 01 00 00 C1 10 D1 [20:04:59]Write i2c OK [20:04:59]MH_I2C_Read... [20:04:59]Read from MH i2c: 01 [20:04:59]MH_I2C_Read... [20:04:59]Read from MH i2c: 01 07 00 [20:04:59]MH_I2C_Read... [20:04:59]Read from MH i2c: 01 07 00 C1 10 00 00 00 00 00 B3 0C 97 [20:04:59]RasterBufferAndPrint [20:04:59]line [20:04:59]line [20:04:59]line [20:04:59]line [20:04:59]line [20:04:59]written 0, free lines is 3258 [20:04:59]MH_Cut [20:04:59]Write to MH i2c: D1 01 00 C8 10 01 AA [20:04:59]Write i2c OK [20:04:59]MH_I2C_Read... [20:04:59]Read from MH i2c: D1 [20:04:59]MH_I2C_Read... [20:04:59]Read from MH i2c: D1 01 00 [20:04:59]MH_I2C_Read... [20:04:59]Read from MH i2c: D1 01 00 C8 10 00 A9 [20:04:59]Write to MH i2c: 01 00 00 C9 10 D9 [20:04:59]Write i2c OK [20:04:59]MH_I2C_Read... [20:04:59]OFD Sender: No OFD packet to send [20:05:00]*** Cut start [20:05:00]*** Partial cut [20:05:00]*** CUTSNS_PIN = 1 [20:05:00]*** CUTSNS_PIN = 0 [20:05:00]*** Brake cut motor [20:05:00]*** Stop cut motor [20:05:00]*** Cut end [20:05:00]Read from MH i2c: 01 [20:05:00]MH_I2C_Read... [20:05:00]Read from MH i2c: 01 07 00 [20:05:00]MH_I2C_Read... [20:05:00]Read from MH i2c: 01 07 00 C9 10 00 00 00 00 00 FF 0F EE [20:05:00]process_action close_receipt done [20:05:00]requested_data is exist [20:05:00]produce_requested_data [20:05:00]requested_item fm.sn is exist - process it [20:05:00]wFMCommunicate request_size=4 [20:05:00]MH_SAM_APDU [20:05:00]CAPDU: 80 11 00 00 [20:05:00]Write to MH i2c: E2 08 00 CA 10 80 11 00 00 00 00 00 00 54 [20:05:00]Write i2c OK [20:05:00]MH_I2C_Read... [20:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:00]Read from MH i2c: E2 [20:05:00]MH_I2C_Read... [20:05:00]Read from MH i2c: E2 17 00 [20:05:00]MH_I2C_Read... [20:05:00]Read from MH i2c: E2 17 00 CA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A7 [20:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:05:00]wFMCommunicate OK [20:05:00]requested_item fd.num is exist - process it [20:05:00]SAM_PROTO_GetFieldsCounters [20:05:00]wFMCommunicate request_size=4 [20:05:00]MH_SAM_APDU [20:05:00]CAPDU: 80 13 00 00 [20:05:00]Write to MH i2c: E2 08 00 CB 10 80 13 00 00 00 00 00 00 57 [20:05:00]Write i2c OK [20:05:00]MH_I2C_Read... [20:05:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:00]Read from MH i2c: E2 [20:05:00]MH_I2C_Read... [20:05:00]Read from MH i2c: E2 62 00 [20:05:00]MH_I2C_Read... [20:05:00]Read from MH i2c: E2 62 00 CB 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 00 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 48 [20:05:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 00 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:00]wFMCommunicate OK [20:05:00]SAM_PROTO_GetFieldsCounters done [20:05:00]requested_item shift.num is exist - process it [20:05:00]requested_item shift.opened is exist - process it [20:05:00]req_shift_opened [20:05:00]FM_GetShiftState [20:05:00]SAM_PROTO_GetShiftState [20:05:00]wFMCommunicate request_size=4 [20:05:00]MH_SAM_APDU [20:05:00]CAPDU: 80 13 01 00 [20:05:00]Write to MH i2c: E2 08 00 CC 10 80 13 01 00 00 00 00 00 59 [20:05:00]Write i2c OK [20:05:00]MH_I2C_Read... [20:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:00]Read from MH i2c: E2 [20:05:00]MH_I2C_Read... [20:05:00]Read from MH i2c: E2 0E 00 [20:05:00]MH_I2C_Read... [20:05:00]Read from MH i2c: E2 0E 00 CC 10 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A9 [20:05:00]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [20:05:00]wFMCommunicate OK [20:05:00]SAM_PROTO_GetShiftState done [20:05:00]FM_GetShiftState done [20:05:00]req_shift_opened done [20:05:00]requested_item shift.open_date is exist - process it [20:05:00]req_shift_open_date [20:05:00]req_shift_open_date done [20:05:01]produce_requested_data done [20:05:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192768,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [20:05:01]process_action_free close_receipt [20:05:01]json_value_free [20:05:01]json_value_free done [20:05:01]process_json_proto returns [20:05:01]Send response to host [20:05:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192768,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [20:05:01]free response buf [20:05:01]execute_script done [20:05:01]execute_script returns [20:05:01]free content buf [20:05:01]Sock 9.Close socket [20:05:01]Sock 9.Thread stoped [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:02]accept exits with 8 [20:09:02]New connection [20:09:02]New thread 3066658148 created [20:09:02]Thread 3066801508 joined [20:09:02]Waiting for new connection... [20:09:02] Sock 8.Parse request [20:09:02]Sock 8.Check first char [20:09:02]Sock 8.First char is OK [20:09:02]request: POST /json_proto HTTP/1.0 [20:09:02]Method: POST [20:09:02]URL: /json_proto [20:09:02]Method is POST - this is cgi request [20:09:02]url: /json_proto [20:09:02]query_string will be loaded in cgi processing [20:09:02]execute_cgi json_proto POST (null) [20:09:02]execute_cgi path=json_proto method=POST [20:09:02]POST find Content-Length [20:09:02]Host: 172.17.63.131:8080 [20:09:02]Content-Length: 676 [20:09:02]Content-Type: application/json [20:09:02] [20:09:02]POST finish read [20:09:02]Found Content-Length = 676 [20:09:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:02]execute_script... [20:09:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:02]POST & json_proto [20:09:02]process_json_proto [20:09:02]json parsed OK: [20:09:02]protocol is kg_v1.0 [20:09:02]action value=close_receipt [20:09:02]process_action close_receipt [20:09:02]cmd_close_receipt [20:09:02]MH_GetDate [20:09:02]Write to MH i2c: F0 00 00 CD 10 CC [20:09:02]Write i2c OK [20:09:02]MH_I2C_Read... [20:09:02]Read from MH i2c: F0 [20:09:02]MH_I2C_Read... [20:09:02]Read from MH i2c: F0 09 00 [20:09:02]MH_I2C_Read... [20:09:02]Read from MH i2c: F0 09 00 CD 10 00 5F EF 1F 67 22 05 6E 64 A2 [20:09:02]GetLastDocTimeStamp 1730145897 [20:09:02]current date 1730146143 [20:09:02]FM_GetShiftState [20:09:02]SAM_PROTO_GetShiftState [20:09:02]wFMCommunicate request_size=4 [20:09:02]MH_SAM_APDU [20:09:02]CAPDU: 80 13 01 00 [20:09:02]Write to MH i2c: E2 08 00 CE 10 80 13 01 00 00 00 00 00 5B [20:09:02]Write i2c OK [20:09:02]MH_I2C_Read... [20:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:02]Read from MH i2c: E2 [20:09:02]MH_I2C_Read... [20:09:02]Read from MH i2c: E2 0E 00 [20:09:02]MH_I2C_Read... [20:09:02]Read from MH i2c: E2 0E 00 CE 10 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 AB [20:09:02]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [20:09:02]wFMCommunicate OK [20:09:02]SAM_PROTO_GetShiftState done [20:09:02]FM_GetShiftState done [20:09:02]opened in 1730075620 [20:09:02]opened+sec_in_day 1730162020 [20:09:02]quantity*price = 50041 [20:09:02]sum+1 = 50042 [20:09:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 317 28.10.2024 20:09 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192769 ФПД: 24964415018411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T200903&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192769&fm=24964415018411&tin=02508201610067®Number=0000000000091776&sum=50000 [20:09:03]StoreToDocumentArchive [20:09:03]shift 543 fd 192769 [20:09:03]save to /storage/0543/doc_00192769 [20:09:03]save last doc name /storage/0543/doc_00192769 to /storage/kkm_last_doc_name [20:09:03]save OK [20:09:03]Clear old archive folders... [20:09:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:09:03]tlvbuf is 00F9C3E0 [20:09:03]SAM_PROTO_ClearQueue [20:09:03]wFMCommunicate request_size=4 [20:09:03]MH_SAM_APDU [20:09:03]CAPDU: 80 09 00 00 [20:09:03]Write to MH i2c: E2 08 00 DB 10 80 09 00 00 00 00 00 00 5D [20:09:03]Write i2c OK [20:09:03]MH_I2C_Read... [20:09:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:03]Read from MH i2c: E2 [20:09:03]MH_I2C_Read... [20:09:03]Read from MH i2c: E2 03 00 [20:09:03]MH_I2C_Read... [20:09:03]Read from MH i2c: E2 03 00 DB 10 00 90 00 5F [20:09:03]RAPDU: 90 00 [20:09:03]wFMCommunicate OK [20:09:03]SAM_PROTO_ClearQueue done [20:09:03]KKMCreateOFDPacket [20:09:03]OFDProtocolAddRootSTLVToBuf [20:09:03]FM_MakeSignedData [20:09:03]FM_MakeSignedData [20:09:03]SAM_PROTO_SignData [20:09:03]wFMCommunicate request_size=4 [20:09:03]MH_SAM_APDU [20:09:03]CAPDU: 80 0D 01 02 [20:09:03]Write to MH i2c: E2 08 00 DC 10 80 0D 01 02 00 00 00 00 65 [20:09:03]Write i2c OK [20:09:03]MH_I2C_Read... [20:09:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:03]Read from MH i2c: E2 [20:09:03]MH_I2C_Read... [20:09:03]Read from MH i2c: E2 03 00 [20:09:03]MH_I2C_Read... [20:09:03]Read from MH i2c: E2 03 00 DC 10 00 90 00 60 [20:09:03]RAPDU: 90 00 [20:09:03]wFMCommunicate OK [20:09:03]wFMCommunicate request_size=255 [20:09:03]MH_SAM_APDU [20:09: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 5F EF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 F1 02 00 35 04 06 00 16 [20:09:03]Write to MH i2c: E2 02 01 DD 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 5F EF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 F1 02 00 35 04 06 00 16 00 00 36 [20:09:03]Write i2c OK [20:09:03]MH_I2C_Read... [20:09:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:04]Read from MH i2c: E2 [20:09:04]MH_I2C_Read... [20:09:04]Read from MH i2c: E2 03 00 [20:09:04]MH_I2C_Read... [20:09:04]Read from MH i2c: E2 03 00 DD 10 00 90 00 61 [20:09:04]RAPDU: 90 00 [20:09:04]wFMCommunicate OK [20:09:04]wFMCommunicate request_size=10 [20:09:04]MH_SAM_APDU [20:09:04]CAPDU: 80 0D 02 02 05 B4 7B 16 D5 AB [20:09:04]Write to MH i2c: E2 0D 00 DE 10 80 0D 02 02 05 00 B4 7B 16 D5 AB 00 00 37 [20:09:04]Write i2c OK [20:09:04]MH_I2C_Read... [20:09:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:04]Read from MH i2c: E2 [20:09:04]MH_I2C_Read... [20:09:04]Read from MH i2c: E2 03 00 [20:09:04]MH_I2C_Read... [20:09:04]Read from MH i2c: E2 03 00 DE 10 00 90 00 62 [20:09:04]RAPDU: 90 00 [20:09:04]wFMCommunicate OK [20:09:04]wFMCommunicate request_size=4 [20:09:04]MH_SAM_APDU [20:09:04]CAPDU: 80 0D 03 02 [20:09:04]Write to MH i2c: E2 08 00 DF 10 80 0D 03 02 00 00 00 00 6A [20:09:04]Write i2c OK [20:09:04]MH_I2C_Read... [20:09:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:04]Read from MH i2c: E2 [20:09:04]MH_I2C_Read... [20:09:04]Read from MH i2c: E2 0B 00 [20:09:04]MH_I2C_Read... [20:09:04]Read from MH i2c: E2 0B 00 DF 10 00 AD D5 CE CF 2D B0 6B C7 90 00 99 [20:09:04]RAPDU: AD D5 CE CF 2D B0 6B C7 90 00 [20:09:04]wFMCommunicate OK [20:09:04]SAM_PROTO_SignData done [20:09:04]FM_MakeSignedData done [20:09:04]CreateOFDProtocolMessage [20:09:04]wFMCommunicate request_size=4 [20:09:04]MH_SAM_APDU [20:09:04]CAPDU: 80 11 00 00 [20:09:04]Write to MH i2c: E2 08 00 E0 10 80 11 00 00 00 00 00 00 6A [20:09:04]Write i2c OK [20:09:04]MH_I2C_Read... [20:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:04]Read from MH i2c: E2 [20:09:04]MH_I2C_Read... [20:09:04]Read from MH i2c: E2 17 00 [20:09:04]MH_I2C_Read... [20:09:04]Read from MH i2c: E2 17 00 E0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BD [20:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:09:04]wFMCommunicate OK [20:09:04]CreateOFDProtocolMessage done [20:09:04]OFDSenderStorePacket 192769 [20:09:04]StoreOFDPacket docnum=192769 [20:09:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 84 B9 07 01 DE EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 5F EF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 F1 02 00 35 04 06 00 16 B4 7B 16 D5 AB AD D5 CE CF 2D B0 6B C7 [20:09:04]CheckFolder [20:09:04]dirname=/storage/ofd_packets [20:09:04]CheckFolder done [20:09:04]ProducePacketName [20:09:04]name=ofd_packets/00192769 [20:09:04]NVStorageSaveData ofd_packets/00192769 [20:09:04]File name is /storage/ofd_packets/00192769 [20:09:04]Write 301 bytes [20:09:04]NVStorageSaveData done [20:09:04]OFDSenderStorePacket done [20:09:04]KKMCreateOFDPacket done [20:09:04]NVStorageSaveData kkm_last_timestamp [20:09:04]File name is /storage/kkm_last_timestamp [20:09:04]Write 4 bytes [20:09:04]NVStorageSaveData done [20:09:04]ExternCall_PrintAddStr [20:09:04]wPrintStart [20:09:04]Write to MH i2c: 01 00 00 E1 10 F1 [20:09:04]Write i2c OK [20:09:04]MH_I2C_Read... [20:09:04]Read from MH i2c: 01 [20:09:04]MH_I2C_Read... [20:09:04]Read from MH i2c: 01 07 00 [20:09:04]MH_I2C_Read... [20:09:04]Read from MH i2c: 01 07 00 E1 10 00 00 00 00 00 FF 0F 06 [20:09:04]RasterBufferAndPrint [20:09:04]line Счет N : (1)32099 [20:09:04]line ИНН: 02508201610067 [20:09:04]line Контрольно-Кассовый Чек [20:09:04]line ПРОДАЖА [20:09:04]line ТРК (МРК, ГНК) : 12 [20:09:04]line Товар: 2710124130 [20:09:04]line Аи-92-К-5 [20:09:04]line 7.480 * 66.90 [20:09:04]line = 500.41 [20:09:04]line НДС 12% НСП 1% [20:09:04]line > о реализуемом товаре [20:09:04]line ОКРУГЛЕНИЕ: -0.41 [20:09:04]line ИТОГО: 500.00 [20:09:04]line Внесено: 500.00 [20:09:04]line СДАЧА: 0.00 [20:09:04]line НСП 1% : 4.43 [20:09:04]line НДС 12% : 53.14 [20:09:04]line Наличными: 500.00 [20:09:04]line Безнал.: 0.00 [20:09:04]line Место: АЗС № 170 "Партнер Нефть" [20:09:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:09:04]line СНО: Общий режим [20:09:04]line Чек 317 28.10.2024 20:09 [20:09:04]line Смена: 543 ФФД: 1.0 [20:09:04]line ЗНМ: 0300000110 [20:09:04]line РНМ: 0000000000091776 [20:09:04]line Версия ККМ: 001 [20:09:04]line ФМ: 0000000000871754 [20:09:04]line ФД: 192769 [20:09:04]line ФПД: 24964415018411 [20:09:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T200903&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192769&fm=24964415018411&tin=02508201610067®Number=0000000000091776&sum=50000 [20:09:04]OFD Sender: Processing packet 192769 [packets to send 75, broken 74] [20:09:04]ProducePacketName [20:09:04]name=ofd_packets/00192769 [20:09:04]OFD Sender: To server: pG, [20:09:04]CommunicateWithHost lk.salyk.kg:30040 [20:09:04]ConnectInit lk.salyk.kg [20:09:04]written 0, free lines is 4095 [20:09:04]Connected sock=11 [20:09:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 84 B9 07 01 DE EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 5F EF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 F1 02 00 35 04 06 00 16 B4 7B 16 D5 AB AD D5 CE CF 2D B0 6B C7 [20:09:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 60 16 47 00 51 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 F1 02 00 F4 03 04 00 22 94 1F 67 B6 04 01 00 00 D3 67 1C 01 B2 08 3F C9 [20:09:04]CommunicateWithHost err = 0 [20:09:04]CheckOFDResponse [20:09:04]1017 (14) - 77093643461234 [20:09:04]1041 (16) - 0000000000871754 [20:09:04]1040 (4) - 192769 [20:09:04]1012 (4) - 28.10.2024 13:39 [20:09:04]1206 (1) - 0 [20:09:04]OFD Sender: Remove packet 192769 [20:09:04]ProducePacketName [20:09:04]name=ofd_packets/00192769 [20:09:04]NVStorageDeleteData [20:09:05]Write to MH i2c: 01 00 00 0C 11 1D [20:09:05]Write i2c OK [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: 01 [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: 01 07 00 [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: 01 07 00 0C 11 00 00 00 00 00 BA 0C EA [20:09:05]RasterBufferAndPrint [20:09:05]line [20:09:05]line [20:09:05]line [20:09:05]line [20:09:05]line [20:09:05]written 0, free lines is 3265 [20:09:05]MH_Cut [20:09:05]Write to MH i2c: D1 01 00 13 11 01 F6 [20:09:05]Write i2c OK [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: D1 [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: D1 01 00 [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: D1 01 00 13 11 00 F5 [20:09:05]Write to MH i2c: 01 00 00 14 11 25 [20:09:05]Write i2c OK [20:09:05]MH_I2C_Read... [20:09:05]OFD Sender: No OFD packet to send [20:09:05]*** Cut start [20:09:05]*** Partial cut [20:09:05]*** CUTSNS_PIN = 1 [20:09:05]*** CUTSNS_PIN = 0 [20:09:06]*** Brake cut motor [20:09:06]Read from MH i2c: 01 [20:09:06]MH_I2C_Read... [20:09:06]*** Stop cut motor [20:09:06]*** Cut end [20:09:06]Read from MH i2c: 01 07 00 [20:09:06]MH_I2C_Read... [20:09:06]Read from MH i2c: 01 07 00 14 11 00 00 00 00 00 FF 0F 3A [20:09:06]process_action close_receipt done [20:09:06]requested_data is exist [20:09:06]produce_requested_data [20:09:06]requested_item fm.sn is exist - process it [20:09:06]wFMCommunicate request_size=4 [20:09:06]MH_SAM_APDU [20:09:06]CAPDU: 80 11 00 00 [20:09:06]Write to MH i2c: E2 08 00 15 11 80 11 00 00 00 00 00 00 A0 [20:09:06]Write i2c OK [20:09:06]MH_I2C_Read... [20:09:06]Read from MH i2c: E2 [20:09:06]MH_I2C_Read... [20:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:06]Read from MH i2c: E2 17 00 [20:09:06]MH_I2C_Read... [20:09:06]Read from MH i2c: E2 17 00 15 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F3 [20:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:09:06]wFMCommunicate OK [20:09:06]requested_item fd.num is exist - process it [20:09:06]SAM_PROTO_GetFieldsCounters [20:09:06]wFMCommunicate request_size=4 [20:09:06]MH_SAM_APDU [20:09:06]CAPDU: 80 13 00 00 [20:09:06]Write to MH i2c: E2 08 00 16 11 80 13 00 00 00 00 00 00 A3 [20:09:06]Write i2c OK [20:09:06]MH_I2C_Read... [20:09:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:06]Read from MH i2c: E2 [20:09:06]MH_I2C_Read... [20:09:06]Read from MH i2c: E2 62 00 [20:09:06]MH_I2C_Read... [20:09:06]Read from MH i2c: E2 62 00 16 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 01 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 98 [20:09:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 01 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:06]wFMCommunicate OK [20:09:06]SAM_PROTO_GetFieldsCounters done [20:09:06]requested_item shift.num is exist - process it [20:09:06]requested_item shift.opened is exist - process it [20:09:06]req_shift_opened [20:09:06]FM_GetShiftState [20:09:06]SAM_PROTO_GetShiftState [20:09:06]wFMCommunicate request_size=4 [20:09:06]MH_SAM_APDU [20:09:06]CAPDU: 80 13 01 00 [20:09:06]Write to MH i2c: E2 08 00 17 11 80 13 01 00 00 00 00 00 A5 [20:09:06]Write i2c OK [20:09:06]MH_I2C_Read... [20:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:06]Read from MH i2c: E2 [20:09:06]MH_I2C_Read... [20:09:06]Read from MH i2c: E2 0E 00 [20:09:06]MH_I2C_Read... [20:09:06]Read from MH i2c: E2 0E 00 17 11 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F5 [20:09:06]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [20:09:06]wFMCommunicate OK [20:09:06]SAM_PROTO_GetShiftState done [20:09:06]FM_GetShiftState done [20:09:06]req_shift_opened done [20:09:06]requested_item shift.open_date is exist - process it [20:09:06]req_shift_open_date [20:09:06]req_shift_open_date done [20:09:06]produce_requested_data done [20:09:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192769,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [20:09:06]process_action_free close_receipt [20:09:06]json_value_free [20:09:06]json_value_free done [20:09:06]process_json_proto returns [20:09:06]Send response to host [20:09:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192769,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [20:09:06]free response buf [20:09:06]execute_script done [20:09:06]execute_script returns [20:09:06]free content buf [20:09:06]Sock 8.Close socket [20:09:06]Sock 8.Thread stoped [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:30]OFD Sender: No OFD packet to send [20:10:35]OFD Sender: No OFD packet to send [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:25]OFD Sender: No OFD packet to send [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:20]OFD Sender: No OFD packet to send [20:19:25]OFD Sender: No OFD packet to send [20:19:30]OFD Sender: No OFD packet to send [20:19:35]OFD Sender: No OFD packet to send [20:19:40]OFD Sender: No OFD packet to send [20:19:45]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:20:00]OFD Sender: No OFD packet to send [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [20:20:20]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:16]OFD Sender: No OFD packet to send [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:25]accept exits with 9 [20:37:25]New connection [20:37:25]New thread 3066801508 created [20:37:25]Thread 3066658148 joined [20:37:25]Waiting for new connection... [20:37:25] Sock 9.Parse request [20:37:25]Sock 9.Check first char [20:37:25]Sock 9.First char is OK [20:37:25]request: POST /json_proto HTTP/1.0 [20:37:25]Method: POST [20:37:25]URL: /json_proto [20:37:25]Method is POST - this is cgi request [20:37:25]url: /json_proto [20:37:25]query_string will be loaded in cgi processing [20:37:25]execute_cgi json_proto POST (null) [20:37:25]execute_cgi path=json_proto method=POST [20:37:25]POST find Content-Length [20:37:25]Host: 172.17.63.131:8080 [20:37:25]Content-Length: 676 [20:37:25]Content-Type: application/json [20:37:25] [20:37:25]POST finish read [20:37:25]Found Content-Length = 676 [20:37:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:25]execute_script... [20:37:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:25]POST & json_proto [20:37:25]process_json_proto [20:37:25]json parsed OK: [20:37:25]protocol is kg_v1.0 [20:37:25]action value=close_receipt [20:37:25]process_action close_receipt [20:37:25]cmd_close_receipt [20:37:25]MH_GetDate [20:37:25]Write to MH i2c: F0 00 00 18 11 18 [20:37:25]Write i2c OK [20:37:25]MH_I2C_Read... [20:37:25]Read from MH i2c: F0 [20:37:25]MH_I2C_Read... [20:37:25]Read from MH i2c: F0 09 00 [20:37:25]MH_I2C_Read... [20:37:25]Read from MH i2c: F0 09 00 18 11 00 06 F6 1F 67 22 05 6E 64 9C [20:37:25]GetLastDocTimeStamp 1730146143 [20:37:25]current date 1730147846 [20:37:25]FM_GetShiftState [20:37:25]SAM_PROTO_GetShiftState [20:37:25]wFMCommunicate request_size=4 [20:37:25]MH_SAM_APDU [20:37:25]CAPDU: 80 13 01 00 [20:37:25]Write to MH i2c: E2 08 00 19 11 80 13 01 00 00 00 00 00 A7 [20:37:25]Write i2c OK [20:37:25]MH_I2C_Read... [20:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:25]Read from MH i2c: E2 [20:37:25]MH_I2C_Read... [20:37:25]Read from MH i2c: E2 0E 00 [20:37:25]MH_I2C_Read... [20:37:25]Read from MH i2c: E2 0E 00 19 11 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F7 [20:37:25]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [20:37:25]wFMCommunicate OK [20:37:25]SAM_PROTO_GetShiftState done [20:37:25]FM_GetShiftState done [20:37:25]opened in 1730075620 [20:37:25]opened+sec_in_day 1730162020 [20:37:25]quantity*price = 50041 [20:37:25]sum+1 = 50042 [20:37:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 318 28.10.2024 20:37 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192770 ФПД: 98773459064098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T203726&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192770&fm=98773459064098&tin=02508201610067®Number=0000000000091776&sum=50000 [20:37:26]StoreToDocumentArchive [20:37:26]shift 543 fd 192770 [20:37:26]save to /storage/0543/doc_00192770 [20:37:26]save last doc name /storage/0543/doc_00192770 to /storage/kkm_last_doc_name [20:37:26]save OK [20:37:26]Clear old archive folders... [20:37:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:37:26]tlvbuf is 00EE3D90 [20:37:26]SAM_PROTO_ClearQueue [20:37:26]wFMCommunicate request_size=4 [20:37:26]MH_SAM_APDU [20:37:26]CAPDU: 80 09 00 00 [20:37:26]Write to MH i2c: E2 08 00 26 11 80 09 00 00 00 00 00 00 A9 [20:37:26]Write i2c OK [20:37:26]MH_I2C_Read... [20:37:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:26]Read from MH i2c: E2 [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: E2 03 00 [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: E2 03 00 26 11 00 90 00 AB [20:37:26]RAPDU: 90 00 [20:37:26]wFMCommunicate OK [20:37:26]SAM_PROTO_ClearQueue done [20:37:26]KKMCreateOFDPacket [20:37:26]OFDProtocolAddRootSTLVToBuf [20:37:26]FM_MakeSignedData [20:37:26]FM_MakeSignedData [20:37:26]SAM_PROTO_SignData [20:37:26]wFMCommunicate request_size=4 [20:37:26]MH_SAM_APDU [20:37:26]CAPDU: 80 0D 01 02 [20:37:26]Write to MH i2c: E2 08 00 27 11 80 0D 01 02 00 00 00 00 B1 [20:37:26]Write i2c OK [20:37:26]MH_I2C_Read... [20:37:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:26]Read from MH i2c: E2 [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: E2 03 00 [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: E2 03 00 27 11 00 90 00 AC [20:37:26]RAPDU: 90 00 [20:37:26]wFMCommunicate OK [20:37:26]wFMCommunicate request_size=255 [20:37:26]MH_SAM_APDU [20:37:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 06 F6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 F1 02 00 35 04 06 00 59 [20:37:26]Write to MH i2c: E2 02 01 28 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 06 F6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 F1 02 00 35 04 06 00 59 00 00 75 [20:37:26]Write i2c OK [20:37:26]MH_I2C_Read... [20:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:26]Read from MH i2c: E2 [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: E2 03 00 [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: E2 03 00 28 11 00 90 00 AD [20:37:26]RAPDU: 90 00 [20:37:26]wFMCommunicate OK [20:37:26]wFMCommunicate request_size=10 [20:37:26]MH_SAM_APDU [20:37:26]CAPDU: 80 0D 02 02 05 D5 7C F0 D5 22 [20:37:26]Write to MH i2c: E2 0D 00 29 11 80 0D 02 02 05 00 D5 7C F0 D5 22 00 00 F6 [20:37:26]Write i2c OK [20:37:26]MH_I2C_Read... [20:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:26]Read from MH i2c: E2 [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: E2 03 00 [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: E2 03 00 29 11 00 90 00 AE [20:37:26]RAPDU: 90 00 [20:37:26]wFMCommunicate OK [20:37:26]wFMCommunicate request_size=4 [20:37:26]MH_SAM_APDU [20:37:26]CAPDU: 80 0D 03 02 [20:37:26]Write to MH i2c: E2 08 00 2A 11 80 0D 03 02 00 00 00 00 B6 [20:37:26]Write i2c OK [20:37:26]MH_I2C_Read... [20:37:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:26]Read from MH i2c: E2 [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: E2 0B 00 [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: E2 0B 00 2A 11 00 F6 21 A2 4D 4C 5A 91 6F 90 00 63 [20:37:26]RAPDU: F6 21 A2 4D 4C 5A 91 6F 90 00 [20:37:26]wFMCommunicate OK [20:37:26]SAM_PROTO_SignData done [20:37:26]FM_MakeSignedData done [20:37:26]CreateOFDProtocolMessage [20:37:26]wFMCommunicate request_size=4 [20:37:26]MH_SAM_APDU [20:37:26]CAPDU: 80 11 00 00 [20:37:26]Write to MH i2c: E2 08 00 2B 11 80 11 00 00 00 00 00 00 B6 [20:37:26]Write i2c OK [20:37:26]MH_I2C_Read... [20:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:26]Read from MH i2c: E2 [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: E2 17 00 [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: E2 17 00 2B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 09 [20:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:37:26]wFMCommunicate OK [20:37:26]CreateOFDProtocolMessage done [20:37:26]OFDSenderStorePacket 192770 [20:37:26]StoreOFDPacket docnum=192770 [20:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EC B2 07 01 58 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 06 F6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 F1 02 00 35 04 06 00 59 D5 7C F0 D5 22 F6 21 A2 4D 4C 5A 91 6F [20:37:26]CheckFolder [20:37:26]dirname=/storage/ofd_packets [20:37:26]CheckFolder done [20:37:26]ProducePacketName [20:37:26]name=ofd_packets/00192770 [20:37:26]NVStorageSaveData ofd_packets/00192770 [20:37:26]File name is /storage/ofd_packets/00192770 [20:37:26]Write 301 bytes [20:37:26]NVStorageSaveData done [20:37:26]OFDSenderStorePacket done [20:37:26]KKMCreateOFDPacket done [20:37:26]NVStorageSaveData kkm_last_timestamp [20:37:26]File name is /storage/kkm_last_timestamp [20:37:26]Write 4 bytes [20:37:26]NVStorageSaveData done [20:37:26]ExternCall_PrintAddStr [20:37:26]wPrintStart [20:37:26]Write to MH i2c: 01 00 00 2C 11 3D [20:37:26]Write i2c OK [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: 01 [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: 01 07 00 [20:37:26]MH_I2C_Read... [20:37:26]Read from MH i2c: 01 07 00 2C 11 00 00 00 00 00 FF 0F 52 [20:37:26]RasterBufferAndPrint [20:37:26]line Счет N : (1)32100 [20:37:26]line ИНН: 02508201610067 [20:37:26]line Контрольно-Кассовый Чек [20:37:26]line ПРОДАЖА [20:37:26]line ТРК (МРК, ГНК) : 21 [20:37:26]line Товар: 2710124130 [20:37:26]line Аи-92-К-5 [20:37:26]line 7.480 * 66.90 [20:37:26]line = 500.41 [20:37:26]line НДС 12% НСП 1% [20:37:26]line > о реализуемом товаре [20:37:26]line ОКРУГЛЕНИЕ: -0.41 [20:37:26]line ИТОГО: 500.00 [20:37:26]line Внесено: 500.00 [20:37:26]line СДАЧА: 0.00 [20:37:26]line НСП 1% : 4.43 [20:37:26]line НДС 12% : 53.14 [20:37:26]line Наличными: 500.00 [20:37:26]line Безнал.: 0.00 [20:37:26]line Место: АЗС № 170 "Партнер Нефть" [20:37:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:37:26]line СНО: Общий режим [20:37:26]line Чек 318 28.10.2024 20:37 [20:37:26]line Смена: 543 ФФД: 1.0 [20:37:26]line ЗНМ: 0300000110 [20:37:26]line РНМ: 0000000000091776 [20:37:26]line Версия ККМ: 001 [20:37:26]line ФМ: 0000000000871754 [20:37:26]line ФД: 192770 [20:37:26]line ФПД: 98773459064098 [20:37:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T203726&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192770&fm=98773459064098&tin=02508201610067®Number=0000000000091776&sum=50000 [20:37:27]OFD Sender: Processing packet 192770 [packets to send 75, broken 74] [20:37:27]ProducePacketName [20:37:27]name=ofd_packets/00192770 [20:37:27]OFD Sender: To server: pG, [20:37:27]CommunicateWithHost lk.salyk.kg:30040 [20:37:27]ConnectInit lk.salyk.kg [20:37:27]written 0, free lines is 4095 [20:37:27]Connected sock=10 [20:37:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EC B2 07 01 58 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 06 F6 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 F1 02 00 35 04 06 00 59 D5 7C F0 D5 22 F6 21 A2 4D 4C 5A 91 6F [20:37:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 22 51 47 00 CC E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 F1 02 00 F4 03 04 00 C9 9A 1F 67 B6 04 01 00 00 30 C1 A8 38 21 5F C1 08 [20:37:27]CommunicateWithHost err = 0 [20:37:27]CheckOFDResponse [20:37:27]1017 (14) - 77093643461234 [20:37:27]1041 (16) - 0000000000871754 [20:37:27]1040 (4) - 192770 [20:37:27]1012 (4) - 28.10.2024 14:08 [20:37:27]1206 (1) - 0 [20:37:27]OFD Sender: Remove packet 192770 [20:37:27]ProducePacketName [20:37:27]name=ofd_packets/00192770 [20:37:27]NVStorageDeleteData [20:37:27]Write to MH i2c: 01 00 00 57 11 68 [20:37:27]Write i2c OK [20:37:27]MH_I2C_Read... [20:37:27]Read from MH i2c: 01 [20:37:27]MH_I2C_Read... [20:37:27]Read from MH i2c: 01 07 00 [20:37:27]MH_I2C_Read... [20:37:27]Read from MH i2c: 01 07 00 57 11 00 00 00 00 00 AA 0C 25 [20:37:27]RasterBufferAndPrint [20:37:27]line [20:37:27]line [20:37:27]line [20:37:27]line [20:37:27]line [20:37:27]written 0, free lines is 3249 [20:37:27]MH_Cut [20:37:27]Write to MH i2c: D1 01 00 5E 11 01 41 [20:37:27]Write i2c OK [20:37:27]MH_I2C_Read... [20:37:27]Read from MH i2c: D1 [20:37:27]MH_I2C_Read... [20:37:27]Read from MH i2c: D1 01 00 [20:37:27]MH_I2C_Read... [20:37:27]Read from MH i2c: D1 01 00 5E 11 00 40 [20:37:27]Write to MH i2c: 01 00 00 5F 11 70 [20:37:27]Write i2c OK [20:37:27]MH_I2C_Read... [20:37:27]OFD Sender: No OFD packet to send [20:37:28]*** Cut start [20:37:28]*** Partial cut [20:37:28]*** CUTSNS_PIN = 1 [20:37:28]*** CUTSNS_PIN = 0 [20:37:28]*** Brake cut motor [20:37:29]Read from MH i2c: 01 [20:37:29]MH_I2C_Read... [20:37:29]*** Stop cut motor [20:37:29]*** Cut end [20:37:29]Read from MH i2c: 01 07 00 [20:37:29]MH_I2C_Read... [20:37:29]Read from MH i2c: 01 07 00 5F 11 00 00 00 00 00 FF 0F 85 [20:37:29]process_action close_receipt done [20:37:29]requested_data is exist [20:37:29]produce_requested_data [20:37:29]requested_item fm.sn is exist - process it [20:37:29]wFMCommunicate request_size=4 [20:37:29]MH_SAM_APDU [20:37:29]CAPDU: 80 11 00 00 [20:37:29]Write to MH i2c: E2 08 00 60 11 80 11 00 00 00 00 00 00 EB [20:37:29]Write i2c OK [20:37:29]MH_I2C_Read... [20:37:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:29]Read from MH i2c: E2 [20:37:29]MH_I2C_Read... [20:37:29]Read from MH i2c: E2 17 00 [20:37:29]MH_I2C_Read... [20:37:29]Read from MH i2c: E2 17 00 60 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3E [20:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:37:29]wFMCommunicate OK [20:37:29]requested_item fd.num is exist - process it [20:37:29]SAM_PROTO_GetFieldsCounters [20:37:29]wFMCommunicate request_size=4 [20:37:29]MH_SAM_APDU [20:37:29]CAPDU: 80 13 00 00 [20:37:29]Write to MH i2c: E2 08 00 61 11 80 13 00 00 00 00 00 00 EE [20:37:29]Write i2c OK [20:37:29]MH_I2C_Read... [20:37:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:29]Read from MH i2c: E2 [20:37:29]MH_I2C_Read... [20:37:29]Read from MH i2c: E2 62 00 [20:37:29]MH_I2C_Read... [20:37:29]Read from MH i2c: E2 62 00 61 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 02 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [20:37:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 02 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:37:29]wFMCommunicate OK [20:37:29]SAM_PROTO_GetFieldsCounters done [20:37:29]requested_item shift.num is exist - process it [20:37:29]requested_item shift.opened is exist - process it [20:37:29]req_shift_opened [20:37:29]FM_GetShiftState [20:37:29]SAM_PROTO_GetShiftState [20:37:29]wFMCommunicate request_size=4 [20:37:29]MH_SAM_APDU [20:37:29]CAPDU: 80 13 01 00 [20:37:29]Write to MH i2c: E2 08 00 62 11 80 13 01 00 00 00 00 00 F0 [20:37:29]Write i2c OK [20:37:29]MH_I2C_Read... [20:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:29]Read from MH i2c: E2 [20:37:29]MH_I2C_Read... [20:37:29]Read from MH i2c: E2 0E 00 [20:37:29]MH_I2C_Read... [20:37:29]Read from MH i2c: E2 0E 00 62 11 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 40 [20:37:29]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [20:37:29]wFMCommunicate OK [20:37:29]SAM_PROTO_GetShiftState done [20:37:29]FM_GetShiftState done [20:37:29]req_shift_opened done [20:37:29]requested_item shift.open_date is exist - process it [20:37:29]req_shift_open_date [20:37:29]req_shift_open_date done [20:37:29]produce_requested_data done [20:37:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192770,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [20:37:29]process_action_free close_receipt [20:37:29]json_value_free [20:37:29]json_value_free done [20:37:29]process_json_proto returns [20:37:29]Send response to host [20:37:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192770,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [20:37:29]free response buf [20:37:29]execute_script done [20:37:29]execute_script returns [20:37:29]free content buf [20:37:29]Sock 9.Close socket [20:37:29]Sock 9.Thread stoped [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:42]accept exits with 8 [20:43:42]New connection [20:43:42]New thread 3066658148 created [20:43:42]Thread 3066801508 joined [20:43:42]Waiting for new connection... [20:43:42] Sock 8.Parse request [20:43:42]Sock 8.Check first char [20:43:42]Sock 8.First char is OK [20:43:42]request: POST /json_proto HTTP/1.0 [20:43:42]Method: POST [20:43:42]URL: /json_proto [20:43:42]Method is POST - this is cgi request [20:43:42]url: /json_proto [20:43:42]query_string will be loaded in cgi processing [20:43:42]execute_cgi json_proto POST (null) [20:43:42]execute_cgi path=json_proto method=POST [20:43:42]POST find Content-Length [20:43:42]Host: 172.17.63.131:8080 [20:43:42]Content-Length: 676 [20:43:42]Content-Type: application/json [20:43:42] [20:43:42]POST finish read [20:43:42]Found Content-Length = 676 [20:43:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:42]execute_script... [20:43:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:42]POST & json_proto [20:43:42]process_json_proto [20:43:42]json parsed OK: [20:43:42]protocol is kg_v1.0 [20:43:42]action value=close_receipt [20:43:42]process_action close_receipt [20:43:42]cmd_close_receipt [20:43:42]MH_GetDate [20:43:42]Write to MH i2c: F0 00 00 63 11 63 [20:43:42]Write i2c OK [20:43:42]MH_I2C_Read... [20:43:42]Read from MH i2c: F0 [20:43:42]MH_I2C_Read... [20:43:42]Read from MH i2c: F0 09 00 [20:43:42]MH_I2C_Read... [20:43:42]Read from MH i2c: F0 09 00 63 11 00 7F F7 1F 67 22 05 6E 64 61 [20:43:42]GetLastDocTimeStamp 1730147846 [20:43:42]current date 1730148223 [20:43:42]FM_GetShiftState [20:43:42]SAM_PROTO_GetShiftState [20:43:42]wFMCommunicate request_size=4 [20:43:42]MH_SAM_APDU [20:43:42]CAPDU: 80 13 01 00 [20:43:42]Write to MH i2c: E2 08 00 64 11 80 13 01 00 00 00 00 00 F2 [20:43:42]Write i2c OK [20:43:42]MH_I2C_Read... [20:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:42]Read from MH i2c: E2 [20:43:42]MH_I2C_Read... [20:43:42]Read from MH i2c: E2 0E 00 [20:43:42]MH_I2C_Read... [20:43:42]Read from MH i2c: E2 0E 00 64 11 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 42 [20:43:42]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [20:43:42]wFMCommunicate OK [20:43:42]SAM_PROTO_GetShiftState done [20:43:42]FM_GetShiftState done [20:43:42]opened in 1730075620 [20:43:42]opened+sec_in_day 1730162020 [20:43:42]quantity*price = 60009 [20:43:42]sum+1 = 60010 [20:43:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 319 28.10.2024 20:43 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192771 ФПД: 189681165106146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T204343&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192771&fm=189681165106146&tin=02508201610067®Number=0000000000091776&sum=60000 [20:43:43]StoreToDocumentArchive [20:43:43]shift 543 fd 192771 [20:43:43]save to /storage/0543/doc_00192771 [20:43:43]save last doc name /storage/0543/doc_00192771 to /storage/kkm_last_doc_name [20:43:43]save OK [20:43:43]Clear old archive folders... [20:43:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:43:43]tlvbuf is 00F9C960 [20:43:43]SAM_PROTO_ClearQueue [20:43:43]wFMCommunicate request_size=4 [20:43:43]MH_SAM_APDU [20:43:43]CAPDU: 80 09 00 00 [20:43:43]Write to MH i2c: E2 08 00 71 11 80 09 00 00 00 00 00 00 F4 [20:43:43]Write i2c OK [20:43:43]MH_I2C_Read... [20:43:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:43]Read from MH i2c: E2 [20:43:43]MH_I2C_Read... [20:43:43]Read from MH i2c: E2 03 00 [20:43:43]MH_I2C_Read... [20:43:43]Read from MH i2c: E2 03 00 71 11 00 90 00 F6 [20:43:43]RAPDU: 90 00 [20:43:43]wFMCommunicate OK [20:43:43]SAM_PROTO_ClearQueue done [20:43:43]KKMCreateOFDPacket [20:43:43]OFDProtocolAddRootSTLVToBuf [20:43:43]FM_MakeSignedData [20:43:43]FM_MakeSignedData [20:43:43]SAM_PROTO_SignData [20:43:43]wFMCommunicate request_size=4 [20:43:43]MH_SAM_APDU [20:43:43]CAPDU: 80 0D 01 02 [20:43:43]Write to MH i2c: E2 08 00 72 11 80 0D 01 02 00 00 00 00 FC [20:43:43]Write i2c OK [20:43:43]MH_I2C_Read... [20:43:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:43]Read from MH i2c: E2 [20:43:43]MH_I2C_Read... [20:43:43]Read from MH i2c: E2 03 00 [20:43:43]MH_I2C_Read... [20:43:43]Read from MH i2c: E2 03 00 72 11 00 90 00 F7 [20:43:43]RAPDU: 90 00 [20:43:43]wFMCommunicate OK [20:43:43]wFMCommunicate request_size=255 [20:43:43]MH_SAM_APDU [20:43:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 7F F7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 F1 02 00 35 04 06 00 AC [20:43:43]Write to MH i2c: E2 02 01 73 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 7F F7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 F1 02 00 35 04 06 00 AC 00 00 6C [20:43:43]Write i2c OK [20:43:43]MH_I2C_Read... [20:43:43]OFD Sender: No OFD packet to send [20:43:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:43]Read from MH i2c: E2 [20:43:43]MH_I2C_Read... [20:43:43]Read from MH i2c: E2 03 00 [20:43:43]MH_I2C_Read... [20:43:43]Read from MH i2c: E2 03 00 73 11 00 90 00 F8 [20:43:43]RAPDU: 90 00 [20:43:43]wFMCommunicate OK [20:43:43]wFMCommunicate request_size=10 [20:43:43]MH_SAM_APDU [20:43:43]CAPDU: 80 0D 02 02 05 83 96 77 7B E2 [20:43:43]Write to MH i2c: E2 0D 00 74 11 80 0D 02 02 05 00 83 96 77 7B E2 00 00 F6 [20:43:43]Write i2c OK [20:43:43]MH_I2C_Read... [20:43:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:43]Read from MH i2c: E2 [20:43:43]MH_I2C_Read... [20:43:43]Read from MH i2c: E2 03 00 [20:43:43]MH_I2C_Read... [20:43:43]Read from MH i2c: E2 03 00 74 11 00 90 00 F9 [20:43:43]RAPDU: 90 00 [20:43:43]wFMCommunicate OK [20:43:43]wFMCommunicate request_size=4 [20:43:43]MH_SAM_APDU [20:43:43]CAPDU: 80 0D 03 02 [20:43:43]Write to MH i2c: E2 08 00 75 11 80 0D 03 02 00 00 00 00 01 [20:43:43]Write i2c OK [20:43:43]MH_I2C_Read... [20:43:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:43]Read from MH i2c: E2 [20:43:43]MH_I2C_Read... [20:43:43]Read from MH i2c: E2 0B 00 [20:43:43]MH_I2C_Read... [20:43:43]Read from MH i2c: E2 0B 00 75 11 00 A7 61 3C F6 3C 6F C1 A0 90 00 48 [20:43:43]RAPDU: A7 61 3C F6 3C 6F C1 A0 90 00 [20:43:43]wFMCommunicate OK [20:43:43]SAM_PROTO_SignData done [20:43:43]FM_MakeSignedData done [20:43:43]CreateOFDProtocolMessage [20:43:43]wFMCommunicate request_size=4 [20:43:43]MH_SAM_APDU [20:43:43]CAPDU: 80 11 00 00 [20:43:43]Write to MH i2c: E2 08 00 76 11 80 11 00 00 00 00 00 00 01 [20:43:43]Write i2c OK [20:43:43]MH_I2C_Read... [20:43:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:43]Read from MH i2c: E2 [20:43:43]MH_I2C_Read... [20:43:43]Read from MH i2c: E2 17 00 [20:43:43]MH_I2C_Read... [20:43:43]Read from MH i2c: E2 17 00 76 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 54 [20:43:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:43:43]wFMCommunicate OK [20:43:43]CreateOFDProtocolMessage done [20:43:43]OFDSenderStorePacket 192771 [20:43:43]StoreOFDPacket docnum=192771 [20:43:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8B 01 07 01 09 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 7F F7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 F1 02 00 35 04 06 00 AC 83 96 77 7B E2 A7 61 3C F6 3C 6F C1 A0 [20:43:43]CheckFolder [20:43:43]dirname=/storage/ofd_packets [20:43:43]CheckFolder done [20:43:43]ProducePacketName [20:43:43]name=ofd_packets/00192771 [20:43:43]NVStorageSaveData ofd_packets/00192771 [20:43:43]File name is /storage/ofd_packets/00192771 [20:43:43]Write 301 bytes [20:43:43]NVStorageSaveData done [20:43:43]OFDSenderStorePacket done [20:43:43]KKMCreateOFDPacket done [20:43:43]NVStorageSaveData kkm_last_timestamp [20:43:43]File name is /storage/kkm_last_timestamp [20:43:43]Write 4 bytes [20:43:43]NVStorageSaveData done [20:43:43]ExternCall_PrintAddStr [20:43:43]wPrintStart [20:43:43]Write to MH i2c: 01 00 00 77 11 88 [20:43:43]Write i2c OK [20:43:43]MH_I2C_Read... [20:43:43]Read from MH i2c: 01 [20:43:43]MH_I2C_Read... [20:43:43]Read from MH i2c: 01 07 00 [20:43:43]MH_I2C_Read... [20:43:43]Read from MH i2c: 01 07 00 77 11 00 00 00 00 00 FF 0F 9D [20:43:43]RasterBufferAndPrint [20:43:43]line Счет N : (1)32101 [20:43:43]line ИНН: 02508201610067 [20:43:43]line Контрольно-Кассовый Чек [20:43:43]line ПРОДАЖА [20:43:43]line ТРК (МРК, ГНК) : 12 [20:43:43]line Товар: 2710124130 [20:43:43]line Аи-92-К-5 [20:43:43]line 8.970 * 66.90 [20:43:43]line = 600.09 [20:43:43]line НДС 12% НСП 1% [20:43:43]line > о реализуемом товаре [20:43:43]line ОКРУГЛЕНИЕ: -0.09 [20:43:43]line ИТОГО: 600.00 [20:43:43]line Внесено: 600.00 [20:43:43]line СДАЧА: 0.00 [20:43:43]line НСП 1% : 5.31 [20:43:43]line НДС 12% : 63.73 [20:43:43]line Наличными: 600.00 [20:43:43]line Безнал.: 0.00 [20:43:43]line Место: АЗС № 170 "Партнер Нефть" [20:43:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:43:43]line СНО: Общий режим [20:43:43]line Чек 319 28.10.2024 20:43 [20:43:43]line Смена: 543 ФФД: 1.0 [20:43:43]line ЗНМ: 0300000110 [20:43:43]line РНМ: 0000000000091776 [20:43:43]line Версия ККМ: 001 [20:43:43]line ФМ: 0000000000871754 [20:43:43]line ФД: 192771 [20:43:43]line ФПД: 189681165106146 [20:43:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T204343&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192771&fm=189681165106146&tin=02508201610067®Number=0000000000091776&sum=60000 [20:43:44]OFD Sender: Processing packet 192771 [packets to send 75, broken 74] [20:43:44]ProducePacketName [20:43:44]name=ofd_packets/00192771 [20:43:44]OFD Sender: To server: pG, [20:43:44]CommunicateWithHost lk.salyk.kg:30040 [20:43:44]ConnectInit lk.salyk.kg [20:43:44]written 0, free lines is 4095 [20:43:44]Connected sock=10 [20:43:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8B 01 07 01 09 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 7F F7 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 F1 02 00 35 04 06 00 AC 83 96 77 7B E2 A7 61 3C F6 3C 6F C1 A0 [20:43:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A5 AE 47 00 FD 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 F1 02 00 F4 03 04 00 42 9C 1F 67 B6 04 01 00 00 C8 8D ED 2C 30 CA FC 42 [20:43:44]CommunicateWithHost err = 0 [20:43:44]CheckOFDResponse [20:43:44]1017 (14) - 77093643461234 [20:43:44]1041 (16) - 0000000000871754 [20:43:44]1040 (4) - 192771 [20:43:44]1012 (4) - 28.10.2024 14:14 [20:43:44]1206 (1) - 0 [20:43:44]OFD Sender: Remove packet 192771 [20:43:44]ProducePacketName [20:43:44]name=ofd_packets/00192771 [20:43:44]NVStorageDeleteData [20:43:44]Write to MH i2c: 01 00 00 A2 11 B3 [20:43:44]Write i2c OK [20:43:44]MH_I2C_Read... [20:43:44]Read from MH i2c: 01 [20:43:44]MH_I2C_Read... [20:43:44]Read from MH i2c: 01 07 00 [20:43:44]MH_I2C_Read... [20:43:44]Read from MH i2c: 01 07 00 A2 11 00 00 00 00 00 BF 0C 85 [20:43:44]RasterBufferAndPrint [20:43:44]line [20:43:44]line [20:43:44]line [20:43:44]line [20:43:44]line [20:43:44]written 0, free lines is 3269 [20:43:44]MH_Cut [20:43:44]Write to MH i2c: D1 01 00 A9 11 01 8C [20:43:44]Write i2c OK [20:43:44]MH_I2C_Read... [20:43:44]Read from MH i2c: D1 [20:43:44]MH_I2C_Read... [20:43:44]Read from MH i2c: D1 01 00 [20:43:44]MH_I2C_Read... [20:43:44]Read from MH i2c: D1 01 00 A9 11 00 8B [20:43:44]Write to MH i2c: 01 00 00 AA 11 BB [20:43:44]Write i2c OK [20:43:44]MH_I2C_Read... [20:43:44]OFD Sender: No OFD packet to send [20:43:45]*** Cut start [20:43:45]*** Partial cut [20:43:45]*** CUTSNS_PIN = 1 [20:43:45]*** CUTSNS_PIN = 0 [20:43:45]*** Brake cut motor [20:43:45]Read from MH i2c: 01 [20:43:45]MH_I2C_Read... [20:43:45]*** Stop cut motor [20:43:45]Read from MH i2c: 01 07 00 [20:43:45]MH_I2C_Read... [20:43:45]*** Cut end [20:43:45]Read from MH i2c: 01 07 00 AA 11 00 00 00 00 00 FF 0F D0 [20:43:45]process_action close_receipt done [20:43:45]requested_data is exist [20:43:45]produce_requested_data [20:43:45]requested_item fm.sn is exist - process it [20:43:45]wFMCommunicate request_size=4 [20:43:45]MH_SAM_APDU [20:43:45]CAPDU: 80 11 00 00 [20:43:45]Write to MH i2c: E2 08 00 AB 11 80 11 00 00 00 00 00 00 36 [20:43:45]Write i2c OK [20:43:45]MH_I2C_Read... [20:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:45]Read from MH i2c: E2 [20:43:45]MH_I2C_Read... [20:43:45]Read from MH i2c: E2 17 00 [20:43:45]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 17 00 AB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 89 [20:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:43:46]wFMCommunicate OK [20:43:46]requested_item fd.num is exist - process it [20:43:46]SAM_PROTO_GetFieldsCounters [20:43:46]wFMCommunicate request_size=4 [20:43:46]MH_SAM_APDU [20:43:46]CAPDU: 80 13 00 00 [20:43:46]Write to MH i2c: E2 08 00 AC 11 80 13 00 00 00 00 00 00 39 [20:43:46]Write i2c OK [20:43:46]MH_I2C_Read... [20:43:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:46]Read from MH i2c: E2 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 62 00 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 62 00 AC 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 03 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [20:43:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 03 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:43:46]wFMCommunicate OK [20:43:46]SAM_PROTO_GetFieldsCounters done [20:43:46]requested_item shift.num is exist - process it [20:43:46]requested_item shift.opened is exist - process it [20:43:46]req_shift_opened [20:43:46]FM_GetShiftState [20:43:46]SAM_PROTO_GetShiftState [20:43:46]wFMCommunicate request_size=4 [20:43:46]MH_SAM_APDU [20:43:46]CAPDU: 80 13 01 00 [20:43:46]Write to MH i2c: E2 08 00 AD 11 80 13 01 00 00 00 00 00 3B [20:43:46]Write i2c OK [20:43:46]MH_I2C_Read... [20:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:46]Read from MH i2c: E2 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 0E 00 [20:43:46]MH_I2C_Read... [20:43:46]Read from MH i2c: E2 0E 00 AD 11 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 8B [20:43:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [20:43:46]wFMCommunicate OK [20:43:46]SAM_PROTO_GetShiftState done [20:43:46]FM_GetShiftState done [20:43:46]req_shift_opened done [20:43:46]requested_item shift.open_date is exist - process it [20:43:46]req_shift_open_date [20:43:46]req_shift_open_date done [20:43:46]produce_requested_data done [20:43:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192771,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [20:43:46]process_action_free close_receipt [20:43:46]json_value_free [20:43:46]json_value_free done [20:43:46]process_json_proto returns [20:43:46]Send response to host [20:43:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192771,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [20:43:46]free response buf [20:43:46]execute_script done [20:43:46]execute_script returns [20:43:46]free content buf [20:43:46]Sock 8.Close socket [20:43:46]Sock 8.Thread stoped [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:38]accept exits with 9 [20:52:38]New connection [20:52:38]New thread 3066801508 created [20:52:38]Thread 3066658148 joined [20:52:38]Waiting for new connection... [20:52:38] Sock 9.Parse request [20:52:38]Sock 9.Check first char [20:52:38]Sock 9.First char is OK [20:52:38]request: POST /json_proto HTTP/1.0 [20:52:38]Method: POST [20:52:38]URL: /json_proto [20:52:38]Method is POST - this is cgi request [20:52:38]url: /json_proto [20:52:38]query_string will be loaded in cgi processing [20:52:38]execute_cgi json_proto POST (null) [20:52:38]execute_cgi path=json_proto method=POST [20:52:38]POST find Content-Length [20:52:38]Host: 172.17.63.131:8080 [20:52:38]Content-Length: 676 [20:52:38]Content-Type: application/json [20:52:38] [20:52:38]POST finish read [20:52:38]Found Content-Length = 676 [20:52:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:38]execute_script... [20:52:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:38]POST & json_proto [20:52:38]process_json_proto [20:52:38]json parsed OK: [20:52:38]protocol is kg_v1.0 [20:52:38]action value=close_receipt [20:52:38]process_action close_receipt [20:52:38]cmd_close_receipt [20:52:38]MH_GetDate [20:52:38]Write to MH i2c: F0 00 00 AE 11 AE [20:52:38]Write i2c OK [20:52:38]MH_I2C_Read... [20:52:38]Read from MH i2c: F0 [20:52:38]MH_I2C_Read... [20:52:38]Read from MH i2c: F0 09 00 [20:52:38]MH_I2C_Read... [20:52:38]Read from MH i2c: F0 09 00 AE 11 00 97 F9 1F 67 22 05 6E 64 C6 [20:52:38]GetLastDocTimeStamp 1730148223 [20:52:38]current date 1730148759 [20:52:38]FM_GetShiftState [20:52:38]SAM_PROTO_GetShiftState [20:52:38]wFMCommunicate request_size=4 [20:52:38]MH_SAM_APDU [20:52:38]CAPDU: 80 13 01 00 [20:52:38]Write to MH i2c: E2 08 00 AF 11 80 13 01 00 00 00 00 00 3D [20:52:38]Write i2c OK [20:52:38]MH_I2C_Read... [20:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:38]Read from MH i2c: E2 [20:52:38]MH_I2C_Read... [20:52:38]Read from MH i2c: E2 0E 00 [20:52:38]MH_I2C_Read... [20:52:38]Read from MH i2c: E2 0E 00 AF 11 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 8D [20:52:38]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [20:52:38]wFMCommunicate OK [20:52:38]SAM_PROTO_GetShiftState done [20:52:38]FM_GetShiftState done [20:52:38]opened in 1730075620 [20:52:38]opened+sec_in_day 1730162020 [20:52:38]quantity*price = 50041 [20:52:38]sum+1 = 50042 [20:52:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 320 28.10.2024 20:52 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192772 ФПД: 157323765471380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T205239&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192772&fm=157323765471380&tin=02508201610067®Number=0000000000091776&sum=50000 [20:52:39]StoreToDocumentArchive [20:52:39]shift 543 fd 192772 [20:52:39]save to /storage/0543/doc_00192772 [20:52:39]save last doc name /storage/0543/doc_00192772 to /storage/kkm_last_doc_name [20:52:39]save OK [20:52:39]Clear old archive folders... [20:52:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:52:39]tlvbuf is 00EEC7A0 [20:52:39]SAM_PROTO_ClearQueue [20:52:39]wFMCommunicate request_size=4 [20:52:39]MH_SAM_APDU [20:52:39]CAPDU: 80 09 00 00 [20:52:39]Write to MH i2c: E2 08 00 BC 11 80 09 00 00 00 00 00 00 3F [20:52:39]Write i2c OK [20:52:39]MH_I2C_Read... [20:52:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:39]Read from MH i2c: E2 [20:52:39]MH_I2C_Read... [20:52:39]Read from MH i2c: E2 03 00 [20:52:39]MH_I2C_Read... [20:52:39]Read from MH i2c: E2 03 00 BC 11 00 90 00 41 [20:52:39]RAPDU: 90 00 [20:52:39]wFMCommunicate OK [20:52:39]SAM_PROTO_ClearQueue done [20:52:39]KKMCreateOFDPacket [20:52:39]OFDProtocolAddRootSTLVToBuf [20:52:39]FM_MakeSignedData [20:52:39]FM_MakeSignedData [20:52:39]SAM_PROTO_SignData [20:52:39]wFMCommunicate request_size=4 [20:52:39]MH_SAM_APDU [20:52:39]CAPDU: 80 0D 01 02 [20:52:39]Write to MH i2c: E2 08 00 BD 11 80 0D 01 02 00 00 00 00 47 [20:52:39]Write i2c OK [20:52:39]MH_I2C_Read... [20:52:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:39]Read from MH i2c: E2 [20:52:39]MH_I2C_Read... [20:52:39]Read from MH i2c: E2 03 00 [20:52:39]MH_I2C_Read... [20:52:39]Read from MH i2c: E2 03 00 BD 11 00 90 00 42 [20:52:39]RAPDU: 90 00 [20:52:39]wFMCommunicate OK [20:52:39]wFMCommunicate request_size=255 [20:52:39]MH_SAM_APDU [20:52: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 97 F9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 F1 02 00 35 04 06 00 8F [20:52:39]Write to MH i2c: E2 02 01 BE 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 97 F9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 F1 02 00 35 04 06 00 8F 00 00 D9 [20:52:39]Write i2c OK [20:52:39]MH_I2C_Read... [20:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:39]Read from MH i2c: E2 [20:52:39]MH_I2C_Read... [20:52:39]Read from MH i2c: E2 03 00 [20:52:39]MH_I2C_Read... [20:52:39]Read from MH i2c: E2 03 00 BE 11 00 90 00 43 [20:52:39]RAPDU: 90 00 [20:52:39]wFMCommunicate OK [20:52:39]wFMCommunicate request_size=10 [20:52:39]MH_SAM_APDU [20:52:39]CAPDU: 80 0D 02 02 05 15 CB 27 D8 94 [20:52:39]Write to MH i2c: E2 0D 00 BF 11 80 0D 02 02 05 00 15 CB 27 D8 94 00 00 C7 [20:52:39]Write i2c OK [20:52:39]MH_I2C_Read... [20:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:39]Read from MH i2c: E2 [20:52:39]MH_I2C_Read... [20:52:39]Read from MH i2c: E2 03 00 [20:52:39]MH_I2C_Read... [20:52:39]Read from MH i2c: E2 03 00 BF 11 00 90 00 44 [20:52:39]RAPDU: 90 00 [20:52:39]wFMCommunicate OK [20:52:39]wFMCommunicate request_size=4 [20:52:39]MH_SAM_APDU [20:52:39]CAPDU: 80 0D 03 02 [20:52:39]Write to MH i2c: E2 08 00 C0 11 80 0D 03 02 00 00 00 00 4C [20:52:39]Write i2c OK [20:52:39]MH_I2C_Read... [20:52:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:39]Read from MH i2c: E2 [20:52:39]MH_I2C_Read... [20:52:39]Read from MH i2c: E2 0B 00 [20:52:39]MH_I2C_Read... [20:52:39]Read from MH i2c: E2 0B 00 C0 11 00 4F FA FF 76 60 B6 5E 57 90 00 D6 [20:52:39]RAPDU: 4F FA FF 76 60 B6 5E 57 90 00 [20:52:39]wFMCommunicate OK [20:52:39]SAM_PROTO_SignData done [20:52:39]FM_MakeSignedData done [20:52:39]CreateOFDProtocolMessage [20:52:39]wFMCommunicate request_size=4 [20:52:39]MH_SAM_APDU [20:52:39]CAPDU: 80 11 00 00 [20:52:39]Write to MH i2c: E2 08 00 C1 11 80 11 00 00 00 00 00 00 4C [20:52:39]Write i2c OK [20:52:39]MH_I2C_Read... [20:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:39]Read from MH i2c: E2 [20:52:39]MH_I2C_Read... [20:52:39]Read from MH i2c: E2 17 00 [20:52:39]MH_I2C_Read... [20:52:39]Read from MH i2c: E2 17 00 C1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [20:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:52:39]wFMCommunicate OK [20:52:39]CreateOFDProtocolMessage done [20:52:39]OFDSenderStorePacket 192772 [20:52:39]StoreOFDPacket docnum=192772 [20:52:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD A2 07 01 53 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 97 F9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 F1 02 00 35 04 06 00 8F 15 CB 27 D8 94 4F FA FF 76 60 B6 5E 57 [20:52:39]CheckFolder [20:52:39]dirname=/storage/ofd_packets [20:52:39]CheckFolder done [20:52:39]ProducePacketName [20:52:39]name=ofd_packets/00192772 [20:52:39]NVStorageSaveData ofd_packets/00192772 [20:52:39]File name is /storage/ofd_packets/00192772 [20:52:39]Write 301 bytes [20:52:39]NVStorageSaveData done [20:52:39]OFDSenderStorePacket done [20:52:39]KKMCreateOFDPacket done [20:52:39]NVStorageSaveData kkm_last_timestamp [20:52:39]File name is /storage/kkm_last_timestamp [20:52:39]Write 4 bytes [20:52:39]NVStorageSaveData done [20:52:39]ExternCall_PrintAddStr [20:52:39]wPrintStart [20:52:39]Write to MH i2c: 01 00 00 C2 11 D3 [20:52:39]Write i2c OK [20:52:39]MH_I2C_Read... [20:52:39]Read from MH i2c: 01 [20:52:39]MH_I2C_Read... [20:52:39]Read from MH i2c: 01 07 00 [20:52:39]MH_I2C_Read... [20:52:39]Read from MH i2c: 01 07 00 C2 11 00 00 00 00 00 FF 0F E8 [20:52:39]RasterBufferAndPrint [20:52:39]line Счет N : (1)32102 [20:52:39]line ИНН: 02508201610067 [20:52:39]line Контрольно-Кассовый Чек [20:52:39]line ПРОДАЖА [20:52:39]line ТРК (МРК, ГНК) : 12 [20:52:39]line Товар: 2710124130 [20:52:39]line Аи-92-К-5 [20:52:39]line 7.480 * 66.90 [20:52:39]line = 500.41 [20:52:39]line НДС 12% НСП 1% [20:52:39]line > о реализуемом товаре [20:52:39]line ОКРУГЛЕНИЕ: -0.41 [20:52:39]line ИТОГО: 500.00 [20:52:39]line Внесено: 500.00 [20:52:39]line СДАЧА: 0.00 [20:52:39]line НСП 1% : 4.43 [20:52:39]line НДС 12% : 53.14 [20:52:39]line Наличными: 500.00 [20:52:39]line Безнал.: 0.00 [20:52:39]line Место: АЗС № 170 "Партнер Нефть" [20:52:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:52:39]line СНО: Общий режим [20:52:39]line Чек 320 28.10.2024 20:52 [20:52:39]line Смена: 543 ФФД: 1.0 [20:52:39]line ЗНМ: 0300000110 [20:52:39]line РНМ: 0000000000091776 [20:52:39]line Версия ККМ: 001 [20:52:39]line ФМ: 0000000000871754 [20:52:39]line ФД: 192772 [20:52:39]line ФПД: 157323765471380 [20:52:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T205239&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192772&fm=157323765471380&tin=02508201610067®Number=0000000000091776&sum=50000 [20:52:39]written 0, free lines is 4095 [20:52:39]OFD Sender: Processing packet 192772 [packets to send 75, broken 74] [20:52:39]ProducePacketName [20:52:39]name=ofd_packets/00192772 [20:52:39]OFD Sender: To server: pG, [20:52:39]CommunicateWithHost lk.salyk.kg:30040 [20:52:39]ConnectInit lk.salyk.kg [20:52:39]Connected sock=11 [20:52:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD A2 07 01 53 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 97 F9 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 F1 02 00 35 04 06 00 8F 15 CB 27 D8 94 4F FA FF 76 60 B6 5E 57 [20:52:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 38 F6 47 00 12 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 F1 02 00 F4 03 04 00 59 9E 1F 67 B6 04 01 00 00 43 CF BA 94 C4 79 28 A7 [20:52:39]CommunicateWithHost err = 0 [20:52:39]CheckOFDResponse [20:52:39]1017 (14) - 77093643461234 [20:52:39]1041 (16) - 0000000000871754 [20:52:39]1040 (4) - 192772 [20:52:39]1012 (4) - 28.10.2024 14:23 [20:52:39]1206 (1) - 0 [20:52:39]OFD Sender: Remove packet 192772 [20:52:39]ProducePacketName [20:52:39]name=ofd_packets/00192772 [20:52:39]NVStorageDeleteData [20:52:40]Write to MH i2c: 01 00 00 ED 11 FE [20:52:40]Write i2c OK [20:52:40]MH_I2C_Read... [20:52:40]Read from MH i2c: 01 [20:52:40]MH_I2C_Read... [20:52:40]Read from MH i2c: 01 07 00 [20:52:40]MH_I2C_Read... [20:52:40]Read from MH i2c: 01 07 00 ED 11 00 00 00 00 00 B9 0C CA [20:52:40]RasterBufferAndPrint [20:52:40]line [20:52:40]line [20:52:40]line [20:52:40]line [20:52:40]line [20:52:40]written 0, free lines is 3264 [20:52:40]MH_Cut [20:52:40]Write to MH i2c: D1 01 00 F4 11 01 D7 [20:52:40]Write i2c OK [20:52:40]MH_I2C_Read... [20:52:40]Read from MH i2c: D1 [20:52:40]MH_I2C_Read... [20:52:40]Read from MH i2c: D1 01 00 [20:52:40]MH_I2C_Read... [20:52:40]Read from MH i2c: D1 01 00 F4 11 00 D6 [20:52:40]Write to MH i2c: 01 00 00 F5 11 06 [20:52:40]Write i2c OK [20:52:40]MH_I2C_Read... [20:52:40]OFD Sender: No OFD packet to send [20:52:40]*** Cut start [20:52:40]*** Partial cut [20:52:40]*** CUTSNS_PIN = 1 [20:52:40]*** CUTSNS_PIN = 0 [20:52:41]*** Brake cut motor [20:52:41]Read from MH i2c: 01 [20:52:41]MH_I2C_Read... [20:52:41]*** Stop cut motor [20:52:41]*** Cut end [20:52:41]Read from MH i2c: 01 07 00 [20:52:41]MH_I2C_Read... [20:52:41]Read from MH i2c: 01 07 00 F5 11 00 00 00 00 00 FF 0F 1B [20:52:41]process_action close_receipt done [20:52:41]requested_data is exist [20:52:41]produce_requested_data [20:52:41]requested_item fm.sn is exist - process it [20:52:41]wFMCommunicate request_size=4 [20:52:41]MH_SAM_APDU [20:52:41]CAPDU: 80 11 00 00 [20:52:41]Write to MH i2c: E2 08 00 F6 11 80 11 00 00 00 00 00 00 81 [20:52:41]Write i2c OK [20:52:41]MH_I2C_Read... [20:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:41]Read from MH i2c: E2 [20:52:41]MH_I2C_Read... [20:52:41]Read from MH i2c: E2 17 00 [20:52:41]MH_I2C_Read... [20:52:41]Read from MH i2c: E2 17 00 F6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D4 [20:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:52:41]wFMCommunicate OK [20:52:41]requested_item fd.num is exist - process it [20:52:41]SAM_PROTO_GetFieldsCounters [20:52:41]wFMCommunicate request_size=4 [20:52:41]MH_SAM_APDU [20:52:41]CAPDU: 80 13 00 00 [20:52:41]Write to MH i2c: E2 08 00 F7 11 80 13 00 00 00 00 00 00 84 [20:52:41]Write i2c OK [20:52:41]MH_I2C_Read... [20:52:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:41]Read from MH i2c: E2 [20:52:41]MH_I2C_Read... [20:52:41]Read from MH i2c: E2 62 00 [20:52:41]MH_I2C_Read... [20:52:41]Read from MH i2c: E2 62 00 F7 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [20:52: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:41]wFMCommunicate OK [20:52:41]SAM_PROTO_GetFieldsCounters done [20:52:41]requested_item shift.num is exist - process it [20:52:41]requested_item shift.opened is exist - process it [20:52:41]req_shift_opened [20:52:41]FM_GetShiftState [20:52:41]SAM_PROTO_GetShiftState [20:52:41]wFMCommunicate request_size=4 [20:52:41]MH_SAM_APDU [20:52:41]CAPDU: 80 13 01 00 [20:52:41]Write to MH i2c: E2 08 00 F8 11 80 13 01 00 00 00 00 00 86 [20:52:41]Write i2c OK [20:52:41]MH_I2C_Read... [20:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:41]Read from MH i2c: E2 [20:52:41]MH_I2C_Read... [20:52:41]Read from MH i2c: E2 0E 00 [20:52:41]MH_I2C_Read... [20:52:41]Read from MH i2c: E2 0E 00 F8 11 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D6 [20:52:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [20:52:41]wFMCommunicate OK [20:52:41]SAM_PROTO_GetShiftState done [20:52:41]FM_GetShiftState done [20:52:41]req_shift_opened done [20:52:41]requested_item shift.open_date is exist - process it [20:52:41]req_shift_open_date [20:52:41]req_shift_open_date done [20:52:41]produce_requested_data done [20:52:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192772,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [20:52:41]process_action_free close_receipt [20:52:41]json_value_free [20:52:41]json_value_free done [20:52:41]process_json_proto returns [20:52:41]Send response to host [20:52:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192772,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [20:52:41]free response buf [20:52:41]execute_script done [20:52:41]execute_script returns [20:52:41]free content buf [20:52:41]Sock 9.Close socket [20:52:41]Sock 9.Thread stoped [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:46]accept exits with 8 [20:57:46]New connection [20:57:46]New thread 3066658148 created [20:57:46]Thread 3066801508 joined [20:57:46]Waiting for new connection... [20:57:46] Sock 8.Parse request [20:57:46]Sock 8.Check first char [20:57:46]Sock 8.First char is OK [20:57:46]request: POST /json_proto HTTP/1.0 [20:57:46]Method: POST [20:57:46]URL: /json_proto [20:57:46]Method is POST - this is cgi request [20:57:46]url: /json_proto [20:57:46]query_string will be loaded in cgi processing [20:57:46]execute_cgi json_proto POST (null) [20:57:46]execute_cgi path=json_proto method=POST [20:57:46]POST find Content-Length [20:57:46]Host: 172.17.63.131:8080 [20:57:46]Content-Length: 862 [20:57:46]Content-Type: application/json [20:57:46] [20:57:46]POST finish read [20:57:46]Found Content-Length = 862 [20:57:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:46]execute_script... [20:57: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)32103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:46]POST & json_proto [20:57:46]process_json_proto [20:57:46]json parsed OK: [20:57:46]protocol is kg_v1.0 [20:57:46]action value=close_receipt [20:57:46]process_action close_receipt [20:57:46]cmd_close_receipt [20:57:46]MH_GetDate [20:57:46]Write to MH i2c: F0 00 00 F9 11 F9 [20:57:46]Write i2c OK [20:57:46]MH_I2C_Read... [20:57:46]Read from MH i2c: F0 [20:57:46]MH_I2C_Read... [20:57:46]Read from MH i2c: F0 09 00 [20:57:46]MH_I2C_Read... [20:57:46]Read from MH i2c: F0 09 00 F9 11 00 CB FA 1F 67 22 05 6E 64 46 [20:57:46]GetLastDocTimeStamp 1730148759 [20:57:46]current date 1730149067 [20:57:46]FM_GetShiftState [20:57:46]SAM_PROTO_GetShiftState [20:57:46]wFMCommunicate request_size=4 [20:57:46]MH_SAM_APDU [20:57:46]CAPDU: 80 13 01 00 [20:57:46]Write to MH i2c: E2 08 00 FA 11 80 13 01 00 00 00 00 00 88 [20:57:46]Write i2c OK [20:57:46]MH_I2C_Read... [20:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:46]Read from MH i2c: E2 [20:57:46]MH_I2C_Read... [20:57:46]Read from MH i2c: E2 0E 00 [20:57:46]MH_I2C_Read... [20:57:46]Read from MH i2c: E2 0E 00 FA 11 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D8 [20:57:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [20:57:46]wFMCommunicate OK [20:57:46]SAM_PROTO_GetShiftState done [20:57:46]FM_GetShiftState done [20:57:46]opened in 1730075620 [20:57:46]opened+sec_in_day 1730162020 [20:57:46]quantity*price = 60009 [20:57:46]sum+1 = 60010 [20:57:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 321 28.10.2024 20:57 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192773 ФПД: 165500783986004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T205747&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192773&fm=165500783986004&tin=02508201610067®Number=0000000000091776&sum=60009 [20:57:47]StoreToDocumentArchive [20:57:47]shift 543 fd 192773 [20:57:47]save to /storage/0543/doc_00192773 [20:57:47]save last doc name /storage/0543/doc_00192773 to /storage/kkm_last_doc_name [20:57:47]save OK [20:57:47]Clear old archive folders... [20:57:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:57:47]tlvbuf is B6E9C760 [20:57:47]SAM_PROTO_ClearQueue [20:57:47]wFMCommunicate request_size=4 [20:57:47]MH_SAM_APDU [20:57:47]CAPDU: 80 09 00 00 [20:57:47]Write to MH i2c: E2 08 00 07 12 80 09 00 00 00 00 00 00 8B [20:57:47]Write i2c OK [20:57:47]MH_I2C_Read... [20:57:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:47]Read from MH i2c: E2 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: E2 03 00 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: E2 03 00 07 12 00 90 00 8D [20:57:47]RAPDU: 90 00 [20:57:47]wFMCommunicate OK [20:57:47]SAM_PROTO_ClearQueue done [20:57:47]KKMCreateOFDPacket [20:57:47]OFDProtocolAddRootSTLVToBuf [20:57:47]FM_MakeSignedData [20:57:47]FM_MakeSignedData [20:57:47]SAM_PROTO_SignData [20:57:47]wFMCommunicate request_size=4 [20:57:47]MH_SAM_APDU [20:57:47]CAPDU: 80 0D 01 02 [20:57:47]Write to MH i2c: E2 08 00 08 12 80 0D 01 02 00 00 00 00 93 [20:57:47]Write i2c OK [20:57:47]MH_I2C_Read... [20:57:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:47]Read from MH i2c: E2 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: E2 03 00 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: E2 03 00 08 12 00 90 00 8E [20:57:47]RAPDU: 90 00 [20:57:47]wFMCommunicate OK [20:57:47]wFMCommunicate request_size=255 [20:57:47]MH_SAM_APDU [20:57: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 CB FA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 F1 02 00 35 04 06 00 96 [20:57:47]Write to MH i2c: E2 02 01 09 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 CB FA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 F1 02 00 35 04 06 00 96 00 00 52 [20:57:47]Write i2c OK [20:57:47]MH_I2C_Read... [20:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:48]Read from MH i2c: E2 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 03 00 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 03 00 09 12 00 90 00 8F [20:57:48]RAPDU: 90 00 [20:57:48]wFMCommunicate OK [20:57:48]wFMCommunicate request_size=10 [20:57:48]MH_SAM_APDU [20:57:48]CAPDU: 80 0D 02 02 05 85 A7 70 85 54 [20:57:48]Write to MH i2c: E2 0D 00 0A 12 80 0D 02 02 05 00 85 A7 70 85 54 00 00 15 [20:57:48]Write i2c OK [20:57:48]MH_I2C_Read... [20:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:48]Read from MH i2c: E2 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 03 00 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 03 00 0A 12 00 90 00 90 [20:57:48]RAPDU: 90 00 [20:57:48]wFMCommunicate OK [20:57:48]wFMCommunicate request_size=4 [20:57:48]MH_SAM_APDU [20:57:48]CAPDU: 80 0D 03 02 [20:57:48]Write to MH i2c: E2 08 00 0B 12 80 0D 03 02 00 00 00 00 98 [20:57:48]Write i2c OK [20:57:48]MH_I2C_Read... [20:57:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:48]Read from MH i2c: E2 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 0B 00 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 0B 00 0B 12 00 1B 61 2C 58 F3 22 32 03 90 00 E3 [20:57:48]RAPDU: 1B 61 2C 58 F3 22 32 03 90 00 [20:57:48]wFMCommunicate OK [20:57:48]SAM_PROTO_SignData done [20:57:48]FM_MakeSignedData done [20:57:48]CreateOFDProtocolMessage [20:57:48]wFMCommunicate request_size=4 [20:57:48]MH_SAM_APDU [20:57:48]CAPDU: 80 11 00 00 [20:57:48]Write to MH i2c: E2 08 00 0C 12 80 11 00 00 00 00 00 00 98 [20:57:48]Write i2c OK [20:57:48]MH_I2C_Read... [20:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:48]Read from MH i2c: E2 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 17 00 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 17 00 0C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EB [20:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:57:48]wFMCommunicate OK [20:57:48]CreateOFDProtocolMessage done [20:57:48]OFDSenderStorePacket 192773 [20:57:48]StoreOFDPacket docnum=192773 [20:57:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7B CE 07 01 E2 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 CB FA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 F1 02 00 35 04 06 00 96 85 A7 70 85 54 1B 61 2C 58 F3 22 32 03 [20:57:48]CheckFolder [20:57:48]dirname=/storage/ofd_packets [20:57:48]CheckFolder done [20:57:48]ProducePacketName [20:57:48]name=ofd_packets/00192773 [20:57:48]NVStorageSaveData ofd_packets/00192773 [20:57:48]File name is /storage/ofd_packets/00192773 [20:57:48]Write 301 bytes [20:57:48]NVStorageSaveData done [20:57:48]OFDSenderStorePacket done [20:57:48]KKMCreateOFDPacket done [20:57:48]NVStorageSaveData kkm_last_timestamp [20:57:48]File name is /storage/kkm_last_timestamp [20:57:48]Write 4 bytes [20:57:48]NVStorageSaveData done [20:57:48]ExternCall_PrintAddStr [20:57:48]wPrintStart [20:57:48]Write to MH i2c: 01 00 00 0D 12 1F [20:57:48]Write i2c OK [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: 01 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: 01 07 00 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: 01 07 00 0D 12 00 00 00 00 00 FF 0F 34 [20:57:48]RasterBufferAndPrint [20:57:48]line Счет N : (1)32103 [20:57:48]line ИНН: 02508201610067 [20:57:48]line Контрольно-Кассовый Чек [20:57:48]line ПРОДАЖА [20:57:48]line ТРК (МРК, ГНК) : 21 [20:57:48]line Товар: 2710124130 [20:57:48]line Аи-92-К-5 [20:57:48]line 8.970 * 66.90 [20:57:48]line = 600.09 [20:57:48]line НДС 12% НСП 1% [20:57:48]line > о реализуемом товаре [20:57:48]line ИТОГО: 600.09 [20:57:48]line НСП 1% : 5.31 [20:57:48]line НДС 12% : 63.73 [20:57:48]line Наличными: 0.00 [20:57:48]line Безнал.: 600.09 [20:57:48]line Место: АЗС № 170 "Партнер Нефть" [20:57:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:57:48]line СНО: Общий режим [20:57:48]line Чек 321 28.10.2024 20:57 [20:57:48]line Смена: 543 ФФД: 1.0 [20:57:48]line ЗНМ: 0300000110 [20:57:48]line РНМ: 0000000000091776 [20:57:48]line Версия ККМ: 001 [20:57:48]line Платежная система: Кыргызкоммерцбанк [20:57:48]line ФМ: 0000000000871754 [20:57:48]line ФД: 192773 [20:57:48]line ФПД: 165500783986004 [20:57:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T205747&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192773&fm=165500783986004&tin=02508201610067®Number=0000000000091776&sum=60009 [20:57:48]OFD Sender: Processing packet 192773 [packets to send 75, broken 74] [20:57:48]ProducePacketName [20:57:48]name=ofd_packets/00192773 [20:57:48]OFD Sender: To server: pG, [20:57:48]CommunicateWithHost lk.salyk.kg:30040 [20:57:48]ConnectInit lk.salyk.kg [20:57:48]written 0, free lines is 4095 [20:57:48]Connected sock=10 [20:57:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7B CE 07 01 E2 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 CB FA 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 F1 02 00 35 04 06 00 96 85 A7 70 85 54 1B 61 2C 58 F3 22 32 03 [20:57:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 02 1E 47 00 39 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 F1 02 00 F4 03 04 00 8E 9F 1F 67 B6 04 01 00 00 CE B0 D4 1A 49 90 18 33 [20:57:48]CommunicateWithHost err = 0 [20:57:48]CheckOFDResponse [20:57:48]1017 (14) - 77093643461234 [20:57:48]1041 (16) - 0000000000871754 [20:57:48]1040 (4) - 192773 [20:57:48]1012 (4) - 28.10.2024 14:28 [20:57:48]1206 (1) - 0 [20:57:48]OFD Sender: Remove packet 192773 [20:57:48]ProducePacketName [20:57:48]name=ofd_packets/00192773 [20:57:48]NVStorageDeleteData [20:57:49]Write to MH i2c: 01 00 00 37 12 49 [20:57:49]Write i2c OK [20:57:49]MH_I2C_Read... [20:57:49]Read from MH i2c: 01 [20:57:49]MH_I2C_Read... [20:57:49]Read from MH i2c: 01 07 00 [20:57:49]MH_I2C_Read... [20:57:49]Read from MH i2c: 01 07 00 37 12 00 00 00 00 00 CA 0C 26 [20:57:49]RasterBufferAndPrint [20:57:49]line [20:57:49]line [20:57:49]line [20:57:49]line [20:57:49]line [20:57:49]written 0, free lines is 3280 [20:57:49]MH_Cut [20:57:49]Write to MH i2c: D1 01 00 3E 12 01 22 [20:57:49]Write i2c OK [20:57:49]MH_I2C_Read... [20:57:49]Read from MH i2c: D1 [20:57:49]MH_I2C_Read... [20:57:49]Read from MH i2c: D1 01 00 [20:57:49]MH_I2C_Read... [20:57:49]Read from MH i2c: D1 01 00 3E 12 00 21 [20:57:49]Write to MH i2c: 01 00 00 3F 12 51 [20:57:49]Write i2c OK [20:57:49]MH_I2C_Read... [20:57:49]OFD Sender: No OFD packet to send [20:57:49]*** Cut start [20:57:49]*** Partial cut [20:57:49]*** CUTSNS_PIN = 1 [20:57:49]*** CUTSNS_PIN = 0 [20:57:50]*** Brake cut motor [20:57:50]Read from MH i2c: 01 [20:57:50]MH_I2C_Read... [20:57:50]*** Stop cut motor [20:57:50]*** Cut end [20:57:50]Read from MH i2c: 01 07 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: 01 07 00 3F 12 00 00 00 00 00 FF 0F 66 [20:57:50]process_action close_receipt done [20:57:50]requested_data is exist [20:57:50]produce_requested_data [20:57:50]requested_item fm.sn is exist - process it [20:57:50]wFMCommunicate request_size=4 [20:57:50]MH_SAM_APDU [20:57:50]CAPDU: 80 11 00 00 [20:57:50]Write to MH i2c: E2 08 00 40 12 80 11 00 00 00 00 00 00 CC [20:57:50]Write i2c OK [20:57:50]MH_I2C_Read... [20:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:50]Read from MH i2c: E2 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 17 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 17 00 40 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1F [20:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:57:50]wFMCommunicate OK [20:57:50]requested_item fd.num is exist - process it [20:57:50]SAM_PROTO_GetFieldsCounters [20:57:50]wFMCommunicate request_size=4 [20:57:50]MH_SAM_APDU [20:57:50]CAPDU: 80 13 00 00 [20:57:50]Write to MH i2c: E2 08 00 41 12 80 13 00 00 00 00 00 00 CF [20:57:50]Write i2c OK [20:57:50]MH_I2C_Read... [20:57:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:50]Read from MH i2c: E2 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 62 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 62 00 41 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 D4 [20:57:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:57:50]wFMCommunicate OK [20:57:50]SAM_PROTO_GetFieldsCounters done [20:57:50]requested_item shift.num is exist - process it [20:57:50]requested_item shift.opened is exist - process it [20:57:50]req_shift_opened [20:57:50]FM_GetShiftState [20:57:50]SAM_PROTO_GetShiftState [20:57:50]wFMCommunicate request_size=4 [20:57:50]MH_SAM_APDU [20:57:50]CAPDU: 80 13 01 00 [20:57:50]Write to MH i2c: E2 08 00 42 12 80 13 01 00 00 00 00 00 D1 [20:57:50]Write i2c OK [20:57:50]MH_I2C_Read... [20:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:50]Read from MH i2c: E2 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 0E 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 0E 00 42 12 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 21 [20:57:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [20:57:50]wFMCommunicate OK [20:57:50]SAM_PROTO_GetShiftState done [20:57:50]FM_GetShiftState done [20:57:50]req_shift_opened done [20:57:50]requested_item shift.open_date is exist - process it [20:57:50]req_shift_open_date [20:57:50]req_shift_open_date done [20:57:50]produce_requested_data done [20:57:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192773,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [20:57:50]process_action_free close_receipt [20:57:50]json_value_free [20:57:50]json_value_free done [20:57:50]process_json_proto returns [20:57:50]Send response to host [20:57:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192773,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [20:57:50]free response buf [20:57:50]execute_script done [20:57:50]execute_script returns [20:57:50]free content buf [20:57:50]Sock 8.Close socket [20:57:50]Sock 8.Thread stoped [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:18]accept exits with 9 [21:06:18]New connection [21:06:18]New thread 3066801508 created [21:06:18]Thread 3066658148 joined [21:06:18]Waiting for new connection... [21:06:18] Sock 9.Parse request [21:06:18]Sock 9.Check first char [21:06:18]Sock 9.First char is OK [21:06:18]request: POST /json_proto HTTP/1.0 [21:06:18]Method: POST [21:06:18]URL: /json_proto [21:06:18]Method is POST - this is cgi request [21:06:18]url: /json_proto [21:06:18]query_string will be loaded in cgi processing [21:06:18]execute_cgi json_proto POST (null) [21:06:18]execute_cgi path=json_proto method=POST [21:06:18]POST find Content-Length [21:06:18]Host: 172.17.63.131:8080 [21:06:18]Content-Length: 862 [21:06:18]Content-Type: application/json [21:06:18] [21:06:18]POST finish read [21:06:18]Found Content-Length = 862 [21:06:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:18]execute_script... [21:06:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:18]POST & json_proto [21:06:18]process_json_proto [21:06:18]json parsed OK: [21:06:18]protocol is kg_v1.0 [21:06:18]action value=close_receipt [21:06:18]process_action close_receipt [21:06:18]cmd_close_receipt [21:06:18]MH_GetDate [21:06:18]Write to MH i2c: F0 00 00 43 12 44 [21:06:18]Write i2c OK [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: F0 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: F0 09 00 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: F0 09 00 43 12 00 CB FC 1F 67 22 05 6E 64 93 [21:06:18]GetLastDocTimeStamp 1730149067 [21:06:18]current date 1730149579 [21:06:18]FM_GetShiftState [21:06:18]SAM_PROTO_GetShiftState [21:06:18]wFMCommunicate request_size=4 [21:06:18]MH_SAM_APDU [21:06:18]CAPDU: 80 13 01 00 [21:06:18]Write to MH i2c: E2 08 00 44 12 80 13 01 00 00 00 00 00 D3 [21:06:18]Write i2c OK [21:06:18]MH_I2C_Read... [21:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:18]Read from MH i2c: E2 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: E2 0E 00 [21:06:18]MH_I2C_Read... [21:06:18]Read from MH i2c: E2 0E 00 44 12 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 23 [21:06:18]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:06:18]wFMCommunicate OK [21:06:18]SAM_PROTO_GetShiftState done [21:06:18]FM_GetShiftState done [21:06:18]opened in 1730075620 [21:06:18]opened+sec_in_day 1730162020 [21:06:18]quantity*price = 20003 [21:06:18]sum+1 = 20004 [21:06:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 322 28.10.2024 21:06 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192774 ФПД: 224260614804322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T210619&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192774&fm=224260614804322&tin=02508201610067®Number=0000000000091776&sum=20003 [21:06:19]StoreToDocumentArchive [21:06:19]shift 543 fd 192774 [21:06:19]save to /storage/0543/doc_00192774 [21:06:19]save last doc name /storage/0543/doc_00192774 to /storage/kkm_last_doc_name [21:06:19]save OK [21:06:19]Clear old archive folders... [21:06:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:06:19]tlvbuf is 00EE7030 [21:06:19]SAM_PROTO_ClearQueue [21:06:19]wFMCommunicate request_size=4 [21:06:19]MH_SAM_APDU [21:06:19]CAPDU: 80 09 00 00 [21:06:19]Write to MH i2c: E2 08 00 51 12 80 09 00 00 00 00 00 00 D5 [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:19]Read from MH i2c: E2 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 03 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 03 00 51 12 00 90 00 D7 [21:06:19]RAPDU: 90 00 [21:06:19]wFMCommunicate OK [21:06:19]SAM_PROTO_ClearQueue done [21:06:19]KKMCreateOFDPacket [21:06:19]OFDProtocolAddRootSTLVToBuf [21:06:19]FM_MakeSignedData [21:06:19]FM_MakeSignedData [21:06:19]SAM_PROTO_SignData [21:06:19]wFMCommunicate request_size=4 [21:06:19]MH_SAM_APDU [21:06:19]CAPDU: 80 0D 01 02 [21:06:19]Write to MH i2c: E2 08 00 52 12 80 0D 01 02 00 00 00 00 DD [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:19]Read from MH i2c: E2 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 03 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 03 00 52 12 00 90 00 D8 [21:06:19]RAPDU: 90 00 [21:06:19]wFMCommunicate OK [21:06:19]wFMCommunicate request_size=255 [21:06:19]MH_SAM_APDU [21:06:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 CB FC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 F1 02 00 35 04 06 00 CB [21:06:19]Write to MH i2c: E2 02 01 53 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 CB FC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 F1 02 00 35 04 06 00 CB 00 00 AE [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:19]Read from MH i2c: E2 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 03 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 03 00 53 12 00 90 00 D9 [21:06:19]RAPDU: 90 00 [21:06:19]wFMCommunicate OK [21:06:19]wFMCommunicate request_size=10 [21:06:19]MH_SAM_APDU [21:06:19]CAPDU: 80 0D 02 02 05 F6 BE 48 53 62 [21:06:19]Write to MH i2c: E2 0D 00 54 12 80 0D 02 02 05 00 F6 BE 48 53 62 00 00 9B [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:19]Read from MH i2c: E2 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 03 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 03 00 54 12 00 90 00 DA [21:06:19]RAPDU: 90 00 [21:06:19]wFMCommunicate OK [21:06:19]wFMCommunicate request_size=4 [21:06:19]MH_SAM_APDU [21:06:19]CAPDU: 80 0D 03 02 [21:06:19]Write to MH i2c: E2 08 00 55 12 80 0D 03 02 00 00 00 00 E2 [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:19]Read from MH i2c: E2 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 0B 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 0B 00 55 12 00 43 FC 7C 1E 47 89 81 71 90 00 7E [21:06:19]RAPDU: 43 FC 7C 1E 47 89 81 71 90 00 [21:06:19]wFMCommunicate OK [21:06:19]SAM_PROTO_SignData done [21:06:19]FM_MakeSignedData done [21:06:19]CreateOFDProtocolMessage [21:06:19]wFMCommunicate request_size=4 [21:06:19]MH_SAM_APDU [21:06:19]CAPDU: 80 11 00 00 [21:06:19]Write to MH i2c: E2 08 00 56 12 80 11 00 00 00 00 00 00 E2 [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:19]Read from MH i2c: E2 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 17 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: E2 17 00 56 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 35 [21:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:06:19]wFMCommunicate OK [21:06:19]CreateOFDProtocolMessage done [21:06:19]OFDSenderStorePacket 192774 [21:06:19]StoreOFDPacket docnum=192774 [21:06:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F1 B7 07 01 0C 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 CB FC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 F1 02 00 35 04 06 00 CB F6 BE 48 53 62 43 FC 7C 1E 47 89 81 71 [21:06:19]CheckFolder [21:06:19]dirname=/storage/ofd_packets [21:06:19]CheckFolder done [21:06:19]ProducePacketName [21:06:19]name=ofd_packets/00192774 [21:06:19]NVStorageSaveData ofd_packets/00192774 [21:06:19]File name is /storage/ofd_packets/00192774 [21:06:19]Write 301 bytes [21:06:19]NVStorageSaveData done [21:06:19]OFDSenderStorePacket done [21:06:19]KKMCreateOFDPacket done [21:06:19]NVStorageSaveData kkm_last_timestamp [21:06:19]File name is /storage/kkm_last_timestamp [21:06:19]Write 4 bytes [21:06:19]NVStorageSaveData done [21:06:19]ExternCall_PrintAddStr [21:06:19]wPrintStart [21:06:19]Write to MH i2c: 01 00 00 57 12 69 [21:06:19]Write i2c OK [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: 01 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: 01 07 00 [21:06:19]MH_I2C_Read... [21:06:19]Read from MH i2c: 01 07 00 57 12 00 00 00 00 00 FF 0F 7E [21:06:19]RasterBufferAndPrint [21:06:19]line Счет N : (1)32104 [21:06:19]line ИНН: 02508201610067 [21:06:19]line Контрольно-Кассовый Чек [21:06:19]line ПРОДАЖА [21:06:19]line ТРК (МРК, ГНК) : 12 [21:06:19]line Товар: 2710124130 [21:06:19]line Аи-92-К-5 [21:06:19]line 2.990 * 66.90 [21:06:19]line = 200.03 [21:06:19]line НДС 12% НСП 1% [21:06:19]line > о реализуемом товаре [21:06:19]line ИТОГО: 200.03 [21:06:19]line НСП 1% : 1.77 [21:06:19]line НДС 12% : 21.24 [21:06:19]line Наличными: 0.00 [21:06:19]line Безнал.: 200.03 [21:06:19]line Место: АЗС № 170 "Партнер Нефть" [21:06:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:06:19]line СНО: Общий режим [21:06:19]line Чек 322 28.10.2024 21:06 [21:06:19]line Смена: 543 ФФД: 1.0 [21:06:19]line ЗНМ: 0300000110 [21:06:19]line РНМ: 0000000000091776 [21:06:19]line Версия ККМ: 001 [21:06:19]line Платежная система: Кыргызкоммерцбанк [21:06:19]line ФМ: 0000000000871754 [21:06:19]line ФД: 192774 [21:06:19]line ФПД: 224260614804322 [21:06:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T210619&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192774&fm=224260614804322&tin=02508201610067®Number=0000000000091776&sum=20003 [21:06:20]OFD Sender: Processing packet 192774 [packets to send 75, broken 74] [21:06:20]ProducePacketName [21:06:20]name=ofd_packets/00192774 [21:06:20]OFD Sender: To server: pG, [21:06:20]CommunicateWithHost lk.salyk.kg:30040 [21:06:20]ConnectInit lk.salyk.kg [21:06:20]written 0, free lines is 4095 [21:06:20]Connected sock=10 [21:06:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F1 B7 07 01 0C 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 CB FC 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 F1 02 00 35 04 06 00 CB F6 BE 48 53 62 43 FC 7C 1E 47 89 81 71 [21:06:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 17 E0 47 00 04 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 F1 02 00 F4 03 04 00 8E A1 1F 67 B6 04 01 00 00 29 18 EC CF 74 5C 2D 99 [21:06:20]CommunicateWithHost err = 0 [21:06:20]CheckOFDResponse [21:06:20]1017 (14) - 77093643461234 [21:06:20]1041 (16) - 0000000000871754 [21:06:20]1040 (4) - 192774 [21:06:20]1012 (4) - 28.10.2024 14:37 [21:06:20]1206 (1) - 0 [21:06:20]OFD Sender: Remove packet 192774 [21:06:20]ProducePacketName [21:06:20]name=ofd_packets/00192774 [21:06:20]NVStorageDeleteData [21:06:20]Write to MH i2c: 01 00 00 81 12 93 [21:06:20]Write i2c OK [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: 01 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: 01 07 00 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: 01 07 00 81 12 00 00 00 00 00 D7 0C 7D [21:06:20]RasterBufferAndPrint [21:06:20]line [21:06:20]line [21:06:20]line [21:06:20]line [21:06:20]line [21:06:20]written 0, free lines is 3292 [21:06:20]MH_Cut [21:06:20]Write to MH i2c: D1 01 00 88 12 01 6C [21:06:20]Write i2c OK [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: D1 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: D1 01 00 [21:06:20]MH_I2C_Read... [21:06:20]Read from MH i2c: D1 01 00 88 12 00 6B [21:06:20]Write to MH i2c: 01 00 00 89 12 9B [21:06:20]Write i2c OK [21:06:20]MH_I2C_Read... [21:06:20]OFD Sender: No OFD packet to send [21:06:21]*** Cut start [21:06:21]*** Partial cut [21:06:21]*** CUTSNS_PIN = 1 [21:06:21]*** CUTSNS_PIN = 0 [21:06:21]*** Brake cut motor [21:06:22]Read from MH i2c: 01 [21:06:22]MH_I2C_Read... [21:06:22]*** Stop cut motor [21:06:22]*** Cut end [21:06:22]Read from MH i2c: 01 07 00 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: 01 07 00 89 12 00 00 00 00 00 FF 0F B0 [21:06:22]process_action close_receipt done [21:06:22]requested_data is exist [21:06:22]produce_requested_data [21:06:22]requested_item fm.sn is exist - process it [21:06:22]wFMCommunicate request_size=4 [21:06:22]MH_SAM_APDU [21:06:22]CAPDU: 80 11 00 00 [21:06:22]Write to MH i2c: E2 08 00 8A 12 80 11 00 00 00 00 00 00 16 [21:06:22]Write i2c OK [21:06:22]MH_I2C_Read... [21:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:22]Read from MH i2c: E2 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: E2 17 00 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: E2 17 00 8A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [21:06:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:06:22]wFMCommunicate OK [21:06:22]requested_item fd.num is exist - process it [21:06:22]SAM_PROTO_GetFieldsCounters [21:06:22]wFMCommunicate request_size=4 [21:06:22]MH_SAM_APDU [21:06:22]CAPDU: 80 13 00 00 [21:06:22]Write to MH i2c: E2 08 00 8B 12 80 13 00 00 00 00 00 00 19 [21:06:22]Write i2c OK [21:06:22]MH_I2C_Read... [21:06:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:22]Read from MH i2c: E2 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: E2 62 00 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: E2 62 00 8B 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 06 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [21:06:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 06 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:22]wFMCommunicate OK [21:06:22]SAM_PROTO_GetFieldsCounters done [21:06:22]requested_item shift.num is exist - process it [21:06:22]requested_item shift.opened is exist - process it [21:06:22]req_shift_opened [21:06:22]FM_GetShiftState [21:06:22]SAM_PROTO_GetShiftState [21:06:22]wFMCommunicate request_size=4 [21:06:22]MH_SAM_APDU [21:06:22]CAPDU: 80 13 01 00 [21:06:22]Write to MH i2c: E2 08 00 8C 12 80 13 01 00 00 00 00 00 1B [21:06:22]Write i2c OK [21:06:22]MH_I2C_Read... [21:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:22]Read from MH i2c: E2 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: E2 0E 00 [21:06:22]MH_I2C_Read... [21:06:22]Read from MH i2c: E2 0E 00 8C 12 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 6B [21:06:22]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:06:22]wFMCommunicate OK [21:06:22]SAM_PROTO_GetShiftState done [21:06:22]FM_GetShiftState done [21:06:22]req_shift_opened done [21:06:22]requested_item shift.open_date is exist - process it [21:06:22]req_shift_open_date [21:06:22]req_shift_open_date done [21:06:22]produce_requested_data done [21:06:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192774,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [21:06:22]process_action_free close_receipt [21:06:22]json_value_free [21:06:22]json_value_free done [21:06:22]process_json_proto returns [21:06:22]Send response to host [21:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192774,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [21:06:22]free response buf [21:06:22]execute_script done [21:06:22]execute_script returns [21:06:22]free content buf [21:06:22]Sock 9.Close socket [21:06:22]Sock 9.Thread stoped [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:46]OFD Sender: No OFD packet to send [21:06:51]OFD Sender: No OFD packet to send [21:06:56]OFD Sender: No OFD packet to send [21:07:01]OFD Sender: No OFD packet to send [21:07:06]OFD Sender: No OFD packet to send [21:07:11]OFD Sender: No OFD packet to send [21:07:16]OFD Sender: No OFD packet to send [21:07:21]OFD Sender: No OFD packet to send [21:07:26]OFD Sender: No OFD packet to send [21:07:31]OFD Sender: No OFD packet to send [21:07:36]accept exits with 8 [21:07:36]New connection [21:07:36]New thread 3066658148 created [21:07:36]Thread 3066801508 joined [21:07:36]Waiting for new connection... [21:07:36] Sock 8.Parse request [21:07:36]Sock 8.Check first char [21:07:36]Sock 8.First char is OK [21:07:36]request: POST /json_proto HTTP/1.0 [21:07:36]Method: POST [21:07:36]URL: /json_proto [21:07:36]Method is POST - this is cgi request [21:07:36]url: /json_proto [21:07:36]query_string will be loaded in cgi processing [21:07:36]execute_cgi json_proto POST (null) [21:07:36]execute_cgi path=json_proto method=POST [21:07:36]POST find Content-Length [21:07:36]Host: 172.17.63.131:8080 [21:07:36]Content-Length: 676 [21:07:36]Content-Type: application/json [21:07:36] [21:07:36]POST finish read [21:07:36]Found Content-Length = 676 [21:07:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:36]execute_script... [21:07: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)32105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:36]POST & json_proto [21:07:36]process_json_proto [21:07:36]json parsed OK: [21:07:36]protocol is kg_v1.0 [21:07:36]action value=close_receipt [21:07:36]process_action close_receipt [21:07:36]cmd_close_receipt [21:07:36]MH_GetDate [21:07:36]Write to MH i2c: F0 00 00 8D 12 8E [21:07:36]Write i2c OK [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: F0 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: F0 09 00 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: F0 09 00 8D 12 00 19 FD 1F 67 22 05 6E 64 2C [21:07:36]GetLastDocTimeStamp 1730149579 [21:07:36]current date 1730149657 [21:07:36]FM_GetShiftState [21:07:36]SAM_PROTO_GetShiftState [21:07:36]wFMCommunicate request_size=4 [21:07:36]MH_SAM_APDU [21:07:36]CAPDU: 80 13 01 00 [21:07:36]Write to MH i2c: E2 08 00 8E 12 80 13 01 00 00 00 00 00 1D [21:07:36]Write i2c OK [21:07:36]MH_I2C_Read... [21:07:36]OFD Sender: No OFD packet to send [21:07:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:36]Read from MH i2c: E2 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: E2 0E 00 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: E2 0E 00 8E 12 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 6D [21:07:36]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:07:36]wFMCommunicate OK [21:07:36]SAM_PROTO_GetShiftState done [21:07:36]FM_GetShiftState done [21:07:36]opened in 1730075620 [21:07:36]opened+sec_in_day 1730162020 [21:07:36]quantity*price = 50041 [21:07:36]sum+1 = 50042 [21:07:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 323 28.10.2024 21:07 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192775 ФПД: 8043459665601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T210737&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192775&fm=8043459665601&tin=02508201610067®Number=0000000000091776&sum=50000 [21:07:37]StoreToDocumentArchive [21:07:37]shift 543 fd 192775 [21:07:37]save to /storage/0543/doc_00192775 [21:07:37]save last doc name /storage/0543/doc_00192775 to /storage/kkm_last_doc_name [21:07:37]save OK [21:07:37]Clear old archive folders... [21:07:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:07:37]tlvbuf is 00F83B70 [21:07:37]SAM_PROTO_ClearQueue [21:07:37]wFMCommunicate request_size=4 [21:07:37]MH_SAM_APDU [21:07:37]CAPDU: 80 09 00 00 [21:07:37]Write to MH i2c: E2 08 00 9B 12 80 09 00 00 00 00 00 00 1F [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:37]Read from MH i2c: E2 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 03 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 03 00 9B 12 00 90 00 21 [21:07:37]RAPDU: 90 00 [21:07:37]wFMCommunicate OK [21:07:37]SAM_PROTO_ClearQueue done [21:07:37]KKMCreateOFDPacket [21:07:37]OFDProtocolAddRootSTLVToBuf [21:07:37]FM_MakeSignedData [21:07:37]FM_MakeSignedData [21:07:37]SAM_PROTO_SignData [21:07:37]wFMCommunicate request_size=4 [21:07:37]MH_SAM_APDU [21:07:37]CAPDU: 80 0D 01 02 [21:07:37]Write to MH i2c: E2 08 00 9C 12 80 0D 01 02 00 00 00 00 27 [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:37]Read from MH i2c: E2 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 03 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 03 00 9C 12 00 90 00 22 [21:07:37]RAPDU: 90 00 [21:07:37]wFMCommunicate OK [21:07:37]wFMCommunicate request_size=255 [21:07:37]MH_SAM_APDU [21:07:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 19 FD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 F1 02 00 35 04 06 00 07 [21:07:37]Write to MH i2c: E2 02 01 9D 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 19 FD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 F1 02 00 35 04 06 00 07 00 00 BD [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:37]Read from MH i2c: E2 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 03 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 03 00 9D 12 00 90 00 23 [21:07:37]RAPDU: 90 00 [21:07:37]wFMCommunicate OK [21:07:37]wFMCommunicate request_size=10 [21:07:37]MH_SAM_APDU [21:07:37]CAPDU: 80 0D 02 02 05 50 C3 8E 5E C1 [21:07:37]Write to MH i2c: E2 0D 00 9E 12 80 0D 02 02 05 00 50 C3 8E 5E C1 00 00 F4 [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:37]Read from MH i2c: E2 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 03 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 03 00 9E 12 00 90 00 24 [21:07:37]RAPDU: 90 00 [21:07:37]wFMCommunicate OK [21:07:37]wFMCommunicate request_size=4 [21:07:37]MH_SAM_APDU [21:07:37]CAPDU: 80 0D 03 02 [21:07:37]Write to MH i2c: E2 08 00 9F 12 80 0D 03 02 00 00 00 00 2C [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:37]Read from MH i2c: E2 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 0B 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 0B 00 9F 12 00 15 1A 7F 3A BE BB 18 EA 90 00 90 [21:07:37]RAPDU: 15 1A 7F 3A BE BB 18 EA 90 00 [21:07:37]wFMCommunicate OK [21:07:37]SAM_PROTO_SignData done [21:07:37]FM_MakeSignedData done [21:07:37]CreateOFDProtocolMessage [21:07:37]wFMCommunicate request_size=4 [21:07:37]MH_SAM_APDU [21:07:37]CAPDU: 80 11 00 00 [21:07:37]Write to MH i2c: E2 08 00 A0 12 80 11 00 00 00 00 00 00 2C [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:37]Read from MH i2c: E2 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 17 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 17 00 A0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [21:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:07:37]wFMCommunicate OK [21:07:37]CreateOFDProtocolMessage done [21:07:37]OFDSenderStorePacket 192775 [21:07:37]StoreOFDPacket docnum=192775 [21:07:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 20 05 07 01 EB D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 19 FD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 F1 02 00 35 04 06 00 07 50 C3 8E 5E C1 15 1A 7F 3A BE BB 18 EA [21:07:37]CheckFolder [21:07:37]dirname=/storage/ofd_packets [21:07:37]CheckFolder done [21:07:37]ProducePacketName [21:07:37]name=ofd_packets/00192775 [21:07:37]NVStorageSaveData ofd_packets/00192775 [21:07:37]File name is /storage/ofd_packets/00192775 [21:07:37]Write 301 bytes [21:07:37]NVStorageSaveData done [21:07:37]OFDSenderStorePacket done [21:07:37]KKMCreateOFDPacket done [21:07:37]NVStorageSaveData kkm_last_timestamp [21:07:37]File name is /storage/kkm_last_timestamp [21:07:37]Write 4 bytes [21:07:37]NVStorageSaveData done [21:07:37]ExternCall_PrintAddStr [21:07:37]wPrintStart [21:07:37]Write to MH i2c: 01 00 00 A1 12 B3 [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: 01 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: 01 07 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: 01 07 00 A1 12 00 00 00 00 00 FF 0F C8 [21:07:37]RasterBufferAndPrint [21:07:37]line Счет N : (1)32105 [21:07:37]line ИНН: 02508201610067 [21:07:37]line Контрольно-Кассовый Чек [21:07:37]line ПРОДАЖА [21:07:37]line ТРК (МРК, ГНК) : 21 [21:07:37]line Товар: 2710124130 [21:07:37]line Аи-92-К-5 [21:07:37]line 7.480 * 66.90 [21:07:37]line = 500.41 [21:07:37]line НДС 12% НСП 1% [21:07:37]line > о реализуемом товаре [21:07:37]line ОКРУГЛЕНИЕ: -0.41 [21:07:37]line ИТОГО: 500.00 [21:07:37]line Внесено: 500.00 [21:07:37]line СДАЧА: 0.00 [21:07:37]line НСП 1% : 4.43 [21:07:37]line НДС 12% : 53.14 [21:07:37]line Наличными: 500.00 [21:07:37]line Безнал.: 0.00 [21:07:37]line Место: АЗС № 170 "Партнер Нефть" [21:07:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:07:37]line СНО: Общий режим [21:07:37]line Чек 323 28.10.2024 21:07 [21:07:37]line Смена: 543 ФФД: 1.0 [21:07:37]line ЗНМ: 0300000110 [21:07:37]line РНМ: 0000000000091776 [21:07:37]line Версия ККМ: 001 [21:07:37]line ФМ: 0000000000871754 [21:07:37]line ФД: 192775 [21:07:37]line ФПД: 8043459665601 [21:07:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T210737&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192775&fm=8043459665601&tin=02508201610067®Number=0000000000091776&sum=50000 [21:07:38]OFD Sender: Processing packet 192775 [packets to send 75, broken 74] [21:07:38]ProducePacketName [21:07:38]name=ofd_packets/00192775 [21:07:38]OFD Sender: To server: pG, [21:07:38]CommunicateWithHost lk.salyk.kg:30040 [21:07:38]ConnectInit lk.salyk.kg [21:07:38]written 0, free lines is 4095 [21:07:38]Connected sock=10 [21:07:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 20 05 07 01 EB D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 19 FD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 F1 02 00 35 04 06 00 07 50 C3 8E 5E C1 15 1A 7F 3A BE BB 18 EA [21:07:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0B 90 47 00 9E 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 F1 02 00 F4 03 04 00 DC A1 1F 67 B6 04 01 00 00 9F 8C B8 0D 92 22 E3 CE [21:07:38]CommunicateWithHost err = 0 [21:07:38]CheckOFDResponse [21:07:38]1017 (14) - 77093643461234 [21:07:38]1041 (16) - 0000000000871754 [21:07:38]1040 (4) - 192775 [21:07:38]1012 (4) - 28.10.2024 14:38 [21:07:38]1206 (1) - 0 [21:07:38]OFD Sender: Remove packet 192775 [21:07:38]ProducePacketName [21:07:38]name=ofd_packets/00192775 [21:07:38]NVStorageDeleteData [21:07:38]Write to MH i2c: 01 00 00 CC 12 DE [21:07:38]Write i2c OK [21:07:38]MH_I2C_Read... [21:07:38]Read from MH i2c: 01 [21:07:38]MH_I2C_Read... [21:07:38]Read from MH i2c: 01 07 00 [21:07:38]MH_I2C_Read... [21:07:38]Read from MH i2c: 01 07 00 CC 12 00 00 00 00 00 AE 0C 9F [21:07:38]RasterBufferAndPrint [21:07:38]line [21:07:38]line [21:07:38]line [21:07:38]line [21:07:38]line [21:07:38]written 0, free lines is 3252 [21:07:38]MH_Cut [21:07:38]Write to MH i2c: D1 01 00 D3 12 01 B7 [21:07:38]Write i2c OK [21:07:38]MH_I2C_Read... [21:07:38]Read from MH i2c: D1 [21:07:38]MH_I2C_Read... [21:07:38]Read from MH i2c: D1 01 00 [21:07:38]MH_I2C_Read... [21:07:38]Read from MH i2c: D1 01 00 D3 12 00 B6 [21:07:38]Write to MH i2c: 01 00 00 D4 12 E6 [21:07:38]Write i2c OK [21:07:38]MH_I2C_Read... [21:07:38]OFD Sender: No OFD packet to send [21:07:39]*** Cut start [21:07:39]*** Partial cut [21:07:39]*** CUTSNS_PIN = 1 [21:07:39]*** CUTSNS_PIN = 0 [21:07:39]*** Brake cut motor [21:07:39]Read from MH i2c: 01 [21:07:39]MH_I2C_Read... [21:07:39]*** Stop cut motor [21:07:39]*** Cut end [21:07:39]Read from MH i2c: 01 07 00 [21:07:39]MH_I2C_Read... [21:07:39]Read from MH i2c: 01 07 00 D4 12 00 00 00 00 00 FF 0F FB [21:07:39]process_action close_receipt done [21:07:39]requested_data is exist [21:07:39]produce_requested_data [21:07:39]requested_item fm.sn is exist - process it [21:07:39]wFMCommunicate request_size=4 [21:07:39]MH_SAM_APDU [21:07:39]CAPDU: 80 11 00 00 [21:07:39]Write to MH i2c: E2 08 00 D5 12 80 11 00 00 00 00 00 00 61 [21:07:39]Write i2c OK [21:07:39]MH_I2C_Read... [21:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:40]Read from MH i2c: E2 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 17 00 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 17 00 D5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B4 [21:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:07:40]wFMCommunicate OK [21:07:40]requested_item fd.num is exist - process it [21:07:40]SAM_PROTO_GetFieldsCounters [21:07:40]wFMCommunicate request_size=4 [21:07:40]MH_SAM_APDU [21:07:40]CAPDU: 80 13 00 00 [21:07:40]Write to MH i2c: E2 08 00 D6 12 80 13 00 00 00 00 00 00 64 [21:07:40]Write i2c OK [21:07:40]MH_I2C_Read... [21:07:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:40]Read from MH i2c: E2 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 62 00 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 62 00 D6 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 07 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 71 [21:07:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 07 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:40]wFMCommunicate OK [21:07:40]SAM_PROTO_GetFieldsCounters done [21:07:40]requested_item shift.num is exist - process it [21:07:40]requested_item shift.opened is exist - process it [21:07:40]req_shift_opened [21:07:40]FM_GetShiftState [21:07:40]SAM_PROTO_GetShiftState [21:07:40]wFMCommunicate request_size=4 [21:07:40]MH_SAM_APDU [21:07:40]CAPDU: 80 13 01 00 [21:07:40]Write to MH i2c: E2 08 00 D7 12 80 13 01 00 00 00 00 00 66 [21:07:40]Write i2c OK [21:07:40]MH_I2C_Read... [21:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:40]Read from MH i2c: E2 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 0E 00 [21:07:40]MH_I2C_Read... [21:07:40]Read from MH i2c: E2 0E 00 D7 12 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B6 [21:07:40]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:07:40]wFMCommunicate OK [21:07:40]SAM_PROTO_GetShiftState done [21:07:40]FM_GetShiftState done [21:07:40]req_shift_opened done [21:07:40]requested_item shift.open_date is exist - process it [21:07:40]req_shift_open_date [21:07:40]req_shift_open_date done [21:07:40]produce_requested_data done [21:07:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192775,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [21:07:40]process_action_free close_receipt [21:07:40]json_value_free [21:07:40]json_value_free done [21:07:40]process_json_proto returns [21:07:40]Send response to host [21:07:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192775,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [21:07:40]free response buf [21:07:40]execute_script done [21:07:40]execute_script returns [21:07:40]free content buf [21:07:40]Sock 8.Close socket [21:07:40]Sock 8.Thread stoped [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:10]accept exits with 9 [21:09:10]New connection [21:09:10]New thread 3066801508 created [21:09:10]Thread 3066658148 joined [21:09:10]Waiting for new connection... [21:09:10] Sock 9.Parse request [21:09:10]Sock 9.Check first char [21:09:10]Sock 9.First char is OK [21:09:10]request: POST /json_proto HTTP/1.0 [21:09:10]Method: POST [21:09:10]URL: /json_proto [21:09:10]Method is POST - this is cgi request [21:09:10]url: /json_proto [21:09:10]query_string will be loaded in cgi processing [21:09:10]execute_cgi json_proto POST (null) [21:09:10]execute_cgi path=json_proto method=POST [21:09:10]POST find Content-Length [21:09:10]Host: 172.17.63.131:8080 [21:09:10]Content-Length: 676 [21:09:10]Content-Type: application/json [21:09:10] [21:09:10]POST finish read [21:09:10]Found Content-Length = 676 [21:09:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:10]execute_script... [21:09:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:10]POST & json_proto [21:09:10]process_json_proto [21:09:10]json parsed OK: [21:09:10]protocol is kg_v1.0 [21:09:10]action value=close_receipt [21:09:10]process_action close_receipt [21:09:10]cmd_close_receipt [21:09:10]MH_GetDate [21:09:10]Write to MH i2c: F0 00 00 D8 12 D9 [21:09:10]Write i2c OK [21:09:10]MH_I2C_Read... [21:09:10]Read from MH i2c: F0 [21:09:10]MH_I2C_Read... [21:09:10]Read from MH i2c: F0 09 00 [21:09:10]MH_I2C_Read... [21:09:10]Read from MH i2c: F0 09 00 D8 12 00 77 FD 1F 67 22 05 6E 64 D5 [21:09:10]GetLastDocTimeStamp 1730149657 [21:09:10]current date 1730149751 [21:09:10]FM_GetShiftState [21:09:10]SAM_PROTO_GetShiftState [21:09:10]wFMCommunicate request_size=4 [21:09:10]MH_SAM_APDU [21:09:10]CAPDU: 80 13 01 00 [21:09:10]Write to MH i2c: E2 08 00 D9 12 80 13 01 00 00 00 00 00 68 [21:09:10]Write i2c OK [21:09:10]MH_I2C_Read... [21:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:10]Read from MH i2c: E2 [21:09:10]MH_I2C_Read... [21:09:10]Read from MH i2c: E2 0E 00 [21:09:10]MH_I2C_Read... [21:09:10]Read from MH i2c: E2 0E 00 D9 12 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B8 [21:09:10]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:09:10]wFMCommunicate OK [21:09:10]SAM_PROTO_GetShiftState done [21:09:10]FM_GetShiftState done [21:09:10]opened in 1730075620 [21:09:10]opened+sec_in_day 1730162020 [21:09:10]quantity*price = 50041 [21:09:10]sum+1 = 50042 [21:09:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 324 28.10.2024 21:09 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192776 ФПД: 23752594787014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T210911&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192776&fm=23752594787014&tin=02508201610067®Number=0000000000091776&sum=50000 [21:09:11]StoreToDocumentArchive [21:09:11]shift 543 fd 192776 [21:09:11]save to /storage/0543/doc_00192776 [21:09:11]save last doc name /storage/0543/doc_00192776 to /storage/kkm_last_doc_name [21:09:11]save OK [21:09:11]Clear old archive folders... [21:09:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:09:11]tlvbuf is 00F84D00 [21:09:11]SAM_PROTO_ClearQueue [21:09:11]wFMCommunicate request_size=4 [21:09:11]MH_SAM_APDU [21:09:11]CAPDU: 80 09 00 00 [21:09:11]Write to MH i2c: E2 08 00 E6 12 80 09 00 00 00 00 00 00 6A [21:09:11]Write i2c OK [21:09:11]MH_I2C_Read... [21:09:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:11]Read from MH i2c: E2 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 03 00 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 03 00 E6 12 00 90 00 6C [21:09:11]RAPDU: 90 00 [21:09:11]wFMCommunicate OK [21:09:11]SAM_PROTO_ClearQueue done [21:09:11]KKMCreateOFDPacket [21:09:11]OFDProtocolAddRootSTLVToBuf [21:09:11]FM_MakeSignedData [21:09:11]FM_MakeSignedData [21:09:11]SAM_PROTO_SignData [21:09:11]wFMCommunicate request_size=4 [21:09:11]MH_SAM_APDU [21:09:11]CAPDU: 80 0D 01 02 [21:09:11]Write to MH i2c: E2 08 00 E7 12 80 0D 01 02 00 00 00 00 72 [21:09:11]Write i2c OK [21:09:11]MH_I2C_Read... [21:09:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:11]Read from MH i2c: E2 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 03 00 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 03 00 E7 12 00 90 00 6D [21:09:11]RAPDU: 90 00 [21:09:11]wFMCommunicate OK [21:09:11]wFMCommunicate request_size=255 [21:09:11]MH_SAM_APDU [21:09: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 77 FD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 F1 02 00 35 04 06 00 15 [21:09:11]Write to MH i2c: E2 02 01 E8 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 77 FD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 F1 02 00 35 04 06 00 15 00 00 76 [21:09:11]Write i2c OK [21:09:11]MH_I2C_Read... [21:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:12]Read from MH i2c: E2 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: E2 03 00 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: E2 03 00 E8 12 00 90 00 6E [21:09:12]RAPDU: 90 00 [21:09:12]wFMCommunicate OK [21:09:12]wFMCommunicate request_size=10 [21:09:12]MH_SAM_APDU [21:09:12]CAPDU: 80 0D 02 02 05 9A 54 F9 8A C6 [21:09:12]Write to MH i2c: E2 0D 00 E9 12 80 0D 02 02 05 00 9A 54 F9 8A C6 00 00 B6 [21:09:12]Write i2c OK [21:09:12]MH_I2C_Read... [21:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:12]Read from MH i2c: E2 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: E2 03 00 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: E2 03 00 E9 12 00 90 00 6F [21:09:12]RAPDU: 90 00 [21:09:12]wFMCommunicate OK [21:09:12]wFMCommunicate request_size=4 [21:09:12]MH_SAM_APDU [21:09:12]CAPDU: 80 0D 03 02 [21:09:12]Write to MH i2c: E2 08 00 EA 12 80 0D 03 02 00 00 00 00 77 [21:09:12]Write i2c OK [21:09:12]MH_I2C_Read... [21:09:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:12]Read from MH i2c: E2 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: E2 0B 00 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: E2 0B 00 EA 12 00 B6 83 37 02 34 56 72 F6 90 00 DC [21:09:12]RAPDU: B6 83 37 02 34 56 72 F6 90 00 [21:09:12]wFMCommunicate OK [21:09:12]SAM_PROTO_SignData done [21:09:12]FM_MakeSignedData done [21:09:12]CreateOFDProtocolMessage [21:09:12]wFMCommunicate request_size=4 [21:09:12]MH_SAM_APDU [21:09:12]CAPDU: 80 11 00 00 [21:09:12]Write to MH i2c: E2 08 00 EB 12 80 11 00 00 00 00 00 00 77 [21:09:12]Write i2c OK [21:09:12]MH_I2C_Read... [21:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:12]Read from MH i2c: E2 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: E2 17 00 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: E2 17 00 EB 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [21:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:09:12]wFMCommunicate OK [21:09:12]CreateOFDProtocolMessage done [21:09:12]OFDSenderStorePacket 192776 [21:09:12]StoreOFDPacket docnum=192776 [21:09:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 61 E8 07 01 C6 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 77 FD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 F1 02 00 35 04 06 00 15 9A 54 F9 8A C6 B6 83 37 02 34 56 72 F6 [21:09:12]CheckFolder [21:09:12]dirname=/storage/ofd_packets [21:09:12]CheckFolder done [21:09:12]ProducePacketName [21:09:12]name=ofd_packets/00192776 [21:09:12]NVStorageSaveData ofd_packets/00192776 [21:09:12]File name is /storage/ofd_packets/00192776 [21:09:12]Write 301 bytes [21:09:12]NVStorageSaveData done [21:09:12]OFDSenderStorePacket done [21:09:12]KKMCreateOFDPacket done [21:09:12]NVStorageSaveData kkm_last_timestamp [21:09:12]File name is /storage/kkm_last_timestamp [21:09:12]Write 4 bytes [21:09:12]NVStorageSaveData done [21:09:12]ExternCall_PrintAddStr [21:09:12]wPrintStart [21:09:12]Write to MH i2c: 01 00 00 EC 12 FE [21:09:12]Write i2c OK [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: 01 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: 01 07 00 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: 01 07 00 EC 12 00 00 00 00 00 FF 0F 13 [21:09:12]RasterBufferAndPrint [21:09:12]line Счет N : (1)32106 [21:09:12]line ИНН: 02508201610067 [21:09:12]line Контрольно-Кассовый Чек [21:09:12]line ПРОДАЖА [21:09:12]line ТРК (МРК, ГНК) : 12 [21:09:12]line Товар: 2710124130 [21:09:12]line Аи-92-К-5 [21:09:12]line 7.480 * 66.90 [21:09:12]line = 500.41 [21:09:12]line НДС 12% НСП 1% [21:09:12]line > о реализуемом товаре [21:09:12]line ОКРУГЛЕНИЕ: -0.41 [21:09:12]line ИТОГО: 500.00 [21:09:12]line Внесено: 500.00 [21:09:12]line СДАЧА: 0.00 [21:09:12]line НСП 1% : 4.43 [21:09:12]line НДС 12% : 53.14 [21:09:12]line Наличными: 500.00 [21:09:12]line Безнал.: 0.00 [21:09:12]line Место: АЗС № 170 "Партнер Нефть" [21:09:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:09:12]line СНО: Общий режим [21:09:12]line Чек 324 28.10.2024 21:09 [21:09:12]line Смена: 543 ФФД: 1.0 [21:09:12]line ЗНМ: 0300000110 [21:09:12]line РНМ: 0000000000091776 [21:09:12]line Версия ККМ: 001 [21:09:12]line ФМ: 0000000000871754 [21:09:12]line ФД: 192776 [21:09:12]line ФПД: 23752594787014 [21:09:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T210911&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192776&fm=23752594787014&tin=02508201610067®Number=0000000000091776&sum=50000 [21:09:12]OFD Sender: Processing packet 192776 [packets to send 75, broken 74] [21:09:12]ProducePacketName [21:09:12]name=ofd_packets/00192776 [21:09:12]OFD Sender: To server: pG, [21:09:12]CommunicateWithHost lk.salyk.kg:30040 [21:09:12]ConnectInit lk.salyk.kg [21:09:12]written 0, free lines is 4095 [21:09:12]Connected sock=10 [21:09:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 61 E8 07 01 C6 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 77 FD 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 F1 02 00 35 04 06 00 15 9A 54 F9 8A C6 B6 83 37 02 34 56 72 F6 [21:09:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E0 47 47 00 D9 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 F1 02 00 F4 03 04 00 3A A2 1F 67 B6 04 01 00 00 37 48 AF BA 08 95 CE 4F [21:09:12]CommunicateWithHost err = 0 [21:09:12]CheckOFDResponse [21:09:12]1017 (14) - 77093643461234 [21:09:12]1041 (16) - 0000000000871754 [21:09:12]1040 (4) - 192776 [21:09:12]1012 (4) - 28.10.2024 14:39 [21:09:12]1206 (1) - 0 [21:09:12]OFD Sender: Remove packet 192776 [21:09:12]ProducePacketName [21:09:12]name=ofd_packets/00192776 [21:09:12]NVStorageDeleteData [21:09:12]Write to MH i2c: 01 00 00 17 13 2A [21:09:12]Write i2c OK [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: 01 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: 01 07 00 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: 01 07 00 17 13 00 00 00 00 00 A8 0C E5 [21:09:12]RasterBufferAndPrint [21:09:12]line [21:09:12]line [21:09:12]line [21:09:12]line [21:09:12]line [21:09:12]written 0, free lines is 3245 [21:09:13]MH_Cut [21:09:13]Write to MH i2c: D1 01 00 1E 13 01 03 [21:09:13]Write i2c OK [21:09:13]MH_I2C_Read... [21:09:13]Read from MH i2c: D1 [21:09:13]MH_I2C_Read... [21:09:13]Read from MH i2c: D1 01 00 [21:09:13]MH_I2C_Read... [21:09:13]Read from MH i2c: D1 01 00 1E 13 00 02 [21:09:13]Write to MH i2c: 01 00 00 1F 13 32 [21:09:13]Write i2c OK [21:09:13]MH_I2C_Read... [21:09:13]OFD Sender: No OFD packet to send [21:09:13]*** Cut start [21:09:13]*** Partial cut [21:09:13]*** CUTSNS_PIN = 1 [21:09:13]*** CUTSNS_PIN = 0 [21:09:14]*** Brake cut motor [21:09:14]Read from MH i2c: 01 [21:09:14]MH_I2C_Read... [21:09:14]*** Stop cut motor [21:09:14]*** Cut end [21:09:14]Read from MH i2c: 01 07 00 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: 01 07 00 1F 13 00 00 00 00 00 FF 0F 47 [21:09:14]process_action close_receipt done [21:09:14]requested_data is exist [21:09:14]produce_requested_data [21:09:14]requested_item fm.sn is exist - process it [21:09:14]wFMCommunicate request_size=4 [21:09:14]MH_SAM_APDU [21:09:14]CAPDU: 80 11 00 00 [21:09:14]Write to MH i2c: E2 08 00 20 13 80 11 00 00 00 00 00 00 AD [21:09:14]Write i2c OK [21:09:14]MH_I2C_Read... [21:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:14]Read from MH i2c: E2 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: E2 17 00 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: E2 17 00 20 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 00 [21:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:09:14]wFMCommunicate OK [21:09:14]requested_item fd.num is exist - process it [21:09:14]SAM_PROTO_GetFieldsCounters [21:09:14]wFMCommunicate request_size=4 [21:09:14]MH_SAM_APDU [21:09:14]CAPDU: 80 13 00 00 [21:09:14]Write to MH i2c: E2 08 00 21 13 80 13 00 00 00 00 00 00 B0 [21:09:14]Write i2c OK [21:09:14]MH_I2C_Read... [21:09:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:14]Read from MH i2c: E2 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: E2 62 00 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: E2 62 00 21 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 08 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [21:09:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 08 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:14]wFMCommunicate OK [21:09:14]SAM_PROTO_GetFieldsCounters done [21:09:14]requested_item shift.num is exist - process it [21:09:14]requested_item shift.opened is exist - process it [21:09:14]req_shift_opened [21:09:14]FM_GetShiftState [21:09:14]SAM_PROTO_GetShiftState [21:09:14]wFMCommunicate request_size=4 [21:09:14]MH_SAM_APDU [21:09:14]CAPDU: 80 13 01 00 [21:09:14]Write to MH i2c: E2 08 00 22 13 80 13 01 00 00 00 00 00 B2 [21:09:14]Write i2c OK [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: E2 [21:09:14]MH_I2C_Read... [21:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:14]Read from MH i2c: E2 0E 00 [21:09:14]MH_I2C_Read... [21:09:14]Read from MH i2c: E2 0E 00 22 13 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 02 [21:09:14]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:09:14]wFMCommunicate OK [21:09:14]SAM_PROTO_GetShiftState done [21:09:14]FM_GetShiftState done [21:09:14]req_shift_opened done [21:09:14]requested_item shift.open_date is exist - process it [21:09:14]req_shift_open_date [21:09:14]req_shift_open_date done [21:09:14]produce_requested_data done [21:09:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192776,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [21:09:14]process_action_free close_receipt [21:09:14]json_value_free [21:09:14]json_value_free done [21:09:14]process_json_proto returns [21:09:14]Send response to host [21:09:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192776,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [21:09:14]free response buf [21:09:14]execute_script done [21:09:14]execute_script returns [21:09:14]free content buf [21:09:14]Sock 9.Close socket [21:09:14]Sock 9.Thread stoped [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:56]accept exits with 8 [21:15:56]New connection [21:15:56]New thread 3066658148 created [21:15:56]Thread 3066801508 joined [21:15:56]Waiting for new connection... [21:15:56] Sock 8.Parse request [21:15:56]Sock 8.Check first char [21:15:56]Sock 8.First char is OK [21:15:56]request: POST /json_proto HTTP/1.0 [21:15:56]Method: POST [21:15:56]URL: /json_proto [21:15:56]Method is POST - this is cgi request [21:15:56]url: /json_proto [21:15:56]query_string will be loaded in cgi processing [21:15:56]execute_cgi json_proto POST (null) [21:15:56]execute_cgi path=json_proto method=POST [21:15:56]POST find Content-Length [21:15:56]Host: 172.17.63.131:8080 [21:15:56]Content-Length: 678 [21:15:56]Content-Type: application/json [21:15:56] [21:15:56]POST finish read [21:15:56]Found Content-Length = 678 [21:15:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:56]execute_script... [21:15: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)32107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:56]POST & json_proto [21:15:56]process_json_proto [21:15:56]json parsed OK: [21:15:56]protocol is kg_v1.0 [21:15:56]action value=close_receipt [21:15:56]process_action close_receipt [21:15:56]cmd_close_receipt [21:15:56]MH_GetDate [21:15:56]Write to MH i2c: F0 00 00 23 13 25 [21:15:56]Write i2c OK [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: F0 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: F0 09 00 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: F0 09 00 23 13 00 0D FF 1F 67 22 05 6E 64 B9 [21:15:56]GetLastDocTimeStamp 1730149751 [21:15:56]current date 1730150157 [21:15:56]FM_GetShiftState [21:15:56]SAM_PROTO_GetShiftState [21:15:56]wFMCommunicate request_size=4 [21:15:56]MH_SAM_APDU [21:15:56]CAPDU: 80 13 01 00 [21:15:56]Write to MH i2c: E2 08 00 24 13 80 13 01 00 00 00 00 00 B4 [21:15:56]Write i2c OK [21:15:56]MH_I2C_Read... [21:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:56]Read from MH i2c: E2 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 0E 00 [21:15:56]MH_I2C_Read... [21:15:56]Read from MH i2c: E2 0E 00 24 13 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 04 [21:15:56]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:15:56]wFMCommunicate OK [21:15:56]SAM_PROTO_GetShiftState done [21:15:56]FM_GetShiftState done [21:15:56]opened in 1730075620 [21:15:56]opened+sec_in_day 1730162020 [21:15:56]quantity*price = 200025 [21:15:56]sum+1 = 200026 [21:15:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 325 28.10.2024 21:15 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192777 ФПД: 108635795046164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T211557&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192777&fm=108635795046164&tin=02508201610067®Number=0000000000091776&sum=200000 [21:15:57]StoreToDocumentArchive [21:15:57]shift 543 fd 192777 [21:15:57]save to /storage/0543/doc_00192777 [21:15:57]save last doc name /storage/0543/doc_00192777 to /storage/kkm_last_doc_name [21:15:57]save OK [21:15:57]Clear old archive folders... [21:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:15:58]tlvbuf is 00FA12E0 [21:15:58]SAM_PROTO_ClearQueue [21:15:58]wFMCommunicate request_size=4 [21:15:58]MH_SAM_APDU [21:15:58]CAPDU: 80 09 00 00 [21:15:58]Write to MH i2c: E2 08 00 31 13 80 09 00 00 00 00 00 00 B6 [21:15:58]Write i2c OK [21:15:58]MH_I2C_Read... [21:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:58]Read from MH i2c: E2 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 03 00 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 03 00 31 13 00 90 00 B8 [21:15:58]RAPDU: 90 00 [21:15:58]wFMCommunicate OK [21:15:58]SAM_PROTO_ClearQueue done [21:15:58]KKMCreateOFDPacket [21:15:58]OFDProtocolAddRootSTLVToBuf [21:15:58]FM_MakeSignedData [21:15:58]FM_MakeSignedData [21:15:58]SAM_PROTO_SignData [21:15:58]wFMCommunicate request_size=4 [21:15:58]MH_SAM_APDU [21:15:58]CAPDU: 80 0D 01 02 [21:15:58]Write to MH i2c: E2 08 00 32 13 80 0D 01 02 00 00 00 00 BE [21:15:58]Write i2c OK [21:15:58]MH_I2C_Read... [21:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:58]Read from MH i2c: E2 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 03 00 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 03 00 32 13 00 90 00 B9 [21:15:58]RAPDU: 90 00 [21:15:58]wFMCommunicate OK [21:15:58]wFMCommunicate request_size=255 [21:15:58]MH_SAM_APDU [21:15:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 0D FF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 F1 02 00 35 04 06 00 62 CD BD F9 [21:15:58]Write to MH i2c: E2 02 01 33 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 0D FF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 F1 02 00 35 04 06 00 62 CD BD F9 00 00 10 [21:15:58]Write i2c OK [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 [21:15:58]MH_I2C_Read... [21:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:58]Read from MH i2c: E2 03 00 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 03 00 33 13 00 90 00 BA [21:15:58]RAPDU: 90 00 [21:15:58]wFMCommunicate OK [21:15:58]wFMCommunicate request_size=7 [21:15:58]MH_SAM_APDU [21:15:58]CAPDU: 80 0D 02 02 02 3F 14 [21:15:58]Write to MH i2c: E2 0A 00 34 13 80 0D 02 02 02 00 3F 14 00 00 18 [21:15:58]Write i2c OK [21:15:58]MH_I2C_Read... [21:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:58]Read from MH i2c: E2 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 03 00 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 03 00 34 13 00 90 00 BB [21:15:58]RAPDU: 90 00 [21:15:58]wFMCommunicate OK [21:15:58]wFMCommunicate request_size=4 [21:15:58]MH_SAM_APDU [21:15:58]CAPDU: 80 0D 03 02 [21:15:58]Write to MH i2c: E2 08 00 35 13 80 0D 03 02 00 00 00 00 C3 [21:15:58]Write i2c OK [21:15:58]MH_I2C_Read... [21:15:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:58]Read from MH i2c: E2 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 0B 00 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 0B 00 35 13 00 91 74 68 0F 9E D1 DD 7B 90 00 07 [21:15:58]RAPDU: 91 74 68 0F 9E D1 DD 7B 90 00 [21:15:58]wFMCommunicate OK [21:15:58]SAM_PROTO_SignData done [21:15:58]FM_MakeSignedData done [21:15:58]CreateOFDProtocolMessage [21:15:58]wFMCommunicate request_size=4 [21:15:58]MH_SAM_APDU [21:15:58]CAPDU: 80 11 00 00 [21:15:58]Write to MH i2c: E2 08 00 36 13 80 11 00 00 00 00 00 00 C3 [21:15:58]Write i2c OK [21:15:58]MH_I2C_Read... [21:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:58]Read from MH i2c: E2 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 17 00 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: E2 17 00 36 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 16 [21:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:15:58]wFMCommunicate OK [21:15:58]CreateOFDProtocolMessage done [21:15:58]OFDSenderStorePacket 192777 [21:15:58]StoreOFDPacket docnum=192777 [21:15:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 80 35 04 01 25 A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 0D FF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 F1 02 00 35 04 06 00 62 CD BD F9 3F 14 91 74 68 0F 9E D1 DD 7B [21:15:58]CheckFolder [21:15:58]dirname=/storage/ofd_packets [21:15:58]CheckFolder done [21:15:58]ProducePacketName [21:15:58]name=ofd_packets/00192777 [21:15:58]NVStorageSaveData ofd_packets/00192777 [21:15:58]File name is /storage/ofd_packets/00192777 [21:15:58]Write 298 bytes [21:15:58]NVStorageSaveData done [21:15:58]OFDSenderStorePacket done [21:15:58]KKMCreateOFDPacket done [21:15:58]NVStorageSaveData kkm_last_timestamp [21:15:58]File name is /storage/kkm_last_timestamp [21:15:58]Write 4 bytes [21:15:58]NVStorageSaveData done [21:15:58]ExternCall_PrintAddStr [21:15:58]wPrintStart [21:15:58]Write to MH i2c: 01 00 00 37 13 4A [21:15:58]Write i2c OK [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: 01 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: 01 07 00 [21:15:58]MH_I2C_Read... [21:15:58]Read from MH i2c: 01 07 00 37 13 00 00 00 00 00 FF 0F 5F [21:15:58]RasterBufferAndPrint [21:15:58]line Счет N : (1)32107 [21:15:58]line ИНН: 02508201610067 [21:15:58]line Контрольно-Кассовый Чек [21:15:58]line ПРОДАЖА [21:15:58]line ТРК (МРК, ГНК) : 11 [21:15:58]line Товар: 2710194210 [21:15:58]line ДТ-К-5 [21:15:58]line 26.250 * 76.20 [21:15:58]line = 2000.25 [21:15:58]line НДС 12% НСП 1% [21:15:58]line > о реализуемом товаре [21:15:58]line ОКРУГЛЕНИЕ: -0.25 [21:15:58]line ИТОГО: 2000.00 [21:15:58]line Внесено: 2000.00 [21:15:58]line СДАЧА: 0.00 [21:15:58]line НСП 1% : 17.70 [21:15:58]line НДС 12% : 212.42 [21:15:58]line Наличными: 2000.00 [21:15:58]line Безнал.: 0.00 [21:15:58]line Место: АЗС № 170 "Партнер Нефть" [21:15:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:15:58]line СНО: Общий режим [21:15:58]line Чек 325 28.10.2024 21:15 [21:15:58]line Смена: 543 ФФД: 1.0 [21:15:58]line ЗНМ: 0300000110 [21:15:58]line РНМ: 0000000000091776 [21:15:58]line Версия ККМ: 001 [21:15:58]line ФМ: 0000000000871754 [21:15:58]line ФД: 192777 [21:15:58]line ФПД: 108635795046164 [21:15:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T211557&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192777&fm=108635795046164&tin=02508201610067®Number=0000000000091776&sum=200000 [21:15:58]OFD Sender: Processing packet 192777 [packets to send 75, broken 74] [21:15:58]ProducePacketName [21:15:58]name=ofd_packets/00192777 [21:15:58]OFD Sender: To server: pG, [21:15:58]CommunicateWithHost lk.salyk.kg:30040 [21:15:58]ConnectInit lk.salyk.kg [21:15:58]written 0, free lines is 4095 [21:15:58]Connected sock=10 [21:15:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 80 35 04 01 25 A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 0D FF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 F1 02 00 35 04 06 00 62 CD BD F9 3F 14 91 74 68 0F 9E D1 DD 7B [21:15:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 43 71 47 00 5A 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 31 37 35 34 10 04 04 00 09 F1 02 00 F4 03 04 00 D0 A3 1F 67 B6 04 01 00 00 C4 1E C8 4E 87 EF D7 FA [21:15:59]CommunicateWithHost err = 0 [21:15:59]CheckOFDResponse [21:15:59]1017 (14) - 77093643461234 [21:15:59]1041 (16) - 0000000000871754 [21:15:59]1040 (4) - 192777 [21:15:59]1012 (4) - 28.10.2024 14:46 [21:15:59]1206 (1) - 0 [21:15:59]OFD Sender: Remove packet 192777 [21:15:59]ProducePacketName [21:15:59]name=ofd_packets/00192777 [21:15:59]NVStorageDeleteData [21:15:59]Write to MH i2c: 01 00 00 62 13 75 [21:15:59]Write i2c OK [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: 01 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: 01 07 00 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: 01 07 00 62 13 00 00 00 00 00 AF 0C 37 [21:15:59]RasterBufferAndPrint [21:15:59]line [21:15:59]line [21:15:59]line [21:15:59]line [21:15:59]line [21:15:59]written 0, free lines is 3253 [21:15:59]MH_Cut [21:15:59]Write to MH i2c: D1 01 00 69 13 01 4E [21:15:59]Write i2c OK [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: D1 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: D1 01 00 [21:15:59]MH_I2C_Read... [21:15:59]Read from MH i2c: D1 01 00 69 13 00 4D [21:15:59]Write to MH i2c: 01 00 00 6A 13 7D [21:15:59]Write i2c OK [21:15:59]MH_I2C_Read... [21:15:59]OFD Sender: No OFD packet to send [21:16:00]*** Cut start [21:16:00]*** Partial cut [21:16:00]*** CUTSNS_PIN = 1 [21:16:00]*** CUTSNS_PIN = 0 [21:16:00]*** Brake cut motor [21:16:00]Read from MH i2c: 01 [21:16:00]MH_I2C_Read... [21:16:00]*** Stop cut motor [21:16:00]*** Cut end [21:16:00]Read from MH i2c: 01 07 00 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: 01 07 00 6A 13 00 00 00 00 00 FF 0F 92 [21:16:00]process_action close_receipt done [21:16:00]requested_data is exist [21:16:00]produce_requested_data [21:16:00]requested_item fm.sn is exist - process it [21:16:00]wFMCommunicate request_size=4 [21:16:00]MH_SAM_APDU [21:16:00]CAPDU: 80 11 00 00 [21:16:00]Write to MH i2c: E2 08 00 6B 13 80 11 00 00 00 00 00 00 F8 [21:16:00]Write i2c OK [21:16:00]MH_I2C_Read... [21:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:00]Read from MH i2c: E2 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: E2 17 00 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: E2 17 00 6B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4B [21:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:16:00]wFMCommunicate OK [21:16:00]requested_item fd.num is exist - process it [21:16:00]SAM_PROTO_GetFieldsCounters [21:16:00]wFMCommunicate request_size=4 [21:16:00]MH_SAM_APDU [21:16:00]CAPDU: 80 13 00 00 [21:16:00]Write to MH i2c: E2 08 00 6C 13 80 13 00 00 00 00 00 00 FB [21:16:00]Write i2c OK [21:16:00]MH_I2C_Read... [21:16:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:00]Read from MH i2c: E2 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: E2 62 00 [21:16:00]MH_I2C_Read... [21:16:00]Read from MH i2c: E2 62 00 6C 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 09 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [21:16:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 09 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:01]wFMCommunicate OK [21:16:01]SAM_PROTO_GetFieldsCounters done [21:16:01]requested_item shift.num is exist - process it [21:16:01]requested_item shift.opened is exist - process it [21:16:01]req_shift_opened [21:16:01]FM_GetShiftState [21:16:01]SAM_PROTO_GetShiftState [21:16:01]wFMCommunicate request_size=4 [21:16:01]MH_SAM_APDU [21:16:01]CAPDU: 80 13 01 00 [21:16:01]Write to MH i2c: E2 08 00 6D 13 80 13 01 00 00 00 00 00 FD [21:16:01]Write i2c OK [21:16:01]MH_I2C_Read... [21:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:01]Read from MH i2c: E2 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 0E 00 [21:16:01]MH_I2C_Read... [21:16:01]Read from MH i2c: E2 0E 00 6D 13 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 4D [21:16:01]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:16:01]wFMCommunicate OK [21:16:01]SAM_PROTO_GetShiftState done [21:16:01]FM_GetShiftState done [21:16:01]req_shift_opened done [21:16:01]requested_item shift.open_date is exist - process it [21:16:01]req_shift_open_date [21:16:01]req_shift_open_date done [21:16:01]produce_requested_data done [21:16:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192777,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [21:16:01]process_action_free close_receipt [21:16:01]json_value_free [21:16:01]json_value_free done [21:16:01]process_json_proto returns [21:16:01]Send response to host [21:16:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192777,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [21:16:01]free response buf [21:16:01]execute_script done [21:16:01]execute_script returns [21:16:01]free content buf [21:16:01]Sock 8.Close socket [21:16:01]Sock 8.Thread stoped [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:38]accept exits with 9 [21:17:38]New connection [21:17:38]New thread 3066801508 created [21:17:38]Thread 3066658148 joined [21:17:38]Waiting for new connection... [21:17:38] Sock 9.Parse request [21:17:38]Sock 9.Check first char [21:17:38]Sock 9.First char is OK [21:17:38]request: POST /json_proto HTTP/1.0 [21:17:38]Method: POST [21:17:38]URL: /json_proto [21:17:38]Method is POST - this is cgi request [21:17:38]url: /json_proto [21:17:38]query_string will be loaded in cgi processing [21:17:38]execute_cgi json_proto POST (null) [21:17:38]execute_cgi path=json_proto method=POST [21:17:38]POST find Content-Length [21:17:38]Host: 172.17.63.131:8080 [21:17:38]Content-Length: 676 [21:17:38]Content-Type: application/json [21:17:38] [21:17:38]POST finish read [21:17:38]Found Content-Length = 676 [21:17:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:38]execute_script... [21:17:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:38]POST & json_proto [21:17:38]process_json_proto [21:17:38]json parsed OK: [21:17:38]protocol is kg_v1.0 [21:17:38]action value=close_receipt [21:17:38]process_action close_receipt [21:17:38]cmd_close_receipt [21:17:38]MH_GetDate [21:17:38]Write to MH i2c: F0 00 00 6E 13 70 [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: F0 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: F0 09 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: F0 09 00 6E 13 00 73 FF 1F 67 22 05 6E 64 6A [21:17:38]GetLastDocTimeStamp 1730150157 [21:17:38]current date 1730150259 [21:17:38]FM_GetShiftState [21:17:38]SAM_PROTO_GetShiftState [21:17:38]wFMCommunicate request_size=4 [21:17:38]MH_SAM_APDU [21:17:38]CAPDU: 80 13 01 00 [21:17:38]Write to MH i2c: E2 08 00 6F 13 80 13 01 00 00 00 00 00 FF [21:17:38]Write i2c OK [21:17:38]MH_I2C_Read... [21:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:38]Read from MH i2c: E2 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 0E 00 [21:17:38]MH_I2C_Read... [21:17:38]Read from MH i2c: E2 0E 00 6F 13 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 4F [21:17:38]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:17:38]wFMCommunicate OK [21:17:38]SAM_PROTO_GetShiftState done [21:17:38]FM_GetShiftState done [21:17:38]opened in 1730075620 [21:17:38]opened+sec_in_day 1730162020 [21:17:38]quantity*price = 20003 [21:17:38]sum+1 = 20004 [21:17:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 326 28.10.2024 21:17 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192778 ФПД: 146773300976737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T211739&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192778&fm=146773300976737&tin=02508201610067®Number=0000000000091776&sum=20000 [21:17:39]StoreToDocumentArchive [21:17:39]shift 543 fd 192778 [21:17:39]save to /storage/0543/doc_00192778 [21:17:39]save last doc name /storage/0543/doc_00192778 to /storage/kkm_last_doc_name [21:17:39]save OK [21:17:39]Clear old archive folders... [21:17:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:17:39]tlvbuf is 00ECB630 [21:17:39]SAM_PROTO_ClearQueue [21:17:39]wFMCommunicate request_size=4 [21:17:39]MH_SAM_APDU [21:17:39]CAPDU: 80 09 00 00 [21:17:39]Write to MH i2c: E2 08 00 7C 13 80 09 00 00 00 00 00 00 01 [21:17:39]Write i2c OK [21:17:39]MH_I2C_Read... [21:17:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:39]Read from MH i2c: E2 [21:17:39]MH_I2C_Read... [21:17:39]Read from MH i2c: E2 03 00 [21:17:39]MH_I2C_Read... [21:17:39]Read from MH i2c: E2 03 00 7C 13 00 90 00 03 [21:17:39]RAPDU: 90 00 [21:17:39]wFMCommunicate OK [21:17:39]SAM_PROTO_ClearQueue done [21:17:39]KKMCreateOFDPacket [21:17:39]OFDProtocolAddRootSTLVToBuf [21:17:39]FM_MakeSignedData [21:17:39]FM_MakeSignedData [21:17:39]SAM_PROTO_SignData [21:17:39]wFMCommunicate request_size=4 [21:17:39]MH_SAM_APDU [21:17:39]CAPDU: 80 0D 01 02 [21:17:39]Write to MH i2c: E2 08 00 7D 13 80 0D 01 02 00 00 00 00 09 [21:17:39]Write i2c OK [21:17:39]MH_I2C_Read... [21:17:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:39]Read from MH i2c: E2 [21:17:39]MH_I2C_Read... [21:17:39]Read from MH i2c: E2 03 00 [21:17:39]MH_I2C_Read... [21:17:39]Read from MH i2c: E2 03 00 7D 13 00 90 00 04 [21:17:39]RAPDU: 90 00 [21:17:39]wFMCommunicate OK [21:17:39]wFMCommunicate request_size=255 [21:17:39]MH_SAM_APDU [21:17: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 73 FF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A F1 02 00 35 04 06 00 85 [21:17:39]Write to MH i2c: E2 02 01 7E 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 73 FF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A F1 02 00 35 04 06 00 85 00 00 41 [21:17:39]Write i2c OK [21:17:39]MH_I2C_Read... [21:17:39]OFD Sender: No OFD packet to send [21:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:40]Read from MH i2c: E2 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 03 00 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 03 00 7E 13 00 90 00 05 [21:17:40]RAPDU: 90 00 [21:17:40]wFMCommunicate OK [21:17:40]wFMCommunicate request_size=10 [21:17:40]MH_SAM_APDU [21:17:40]CAPDU: 80 0D 02 02 05 7D 52 77 9C 61 [21:17:40]Write to MH i2c: E2 0D 00 7F 13 80 0D 02 02 05 00 7D 52 77 9C 61 00 00 59 [21:17:40]Write i2c OK [21:17:40]MH_I2C_Read... [21:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:40]Read from MH i2c: E2 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 03 00 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 03 00 7F 13 00 90 00 06 [21:17:40]RAPDU: 90 00 [21:17:40]wFMCommunicate OK [21:17:40]wFMCommunicate request_size=4 [21:17:40]MH_SAM_APDU [21:17:40]CAPDU: 80 0D 03 02 [21:17:40]Write to MH i2c: E2 08 00 80 13 80 0D 03 02 00 00 00 00 0E [21:17:40]Write i2c OK [21:17:40]MH_I2C_Read... [21:17:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:40]Read from MH i2c: E2 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 0B 00 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 0B 00 80 13 00 71 0A 58 34 40 2B B6 16 90 00 4D [21:17:40]RAPDU: 71 0A 58 34 40 2B B6 16 90 00 [21:17:40]wFMCommunicate OK [21:17:40]SAM_PROTO_SignData done [21:17:40]FM_MakeSignedData done [21:17:40]CreateOFDProtocolMessage [21:17:40]wFMCommunicate request_size=4 [21:17:40]MH_SAM_APDU [21:17:40]CAPDU: 80 11 00 00 [21:17:40]Write to MH i2c: E2 08 00 81 13 80 11 00 00 00 00 00 00 0E [21:17:40]Write i2c OK [21:17:40]MH_I2C_Read... [21:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:40]Read from MH i2c: E2 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 17 00 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: E2 17 00 81 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [21:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:17:40]wFMCommunicate OK [21:17:40]CreateOFDProtocolMessage done [21:17:40]OFDSenderStorePacket 192778 [21:17:40]StoreOFDPacket docnum=192778 [21:17:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F9 08 07 01 25 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 73 FF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A F1 02 00 35 04 06 00 85 7D 52 77 9C 61 71 0A 58 34 40 2B B6 16 [21:17:40]CheckFolder [21:17:40]dirname=/storage/ofd_packets [21:17:40]CheckFolder done [21:17:40]ProducePacketName [21:17:40]name=ofd_packets/00192778 [21:17:40]NVStorageSaveData ofd_packets/00192778 [21:17:40]File name is /storage/ofd_packets/00192778 [21:17:40]Write 301 bytes [21:17:40]NVStorageSaveData done [21:17:40]OFDSenderStorePacket done [21:17:40]KKMCreateOFDPacket done [21:17:40]NVStorageSaveData kkm_last_timestamp [21:17:40]File name is /storage/kkm_last_timestamp [21:17:40]Write 4 bytes [21:17:40]NVStorageSaveData done [21:17:40]ExternCall_PrintAddStr [21:17:40]wPrintStart [21:17:40]Write to MH i2c: 01 00 00 82 13 95 [21:17:40]Write i2c OK [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: 01 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: 01 07 00 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: 01 07 00 82 13 00 00 00 00 00 FF 0F AA [21:17:40]RasterBufferAndPrint [21:17:40]line Счет N : (1)32108 [21:17:40]line ИНН: 02508201610067 [21:17:40]line Контрольно-Кассовый Чек [21:17:40]line ПРОДАЖА [21:17:40]line ТРК (МРК, ГНК) : 21 [21:17:40]line Товар: 2710124130 [21:17:40]line Аи-92-К-5 [21:17:40]line 2.990 * 66.90 [21:17:40]line = 200.03 [21:17:40]line НДС 12% НСП 1% [21:17:40]line > о реализуемом товаре [21:17:40]line ОКРУГЛЕНИЕ: -0.03 [21:17:40]line ИТОГО: 200.00 [21:17:40]line Внесено: 200.00 [21:17:40]line СДАЧА: 0.00 [21:17:40]line НСП 1% : 1.77 [21:17:40]line НДС 12% : 21.24 [21:17:40]line Наличными: 200.00 [21:17:40]line Безнал.: 0.00 [21:17:40]line Место: АЗС № 170 "Партнер Нефть" [21:17:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:17:40]line СНО: Общий режим [21:17:40]line Чек 326 28.10.2024 21:17 [21:17:40]line Смена: 543 ФФД: 1.0 [21:17:40]line ЗНМ: 0300000110 [21:17:40]line РНМ: 0000000000091776 [21:17:40]line Версия ККМ: 001 [21:17:40]line ФМ: 0000000000871754 [21:17:40]line ФД: 192778 [21:17:40]line ФПД: 146773300976737 [21:17:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T211739&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192778&fm=146773300976737&tin=02508201610067®Number=0000000000091776&sum=20000 [21:17:40]OFD Sender: Processing packet 192778 [packets to send 75, broken 74] [21:17:40]ProducePacketName [21:17:40]name=ofd_packets/00192778 [21:17:40]OFD Sender: To server: pG, [21:17:40]CommunicateWithHost lk.salyk.kg:30040 [21:17:40]ConnectInit lk.salyk.kg [21:17:40]written 0, free lines is 4095 [21:17:40]Connected sock=10 [21:17:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F9 08 07 01 25 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 73 FF 1F 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A F1 02 00 35 04 06 00 85 7D 52 77 9C 61 71 0A 58 34 40 2B B6 16 [21:17:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7C 84 47 00 F1 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A F1 02 00 F4 03 04 00 36 A4 1F 67 B6 04 01 00 00 E6 7F 64 B9 FE D4 9F 33 [21:17:40]CommunicateWithHost err = 0 [21:17:40]CheckOFDResponse [21:17:40]1017 (14) - 77093643461234 [21:17:40]1041 (16) - 0000000000871754 [21:17:40]1040 (4) - 192778 [21:17:40]1012 (4) - 28.10.2024 14:48 [21:17:40]1206 (1) - 0 [21:17:40]OFD Sender: Remove packet 192778 [21:17:40]ProducePacketName [21:17:40]name=ofd_packets/00192778 [21:17:40]NVStorageDeleteData [21:17:40]Write to MH i2c: 01 00 00 AD 13 C0 [21:17:40]Write i2c OK [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: 01 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: 01 07 00 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: 01 07 00 AD 13 00 00 00 00 00 BE 0C 91 [21:17:40]RasterBufferAndPrint [21:17:40]line [21:17:40]line [21:17:40]line [21:17:40]line [21:17:40]line [21:17:40]written 0, free lines is 3268 [21:17:40]MH_Cut [21:17:40]Write to MH i2c: D1 01 00 B4 13 01 99 [21:17:40]Write i2c OK [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: D1 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: D1 01 00 [21:17:40]MH_I2C_Read... [21:17:40]Read from MH i2c: D1 01 00 B4 13 00 98 [21:17:40]Write to MH i2c: 01 00 00 B5 13 C8 [21:17:40]Write i2c OK [21:17:40]MH_I2C_Read... [21:17:41]OFD Sender: No OFD packet to send [21:17:41]*** Cut start [21:17:41]*** Partial cut [21:17:41]*** CUTSNS_PIN = 1 [21:17:41]*** CUTSNS_PIN = 0 [21:17:42]*** Brake cut motor [21:17:42]Read from MH i2c: 01 [21:17:42]MH_I2C_Read... [21:17:42]*** Stop cut motor [21:17:42]*** Cut end [21:17:42]Read from MH i2c: 01 07 00 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: 01 07 00 B5 13 00 00 00 00 00 FF 0F DD [21:17:42]process_action close_receipt done [21:17:42]requested_data is exist [21:17:42]produce_requested_data [21:17:42]requested_item fm.sn is exist - process it [21:17:42]wFMCommunicate request_size=4 [21:17:42]MH_SAM_APDU [21:17:42]CAPDU: 80 11 00 00 [21:17:42]Write to MH i2c: E2 08 00 B6 13 80 11 00 00 00 00 00 00 43 [21:17:42]Write i2c OK [21:17:42]MH_I2C_Read... [21:17:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:42]Read from MH i2c: E2 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: E2 17 00 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: E2 17 00 B6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [21:17:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:17:42]wFMCommunicate OK [21:17:42]requested_item fd.num is exist - process it [21:17:42]SAM_PROTO_GetFieldsCounters [21:17:42]wFMCommunicate request_size=4 [21:17:42]MH_SAM_APDU [21:17:42]CAPDU: 80 13 00 00 [21:17:42]Write to MH i2c: E2 08 00 B7 13 80 13 00 00 00 00 00 00 46 [21:17:42]Write i2c OK [21:17:42]MH_I2C_Read... [21:17:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:42]Read from MH i2c: E2 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: E2 62 00 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: E2 62 00 B7 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0A F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [21:17:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0A F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:42]wFMCommunicate OK [21:17:42]SAM_PROTO_GetFieldsCounters done [21:17:42]requested_item shift.num is exist - process it [21:17:42]requested_item shift.opened is exist - process it [21:17:42]req_shift_opened [21:17:42]FM_GetShiftState [21:17:42]SAM_PROTO_GetShiftState [21:17:42]wFMCommunicate request_size=4 [21:17:42]MH_SAM_APDU [21:17:42]CAPDU: 80 13 01 00 [21:17:42]Write to MH i2c: E2 08 00 B8 13 80 13 01 00 00 00 00 00 48 [21:17:42]Write i2c OK [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: E2 [21:17:42]MH_I2C_Read... [21:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:42]Read from MH i2c: E2 0E 00 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: E2 0E 00 B8 13 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 98 [21:17:42]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:17:42]wFMCommunicate OK [21:17:42]SAM_PROTO_GetShiftState done [21:17:42]FM_GetShiftState done [21:17:42]req_shift_opened done [21:17:42]requested_item shift.open_date is exist - process it [21:17:42]req_shift_open_date [21:17:42]req_shift_open_date done [21:17:42]produce_requested_data done [21:17:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192778,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [21:17:42]process_action_free close_receipt [21:17:42]json_value_free [21:17:42]json_value_free done [21:17:42]process_json_proto returns [21:17:42]Send response to host [21:17:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192778,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [21:17:42]free response buf [21:17:42]execute_script done [21:17:42]execute_script returns [21:17:42]free content buf [21:17:42]Sock 9.Close socket [21:17:42]Sock 9.Thread stoped [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:37]OFD Sender: No OFD packet to send [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:19]accept exits with 8 [21:36:19]New connection [21:36:19]New thread 3066658148 created [21:36:19]Thread 3066801508 joined [21:36:19]Waiting for new connection... [21:36:19] Sock 8.Parse request [21:36:19]Sock 8.Check first char [21:36:19]Sock 8.First char is OK [21:36:19]request: POST /json_proto HTTP/1.0 [21:36:19]Method: POST [21:36:19]URL: /json_proto [21:36:19]Method is POST - this is cgi request [21:36:19]url: /json_proto [21:36:19]query_string will be loaded in cgi processing [21:36:19]execute_cgi json_proto POST (null) [21:36:19]execute_cgi path=json_proto method=POST [21:36:19]POST find Content-Length [21:36:19]Host: 172.17.63.131:8080 [21:36:19]Content-Length: 677 [21:36:19]Content-Type: application/json [21:36:19] [21:36:19]POST finish read [21:36:19]Found Content-Length = 677 [21:36:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:19]execute_script... [21:36:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:19]POST & json_proto [21:36:19]process_json_proto [21:36:19]json parsed OK: [21:36:19]protocol is kg_v1.0 [21:36:19]action value=close_receipt [21:36:19]process_action close_receipt [21:36:19]cmd_close_receipt [21:36:19]MH_GetDate [21:36:19]Write to MH i2c: F0 00 00 B9 13 BB [21:36:19]Write i2c OK [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: F0 [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: F0 09 00 [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: F0 09 00 B9 13 00 D4 03 20 67 22 05 6E 64 1B [21:36:19]GetLastDocTimeStamp 1730150259 [21:36:19]current date 1730151380 [21:36:19]FM_GetShiftState [21:36:19]SAM_PROTO_GetShiftState [21:36:19]wFMCommunicate request_size=4 [21:36:19]MH_SAM_APDU [21:36:19]CAPDU: 80 13 01 00 [21:36:19]Write to MH i2c: E2 08 00 BA 13 80 13 01 00 00 00 00 00 4A [21:36:19]Write i2c OK [21:36:19]MH_I2C_Read... [21:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:19]Read from MH i2c: E2 [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: E2 0E 00 [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: E2 0E 00 BA 13 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 9A [21:36:19]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:36:19]wFMCommunicate OK [21:36:19]SAM_PROTO_GetShiftState done [21:36:19]FM_GetShiftState done [21:36:19]opened in 1730075620 [21:36:19]opened+sec_in_day 1730162020 [21:36:19]quantity*price = 90047 [21:36:19]sum+1 = 90048 [21:36:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 327 28.10.2024 21:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192779 ФПД: 242334453855160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T213620&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192779&fm=242334453855160&tin=02508201610067®Number=0000000000091776&sum=90000 [21:36:20]StoreToDocumentArchive [21:36:20]shift 543 fd 192779 [21:36:20]save to /storage/0543/doc_00192779 [21:36:20]save last doc name /storage/0543/doc_00192779 to /storage/kkm_last_doc_name [21:36:20]save OK [21:36:20]Clear old archive folders... [21:36:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:36:20]tlvbuf is 00EE3E40 [21:36:20]SAM_PROTO_ClearQueue [21:36:20]wFMCommunicate request_size=4 [21:36:20]MH_SAM_APDU [21:36:20]CAPDU: 80 09 00 00 [21:36:20]Write to MH i2c: E2 08 00 C7 13 80 09 00 00 00 00 00 00 4C [21:36:20]Write i2c OK [21:36:20]MH_I2C_Read... [21:36:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:20]Read from MH i2c: E2 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 03 00 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 03 00 C7 13 00 90 00 4E [21:36:20]RAPDU: 90 00 [21:36:20]wFMCommunicate OK [21:36:20]SAM_PROTO_ClearQueue done [21:36:20]KKMCreateOFDPacket [21:36:20]OFDProtocolAddRootSTLVToBuf [21:36:20]FM_MakeSignedData [21:36:20]FM_MakeSignedData [21:36:20]SAM_PROTO_SignData [21:36:20]wFMCommunicate request_size=4 [21:36:20]MH_SAM_APDU [21:36:20]CAPDU: 80 0D 01 02 [21:36:20]Write to MH i2c: E2 08 00 C8 13 80 0D 01 02 00 00 00 00 54 [21:36:20]Write i2c OK [21:36:20]MH_I2C_Read... [21:36:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:20]Read from MH i2c: E2 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 03 00 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 03 00 C8 13 00 90 00 4F [21:36:20]RAPDU: 90 00 [21:36:20]wFMCommunicate OK [21:36:20]wFMCommunicate request_size=255 [21:36:20]MH_SAM_APDU [21:36:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 D4 03 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B F1 02 00 35 04 06 00 DC [21:36:20]Write to MH i2c: E2 02 01 C9 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 D4 03 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B F1 02 00 35 04 06 00 DC 00 00 A6 [21:36:20]Write i2c OK [21:36:20]MH_I2C_Read... [21:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:20]Read from MH i2c: E2 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 03 00 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 03 00 C9 13 00 90 00 50 [21:36:20]RAPDU: 90 00 [21:36:20]wFMCommunicate OK [21:36:20]wFMCommunicate request_size=10 [21:36:20]MH_SAM_APDU [21:36:20]CAPDU: 80 0D 02 02 05 66 E3 09 F3 B8 [21:36:20]Write to MH i2c: E2 0D 00 CA 13 80 0D 02 02 05 00 66 E3 09 F3 B8 00 00 5E [21:36:20]Write i2c OK [21:36:20]MH_I2C_Read... [21:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:20]Read from MH i2c: E2 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 03 00 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 03 00 CA 13 00 90 00 51 [21:36:20]RAPDU: 90 00 [21:36:20]wFMCommunicate OK [21:36:20]wFMCommunicate request_size=4 [21:36:20]MH_SAM_APDU [21:36:20]CAPDU: 80 0D 03 02 [21:36:20]Write to MH i2c: E2 08 00 CB 13 80 0D 03 02 00 00 00 00 59 [21:36:20]Write i2c OK [21:36:20]MH_I2C_Read... [21:36:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:20]Read from MH i2c: E2 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 0B 00 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 0B 00 CB 13 00 32 31 0E 8C 40 57 81 14 90 00 83 [21:36:20]RAPDU: 32 31 0E 8C 40 57 81 14 90 00 [21:36:20]wFMCommunicate OK [21:36:20]SAM_PROTO_SignData done [21:36:20]FM_MakeSignedData done [21:36:20]CreateOFDProtocolMessage [21:36:20]wFMCommunicate request_size=4 [21:36:20]MH_SAM_APDU [21:36:20]CAPDU: 80 11 00 00 [21:36:20]Write to MH i2c: E2 08 00 CC 13 80 11 00 00 00 00 00 00 59 [21:36:20]Write i2c OK [21:36:20]MH_I2C_Read... [21:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:20]Read from MH i2c: E2 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 17 00 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 17 00 CC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [21:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:36:20]wFMCommunicate OK [21:36:20]CreateOFDProtocolMessage done [21:36:20]OFDSenderStorePacket 192779 [21:36:20]StoreOFDPacket docnum=192779 [21:36:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AA 23 07 01 72 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 D4 03 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B F1 02 00 35 04 06 00 DC 66 E3 09 F3 B8 32 31 0E 8C 40 57 81 14 [21:36:20]CheckFolder [21:36:20]dirname=/storage/ofd_packets [21:36:20]CheckFolder done [21:36:20]ProducePacketName [21:36:20]name=ofd_packets/00192779 [21:36:20]NVStorageSaveData ofd_packets/00192779 [21:36:20]File name is /storage/ofd_packets/00192779 [21:36:20]Write 301 bytes [21:36:20]NVStorageSaveData done [21:36:20]OFDSenderStorePacket done [21:36:20]KKMCreateOFDPacket done [21:36:20]NVStorageSaveData kkm_last_timestamp [21:36:20]File name is /storage/kkm_last_timestamp [21:36:20]Write 4 bytes [21:36:20]NVStorageSaveData done [21:36:20]ExternCall_PrintAddStr [21:36:20]wPrintStart [21:36:20]Write to MH i2c: 01 00 00 CD 13 E0 [21:36:20]Write i2c OK [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: 01 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: 01 07 00 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: 01 07 00 CD 13 00 00 00 00 00 FF 0F F5 [21:36:20]RasterBufferAndPrint [21:36:20]line Счет N : (1)32110 [21:36:20]line ИНН: 02508201610067 [21:36:20]line Контрольно-Кассовый Чек [21:36:20]line ПРОДАЖА [21:36:20]line ТРК (МРК, ГНК) : 21 [21:36:20]line Товар: 2710124130 [21:36:20]line Аи-92-К-5 [21:36:20]line 13.460 * 66.90 [21:36:20]line = 900.47 [21:36:20]line НДС 12% НСП 1% [21:36:20]line > о реализуемом товаре [21:36:20]line ОКРУГЛЕНИЕ: -0.47 [21:36:20]line ИТОГО: 900.00 [21:36:20]line Внесено: 900.00 [21:36:20]line СДАЧА: 0.00 [21:36:20]line НСП 1% : 7.97 [21:36:20]line НДС 12% : 95.62 [21:36:20]line Наличными: 900.00 [21:36:20]line Безнал.: 0.00 [21:36:20]line Место: АЗС № 170 "Партнер Нефть" [21:36:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:36:20]line СНО: Общий режим [21:36:20]line Чек 327 28.10.2024 21:36 [21:36:20]line Смена: 543 ФФД: 1.0 [21:36:20]line ЗНМ: 0300000110 [21:36:20]line РНМ: 0000000000091776 [21:36:20]line Версия ККМ: 001 [21:36:20]line ФМ: 0000000000871754 [21:36:20]line ФД: 192779 [21:36:20]line ФПД: 242334453855160 [21:36:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T213620&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192779&fm=242334453855160&tin=02508201610067®Number=0000000000091776&sum=90000 [21:36:21]OFD Sender: Processing packet 192779 [packets to send 75, broken 74] [21:36:21]ProducePacketName [21:36:21]name=ofd_packets/00192779 [21:36:21]OFD Sender: To server: pG, [21:36:21]CommunicateWithHost lk.salyk.kg:30040 [21:36:21]ConnectInit lk.salyk.kg [21:36:21]written 0, free lines is 4095 [21:36:21]Connected sock=10 [21:36:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AA 23 07 01 72 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 D4 03 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B F1 02 00 35 04 06 00 DC 66 E3 09 F3 B8 32 31 0E 8C 40 57 81 14 [21:36:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 07 EE 47 00 2A E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B F1 02 00 F4 03 04 00 97 A8 1F 67 B6 04 01 00 00 9F 65 19 55 44 96 20 2E [21:36:21]CommunicateWithHost err = 0 [21:36:21]CheckOFDResponse [21:36:21]1017 (14) - 77093643461234 [21:36:21]1041 (16) - 0000000000871754 [21:36:21]1040 (4) - 192779 [21:36:21]1012 (4) - 28.10.2024 15:07 [21:36:21]1206 (1) - 0 [21:36:21]OFD Sender: Remove packet 192779 [21:36:21]ProducePacketName [21:36:21]name=ofd_packets/00192779 [21:36:21]NVStorageDeleteData [21:36:21]Write to MH i2c: 01 00 00 F8 13 0B [21:36:21]Write i2c OK [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: 01 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: 01 07 00 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: 01 07 00 F8 13 00 00 00 00 00 AA 0C C8 [21:36:21]RasterBufferAndPrint [21:36:21]line [21:36:21]line [21:36:21]line [21:36:21]line [21:36:21]line [21:36:21]written 0, free lines is 3248 [21:36:21]MH_Cut [21:36:21]Write to MH i2c: D1 01 00 FF 13 01 E4 [21:36:21]Write i2c OK [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: D1 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: D1 01 00 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: D1 01 00 FF 13 00 E3 [21:36:21]Write to MH i2c: 01 00 00 00 14 14 [21:36:21]Write i2c OK [21:36:21]MH_I2C_Read... [21:36:22]OFD Sender: No OFD packet to send [21:36:22]*** Cut start [21:36:22]*** Partial cut [21:36:22]*** CUTSNS_PIN = 1 [21:36:22]*** CUTSNS_PIN = 0 [21:36:22]*** Brake cut motor [21:36:23]Read from MH i2c: 01 [21:36:23]MH_I2C_Read... [21:36:23]*** Stop cut motor [21:36:23]*** Cut end [21:36:23]Read from MH i2c: 01 07 00 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: 01 07 00 00 14 00 00 00 00 00 FF 0F 29 [21:36:23]process_action close_receipt done [21:36:23]requested_data is exist [21:36:23]produce_requested_data [21:36:23]requested_item fm.sn is exist - process it [21:36:23]wFMCommunicate request_size=4 [21:36:23]MH_SAM_APDU [21:36:23]CAPDU: 80 11 00 00 [21:36:23]Write to MH i2c: E2 08 00 01 14 80 11 00 00 00 00 00 00 8F [21:36:23]Write i2c OK [21:36:23]MH_I2C_Read... [21:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:23]Read from MH i2c: E2 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: E2 17 00 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: E2 17 00 01 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E2 [21:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:36:23]wFMCommunicate OK [21:36:23]requested_item fd.num is exist - process it [21:36:23]SAM_PROTO_GetFieldsCounters [21:36:23]wFMCommunicate request_size=4 [21:36:23]MH_SAM_APDU [21:36:23]CAPDU: 80 13 00 00 [21:36:23]Write to MH i2c: E2 08 00 02 14 80 13 00 00 00 00 00 00 92 [21:36:23]Write i2c OK [21:36:23]MH_I2C_Read... [21:36:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:23]Read from MH i2c: E2 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: E2 62 00 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: E2 62 00 02 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0B F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [21:36:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0B F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:23]wFMCommunicate OK [21:36:23]SAM_PROTO_GetFieldsCounters done [21:36:23]requested_item shift.num is exist - process it [21:36:23]requested_item shift.opened is exist - process it [21:36:23]req_shift_opened [21:36:23]FM_GetShiftState [21:36:23]SAM_PROTO_GetShiftState [21:36:23]wFMCommunicate request_size=4 [21:36:23]MH_SAM_APDU [21:36:23]CAPDU: 80 13 01 00 [21:36:23]Write to MH i2c: E2 08 00 03 14 80 13 01 00 00 00 00 00 94 [21:36:23]Write i2c OK [21:36:23]MH_I2C_Read... [21:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:23]Read from MH i2c: E2 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: E2 0E 00 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: E2 0E 00 03 14 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E4 [21:36:23]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:36:23]wFMCommunicate OK [21:36:23]SAM_PROTO_GetShiftState done [21:36:23]FM_GetShiftState done [21:36:23]req_shift_opened done [21:36:23]requested_item shift.open_date is exist - process it [21:36:23]req_shift_open_date [21:36:23]req_shift_open_date done [21:36:23]produce_requested_data done [21:36:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192779,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [21:36:23]process_action_free close_receipt [21:36:23]json_value_free [21:36:23]json_value_free done [21:36:23]process_json_proto returns [21:36:23]Send response to host [21:36:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192779,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [21:36:23]free response buf [21:36:23]execute_script done [21:36:23]execute_script returns [21:36:23]free content buf [21:36:23]Sock 8.Close socket [21:36:23]Sock 8.Thread stoped [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:46]accept exits with 9 [21:40:46]New connection [21:40:46]New thread 3066801508 created [21:40:46]Thread 3066658148 joined [21:40:46]Waiting for new connection... [21:40:46] Sock 9.Parse request [21:40:46]Sock 9.Check first char [21:40:46]Sock 9.First char is OK [21:40:46]request: POST /json_proto HTTP/1.0 [21:40:46]Method: POST [21:40:46]URL: /json_proto [21:40:46]Method is POST - this is cgi request [21:40:46]url: /json_proto [21:40:46]query_string will be loaded in cgi processing [21:40:46]execute_cgi json_proto POST (null) [21:40:46]execute_cgi path=json_proto method=POST [21:40:46]POST find Content-Length [21:40:46]Host: 172.17.63.131:8080 [21:40:46]Content-Length: 676 [21:40:46]Content-Type: application/json [21:40:46] [21:40:46]POST finish read [21:40:46]Found Content-Length = 676 [21:40:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:46]execute_script... [21:40:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:46]POST & json_proto [21:40:46]process_json_proto [21:40:46]json parsed OK: [21:40:46]protocol is kg_v1.0 [21:40:46]action value=close_receipt [21:40:46]process_action close_receipt [21:40:46]cmd_close_receipt [21:40:46]MH_GetDate [21:40:46]Write to MH i2c: F0 00 00 04 14 07 [21:40:46]Write i2c OK [21:40:46]MH_I2C_Read... [21:40:46]Read from MH i2c: F0 [21:40:46]MH_I2C_Read... [21:40:46]Read from MH i2c: F0 09 00 [21:40:46]MH_I2C_Read... [21:40:46]Read from MH i2c: F0 09 00 04 14 00 DF 04 20 67 22 05 6E 64 73 [21:40:46]GetLastDocTimeStamp 1730151380 [21:40:46]current date 1730151647 [21:40:46]FM_GetShiftState [21:40:46]SAM_PROTO_GetShiftState [21:40:46]wFMCommunicate request_size=4 [21:40:46]MH_SAM_APDU [21:40:46]CAPDU: 80 13 01 00 [21:40:46]Write to MH i2c: E2 08 00 05 14 80 13 01 00 00 00 00 00 96 [21:40:46]Write i2c OK [21:40:46]MH_I2C_Read... [21:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:46]Read from MH i2c: E2 [21:40:46]MH_I2C_Read... [21:40:46]Read from MH i2c: E2 0E 00 [21:40:46]MH_I2C_Read... [21:40:46]Read from MH i2c: E2 0E 00 05 14 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 E6 [21:40:46]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:40:46]wFMCommunicate OK [21:40:46]SAM_PROTO_GetShiftState done [21:40:46]FM_GetShiftState done [21:40:46]opened in 1730075620 [21:40:46]opened+sec_in_day 1730162020 [21:40:46]quantity*price = 20003 [21:40:46]sum+1 = 20004 [21:40:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 328 28.10.2024 21:40 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192780 ФПД: 274244115960479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T214047&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192780&fm=274244115960479&tin=02508201610067®Number=0000000000091776&sum=20000 [21:40:47]StoreToDocumentArchive [21:40:47]shift 543 fd 192780 [21:40:47]save to /storage/0543/doc_00192780 [21:40:47]save last doc name /storage/0543/doc_00192780 to /storage/kkm_last_doc_name [21:40:47]save OK [21:40:47]Clear old archive folders... [21:40:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:40:47]tlvbuf is B6E83380 [21:40:47]SAM_PROTO_ClearQueue [21:40:47]wFMCommunicate request_size=4 [21:40:47]MH_SAM_APDU [21:40:47]CAPDU: 80 09 00 00 [21:40:47]Write to MH i2c: E2 08 00 12 14 80 09 00 00 00 00 00 00 98 [21:40:47]Write i2c OK [21:40:47]MH_I2C_Read... [21:40:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:47]Read from MH i2c: E2 [21:40:47]MH_I2C_Read... [21:40:47]Read from MH i2c: E2 03 00 [21:40:47]MH_I2C_Read... [21:40:47]Read from MH i2c: E2 03 00 12 14 00 90 00 9A [21:40:47]RAPDU: 90 00 [21:40:47]wFMCommunicate OK [21:40:47]SAM_PROTO_ClearQueue done [21:40:47]KKMCreateOFDPacket [21:40:47]OFDProtocolAddRootSTLVToBuf [21:40:47]FM_MakeSignedData [21:40:47]FM_MakeSignedData [21:40:47]SAM_PROTO_SignData [21:40:47]wFMCommunicate request_size=4 [21:40:47]MH_SAM_APDU [21:40:47]CAPDU: 80 0D 01 02 [21:40:47]Write to MH i2c: E2 08 00 13 14 80 0D 01 02 00 00 00 00 A0 [21:40:47]Write i2c OK [21:40:47]MH_I2C_Read... [21:40:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:47]Read from MH i2c: E2 [21:40:47]MH_I2C_Read... [21:40:47]Read from MH i2c: E2 03 00 [21:40:47]MH_I2C_Read... [21:40:47]Read from MH i2c: E2 03 00 13 14 00 90 00 9B [21:40:47]RAPDU: 90 00 [21:40:47]wFMCommunicate OK [21:40:47]wFMCommunicate request_size=255 [21:40:47]MH_SAM_APDU [21:40:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 DF 04 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C F1 02 00 35 04 06 00 F9 [21:40:47]Write to MH i2c: E2 02 01 14 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 DF 04 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C F1 02 00 35 04 06 00 F9 00 00 C2 [21:40:47]Write i2c OK [21:40:47]MH_I2C_Read... [21:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:48]Read from MH i2c: E2 [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: E2 03 00 [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: E2 03 00 14 14 00 90 00 9C [21:40:48]RAPDU: 90 00 [21:40:48]wFMCommunicate OK [21:40:48]wFMCommunicate request_size=10 [21:40:48]MH_SAM_APDU [21:40:48]CAPDU: 80 0D 02 02 05 6C 6F 1D 12 9F [21:40:48]Write to MH i2c: E2 0D 00 15 14 80 0D 02 02 05 00 6C 6F 1D 12 9F 00 00 56 [21:40:48]Write i2c OK [21:40:48]MH_I2C_Read... [21:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:48]Read from MH i2c: E2 [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: E2 03 00 [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: E2 03 00 15 14 00 90 00 9D [21:40:48]RAPDU: 90 00 [21:40:48]wFMCommunicate OK [21:40:48]wFMCommunicate request_size=4 [21:40:48]MH_SAM_APDU [21:40:48]CAPDU: 80 0D 03 02 [21:40:48]Write to MH i2c: E2 08 00 16 14 80 0D 03 02 00 00 00 00 A5 [21:40:48]Write i2c OK [21:40:48]MH_I2C_Read... [21:40:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:48]Read from MH i2c: E2 [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: E2 0B 00 [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: E2 0B 00 16 14 00 7C 23 F3 F3 87 52 E9 CD 90 00 BA [21:40:48]RAPDU: 7C 23 F3 F3 87 52 E9 CD 90 00 [21:40:48]wFMCommunicate OK [21:40:48]SAM_PROTO_SignData done [21:40:48]FM_MakeSignedData done [21:40:48]CreateOFDProtocolMessage [21:40:48]wFMCommunicate request_size=4 [21:40:48]MH_SAM_APDU [21:40:48]CAPDU: 80 11 00 00 [21:40:48]Write to MH i2c: E2 08 00 17 14 80 11 00 00 00 00 00 00 A5 [21:40:48]Write i2c OK [21:40:48]MH_I2C_Read... [21:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:48]Read from MH i2c: E2 [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: E2 17 00 [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: E2 17 00 17 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F8 [21:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:40:48]wFMCommunicate OK [21:40:48]CreateOFDProtocolMessage done [21:40:48]OFDSenderStorePacket 192780 [21:40:48]StoreOFDPacket docnum=192780 [21:40:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB 2F 07 01 41 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 DF 04 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C F1 02 00 35 04 06 00 F9 6C 6F 1D 12 9F 7C 23 F3 F3 87 52 E9 CD [21:40:48]CheckFolder [21:40:48]dirname=/storage/ofd_packets [21:40:48]CheckFolder done [21:40:48]ProducePacketName [21:40:48]name=ofd_packets/00192780 [21:40:48]NVStorageSaveData ofd_packets/00192780 [21:40:48]File name is /storage/ofd_packets/00192780 [21:40:48]Write 301 bytes [21:40:48]NVStorageSaveData done [21:40:48]OFDSenderStorePacket done [21:40:48]KKMCreateOFDPacket done [21:40:48]NVStorageSaveData kkm_last_timestamp [21:40:48]File name is /storage/kkm_last_timestamp [21:40:48]Write 4 bytes [21:40:48]NVStorageSaveData done [21:40:48]ExternCall_PrintAddStr [21:40:48]wPrintStart [21:40:48]Write to MH i2c: 01 00 00 18 14 2C [21:40:48]Write i2c OK [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: 01 [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: 01 07 00 [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: 01 07 00 18 14 00 00 00 00 00 FF 0F 41 [21:40:48]RasterBufferAndPrint [21:40:48]line Счет N : (1)32111 [21:40:48]line ИНН: 02508201610067 [21:40:48]line Контрольно-Кассовый Чек [21:40:48]line ПРОДАЖА [21:40:48]line ТРК (МРК, ГНК) : 12 [21:40:48]line Товар: 2710124130 [21:40:48]line Аи-92-К-5 [21:40:48]line 2.990 * 66.90 [21:40:48]line = 200.03 [21:40:48]line НДС 12% НСП 1% [21:40:48]line > о реализуемом товаре [21:40:48]line ОКРУГЛЕНИЕ: -0.03 [21:40:48]line ИТОГО: 200.00 [21:40:48]line Внесено: 200.00 [21:40:48]line СДАЧА: 0.00 [21:40:48]line НСП 1% : 1.77 [21:40:48]line НДС 12% : 21.24 [21:40:48]line Наличными: 200.00 [21:40:48]line Безнал.: 0.00 [21:40:48]line Место: АЗС № 170 "Партнер Нефть" [21:40:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:40:48]line СНО: Общий режим [21:40:48]line Чек 328 28.10.2024 21:40 [21:40:48]line Смена: 543 ФФД: 1.0 [21:40:48]line ЗНМ: 0300000110 [21:40:48]line РНМ: 0000000000091776 [21:40:48]line Версия ККМ: 001 [21:40:48]line ФМ: 0000000000871754 [21:40:48]line ФД: 192780 [21:40:48]line ФПД: 274244115960479 [21:40:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T214047&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192780&fm=274244115960479&tin=02508201610067®Number=0000000000091776&sum=20000 [21:40:48]OFD Sender: Processing packet 192780 [packets to send 75, broken 74] [21:40:48]ProducePacketName [21:40:48]name=ofd_packets/00192780 [21:40:48]OFD Sender: To server: pG, [21:40:48]CommunicateWithHost lk.salyk.kg:30040 [21:40:48]ConnectInit lk.salyk.kg [21:40:48]written 0, free lines is 4095 [21:40:48]Connected sock=10 [21:40:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB 2F 07 01 41 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 DF 04 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C F1 02 00 35 04 06 00 F9 6C 6F 1D 12 9F 7C 23 F3 F3 87 52 E9 CD [21:40:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 26 11 47 00 D3 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C F1 02 00 F4 03 04 00 A2 A9 1F 67 B6 04 01 00 00 26 79 58 56 E9 9B 7F 56 [21:40:48]CommunicateWithHost err = 0 [21:40:48]CheckOFDResponse [21:40:48]1017 (14) - 77093643461234 [21:40:48]1041 (16) - 0000000000871754 [21:40:48]1040 (4) - 192780 [21:40:48]1012 (4) - 28.10.2024 15:11 [21:40:48]1206 (1) - 0 [21:40:48]OFD Sender: Remove packet 192780 [21:40:48]ProducePacketName [21:40:48]name=ofd_packets/00192780 [21:40:48]NVStorageDeleteData [21:40:48]Write to MH i2c: 01 00 00 43 14 57 [21:40:48]Write i2c OK [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: 01 [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: 01 07 00 [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: 01 07 00 43 14 00 00 00 00 00 B8 0C 22 [21:40:48]RasterBufferAndPrint [21:40:48]line [21:40:48]line [21:40:48]line [21:40:48]line [21:40:48]line [21:40:48]written 0, free lines is 3263 [21:40:48]MH_Cut [21:40:48]Write to MH i2c: D1 01 00 4A 14 01 30 [21:40:48]Write i2c OK [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: D1 [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: D1 01 00 [21:40:48]MH_I2C_Read... [21:40:48]Read from MH i2c: D1 01 00 4A 14 00 2F [21:40:48]Write to MH i2c: 01 00 00 4B 14 5F [21:40:48]Write i2c OK [21:40:48]MH_I2C_Read... [21:40:49]OFD Sender: No OFD packet to send [21:40:49]*** Cut start [21:40:49]*** Partial cut [21:40:49]*** CUTSNS_PIN = 1 [21:40:49]*** CUTSNS_PIN = 0 [21:40:50]*** Brake cut motor [21:40:50]Read from MH i2c: 01 [21:40:50]MH_I2C_Read... [21:40:50]*** Stop cut motor [21:40:50]*** Cut end [21:40:50]Read from MH i2c: 01 07 00 [21:40:50]MH_I2C_Read... [21:40:50]Read from MH i2c: 01 07 00 4B 14 00 00 00 00 00 FF 0F 74 [21:40:50]process_action close_receipt done [21:40:50]requested_data is exist [21:40:50]produce_requested_data [21:40:50]requested_item fm.sn is exist - process it [21:40:50]wFMCommunicate request_size=4 [21:40:50]MH_SAM_APDU [21:40:50]CAPDU: 80 11 00 00 [21:40:50]Write to MH i2c: E2 08 00 4C 14 80 11 00 00 00 00 00 00 DA [21:40:50]Write i2c OK [21:40:50]MH_I2C_Read... [21:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:50]Read from MH i2c: E2 [21:40:50]MH_I2C_Read... [21:40:50]Read from MH i2c: E2 17 00 [21:40:50]MH_I2C_Read... [21:40:50]Read from MH i2c: E2 17 00 4C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2D [21:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:40:50]wFMCommunicate OK [21:40:50]requested_item fd.num is exist - process it [21:40:50]SAM_PROTO_GetFieldsCounters [21:40:50]wFMCommunicate request_size=4 [21:40:50]MH_SAM_APDU [21:40:50]CAPDU: 80 13 00 00 [21:40:50]Write to MH i2c: E2 08 00 4D 14 80 13 00 00 00 00 00 00 DD [21:40:50]Write i2c OK [21:40:50]MH_I2C_Read... [21:40:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:50]Read from MH i2c: E2 [21:40:50]MH_I2C_Read... [21:40:50]Read from MH i2c: E2 62 00 [21:40:50]MH_I2C_Read... [21:40:50]Read from MH i2c: E2 62 00 4D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0C F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [21:40:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0C F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:40:50]wFMCommunicate OK [21:40:50]SAM_PROTO_GetFieldsCounters done [21:40:50]requested_item shift.num is exist - process it [21:40:50]requested_item shift.opened is exist - process it [21:40:50]req_shift_opened [21:40:50]FM_GetShiftState [21:40:50]SAM_PROTO_GetShiftState [21:40:50]wFMCommunicate request_size=4 [21:40:50]MH_SAM_APDU [21:40:50]CAPDU: 80 13 01 00 [21:40:50]Write to MH i2c: E2 08 00 4E 14 80 13 01 00 00 00 00 00 DF [21:40:50]Write i2c OK [21:40:50]MH_I2C_Read... [21:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:50]Read from MH i2c: E2 [21:40:50]MH_I2C_Read... [21:40:50]Read from MH i2c: E2 0E 00 [21:40:50]MH_I2C_Read... [21:40:50]Read from MH i2c: E2 0E 00 4E 14 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 2F [21:40:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:40:50]wFMCommunicate OK [21:40:50]SAM_PROTO_GetShiftState done [21:40:50]FM_GetShiftState done [21:40:50]req_shift_opened done [21:40:50]requested_item shift.open_date is exist - process it [21:40:50]req_shift_open_date [21:40:50]req_shift_open_date done [21:40:50]produce_requested_data done [21:40:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192780,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [21:40:50]process_action_free close_receipt [21:40:50]json_value_free [21:40:50]json_value_free done [21:40:50]process_json_proto returns [21:40:50]Send response to host [21:40:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192780,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [21:40:50]free response buf [21:40:50]execute_script done [21:40:50]execute_script returns [21:40:50]free content buf [21:40:50]Sock 9.Close socket [21:40:50]Sock 9.Thread stoped [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:30]accept exits with 8 [21:47:30]New connection [21:47:30]New thread 3066658148 created [21:47:30]Thread 3066801508 joined [21:47:30]Waiting for new connection... [21:47:30] Sock 8.Parse request [21:47:30]Sock 8.Check first char [21:47:30]Sock 8.First char is OK [21:47:30]request: POST /json_proto HTTP/1.0 [21:47:30]Method: POST [21:47:30]URL: /json_proto [21:47:30]Method is POST - this is cgi request [21:47:30]url: /json_proto [21:47:30]query_string will be loaded in cgi processing [21:47:30]execute_cgi json_proto POST (null) [21:47:30]execute_cgi path=json_proto method=POST [21:47:30]POST find Content-Length [21:47:30]Host: 172.17.63.131:8080 [21:47:30]Content-Length: 676 [21:47:30]Content-Type: application/json [21:47:30] [21:47:30]POST finish read [21:47:30]Found Content-Length = 676 [21:47:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:30]execute_script... [21:47: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)32112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:30]POST & json_proto [21:47:30]process_json_proto [21:47:30]json parsed OK: [21:47:30]protocol is kg_v1.0 [21:47:30]action value=close_receipt [21:47:30]process_action close_receipt [21:47:30]cmd_close_receipt [21:47:30]MH_GetDate [21:47:30]Write to MH i2c: F0 00 00 4F 14 52 [21:47:30]Write i2c OK [21:47:30]MH_I2C_Read... [21:47:30]Read from MH i2c: F0 [21:47:30]MH_I2C_Read... [21:47:30]Read from MH i2c: F0 09 00 [21:47:30]MH_I2C_Read... [21:47:30]Read from MH i2c: F0 09 00 4F 14 00 74 06 20 67 22 05 6E 64 55 [21:47:30]GetLastDocTimeStamp 1730151647 [21:47:30]current date 1730152052 [21:47:30]FM_GetShiftState [21:47:30]SAM_PROTO_GetShiftState [21:47:30]wFMCommunicate request_size=4 [21:47:30]MH_SAM_APDU [21:47:30]CAPDU: 80 13 01 00 [21:47:30]Write to MH i2c: E2 08 00 50 14 80 13 01 00 00 00 00 00 E1 [21:47:30]Write i2c OK [21:47:30]MH_I2C_Read... [21:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:30]Read from MH i2c: E2 [21:47:30]MH_I2C_Read... [21:47:30]Read from MH i2c: E2 0E 00 [21:47:30]MH_I2C_Read... [21:47:30]Read from MH i2c: E2 0E 00 50 14 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 31 [21:47:30]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:47:30]wFMCommunicate OK [21:47:30]SAM_PROTO_GetShiftState done [21:47:30]FM_GetShiftState done [21:47:30]opened in 1730075620 [21:47:30]opened+sec_in_day 1730162020 [21:47:30]quantity*price = 50041 [21:47:30]sum+1 = 50042 [21:47:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 329 28.10.2024 21:47 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192781 ФПД: 138052800852602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T214732&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192781&fm=138052800852602&tin=02508201610067®Number=0000000000091776&sum=50000 [21:47:32]StoreToDocumentArchive [21:47:32]shift 543 fd 192781 [21:47:32]save to /storage/0543/doc_00192781 [21:47:32]save last doc name /storage/0543/doc_00192781 to /storage/kkm_last_doc_name [21:47:32]save OK [21:47:32]Clear old archive folders... [21:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:47:32]tlvbuf is 00EE6200 [21:47:32]SAM_PROTO_ClearQueue [21:47:32]wFMCommunicate request_size=4 [21:47:32]MH_SAM_APDU [21:47:32]CAPDU: 80 09 00 00 [21:47:32]Write to MH i2c: E2 08 00 5D 14 80 09 00 00 00 00 00 00 E3 [21:47:32]Write i2c OK [21:47:32]MH_I2C_Read... [21:47:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:32]Read from MH i2c: E2 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 03 00 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 03 00 5D 14 00 90 00 E5 [21:47:32]RAPDU: 90 00 [21:47:32]wFMCommunicate OK [21:47:32]SAM_PROTO_ClearQueue done [21:47:32]KKMCreateOFDPacket [21:47:32]OFDProtocolAddRootSTLVToBuf [21:47:32]FM_MakeSignedData [21:47:32]FM_MakeSignedData [21:47:32]SAM_PROTO_SignData [21:47:32]wFMCommunicate request_size=4 [21:47:32]MH_SAM_APDU [21:47:32]CAPDU: 80 0D 01 02 [21:47:32]Write to MH i2c: E2 08 00 5E 14 80 0D 01 02 00 00 00 00 EB [21:47:32]Write i2c OK [21:47:32]MH_I2C_Read... [21:47:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:32]Read from MH i2c: E2 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 03 00 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 03 00 5E 14 00 90 00 E6 [21:47:32]RAPDU: 90 00 [21:47:32]wFMCommunicate OK [21:47:32]wFMCommunicate request_size=255 [21:47:32]MH_SAM_APDU [21:47:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 74 06 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D F1 02 00 35 04 06 00 7D [21:47:32]Write to MH i2c: E2 02 01 5F 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 74 06 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D F1 02 00 35 04 06 00 7D 00 00 68 [21:47:32]Write i2c OK [21:47:32]MH_I2C_Read... [21:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:32]Read from MH i2c: E2 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 03 00 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 03 00 5F 14 00 90 00 E7 [21:47:32]RAPDU: 90 00 [21:47:32]wFMCommunicate OK [21:47:32]wFMCommunicate request_size=10 [21:47:32]MH_SAM_APDU [21:47:32]CAPDU: 80 0D 02 02 05 8E EC 27 B2 7A [21:47:32]Write to MH i2c: E2 0D 00 60 14 80 0D 02 02 05 00 8E EC 27 B2 7A 00 00 C5 [21:47:32]Write i2c OK [21:47:32]MH_I2C_Read... [21:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:32]Read from MH i2c: E2 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 03 00 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 03 00 60 14 00 90 00 E8 [21:47:32]RAPDU: 90 00 [21:47:32]wFMCommunicate OK [21:47:32]wFMCommunicate request_size=4 [21:47:32]MH_SAM_APDU [21:47:32]CAPDU: 80 0D 03 02 [21:47:32]Write to MH i2c: E2 08 00 61 14 80 0D 03 02 00 00 00 00 F0 [21:47:32]Write i2c OK [21:47:32]MH_I2C_Read... [21:47:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:32]Read from MH i2c: E2 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 0B 00 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 0B 00 61 14 00 DF 9D 94 C2 79 DD 2A 7C 90 00 BF [21:47:32]RAPDU: DF 9D 94 C2 79 DD 2A 7C 90 00 [21:47:32]wFMCommunicate OK [21:47:32]SAM_PROTO_SignData done [21:47:32]FM_MakeSignedData done [21:47:32]CreateOFDProtocolMessage [21:47:32]wFMCommunicate request_size=4 [21:47:32]MH_SAM_APDU [21:47:32]CAPDU: 80 11 00 00 [21:47:32]Write to MH i2c: E2 08 00 62 14 80 11 00 00 00 00 00 00 F0 [21:47:32]Write i2c OK [21:47:32]MH_I2C_Read... [21:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:32]Read from MH i2c: E2 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 17 00 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: E2 17 00 62 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 43 [21:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:47:32]wFMCommunicate OK [21:47:32]CreateOFDProtocolMessage done [21:47:32]OFDSenderStorePacket 192781 [21:47:32]StoreOFDPacket docnum=192781 [21:47:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 90 57 07 01 86 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 74 06 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D F1 02 00 35 04 06 00 7D 8E EC 27 B2 7A DF 9D 94 C2 79 DD 2A 7C [21:47:32]CheckFolder [21:47:32]dirname=/storage/ofd_packets [21:47:32]CheckFolder done [21:47:32]ProducePacketName [21:47:32]name=ofd_packets/00192781 [21:47:32]NVStorageSaveData ofd_packets/00192781 [21:47:32]File name is /storage/ofd_packets/00192781 [21:47:32]Write 301 bytes [21:47:32]NVStorageSaveData done [21:47:32]OFDSenderStorePacket done [21:47:32]KKMCreateOFDPacket done [21:47:32]NVStorageSaveData kkm_last_timestamp [21:47:32]File name is /storage/kkm_last_timestamp [21:47:32]Write 4 bytes [21:47:32]NVStorageSaveData done [21:47:32]ExternCall_PrintAddStr [21:47:32]wPrintStart [21:47:32]Write to MH i2c: 01 00 00 63 14 77 [21:47:32]Write i2c OK [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: 01 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: 01 07 00 [21:47:32]MH_I2C_Read... [21:47:32]Read from MH i2c: 01 07 00 63 14 00 00 00 00 00 FF 0F 8C [21:47:32]RasterBufferAndPrint [21:47:32]line Счет N : (1)32112 [21:47:32]line ИНН: 02508201610067 [21:47:32]line Контрольно-Кассовый Чек [21:47:32]line ПРОДАЖА [21:47:32]line ТРК (МРК, ГНК) : 21 [21:47:32]line Товар: 2710124130 [21:47:32]line Аи-92-К-5 [21:47:32]line 7.480 * 66.90 [21:47:32]line = 500.41 [21:47:32]line НДС 12% НСП 1% [21:47:32]line > о реализуемом товаре [21:47:32]line ОКРУГЛЕНИЕ: -0.41 [21:47:32]line ИТОГО: 500.00 [21:47:32]line Внесено: 500.00 [21:47:32]line СДАЧА: 0.00 [21:47:32]line НСП 1% : 4.43 [21:47:32]line НДС 12% : 53.14 [21:47:32]line Наличными: 500.00 [21:47:32]line Безнал.: 0.00 [21:47:32]line Место: АЗС № 170 "Партнер Нефть" [21:47:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:47:32]line СНО: Общий режим [21:47:32]line Чек 329 28.10.2024 21:47 [21:47:32]line Смена: 543 ФФД: 1.0 [21:47:32]line ЗНМ: 0300000110 [21:47:32]line РНМ: 0000000000091776 [21:47:32]line Версия ККМ: 001 [21:47:32]line ФМ: 0000000000871754 [21:47:32]line ФД: 192781 [21:47:32]line ФПД: 138052800852602 [21:47:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T214732&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192781&fm=138052800852602&tin=02508201610067®Number=0000000000091776&sum=50000 [21:47:32]OFD Sender: Processing packet 192781 [packets to send 75, broken 74] [21:47:32]ProducePacketName [21:47:32]name=ofd_packets/00192781 [21:47:32]OFD Sender: To server: pG, [21:47:32]CommunicateWithHost lk.salyk.kg:30040 [21:47:32]ConnectInit lk.salyk.kg [21:47:32]written 0, free lines is 4095 [21:47:33]Connected sock=10 [21:47:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 90 57 07 01 86 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 74 06 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D F1 02 00 35 04 06 00 7D 8E EC 27 B2 7A DF 9D 94 C2 79 DD 2A 7C [21:47:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 16 8E 47 00 03 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 31 37 35 34 10 04 04 00 0D F1 02 00 F4 03 04 00 37 AB 1F 67 B6 04 01 00 00 DE 9A 38 B5 0D 08 99 A1 [21:47:33]CommunicateWithHost err = 0 [21:47:33]CheckOFDResponse [21:47:33]1017 (14) - 77093643461234 [21:47:33]1041 (16) - 0000000000871754 [21:47:33]1040 (4) - 192781 [21:47:33]1012 (4) - 28.10.2024 15:18 [21:47:33]1206 (1) - 0 [21:47:33]OFD Sender: Remove packet 192781 [21:47:33]ProducePacketName [21:47:33]name=ofd_packets/00192781 [21:47:33]NVStorageDeleteData [21:47:33]Write to MH i2c: 01 00 00 8E 14 A2 [21:47:33]Write i2c OK [21:47:33]MH_I2C_Read... [21:47:33]Read from MH i2c: 01 [21:47:33]MH_I2C_Read... [21:47:33]Read from MH i2c: 01 07 00 [21:47:33]MH_I2C_Read... [21:47:33]Read from MH i2c: 01 07 00 8E 14 00 00 00 00 00 A9 0C 5E [21:47:33]RasterBufferAndPrint [21:47:33]line [21:47:33]line [21:47:33]line [21:47:33]line [21:47:33]line [21:47:33]written 0, free lines is 3247 [21:47:33]MH_Cut [21:47:33]Write to MH i2c: D1 01 00 95 14 01 7B [21:47:33]Write i2c OK [21:47:33]MH_I2C_Read... [21:47:33]Read from MH i2c: D1 [21:47:33]MH_I2C_Read... [21:47:33]Read from MH i2c: D1 01 00 [21:47:33]MH_I2C_Read... [21:47:33]Read from MH i2c: D1 01 00 95 14 00 7A [21:47:33]Write to MH i2c: 01 00 00 96 14 AA [21:47:33]Write i2c OK [21:47:33]MH_I2C_Read... [21:47:33]OFD Sender: No OFD packet to send [21:47:34]*** Cut start [21:47:34]*** Partial cut [21:47:34]*** CUTSNS_PIN = 1 [21:47:34]*** CUTSNS_PIN = 0 [21:47:34]*** Brake cut motor [21:47:34]Read from MH i2c: 01 [21:47:34]MH_I2C_Read... [21:47:34]*** Stop cut motor [21:47:34]*** Cut end [21:47:34]Read from MH i2c: 01 07 00 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: 01 07 00 96 14 00 00 00 00 00 FF 0F BF [21:47:34]process_action close_receipt done [21:47:34]requested_data is exist [21:47:34]produce_requested_data [21:47:34]requested_item fm.sn is exist - process it [21:47:34]wFMCommunicate request_size=4 [21:47:34]MH_SAM_APDU [21:47:34]CAPDU: 80 11 00 00 [21:47:34]Write to MH i2c: E2 08 00 97 14 80 11 00 00 00 00 00 00 25 [21:47:34]Write i2c OK [21:47:34]MH_I2C_Read... [21:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:34]Read from MH i2c: E2 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: E2 17 00 [21:47:34]MH_I2C_Read... [21:47:34]Read from MH i2c: E2 17 00 97 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [21:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:47:34]wFMCommunicate OK [21:47:34]requested_item fd.num is exist - process it [21:47:34]SAM_PROTO_GetFieldsCounters [21:47:34]wFMCommunicate request_size=4 [21:47:34]MH_SAM_APDU [21:47:34]CAPDU: 80 13 00 00 [21:47:34]Write to MH i2c: E2 08 00 98 14 80 13 00 00 00 00 00 00 28 [21:47:34]Write i2c OK [21:47:34]MH_I2C_Read... [21:47:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:35]Read from MH i2c: E2 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: E2 62 00 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: E2 62 00 98 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0D F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [21:47:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0D F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:35]wFMCommunicate OK [21:47:35]SAM_PROTO_GetFieldsCounters done [21:47:35]requested_item shift.num is exist - process it [21:47:35]requested_item shift.opened is exist - process it [21:47:35]req_shift_opened [21:47:35]FM_GetShiftState [21:47:35]SAM_PROTO_GetShiftState [21:47:35]wFMCommunicate request_size=4 [21:47:35]MH_SAM_APDU [21:47:35]CAPDU: 80 13 01 00 [21:47:35]Write to MH i2c: E2 08 00 99 14 80 13 01 00 00 00 00 00 2A [21:47:35]Write i2c OK [21:47:35]MH_I2C_Read... [21:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:35]Read from MH i2c: E2 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: E2 0E 00 [21:47:35]MH_I2C_Read... [21:47:35]Read from MH i2c: E2 0E 00 99 14 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 7A [21:47:35]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:47:35]wFMCommunicate OK [21:47:35]SAM_PROTO_GetShiftState done [21:47:35]FM_GetShiftState done [21:47:35]req_shift_opened done [21:47:35]requested_item shift.open_date is exist - process it [21:47:35]req_shift_open_date [21:47:35]req_shift_open_date done [21:47:35]produce_requested_data done [21:47:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192781,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [21:47:35]process_action_free close_receipt [21:47:35]json_value_free [21:47:35]json_value_free done [21:47:35]process_json_proto returns [21:47:35]Send response to host [21:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192781,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [21:47:35]free response buf [21:47:35]execute_script done [21:47:35]execute_script returns [21:47:35]free content buf [21:47:35]Sock 8.Close socket [21:47:35]Sock 8.Thread stoped [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:58:59]accept exits with 9 [21:58:59]New connection [21:58:59]New thread 3066801508 created [21:58:59]Thread 3066658148 joined [21:58:59]Waiting for new connection... [21:58:59] Sock 9.Parse request [21:58:59]Sock 9.Check first char [21:58:59]Sock 9.First char is OK [21:58:59]request: POST /json_proto HTTP/1.0 [21:58:59]Method: POST [21:58:59]URL: /json_proto [21:58:59]Method is POST - this is cgi request [21:58:59]url: /json_proto [21:58:59]query_string will be loaded in cgi processing [21:58:59]execute_cgi json_proto POST (null) [21:58:59]execute_cgi path=json_proto method=POST [21:58:59]POST find Content-Length [21:58:59]Host: 172.17.63.131:8080 [21:58:59]Content-Length: 681 [21:58:59]Content-Type: application/json [21:58:59] [21:58:59]POST finish read [21:58:59]Found Content-Length = 681 [21:58:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:59]execute_script... [21:58: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)32113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:59]POST & json_proto [21:58:59]process_json_proto [21:58:59]json parsed OK: [21:58:59]protocol is kg_v1.0 [21:58:59]action value=close_receipt [21:58:59]process_action close_receipt [21:58:59]cmd_close_receipt [21:58:59]MH_GetDate [21:58:59]Write to MH i2c: F0 00 00 9A 14 9D [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: F0 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: F0 09 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: F0 09 00 9A 14 00 25 09 20 67 22 05 6E 64 54 [21:58:59]GetLastDocTimeStamp 1730152052 [21:58:59]current date 1730152741 [21:58:59]FM_GetShiftState [21:58:59]SAM_PROTO_GetShiftState [21:58:59]wFMCommunicate request_size=4 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 13 01 00 [21:58:59]Write to MH i2c: E2 08 00 9B 14 80 13 01 00 00 00 00 00 2C [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:59]Read from MH i2c: E2 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 0E 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 0E 00 9B 14 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 7C [21:58:59]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:58:59]wFMCommunicate OK [21:58:59]SAM_PROTO_GetShiftState done [21:58:59]FM_GetShiftState done [21:58:59]opened in 1730075620 [21:58:59]opened+sec_in_day 1730162020 [21:58:59]quantity*price = 100015 [21:58:59]sum+1 = 100017 [21:58:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 330 28.10.2024 21:59 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192782 ФПД: 198022872953888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T215901&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192782&fm=198022872953888&tin=02508201610067®Number=0000000000091776&sum=100000 [21:59:01]StoreToDocumentArchive [21:59:01]shift 543 fd 192782 [21:59:01]save to /storage/0543/doc_00192782 [21:59:01]save last doc name /storage/0543/doc_00192782 to /storage/kkm_last_doc_name [21:59:01]save OK [21:59:01]Clear old archive folders... [21:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:59:01]tlvbuf is 00FAC4F0 [21:59:01]SAM_PROTO_ClearQueue [21:59:01]wFMCommunicate request_size=4 [21:59:01]MH_SAM_APDU [21:59:01]CAPDU: 80 09 00 00 [21:59:01]Write to MH i2c: E2 08 00 A8 14 80 09 00 00 00 00 00 00 2E [21:59:01]Write i2c OK [21:59:01]MH_I2C_Read... [21:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:59:01]Read from MH i2c: E2 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: E2 03 00 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: E2 03 00 A8 14 00 90 00 30 [21:59:01]RAPDU: 90 00 [21:59:01]wFMCommunicate OK [21:59:01]SAM_PROTO_ClearQueue done [21:59:01]KKMCreateOFDPacket [21:59:01]OFDProtocolAddRootSTLVToBuf [21:59:01]FM_MakeSignedData [21:59:01]FM_MakeSignedData [21:59:01]SAM_PROTO_SignData [21:59:01]wFMCommunicate request_size=4 [21:59:01]MH_SAM_APDU [21:59:01]CAPDU: 80 0D 01 02 [21:59:01]Write to MH i2c: E2 08 00 A9 14 80 0D 01 02 00 00 00 00 36 [21:59:01]Write i2c OK [21:59:01]MH_I2C_Read... [21:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:59:01]Read from MH i2c: E2 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: E2 03 00 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: E2 03 00 A9 14 00 90 00 31 [21:59:01]RAPDU: 90 00 [21:59:01]wFMCommunicate OK [21:59:01]wFMCommunicate request_size=255 [21:59:01]MH_SAM_APDU [21:59: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 25 09 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E F1 02 00 35 04 06 00 B4 [21:59:01]Write to MH i2c: E2 02 01 AA 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 25 09 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E F1 02 00 35 04 06 00 B4 00 00 9A [21:59:01]Write i2c OK [21:59:01]MH_I2C_Read... [21:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:01]Read from MH i2c: E2 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: E2 03 00 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: E2 03 00 AA 14 00 90 00 32 [21:59:01]RAPDU: 90 00 [21:59:01]wFMCommunicate OK [21:59:01]wFMCommunicate request_size=10 [21:59:01]MH_SAM_APDU [21:59:01]CAPDU: 80 0D 02 02 05 19 CA FF F4 20 [21:59:01]Write to MH i2c: E2 0D 00 AB 14 80 0D 02 02 05 00 19 CA FF F4 20 00 00 39 [21:59:01]Write i2c OK [21:59:01]MH_I2C_Read... [21:59:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:01]Read from MH i2c: E2 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: E2 03 00 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: E2 03 00 AB 14 00 90 00 33 [21:59:01]RAPDU: 90 00 [21:59:01]wFMCommunicate OK [21:59:01]wFMCommunicate request_size=4 [21:59:01]MH_SAM_APDU [21:59:01]CAPDU: 80 0D 03 02 [21:59:01]Write to MH i2c: E2 08 00 AC 14 80 0D 03 02 00 00 00 00 3B [21:59:01]Write i2c OK [21:59:01]MH_I2C_Read... [21:59:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:01]Read from MH i2c: E2 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: E2 0B 00 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: E2 0B 00 AC 14 00 FA 45 50 58 27 6E 3C 5A 90 00 4E [21:59:01]RAPDU: FA 45 50 58 27 6E 3C 5A 90 00 [21:59:01]wFMCommunicate OK [21:59:01]SAM_PROTO_SignData done [21:59:01]FM_MakeSignedData done [21:59:01]CreateOFDProtocolMessage [21:59:01]wFMCommunicate request_size=4 [21:59:01]MH_SAM_APDU [21:59:01]CAPDU: 80 11 00 00 [21:59:01]Write to MH i2c: E2 08 00 AD 14 80 11 00 00 00 00 00 00 3B [21:59:01]Write i2c OK [21:59:01]MH_I2C_Read... [21:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:01]Read from MH i2c: E2 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: E2 17 00 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: E2 17 00 AD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8E [21:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:59:01]wFMCommunicate OK [21:59:01]CreateOFDProtocolMessage done [21:59:01]OFDSenderStorePacket 192782 [21:59:01]StoreOFDPacket docnum=192782 [21:59:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3F B3 07 01 C4 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 25 09 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E F1 02 00 35 04 06 00 B4 19 CA FF F4 20 FA 45 50 58 27 6E 3C 5A [21:59:01]CheckFolder [21:59:01]dirname=/storage/ofd_packets [21:59:01]CheckFolder done [21:59:01]ProducePacketName [21:59:01]name=ofd_packets/00192782 [21:59:01]NVStorageSaveData ofd_packets/00192782 [21:59:01]File name is /storage/ofd_packets/00192782 [21:59:01]Write 301 bytes [21:59:01]NVStorageSaveData done [21:59:01]OFDSenderStorePacket done [21:59:01]KKMCreateOFDPacket done [21:59:01]NVStorageSaveData kkm_last_timestamp [21:59:01]File name is /storage/kkm_last_timestamp [21:59:01]Write 4 bytes [21:59:01]NVStorageSaveData done [21:59:01]ExternCall_PrintAddStr [21:59:01]wPrintStart [21:59:01]Write to MH i2c: 01 00 00 AE 14 C2 [21:59:01]Write i2c OK [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: 01 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: 01 07 00 [21:59:01]MH_I2C_Read... [21:59:01]Read from MH i2c: 01 07 00 AE 14 00 00 00 00 00 FF 0F D7 [21:59:01]RasterBufferAndPrint [21:59:01]line Счет N : (1)32113 [21:59:01]line ИНН: 02508201610067 [21:59:01]line Контрольно-Кассовый Чек [21:59:01]line ПРОДАЖА [21:59:01]line ТРК (МРК, ГНК) : 21 [21:59:01]line Товар: 2710124130 [21:59:01]line Аи-92-К-5 [21:59:01]line 14.950 * 66.90 [21:59:01]line = 1000.16 [21:59:01]line НДС 12% НСП 1% [21:59:01]line > о реализуемом товаре [21:59:01]line ОКРУГЛЕНИЕ: -0.16 [21:59:01]line ИТОГО: 1000.00 [21:59:01]line Внесено: 1000.00 [21:59:01]line СДАЧА: 0.00 [21:59:01]line НСП 1% : 8.85 [21:59:01]line НДС 12% : 106.21 [21:59:01]line Наличными: 1000.00 [21:59:01]line Безнал.: 0.00 [21:59:01]line Место: АЗС № 170 "Партнер Нефть" [21:59:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:59:01]line СНО: Общий режим [21:59:01]line Чек 330 28.10.2024 21:59 [21:59:01]line Смена: 543 ФФД: 1.0 [21:59:01]line ЗНМ: 0300000110 [21:59:01]line РНМ: 0000000000091776 [21:59:01]line Версия ККМ: 001 [21:59:01]line ФМ: 0000000000871754 [21:59:01]line ФД: 192782 [21:59:01]line ФПД: 198022872953888 [21:59:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T215901&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192782&fm=198022872953888&tin=02508201610067®Number=0000000000091776&sum=100000 [21:59:01]OFD Sender: Processing packet 192782 [packets to send 75, broken 74] [21:59:01]ProducePacketName [21:59:01]name=ofd_packets/00192782 [21:59:01]OFD Sender: To server: pG, [21:59:01]CommunicateWithHost lk.salyk.kg:30040 [21:59:01]ConnectInit lk.salyk.kg [21:59:01]written 0, free lines is 4095 [21:59:02]Connected sock=10 [21:59:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3F B3 07 01 C4 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 25 09 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E F1 02 00 35 04 06 00 B4 19 CA FF F4 20 FA 45 50 58 27 6E 3C 5A [21:59:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B5 22 47 00 12 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E F1 02 00 F4 03 04 00 E7 AD 1F 67 B6 04 01 00 00 FA 75 32 B9 AD CC 96 C5 [21:59:02]CommunicateWithHost err = 0 [21:59:02]CheckOFDResponse [21:59:02]1017 (14) - 77093643461234 [21:59:02]1041 (16) - 0000000000871754 [21:59:02]1040 (4) - 192782 [21:59:02]1012 (4) - 28.10.2024 15:29 [21:59:02]1206 (1) - 0 [21:59:02]OFD Sender: Remove packet 192782 [21:59:02]ProducePacketName [21:59:02]name=ofd_packets/00192782 [21:59:02]NVStorageDeleteData [21:59:02]Write to MH i2c: 01 00 00 D9 14 ED [21:59:02]Write i2c OK [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: 01 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: 01 07 00 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: 01 07 00 D9 14 00 00 00 00 00 B4 0C B4 [21:59:02]RasterBufferAndPrint [21:59:02]line [21:59:02]line [21:59:02]line [21:59:02]line [21:59:02]line [21:59:02]written 0, free lines is 3256 [21:59:02]MH_Cut [21:59:02]Write to MH i2c: D1 01 00 E0 14 01 C6 [21:59:02]Write i2c OK [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: D1 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: D1 01 00 [21:59:02]MH_I2C_Read... [21:59:02]Read from MH i2c: D1 01 00 E0 14 00 C5 [21:59:02]Write to MH i2c: 01 00 00 E1 14 F5 [21:59:02]Write i2c OK [21:59:02]MH_I2C_Read... [21:59:02]OFD Sender: No OFD packet to send [21:59:03]*** Cut start [21:59:03]*** Partial cut [21:59:03]*** CUTSNS_PIN = 1 [21:59:03]*** CUTSNS_PIN = 0 [21:59:03]*** Brake cut motor [21:59:03]Read from MH i2c: 01 [21:59:03]MH_I2C_Read... [21:59:03]*** Stop cut motor [21:59:03]*** Cut end [21:59:03]Read from MH i2c: 01 07 00 [21:59:03]MH_I2C_Read... [21:59:03]Read from MH i2c: 01 07 00 E1 14 00 00 00 00 00 FF 0F 0A [21:59:03]process_action close_receipt done [21:59:03]requested_data is exist [21:59:03]produce_requested_data [21:59:03]requested_item fm.sn is exist - process it [21:59:03]wFMCommunicate request_size=4 [21:59:03]MH_SAM_APDU [21:59:03]CAPDU: 80 11 00 00 [21:59:03]Write to MH i2c: E2 08 00 E2 14 80 11 00 00 00 00 00 00 70 [21:59:03]Write i2c OK [21:59:03]MH_I2C_Read... [21:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:03]Read from MH i2c: E2 [21:59:03]MH_I2C_Read... [21:59:03]Read from MH i2c: E2 17 00 [21:59:03]MH_I2C_Read... [21:59:03]Read from MH i2c: E2 17 00 E2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [21:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:59:03]wFMCommunicate OK [21:59:03]requested_item fd.num is exist - process it [21:59:03]SAM_PROTO_GetFieldsCounters [21:59:03]wFMCommunicate request_size=4 [21:59:03]MH_SAM_APDU [21:59:03]CAPDU: 80 13 00 00 [21:59:03]Write to MH i2c: E2 08 00 E3 14 80 13 00 00 00 00 00 00 73 [21:59:03]Write i2c OK [21:59:03]MH_I2C_Read... [21:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:04]Read from MH i2c: E2 [21:59:04]MH_I2C_Read... [21:59:04]Read from MH i2c: E2 62 00 [21:59:04]MH_I2C_Read... [21:59:04]Read from MH i2c: E2 62 00 E3 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0E F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 9C [21:59:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0E F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:59:04]wFMCommunicate OK [21:59:04]SAM_PROTO_GetFieldsCounters done [21:59:04]requested_item shift.num is exist - process it [21:59:04]requested_item shift.opened is exist - process it [21:59:04]req_shift_opened [21:59:04]FM_GetShiftState [21:59:04]SAM_PROTO_GetShiftState [21:59:04]wFMCommunicate request_size=4 [21:59:04]MH_SAM_APDU [21:59:04]CAPDU: 80 13 01 00 [21:59:04]Write to MH i2c: E2 08 00 E4 14 80 13 01 00 00 00 00 00 75 [21:59:04]Write i2c OK [21:59:04]MH_I2C_Read... [21:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:04]Read from MH i2c: E2 [21:59:04]MH_I2C_Read... [21:59:04]Read from MH i2c: E2 0E 00 [21:59:04]MH_I2C_Read... [21:59:04]Read from MH i2c: E2 0E 00 E4 14 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C5 [21:59:04]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [21:59:04]wFMCommunicate OK [21:59:04]SAM_PROTO_GetShiftState done [21:59:04]FM_GetShiftState done [21:59:04]req_shift_opened done [21:59:04]requested_item shift.open_date is exist - process it [21:59:04]req_shift_open_date [21:59:04]req_shift_open_date done [21:59:04]produce_requested_data done [21:59:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192782,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [21:59:04]process_action_free close_receipt [21:59:04]json_value_free [21:59:04]json_value_free done [21:59:04]process_json_proto returns [21:59:04]Send response to host [21:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192782,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [21:59:04]free response buf [21:59:04]execute_script done [21:59:04]execute_script returns [21:59:04]free content buf [21:59:04]Sock 9.Close socket [21:59:04]Sock 9.Thread stoped [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:39]accept exits with 8 [22:04:39]New connection [22:04:39]New thread 3066658148 created [22:04:39]Thread 3066801508 joined [22:04:39]Waiting for new connection... [22:04:39] Sock 8.Parse request [22:04:39]Sock 8.Check first char [22:04:39]Sock 8.First char is OK [22:04:39]request: POST /json_proto HTTP/1.0 [22:04:39]Method: POST [22:04:39]URL: /json_proto [22:04:39]Method is POST - this is cgi request [22:04:39]url: /json_proto [22:04:39]query_string will be loaded in cgi processing [22:04:39]execute_cgi json_proto POST (null) [22:04:39]execute_cgi path=json_proto method=POST [22:04:39]POST find Content-Length [22:04:39]Host: 172.17.63.131:8080 [22:04:39]Content-Length: 681 [22:04:39]Content-Type: application/json [22:04:39] [22:04:39]POST finish read [22:04:39]Found Content-Length = 681 [22:04:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:39]execute_script... [22:04:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:39]POST & json_proto [22:04:39]process_json_proto [22:04:39]json parsed OK: [22:04:39]protocol is kg_v1.0 [22:04:39]action value=close_receipt [22:04:39]process_action close_receipt [22:04:39]cmd_close_receipt [22:04:39]MH_GetDate [22:04:39]Write to MH i2c: F0 00 00 E5 14 E8 [22:04:39]Write i2c OK [22:04:39]MH_I2C_Read... [22:04:39]Read from MH i2c: F0 [22:04:39]MH_I2C_Read... [22:04:39]Read from MH i2c: F0 09 00 [22:04:39]MH_I2C_Read... [22:04:39]Read from MH i2c: F0 09 00 E5 14 00 78 0A 20 67 22 05 6E 64 F3 [22:04:39]GetLastDocTimeStamp 1730152741 [22:04:39]current date 1730153080 [22:04:39]FM_GetShiftState [22:04:39]SAM_PROTO_GetShiftState [22:04:39]wFMCommunicate request_size=4 [22:04:39]MH_SAM_APDU [22:04:39]CAPDU: 80 13 01 00 [22:04:39]Write to MH i2c: E2 08 00 E6 14 80 13 01 00 00 00 00 00 77 [22:04:39]Write i2c OK [22:04:39]MH_I2C_Read... [22:04:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:39]Read from MH i2c: E2 [22:04:39]MH_I2C_Read... [22:04:39]Read from MH i2c: E2 0E 00 [22:04:39]MH_I2C_Read... [22:04:39]Read from MH i2c: E2 0E 00 E6 14 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 C7 [22:04:39]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [22:04:39]wFMCommunicate OK [22:04:39]SAM_PROTO_GetShiftState done [22:04:39]FM_GetShiftState done [22:04:39]opened in 1730075620 [22:04:39]opened+sec_in_day 1730162020 [22:04:39]quantity*price = 100015 [22:04:39]sum+1 = 100017 [22:04:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 331 28.10.2024 22:04 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192783 ФПД: 265466717515202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T220440&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192783&fm=265466717515202&tin=02508201610067®Number=0000000000091776&sum=100000 [22:04:40]StoreToDocumentArchive [22:04:40]shift 543 fd 192783 [22:04:40]save to /storage/0543/doc_00192783 [22:04:40]save last doc name /storage/0543/doc_00192783 to /storage/kkm_last_doc_name [22:04:40]save OK [22:04:40]Clear old archive folders... [22:04:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:04:40]tlvbuf is 00FAC8C0 [22:04:40]SAM_PROTO_ClearQueue [22:04:40]wFMCommunicate request_size=4 [22:04:40]MH_SAM_APDU [22:04:40]CAPDU: 80 09 00 00 [22:04:40]Write to MH i2c: E2 08 00 F3 14 80 09 00 00 00 00 00 00 79 [22:04:40]Write i2c OK [22:04:40]MH_I2C_Read... [22:04:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:04:40]Read from MH i2c: E2 [22:04:40]MH_I2C_Read... [22:04:40]Read from MH i2c: E2 03 00 [22:04:40]MH_I2C_Read... [22:04:40]Read from MH i2c: E2 03 00 F3 14 00 90 00 7B [22:04:40]RAPDU: 90 00 [22:04:40]wFMCommunicate OK [22:04:40]SAM_PROTO_ClearQueue done [22:04:40]KKMCreateOFDPacket [22:04:40]OFDProtocolAddRootSTLVToBuf [22:04:40]FM_MakeSignedData [22:04:40]FM_MakeSignedData [22:04:40]SAM_PROTO_SignData [22:04:40]wFMCommunicate request_size=4 [22:04:40]MH_SAM_APDU [22:04:40]CAPDU: 80 0D 01 02 [22:04:40]Write to MH i2c: E2 08 00 F4 14 80 0D 01 02 00 00 00 00 81 [22:04:40]Write i2c OK [22:04:40]MH_I2C_Read... [22:04:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:04:40]Read from MH i2c: E2 [22:04:40]MH_I2C_Read... [22:04:40]Read from MH i2c: E2 03 00 [22:04:40]MH_I2C_Read... [22:04:40]Read from MH i2c: E2 03 00 F4 14 00 90 00 7C [22:04:40]RAPDU: 90 00 [22:04:40]wFMCommunicate OK [22:04:40]wFMCommunicate request_size=255 [22:04:40]MH_SAM_APDU [22:04:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 4B 01 00 00 F4 03 04 00 78 0A 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F F1 02 00 35 04 06 00 F1 [22:04:40]Write to MH i2c: E2 02 01 F5 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 78 0A 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F F1 02 00 35 04 06 00 F1 00 00 78 [22:04:40]Write i2c OK [22:04:40]MH_I2C_Read... [22:04:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:40]Read from MH i2c: E2 [22:04:40]MH_I2C_Read... [22:04:40]Read from MH i2c: E2 03 00 [22:04:40]MH_I2C_Read... [22:04:40]Read from MH i2c: E2 03 00 F5 14 00 90 00 7D [22:04:40]RAPDU: 90 00 [22:04:40]wFMCommunicate OK [22:04:40]wFMCommunicate request_size=10 [22:04:40]MH_SAM_APDU [22:04:40]CAPDU: 80 0D 02 02 05 70 C9 65 AD C2 [22:04:40]Write to MH i2c: E2 0D 00 F6 14 80 0D 02 02 05 00 70 C9 65 AD C2 00 00 9B [22:04:40]Write i2c OK [22:04:40]MH_I2C_Read... [22:04:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:40]Read from MH i2c: E2 [22:04:40]MH_I2C_Read... [22:04:40]Read from MH i2c: E2 03 00 [22:04:40]MH_I2C_Read... [22:04:40]Read from MH i2c: E2 03 00 F6 14 00 90 00 7E [22:04:40]RAPDU: 90 00 [22:04:40]wFMCommunicate OK [22:04:40]wFMCommunicate request_size=4 [22:04:40]MH_SAM_APDU [22:04:40]CAPDU: 80 0D 03 02 [22:04:40]Write to MH i2c: E2 08 00 F7 14 80 0D 03 02 00 00 00 00 86 [22:04:40]Write i2c OK [22:04:40]MH_I2C_Read... [22:04:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:04:40]Read from MH i2c: E2 [22:04:40]MH_I2C_Read... [22:04:40]Read from MH i2c: E2 0B 00 [22:04:40]MH_I2C_Read... [22:04:40]Read from MH i2c: E2 0B 00 F7 14 00 20 2C 1C 2A FE A8 DF A9 90 00 47 [22:04:40]RAPDU: 20 2C 1C 2A FE A8 DF A9 90 00 [22:04:40]wFMCommunicate OK [22:04:40]SAM_PROTO_SignData done [22:04:40]FM_MakeSignedData done [22:04:40]CreateOFDProtocolMessage [22:04:40]wFMCommunicate request_size=4 [22:04:40]MH_SAM_APDU [22:04:40]CAPDU: 80 11 00 00 [22:04:40]Write to MH i2c: E2 08 00 F8 14 80 11 00 00 00 00 00 00 86 [22:04:40]Write i2c OK [22:04:40]MH_I2C_Read... [22:04:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:40]Read from MH i2c: E2 [22:04:40]MH_I2C_Read... [22:04:40]Read from MH i2c: E2 17 00 [22:04:40]MH_I2C_Read... [22:04:40]Read from MH i2c: E2 17 00 F8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [22:04:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:04:40]wFMCommunicate OK [22:04:40]CreateOFDProtocolMessage done [22:04:40]OFDSenderStorePacket 192783 [22:04:40]StoreOFDPacket docnum=192783 [22:04:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6E D1 07 01 40 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 78 0A 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F F1 02 00 35 04 06 00 F1 70 C9 65 AD C2 20 2C 1C 2A FE A8 DF A9 [22:04:40]CheckFolder [22:04:40]dirname=/storage/ofd_packets [22:04:40]CheckFolder done [22:04:40]ProducePacketName [22:04:40]name=ofd_packets/00192783 [22:04:40]NVStorageSaveData ofd_packets/00192783 [22:04:40]File name is /storage/ofd_packets/00192783 [22:04:40]Write 301 bytes [22:04:40]NVStorageSaveData done [22:04:40]OFDSenderStorePacket done [22:04:40]KKMCreateOFDPacket done [22:04:40]NVStorageSaveData kkm_last_timestamp [22:04:40]File name is /storage/kkm_last_timestamp [22:04:40]Write 4 bytes [22:04:40]NVStorageSaveData done [22:04:40]OFD Sender: Processing packet 192783 [packets to send 75, broken 74] [22:04:40]ProducePacketName [22:04:40]name=ofd_packets/00192783 [22:04:40]OFD Sender: To server: pG, [22:04:40]CommunicateWithHost lk.salyk.kg:30040 [22:04:40]ConnectInit lk.salyk.kg [22:04:40]ExternCall_PrintAddStr [22:04:40]wPrintStart [22:04:40]Write to MH i2c: 01 00 00 F9 14 0D [22:04:40]Write i2c OK [22:04:40]MH_I2C_Read... [22:04:40]Read from MH i2c: 01 [22:04:40]MH_I2C_Read... [22:04:40]Read from MH i2c: 01 07 00 [22:04:40]MH_I2C_Read... [22:04:40]Read from MH i2c: 01 07 00 F9 14 00 00 00 00 00 FF 0F 22 [22:04:40]RasterBufferAndPrint [22:04:40]line Счет N : (1)32114 [22:04:40]line ИНН: 02508201610067 [22:04:40]line Контрольно-Кассовый Чек [22:04:40]line ПРОДАЖА [22:04:40]line ТРК (МРК, ГНК) : 12 [22:04:40]line Товар: 2710124130 [22:04:40]line Аи-92-К-5 [22:04:40]line 14.950 * 66.90 [22:04:40]line = 1000.16 [22:04:40]line НДС 12% НСП 1% [22:04:40]line > о реализуемом товаре [22:04:40]line ОКРУГЛЕНИЕ: -0.16 [22:04:40]line ИТОГО: 1000.00 [22:04:40]line Внесено: 1000.00 [22:04:40]line СДАЧА: 0.00 [22:04:40]line НСП 1% : 8.85 [22:04:40]line НДС 12% : 106.21 [22:04:40]line Наличными: 1000.00 [22:04:40]line Безнал.: 0.00 [22:04:40]line Место: АЗС № 170 "Партнер Нефть" [22:04:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:04:40]line СНО: Общий режим [22:04:40]line Чек 331 28.10.2024 22:04 [22:04:40]line Смена: 543 ФФД: 1.0 [22:04:40]line ЗНМ: 0300000110 [22:04:40]line РНМ: 0000000000091776 [22:04:40]line Версия ККМ: 001 [22:04:40]line ФМ: 0000000000871754 [22:04:40]line ФД: 192783 [22:04:40]line ФПД: 265466717515202 [22:04:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T220440&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192783&fm=265466717515202&tin=02508201610067®Number=0000000000091776&sum=100000 [22:04:41]Connected sock=11 [22:04:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6E D1 07 01 40 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 78 0A 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F F1 02 00 35 04 06 00 F1 70 C9 65 AD C2 20 2C 1C 2A FE A8 DF A9 [22:04:41]written 0, free lines is 4095 [22:04:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FB 30 47 00 F0 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F F1 02 00 F4 03 04 00 3B AF 1F 67 B6 04 01 00 00 1D 7E 7F A6 6C D1 E2 46 [22:04:41]CommunicateWithHost err = 0 [22:04:41]CheckOFDResponse [22:04:41]1017 (14) - 77093643461234 [22:04:41]1041 (16) - 0000000000871754 [22:04:41]1040 (4) - 192783 [22:04:41]1012 (4) - 28.10.2024 15:35 [22:04:41]1206 (1) - 0 [22:04:41]OFD Sender: Remove packet 192783 [22:04:41]ProducePacketName [22:04:41]name=ofd_packets/00192783 [22:04:41]NVStorageDeleteData [22:04:41]Write to MH i2c: 01 00 00 24 15 39 [22:04:41]Write i2c OK [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: 01 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: 01 07 00 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: 01 07 00 24 15 00 00 00 00 00 AA 0C F6 [22:04:41]RasterBufferAndPrint [22:04:41]line [22:04:41]line [22:04:41]line [22:04:41]line [22:04:41]line [22:04:41]written 0, free lines is 3248 [22:04:41]MH_Cut [22:04:41]Write to MH i2c: D1 01 00 2B 15 01 12 [22:04:41]Write i2c OK [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: D1 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: D1 01 00 [22:04:41]MH_I2C_Read... [22:04:41]Read from MH i2c: D1 01 00 2B 15 00 11 [22:04:41]Write to MH i2c: 01 00 00 2C 15 41 [22:04:41]Write i2c OK [22:04:41]MH_I2C_Read... [22:04:41]OFD Sender: No OFD packet to send [22:04:42]*** Cut start [22:04:42]*** Partial cut [22:04:42]*** CUTSNS_PIN = 1 [22:04:42]*** CUTSNS_PIN = 0 [22:04:42]*** Brake cut motor [22:04:43]Read from MH i2c: 01 [22:04:43]MH_I2C_Read... [22:04:43]*** Stop cut motor [22:04:43]*** Cut end [22:04:43]Read from MH i2c: 01 07 00 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: 01 07 00 2C 15 00 00 00 00 00 FF 0F 56 [22:04:43]process_action close_receipt done [22:04:43]requested_data is exist [22:04:43]produce_requested_data [22:04:43]requested_item fm.sn is exist - process it [22:04:43]wFMCommunicate request_size=4 [22:04:43]MH_SAM_APDU [22:04:43]CAPDU: 80 11 00 00 [22:04:43]Write to MH i2c: E2 08 00 2D 15 80 11 00 00 00 00 00 00 BC [22:04:43]Write i2c OK [22:04:43]MH_I2C_Read... [22:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:43]Read from MH i2c: E2 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 17 00 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 17 00 2D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0F [22:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:04:43]wFMCommunicate OK [22:04:43]requested_item fd.num is exist - process it [22:04:43]SAM_PROTO_GetFieldsCounters [22:04:43]wFMCommunicate request_size=4 [22:04:43]MH_SAM_APDU [22:04:43]CAPDU: 80 13 00 00 [22:04:43]Write to MH i2c: E2 08 00 2E 15 80 13 00 00 00 00 00 00 BF [22:04:43]Write i2c OK [22:04:43]MH_I2C_Read... [22:04:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:43]Read from MH i2c: E2 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 62 00 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 62 00 2E 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0F F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [22:04:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0F F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:43]wFMCommunicate OK [22:04:43]SAM_PROTO_GetFieldsCounters done [22:04:43]requested_item shift.num is exist - process it [22:04:43]requested_item shift.opened is exist - process it [22:04:43]req_shift_opened [22:04:43]FM_GetShiftState [22:04:43]SAM_PROTO_GetShiftState [22:04:43]wFMCommunicate request_size=4 [22:04:43]MH_SAM_APDU [22:04:43]CAPDU: 80 13 01 00 [22:04:43]Write to MH i2c: E2 08 00 2F 15 80 13 01 00 00 00 00 00 C1 [22:04:43]Write i2c OK [22:04:43]MH_I2C_Read... [22:04:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:43]Read from MH i2c: E2 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 0E 00 [22:04:43]MH_I2C_Read... [22:04:43]Read from MH i2c: E2 0E 00 2F 15 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 11 [22:04:43]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [22:04:43]wFMCommunicate OK [22:04:43]SAM_PROTO_GetShiftState done [22:04:43]FM_GetShiftState done [22:04:43]req_shift_opened done [22:04:43]requested_item shift.open_date is exist - process it [22:04:43]req_shift_open_date [22:04:43]req_shift_open_date done [22:04:43]produce_requested_data done [22:04:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192783,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [22:04:43]process_action_free close_receipt [22:04:43]json_value_free [22:04:43]json_value_free done [22:04:43]process_json_proto returns [22:04:43]Send response to host [22:04:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192783,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [22:04:43]free response buf [22:04:43]execute_script done [22:04:43]execute_script returns [22:04:43]free content buf [22:04:43]Sock 8.Close socket [22:04:43]Sock 8.Thread stoped [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:45]accept exits with 9 [22:06:45]New connection [22:06:45]New thread 3066801508 created [22:06:45]Thread 3066658148 joined [22:06:45]Waiting for new connection... [22:06:45] Sock 9.Parse request [22:06:45]Sock 9.Check first char [22:06:45]Sock 9.First char is OK [22:06:45]request: POST /json_proto HTTP/1.0 [22:06:45]Method: POST [22:06:45]URL: /json_proto [22:06:45]Method is POST - this is cgi request [22:06:45]url: /json_proto [22:06:45]query_string will be loaded in cgi processing [22:06:45]execute_cgi json_proto POST (null) [22:06:45]execute_cgi path=json_proto method=POST [22:06:45]POST find Content-Length [22:06:45]Host: 172.17.63.131:8080 [22:06:45]Content-Length: 862 [22:06:45]Content-Type: application/json [22:06:45] [22:06:45]POST finish read [22:06:45]Found Content-Length = 862 [22:06:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:45]execute_script... [22:06:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:45]POST & json_proto [22:06:45]process_json_proto [22:06:45]json parsed OK: [22:06:45]protocol is kg_v1.0 [22:06:45]action value=close_receipt [22:06:45]process_action close_receipt [22:06:45]cmd_close_receipt [22:06:45]MH_GetDate [22:06:45]Write to MH i2c: F0 00 00 30 15 34 [22:06:45]Write i2c OK [22:06:45]MH_I2C_Read... [22:06:45]Read from MH i2c: F0 [22:06:45]MH_I2C_Read... [22:06:45]Read from MH i2c: F0 09 00 [22:06:45]MH_I2C_Read... [22:06:45]Read from MH i2c: F0 09 00 30 15 00 F7 0A 20 67 22 05 6E 64 BE [22:06:45]GetLastDocTimeStamp 1730153080 [22:06:45]current date 1730153207 [22:06:45]FM_GetShiftState [22:06:45]SAM_PROTO_GetShiftState [22:06:45]wFMCommunicate request_size=4 [22:06:45]MH_SAM_APDU [22:06:45]CAPDU: 80 13 01 00 [22:06:45]Write to MH i2c: E2 08 00 31 15 80 13 01 00 00 00 00 00 C3 [22:06:45]Write i2c OK [22:06:45]MH_I2C_Read... [22:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:45]Read from MH i2c: E2 [22:06:45]MH_I2C_Read... [22:06:45]Read from MH i2c: E2 0E 00 [22:06:45]MH_I2C_Read... [22:06:45]Read from MH i2c: E2 0E 00 31 15 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 13 [22:06:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [22:06:45]wFMCommunicate OK [22:06:45]SAM_PROTO_GetShiftState done [22:06:45]FM_GetShiftState done [22:06:45]opened in 1730075620 [22:06:45]opened+sec_in_day 1730162020 [22:06:45]quantity*price = 50041 [22:06:45]sum+1 = 50042 [22:06:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 332 28.10.2024 22:06 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192784 ФПД: 249464528240245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T220647&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192784&fm=249464528240245&tin=02508201610067®Number=0000000000091776&sum=50041 [22:06:46]StoreToDocumentArchive [22:06:46]shift 543 fd 192784 [22:06:46]save to /storage/0543/doc_00192784 [22:06:46]save last doc name /storage/0543/doc_00192784 to /storage/kkm_last_doc_name [22:06:47]save OK [22:06:47]Clear old archive folders... [22:06:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:06:47]tlvbuf is 00FAD210 [22:06:47]SAM_PROTO_ClearQueue [22:06:47]wFMCommunicate request_size=4 [22:06:47]MH_SAM_APDU [22:06:47]CAPDU: 80 09 00 00 [22:06:47]Write to MH i2c: E2 08 00 3E 15 80 09 00 00 00 00 00 00 C5 [22:06:47]Write i2c OK [22:06:47]MH_I2C_Read... [22:06:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:47]Read from MH i2c: E2 [22:06:47]MH_I2C_Read... [22:06:47]Read from MH i2c: E2 03 00 [22:06:47]MH_I2C_Read... [22:06:47]Read from MH i2c: E2 03 00 3E 15 00 90 00 C7 [22:06:47]RAPDU: 90 00 [22:06:47]wFMCommunicate OK [22:06:47]SAM_PROTO_ClearQueue done [22:06:47]KKMCreateOFDPacket [22:06:47]OFDProtocolAddRootSTLVToBuf [22:06:47]FM_MakeSignedData [22:06:47]FM_MakeSignedData [22:06:47]SAM_PROTO_SignData [22:06:47]wFMCommunicate request_size=4 [22:06:47]MH_SAM_APDU [22:06:47]CAPDU: 80 0D 01 02 [22:06:47]Write to MH i2c: E2 08 00 3F 15 80 0D 01 02 00 00 00 00 CD [22:06:47]Write i2c OK [22:06:47]MH_I2C_Read... [22:06:47]OFD Sender: No OFD packet to send [22:06:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:47]Read from MH i2c: E2 [22:06:47]MH_I2C_Read... [22:06:47]Read from MH i2c: E2 03 00 [22:06:47]MH_I2C_Read... [22:06:47]Read from MH i2c: E2 03 00 3F 15 00 90 00 C8 [22:06:47]RAPDU: 90 00 [22:06:47]wFMCommunicate OK [22:06:47]wFMCommunicate request_size=255 [22:06:47]MH_SAM_APDU [22:06:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 F7 0A 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 F1 02 00 35 04 06 00 E2 [22:06:47]Write to MH i2c: E2 02 01 40 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 F7 0A 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 F1 02 00 35 04 06 00 E2 00 00 8E [22:06:47]Write i2c OK [22:06:47]MH_I2C_Read... [22:06:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:47]Read from MH i2c: E2 [22:06:47]MH_I2C_Read... [22:06:47]Read from MH i2c: E2 03 00 [22:06:47]MH_I2C_Read... [22:06:47]Read from MH i2c: E2 03 00 40 15 00 90 00 C9 [22:06:47]RAPDU: 90 00 [22:06:47]wFMCommunicate OK [22:06:47]wFMCommunicate request_size=10 [22:06:47]MH_SAM_APDU [22:06:47]CAPDU: 80 0D 02 02 05 E2 FC 96 FE 75 [22:06:47]Write to MH i2c: E2 0D 00 41 15 80 0D 02 02 05 00 E2 FC 96 FE 75 00 00 C1 [22:06:47]Write i2c OK [22:06:47]MH_I2C_Read... [22:06:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:47]Read from MH i2c: E2 [22:06:47]MH_I2C_Read... [22:06:47]Read from MH i2c: E2 03 00 [22:06:47]MH_I2C_Read... [22:06:47]Read from MH i2c: E2 03 00 41 15 00 90 00 CA [22:06:47]RAPDU: 90 00 [22:06:47]wFMCommunicate OK [22:06:47]wFMCommunicate request_size=4 [22:06:47]MH_SAM_APDU [22:06:47]CAPDU: 80 0D 03 02 [22:06:47]Write to MH i2c: E2 08 00 42 15 80 0D 03 02 00 00 00 00 D2 [22:06:47]Write i2c OK [22:06:47]MH_I2C_Read... [22:06:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:47]Read from MH i2c: E2 [22:06:47]MH_I2C_Read... [22:06:47]Read from MH i2c: E2 0B 00 [22:06:47]MH_I2C_Read... [22:06:47]Read from MH i2c: E2 0B 00 42 15 00 85 2D 0B E6 7A 03 54 32 90 00 79 [22:06:47]RAPDU: 85 2D 0B E6 7A 03 54 32 90 00 [22:06:47]wFMCommunicate OK [22:06:47]SAM_PROTO_SignData done [22:06:47]FM_MakeSignedData done [22:06:47]CreateOFDProtocolMessage [22:06:47]wFMCommunicate request_size=4 [22:06:47]MH_SAM_APDU [22:06:47]CAPDU: 80 11 00 00 [22:06:47]Write to MH i2c: E2 08 00 43 15 80 11 00 00 00 00 00 00 D2 [22:06:47]Write i2c OK [22:06:47]MH_I2C_Read... [22:06:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:47]Read from MH i2c: E2 [22:06:47]MH_I2C_Read... [22:06:47]Read from MH i2c: E2 17 00 [22:06:47]MH_I2C_Read... [22:06:47]Read from MH i2c: E2 17 00 43 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 25 [22:06:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:06:47]wFMCommunicate OK [22:06:47]CreateOFDProtocolMessage done [22:06:47]OFDSenderStorePacket 192784 [22:06:47]StoreOFDPacket docnum=192784 [22:06:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1D A2 07 01 AF 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 F7 0A 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 F1 02 00 35 04 06 00 E2 E2 FC 96 FE 75 85 2D 0B E6 7A 03 54 32 [22:06:47]CheckFolder [22:06:47]dirname=/storage/ofd_packets [22:06:47]CheckFolder done [22:06:47]ProducePacketName [22:06:47]name=ofd_packets/00192784 [22:06:47]NVStorageSaveData ofd_packets/00192784 [22:06:47]File name is /storage/ofd_packets/00192784 [22:06:47]Write 301 bytes [22:06:47]NVStorageSaveData done [22:06:47]OFDSenderStorePacket done [22:06:47]KKMCreateOFDPacket done [22:06:47]NVStorageSaveData kkm_last_timestamp [22:06:47]File name is /storage/kkm_last_timestamp [22:06:47]Write 4 bytes [22:06:47]NVStorageSaveData done [22:06:47]ExternCall_PrintAddStr [22:06:47]wPrintStart [22:06:47]Write to MH i2c: 01 00 00 44 15 59 [22:06:47]Write i2c OK [22:06:47]MH_I2C_Read... [22:06:47]Read from MH i2c: 01 [22:06:47]MH_I2C_Read... [22:06:47]Read from MH i2c: 01 07 00 [22:06:47]MH_I2C_Read... [22:06:47]Read from MH i2c: 01 07 00 44 15 00 00 00 00 00 FF 0F 6E [22:06:47]RasterBufferAndPrint [22:06:47]line Счет N : (1)32115 [22:06:47]line ИНН: 02508201610067 [22:06:47]line Контрольно-Кассовый Чек [22:06:47]line ПРОДАЖА [22:06:47]line ТРК (МРК, ГНК) : 21 [22:06:47]line Товар: 2710124130 [22:06:47]line Аи-92-К-5 [22:06:47]line 7.480 * 66.90 [22:06:47]line = 500.41 [22:06:47]line НДС 12% НСП 1% [22:06:47]line > о реализуемом товаре [22:06:47]line ИТОГО: 500.41 [22:06:47]line НСП 1% : 4.43 [22:06:47]line НДС 12% : 53.14 [22:06:47]line Наличными: 0.00 [22:06:47]line Безнал.: 500.41 [22:06:47]line Место: АЗС № 170 "Партнер Нефть" [22:06:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:06:47]line СНО: Общий режим [22:06:47]line Чек 332 28.10.2024 22:06 [22:06:47]line Смена: 543 ФФД: 1.0 [22:06:47]line ЗНМ: 0300000110 [22:06:47]line РНМ: 0000000000091776 [22:06:47]line Версия ККМ: 001 [22:06:47]line Платежная система: Кыргызкоммерцбанк [22:06:47]line ФМ: 0000000000871754 [22:06:47]line ФД: 192784 [22:06:47]line ФПД: 249464528240245 [22:06:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T220647&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192784&fm=249464528240245&tin=02508201610067®Number=0000000000091776&sum=50041 [22:06:47]OFD Sender: Processing packet 192784 [packets to send 75, broken 74] [22:06:47]ProducePacketName [22:06:47]name=ofd_packets/00192784 [22:06:47]OFD Sender: To server: pG, [22:06:47]CommunicateWithHost lk.salyk.kg:30040 [22:06:47]ConnectInit lk.salyk.kg [22:06:47]written 0, free lines is 4095 [22:06:47]Connected sock=10 [22:06:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1D A2 07 01 AF 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 F7 0A 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 F1 02 00 35 04 06 00 E2 E2 FC 96 FE 75 85 2D 0B E6 7A 03 54 32 [22:06:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F6 E5 47 00 8A 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 F1 02 00 F4 03 04 00 B9 AF 1F 67 B6 04 01 00 00 C5 B4 12 D1 64 52 EA FD [22:06:48]CommunicateWithHost err = 0 [22:06:48]CheckOFDResponse [22:06:48]1017 (14) - 77093643461234 [22:06:48]1041 (16) - 0000000000871754 [22:06:48]1040 (4) - 192784 [22:06:48]1012 (4) - 28.10.2024 15:37 [22:06:48]1206 (1) - 0 [22:06:48]OFD Sender: Remove packet 192784 [22:06:48]ProducePacketName [22:06:48]name=ofd_packets/00192784 [22:06:48]NVStorageDeleteData [22:06:48]Write to MH i2c: 01 00 00 6E 15 83 [22:06:48]Write i2c OK [22:06:48]MH_I2C_Read... [22:06:48]Read from MH i2c: 01 [22:06:48]MH_I2C_Read... [22:06:48]Read from MH i2c: 01 07 00 [22:06:48]MH_I2C_Read... [22:06:48]Read from MH i2c: 01 07 00 6E 15 00 00 00 00 00 D6 0C 6C [22:06:48]RasterBufferAndPrint [22:06:48]line [22:06:48]line [22:06:48]line [22:06:48]line [22:06:48]line [22:06:48]written 0, free lines is 3293 [22:06:48]MH_Cut [22:06:48]Write to MH i2c: D1 01 00 75 15 01 5C [22:06:48]Write i2c OK [22:06:48]MH_I2C_Read... [22:06:48]Read from MH i2c: D1 [22:06:48]MH_I2C_Read... [22:06:48]Read from MH i2c: D1 01 00 [22:06:48]MH_I2C_Read... [22:06:48]Read from MH i2c: D1 01 00 75 15 00 5B [22:06:48]Write to MH i2c: 01 00 00 76 15 8B [22:06:48]Write i2c OK [22:06:48]MH_I2C_Read... [22:06:48]OFD Sender: No OFD packet to send [22:06:49]*** Cut start [22:06:49]*** Partial cut [22:06:49]*** CUTSNS_PIN = 1 [22:06:49]*** CUTSNS_PIN = 0 [22:06:49]*** Brake cut motor [22:06:49]Read from MH i2c: 01 [22:06:49]MH_I2C_Read... [22:06:49]*** Stop cut motor [22:06:49]*** Cut end [22:06:49]Read from MH i2c: 01 07 00 [22:06:49]MH_I2C_Read... [22:06:49]Read from MH i2c: 01 07 00 76 15 00 00 00 00 00 FF 0F A0 [22:06:49]process_action close_receipt done [22:06:49]requested_data is exist [22:06:49]produce_requested_data [22:06:49]requested_item fm.sn is exist - process it [22:06:49]wFMCommunicate request_size=4 [22:06:49]MH_SAM_APDU [22:06:49]CAPDU: 80 11 00 00 [22:06:49]Write to MH i2c: E2 08 00 77 15 80 11 00 00 00 00 00 00 06 [22:06:49]Write i2c OK [22:06:49]MH_I2C_Read... [22:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:49]Read from MH i2c: E2 [22:06:49]MH_I2C_Read... [22:06:49]Read from MH i2c: E2 17 00 [22:06:49]MH_I2C_Read... [22:06:49]Read from MH i2c: E2 17 00 77 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 59 [22:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:06:49]wFMCommunicate OK [22:06:49]requested_item fd.num is exist - process it [22:06:49]SAM_PROTO_GetFieldsCounters [22:06:49]wFMCommunicate request_size=4 [22:06:49]MH_SAM_APDU [22:06:49]CAPDU: 80 13 00 00 [22:06:49]Write to MH i2c: E2 08 00 78 15 80 13 00 00 00 00 00 00 09 [22:06:49]Write i2c OK [22:06:49]MH_I2C_Read... [22:06:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:49]Read from MH i2c: E2 [22:06:49]MH_I2C_Read... [22:06:49]Read from MH i2c: E2 62 00 [22:06:49]MH_I2C_Read... [22:06:49]Read from MH i2c: E2 62 00 78 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 10 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [22:06:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 10 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:49]wFMCommunicate OK [22:06:49]SAM_PROTO_GetFieldsCounters done [22:06:49]requested_item shift.num is exist - process it [22:06:49]requested_item shift.opened is exist - process it [22:06:49]req_shift_opened [22:06:49]FM_GetShiftState [22:06:49]SAM_PROTO_GetShiftState [22:06:49]wFMCommunicate request_size=4 [22:06:49]MH_SAM_APDU [22:06:49]CAPDU: 80 13 01 00 [22:06:49]Write to MH i2c: E2 08 00 79 15 80 13 01 00 00 00 00 00 0B [22:06:49]Write i2c OK [22:06:49]MH_I2C_Read... [22:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:50]Read from MH i2c: E2 [22:06:50]MH_I2C_Read... [22:06:50]Read from MH i2c: E2 0E 00 [22:06:50]MH_I2C_Read... [22:06:50]Read from MH i2c: E2 0E 00 79 15 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 5B [22:06:50]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [22:06:50]wFMCommunicate OK [22:06:50]SAM_PROTO_GetShiftState done [22:06:50]FM_GetShiftState done [22:06:50]req_shift_opened done [22:06:50]requested_item shift.open_date is exist - process it [22:06:50]req_shift_open_date [22:06:50]req_shift_open_date done [22:06:50]produce_requested_data done [22:06:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192784,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [22:06:50]process_action_free close_receipt [22:06:50]json_value_free [22:06:50]json_value_free done [22:06:50]process_json_proto returns [22:06:50]Send response to host [22:06:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192784,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [22:06:50]free response buf [22:06:50]execute_script done [22:06:50]execute_script returns [22:06:50]free content buf [22:06:50]Sock 9.Close socket [22:06:50]Sock 9.Thread stoped [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:11]accept exits with 8 [22:21:11]New connection [22:21:11]New thread 3066658148 created [22:21:11]Thread 3066801508 joined [22:21:11]Waiting for new connection... [22:21:11] Sock 8.Parse request [22:21:11]Sock 8.Check first char [22:21:11]Sock 8.First char is OK [22:21:11]request: POST /json_proto HTTP/1.0 [22:21:11]Method: POST [22:21:11]URL: /json_proto [22:21:11]Method is POST - this is cgi request [22:21:11]url: /json_proto [22:21:11]query_string will be loaded in cgi processing [22:21:11]execute_cgi json_proto POST (null) [22:21:11]execute_cgi path=json_proto method=POST [22:21:11]POST find Content-Length [22:21:11]Host: 172.17.63.131:8080 [22:21:11]Content-Length: 676 [22:21:11]Content-Type: application/json [22:21:11] [22:21:11]POST finish read [22:21:11]Found Content-Length = 676 [22:21:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:11]execute_script... [22:21:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:11]POST & json_proto [22:21:11]process_json_proto [22:21:11]json parsed OK: [22:21:11]protocol is kg_v1.0 [22:21:11]action value=close_receipt [22:21:11]process_action close_receipt [22:21:11]cmd_close_receipt [22:21:11]MH_GetDate [22:21:11]Write to MH i2c: F0 00 00 7A 15 7E [22:21:11]Write i2c OK [22:21:11]MH_I2C_Read... [22:21:11]Read from MH i2c: F0 [22:21:11]MH_I2C_Read... [22:21:11]Read from MH i2c: F0 09 00 [22:21:11]MH_I2C_Read... [22:21:11]Read from MH i2c: F0 09 00 7A 15 00 58 0E 20 67 22 05 6E 64 6D [22:21:11]GetLastDocTimeStamp 1730153207 [22:21:11]current date 1730154072 [22:21:11]FM_GetShiftState [22:21:11]SAM_PROTO_GetShiftState [22:21:11]wFMCommunicate request_size=4 [22:21:11]MH_SAM_APDU [22:21:11]CAPDU: 80 13 01 00 [22:21:11]Write to MH i2c: E2 08 00 7B 15 80 13 01 00 00 00 00 00 0D [22:21:11]Write i2c OK [22:21:11]MH_I2C_Read... [22:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:11]Read from MH i2c: E2 [22:21:11]MH_I2C_Read... [22:21:11]Read from MH i2c: E2 0E 00 [22:21:11]MH_I2C_Read... [22:21:11]Read from MH i2c: E2 0E 00 7B 15 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 5D [22:21:11]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [22:21:11]wFMCommunicate OK [22:21:11]SAM_PROTO_GetShiftState done [22:21:11]FM_GetShiftState done [22:21:11]opened in 1730075620 [22:21:11]opened+sec_in_day 1730162020 [22:21:11]quantity*price = 50041 [22:21:11]sum+1 = 50042 [22:21:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 333 28.10.2024 22:21 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192785 ФПД: 208327263095866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T222112&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192785&fm=208327263095866&tin=02508201610067®Number=0000000000091776&sum=50000 [22:21:12]StoreToDocumentArchive [22:21:12]shift 543 fd 192785 [22:21:12]save to /storage/0543/doc_00192785 [22:21:12]save last doc name /storage/0543/doc_00192785 to /storage/kkm_last_doc_name [22:21:12]save OK [22:21:12]Clear old archive folders... [22:21:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:21:12]tlvbuf is 00FB86F0 [22:21:12]SAM_PROTO_ClearQueue [22:21:12]wFMCommunicate request_size=4 [22:21:12]MH_SAM_APDU [22:21:12]CAPDU: 80 09 00 00 [22:21:12]Write to MH i2c: E2 08 00 88 15 80 09 00 00 00 00 00 00 0F [22:21:12]Write i2c OK [22:21:12]MH_I2C_Read... [22:21:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:12]Read from MH i2c: E2 [22:21:12]MH_I2C_Read... [22:21:12]Read from MH i2c: E2 03 00 [22:21:12]MH_I2C_Read... [22:21:12]Read from MH i2c: E2 03 00 88 15 00 90 00 11 [22:21:12]RAPDU: 90 00 [22:21:12]wFMCommunicate OK [22:21:12]SAM_PROTO_ClearQueue done [22:21:12]KKMCreateOFDPacket [22:21:12]OFDProtocolAddRootSTLVToBuf [22:21:12]FM_MakeSignedData [22:21:12]FM_MakeSignedData [22:21:12]SAM_PROTO_SignData [22:21:12]wFMCommunicate request_size=4 [22:21:12]MH_SAM_APDU [22:21:12]CAPDU: 80 0D 01 02 [22:21:12]Write to MH i2c: E2 08 00 89 15 80 0D 01 02 00 00 00 00 17 [22:21:12]Write i2c OK [22:21:12]MH_I2C_Read... [22:21:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:12]Read from MH i2c: E2 [22:21:12]MH_I2C_Read... [22:21:12]Read from MH i2c: E2 03 00 [22:21:12]MH_I2C_Read... [22:21:12]Read from MH i2c: E2 03 00 89 15 00 90 00 12 [22:21:12]RAPDU: 90 00 [22:21:12]wFMCommunicate OK [22:21:12]wFMCommunicate request_size=255 [22:21:12]MH_SAM_APDU [22:21:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 58 0E 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 F1 02 00 35 04 06 00 BD [22:21:12]Write to MH i2c: E2 02 01 8A 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 58 0E 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 F1 02 00 35 04 06 00 BD 00 00 C8 [22:21:12]Write i2c OK [22:21:12]MH_I2C_Read... [22:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:12]Read from MH i2c: E2 [22:21:12]MH_I2C_Read... [22:21:12]Read from MH i2c: E2 03 00 [22:21:12]MH_I2C_Read... [22:21:12]Read from MH i2c: E2 03 00 8A 15 00 90 00 13 [22:21:12]RAPDU: 90 00 [22:21:12]wFMCommunicate OK [22:21:12]wFMCommunicate request_size=10 [22:21:12]MH_SAM_APDU [22:21:12]CAPDU: 80 0D 02 02 05 78 F8 83 8C 3A [22:21:12]Write to MH i2c: E2 0D 00 8B 15 80 0D 02 02 05 00 78 F8 83 8C 3A 00 00 DD [22:21:12]Write i2c OK [22:21:12]MH_I2C_Read... [22:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:12]Read from MH i2c: E2 [22:21:12]MH_I2C_Read... [22:21:12]Read from MH i2c: E2 03 00 [22:21:12]MH_I2C_Read... [22:21:12]Read from MH i2c: E2 03 00 8B 15 00 90 00 14 [22:21:12]RAPDU: 90 00 [22:21:12]wFMCommunicate OK [22:21:12]wFMCommunicate request_size=4 [22:21:12]MH_SAM_APDU [22:21:12]CAPDU: 80 0D 03 02 [22:21:12]Write to MH i2c: E2 08 00 8C 15 80 0D 03 02 00 00 00 00 1C [22:21:12]Write i2c OK [22:21:12]MH_I2C_Read... [22:21:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:13]Read from MH i2c: E2 [22:21:13]MH_I2C_Read... [22:21:13]Read from MH i2c: E2 0B 00 [22:21:13]MH_I2C_Read... [22:21:13]Read from MH i2c: E2 0B 00 8C 15 00 57 E8 F4 F1 2E 3C 90 83 90 00 BE [22:21:13]RAPDU: 57 E8 F4 F1 2E 3C 90 83 90 00 [22:21:13]wFMCommunicate OK [22:21:13]SAM_PROTO_SignData done [22:21:13]FM_MakeSignedData done [22:21:13]CreateOFDProtocolMessage [22:21:13]wFMCommunicate request_size=4 [22:21:13]MH_SAM_APDU [22:21:13]CAPDU: 80 11 00 00 [22:21:13]Write to MH i2c: E2 08 00 8D 15 80 11 00 00 00 00 00 00 1C [22:21:13]Write i2c OK [22:21:13]MH_I2C_Read... [22:21:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:13]Read from MH i2c: E2 [22:21:13]MH_I2C_Read... [22:21:13]Read from MH i2c: E2 17 00 [22:21:13]MH_I2C_Read... [22:21:13]Read from MH i2c: E2 17 00 8D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6F [22:21:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:21:13]wFMCommunicate OK [22:21:13]CreateOFDProtocolMessage done [22:21:13]OFDSenderStorePacket 192785 [22:21:13]StoreOFDPacket docnum=192785 [22:21:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EE 8F 07 01 BF B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 58 0E 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 F1 02 00 35 04 06 00 BD 78 F8 83 8C 3A 57 E8 F4 F1 2E 3C 90 83 [22:21:13]CheckFolder [22:21:13]dirname=/storage/ofd_packets [22:21:13]CheckFolder done [22:21:13]ProducePacketName [22:21:13]name=ofd_packets/00192785 [22:21:13]NVStorageSaveData ofd_packets/00192785 [22:21:13]File name is /storage/ofd_packets/00192785 [22:21:13]Write 301 bytes [22:21:13]NVStorageSaveData done [22:21:13]OFDSenderStorePacket done [22:21:13]KKMCreateOFDPacket done [22:21:13]NVStorageSaveData kkm_last_timestamp [22:21:13]File name is /storage/kkm_last_timestamp [22:21:13]Write 4 bytes [22:21:13]NVStorageSaveData done [22:21:13]ExternCall_PrintAddStr [22:21:13]wPrintStart [22:21:13]Write to MH i2c: 01 00 00 8E 15 A3 [22:21:13]Write i2c OK [22:21:13]MH_I2C_Read... [22:21:13]Read from MH i2c: 01 [22:21:13]MH_I2C_Read... [22:21:13]Read from MH i2c: 01 07 00 [22:21:13]MH_I2C_Read... [22:21:13]Read from MH i2c: 01 07 00 8E 15 00 00 00 00 00 FF 0F B8 [22:21:13]RasterBufferAndPrint [22:21:13]line Счет N : (1)32116 [22:21:13]line ИНН: 02508201610067 [22:21:13]line Контрольно-Кассовый Чек [22:21:13]line ПРОДАЖА [22:21:13]line ТРК (МРК, ГНК) : 21 [22:21:13]line Товар: 2710124130 [22:21:13]line Аи-92-К-5 [22:21:13]line 7.480 * 66.90 [22:21:13]line = 500.41 [22:21:13]line НДС 12% НСП 1% [22:21:13]line > о реализуемом товаре [22:21:13]line ОКРУГЛЕНИЕ: -0.41 [22:21:13]line ИТОГО: 500.00 [22:21:13]line Внесено: 500.00 [22:21:13]line СДАЧА: 0.00 [22:21:13]line НСП 1% : 4.43 [22:21:13]line НДС 12% : 53.14 [22:21:13]line Наличными: 500.00 [22:21:13]line Безнал.: 0.00 [22:21:13]line Место: АЗС № 170 "Партнер Нефть" [22:21:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:21:13]line СНО: Общий режим [22:21:13]line Чек 333 28.10.2024 22:21 [22:21:13]line Смена: 543 ФФД: 1.0 [22:21:13]line ЗНМ: 0300000110 [22:21:13]line РНМ: 0000000000091776 [22:21:13]line Версия ККМ: 001 [22:21:13]line ФМ: 0000000000871754 [22:21:13]line ФД: 192785 [22:21:13]line ФПД: 208327263095866 [22:21:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T222112&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192785&fm=208327263095866&tin=02508201610067®Number=0000000000091776&sum=50000 [22:21:13]OFD Sender: Processing packet 192785 [packets to send 75, broken 74] [22:21:13]ProducePacketName [22:21:13]name=ofd_packets/00192785 [22:21:13]OFD Sender: To server: pG, [22:21:13]CommunicateWithHost lk.salyk.kg:30040 [22:21:13]ConnectInit lk.salyk.kg [22:21:13]written 0, free lines is 4095 [22:21:13]Connected sock=10 [22:21:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EE 8F 07 01 BF B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 58 0E 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 F1 02 00 35 04 06 00 BD 78 F8 83 8C 3A 57 E8 F4 F1 2E 3C 90 83 [22:21:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 25 D8 47 00 86 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 F1 02 00 F4 03 04 00 1B B3 1F 67 B6 04 01 00 00 38 4C 62 6D 60 F8 44 32 [22:21:13]CommunicateWithHost err = 0 [22:21:13]CheckOFDResponse [22:21:13]1017 (14) - 77093643461234 [22:21:13]1041 (16) - 0000000000871754 [22:21:13]1040 (4) - 192785 [22:21:13]1012 (4) - 28.10.2024 15:51 [22:21:13]1206 (1) - 0 [22:21:13]OFD Sender: Remove packet 192785 [22:21:13]ProducePacketName [22:21:13]name=ofd_packets/00192785 [22:21:13]NVStorageDeleteData [22:21:13]Write to MH i2c: 01 00 00 B9 15 CE [22:21:13]Write i2c OK [22:21:13]MH_I2C_Read... [22:21:13]Read from MH i2c: 01 [22:21:13]MH_I2C_Read... [22:21:13]Read from MH i2c: 01 07 00 [22:21:13]MH_I2C_Read... [22:21:13]Read from MH i2c: 01 07 00 B9 15 00 00 00 00 00 B8 0C 99 [22:21:13]RasterBufferAndPrint [22:21:13]line [22:21:13]line [22:21:13]line [22:21:13]line [22:21:13]line [22:21:13]written 0, free lines is 3263 [22:21:13]MH_Cut [22:21:13]Write to MH i2c: D1 01 00 C0 15 01 A7 [22:21:13]Write i2c OK [22:21:13]MH_I2C_Read... [22:21:13]Read from MH i2c: D1 [22:21:13]MH_I2C_Read... [22:21:13]Read from MH i2c: D1 01 00 [22:21:13]MH_I2C_Read... [22:21:13]Read from MH i2c: D1 01 00 C0 15 00 A6 [22:21:13]Write to MH i2c: 01 00 00 C1 15 D6 [22:21:13]Write i2c OK [22:21:13]MH_I2C_Read... [22:21:14]OFD Sender: No OFD packet to send [22:21:14]*** Cut start [22:21:14]*** Partial cut [22:21:14]*** CUTSNS_PIN = 1 [22:21:14]*** CUTSNS_PIN = 0 [22:21:15]*** Brake cut motor [22:21:15]Read from MH i2c: 01 [22:21:15]MH_I2C_Read... [22:21:15]*** Stop cut motor [22:21:15]*** Cut end [22:21:15]Read from MH i2c: 01 07 00 [22:21:15]MH_I2C_Read... [22:21:15]Read from MH i2c: 01 07 00 C1 15 00 00 00 00 00 FF 0F EB [22:21:15]process_action close_receipt done [22:21:15]requested_data is exist [22:21:15]produce_requested_data [22:21:15]requested_item fm.sn is exist - process it [22:21:15]wFMCommunicate request_size=4 [22:21:15]MH_SAM_APDU [22:21:15]CAPDU: 80 11 00 00 [22:21:15]Write to MH i2c: E2 08 00 C2 15 80 11 00 00 00 00 00 00 51 [22:21:15]Write i2c OK [22:21:15]MH_I2C_Read... [22:21:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:15]Read from MH i2c: E2 [22:21:15]MH_I2C_Read... [22:21:15]Read from MH i2c: E2 17 00 [22:21:15]MH_I2C_Read... [22:21:15]Read from MH i2c: E2 17 00 C2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A4 [22:21:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:21:15]wFMCommunicate OK [22:21:15]requested_item fd.num is exist - process it [22:21:15]SAM_PROTO_GetFieldsCounters [22:21:15]wFMCommunicate request_size=4 [22:21:15]MH_SAM_APDU [22:21:15]CAPDU: 80 13 00 00 [22:21:15]Write to MH i2c: E2 08 00 C3 15 80 13 00 00 00 00 00 00 54 [22:21:15]Write i2c OK [22:21:15]MH_I2C_Read... [22:21:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:15]Read from MH i2c: E2 [22:21:15]MH_I2C_Read... [22:21:15]Read from MH i2c: E2 62 00 [22:21:15]MH_I2C_Read... [22:21:15]Read from MH i2c: E2 62 00 C3 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 11 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [22:21:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 11 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:15]wFMCommunicate OK [22:21:15]SAM_PROTO_GetFieldsCounters done [22:21:15]requested_item shift.num is exist - process it [22:21:15]requested_item shift.opened is exist - process it [22:21:15]req_shift_opened [22:21:15]FM_GetShiftState [22:21:15]SAM_PROTO_GetShiftState [22:21:15]wFMCommunicate request_size=4 [22:21:15]MH_SAM_APDU [22:21:15]CAPDU: 80 13 01 00 [22:21:15]Write to MH i2c: E2 08 00 C4 15 80 13 01 00 00 00 00 00 56 [22:21:15]Write i2c OK [22:21:15]MH_I2C_Read... [22:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:15]Read from MH i2c: E2 [22:21:15]MH_I2C_Read... [22:21:15]Read from MH i2c: E2 0E 00 [22:21:15]MH_I2C_Read... [22:21:15]Read from MH i2c: E2 0E 00 C4 15 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A6 [22:21:15]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [22:21:15]wFMCommunicate OK [22:21:15]SAM_PROTO_GetShiftState done [22:21:15]FM_GetShiftState done [22:21:15]req_shift_opened done [22:21:15]requested_item shift.open_date is exist - process it [22:21:15]req_shift_open_date [22:21:15]req_shift_open_date done [22:21:15]produce_requested_data done [22:21:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192785,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [22:21:15]process_action_free close_receipt [22:21:15]json_value_free [22:21:15]json_value_free done [22:21:15]process_json_proto returns [22:21:15]Send response to host [22:21:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192785,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [22:21:15]free response buf [22:21:15]execute_script done [22:21:15]execute_script returns [22:21:15]free content buf [22:21:15]Sock 8.Close socket [22:21:15]Sock 8.Thread stoped [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:34]accept exits with 9 [22:36:34]New connection [22:36:34]New thread 3066801508 created [22:36:34]Thread 3066658148 joined [22:36:34]Waiting for new connection... [22:36:34] Sock 9.Parse request [22:36:34]Sock 9.Check first char [22:36:34]Sock 9.First char is OK [22:36:34]request: POST /json_proto HTTP/1.0 [22:36:34]Method: POST [22:36:34]URL: /json_proto [22:36:34]Method is POST - this is cgi request [22:36:34]url: /json_proto [22:36:34]query_string will be loaded in cgi processing [22:36:34]execute_cgi json_proto POST (null) [22:36:34]execute_cgi path=json_proto method=POST [22:36:34]POST find Content-Length [22:36:34]Host: 172.17.63.131:8080 [22:36:34]Content-Length: 676 [22:36:34]Content-Type: application/json [22:36:34] [22:36:34]POST finish read [22:36:34]Found Content-Length = 676 [22:36:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:34]execute_script... [22:36: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)32117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:34]POST & json_proto [22:36:34]process_json_proto [22:36:34]json parsed OK: [22:36:34]protocol is kg_v1.0 [22:36:34]action value=close_receipt [22:36:34]process_action close_receipt [22:36:34]cmd_close_receipt [22:36:34]MH_GetDate [22:36:34]Write to MH i2c: F0 00 00 C5 15 C9 [22:36:34]Write i2c OK [22:36:34]MH_I2C_Read... [22:36:34]Read from MH i2c: F0 [22:36:34]MH_I2C_Read... [22:36:34]Read from MH i2c: F0 09 00 [22:36:34]MH_I2C_Read... [22:36:34]Read from MH i2c: F0 09 00 C5 15 00 F4 11 20 67 22 05 6E 64 57 [22:36:34]GetLastDocTimeStamp 1730154072 [22:36:34]current date 1730154996 [22:36:34]FM_GetShiftState [22:36:34]SAM_PROTO_GetShiftState [22:36:34]wFMCommunicate request_size=4 [22:36:34]MH_SAM_APDU [22:36:34]CAPDU: 80 13 01 00 [22:36:34]Write to MH i2c: E2 08 00 C6 15 80 13 01 00 00 00 00 00 58 [22:36:34]Write i2c OK [22:36:34]MH_I2C_Read... [22:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:34]Read from MH i2c: E2 [22:36:34]MH_I2C_Read... [22:36:34]Read from MH i2c: E2 0E 00 [22:36:34]MH_I2C_Read... [22:36:34]Read from MH i2c: E2 0E 00 C6 15 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 A8 [22:36:34]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [22:36:34]wFMCommunicate OK [22:36:34]SAM_PROTO_GetShiftState done [22:36:34]FM_GetShiftState done [22:36:34]opened in 1730075620 [22:36:34]opened+sec_in_day 1730162020 [22:36:34]quantity*price = 15052 [22:36:34]sum+1 = 15054 [22:36:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 334 28.10.2024 22:36 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192786 ФПД: 216477603737337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T223636&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192786&fm=216477603737337&tin=02508201610067®Number=0000000000091776&sum=15000 [22:36:35]StoreToDocumentArchive [22:36:35]shift 543 fd 192786 [22:36:35]save to /storage/0543/doc_00192786 [22:36:35]save last doc name /storage/0543/doc_00192786 to /storage/kkm_last_doc_name [22:36:35]save OK [22:36:35]Clear old archive folders... [22:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:36:35]tlvbuf is 00FAC8F0 [22:36:35]SAM_PROTO_ClearQueue [22:36:35]wFMCommunicate request_size=4 [22:36:35]MH_SAM_APDU [22:36:35]CAPDU: 80 09 00 00 [22:36:35]Write to MH i2c: E2 08 00 D3 15 80 09 00 00 00 00 00 00 5A [22:36:35]Write i2c OK [22:36:35]MH_I2C_Read... [22:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:35]Read from MH i2c: E2 [22:36:35]MH_I2C_Read... [22:36:35]Read from MH i2c: E2 03 00 [22:36:35]MH_I2C_Read... [22:36:35]Read from MH i2c: E2 03 00 D3 15 00 90 00 5C [22:36:35]RAPDU: 90 00 [22:36:35]wFMCommunicate OK [22:36:35]SAM_PROTO_ClearQueue done [22:36:35]KKMCreateOFDPacket [22:36:35]OFDProtocolAddRootSTLVToBuf [22:36:35]FM_MakeSignedData [22:36:35]FM_MakeSignedData [22:36:35]SAM_PROTO_SignData [22:36:35]wFMCommunicate request_size=4 [22:36:35]MH_SAM_APDU [22:36:35]CAPDU: 80 0D 01 02 [22:36:35]Write to MH i2c: E2 08 00 D4 15 80 0D 01 02 00 00 00 00 62 [22:36:35]Write i2c OK [22:36:35]MH_I2C_Read... [22:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:35]Read from MH i2c: E2 [22:36:35]MH_I2C_Read... [22:36:35]Read from MH i2c: E2 03 00 [22:36:35]MH_I2C_Read... [22:36:35]Read from MH i2c: E2 03 00 D4 15 00 90 00 5D [22:36:35]RAPDU: 90 00 [22:36:35]wFMCommunicate OK [22:36:35]wFMCommunicate request_size=255 [22:36:35]MH_SAM_APDU [22:36: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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 F4 11 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 F1 02 00 35 04 06 00 C4 [22:36:35]Write to MH i2c: E2 02 01 D5 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 F4 11 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 F1 02 00 35 04 06 00 C4 00 00 B8 [22:36:35]Write i2c OK [22:36:35]MH_I2C_Read... [22:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:36]Read from MH i2c: E2 [22:36:36]MH_I2C_Read... [22:36:36]Read from MH i2c: E2 03 00 [22:36:36]MH_I2C_Read... [22:36:36]Read from MH i2c: E2 03 00 D5 15 00 90 00 5E [22:36:36]RAPDU: 90 00 [22:36:36]wFMCommunicate OK [22:36:36]wFMCommunicate request_size=10 [22:36:36]MH_SAM_APDU [22:36:36]CAPDU: 80 0D 02 02 05 E2 9E AC 2E F9 [22:36:36]Write to MH i2c: E2 0D 00 D6 15 80 0D 02 02 05 00 E2 9E AC 2E F9 00 00 C2 [22:36:36]Write i2c OK [22:36:36]MH_I2C_Read... [22:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:36]Read from MH i2c: E2 [22:36:36]MH_I2C_Read... [22:36:36]Read from MH i2c: E2 03 00 [22:36:36]MH_I2C_Read... [22:36:36]Read from MH i2c: E2 03 00 D6 15 00 90 00 5F [22:36:36]RAPDU: 90 00 [22:36:36]wFMCommunicate OK [22:36:36]wFMCommunicate request_size=4 [22:36:36]MH_SAM_APDU [22:36:36]CAPDU: 80 0D 03 02 [22:36:36]Write to MH i2c: E2 08 00 D7 15 80 0D 03 02 00 00 00 00 67 [22:36:36]Write i2c OK [22:36:36]MH_I2C_Read... [22:36:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:36]Read from MH i2c: E2 [22:36:36]MH_I2C_Read... [22:36:36]Read from MH i2c: E2 0B 00 [22:36:36]MH_I2C_Read... [22:36:36]Read from MH i2c: E2 0B 00 D7 15 00 51 57 C4 2A 4E 17 F7 0C 90 00 66 [22:36:36]RAPDU: 51 57 C4 2A 4E 17 F7 0C 90 00 [22:36:36]wFMCommunicate OK [22:36:36]SAM_PROTO_SignData done [22:36:36]FM_MakeSignedData done [22:36:36]CreateOFDProtocolMessage [22:36:36]wFMCommunicate request_size=4 [22:36:36]MH_SAM_APDU [22:36:36]CAPDU: 80 11 00 00 [22:36:36]Write to MH i2c: E2 08 00 D8 15 80 11 00 00 00 00 00 00 67 [22:36:36]Write i2c OK [22:36:36]MH_I2C_Read... [22:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:36]Read from MH i2c: E2 [22:36:36]MH_I2C_Read... [22:36:36]Read from MH i2c: E2 17 00 [22:36:36]MH_I2C_Read... [22:36:36]Read from MH i2c: E2 17 00 D8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BA [22:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:36:36]wFMCommunicate OK [22:36:36]CreateOFDProtocolMessage done [22:36:36]OFDSenderStorePacket 192786 [22:36:36]StoreOFDPacket docnum=192786 [22:36:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 75 07 01 30 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 F4 11 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 F1 02 00 35 04 06 00 C4 E2 9E AC 2E F9 51 57 C4 2A 4E 17 F7 0C [22:36:36]CheckFolder [22:36:36]dirname=/storage/ofd_packets [22:36:36]CheckFolder done [22:36:36]ProducePacketName [22:36:36]name=ofd_packets/00192786 [22:36:36]NVStorageSaveData ofd_packets/00192786 [22:36:36]File name is /storage/ofd_packets/00192786 [22:36:36]Write 301 bytes [22:36:36]NVStorageSaveData done [22:36:36]OFDSenderStorePacket done [22:36:36]KKMCreateOFDPacket done [22:36:36]NVStorageSaveData kkm_last_timestamp [22:36:36]File name is /storage/kkm_last_timestamp [22:36:36]Write 4 bytes [22:36:36]NVStorageSaveData done [22:36:36]ExternCall_PrintAddStr [22:36:36]wPrintStart [22:36:36]Write to MH i2c: 01 00 00 D9 15 EE [22:36:36]Write i2c OK [22:36:36]MH_I2C_Read... [22:36:36]Read from MH i2c: 01 [22:36:36]MH_I2C_Read... [22:36:36]Read from MH i2c: 01 07 00 [22:36:36]MH_I2C_Read... [22:36:36]Read from MH i2c: 01 07 00 D9 15 00 00 00 00 00 FF 0F 03 [22:36:36]RasterBufferAndPrint [22:36:36]line Счет N : (1)32117 [22:36:36]line ИНН: 02508201610067 [22:36:36]line Контрольно-Кассовый Чек [22:36:36]line ПРОДАЖА [22:36:36]line ТРК (МРК, ГНК) : 12 [22:36:36]line Товар: 2710124130 [22:36:36]line Аи-92-К-5 [22:36:36]line 2.250 * 66.90 [22:36:36]line = 150.53 [22:36:36]line НДС 12% НСП 1% [22:36:36]line > о реализуемом товаре [22:36:36]line ОКРУГЛЕНИЕ: -0.53 [22:36:36]line ИТОГО: 150.00 [22:36:36]line Внесено: 150.00 [22:36:36]line СДАЧА: 0.00 [22:36:36]line НСП 1% : 1.33 [22:36:36]line НДС 12% : 15.98 [22:36:36]line Наличными: 150.00 [22:36:36]line Безнал.: 0.00 [22:36:36]line Место: АЗС № 170 "Партнер Нефть" [22:36:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:36:36]line СНО: Общий режим [22:36:36]line Чек 334 28.10.2024 22:36 [22:36:36]line Смена: 543 ФФД: 1.0 [22:36:36]line ЗНМ: 0300000110 [22:36:36]line РНМ: 0000000000091776 [22:36:36]line Версия ККМ: 001 [22:36:36]line ФМ: 0000000000871754 [22:36:36]line ФД: 192786 [22:36:36]line ФПД: 216477603737337 [22:36:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T223636&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192786&fm=216477603737337&tin=02508201610067®Number=0000000000091776&sum=15000 [22:36:36]OFD Sender: Processing packet 192786 [packets to send 75, broken 74] [22:36:36]ProducePacketName [22:36:36]name=ofd_packets/00192786 [22:36:36]OFD Sender: To server: pG, [22:36:36]CommunicateWithHost lk.salyk.kg:30040 [22:36:36]ConnectInit lk.salyk.kg [22:36:36]written 0, free lines is 4095 [22:36:36]Connected sock=10 [22:36:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 75 07 01 30 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 F4 11 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 F1 02 00 35 04 06 00 C4 E2 9E AC 2E F9 51 57 C4 2A 4E 17 F7 0C [22:36:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 58 1E 47 00 20 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 31 37 35 34 10 04 04 00 12 F1 02 00 F4 03 04 00 B6 B6 1F 67 B6 04 01 00 00 F2 CA 6D 99 ED C3 87 EC [22:36:37]CommunicateWithHost err = 0 [22:36:37]CheckOFDResponse [22:36:37]1017 (14) - 77093643461234 [22:36:37]1041 (16) - 0000000000871754 [22:36:37]1040 (4) - 192786 [22:36:37]1012 (4) - 28.10.2024 16:07 [22:36:37]1206 (1) - 0 [22:36:37]OFD Sender: Remove packet 192786 [22:36:37]ProducePacketName [22:36:37]name=ofd_packets/00192786 [22:36:37]NVStorageDeleteData [22:36:37]Write to MH i2c: 01 00 00 04 16 1A [22:36:37]Write i2c OK [22:36:37]MH_I2C_Read... [22:36:37]Read from MH i2c: 01 [22:36:37]MH_I2C_Read... [22:36:37]Read from MH i2c: 01 07 00 [22:36:37]MH_I2C_Read... [22:36:37]Read from MH i2c: 01 07 00 04 16 00 00 00 00 00 AB 0C D8 [22:36:37]RasterBufferAndPrint [22:36:37]line [22:36:37]line [22:36:37]line [22:36:37]line [22:36:37]line [22:36:37]written 0, free lines is 3250 [22:36:37]MH_Cut [22:36:37]Write to MH i2c: D1 01 00 0B 16 01 F3 [22:36:37]Write i2c OK [22:36:37]MH_I2C_Read... [22:36:37]Read from MH i2c: D1 [22:36:37]MH_I2C_Read... [22:36:37]Read from MH i2c: D1 01 00 [22:36:37]MH_I2C_Read... [22:36:37]Read from MH i2c: D1 01 00 0B 16 00 F2 [22:36:37]Write to MH i2c: 01 00 00 0C 16 22 [22:36:37]Write i2c OK [22:36:37]MH_I2C_Read... [22:36:37]OFD Sender: No OFD packet to send [22:36:38]*** Cut start [22:36:38]*** Partial cut [22:36:38]*** CUTSNS_PIN = 1 [22:36:38]*** CUTSNS_PIN = 0 [22:36:38]*** Brake cut motor [22:36:38]Read from MH i2c: 01 [22:36:38]MH_I2C_Read... [22:36:38]*** Stop cut motor [22:36:38]*** Cut end [22:36:38]Read from MH i2c: 01 07 00 [22:36:38]MH_I2C_Read... [22:36:38]Read from MH i2c: 01 07 00 0C 16 00 00 00 00 00 FF 0F 37 [22:36:38]process_action close_receipt done [22:36:38]requested_data is exist [22:36:38]produce_requested_data [22:36:38]requested_item fm.sn is exist - process it [22:36:38]wFMCommunicate request_size=4 [22:36:38]MH_SAM_APDU [22:36:38]CAPDU: 80 11 00 00 [22:36:38]Write to MH i2c: E2 08 00 0D 16 80 11 00 00 00 00 00 00 9D [22:36:38]Write i2c OK [22:36:38]MH_I2C_Read... [22:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:38]Read from MH i2c: E2 [22:36:38]MH_I2C_Read... [22:36:38]Read from MH i2c: E2 17 00 [22:36:38]MH_I2C_Read... [22:36:38]Read from MH i2c: E2 17 00 0D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F0 [22:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:36:38]wFMCommunicate OK [22:36:38]requested_item fd.num is exist - process it [22:36:38]SAM_PROTO_GetFieldsCounters [22:36:38]wFMCommunicate request_size=4 [22:36:38]MH_SAM_APDU [22:36:38]CAPDU: 80 13 00 00 [22:36:38]Write to MH i2c: E2 08 00 0E 16 80 13 00 00 00 00 00 00 A0 [22:36:38]Write i2c OK [22:36:38]MH_I2C_Read... [22:36:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:38]Read from MH i2c: E2 [22:36:38]MH_I2C_Read... [22:36:38]Read from MH i2c: E2 62 00 [22:36:38]MH_I2C_Read... [22:36:38]Read from MH i2c: E2 62 00 0E 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 12 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [22:36:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 12 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:36:38]wFMCommunicate OK [22:36:38]SAM_PROTO_GetFieldsCounters done [22:36:38]requested_item shift.num is exist - process it [22:36:38]requested_item shift.opened is exist - process it [22:36:38]req_shift_opened [22:36:38]FM_GetShiftState [22:36:38]SAM_PROTO_GetShiftState [22:36:38]wFMCommunicate request_size=4 [22:36:38]MH_SAM_APDU [22:36:38]CAPDU: 80 13 01 00 [22:36:38]Write to MH i2c: E2 08 00 0F 16 80 13 01 00 00 00 00 00 A2 [22:36:38]Write i2c OK [22:36:38]MH_I2C_Read... [22:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:38]Read from MH i2c: E2 [22:36:38]MH_I2C_Read... [22:36:38]Read from MH i2c: E2 0E 00 [22:36:38]MH_I2C_Read... [22:36:38]Read from MH i2c: E2 0E 00 0F 16 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F2 [22:36:38]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [22:36:38]wFMCommunicate OK [22:36:38]SAM_PROTO_GetShiftState done [22:36:38]FM_GetShiftState done [22:36:38]req_shift_opened done [22:36:38]requested_item shift.open_date is exist - process it [22:36:38]req_shift_open_date [22:36:38]req_shift_open_date done [22:36:38]produce_requested_data done [22:36:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192786,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [22:36:38]process_action_free close_receipt [22:36:38]json_value_free [22:36:38]json_value_free done [22:36:38]process_json_proto returns [22:36:38]Send response to host [22:36:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192786,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [22:36:38]free response buf [22:36:38]execute_script done [22:36:38]execute_script returns [22:36:38]free content buf [22:36:38]Sock 9.Close socket [22:36:38]Sock 9.Thread stoped [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:41:02]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:27]OFD Sender: No OFD packet to send [22:41:32]OFD Sender: No OFD packet to send [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]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:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]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:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [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:45]accept exits with 8 [22:53:45]New connection [22:53:45]New thread 3066658148 created [22:53:45]Thread 3066801508 joined [22:53:45]Waiting for new connection... [22:53:45] Sock 8.Parse request [22:53:45]Sock 8.Check first char [22:53:45]Sock 8.First char is OK [22:53:45]request: POST /json_proto HTTP/1.0 [22:53:45]Method: POST [22:53:45]URL: /json_proto [22:53:45]Method is POST - this is cgi request [22:53:45]url: /json_proto [22:53:45]query_string will be loaded in cgi processing [22:53:45]execute_cgi json_proto POST (null) [22:53:45]execute_cgi path=json_proto method=POST [22:53:45]POST find Content-Length [22:53:45]Host: 172.17.63.131:8080 [22:53:45]Content-Length: 862 [22:53:45]Content-Type: application/json [22:53:45] [22:53:45]POST finish read [22:53:45]Found Content-Length = 862 [22:53:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:45]execute_script... [22:53:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:45]POST & json_proto [22:53:45]process_json_proto [22:53:45]json parsed OK: [22:53:45]protocol is kg_v1.0 [22:53:45]action value=close_receipt [22:53:45]process_action close_receipt [22:53:45]cmd_close_receipt [22:53:45]MH_GetDate [22:53:45]Write to MH i2c: F0 00 00 10 16 15 [22:53:45]Write i2c OK [22:53:45]MH_I2C_Read... [22:53:45]Read from MH i2c: F0 [22:53:45]MH_I2C_Read... [22:53:45]Read from MH i2c: F0 09 00 [22:53:45]MH_I2C_Read... [22:53:45]Read from MH i2c: F0 09 00 10 16 00 FB 15 20 67 22 05 6E 64 AE [22:53:45]GetLastDocTimeStamp 1730154996 [22:53:45]current date 1730156027 [22:53:45]FM_GetShiftState [22:53:45]SAM_PROTO_GetShiftState [22:53:45]wFMCommunicate request_size=4 [22:53:45]MH_SAM_APDU [22:53:45]CAPDU: 80 13 01 00 [22:53:45]Write to MH i2c: E2 08 00 11 16 80 13 01 00 00 00 00 00 A4 [22:53:45]Write i2c OK [22:53:45]MH_I2C_Read... [22:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:45]Read from MH i2c: E2 [22:53:45]MH_I2C_Read... [22:53:45]Read from MH i2c: E2 0E 00 [22:53:45]MH_I2C_Read... [22:53:45]Read from MH i2c: E2 0E 00 11 16 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 F4 [22:53:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [22:53:45]wFMCommunicate OK [22:53:45]SAM_PROTO_GetShiftState done [22:53:45]FM_GetShiftState done [22:53:45]opened in 1730075620 [22:53:45]opened+sec_in_day 1730162020 [22:53:45]quantity*price = 30038 [22:53:45]sum+1 = 30039 [22:53:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 335 28.10.2024 22:53 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192787 ФПД: 155137885769884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T225347&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192787&fm=155137885769884&tin=02508201610067®Number=0000000000091776&sum=30038 [22:53:46]StoreToDocumentArchive [22:53:46]shift 543 fd 192787 [22:53:46]save to /storage/0543/doc_00192787 [22:53:46]save last doc name /storage/0543/doc_00192787 to /storage/kkm_last_doc_name [22:53:46]save OK [22:53:46]Clear old archive folders... [22:53:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:53:46]tlvbuf is 00ECB3A0 [22:53:46]SAM_PROTO_ClearQueue [22:53:46]wFMCommunicate request_size=4 [22:53:46]MH_SAM_APDU [22:53:46]CAPDU: 80 09 00 00 [22:53:46]Write to MH i2c: E2 08 00 1E 16 80 09 00 00 00 00 00 00 A6 [22:53:46]Write i2c OK [22:53:46]MH_I2C_Read... [22:53:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:46]Read from MH i2c: E2 [22:53:46]MH_I2C_Read... [22:53:46]Read from MH i2c: E2 03 00 [22:53:46]MH_I2C_Read... [22:53:46]Read from MH i2c: E2 03 00 1E 16 00 90 00 A8 [22:53:46]RAPDU: 90 00 [22:53:46]wFMCommunicate OK [22:53:46]SAM_PROTO_ClearQueue done [22:53:46]KKMCreateOFDPacket [22:53:46]OFDProtocolAddRootSTLVToBuf [22:53:46]FM_MakeSignedData [22:53:46]FM_MakeSignedData [22:53:46]SAM_PROTO_SignData [22:53:46]wFMCommunicate request_size=4 [22:53:46]MH_SAM_APDU [22:53:46]CAPDU: 80 0D 01 02 [22:53:46]Write to MH i2c: E2 08 00 1F 16 80 0D 01 02 00 00 00 00 AE [22:53:46]Write i2c OK [22:53:46]MH_I2C_Read... [22:53:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:46]Read from MH i2c: E2 [22:53:46]MH_I2C_Read... [22:53:46]Read from MH i2c: E2 03 00 [22:53:46]MH_I2C_Read... [22:53:46]Read from MH i2c: E2 03 00 1F 16 00 90 00 A9 [22:53:46]RAPDU: 90 00 [22:53:46]wFMCommunicate OK [22:53:46]wFMCommunicate request_size=255 [22:53:46]MH_SAM_APDU [22:53:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 FB 15 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 F1 02 00 35 04 06 00 8D [22:53:46]Write to MH i2c: E2 02 01 20 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 FB 15 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 F1 02 00 35 04 06 00 8D 00 00 1D [22:53:46]Write i2c OK [22:53:46]MH_I2C_Read... [22:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:47]Read from MH i2c: E2 [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: E2 03 00 [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: E2 03 00 20 16 00 90 00 AA [22:53:47]RAPDU: 90 00 [22:53:47]wFMCommunicate OK [22:53:47]wFMCommunicate request_size=10 [22:53:47]MH_SAM_APDU [22:53:47]CAPDU: 80 0D 02 02 05 18 DA 92 90 9C [22:53:47]Write to MH i2c: E2 0D 00 21 16 80 0D 02 02 05 00 18 DA 92 90 9C 00 00 6B [22:53:47]Write i2c OK [22:53:47]MH_I2C_Read... [22:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:47]Read from MH i2c: E2 [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: E2 03 00 [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: E2 03 00 21 16 00 90 00 AB [22:53:47]RAPDU: 90 00 [22:53:47]wFMCommunicate OK [22:53:47]wFMCommunicate request_size=4 [22:53:47]MH_SAM_APDU [22:53:47]CAPDU: 80 0D 03 02 [22:53:47]Write to MH i2c: E2 08 00 22 16 80 0D 03 02 00 00 00 00 B3 [22:53:47]Write i2c OK [22:53:47]MH_I2C_Read... [22:53:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:47]Read from MH i2c: E2 [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: E2 0B 00 [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: E2 0B 00 22 16 00 50 A6 38 34 E1 FF DA F3 90 00 C3 [22:53:47]RAPDU: 50 A6 38 34 E1 FF DA F3 90 00 [22:53:47]wFMCommunicate OK [22:53:47]SAM_PROTO_SignData done [22:53:47]FM_MakeSignedData done [22:53:47]CreateOFDProtocolMessage [22:53:47]wFMCommunicate request_size=4 [22:53:47]MH_SAM_APDU [22:53:47]CAPDU: 80 11 00 00 [22:53:47]Write to MH i2c: E2 08 00 23 16 80 11 00 00 00 00 00 00 B3 [22:53:47]Write i2c OK [22:53:47]MH_I2C_Read... [22:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:47]Read from MH i2c: E2 [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: E2 17 00 [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: E2 17 00 23 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 06 [22:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:53:47]wFMCommunicate OK [22:53:47]CreateOFDProtocolMessage done [22:53:47]OFDSenderStorePacket 192787 [22:53:47]StoreOFDPacket docnum=192787 [22:53:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0A 85 07 01 C8 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 FB 15 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 F1 02 00 35 04 06 00 8D 18 DA 92 90 9C 50 A6 38 34 E1 FF DA F3 [22:53:47]CheckFolder [22:53:47]dirname=/storage/ofd_packets [22:53:47]CheckFolder done [22:53:47]ProducePacketName [22:53:47]name=ofd_packets/00192787 [22:53:47]NVStorageSaveData ofd_packets/00192787 [22:53:47]File name is /storage/ofd_packets/00192787 [22:53:47]Write 301 bytes [22:53:47]NVStorageSaveData done [22:53:47]OFDSenderStorePacket done [22:53:47]KKMCreateOFDPacket done [22:53:47]NVStorageSaveData kkm_last_timestamp [22:53:47]File name is /storage/kkm_last_timestamp [22:53:47]Write 4 bytes [22:53:47]NVStorageSaveData done [22:53:47]ExternCall_PrintAddStr [22:53:47]wPrintStart [22:53:47]Write to MH i2c: 01 00 00 24 16 3A [22:53:47]Write i2c OK [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: 01 [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: 01 07 00 [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: 01 07 00 24 16 00 00 00 00 00 FF 0F 4F [22:53:47]RasterBufferAndPrint [22:53:47]line Счет N : (1)32118 [22:53:47]line ИНН: 02508201610067 [22:53:47]line Контрольно-Кассовый Чек [22:53:47]line ПРОДАЖА [22:53:47]line ТРК (МРК, ГНК) : 21 [22:53:47]line Товар: 2710124130 [22:53:47]line Аи-92-К-5 [22:53:47]line 4.490 * 66.90 [22:53:47]line = 300.38 [22:53:47]line НДС 12% НСП 1% [22:53:47]line > о реализуемом товаре [22:53:47]line ИТОГО: 300.38 [22:53:47]line НСП 1% : 2.66 [22:53:47]line НДС 12% : 31.90 [22:53:47]line Наличными: 0.00 [22:53:47]line Безнал.: 300.38 [22:53:47]line Место: АЗС № 170 "Партнер Нефть" [22:53:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:53:47]line СНО: Общий режим [22:53:47]line Чек 335 28.10.2024 22:53 [22:53:47]line Смена: 543 ФФД: 1.0 [22:53:47]line ЗНМ: 0300000110 [22:53:47]line РНМ: 0000000000091776 [22:53:47]line Версия ККМ: 001 [22:53:47]line Платежная система: Кыргызкоммерцбанк [22:53:47]line ФМ: 0000000000871754 [22:53:47]line ФД: 192787 [22:53:47]line ФПД: 155137885769884 [22:53:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T225347&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192787&fm=155137885769884&tin=02508201610067®Number=0000000000091776&sum=30038 [22:53:47]written 0, free lines is 4095 [22:53:47]OFD Sender: Processing packet 192787 [packets to send 75, broken 74] [22:53:47]ProducePacketName [22:53:47]name=ofd_packets/00192787 [22:53:47]OFD Sender: To server: pG, [22:53:47]CommunicateWithHost lk.salyk.kg:30040 [22:53:47]ConnectInit lk.salyk.kg [22:53:47]Connected sock=10 [22:53:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0A 85 07 01 C8 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 FB 15 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 F1 02 00 35 04 06 00 8D 18 DA 92 90 9C 50 A6 38 34 E1 FF DA F3 [22:53:47]Write to MH i2c: 01 00 00 4E 16 64 [22:53:47]Write i2c OK [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: 01 [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: 01 07 00 [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: 01 07 00 4E 16 00 00 00 00 00 D3 0C 4A [22:53:47]RasterBufferAndPrint [22:53:47]line [22:53:47]line [22:53:47]line [22:53:47]line [22:53:47]line [22:53:47]written 0, free lines is 3289 [22:53:47]MH_Cut [22:53:47]Write to MH i2c: D1 01 00 55 16 01 3D [22:53:47]Write i2c OK [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: D1 [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: D1 01 00 [22:53:47]MH_I2C_Read... [22:53:47]Read from MH i2c: D1 01 00 55 16 00 3C [22:53:47]Write to MH i2c: 01 00 00 56 16 6C [22:53:47]Write i2c OK [22:53:47]MH_I2C_Read... [22:53:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F1 44 47 00 DC 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 F1 02 00 F4 03 04 00 BD BA 1F 67 B6 04 01 00 00 87 F0 5C B5 A2 84 E5 86 [22:53:47]CommunicateWithHost err = 0 [22:53:47]CheckOFDResponse [22:53:47]1017 (14) - 77093643461234 [22:53:47]1041 (16) - 0000000000871754 [22:53:47]1040 (4) - 192787 [22:53:47]1012 (4) - 28.10.2024 16:24 [22:53:47]1206 (1) - 0 [22:53:47]OFD Sender: Remove packet 192787 [22:53:47]ProducePacketName [22:53:47]name=ofd_packets/00192787 [22:53:47]NVStorageDeleteData [22:53:48]OFD Sender: No OFD packet to send [22:53:48]*** Cut start [22:53:48]*** Partial cut [22:53:48]*** CUTSNS_PIN = 1 [22:53:48]*** CUTSNS_PIN = 0 [22:53:48]*** Brake cut motor [22:53:49]Read from MH i2c: 01 [22:53:49]MH_I2C_Read... [22:53:49]*** Stop cut motor [22:53:49]*** Cut end [22:53:49]Read from MH i2c: 01 07 00 [22:53:49]MH_I2C_Read... [22:53:49]Read from MH i2c: 01 07 00 56 16 00 00 00 00 00 FF 0F 81 [22:53:49]process_action close_receipt done [22:53:49]requested_data is exist [22:53:49]produce_requested_data [22:53:49]requested_item fm.sn is exist - process it [22:53:49]wFMCommunicate request_size=4 [22:53:49]MH_SAM_APDU [22:53:49]CAPDU: 80 11 00 00 [22:53:49]Write to MH i2c: E2 08 00 57 16 80 11 00 00 00 00 00 00 E7 [22:53:49]Write i2c OK [22:53:49]MH_I2C_Read... [22:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:49]Read from MH i2c: E2 [22:53:49]MH_I2C_Read... [22:53:49]Read from MH i2c: E2 17 00 [22:53:49]MH_I2C_Read... [22:53:49]Read from MH i2c: E2 17 00 57 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3A [22:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:53:49]wFMCommunicate OK [22:53:49]requested_item fd.num is exist - process it [22:53:49]SAM_PROTO_GetFieldsCounters [22:53:49]wFMCommunicate request_size=4 [22:53:49]MH_SAM_APDU [22:53:49]CAPDU: 80 13 00 00 [22:53:49]Write to MH i2c: E2 08 00 58 16 80 13 00 00 00 00 00 00 EA [22:53:49]Write i2c OK [22:53:49]MH_I2C_Read... [22:53:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:49]Read from MH i2c: E2 [22:53:49]MH_I2C_Read... [22:53:49]Read from MH i2c: E2 62 00 [22:53:49]MH_I2C_Read... [22:53:49]Read from MH i2c: E2 62 00 58 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 13 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [22:53:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 13 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:53:49]wFMCommunicate OK [22:53:49]SAM_PROTO_GetFieldsCounters done [22:53:49]requested_item shift.num is exist - process it [22:53:49]requested_item shift.opened is exist - process it [22:53:49]req_shift_opened [22:53:49]FM_GetShiftState [22:53:49]SAM_PROTO_GetShiftState [22:53:49]wFMCommunicate request_size=4 [22:53:49]MH_SAM_APDU [22:53:49]CAPDU: 80 13 01 00 [22:53:49]Write to MH i2c: E2 08 00 59 16 80 13 01 00 00 00 00 00 EC [22:53:49]Write i2c OK [22:53:49]MH_I2C_Read... [22:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:49]Read from MH i2c: E2 [22:53:49]MH_I2C_Read... [22:53:49]Read from MH i2c: E2 0E 00 [22:53:49]MH_I2C_Read... [22:53:49]Read from MH i2c: E2 0E 00 59 16 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3C [22:53:49]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [22:53:49]wFMCommunicate OK [22:53:49]SAM_PROTO_GetShiftState done [22:53:49]FM_GetShiftState done [22:53:49]req_shift_opened done [22:53:49]requested_item shift.open_date is exist - process it [22:53:49]req_shift_open_date [22:53:49]req_shift_open_date done [22:53:49]produce_requested_data done [22:53:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192787,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [22:53:49]process_action_free close_receipt [22:53:49]json_value_free [22:53:49]json_value_free done [22:53:49]process_json_proto returns [22:53:49]Send response to host [22:53:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192787,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [22:53:49]free response buf [22:53:49]execute_script done [22:53:49]execute_script returns [22:53:49]free content buf [22:53:49]Sock 8.Close socket [22:53:49]Sock 8.Thread stoped [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:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58:23]OFD Sender: No OFD packet to send [22:58:28]OFD Sender: No OFD packet to send [22:58:33]OFD Sender: No OFD packet to send [22:58:38]OFD Sender: No OFD packet to send [22:58:43]OFD Sender: No OFD packet to send [22:58:48]OFD Sender: No OFD packet to send [22:58:53]OFD Sender: No OFD packet to send [22:58:58]OFD Sender: No OFD packet to send [22:59:03]OFD Sender: No OFD packet to send [22:59:08]OFD Sender: No OFD packet to send [22:59:13]OFD Sender: No OFD packet to send [22:59:18]OFD Sender: No OFD packet to send [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:13]OFD Sender: No OFD packet to send [23:00:18]OFD Sender: No OFD packet to send [23:00:23]OFD Sender: No OFD packet to send [23:00:28]OFD Sender: No OFD packet to send [23:00:33]OFD Sender: No OFD packet to send [23:00:38]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:58]OFD Sender: No OFD packet to send [23:01:03]OFD Sender: No OFD packet to send [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:38]OFD Sender: No OFD packet to send [23:01:43]OFD Sender: No OFD packet to send [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:41]accept exits with 9 [23:02:41]New connection [23:02:41]New thread 3066801508 created [23:02:41]Thread 3066658148 joined [23:02:41]Waiting for new connection... [23:02:41] Sock 9.Parse request [23:02:41]Sock 9.Check first char [23:02:41]Sock 9.First char is OK [23:02:41]request: POST /json_proto HTTP/1.0 [23:02:41]Method: POST [23:02:41]URL: /json_proto [23:02:41]Method is POST - this is cgi request [23:02:41]url: /json_proto [23:02:41]query_string will be loaded in cgi processing [23:02:41]execute_cgi json_proto POST (null) [23:02:41]execute_cgi path=json_proto method=POST [23:02:41]POST find Content-Length [23:02:41]Host: 172.17.63.131:8080 [23:02:41]Content-Length: 677 [23:02:41]Content-Type: application/json [23:02:41] [23:02:41]POST finish read [23:02:41]Found Content-Length = 677 [23:02:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:02:41]execute_script... [23:02:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:02:41]POST & json_proto [23:02:41]process_json_proto [23:02:41]json parsed OK: [23:02:41]protocol is kg_v1.0 [23:02:41]action value=close_receipt [23:02:41]process_action close_receipt [23:02:41]cmd_close_receipt [23:02:41]MH_GetDate [23:02:41]Write to MH i2c: F0 00 00 5A 16 5F [23:02:41]Write i2c OK [23:02:41]MH_I2C_Read... [23:02:41]Read from MH i2c: F0 [23:02:41]MH_I2C_Read... [23:02:41]Read from MH i2c: F0 09 00 [23:02:41]MH_I2C_Read... [23:02:41]Read from MH i2c: F0 09 00 5A 16 00 13 18 20 67 22 05 6E 64 13 [23:02:41]GetLastDocTimeStamp 1730156027 [23:02:41]current date 1730156563 [23:02:41]FM_GetShiftState [23:02:41]SAM_PROTO_GetShiftState [23:02:41]wFMCommunicate request_size=4 [23:02:41]MH_SAM_APDU [23:02:41]CAPDU: 80 13 01 00 [23:02:41]Write to MH i2c: E2 08 00 5B 16 80 13 01 00 00 00 00 00 EE [23:02:41]Write i2c OK [23:02:41]MH_I2C_Read... [23:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:41]Read from MH i2c: E2 [23:02:41]MH_I2C_Read... [23:02:41]Read from MH i2c: E2 0E 00 [23:02:41]MH_I2C_Read... [23:02:41]Read from MH i2c: E2 0E 00 5B 16 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 3E [23:02:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [23:02:41]wFMCommunicate OK [23:02:41]SAM_PROTO_GetShiftState done [23:02:41]FM_GetShiftState done [23:02:41]opened in 1730075620 [23:02:41]opened+sec_in_day 1730162020 [23:02:41]quantity*price = 80012 [23:02:41]sum+1 = 80013 [23:02:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 336 28.10.2024 23:02 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192788 ФПД: 255277443231373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T230243&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192788&fm=255277443231373&tin=02508201610067®Number=0000000000091776&sum=80000 [23:02:42]StoreToDocumentArchive [23:02:42]shift 543 fd 192788 [23:02:42]save to /storage/0543/doc_00192788 [23:02:42]save last doc name /storage/0543/doc_00192788 to /storage/kkm_last_doc_name [23:02:42]save OK [23:02:42]Clear old archive folders... [23:02:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:02:42]tlvbuf is B6E9C480 [23:02:42]SAM_PROTO_ClearQueue [23:02:42]wFMCommunicate request_size=4 [23:02:42]MH_SAM_APDU [23:02:42]CAPDU: 80 09 00 00 [23:02:42]Write to MH i2c: E2 08 00 68 16 80 09 00 00 00 00 00 00 F0 [23:02:42]Write i2c OK [23:02:42]MH_I2C_Read... [23:02:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:02:42]Read from MH i2c: E2 [23:02:42]MH_I2C_Read... [23:02:42]Read from MH i2c: E2 03 00 [23:02:42]MH_I2C_Read... [23:02:42]Read from MH i2c: E2 03 00 68 16 00 90 00 F2 [23:02:42]RAPDU: 90 00 [23:02:42]wFMCommunicate OK [23:02:42]SAM_PROTO_ClearQueue done [23:02:42]KKMCreateOFDPacket [23:02:42]OFDProtocolAddRootSTLVToBuf [23:02:42]FM_MakeSignedData [23:02:42]FM_MakeSignedData [23:02:42]SAM_PROTO_SignData [23:02:42]wFMCommunicate request_size=4 [23:02:42]MH_SAM_APDU [23:02:42]CAPDU: 80 0D 01 02 [23:02:42]Write to MH i2c: E2 08 00 69 16 80 0D 01 02 00 00 00 00 F8 [23:02:42]Write i2c OK [23:02:42]MH_I2C_Read... [23:02:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:02:42]Read from MH i2c: E2 [23:02:42]MH_I2C_Read... [23:02:42]Read from MH i2c: E2 03 00 [23:02:42]MH_I2C_Read... [23:02:42]Read from MH i2c: E2 03 00 69 16 00 90 00 F3 [23:02:42]RAPDU: 90 00 [23:02:42]wFMCommunicate OK [23:02:42]wFMCommunicate request_size=255 [23:02:42]MH_SAM_APDU [23:02: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 13 18 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 F1 02 00 35 04 06 00 E8 [23:02:42]Write to MH i2c: E2 02 01 6A 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 13 18 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 F1 02 00 35 04 06 00 E8 00 00 8B [23:02:42]Write i2c OK [23:02:42]MH_I2C_Read... [23:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:02:43]Read from MH i2c: E2 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: E2 03 00 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: E2 03 00 6A 16 00 90 00 F4 [23:02:43]RAPDU: 90 00 [23:02:43]wFMCommunicate OK [23:02:43]wFMCommunicate request_size=10 [23:02:43]MH_SAM_APDU [23:02:43]CAPDU: 80 0D 02 02 05 2C 69 52 AE 8D [23:02:43]Write to MH i2c: E2 0D 00 6B 16 80 0D 02 02 05 00 2C 69 52 AE 8D 00 00 27 [23:02:43]Write i2c OK [23:02:43]MH_I2C_Read... [23:02:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:02:43]Read from MH i2c: E2 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: E2 03 00 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: E2 03 00 6B 16 00 90 00 F5 [23:02:43]RAPDU: 90 00 [23:02:43]wFMCommunicate OK [23:02:43]wFMCommunicate request_size=4 [23:02:43]MH_SAM_APDU [23:02:43]CAPDU: 80 0D 03 02 [23:02:43]Write to MH i2c: E2 08 00 6C 16 80 0D 03 02 00 00 00 00 FD [23:02:43]Write i2c OK [23:02:43]MH_I2C_Read... [23:02:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:02:43]Read from MH i2c: E2 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: E2 0B 00 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: E2 0B 00 6C 16 00 42 10 87 E6 38 1E 6E D7 90 00 58 [23:02:43]RAPDU: 42 10 87 E6 38 1E 6E D7 90 00 [23:02:43]wFMCommunicate OK [23:02:43]SAM_PROTO_SignData done [23:02:43]FM_MakeSignedData done [23:02:43]CreateOFDProtocolMessage [23:02:43]wFMCommunicate request_size=4 [23:02:43]MH_SAM_APDU [23:02:43]CAPDU: 80 11 00 00 [23:02:43]Write to MH i2c: E2 08 00 6D 16 80 11 00 00 00 00 00 00 FD [23:02:43]Write i2c OK [23:02:43]MH_I2C_Read... [23:02:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:43]Read from MH i2c: E2 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: E2 17 00 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: E2 17 00 6D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 50 [23:02:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:02:43]wFMCommunicate OK [23:02:43]CreateOFDProtocolMessage done [23:02:43]OFDSenderStorePacket 192788 [23:02:43]StoreOFDPacket docnum=192788 [23:02:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9B B4 07 01 BA B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 13 18 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 F1 02 00 35 04 06 00 E8 2C 69 52 AE 8D 42 10 87 E6 38 1E 6E D7 [23:02:43]CheckFolder [23:02:43]dirname=/storage/ofd_packets [23:02:43]CheckFolder done [23:02:43]ProducePacketName [23:02:43]name=ofd_packets/00192788 [23:02:43]NVStorageSaveData ofd_packets/00192788 [23:02:43]File name is /storage/ofd_packets/00192788 [23:02:43]Write 301 bytes [23:02:43]NVStorageSaveData done [23:02:43]OFDSenderStorePacket done [23:02:43]KKMCreateOFDPacket done [23:02:43]NVStorageSaveData kkm_last_timestamp [23:02:43]File name is /storage/kkm_last_timestamp [23:02:43]Write 4 bytes [23:02:43]NVStorageSaveData done [23:02:43]ExternCall_PrintAddStr [23:02:43]wPrintStart [23:02:43]Write to MH i2c: 01 00 00 6E 16 84 [23:02:43]Write i2c OK [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: 01 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: 01 07 00 [23:02:43]MH_I2C_Read... [23:02:43]Read from MH i2c: 01 07 00 6E 16 00 00 00 00 00 FF 0F 99 [23:02:43]RasterBufferAndPrint [23:02:43]line Счет N : (1)32119 [23:02:43]line ИНН: 02508201610067 [23:02:43]line Контрольно-Кассовый Чек [23:02:43]line ПРОДАЖА [23:02:43]line ТРК (МРК, ГНК) : 21 [23:02:43]line Товар: 2710124130 [23:02:43]line Аи-92-К-5 [23:02:43]line 11.960 * 66.90 [23:02:43]line = 800.12 [23:02:43]line НДС 12% НСП 1% [23:02:43]line > о реализуемом товаре [23:02:43]line ОКРУГЛЕНИЕ: -0.12 [23:02:43]line ИТОГО: 800.00 [23:02:43]line Внесено: 800.00 [23:02:43]line СДАЧА: 0.00 [23:02:43]line НСП 1% : 7.08 [23:02:43]line НДС 12% : 84.97 [23:02:43]line Наличными: 800.00 [23:02:43]line Безнал.: 0.00 [23:02:43]line Место: АЗС № 170 "Партнер Нефть" [23:02:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:02:43]line СНО: Общий режим [23:02:43]line Чек 336 28.10.2024 23:02 [23:02:43]line Смена: 543 ФФД: 1.0 [23:02:43]line ЗНМ: 0300000110 [23:02:43]line РНМ: 0000000000091776 [23:02:43]line Версия ККМ: 001 [23:02:43]line ФМ: 0000000000871754 [23:02:43]line ФД: 192788 [23:02:43]line ФПД: 255277443231373 [23:02:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T230243&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192788&fm=255277443231373&tin=02508201610067®Number=0000000000091776&sum=80000 [23:02:43]OFD Sender: Processing packet 192788 [packets to send 75, broken 74] [23:02:43]ProducePacketName [23:02:43]name=ofd_packets/00192788 [23:02:43]OFD Sender: To server: pG, [23:02:43]CommunicateWithHost lk.salyk.kg:30040 [23:02:43]ConnectInit lk.salyk.kg [23:02:43]written 0, free lines is 4095 [23:02:43]Connected sock=10 [23:02:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9B B4 07 01 BA B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 13 18 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 F1 02 00 35 04 06 00 E8 2C 69 52 AE 8D 42 10 87 E6 38 1E 6E D7 [23:02:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 14 DC 47 00 F4 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 F1 02 00 F4 03 04 00 D5 BC 1F 67 B6 04 01 00 00 DD 1C 0F A5 02 1E CB D2 [23:02:43]CommunicateWithHost err = 0 [23:02:43]CheckOFDResponse [23:02:43]1017 (14) - 77093643461234 [23:02:43]1041 (16) - 0000000000871754 [23:02:43]1040 (4) - 192788 [23:02:43]1012 (4) - 28.10.2024 16:33 [23:02:43]1206 (1) - 0 [23:02:43]OFD Sender: Remove packet 192788 [23:02:43]ProducePacketName [23:02:43]name=ofd_packets/00192788 [23:02:43]NVStorageDeleteData [23:02:44]Write to MH i2c: 01 00 00 99 16 AF [23:02:44]Write i2c OK [23:02:44]MH_I2C_Read... [23:02:44]Read from MH i2c: 01 [23:02:44]MH_I2C_Read... [23:02:44]Read from MH i2c: 01 07 00 [23:02:44]MH_I2C_Read... [23:02:44]Read from MH i2c: 01 07 00 99 16 00 00 00 00 00 AF 0C 71 [23:02:44]RasterBufferAndPrint [23:02:44]line [23:02:44]line [23:02:44]line [23:02:44]line [23:02:44]line [23:02:44]written 0, free lines is 3253 [23:02:44]MH_Cut [23:02:44]Write to MH i2c: D1 01 00 A0 16 01 88 [23:02:44]Write i2c OK [23:02:44]MH_I2C_Read... [23:02:44]Read from MH i2c: D1 [23:02:44]MH_I2C_Read... [23:02:44]Read from MH i2c: D1 01 00 [23:02:44]MH_I2C_Read... [23:02:44]Read from MH i2c: D1 01 00 A0 16 00 87 [23:02:44]Write to MH i2c: 01 00 00 A1 16 B7 [23:02:44]Write i2c OK [23:02:44]MH_I2C_Read... [23:02:44]OFD Sender: No OFD packet to send [23:02:44]*** Cut start [23:02:44]*** Partial cut [23:02:44]*** CUTSNS_PIN = 1 [23:02:44]*** CUTSNS_PIN = 0 [23:02:45]*** Brake cut motor [23:02:45]Read from MH i2c: 01 [23:02:45]MH_I2C_Read... [23:02:45]*** Stop cut motor [23:02:45]*** Cut end [23:02:45]Read from MH i2c: 01 07 00 [23:02:45]MH_I2C_Read... [23:02:45]Read from MH i2c: 01 07 00 A1 16 00 00 00 00 00 FF 0F CC [23:02:45]process_action close_receipt done [23:02:45]requested_data is exist [23:02:45]produce_requested_data [23:02:45]requested_item fm.sn is exist - process it [23:02:45]wFMCommunicate request_size=4 [23:02:45]MH_SAM_APDU [23:02:45]CAPDU: 80 11 00 00 [23:02:45]Write to MH i2c: E2 08 00 A2 16 80 11 00 00 00 00 00 00 32 [23:02:45]Write i2c OK [23:02:45]MH_I2C_Read... [23:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:45]Read from MH i2c: E2 [23:02:45]MH_I2C_Read... [23:02:45]Read from MH i2c: E2 17 00 [23:02:45]MH_I2C_Read... [23:02:45]Read from MH i2c: E2 17 00 A2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 85 [23:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:02:45]wFMCommunicate OK [23:02:45]requested_item fd.num is exist - process it [23:02:45]SAM_PROTO_GetFieldsCounters [23:02:45]wFMCommunicate request_size=4 [23:02:45]MH_SAM_APDU [23:02:45]CAPDU: 80 13 00 00 [23:02:45]Write to MH i2c: E2 08 00 A3 16 80 13 00 00 00 00 00 00 35 [23:02:45]Write i2c OK [23:02:45]MH_I2C_Read... [23:02:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:02:45]Read from MH i2c: E2 [23:02:45]MH_I2C_Read... [23:02:45]Read from MH i2c: E2 62 00 [23:02:45]MH_I2C_Read... [23:02:45]Read from MH i2c: E2 62 00 A3 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 14 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [23:02:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 14 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:02:45]wFMCommunicate OK [23:02:45]SAM_PROTO_GetFieldsCounters done [23:02:45]requested_item shift.num is exist - process it [23:02:45]requested_item shift.opened is exist - process it [23:02:45]req_shift_opened [23:02:45]FM_GetShiftState [23:02:45]SAM_PROTO_GetShiftState [23:02:45]wFMCommunicate request_size=4 [23:02:45]MH_SAM_APDU [23:02:45]CAPDU: 80 13 01 00 [23:02:45]Write to MH i2c: E2 08 00 A4 16 80 13 01 00 00 00 00 00 37 [23:02:45]Write i2c OK [23:02:45]MH_I2C_Read... [23:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:45]Read from MH i2c: E2 [23:02:45]MH_I2C_Read... [23:02:45]Read from MH i2c: E2 0E 00 [23:02:45]MH_I2C_Read... [23:02:45]Read from MH i2c: E2 0E 00 A4 16 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 87 [23:02:45]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [23:02:45]wFMCommunicate OK [23:02:45]SAM_PROTO_GetShiftState done [23:02:45]FM_GetShiftState done [23:02:45]req_shift_opened done [23:02:45]requested_item shift.open_date is exist - process it [23:02:45]req_shift_open_date [23:02:45]req_shift_open_date done [23:02:45]produce_requested_data done [23:02:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192788,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [23:02:45]process_action_free close_receipt [23:02:45]json_value_free [23:02:45]json_value_free done [23:02:45]process_json_proto returns [23:02:45]Send response to host [23:02:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192788,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [23:02:45]free response buf [23:02:45]execute_script done [23:02:45]execute_script returns [23:02:45]free content buf [23:02:45]Sock 9.Close socket [23:02:45]Sock 9.Thread stoped [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:10]accept exits with 8 [23:05:10]New connection [23:05:10]New thread 3066658148 created [23:05:10]Thread 3066801508 joined [23:05:10]Waiting for new connection... [23:05:10] Sock 8.Parse request [23:05:10]Sock 8.Check first char [23:05:10]Sock 8.First char is OK [23:05:10]request: POST /json_proto HTTP/1.0 [23:05:10]Method: POST [23:05:10]URL: /json_proto [23:05:10]Method is POST - this is cgi request [23:05:10]url: /json_proto [23:05:10]query_string will be loaded in cgi processing [23:05:10]execute_cgi json_proto POST (null) [23:05:10]execute_cgi path=json_proto method=POST [23:05:10]POST find Content-Length [23:05:10]Host: 172.17.63.131:8080 [23:05:10]Content-Length: 865 [23:05:10]Content-Type: application/json [23:05:10] [23:05:10]POST finish read [23:05:10]Found Content-Length = 865 [23:05:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:10]execute_script... [23:05: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)32120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:10]POST & json_proto [23:05:10]process_json_proto [23:05:10]json parsed OK: [23:05:10]protocol is kg_v1.0 [23:05:10]action value=close_receipt [23:05:10]process_action close_receipt [23:05:10]cmd_close_receipt [23:05:10]MH_GetDate [23:05:10]Write to MH i2c: F0 00 00 A5 16 AA [23:05:10]Write i2c OK [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: F0 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: F0 09 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: F0 09 00 A5 16 00 A8 18 20 67 22 05 6E 64 F3 [23:05:10]GetLastDocTimeStamp 1730156563 [23:05:10]current date 1730156712 [23:05:10]FM_GetShiftState [23:05:10]SAM_PROTO_GetShiftState [23:05:10]wFMCommunicate request_size=4 [23:05:10]MH_SAM_APDU [23:05:10]CAPDU: 80 13 01 00 [23:05:10]Write to MH i2c: E2 08 00 A6 16 80 13 01 00 00 00 00 00 39 [23:05:10]Write i2c OK [23:05:10]MH_I2C_Read... [23:05:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:10]Read from MH i2c: E2 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 0E 00 [23:05:10]MH_I2C_Read... [23:05:10]Read from MH i2c: E2 0E 00 A6 16 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 89 [23:05:10]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [23:05:10]wFMCommunicate OK [23:05:10]SAM_PROTO_GetShiftState done [23:05:10]FM_GetShiftState done [23:05:10]opened in 1730075620 [23:05:10]opened+sec_in_day 1730162020 [23:05:10]quantity*price = 100015 [23:05:10]sum+1 = 100017 [23:05:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 337 28.10.2024 23:05 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192789 ФПД: 259985227532307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T230512&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192789&fm=259985227532307&tin=02508201610067®Number=0000000000091776&sum=100016 [23:05:12]StoreToDocumentArchive [23:05:12]shift 543 fd 192789 [23:05:12]save to /storage/0543/doc_00192789 [23:05:12]save last doc name /storage/0543/doc_00192789 to /storage/kkm_last_doc_name [23:05:12]save OK [23:05:12]Clear old archive folders... [23:05:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:05:12]tlvbuf is 00EE3830 [23:05:12]SAM_PROTO_ClearQueue [23:05:12]wFMCommunicate request_size=4 [23:05:12]MH_SAM_APDU [23:05:12]CAPDU: 80 09 00 00 [23:05:12]Write to MH i2c: E2 08 00 B3 16 80 09 00 00 00 00 00 00 3B [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:12]Read from MH i2c: E2 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 03 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 03 00 B3 16 00 90 00 3D [23:05:12]RAPDU: 90 00 [23:05:12]wFMCommunicate OK [23:05:12]SAM_PROTO_ClearQueue done [23:05:12]KKMCreateOFDPacket [23:05:12]OFDProtocolAddRootSTLVToBuf [23:05:12]FM_MakeSignedData [23:05:12]FM_MakeSignedData [23:05:12]SAM_PROTO_SignData [23:05:12]wFMCommunicate request_size=4 [23:05:12]MH_SAM_APDU [23:05:12]CAPDU: 80 0D 01 02 [23:05:12]Write to MH i2c: E2 08 00 B4 16 80 0D 01 02 00 00 00 00 43 [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:12]Read from MH i2c: E2 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 03 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 03 00 B4 16 00 90 00 3E [23:05:12]RAPDU: 90 00 [23:05:12]wFMCommunicate OK [23:05:12]wFMCommunicate request_size=255 [23:05:12]MH_SAM_APDU [23:05:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 A8 18 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 F1 02 00 35 04 06 00 EC [23:05:12]Write to MH i2c: E2 02 01 B5 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 A8 18 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 F1 02 00 35 04 06 00 EC 00 00 9F [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:12]Read from MH i2c: E2 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 03 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 03 00 B5 16 00 90 00 3F [23:05:12]RAPDU: 90 00 [23:05:12]wFMCommunicate OK [23:05:12]wFMCommunicate request_size=10 [23:05:12]MH_SAM_APDU [23:05:12]CAPDU: 80 0D 02 02 05 74 87 22 48 13 [23:05:12]Write to MH i2c: E2 0D 00 B6 16 80 0D 02 02 05 00 74 87 22 48 13 00 00 C8 [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:12]Read from MH i2c: E2 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 03 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 03 00 B6 16 00 90 00 40 [23:05:12]RAPDU: 90 00 [23:05:12]wFMCommunicate OK [23:05:12]wFMCommunicate request_size=4 [23:05:12]MH_SAM_APDU [23:05:12]CAPDU: 80 0D 03 02 [23:05:12]Write to MH i2c: E2 08 00 B7 16 80 0D 03 02 00 00 00 00 48 [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:12]Read from MH i2c: E2 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 0B 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 0B 00 B7 16 00 13 89 4F EE 1B C5 F9 E8 90 00 E3 [23:05:12]RAPDU: 13 89 4F EE 1B C5 F9 E8 90 00 [23:05:12]wFMCommunicate OK [23:05:12]SAM_PROTO_SignData done [23:05:12]FM_MakeSignedData done [23:05:12]CreateOFDProtocolMessage [23:05:12]wFMCommunicate request_size=4 [23:05:12]MH_SAM_APDU [23:05:12]CAPDU: 80 11 00 00 [23:05:12]Write to MH i2c: E2 08 00 B8 16 80 11 00 00 00 00 00 00 48 [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:12]Read from MH i2c: E2 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 17 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: E2 17 00 B8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9B [23:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:05:12]wFMCommunicate OK [23:05:12]CreateOFDProtocolMessage done [23:05:12]OFDSenderStorePacket 192789 [23:05:12]StoreOFDPacket docnum=192789 [23:05:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 96 F7 07 01 04 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 A8 18 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 F1 02 00 35 04 06 00 EC 74 87 22 48 13 13 89 4F EE 1B C5 F9 E8 [23:05:12]CheckFolder [23:05:12]dirname=/storage/ofd_packets [23:05:12]CheckFolder done [23:05:12]ProducePacketName [23:05:12]name=ofd_packets/00192789 [23:05:12]NVStorageSaveData ofd_packets/00192789 [23:05:12]File name is /storage/ofd_packets/00192789 [23:05:12]Write 301 bytes [23:05:12]NVStorageSaveData done [23:05:12]OFDSenderStorePacket done [23:05:12]KKMCreateOFDPacket done [23:05:12]NVStorageSaveData kkm_last_timestamp [23:05:12]File name is /storage/kkm_last_timestamp [23:05:12]Write 4 bytes [23:05:12]NVStorageSaveData done [23:05:12]ExternCall_PrintAddStr [23:05:12]wPrintStart [23:05:12]Write to MH i2c: 01 00 00 B9 16 CF [23:05:12]Write i2c OK [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: 01 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: 01 07 00 [23:05:12]MH_I2C_Read... [23:05:12]Read from MH i2c: 01 07 00 B9 16 00 00 00 00 00 FF 0F E4 [23:05:12]RasterBufferAndPrint [23:05:12]line Счет N : (1)32120 [23:05:12]line ИНН: 02508201610067 [23:05:12]line Контрольно-Кассовый Чек [23:05:12]line ПРОДАЖА [23:05:12]line ТРК (МРК, ГНК) : 21 [23:05:12]line Товар: 2710124130 [23:05:12]line Аи-92-К-5 [23:05:12]line 14.950 * 66.90 [23:05:12]line = 1000.16 [23:05:12]line НДС 12% НСП 1% [23:05:12]line > о реализуемом товаре [23:05:12]line ИТОГО: 1000.16 [23:05:12]line НСП 1% : 8.85 [23:05:12]line НДС 12% : 106.21 [23:05:12]line Наличными: 0.00 [23:05:12]line Безнал.: 1000.16 [23:05:12]line Место: АЗС № 170 "Партнер Нефть" [23:05:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:05:12]line СНО: Общий режим [23:05:12]line Чек 337 28.10.2024 23:05 [23:05:12]line Смена: 543 ФФД: 1.0 [23:05:12]line ЗНМ: 0300000110 [23:05:12]line РНМ: 0000000000091776 [23:05:12]line Версия ККМ: 001 [23:05:12]line Платежная система: Кыргызкоммерцбанк [23:05:12]line ФМ: 0000000000871754 [23:05:12]line ФД: 192789 [23:05:12]line ФПД: 259985227532307 [23:05:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T230512&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192789&fm=259985227532307&tin=02508201610067®Number=0000000000091776&sum=100016 [23:05:12]OFD Sender: Processing packet 192789 [packets to send 75, broken 74] [23:05:12]ProducePacketName [23:05:12]name=ofd_packets/00192789 [23:05:12]OFD Sender: To server: pG, [23:05:12]CommunicateWithHost lk.salyk.kg:30040 [23:05:12]ConnectInit lk.salyk.kg [23:05:12]written 0, free lines is 4095 [23:05:13]Connected sock=9 [23:05:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 96 F7 07 01 04 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 A8 18 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 F1 02 00 35 04 06 00 EC 74 87 22 48 13 13 89 4F EE 1B C5 F9 E8 [23:05:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4F A5 47 00 56 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 F1 02 00 F4 03 04 00 6B BD 1F 67 B6 04 01 00 00 47 99 FC 6B 7E 13 B1 27 [23:05:13]CommunicateWithHost err = 0 [23:05:13]CheckOFDResponse [23:05:13]1017 (14) - 77093643461234 [23:05:13]1041 (16) - 0000000000871754 [23:05:13]1040 (4) - 192789 [23:05:13]1012 (4) - 28.10.2024 16:35 [23:05:13]1206 (1) - 0 [23:05:13]OFD Sender: Remove packet 192789 [23:05:13]ProducePacketName [23:05:13]name=ofd_packets/00192789 [23:05:13]NVStorageDeleteData [23:05:13]Write to MH i2c: 01 00 00 E3 16 F9 [23:05:13]Write i2c OK [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: 01 [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: 01 07 00 [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: 01 07 00 E3 16 00 00 00 00 00 C6 0C D2 [23:05:13]RasterBufferAndPrint [23:05:13]line [23:05:13]line [23:05:13]line [23:05:13]line [23:05:13]line [23:05:13]written 0, free lines is 3276 [23:05:13]MH_Cut [23:05:13]Write to MH i2c: D1 01 00 EA 16 01 D2 [23:05:13]Write i2c OK [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: D1 [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: D1 01 00 [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: D1 01 00 EA 16 00 D1 [23:05:13]Write to MH i2c: 01 00 00 EB 16 01 [23:05:13]Write i2c OK [23:05:13]MH_I2C_Read... [23:05:13]OFD Sender: No OFD packet to send [23:05:14]*** Cut start [23:05:14]*** Partial cut [23:05:14]*** CUTSNS_PIN = 1 [23:05:14]*** CUTSNS_PIN = 0 [23:05:14]*** Brake cut motor [23:05:14]Read from MH i2c: 01 [23:05:14]MH_I2C_Read... [23:05:14]*** Stop cut motor [23:05:14]*** Cut end [23:05:14]Read from MH i2c: 01 07 00 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: 01 07 00 EB 16 00 00 00 00 00 FF 0F 16 [23:05:14]process_action close_receipt done [23:05:14]requested_data is exist [23:05:14]produce_requested_data [23:05:14]requested_item fm.sn is exist - process it [23:05:14]wFMCommunicate request_size=4 [23:05:14]MH_SAM_APDU [23:05:14]CAPDU: 80 11 00 00 [23:05:14]Write to MH i2c: E2 08 00 EC 16 80 11 00 00 00 00 00 00 7C [23:05:14]Write i2c OK [23:05:14]MH_I2C_Read... [23:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:14]Read from MH i2c: E2 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 17 00 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 17 00 EC 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CF [23:05:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:05:14]wFMCommunicate OK [23:05:14]requested_item fd.num is exist - process it [23:05:14]SAM_PROTO_GetFieldsCounters [23:05:14]wFMCommunicate request_size=4 [23:05:14]MH_SAM_APDU [23:05:14]CAPDU: 80 13 00 00 [23:05:14]Write to MH i2c: E2 08 00 ED 16 80 13 00 00 00 00 00 00 7F [23:05:14]Write i2c OK [23:05:14]MH_I2C_Read... [23:05:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:15]Read from MH i2c: E2 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: E2 62 00 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: E2 62 00 ED 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 15 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [23:05:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 15 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:05:15]wFMCommunicate OK [23:05:15]SAM_PROTO_GetFieldsCounters done [23:05:15]requested_item shift.num is exist - process it [23:05:15]requested_item shift.opened is exist - process it [23:05:15]req_shift_opened [23:05:15]FM_GetShiftState [23:05:15]SAM_PROTO_GetShiftState [23:05:15]wFMCommunicate request_size=4 [23:05:15]MH_SAM_APDU [23:05:15]CAPDU: 80 13 01 00 [23:05:15]Write to MH i2c: E2 08 00 EE 16 80 13 01 00 00 00 00 00 81 [23:05:15]Write i2c OK [23:05:15]MH_I2C_Read... [23:05:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:15]Read from MH i2c: E2 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: E2 0E 00 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: E2 0E 00 EE 16 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D1 [23:05:15]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [23:05:15]wFMCommunicate OK [23:05:15]SAM_PROTO_GetShiftState done [23:05:15]FM_GetShiftState done [23:05:15]req_shift_opened done [23:05:15]requested_item shift.open_date is exist - process it [23:05:15]req_shift_open_date [23:05:15]req_shift_open_date done [23:05:15]produce_requested_data done [23:05:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192789,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [23:05:15]process_action_free close_receipt [23:05:15]json_value_free [23:05:15]json_value_free done [23:05:15]process_json_proto returns [23:05:15]Send response to host [23:05:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192789,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [23:05:15]free response buf [23:05:15]execute_script done [23:05:15]execute_script returns [23:05:15]free content buf [23:05:15]Sock 8.Close socket [23:05:15]Sock 8.Thread stoped [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:19]OFD Sender: No OFD packet to send [23:17:24]OFD Sender: No OFD packet to send [23:17:29]OFD Sender: No OFD packet to send [23:17:34]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:17:59]OFD Sender: No OFD packet to send [23:18:04]OFD Sender: No OFD packet to send [23:18:09]OFD Sender: No OFD packet to send [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:34]OFD Sender: No OFD packet to send [23:18:39]OFD Sender: No OFD packet to send [23:18:44]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:09]OFD Sender: No OFD packet to send [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25: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:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37: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:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:39]accept exits with 10 [23:46:39]New connection [23:46:39]New thread 3066801508 created [23:46:39]Thread 3066658148 joined [23:46:39]Waiting for new connection... [23:46:39] Sock 10.Parse request [23:46:39]Sock 10.Check first char [23:46:39]Sock 10.First char is OK [23:46:39]request: POST /json_proto HTTP/1.0 [23:46:39]Method: POST [23:46:39]URL: /json_proto [23:46:39]Method is POST - this is cgi request [23:46:39]url: /json_proto [23:46:39]query_string will be loaded in cgi processing [23:46:39]execute_cgi json_proto POST (null) [23:46:39]execute_cgi path=json_proto method=POST [23:46:39]POST find Content-Length [23:46:39]Host: 172.17.63.131:8080 [23:46:39]Content-Length: 676 [23:46:39]Content-Type: application/json [23:46:39] [23:46:39]POST finish read [23:46:39]Found Content-Length = 676 [23:46:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:39]execute_script... [23:46:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:39]POST & json_proto [23:46:39]process_json_proto [23:46:39]json parsed OK: [23:46:39]protocol is kg_v1.0 [23:46:39]action value=close_receipt [23:46:39]process_action close_receipt [23:46:39]cmd_close_receipt [23:46:39]MH_GetDate [23:46:39]Write to MH i2c: F0 00 00 EF 16 F4 [23:46:39]Write i2c OK [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: F0 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: F0 09 00 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: F0 09 00 EF 16 00 61 22 20 67 22 05 6E 64 00 [23:46:39]GetLastDocTimeStamp 1730156712 [23:46:39]current date 1730159201 [23:46:39]FM_GetShiftState [23:46:39]SAM_PROTO_GetShiftState [23:46:39]wFMCommunicate request_size=4 [23:46:39]MH_SAM_APDU [23:46:39]CAPDU: 80 13 01 00 [23:46:39]Write to MH i2c: E2 08 00 F0 16 80 13 01 00 00 00 00 00 83 [23:46:39]Write i2c OK [23:46:39]MH_I2C_Read... [23:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:39]Read from MH i2c: E2 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: E2 0E 00 [23:46:39]MH_I2C_Read... [23:46:39]Read from MH i2c: E2 0E 00 F0 16 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 D3 [23:46:39]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [23:46:39]wFMCommunicate OK [23:46:39]SAM_PROTO_GetShiftState done [23:46:39]FM_GetShiftState done [23:46:39]opened in 1730075620 [23:46:39]opened+sec_in_day 1730162020 [23:46:39]quantity*price = 20003 [23:46:39]sum+1 = 20004 [23:46:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 338 28.10.2024 23:46 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192790 ФПД: 36898231605388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T234641&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192790&fm=36898231605388&tin=02508201610067®Number=0000000000091776&sum=20000 [23:46:41]StoreToDocumentArchive [23:46:41]shift 543 fd 192790 [23:46:41]save to /storage/0543/doc_00192790 [23:46:41]save last doc name /storage/0543/doc_00192790 to /storage/kkm_last_doc_name [23:46:41]save OK [23:46:41]Clear old archive folders... [23:46:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:46:41]tlvbuf is B6E9C6E0 [23:46:41]SAM_PROTO_ClearQueue [23:46:41]wFMCommunicate request_size=4 [23:46:41]MH_SAM_APDU [23:46:41]CAPDU: 80 09 00 00 [23:46:41]Write to MH i2c: E2 08 00 FD 16 80 09 00 00 00 00 00 00 85 [23:46:41]Write i2c OK [23:46:41]MH_I2C_Read... [23:46:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:46:41]Read from MH i2c: E2 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: E2 03 00 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: E2 03 00 FD 16 00 90 00 87 [23:46:41]RAPDU: 90 00 [23:46:41]wFMCommunicate OK [23:46:41]SAM_PROTO_ClearQueue done [23:46:41]KKMCreateOFDPacket [23:46:41]OFDProtocolAddRootSTLVToBuf [23:46:41]FM_MakeSignedData [23:46:41]FM_MakeSignedData [23:46:41]SAM_PROTO_SignData [23:46:41]wFMCommunicate request_size=4 [23:46:41]MH_SAM_APDU [23:46:41]CAPDU: 80 0D 01 02 [23:46:41]Write to MH i2c: E2 08 00 FE 16 80 0D 01 02 00 00 00 00 8D [23:46:41]Write i2c OK [23:46:41]MH_I2C_Read... [23:46:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:46:41]Read from MH i2c: E2 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: E2 03 00 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: E2 03 00 FE 16 00 90 00 88 [23:46:41]RAPDU: 90 00 [23:46:41]wFMCommunicate OK [23:46:41]wFMCommunicate request_size=255 [23:46:41]MH_SAM_APDU [23:46:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 61 22 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 F1 02 00 35 04 06 00 21 [23:46:41]Write to MH i2c: E2 02 01 FF 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 61 22 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 F1 02 00 35 04 06 00 21 00 00 8B [23:46:41]Write i2c OK [23:46:41]MH_I2C_Read... [23:46:41]OFD Sender: No OFD packet to send [23:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:41]Read from MH i2c: E2 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: E2 03 00 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: E2 03 00 FF 16 00 90 00 89 [23:46:41]RAPDU: 90 00 [23:46:41]wFMCommunicate OK [23:46:41]wFMCommunicate request_size=10 [23:46:41]MH_SAM_APDU [23:46:41]CAPDU: 80 0D 02 02 05 8F 09 FC D8 8C [23:46:41]Write to MH i2c: E2 0D 00 00 17 80 0D 02 02 05 00 8F 09 FC D8 8C 00 00 93 [23:46:41]Write i2c OK [23:46:41]MH_I2C_Read... [23:46:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:41]Read from MH i2c: E2 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: E2 03 00 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: E2 03 00 00 17 00 90 00 8B [23:46:41]RAPDU: 90 00 [23:46:41]wFMCommunicate OK [23:46:41]wFMCommunicate request_size=4 [23:46:41]MH_SAM_APDU [23:46:41]CAPDU: 80 0D 03 02 [23:46:41]Write to MH i2c: E2 08 00 01 17 80 0D 03 02 00 00 00 00 93 [23:46:41]Write i2c OK [23:46:41]MH_I2C_Read... [23:46:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:46:41]Read from MH i2c: E2 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: E2 0B 00 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: E2 0B 00 01 17 00 6B 39 CD 13 FA 0C 6E 2F 90 00 BB [23:46:41]RAPDU: 6B 39 CD 13 FA 0C 6E 2F 90 00 [23:46:41]wFMCommunicate OK [23:46:41]SAM_PROTO_SignData done [23:46:41]FM_MakeSignedData done [23:46:41]CreateOFDProtocolMessage [23:46:41]wFMCommunicate request_size=4 [23:46:41]MH_SAM_APDU [23:46:41]CAPDU: 80 11 00 00 [23:46:41]Write to MH i2c: E2 08 00 02 17 80 11 00 00 00 00 00 00 93 [23:46:41]Write i2c OK [23:46:41]MH_I2C_Read... [23:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:41]Read from MH i2c: E2 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: E2 17 00 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: E2 17 00 02 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E6 [23:46:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:46:41]wFMCommunicate OK [23:46:41]CreateOFDProtocolMessage done [23:46:41]OFDSenderStorePacket 192790 [23:46:41]StoreOFDPacket docnum=192790 [23:46:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6C E0 07 01 74 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 61 22 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 F1 02 00 35 04 06 00 21 8F 09 FC D8 8C 6B 39 CD 13 FA 0C 6E 2F [23:46:41]CheckFolder [23:46:41]dirname=/storage/ofd_packets [23:46:41]CheckFolder done [23:46:41]ProducePacketName [23:46:41]name=ofd_packets/00192790 [23:46:41]NVStorageSaveData ofd_packets/00192790 [23:46:41]File name is /storage/ofd_packets/00192790 [23:46:41]Write 301 bytes [23:46:41]NVStorageSaveData done [23:46:41]OFDSenderStorePacket done [23:46:41]KKMCreateOFDPacket done [23:46:41]NVStorageSaveData kkm_last_timestamp [23:46:41]File name is /storage/kkm_last_timestamp [23:46:41]Write 4 bytes [23:46:41]NVStorageSaveData done [23:46:41]ExternCall_PrintAddStr [23:46:41]wPrintStart [23:46:41]Write to MH i2c: 01 00 00 03 17 1A [23:46:41]Write i2c OK [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: 01 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: 01 07 00 [23:46:41]MH_I2C_Read... [23:46:41]Read from MH i2c: 01 07 00 03 17 00 00 00 00 00 FF 0F 2F [23:46:41]RasterBufferAndPrint [23:46:41]line Счет N : (1)32121 [23:46:41]line ИНН: 02508201610067 [23:46:41]line Контрольно-Кассовый Чек [23:46:41]line ПРОДАЖА [23:46:41]line ТРК (МРК, ГНК) : 12 [23:46:41]line Товар: 2710124130 [23:46:41]line Аи-92-К-5 [23:46:41]line 2.990 * 66.90 [23:46:41]line = 200.03 [23:46:41]line НДС 12% НСП 1% [23:46:41]line > о реализуемом товаре [23:46:41]line ОКРУГЛЕНИЕ: -0.03 [23:46:41]line ИТОГО: 200.00 [23:46:41]line Внесено: 200.00 [23:46:41]line СДАЧА: 0.00 [23:46:41]line НСП 1% : 1.77 [23:46:41]line НДС 12% : 21.24 [23:46:41]line Наличными: 200.00 [23:46:41]line Безнал.: 0.00 [23:46:41]line Место: АЗС № 170 "Партнер Нефть" [23:46:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:46:41]line СНО: Общий режим [23:46:41]line Чек 338 28.10.2024 23:46 [23:46:41]line Смена: 543 ФФД: 1.0 [23:46:41]line ЗНМ: 0300000110 [23:46:41]line РНМ: 0000000000091776 [23:46:41]line Версия ККМ: 001 [23:46:41]line ФМ: 0000000000871754 [23:46:41]line ФД: 192790 [23:46:41]line ФПД: 36898231605388 [23:46:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T234641&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192790&fm=36898231605388&tin=02508201610067®Number=0000000000091776&sum=20000 [23:46:41]OFD Sender: Processing packet 192790 [packets to send 75, broken 74] [23:46:41]ProducePacketName [23:46:41]name=ofd_packets/00192790 [23:46:41]OFD Sender: To server: pG, [23:46:41]CommunicateWithHost lk.salyk.kg:30040 [23:46:41]ConnectInit lk.salyk.kg [23:46:41]written 0, free lines is 4095 [23:46:42]Connected sock=9 [23:46:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6C E0 07 01 74 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 61 22 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 F1 02 00 35 04 06 00 21 8F 09 FC D8 8C 6B 39 CD 13 FA 0C 6E 2F [23:46:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 10 69 47 00 08 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 31 37 35 34 10 04 04 00 16 F1 02 00 F4 03 04 00 24 C7 1F 67 B6 04 01 00 00 BB 9F 36 7B EE D0 71 F3 [23:46:42]CommunicateWithHost err = 0 [23:46:42]CheckOFDResponse [23:46:42]1017 (14) - 77093643461234 [23:46:42]1041 (16) - 0000000000871754 [23:46:42]1040 (4) - 192790 [23:46:42]1012 (4) - 28.10.2024 17:17 [23:46:42]1206 (1) - 0 [23:46:42]OFD Sender: Remove packet 192790 [23:46:42]ProducePacketName [23:46:42]name=ofd_packets/00192790 [23:46:42]NVStorageDeleteData [23:46:42]Write to MH i2c: 01 00 00 2E 17 45 [23:46:42]Write i2c OK [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: 01 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: 01 07 00 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: 01 07 00 2E 17 00 00 00 00 00 AF 0C 07 [23:46:42]RasterBufferAndPrint [23:46:42]line [23:46:42]line [23:46:42]line [23:46:42]line [23:46:42]line [23:46:42]written 0, free lines is 3253 [23:46:42]MH_Cut [23:46:42]Write to MH i2c: D1 01 00 35 17 01 1E [23:46:42]Write i2c OK [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: D1 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: D1 01 00 [23:46:42]MH_I2C_Read... [23:46:42]Read from MH i2c: D1 01 00 35 17 00 1D [23:46:42]Write to MH i2c: 01 00 00 36 17 4D [23:46:42]Write i2c OK [23:46:42]MH_I2C_Read... [23:46:42]OFD Sender: No OFD packet to send [23:46:43]*** Cut start [23:46:43]*** Partial cut [23:46:43]*** CUTSNS_PIN = 1 [23:46:43]*** CUTSNS_PIN = 0 [23:46:43]*** Brake cut motor [23:46:43]Read from MH i2c: 01 [23:46:43]MH_I2C_Read... [23:46:43]*** Stop cut motor [23:46:43]*** Cut end [23:46:43]Read from MH i2c: 01 07 00 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: 01 07 00 36 17 00 00 00 00 00 FF 0F 62 [23:46:43]process_action close_receipt done [23:46:43]requested_data is exist [23:46:43]produce_requested_data [23:46:43]requested_item fm.sn is exist - process it [23:46:43]wFMCommunicate request_size=4 [23:46:43]MH_SAM_APDU [23:46:43]CAPDU: 80 11 00 00 [23:46:43]Write to MH i2c: E2 08 00 37 17 80 11 00 00 00 00 00 00 C8 [23:46:43]Write i2c OK [23:46:43]MH_I2C_Read... [23:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:43]Read from MH i2c: E2 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 17 00 [23:46:43]MH_I2C_Read... [23:46:43]Read from MH i2c: E2 17 00 37 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1B [23:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:46:43]wFMCommunicate OK [23:46:43]requested_item fd.num is exist - process it [23:46:43]SAM_PROTO_GetFieldsCounters [23:46:43]wFMCommunicate request_size=4 [23:46:43]MH_SAM_APDU [23:46:43]CAPDU: 80 13 00 00 [23:46:43]Write to MH i2c: E2 08 00 38 17 80 13 00 00 00 00 00 00 CB [23:46:43]Write i2c OK [23:46:43]MH_I2C_Read... [23:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:44]Read from MH i2c: E2 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: E2 62 00 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: E2 62 00 38 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 16 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 14 [23:46:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 16 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:46:44]wFMCommunicate OK [23:46:44]SAM_PROTO_GetFieldsCounters done [23:46:44]requested_item shift.num is exist - process it [23:46:44]requested_item shift.opened is exist - process it [23:46:44]req_shift_opened [23:46:44]FM_GetShiftState [23:46:44]SAM_PROTO_GetShiftState [23:46:44]wFMCommunicate request_size=4 [23:46:44]MH_SAM_APDU [23:46:44]CAPDU: 80 13 01 00 [23:46:44]Write to MH i2c: E2 08 00 39 17 80 13 01 00 00 00 00 00 CD [23:46:44]Write i2c OK [23:46:44]MH_I2C_Read... [23:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:44]Read from MH i2c: E2 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: E2 0E 00 [23:46:44]MH_I2C_Read... [23:46:44]Read from MH i2c: E2 0E 00 39 17 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1D [23:46:44]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [23:46:44]wFMCommunicate OK [23:46:44]SAM_PROTO_GetShiftState done [23:46:44]FM_GetShiftState done [23:46:44]req_shift_opened done [23:46:44]requested_item shift.open_date is exist - process it [23:46:44]req_shift_open_date [23:46:44]req_shift_open_date done [23:46:44]produce_requested_data done [23:46:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192790,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [23:46:44]process_action_free close_receipt [23:46:44]json_value_free [23:46:44]json_value_free done [23:46:44]process_json_proto returns [23:46:44]Send response to host [23:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192790,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [23:46:44]free response buf [23:46:44]execute_script done [23:46:44]execute_script returns [23:46:44]free content buf [23:46:44]Sock 10.Close socket [23:46:44]Sock 10.Thread stoped [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50: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:53]OFD Sender: No OFD packet to send [23:52:58]OFD Sender: No OFD packet to send [23:53:03]OFD Sender: No OFD packet to send [23:53:08]OFD Sender: No OFD packet to send [23:53:13]OFD Sender: No OFD packet to send [23:53:18]OFD Sender: No OFD packet to send [23:53:23]OFD Sender: No OFD packet to send [23:53:28]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:03]OFD Sender: No OFD packet to send [23:54:08]OFD Sender: No OFD packet to send [23:54:09]accept exits with 8 [23:54:09]New connection [23:54:09]New thread 3066658148 created [23:54:09]Thread 3066801508 joined [23:54:09]Waiting for new connection... [23:54:09] Sock 8.Parse request [23:54:09]Sock 8.Check first char [23:54:09]Sock 8.First char is OK [23:54:09]request: POST /json_proto HTTP/1.0 [23:54:09]Method: POST [23:54:09]URL: /json_proto [23:54:09]Method is POST - this is cgi request [23:54:09]url: /json_proto [23:54:09]query_string will be loaded in cgi processing [23:54:09]execute_cgi json_proto POST (null) [23:54:09]execute_cgi path=json_proto method=POST [23:54:09]POST find Content-Length [23:54:09]Host: 172.17.63.131:8080 [23:54:09]Content-Length: 681 [23:54:09]Content-Type: application/json [23:54:09] [23:54:09]POST finish read [23:54:09]Found Content-Length = 681 [23:54:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:09]execute_script... [23:54:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:09]POST & json_proto [23:54:09]process_json_proto [23:54:09]json parsed OK: [23:54:09]protocol is kg_v1.0 [23:54:09]action value=close_receipt [23:54:09]process_action close_receipt [23:54:09]cmd_close_receipt [23:54:09]MH_GetDate [23:54:09]Write to MH i2c: F0 00 00 3A 17 40 [23:54:09]Write i2c OK [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: F0 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: F0 09 00 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: F0 09 00 3A 17 00 23 24 20 67 22 05 6E 64 10 [23:54:09]GetLastDocTimeStamp 1730159201 [23:54:09]current date 1730159651 [23:54:09]FM_GetShiftState [23:54:09]SAM_PROTO_GetShiftState [23:54:09]wFMCommunicate request_size=4 [23:54:09]MH_SAM_APDU [23:54:09]CAPDU: 80 13 01 00 [23:54:09]Write to MH i2c: E2 08 00 3B 17 80 13 01 00 00 00 00 00 CF [23:54:09]Write i2c OK [23:54:09]MH_I2C_Read... [23:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:09]Read from MH i2c: E2 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 0E 00 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: E2 0E 00 3B 17 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 1F [23:54:09]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [23:54:09]wFMCommunicate OK [23:54:09]SAM_PROTO_GetShiftState done [23:54:09]FM_GetShiftState done [23:54:09]opened in 1730075620 [23:54:09]opened+sec_in_day 1730162020 [23:54:09]quantity*price = 100015 [23:54:09]sum+1 = 100017 [23:54:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 339 28.10.2024 23:54 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192791 ФПД: 219260565685688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T235411&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192791&fm=219260565685688&tin=02508201610067®Number=0000000000091776&sum=100000 [23:54:10]StoreToDocumentArchive [23:54:10]shift 543 fd 192791 [23:54:10]save to /storage/0543/doc_00192791 [23:54:10]save last doc name /storage/0543/doc_00192791 to /storage/kkm_last_doc_name [23:54:10]save OK [23:54:10]Clear old archive folders... [23:54:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:54:10]tlvbuf is B6E9C0E0 [23:54:10]SAM_PROTO_ClearQueue [23:54:10]wFMCommunicate request_size=4 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 09 00 00 [23:54:10]Write to MH i2c: E2 08 00 48 17 80 09 00 00 00 00 00 00 D1 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 03 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 03 00 48 17 00 90 00 D3 [23:54:10]RAPDU: 90 00 [23:54:10]wFMCommunicate OK [23:54:10]SAM_PROTO_ClearQueue done [23:54:10]KKMCreateOFDPacket [23:54:10]OFDProtocolAddRootSTLVToBuf [23:54:10]FM_MakeSignedData [23:54:10]FM_MakeSignedData [23:54:10]SAM_PROTO_SignData [23:54:10]wFMCommunicate request_size=4 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 0D 01 02 [23:54:10]Write to MH i2c: E2 08 00 49 17 80 0D 01 02 00 00 00 00 D9 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 03 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 03 00 49 17 00 90 00 D4 [23:54:10]RAPDU: 90 00 [23:54:10]wFMCommunicate OK [23:54:10]wFMCommunicate request_size=255 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 23 24 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 F1 02 00 35 04 06 00 C7 [23:54:10]Write to MH i2c: E2 02 01 4A 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 23 24 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 F1 02 00 35 04 06 00 C7 00 00 7B [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:11]Read from MH i2c: E2 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: E2 03 00 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: E2 03 00 4A 17 00 90 00 D5 [23:54:11]RAPDU: 90 00 [23:54:11]wFMCommunicate OK [23:54:11]wFMCommunicate request_size=10 [23:54:11]MH_SAM_APDU [23:54:11]CAPDU: 80 0D 02 02 05 6A 94 21 85 B8 [23:54:11]Write to MH i2c: E2 0D 00 4B 17 80 0D 02 02 05 00 6A 94 21 85 B8 00 00 42 [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:11]Read from MH i2c: E2 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: E2 03 00 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: E2 03 00 4B 17 00 90 00 D6 [23:54:11]RAPDU: 90 00 [23:54:11]wFMCommunicate OK [23:54:11]wFMCommunicate request_size=4 [23:54:11]MH_SAM_APDU [23:54:11]CAPDU: 80 0D 03 02 [23:54:11]Write to MH i2c: E2 08 00 4C 17 80 0D 03 02 00 00 00 00 DE [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:11]Read from MH i2c: E2 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: E2 0B 00 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: E2 0B 00 4C 17 00 3D C5 DC 9D 17 78 48 B7 90 00 E8 [23:54:11]RAPDU: 3D C5 DC 9D 17 78 48 B7 90 00 [23:54:11]wFMCommunicate OK [23:54:11]SAM_PROTO_SignData done [23:54:11]FM_MakeSignedData done [23:54:11]CreateOFDProtocolMessage [23:54:11]wFMCommunicate request_size=4 [23:54:11]MH_SAM_APDU [23:54:11]CAPDU: 80 11 00 00 [23:54:11]Write to MH i2c: E2 08 00 4D 17 80 11 00 00 00 00 00 00 DE [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:11]Read from MH i2c: E2 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: E2 17 00 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: E2 17 00 4D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 31 [23:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:54:11]wFMCommunicate OK [23:54:11]CreateOFDProtocolMessage done [23:54:11]OFDSenderStorePacket 192791 [23:54:11]StoreOFDPacket docnum=192791 [23:54:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5F 45 07 01 11 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 23 24 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 F1 02 00 35 04 06 00 C7 6A 94 21 85 B8 3D C5 DC 9D 17 78 48 B7 [23:54:11]CheckFolder [23:54:11]dirname=/storage/ofd_packets [23:54:11]CheckFolder done [23:54:11]ProducePacketName [23:54:11]name=ofd_packets/00192791 [23:54:11]NVStorageSaveData ofd_packets/00192791 [23:54:11]File name is /storage/ofd_packets/00192791 [23:54:11]Write 301 bytes [23:54:11]NVStorageSaveData done [23:54:11]OFDSenderStorePacket done [23:54:11]KKMCreateOFDPacket done [23:54:11]NVStorageSaveData kkm_last_timestamp [23:54:11]File name is /storage/kkm_last_timestamp [23:54:11]Write 4 bytes [23:54:11]NVStorageSaveData done [23:54:11]ExternCall_PrintAddStr [23:54:11]wPrintStart [23:54:11]Write to MH i2c: 01 00 00 4E 17 65 [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: 01 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: 01 07 00 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: 01 07 00 4E 17 00 00 00 00 00 FF 0F 7A [23:54:11]RasterBufferAndPrint [23:54:11]line Счет N : (1)32122 [23:54:11]line ИНН: 02508201610067 [23:54:11]line Контрольно-Кассовый Чек [23:54:11]line ПРОДАЖА [23:54:11]line ТРК (МРК, ГНК) : 21 [23:54:11]line Товар: 2710124130 [23:54:11]line Аи-92-К-5 [23:54:11]line 14.950 * 66.90 [23:54:11]line = 1000.16 [23:54:11]line НДС 12% НСП 1% [23:54:11]line > о реализуемом товаре [23:54:11]line ОКРУГЛЕНИЕ: -0.16 [23:54:11]line ИТОГО: 1000.00 [23:54:11]line Внесено: 1000.00 [23:54:11]line СДАЧА: 0.00 [23:54:11]line НСП 1% : 8.85 [23:54:11]line НДС 12% : 106.21 [23:54:11]line Наличными: 1000.00 [23:54:11]line Безнал.: 0.00 [23:54:11]line Место: АЗС № 170 "Партнер Нефть" [23:54:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:54:11]line СНО: Общий режим [23:54:11]line Чек 339 28.10.2024 23:54 [23:54:11]line Смена: 543 ФФД: 1.0 [23:54:11]line ЗНМ: 0300000110 [23:54:11]line РНМ: 0000000000091776 [23:54:11]line Версия ККМ: 001 [23:54:11]line ФМ: 0000000000871754 [23:54:11]line ФД: 192791 [23:54:11]line ФПД: 219260565685688 [23:54:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T235411&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192791&fm=219260565685688&tin=02508201610067®Number=0000000000091776&sum=100000 [23:54:11]OFD Sender: Processing packet 192791 [packets to send 75, broken 74] [23:54:11]ProducePacketName [23:54:11]name=ofd_packets/00192791 [23:54:11]OFD Sender: To server: pG, [23:54:11]CommunicateWithHost lk.salyk.kg:30040 [23:54:11]ConnectInit lk.salyk.kg [23:54:11]written 0, free lines is 4095 [23:54:11]Connected sock=10 [23:54:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5F 45 07 01 11 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 23 24 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 F1 02 00 35 04 06 00 C7 6A 94 21 85 B8 3D C5 DC 9D 17 78 48 B7 [23:54:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6D EB 47 00 52 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 F1 02 00 F4 03 04 00 E5 C8 1F 67 B6 04 01 00 00 DA 02 66 5A 7E 6C AC 4A [23:54:11]CommunicateWithHost err = 0 [23:54:11]CheckOFDResponse [23:54:11]1017 (14) - 77093643461234 [23:54:11]1041 (16) - 0000000000871754 [23:54:11]1040 (4) - 192791 [23:54:11]1012 (4) - 28.10.2024 17:24 [23:54:11]1206 (1) - 0 [23:54:11]OFD Sender: Remove packet 192791 [23:54:12]ProducePacketName [23:54:12]name=ofd_packets/00192791 [23:54:12]NVStorageDeleteData [23:54:12]Write to MH i2c: 01 00 00 79 17 90 [23:54:12]Write i2c OK [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: 01 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: 01 07 00 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: 01 07 00 79 17 00 00 00 00 00 C6 0C 69 [23:54:12]RasterBufferAndPrint [23:54:12]line [23:54:12]line [23:54:12]line [23:54:12]line [23:54:12]line [23:54:12]written 0, free lines is 3276 [23:54:12]MH_Cut [23:54:12]Write to MH i2c: D1 01 00 80 17 01 69 [23:54:12]Write i2c OK [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: D1 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: D1 01 00 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: D1 01 00 80 17 00 68 [23:54:12]Write to MH i2c: 01 00 00 81 17 98 [23:54:12]Write i2c OK [23:54:12]MH_I2C_Read... [23:54:12]OFD Sender: No OFD packet to send [23:54:12]*** Cut start [23:54:12]*** Partial cut [23:54:12]*** CUTSNS_PIN = 1 [23:54:13]*** CUTSNS_PIN = 0 [23:54:13]*** Brake cut motor [23:54:13]Read from MH i2c: 01 [23:54:13]MH_I2C_Read... [23:54:13]*** Stop cut motor [23:54:13]*** Cut end [23:54:13]Read from MH i2c: 01 07 00 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: 01 07 00 81 17 00 00 00 00 00 FF 0F AD [23:54:13]process_action close_receipt done [23:54:13]requested_data is exist [23:54:13]produce_requested_data [23:54:13]requested_item fm.sn is exist - process it [23:54:13]wFMCommunicate request_size=4 [23:54:13]MH_SAM_APDU [23:54:13]CAPDU: 80 11 00 00 [23:54:13]Write to MH i2c: E2 08 00 82 17 80 11 00 00 00 00 00 00 13 [23:54:13]Write i2c OK [23:54:13]MH_I2C_Read... [23:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:13]Read from MH i2c: E2 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 17 00 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 17 00 82 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 66 [23:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:54:13]wFMCommunicate OK [23:54:13]requested_item fd.num is exist - process it [23:54:13]SAM_PROTO_GetFieldsCounters [23:54:13]wFMCommunicate request_size=4 [23:54:13]MH_SAM_APDU [23:54:13]CAPDU: 80 13 00 00 [23:54:13]Write to MH i2c: E2 08 00 83 17 80 13 00 00 00 00 00 00 16 [23:54:13]Write i2c OK [23:54:13]MH_I2C_Read... [23:54:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:13]Read from MH i2c: E2 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 62 00 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 62 00 83 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 17 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [23:54:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 17 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:13]wFMCommunicate OK [23:54:13]SAM_PROTO_GetFieldsCounters done [23:54:13]requested_item shift.num is exist - process it [23:54:13]requested_item shift.opened is exist - process it [23:54:13]req_shift_opened [23:54:13]FM_GetShiftState [23:54:13]SAM_PROTO_GetShiftState [23:54:13]wFMCommunicate request_size=4 [23:54:13]MH_SAM_APDU [23:54:13]CAPDU: 80 13 01 00 [23:54:13]Write to MH i2c: E2 08 00 84 17 80 13 01 00 00 00 00 00 18 [23:54:13]Write i2c OK [23:54:13]MH_I2C_Read... [23:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:13]Read from MH i2c: E2 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 0E 00 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: E2 0E 00 84 17 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 68 [23:54:13]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [23:54:13]wFMCommunicate OK [23:54:13]SAM_PROTO_GetShiftState done [23:54:13]FM_GetShiftState done [23:54:13]req_shift_opened done [23:54:13]requested_item shift.open_date is exist - process it [23:54:13]req_shift_open_date [23:54:13]req_shift_open_date done [23:54:13]produce_requested_data done [23:54:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192791,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [23:54:13]process_action_free close_receipt [23:54:13]json_value_free [23:54:13]json_value_free done [23:54:13]process_json_proto returns [23:54:13]Send response to host [23:54:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192791,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [23:54:13]free response buf [23:54:13]execute_script done [23:54:13]execute_script returns [23:54:13]free content buf [23:54:13]Sock 8.Close socket [23:54:13]Sock 8.Thread stoped [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:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:48]OFD Sender: No OFD packet to send [00:04:53]OFD Sender: No OFD packet to send [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:18]OFD Sender: No OFD packet to send [00:05:23]OFD Sender: No OFD packet to send [00:05:28]OFD Sender: No OFD packet to send [00:05:33]OFD Sender: No OFD packet to send [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:18]OFD Sender: No OFD packet to send [00:06:23]OFD Sender: No OFD packet to send [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]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:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:00]accept exits with 9 [00:24:00]New connection [00:24:00]New thread 3066801508 created [00:24:00]Thread 3066658148 joined [00:24:00]Waiting for new connection... [00:24:00] Sock 9.Parse request [00:24:00]Sock 9.Check first char [00:24:00]Sock 9.First char is OK [00:24:00]request: POST /json_proto HTTP/1.0 [00:24:00]Method: POST [00:24:00]URL: /json_proto [00:24:00]Method is POST - this is cgi request [00:24:00]url: /json_proto [00:24:00]query_string will be loaded in cgi processing [00:24:00]execute_cgi json_proto POST (null) [00:24:00]execute_cgi path=json_proto method=POST [00:24:00]POST find Content-Length [00:24:00]Host: 172.17.63.131:8080 [00:24:00]Content-Length: 863 [00:24:00]Content-Type: application/json [00:24:00] [00:24:00]POST finish read [00:24:00]Found Content-Length = 863 [00:24:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 900.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:00]execute_script... [00:24:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 900.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:00]POST & json_proto [00:24:00]process_json_proto [00:24:00]json parsed OK: [00:24:00]protocol is kg_v1.0 [00:24:00]action value=close_receipt [00:24:00]process_action close_receipt [00:24:00]cmd_close_receipt [00:24:00]MH_GetDate [00:24:00]Write to MH i2c: F0 00 00 85 17 8B [00:24:00]Write i2c OK [00:24:00]MH_I2C_Read... [00:24:00]Read from MH i2c: F0 [00:24:00]MH_I2C_Read... [00:24:00]Read from MH i2c: F0 09 00 [00:24:00]MH_I2C_Read... [00:24:00]Read from MH i2c: F0 09 00 85 17 00 22 2B 20 67 22 05 6E 64 61 [00:24:00]GetLastDocTimeStamp 1730159651 [00:24:00]current date 1730161442 [00:24:00]FM_GetShiftState [00:24:00]SAM_PROTO_GetShiftState [00:24:00]wFMCommunicate request_size=4 [00:24:00]MH_SAM_APDU [00:24:00]CAPDU: 80 13 01 00 [00:24:00]Write to MH i2c: E2 08 00 86 17 80 13 01 00 00 00 00 00 1A [00:24:00]Write i2c OK [00:24:00]MH_I2C_Read... [00:24:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:00]Read from MH i2c: E2 [00:24:00]MH_I2C_Read... [00:24:00]Read from MH i2c: E2 0E 00 [00:24:00]MH_I2C_Read... [00:24:00]Read from MH i2c: E2 0E 00 86 17 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 6A [00:24:00]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [00:24:00]wFMCommunicate OK [00:24:00]SAM_PROTO_GetShiftState done [00:24:00]FM_GetShiftState done [00:24:00]opened in 1730075620 [00:24:00]opened+sec_in_day 1730162020 [00:24:00]quantity*price = 90047 [00:24:00]sum+1 = 90048 [00:24:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.47 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 0.00 Безнал.: 900.47 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 340 29.10.2024 00:24 Смена: 543 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 192792 ФПД: 100535589104178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T002402&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192792&fm=100535589104178&tin=02508201610067®Number=0000000000091776&sum=90047 [00:24:02]StoreToDocumentArchive [00:24:02]shift 543 fd 192792 [00:24:02]save to /storage/0543/doc_00192792 [00:24:02]save last doc name /storage/0543/doc_00192792 to /storage/kkm_last_doc_name [00:24:02]save OK [00:24:02]Clear old archive folders... [00:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:24:02]tlvbuf is 00FACAF0 [00:24:02]SAM_PROTO_ClearQueue [00:24:02]wFMCommunicate request_size=4 [00:24:02]MH_SAM_APDU [00:24:02]CAPDU: 80 09 00 00 [00:24:02]Write to MH i2c: E2 08 00 93 17 80 09 00 00 00 00 00 00 1C [00:24:02]Write i2c OK [00:24:02]MH_I2C_Read... [00:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:24:02]Read from MH i2c: E2 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 03 00 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 03 00 93 17 00 90 00 1E [00:24:02]RAPDU: 90 00 [00:24:02]wFMCommunicate OK [00:24:02]SAM_PROTO_ClearQueue done [00:24:02]KKMCreateOFDPacket [00:24:02]OFDProtocolAddRootSTLVToBuf [00:24:02]FM_MakeSignedData [00:24:02]FM_MakeSignedData [00:24:02]SAM_PROTO_SignData [00:24:02]wFMCommunicate request_size=4 [00:24:02]MH_SAM_APDU [00:24:02]CAPDU: 80 0D 01 02 [00:24:02]Write to MH i2c: E2 08 00 94 17 80 0D 01 02 00 00 00 00 24 [00:24:02]Write i2c OK [00:24:02]MH_I2C_Read... [00:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:24:02]Read from MH i2c: E2 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 03 00 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 03 00 94 17 00 90 00 1F [00:24:02]RAPDU: 90 00 [00:24:02]wFMCommunicate OK [00:24:02]wFMCommunicate request_size=255 [00:24:02]MH_SAM_APDU [00:24: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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 22 2B 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 F1 02 00 35 04 06 00 5B [00:24:02]Write to MH i2c: E2 02 01 95 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 22 2B 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 F1 02 00 35 04 06 00 5B 00 00 E3 [00:24:02]Write i2c OK [00:24:02]MH_I2C_Read... [00:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:02]Read from MH i2c: E2 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 03 00 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 03 00 95 17 00 90 00 20 [00:24:02]RAPDU: 90 00 [00:24:02]wFMCommunicate OK [00:24:02]wFMCommunicate request_size=10 [00:24:02]MH_SAM_APDU [00:24:02]CAPDU: 80 0D 02 02 05 6F C4 13 6A 32 [00:24:02]Write to MH i2c: E2 0D 00 96 17 80 0D 02 02 05 00 6F C4 13 6A 32 00 00 13 [00:24:02]Write i2c OK [00:24:02]MH_I2C_Read... [00:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:02]Read from MH i2c: E2 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 03 00 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 03 00 96 17 00 90 00 21 [00:24:02]RAPDU: 90 00 [00:24:02]wFMCommunicate OK [00:24:02]wFMCommunicate request_size=4 [00:24:02]MH_SAM_APDU [00:24:02]CAPDU: 80 0D 03 02 [00:24:02]Write to MH i2c: E2 08 00 97 17 80 0D 03 02 00 00 00 00 29 [00:24:02]Write i2c OK [00:24:02]MH_I2C_Read... [00:24:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:24:02]Read from MH i2c: E2 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 0B 00 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 0B 00 97 17 00 02 48 99 22 B1 AA E0 90 90 00 FA [00:24:02]RAPDU: 02 48 99 22 B1 AA E0 90 90 00 [00:24:02]wFMCommunicate OK [00:24:02]SAM_PROTO_SignData done [00:24:02]FM_MakeSignedData done [00:24:02]CreateOFDProtocolMessage [00:24:02]wFMCommunicate request_size=4 [00:24:02]MH_SAM_APDU [00:24:02]CAPDU: 80 11 00 00 [00:24:02]Write to MH i2c: E2 08 00 98 17 80 11 00 00 00 00 00 00 29 [00:24:02]Write i2c OK [00:24:02]MH_I2C_Read... [00:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:02]Read from MH i2c: E2 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 17 00 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 17 00 98 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7C [00:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:24:02]wFMCommunicate OK [00:24:02]CreateOFDProtocolMessage done [00:24:02]OFDSenderStorePacket 192792 [00:24:02]StoreOFDPacket docnum=192792 [00:24:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BC E1 07 01 94 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 22 2B 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 F1 02 00 35 04 06 00 5B 6F C4 13 6A 32 02 48 99 22 B1 AA E0 90 [00:24:02]CheckFolder [00:24:02]dirname=/storage/ofd_packets [00:24:02]CheckFolder done [00:24:02]ProducePacketName [00:24:02]name=ofd_packets/00192792 [00:24:02]NVStorageSaveData ofd_packets/00192792 [00:24:02]File name is /storage/ofd_packets/00192792 [00:24:02]Write 301 bytes [00:24:02]NVStorageSaveData done [00:24:02]OFDSenderStorePacket done [00:24:02]KKMCreateOFDPacket done [00:24:02]NVStorageSaveData kkm_last_timestamp [00:24:02]File name is /storage/kkm_last_timestamp [00:24:02]Write 4 bytes [00:24:02]NVStorageSaveData done [00:24:02]ExternCall_PrintAddStr [00:24:02]wPrintStart [00:24:02]Write to MH i2c: 01 00 00 99 17 B0 [00:24:02]Write i2c OK [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: 01 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: 01 07 00 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: 01 07 00 99 17 00 00 00 00 00 FF 0F C5 [00:24:02]RasterBufferAndPrint [00:24:02]line Счет N : (1)32123 [00:24:02]line ИНН: 02508201610067 [00:24:02]line Контрольно-Кассовый Чек [00:24:02]line ПРОДАЖА [00:24:02]line ТРК (МРК, ГНК) : 12 [00:24:02]line Товар: 2710124130 [00:24:02]line Аи-92-К-5 [00:24:02]line 13.460 * 66.90 [00:24:02]line = 900.47 [00:24:02]line НДС 12% НСП 1% [00:24:02]line > о реализуемом товаре [00:24:02]line ИТОГО: 900.47 [00:24:02]line НСП 1% : 7.97 [00:24:02]line НДС 12% : 95.62 [00:24:02]line Наличными: 0.00 [00:24:02]line Безнал.: 900.47 [00:24:02]line Место: АЗС № 170 "Партнер Нефть" [00:24:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [00:24:02]line СНО: Общий режим [00:24:02]line Чек 340 29.10.2024 00:24 [00:24:02]line Смена: 543 ФФД: 1.0 [00:24:02]line ЗНМ: 0300000110 [00:24:02]line РНМ: 0000000000091776 [00:24:02]line Версия ККМ: 001 [00:24:02]line Платежная система: Кыргызкоммерцбанк [00:24:02]line ФМ: 0000000000871754 [00:24:02]line ФД: 192792 [00:24:02]line ФПД: 100535589104178 [00:24:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T002402&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192792&fm=100535589104178&tin=02508201610067®Number=0000000000091776&sum=90047 [00:24:02]OFD Sender: Processing packet 192792 [packets to send 75, broken 74] [00:24:02]ProducePacketName [00:24:02]name=ofd_packets/00192792 [00:24:02]OFD Sender: To server: pG, [00:24:02]CommunicateWithHost lk.salyk.kg:30040 [00:24:02]ConnectInit lk.salyk.kg [00:24:02]written 0, free lines is 4095 [00:24:03]Connected sock=10 [00:24:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BC E1 07 01 94 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 22 2B 20 67 0E 04 04 00 1F 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 F1 02 00 35 04 06 00 5B 6F C4 13 6A 32 02 48 99 22 B1 AA E0 90 [00:24:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BB CB 47 00 DE AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 F1 02 00 F4 03 04 00 E5 CF 1F 67 B6 04 01 00 00 E9 26 AE A8 6D 10 B6 06 [00:24:03]CommunicateWithHost err = 0 [00:24:03]CheckOFDResponse [00:24:03]1017 (14) - 77093643461234 [00:24:03]1041 (16) - 0000000000871754 [00:24:03]1040 (4) - 192792 [00:24:03]1012 (4) - 28.10.2024 17:54 [00:24:03]1206 (1) - 0 [00:24:03]OFD Sender: Remove packet 192792 [00:24:03]ProducePacketName [00:24:03]name=ofd_packets/00192792 [00:24:03]NVStorageDeleteData [00:24:03]Write to MH i2c: 01 00 00 C3 17 DA [00:24:03]Write i2c OK [00:24:03]MH_I2C_Read... [00:24:03]Read from MH i2c: 01 [00:24:03]MH_I2C_Read... [00:24:03]Read from MH i2c: 01 07 00 [00:24:03]MH_I2C_Read... [00:24:03]Read from MH i2c: 01 07 00 C3 17 00 00 00 00 00 D7 0C C4 [00:24:03]RasterBufferAndPrint [00:24:03]line [00:24:03]line [00:24:03]line [00:24:03]line [00:24:03]line [00:24:03]written 0, free lines is 3295 [00:24:03]MH_Cut [00:24:03]Write to MH i2c: D1 01 00 CA 17 01 B3 [00:24:03]Write i2c OK [00:24:03]MH_I2C_Read... [00:24:03]Read from MH i2c: D1 [00:24:03]MH_I2C_Read... [00:24:03]Read from MH i2c: D1 01 00 [00:24:03]MH_I2C_Read... [00:24:03]Read from MH i2c: D1 01 00 CA 17 00 B2 [00:24:03]Write to MH i2c: 01 00 00 CB 17 E2 [00:24:03]Write i2c OK [00:24:03]MH_I2C_Read... [00:24:03]OFD Sender: No OFD packet to send [00:24:04]*** Cut start [00:24:04]*** Partial cut [00:24:04]*** CUTSNS_PIN = 1 [00:24:04]*** CUTSNS_PIN = 0 [00:24:04]*** Brake cut motor [00:24:04]Read from MH i2c: 01 [00:24:04]MH_I2C_Read... [00:24:04]*** Stop cut motor [00:24:04]*** Cut end [00:24:04]Read from MH i2c: 01 07 00 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: 01 07 00 CB 17 00 00 00 00 00 FF 0F F7 [00:24:04]process_action close_receipt done [00:24:04]requested_data is exist [00:24:04]produce_requested_data [00:24:04]requested_item fm.sn is exist - process it [00:24:04]wFMCommunicate request_size=4 [00:24:04]MH_SAM_APDU [00:24:04]CAPDU: 80 11 00 00 [00:24:04]Write to MH i2c: E2 08 00 CC 17 80 11 00 00 00 00 00 00 5D [00:24:04]Write i2c OK [00:24:04]MH_I2C_Read... [00:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:04]Read from MH i2c: E2 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: E2 17 00 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: E2 17 00 CC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B0 [00:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:24:04]wFMCommunicate OK [00:24:04]requested_item fd.num is exist - process it [00:24:04]SAM_PROTO_GetFieldsCounters [00:24:04]wFMCommunicate request_size=4 [00:24:04]MH_SAM_APDU [00:24:04]CAPDU: 80 13 00 00 [00:24:04]Write to MH i2c: E2 08 00 CD 17 80 13 00 00 00 00 00 00 60 [00:24:04]Write i2c OK [00:24:04]MH_I2C_Read... [00:24:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:05]Read from MH i2c: E2 [00:24:05]MH_I2C_Read... [00:24:05]Read from MH i2c: E2 62 00 [00:24:05]MH_I2C_Read... [00:24:05]Read from MH i2c: E2 62 00 CD 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [00:24:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:05]wFMCommunicate OK [00:24:05]SAM_PROTO_GetFieldsCounters done [00:24:05]requested_item shift.num is exist - process it [00:24:05]requested_item shift.opened is exist - process it [00:24:05]req_shift_opened [00:24:05]FM_GetShiftState [00:24:05]SAM_PROTO_GetShiftState [00:24:05]wFMCommunicate request_size=4 [00:24:05]MH_SAM_APDU [00:24:05]CAPDU: 80 13 01 00 [00:24:05]Write to MH i2c: E2 08 00 CE 17 80 13 01 00 00 00 00 00 62 [00:24:05]Write i2c OK [00:24:05]MH_I2C_Read... [00:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:05]Read from MH i2c: E2 [00:24:05]MH_I2C_Read... [00:24:05]Read from MH i2c: E2 0E 00 [00:24:05]MH_I2C_Read... [00:24:05]Read from MH i2c: E2 0E 00 CE 17 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B2 [00:24:05]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [00:24:05]wFMCommunicate OK [00:24:05]SAM_PROTO_GetShiftState done [00:24:05]FM_GetShiftState done [00:24:05]req_shift_opened done [00:24:05]requested_item shift.open_date is exist - process it [00:24:05]req_shift_open_date [00:24:05]req_shift_open_date done [00:24:05]produce_requested_data done [00:24:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192792,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [00:24:05]process_action_free close_receipt [00:24:05]json_value_free [00:24:05]json_value_free done [00:24:05]process_json_proto returns [00:24:05]Send response to host [00:24:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192792,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [00:24:05]free response buf [00:24:05]execute_script done [00:24:05]execute_script returns [00:24:05]free content buf [00:24:05]Sock 9.Close socket [00:24:05]Sock 9.Thread stoped [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:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:05]accept exits with 8 [00:30:05]New connection [00:30:05]New thread 3066658148 created [00:30:05]Thread 3066801508 joined [00:30:05]Waiting for new connection... [00:30:05] Sock 8.Parse request [00:30:05]Sock 8.Check first char [00:30:05]Sock 8.First char is OK [00:30:05]request: POST /json_proto HTTP/1.0 [00:30:05]Method: POST [00:30:05]URL: /json_proto [00:30:05]Method is POST - this is cgi request [00:30:05]url: /json_proto [00:30:05]query_string will be loaded in cgi processing [00:30:05]execute_cgi json_proto POST (null) [00:30:05]execute_cgi path=json_proto method=POST [00:30:05]POST find Content-Length [00:30:05]Host: 172.17.63.131:8080 [00:30:05]Content-Length: 215 [00:30:05]Content-Type: application/json [00:30:05] [00:30:05]POST finish read [00:30:05]Found Content-Length = 215 [00:30:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:05]execute_script... [00:30:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:05]POST & json_proto [00:30:05]process_json_proto [00:30:05]json parsed OK: [00:30:05]protocol is kg_v1.0 [00:30:05]action value=get_value [00:30:05]process_action get_value [00:30:05]cmd_get_value [00:30:05]process_action get_value done [00:30:05]requested_data is exist [00:30:05]produce_requested_data [00:30:05]requested_item kkm.sn is exist - process it [00:30:05]requested_item kkm.ver is exist - process it [00:30:05]requested_item fm.sn is exist - process it [00:30:05]wFMCommunicate request_size=4 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 11 00 00 [00:30:05]Write to MH i2c: E2 08 00 CF 17 80 11 00 00 00 00 00 00 60 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 17 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 17 00 CF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B3 [00:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:30:05]wFMCommunicate OK [00:30:05]requested_item fd.num is exist - process it [00:30:05]SAM_PROTO_GetFieldsCounters [00:30:05]wFMCommunicate request_size=4 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 13 00 00 [00:30:05]Write to MH i2c: E2 08 00 D0 17 80 13 00 00 00 00 00 00 63 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 62 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 62 00 D0 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [00:30:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:05]wFMCommunicate OK [00:30:05]SAM_PROTO_GetFieldsCounters done [00:30:05]requested_item shift.num is exist - process it [00:30:05]requested_item shift.opened is exist - process it [00:30:05]req_shift_opened [00:30:05]FM_GetShiftState [00:30:05]SAM_PROTO_GetShiftState [00:30:05]wFMCommunicate request_size=4 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 13 01 00 [00:30:05]Write to MH i2c: E2 08 00 D1 17 80 13 01 00 00 00 00 00 65 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 0E 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 0E 00 D1 17 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 B5 [00:30:05]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [00:30:05]wFMCommunicate OK [00:30:05]SAM_PROTO_GetShiftState done [00:30:05]FM_GetShiftState done [00:30:05]req_shift_opened done [00:30:05]requested_item shift.open_date is exist - process it [00:30:05]req_shift_open_date [00:30:05]req_shift_open_date done [00:30:05]produce_requested_data done [00:30:05]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192792,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [00:30:05]process_action_free get_value [00:30:05]json_value_free [00:30:05]json_value_free done [00:30:05]process_json_proto returns [00:30:05]Send response to host [00:30:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192792,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [00:30:05]free response buf [00:30:05]execute_script done [00:30:05]execute_script returns [00:30:05]free content buf [00:30:05]Sock 8.Close socket [00:30:05]Sock 8.Thread stoped [00:30:05]accept exits with 9 [00:30:05]New connection [00:30:05]New thread 3066801508 created [00:30:05]Thread 3066658148 joined [00:30:05]Waiting for new connection... [00:30:05] Sock 9.Parse request [00:30:05]Sock 9.Check first char [00:30:05]Sock 9.First char is OK [00:30:05]request: POST /json_proto HTTP/1.0 [00:30:05]Method: POST [00:30:05]URL: /json_proto [00:30:05]Method is POST - this is cgi request [00:30:05]url: /json_proto [00:30:05]query_string will be loaded in cgi processing [00:30:05]execute_cgi json_proto POST (null) [00:30:05]execute_cgi path=json_proto method=POST [00:30:05]POST find Content-Length [00:30:05]Host: 172.17.63.131:8080 [00:30:05]Content-Length: 331 [00:30:05]Content-Type: application/json [00:30:05] [00:30:05]POST finish read [00:30:05]Found Content-Length = 331 [00:30:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:05]execute_script... [00:30:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:06]POST & json_proto [00:30:06]process_json_proto [00:30:06]json parsed OK: [00:30:06]protocol is kg_v1.0 [00:30:06]action value=get_value [00:30:06]process_action get_value [00:30:06]cmd_get_value [00:30:06]process_action get_value done [00:30:06]requested_data is exist [00:30:06]produce_requested_data [00:30:06]requested_item fm.sale.total is exist - process it [00:30:06]SAM_PROTO_GetFMData [00:30:06]wFMCommunicate request_size=4 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 13 03 00 [00:30:06]Write to MH i2c: E2 08 00 D2 17 80 13 03 00 00 00 00 00 68 [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:06]Read from MH i2c: E2 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 FD 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 FD 00 D2 17 00 C1 04 85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 DA [00:30:06]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:30:06]wFMCommunicate OK [00:30:06]wFMCommunicate request_size=4 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 17 00 00 [00:30:06]Write to MH i2c: E2 08 00 D3 17 80 17 00 00 00 00 00 00 6A [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:06]Read from MH i2c: E2 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 FD 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 FD 00 D3 17 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7B [00:30:06]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:06]wFMCommunicate OK [00:30:06]wFMCommunicate request_size=4 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 17 00 00 [00:30:06]Write to MH i2c: E2 08 00 D4 17 80 17 00 00 00 00 00 00 6B [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:07]Read from MH i2c: E2 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 FD 00 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 FD 00 D4 17 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0B [00:30:07]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:07]wFMCommunicate OK [00:30:07]wFMCommunicate request_size=4 [00:30:07]MH_SAM_APDU [00:30:07]CAPDU: 80 17 00 00 [00:30:07]Write to MH i2c: E2 08 00 D5 17 80 17 00 00 00 00 00 00 6C [00:30:07]Write i2c OK [00:30:07]MH_I2C_Read... [00:30:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:07]Read from MH i2c: E2 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 FD 00 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 FD 00 D5 17 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 F1 [00:30:07]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:30:07]wFMCommunicate OK [00:30:07]wFMCommunicate request_size=4 [00:30:07]MH_SAM_APDU [00:30:07]CAPDU: 80 17 00 00 [00:30:07]Write to MH i2c: E2 08 00 D6 17 80 17 00 00 00 00 00 00 6D [00:30:07]Write i2c OK [00:30:07]MH_I2C_Read... [00:30:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:30:07]Read from MH i2c: E2 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 DE 00 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 DE 00 D6 17 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4C [00:30:07]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07]wFMCommunicate OK [00:30:07]SAM_PROTO_GetFMData done [00:30:07]requested_item fm.sale_refund.total is exist - process it [00:30:07]requested_item fm.buy.total is exist - process it [00:30:07]requested_item shift.sale.total is exist - process it [00:30:07]SAM_PROTO_GetShiftData [00:30:07]wFMCommunicate request_size=4 [00:30:07]MH_SAM_APDU [00:30:07]CAPDU: 80 13 02 00 [00:30:07]Write to MH i2c: E2 08 00 D7 17 80 13 02 00 00 00 00 00 6C [00:30:07]Write i2c OK [00:30:07]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 D7 17 00 B1 04 AA 04 AD 04 6E 04 04 00 54 01 00 00 69 04 9E 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 D8 0A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 6D [00:30:08]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 54 01 00 00 69 04 9E 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 D8 0A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:08]wFMCommunicate OK [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 17 00 00 [00:30:08]Write to MH i2c: E2 08 00 D8 17 80 17 00 00 00 00 00 00 6F [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 D8 17 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 88 [00:30:08]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:30:08]wFMCommunicate OK [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 17 00 00 [00:30:08]Write to MH i2c: E2 08 00 D9 17 80 17 00 00 00 00 00 00 70 [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 D9 17 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 29 [00:30:08]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:30:08]wFMCommunicate OK [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 17 00 00 [00:30:08]Write to MH i2c: E2 08 00 DA 17 80 17 00 00 00 00 00 00 71 [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 DA 17 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 E9 [00:30:08]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:08]wFMCommunicate OK [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 17 00 00 [00:30:08]Write to MH i2c: E2 08 00 DB 17 80 17 00 00 00 00 00 00 72 [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:30:09]Read from MH i2c: E2 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 CE 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 CE 00 DB 17 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 57 [00:30:09]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:09]wFMCommunicate OK [00:30:09]SAM_PROTO_GetShiftData done [00:30:09]requested_item shift.sale.total_cash is exist - process it [00:30:09]requested_item shift.sale_refund.total is exist - process it [00:30:09]requested_item shift.sale_refund.total_cash is exist - process it [00:30:09]requested_item shift.buy.total is exist - process it [00:30:09]requested_item shift.buy.total_cash is exist - process it [00:30:09]produce_requested_data done [00:30:09]produce_requested_data return {"fm.sale.total":159803715.30,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":225210.94,"shift.sale.total_cash":202601.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:30:09]process_action_free get_value [00:30:09]json_value_free [00:30:09]json_value_free done [00:30:09]process_json_proto returns [00:30:09]Send response to host [00:30:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159803715.30,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":225210.94,"shift.sale.total_cash":202601.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:30:09]free response buf [00:30:09]execute_script done [00:30:09]execute_script returns [00:30:09]free content buf [00:30:09]Sock 9.Close socket [00:30:09]Sock 9.Thread stoped [00:30:09]OFD Sender: No OFD packet to send [00:30:09]accept exits with 8 [00:30:09]New connection [00:30:09]New thread 3066658148 created [00:30:09]Thread 3066801508 joined [00:30:09]Waiting for new connection... [00:30:09] Sock 8.Parse request [00:30:09]Sock 8.Check first char [00:30:09]Sock 8.First char is OK [00:30:09]request: POST /json_proto HTTP/1.0 [00:30:09]Method: POST [00:30:09]URL: /json_proto [00:30:09]Method is POST - this is cgi request [00:30:09]url: /json_proto [00:30:09]query_string will be loaded in cgi processing [00:30:09]execute_cgi json_proto POST (null) [00:30:09]execute_cgi path=json_proto method=POST [00:30:09]POST find Content-Length [00:30:09]Host: 172.17.63.131:8080 [00:30:09]Content-Length: 331 [00:30:09]Content-Type: application/json [00:30:09] [00:30:09]POST finish read [00:30:09]Found Content-Length = 331 [00:30:09]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:09]execute_script... [00:30:09]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:09]POST & json_proto [00:30:09]process_json_proto [00:30:09]json parsed OK: [00:30:09]protocol is kg_v1.0 [00:30:09]action value=get_value [00:30:09]process_action get_value [00:30:09]cmd_get_value [00:30:09]process_action get_value done [00:30:09]requested_data is exist [00:30:09]produce_requested_data [00:30:09]requested_item fm.sale.total is exist - process it [00:30:09]SAM_PROTO_GetFMData [00:30:09]wFMCommunicate request_size=4 [00:30:09]MH_SAM_APDU [00:30:09]CAPDU: 80 13 03 00 [00:30:09]Write to MH i2c: E2 08 00 DC 17 80 13 03 00 00 00 00 00 72 [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:09]Read from MH i2c: E2 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 FD 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 FD 00 DC 17 00 C1 04 85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 E4 [00:30:09]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:30:09]wFMCommunicate OK [00:30:09]wFMCommunicate request_size=4 [00:30:09]MH_SAM_APDU [00:30:09]CAPDU: 80 17 00 00 [00:30:09]Write to MH i2c: E2 08 00 DD 17 80 17 00 00 00 00 00 00 74 [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:10]Read from MH i2c: E2 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 FD 00 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 FD 00 DD 17 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 85 [00:30:10]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:10]wFMCommunicate OK [00:30:10]wFMCommunicate request_size=4 [00:30:10]MH_SAM_APDU [00:30:10]CAPDU: 80 17 00 00 [00:30:10]Write to MH i2c: E2 08 00 DE 17 80 17 00 00 00 00 00 00 75 [00:30:10]Write i2c OK [00:30:10]MH_I2C_Read... [00:30:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:10]Read from MH i2c: E2 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 FD 00 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 FD 00 DE 17 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 15 [00:30:10]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:10]wFMCommunicate OK [00:30:10]wFMCommunicate request_size=4 [00:30:10]MH_SAM_APDU [00:30:10]CAPDU: 80 17 00 00 [00:30:10]Write to MH i2c: E2 08 00 DF 17 80 17 00 00 00 00 00 00 76 [00:30:10]Write i2c OK [00:30:10]MH_I2C_Read... [00:30:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:10]Read from MH i2c: E2 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 FD 00 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 FD 00 DF 17 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 FB [00:30:10]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:30:10]wFMCommunicate OK [00:30:10]wFMCommunicate request_size=4 [00:30:10]MH_SAM_APDU [00:30:10]CAPDU: 80 17 00 00 [00:30:10]Write to MH i2c: E2 08 00 E0 17 80 17 00 00 00 00 00 00 77 [00:30:10]Write i2c OK [00:30:10]MH_I2C_Read... [00:30:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:30:11]Read from MH i2c: E2 [00:30:11]MH_I2C_Read... [00:30:11]Read from MH i2c: E2 DE 00 [00:30:11]MH_I2C_Read... [00:30:11]Read from MH i2c: E2 DE 00 E0 17 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 56 [00:30:11]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:11]wFMCommunicate OK [00:30:11]SAM_PROTO_GetFMData done [00:30:11]requested_item fm.sale_refund.total is exist - process it [00:30:11]requested_item fm.buy.total is exist - process it [00:30:11]requested_item shift.sale.total is exist - process it [00:30:11]SAM_PROTO_GetShiftData [00:30:11]wFMCommunicate request_size=4 [00:30:11]MH_SAM_APDU [00:30:11]CAPDU: 80 13 02 00 [00:30:11]Write to MH i2c: E2 08 00 E1 17 80 13 02 00 00 00 00 00 76 [00:30:11]Write i2c OK [00:30:11]MH_I2C_Read... [00:30:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:11]Read from MH i2c: E2 [00:30:11]MH_I2C_Read... [00:30:11]Read from MH i2c: E2 FD 00 [00:30:11]MH_I2C_Read... [00:30:11]Read from MH i2c: E2 FD 00 E1 17 00 B1 04 AA 04 AD 04 6E 04 04 00 54 01 00 00 69 04 9E 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 D8 0A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 77 [00:30:11]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 54 01 00 00 69 04 9E 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 D8 0A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:11]wFMCommunicate OK [00:30:11]wFMCommunicate request_size=4 [00:30:11]MH_SAM_APDU [00:30:11]CAPDU: 80 17 00 00 [00:30:11]Write to MH i2c: E2 08 00 E2 17 80 17 00 00 00 00 00 00 79 [00:30:11]Write i2c OK [00:30:11]MH_I2C_Read... [00:30:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:12]Read from MH i2c: E2 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 FD 00 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 FD 00 E2 17 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 92 [00:30:12]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:30:12]wFMCommunicate OK [00:30:12]wFMCommunicate request_size=4 [00:30:12]MH_SAM_APDU [00:30:12]CAPDU: 80 17 00 00 [00:30:12]Write to MH i2c: E2 08 00 E3 17 80 17 00 00 00 00 00 00 7A [00:30:12]Write i2c OK [00:30:12]MH_I2C_Read... [00:30:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:12]Read from MH i2c: E2 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 FD 00 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 FD 00 E3 17 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 33 [00:30:12]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:30:12]wFMCommunicate OK [00:30:12]wFMCommunicate request_size=4 [00:30:12]MH_SAM_APDU [00:30:12]CAPDU: 80 17 00 00 [00:30:12]Write to MH i2c: E2 08 00 E4 17 80 17 00 00 00 00 00 00 7B [00:30:12]Write i2c OK [00:30:12]MH_I2C_Read... [00:30:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:12]Read from MH i2c: E2 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 FD 00 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 FD 00 E4 17 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 F3 [00:30:13]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:13]wFMCommunicate OK [00:30:13]wFMCommunicate request_size=4 [00:30:13]MH_SAM_APDU [00:30:13]CAPDU: 80 17 00 00 [00:30:13]Write to MH i2c: E2 08 00 E5 17 80 17 00 00 00 00 00 00 7C [00:30:13]Write i2c OK [00:30:13]MH_I2C_Read... [00:30:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:30:13]Read from MH i2c: E2 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 CE 00 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 CE 00 E5 17 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 61 [00:30:13]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:13]wFMCommunicate OK [00:30:13]SAM_PROTO_GetShiftData done [00:30:13]requested_item shift.sale.total_cash is exist - process it [00:30:13]requested_item shift.sale_refund.total is exist - process it [00:30:13]requested_item shift.sale_refund.total_cash is exist - process it [00:30:13]requested_item shift.buy.total is exist - process it [00:30:13]requested_item shift.buy.total_cash is exist - process it [00:30:13]produce_requested_data done [00:30:13]produce_requested_data return {"fm.sale.total":159803715.30,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":225210.94,"shift.sale.total_cash":202601.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:30:13]process_action_free get_value [00:30:13]json_value_free [00:30:13]json_value_free done [00:30:13]process_json_proto returns [00:30:13]Send response to host [00:30:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159803715.30,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":225210.94,"shift.sale.total_cash":202601.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:30:13]free response buf [00:30:13]execute_script done [00:30:13]execute_script returns [00:30:13]free content buf [00:30:13]Sock 8.Close socket [00:30:13]Sock 8.Thread stoped [00:30:13]accept exits with 9 [00:30:13]New connection [00:30:13]New thread 3066801508 created [00:30:13]Thread 3066658148 joined [00:30:13]Waiting for new connection... [00:30:13] Sock 9.Parse request [00:30:13]Sock 9.Check first char [00:30:13]Sock 9.First char is OK [00:30:13]request: POST /json_proto HTTP/1.0 [00:30:13]Method: POST [00:30:13]URL: /json_proto [00:30:13]Method is POST - this is cgi request [00:30:13]url: /json_proto [00:30:13]query_string will be loaded in cgi processing [00:30:13]execute_cgi json_proto POST (null) [00:30:13]execute_cgi path=json_proto method=POST [00:30:13]POST find Content-Length [00:30:13]Host: 172.17.63.131:8080 [00:30:13]Content-Length: 257 [00:30:13]Content-Type: application/json [00:30:13] [00:30:13]POST finish read [00:30:13]Found Content-Length = 257 [00:30:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:13]execute_script... [00:30:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:13]POST & json_proto [00:30:13]process_json_proto [00:30:13]json parsed OK: [00:30:13]protocol is kg_v1.0 [00:30:13]action value=x_report [00:30:13]process_action x_report [00:30:13]cmd_x_report [00:30:13]MH_GetDate [00:30:13]Write to MH i2c: F0 00 00 E6 17 EC [00:30:13]Write i2c OK [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: F0 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: F0 09 00 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: F0 09 00 E6 17 00 97 2C 20 67 22 05 6E 64 38 [00:30:13]GetLastDocTimeStamp 1730161442 [00:30:13]current date 1730161815 [00:30:13]FM_GetShiftState [00:30:13]SAM_PROTO_GetShiftState [00:30:13]wFMCommunicate request_size=4 [00:30:13]MH_SAM_APDU [00:30:13]CAPDU: 80 13 01 00 [00:30:13]Write to MH i2c: E2 08 00 E7 17 80 13 01 00 00 00 00 00 7B [00:30:13]Write i2c OK [00:30:13]MH_I2C_Read... [00:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:13]Read from MH i2c: E2 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 0E 00 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 0E 00 E7 17 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 CB [00:30:13]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [00:30:13]wFMCommunicate OK [00:30:13]SAM_PROTO_GetShiftState done [00:30:13]FM_GetShiftState done [00:30:13]KKMCreateXReportDocument [00:30:13]Load OK [00:30:13]Malloc new data [00:30:13]MH_GetDate [00:30:13]Write to MH i2c: F0 00 00 E8 17 EE [00:30:13]Write i2c OK [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: F0 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: F0 09 00 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: F0 09 00 E8 17 00 97 2C 20 67 22 05 6E 64 3A [00:30:13]Malloc new data [00:30:13]Malloc new data [00:30:13]wFMCommunicate request_size=4 [00:30:13]MH_SAM_APDU [00:30:13]CAPDU: 80 11 00 00 [00:30:13]Write to MH i2c: E2 08 00 E9 17 80 11 00 00 00 00 00 00 7A [00:30:13]Write i2c OK [00:30:13]MH_I2C_Read... [00:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:13]Read from MH i2c: E2 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 17 00 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 17 00 E9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CD [00:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:30:13]wFMCommunicate OK [00:30:13]SAM_PROTO_GetFieldsCounters [00:30:13]wFMCommunicate request_size=4 [00:30:13]MH_SAM_APDU [00:30:13]CAPDU: 80 13 00 00 [00:30:13]Write to MH i2c: E2 08 00 EA 17 80 13 00 00 00 00 00 00 7D [00:30:13]Write i2c OK [00:30:13]MH_I2C_Read... [00:30:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:13]Read from MH i2c: E2 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 62 00 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 62 00 EA 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [00:30:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:13]wFMCommunicate OK [00:30:13]SAM_PROTO_GetFieldsCounters done [00:30:13]Malloc new data [00:30:13]Malloc new data [00:30:13]Malloc new data [00:30:13]KKMCreateXReportDocument OK [00:30:13]KKMSetXReportData OK [00:30:13]KKMPrepareXReportFMData [00:30:13]SAM_PROTO_GetShiftData [00:30:13]wFMCommunicate request_size=4 [00:30:13]MH_SAM_APDU [00:30:13]CAPDU: 80 13 02 00 [00:30:14]Write to MH i2c: E2 08 00 EB 17 80 13 02 00 00 00 00 00 80 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]OFD Sender: No OFD packet to send [00:30:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 FD 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 FD 00 EB 17 00 B1 04 AA 04 AD 04 6E 04 04 00 54 01 00 00 69 04 9E 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 D8 0A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 81 [00:30:14]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 54 01 00 00 69 04 9E 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 D8 0A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:14]wFMCommunicate OK [00:30:14]wFMCommunicate request_size=4 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 17 00 00 [00:30:14]Write to MH i2c: E2 08 00 EC 17 80 17 00 00 00 00 00 00 83 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 FD 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 FD 00 EC 17 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 9C [00:30:14]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:30:15]wFMCommunicate OK [00:30:15]wFMCommunicate request_size=4 [00:30:15]MH_SAM_APDU [00:30:15]CAPDU: 80 17 00 00 [00:30:15]Write to MH i2c: E2 08 00 ED 17 80 17 00 00 00 00 00 00 84 [00:30:15]Write i2c OK [00:30:15]MH_I2C_Read... [00:30:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:15]Read from MH i2c: E2 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 ED 17 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 3D [00:30:15]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:30:15]wFMCommunicate OK [00:30:15]wFMCommunicate request_size=4 [00:30:15]MH_SAM_APDU [00:30:15]CAPDU: 80 17 00 00 [00:30:15]Write to MH i2c: E2 08 00 EE 17 80 17 00 00 00 00 00 00 85 [00:30:15]Write i2c OK [00:30:15]MH_I2C_Read... [00:30:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:15]Read from MH i2c: E2 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 [00:30:15]MH_I2C_Read... [00:30:15]Read from MH i2c: E2 FD 00 EE 17 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 FD [00:30:15]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:15]wFMCommunicate OK [00:30:15]wFMCommunicate request_size=4 [00:30:15]MH_SAM_APDU [00:30:15]CAPDU: 80 17 00 00 [00:30:15]Write to MH i2c: E2 08 00 EF 17 80 17 00 00 00 00 00 00 86 [00:30:15]Write i2c OK [00:30:15]MH_I2C_Read... [00:30:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:30:16]Read from MH i2c: E2 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: E2 CE 00 [00:30:16]MH_I2C_Read... [00:30:16]Read from MH i2c: E2 CE 00 EF 17 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6B [00:30:16]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:16]wFMCommunicate OK [00:30:16]SAM_PROTO_GetShiftData done [00:30:16]1194 (1197) - счетчики итогов смены [00:30:16] 1134 (4) - 340 - количество чеков со всеми признаками расчетов [00:30:16] 1129 (158) - счетчики операций «приход» [00:30:16] 1135 (4) - 340 - количество чеков по признаку расчетов [00:30:16] 1201 (4) - 225210.94 - общая итоговая сумма в чеках [00:30:16] 1136 (4) - 202601.00 - итоговая сумма в чеках наличными [00:30:16] 1138 (3) - 22609.94 - итоговая сумма в чеках безналичными [00:30:16] 1024 (123) - суммы налогов [00:30:16] 1006 (9) - суммы НДС [00:30:16] 1010 (1) - 0% - код ставки НДС [00:30:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:16] 1006 (12) - суммы НДС [00:30:16] 1010 (1) - 12% - код ставки НДС [00:30:16] 1011 (3) - 23925.60 - сумма НДС по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 0% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (12) - суммы НСП [00:30:16] 1014 (1) - 1% - код ставки НСП [00:30:16] 1015 (3) - 1993.84 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 2% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 3% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 5% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 0,50% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 1,50% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1130 (141) - счетчики операций «возврат прихода» [00:30:16] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:16] 1024 (117) - суммы налогов [00:30:16] 1006 (9) - суммы НДС [00:30:16] 1010 (1) - 0% - код ставки НДС [00:30:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:16] 1006 (9) - суммы НДС [00:30:16] 1010 (1) - 12% - код ставки НДС [00:30:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 0% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 1% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 2% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 3% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 5% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 0,50% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 1,50% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1131 (141) - счетчики операций «расход» [00:30:16] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:16] 1024 (117) - суммы налогов [00:30:16] 1006 (9) - суммы НДС [00:30:16] 1010 (1) - 0% - код ставки НДС [00:30:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:16] 1006 (9) - суммы НДС [00:30:16] 1010 (1) - 12% - код ставки НДС [00:30:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 0% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 1% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 2% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 3% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 5% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 0,50% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 1,50% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1132 (141) - счетчики операций «возврат расхода» [00:30:16] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:16] 1024 (117) - суммы налогов [00:30:16] 1006 (9) - суммы НДС [00:30:16] 1010 (1) - 0% - код ставки НДС [00:30:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:16] 1006 (9) - суммы НДС [00:30:16] 1010 (1) - 12% - код ставки НДС [00:30:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 0% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 1% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 2% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 3% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 5% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 0,50% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1007 (9) - суммы НСП [00:30:16] 1014 (1) - 1,50% - код ставки НСП [00:30:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:16] 1133 (588) - - счетчики коррекции - не используются [00:30:16]SetTLVBufToDocument [00:30:16]Processing tag 1194 (04AA) [00:30:16]Load OK [00:30:16]SetTLVBufToDocument [00:30:16]Processing tag 1134 (046E) [00:30:16]Malloc new data [00:30:16]Processing tag 1129 (0469) [00:30:16]Load OK [00:30:16]SetTLVBufToDocument [00:30:16]Processing tag 1135 (046F) [00:30:16]Malloc new data [00:30:16]Processing tag 1201 (04B1) [00:30:16]Malloc new data [00:30:16]Processing tag 1136 (0470) [00:30:16]Malloc new data [00:30:16]Processing tag 1138 (0472) [00:30:16]Malloc new data [00:30:16]Processing tag 1024 (0400) [00:30:16]Load OK [00:30:16]SetTLVBufToDocument [00:30:16]Processing tag 1006 (03EE) [00:30:16]Load OK [00:30:16]SetTLVBufToDocument [00:30:16]Processing tag 1010 (03F2) [00:30:16]Malloc new data [00:30:16]Processing tag 1011 (03F3) [00:30:16]Malloc new data [00:30:16]SetTLVBufToDocument err=0 [00:30:16]Processing tag 1006 (03EE) [00:30:16]Load OK [00:30:16]SetTLVBufToDocument [00:30:16]Processing tag 1010 (03F2) [00:30:16]Malloc new data [00:30:16]Processing tag 1011 (03F3) [00:30:16]Malloc new data [00:30:16]SetTLVBufToDocument err=0 [00:30:16]Processing tag 1007 (03EF) [00:30:16]Load OK [00:30:16]SetTLVBufToDocument [00:30:16]Processing tag 1014 (03F6) [00:30:16]Malloc new data [00:30:16]Processing tag 1015 (03F7) [00:30:16]Malloc new data [00:30:16]SetTLVBufToDocument err=0 [00:30:16]Processing tag 1007 (03EF) [00:30:16]Load OK [00:30:16]SetTLVBufToDocument [00:30:16]Processing tag 1014 (03F6) [00:30:16]Malloc new data [00:30:16]Processing tag 1015 (03F7) [00:30:16]Malloc new data [00:30:16]SetTLVBufToDocument err=0 [00:30:16]Processing tag 1007 (03EF) [00:30:16]Load OK [00:30:16]SetTLVBufToDocument [00:30:16]Processing tag 1014 (03F6) [00:30:16]Malloc new data [00:30:16]Processing tag 1015 (03F7) [00:30:16]Malloc new data [00:30:16]SetTLVBufToDocument err=0 [00:30:16]Processing tag 1007 (03EF) [00:30:16]Load OK [00:30:16]SetTLVBufToDocument [00:30:16]Processing tag 1014 (03F6) [00:30:16]Malloc new data [00:30:16]Processing tag 1015 (03F7) [00:30:16]Malloc new data [00:30:16]SetTLVBufToDocument err=0 [00:30:16]Processing tag 1007 (03EF) [00:30:16]Load OK [00:30:16]SetTLVBufToDocument [00:30:16]Processing tag 1014 (03F6) [00:30:16]Malloc new data [00:30:16]Processing tag 1015 (03F7) [00:30:16]Malloc new data [00:30:16]SetTLVBufToDocument err=0 [00:30:16]Processing tag 1007 (03EF) [00:30:16]Load OK [00:30:16]SetTLVBufToDocument [00:30:16]Processing tag 1014 (03F6) [00:30:16]Malloc new data [00:30:16]Processing tag 1015 (03F7) [00:30:16]Malloc new data [00:30:16]SetTLVBufToDocument err=0 [00:30:16]Processing tag 1007 (03EF) [00:30:16]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]SetTLVBufToDocument err=0 [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1130 (046A) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1135 (046F) [00:30:17]Malloc new data [00:30:17]Processing tag 1201 (04B1) [00:30:17]Malloc new data [00:30:17]Processing tag 1136 (0470) [00:30:17]Malloc new data [00:30:17]Processing tag 1138 (0472) [00:30:17]Malloc new data [00:30:17]Processing tag 1024 (0400) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1006 (03EE) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1010 (03F2) [00:30:17]Malloc new data [00:30:17]Processing tag 1011 (03F3) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1006 (03EE) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1010 (03F2) [00:30:17]Malloc new data [00:30:17]Processing tag 1011 (03F3) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]SetTLVBufToDocument err=0 [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1131 (046B) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1135 (046F) [00:30:17]Malloc new data [00:30:17]Processing tag 1201 (04B1) [00:30:17]Malloc new data [00:30:17]Processing tag 1136 (0470) [00:30:17]Malloc new data [00:30:17]Processing tag 1138 (0472) [00:30:17]Malloc new data [00:30:17]Processing tag 1024 (0400) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1006 (03EE) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1010 (03F2) [00:30:17]Malloc new data [00:30:17]Processing tag 1011 (03F3) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1006 (03EE) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1010 (03F2) [00:30:17]Malloc new data [00:30:17]Processing tag 1011 (03F3) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]SetTLVBufToDocument err=0 [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1132 (046C) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1135 (046F) [00:30:17]Malloc new data [00:30:17]Processing tag 1201 (04B1) [00:30:17]Malloc new data [00:30:17]Processing tag 1136 (0470) [00:30:17]Malloc new data [00:30:17]Processing tag 1138 (0472) [00:30:17]Malloc new data [00:30:17]Processing tag 1024 (0400) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1006 (03EE) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1010 (03F2) [00:30:17]Malloc new data [00:30:17]Processing tag 1011 (03F3) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1006 (03EE) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1010 (03F2) [00:30:17]Malloc new data [00:30:17]Processing tag 1011 (03F3) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1007 (03EF) [00:30:17]Load OK [00:30:17]SetTLVBufToDocument [00:30:17]Processing tag 1014 (03F6) [00:30:17]Malloc new data [00:30:17]Processing tag 1015 (03F7) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]SetTLVBufToDocument err=0 [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Processing tag 1133 (046D) [00:30:17]Malloc new data [00:30:17]SetTLVBufToDocument err=0 [00:30:17]SetTLVBufToDocument err=0 [00:30:17]Malloc new data [00:30:17]SAM_PROTO_GetFMData [00:30:17]wFMCommunicate request_size=4 [00:30:17]MH_SAM_APDU [00:30:17]CAPDU: 80 13 03 00 [00:30:17]Write to MH i2c: E2 08 00 F0 17 80 13 03 00 00 00 00 00 86 [00:30:17]Write i2c OK [00:30:17]MH_I2C_Read... [00:30:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:17]Read from MH i2c: E2 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 FD 00 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 FD 00 F0 17 00 C1 04 85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 F8 [00:30:18]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:30:18]wFMCommunicate OK [00:30:18]wFMCommunicate request_size=4 [00:30:18]MH_SAM_APDU [00:30:18]CAPDU: 80 17 00 00 [00:30:18]Write to MH i2c: E2 08 00 F1 17 80 17 00 00 00 00 00 00 88 [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:18]Read from MH i2c: E2 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 FD 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 FD 00 F1 17 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 99 [00:30:18]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:18]wFMCommunicate OK [00:30:18]wFMCommunicate request_size=4 [00:30:18]MH_SAM_APDU [00:30:18]CAPDU: 80 17 00 00 [00:30:18]Write to MH i2c: E2 08 00 F2 17 80 17 00 00 00 00 00 00 89 [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:18]Read from MH i2c: E2 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 FD 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 FD 00 F2 17 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 29 [00:30:19]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:19]wFMCommunicate OK [00:30:19]wFMCommunicate request_size=4 [00:30:19]MH_SAM_APDU [00:30:19]CAPDU: 80 17 00 00 [00:30:19]Write to MH i2c: E2 08 00 F3 17 80 17 00 00 00 00 00 00 8A [00:30:19]Write i2c OK [00:30:19]MH_I2C_Read... [00:30:19]OFD Sender: No OFD packet to send [00:30:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:19]Read from MH i2c: E2 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 FD 00 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 FD 00 F3 17 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 0F [00:30:19]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:30:19]wFMCommunicate OK [00:30:19]wFMCommunicate request_size=4 [00:30:19]MH_SAM_APDU [00:30:19]CAPDU: 80 17 00 00 [00:30:19]Write to MH i2c: E2 08 00 F4 17 80 17 00 00 00 00 00 00 8B [00:30:19]Write i2c OK [00:30:19]MH_I2C_Read... [00:30:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:30:20]Read from MH i2c: E2 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 DE 00 [00:30:20]MH_I2C_Read... [00:30:20]Read from MH i2c: E2 DE 00 F4 17 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6A [00:30:20]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:20]wFMCommunicate OK [00:30:20]SAM_PROTO_GetFMData done [00:30:20]FM_GetFMData:85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 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 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:20]oper:6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:20]total:4A 1E 81 B8 03 [00:30:20]Malloc new data [00:30:20]oper:6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 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 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:30:21]total:04 E9 2B [00:30:21]Malloc new data [00:30:21]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:30:21]total: [00:30:21]Malloc new data [00:30:21]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:30:21]total: [00:30:21]Malloc new data [00:30:21]KKMPrepareXReportFMData err=0 [00:30:21]Х отчет ИНН: 02508201610067 Кассир: Курбанов М. 29.10.2024 00:30 Смена: 522 РНМ: 0000000000091776 ЗНМ: 0300000110 СНО: Общий режим Всего чеков: 340 ИТОГИ ПРИХОД Чеков: 340 Общий итог: 225210.94 Итого наличными: 202601.00 Итого безнал.: 22609.94 НДС 0% : 0.00 НДС 12% : 23925.60 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1993.84 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 202601.00 НС Приход: 159803715.30 НС Возвр.Прихода: 28777.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871754 [00:30:21]StoreToDocumentArchive [00:30:21]MH_GetDate [00:30:21]Write to MH i2c: F0 00 00 F5 17 FB [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: F0 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: F0 09 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: F0 09 00 F5 17 00 9F 2C 20 67 22 05 6E 64 4F [00:30:21]shift 522 fd 1730161823 [00:30:21]Create dir for shift 0522 [00:30:21]save to /storage/0522/doc_1730161823 [00:30:21]save last doc name /storage/0522/doc_1730161823 to /storage/kkm_last_doc_name [00:30:21]save OK [00:30:21]Clear old archive folders... [00:30:21]NVStorageSaveData kkm_last_timestamp [00:30:21]File name is /storage/kkm_last_timestamp [00:30:21]Write 4 bytes [00:30:21]NVStorageSaveData done [00:30:21]ExternCall_PrintAddStr [00:30:21]wPrintStart [00:30:21]Write to MH i2c: 01 00 00 F6 17 0D [00:30:21]Write i2c OK [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: 01 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: 01 07 00 [00:30:21]MH_I2C_Read... [00:30:21]Read from MH i2c: 01 07 00 F6 17 00 00 00 00 00 FF 0F 22 [00:30:21]RasterBufferAndPrint [00:30:21]line Х отчет [00:30:21]line ИНН: 02508201610067 [00:30:21]line Кассир: Курбанов М. [00:30:21]line 29.10.2024 00:30 [00:30:21]line Смена: 522 [00:30:21]line РНМ: 0000000000091776 [00:30:21]line ЗНМ: 0300000110 [00:30:21]line СНО: Общий режим [00:30:21]line Всего чеков: 340 [00:30:21]line ИТОГИ ПРИХОД [00:30:21]line Чеков: 340 [00:30:21]line Общий итог: 225210.94 [00:30:21]line Итого наличными: 202601.00 [00:30:21]line Итого безнал.: 22609.94 [00:30:21]line НДС 0% : 0.00 [00:30:21]line НДС 12% : 23925.60 [00:30:21]line НСП 0% : 0.00 [00:30:21]line НСП 1,50% : 0.00 [00:30:21]line НСП 0,50% : 0.00 [00:30:21]line НСП 5% : 0.00 [00:30:21]line НСП 3% : 0.00 [00:30:21]line НСП 2% : 0.00 [00:30:21]line НСП 1% : 1993.84 [00:30:21]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:30:21]line Чеков: 0 [00:30:21]line Общий итог: 0.00 [00:30:21]line Итого наличными: 0.00 [00:30:21]line Итого безнал.: 0.00 [00:30:21]line НДС 0% : 0.00 [00:30:21]line НДС 12% : 0.00 [00:30:21]line НСП 0% : 0.00 [00:30:21]line НСП 1,50% : 0.00 [00:30:21]line НСП 0,50% : 0.00 [00:30:21]line НСП 5% : 0.00 [00:30:21]line НСП 3% : 0.00 [00:30:21]line НСП 2% : 0.00 [00:30:21]line НСП 1% : 0.00 [00:30:21]line ИТОГИ РАСХОД [00:30:21]line Чеков: 0 [00:30:21]line Общий итог: 0.00 [00:30:21]line Итого наличными: 0.00 [00:30:21]line Итого безнал.: 0.00 [00:30:21]line НДС 0% : 0.00 [00:30:21]line НДС 12% : 0.00 [00:30:21]line НСП 0% : 0.00 [00:30:21]line НСП 1,50% : 0.00 [00:30:21]line НСП 0,50% : 0.00 [00:30:21]line НСП 5% : 0.00 [00:30:21]line НСП 3% : 0.00 [00:30:21]line НСП 2% : 0.00 [00:30:21]line НСП 1% : 0.00 [00:30:21]line ИТОГИ ВОЗВРАТ РАСХОДА [00:30:21]line Чеков: 0 [00:30:21]line Общий итог: 0.00 [00:30:21]line Итого наличными: 0.00 [00:30:21]line Итого безнал.: 0.00 [00:30:21]line НДС 0% : 0.00 [00:30:21]line НДС 12% : 0.00 [00:30:21]line НСП 0% : 0.00 [00:30:21]line НСП 1,50% : 0.00 [00:30:21]line НСП 0,50% : 0.00 [00:30:21]line НСП 5% : 0.00 [00:30:21]line НСП 3% : 0.00 [00:30:21]line НСП 2% : 0.00 [00:30:21]line НСП 1% : 0.00 [00:30:21]line Сумма внесений: 0.00 [00:30:21]line Сумма выплат: 0.00 [00:30:21]line Нал. в кассе: 202601.00 [00:30:21]line НС Приход: 159803715.30 [00:30:21]line НС Возвр.Прихода: 28777.00 [00:30:21]line НС Расход: 0.00 [00:30:21]line НС Возвр.Расхода: 0.00 [00:30:21]line ФМ: 0000000000871754 [00:30:21]written 0, free lines is 4095 [00:30:22]Write to MH i2c: 01 00 00 41 18 59 [00:30:22]Write i2c OK [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: 01 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: 01 07 00 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: 01 07 00 41 18 00 00 00 00 00 92 0A FC [00:30:22]RasterBufferAndPrint [00:30:22]line [00:30:22]line [00:30:22]line [00:30:22]line [00:30:22]line [00:30:22]written 0, free lines is 2734 [00:30:22]MH_Cut [00:30:22]Write to MH i2c: D1 01 00 48 18 01 32 [00:30:22]Write i2c OK [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: D1 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: D1 01 00 [00:30:22]MH_I2C_Read... [00:30:22]Read from MH i2c: D1 01 00 48 18 00 31 [00:30:22]Write to MH i2c: 01 00 00 49 18 61 [00:30:22]Write i2c OK [00:30:22]MH_I2C_Read... [00:30:23]*** Cut start [00:30:23]*** Partial cut [00:30:23]*** CUTSNS_PIN = 1 [00:30:23]*** CUTSNS_PIN = 0 [00:30:23]*** Brake cut motor [00:30:23]Read from MH i2c: 01 [00:30:23]MH_I2C_Read... [00:30:23]*** Stop cut motor [00:30:23]*** Cut end [00:30:23]Read from MH i2c: 01 07 00 [00:30:23]MH_I2C_Read... [00:30:23]Read from MH i2c: 01 07 00 49 18 00 00 00 00 00 FF 0F 76 [00:30:23]process_action x_report done [00:30:23]requested_data is exist [00:30:23]produce_requested_data [00:30:23]requested_item fd.num is exist - process it [00:30:23]SAM_PROTO_GetFieldsCounters [00:30:23]wFMCommunicate request_size=4 [00:30:23]MH_SAM_APDU [00:30:23]CAPDU: 80 13 00 00 [00:30:23]Write to MH i2c: E2 08 00 4A 18 80 13 00 00 00 00 00 00 DE [00:30:23]Write i2c OK [00:30:23]MH_I2C_Read... [00:30:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:23]Read from MH i2c: E2 [00:30:23]MH_I2C_Read... [00:30:23]Read from MH i2c: E2 62 00 [00:30:23]MH_I2C_Read... [00:30:23]Read from MH i2c: E2 62 00 4A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [00:30:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:24]wFMCommunicate OK [00:30:24]SAM_PROTO_GetFieldsCounters done [00:30:24]requested_item shift.num is exist - process it [00:30:24]requested_item shift.opened is exist - process it [00:30:24]req_shift_opened [00:30:24]FM_GetShiftState [00:30:24]SAM_PROTO_GetShiftState [00:30:24]wFMCommunicate request_size=4 [00:30:24]MH_SAM_APDU [00:30:24]CAPDU: 80 13 01 00 [00:30:24]Write to MH i2c: E2 08 00 4B 18 80 13 01 00 00 00 00 00 E0 [00:30:24]Write i2c OK [00:30:24]MH_I2C_Read... [00:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:24]Read from MH i2c: E2 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: E2 0E 00 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: E2 0E 00 4B 18 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 30 [00:30:24]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [00:30:24]wFMCommunicate OK [00:30:24]SAM_PROTO_GetShiftState done [00:30:24]FM_GetShiftState done [00:30:24]req_shift_opened done [00:30:24]requested_item shift.open_date is exist - process it [00:30:24]req_shift_open_date [00:30:24]req_shift_open_date done [00:30:24]produce_requested_data done [00:30:24]produce_requested_data return {"fd.num":192792,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [00:30:24]process_action_free x_report [00:30:24]json_value_free [00:30:24]json_value_free done [00:30:24]process_json_proto returns [00:30:24]Send response to host [00:30:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":192792,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [00:30:24]free response buf [00:30:24]execute_script done [00:30:24]execute_script returns [00:30:24]free content buf [00:30:24]Sock 9.Close socket [00:30:24]Sock 9.Thread stoped [00:30:24]OFD Sender: No OFD packet to send [00:30:28]accept exits with 8 [00:30:28]New connection [00:30:28]New thread 3066658148 created [00:30:28]Thread 3066801508 joined [00:30:28]Waiting for new connection... [00:30:28] Sock 8.Parse request [00:30:28]Sock 8.Check first char [00:30:28]Sock 8.First char is OK [00:30:28]request: POST /json_proto HTTP/1.0 [00:30:28]Method: POST [00:30:28]URL: /json_proto [00:30:28]Method is POST - this is cgi request [00:30:28]url: /json_proto [00:30:28]query_string will be loaded in cgi processing [00:30:28]execute_cgi json_proto POST (null) [00:30:28]execute_cgi path=json_proto method=POST [00:30:28]POST find Content-Length [00:30:28]Host: 172.17.63.131:8080 [00:30:28]Content-Length: 215 [00:30:28]Content-Type: application/json [00:30:28] [00:30:28]POST finish read [00:30:28]Found Content-Length = 215 [00:30:28]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:28]execute_script... [00:30:28]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:28]POST & json_proto [00:30:28]process_json_proto [00:30:28]json parsed OK: [00:30:28]protocol is kg_v1.0 [00:30:28]action value=get_value [00:30:28]process_action get_value [00:30:28]cmd_get_value [00:30:28]process_action get_value done [00:30:28]requested_data is exist [00:30:28]produce_requested_data [00:30:28]requested_item kkm.sn is exist - process it [00:30:28]requested_item kkm.ver is exist - process it [00:30:28]requested_item fm.sn is exist - process it [00:30:28]wFMCommunicate request_size=4 [00:30:28]MH_SAM_APDU [00:30:28]CAPDU: 80 11 00 00 [00:30:28]Write to MH i2c: E2 08 00 4C 18 80 11 00 00 00 00 00 00 DE [00:30:28]Write i2c OK [00:30:28]MH_I2C_Read... [00:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:28]Read from MH i2c: E2 [00:30:28]MH_I2C_Read... [00:30:28]Read from MH i2c: E2 17 00 [00:30:28]MH_I2C_Read... [00:30:28]Read from MH i2c: E2 17 00 4C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 31 [00:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:30:28]wFMCommunicate OK [00:30:28]requested_item fd.num is exist - process it [00:30:28]SAM_PROTO_GetFieldsCounters [00:30:28]wFMCommunicate request_size=4 [00:30:28]MH_SAM_APDU [00:30:28]CAPDU: 80 13 00 00 [00:30:28]Write to MH i2c: E2 08 00 4D 18 80 13 00 00 00 00 00 00 E1 [00:30:28]Write i2c OK [00:30:28]MH_I2C_Read... [00:30:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:28]Read from MH i2c: E2 [00:30:28]MH_I2C_Read... [00:30:28]Read from MH i2c: E2 62 00 [00:30:28]MH_I2C_Read... [00:30:28]Read from MH i2c: E2 62 00 4D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [00:30:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:28]wFMCommunicate OK [00:30:28]SAM_PROTO_GetFieldsCounters done [00:30:28]requested_item shift.num is exist - process it [00:30:28]requested_item shift.opened is exist - process it [00:30:28]req_shift_opened [00:30:28]FM_GetShiftState [00:30:28]SAM_PROTO_GetShiftState [00:30:28]wFMCommunicate request_size=4 [00:30:28]MH_SAM_APDU [00:30:28]CAPDU: 80 13 01 00 [00:30:28]Write to MH i2c: E2 08 00 4E 18 80 13 01 00 00 00 00 00 E3 [00:30:28]Write i2c OK [00:30:28]MH_I2C_Read... [00:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:28]Read from MH i2c: E2 [00:30:28]MH_I2C_Read... [00:30:28]Read from MH i2c: E2 0E 00 [00:30:28]MH_I2C_Read... [00:30:28]Read from MH i2c: E2 0E 00 4E 18 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 33 [00:30:28]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [00:30:28]wFMCommunicate OK [00:30:28]SAM_PROTO_GetShiftState done [00:30:28]FM_GetShiftState done [00:30:28]req_shift_opened done [00:30:28]requested_item shift.open_date is exist - process it [00:30:28]req_shift_open_date [00:30:28]req_shift_open_date done [00:30:28]produce_requested_data done [00:30:28]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192792,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620} [00:30:28]process_action_free get_value [00:30:28]json_value_free [00:30:28]json_value_free done [00:30:28]process_json_proto returns [00:30:28]Send response to host [00:30:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192792,"shift.num":543,"shift.opened":1,"shift.open_date":1730075620}}} [00:30:28]free response buf [00:30:28]execute_script done [00:30:28]execute_script returns [00:30:28]free content buf [00:30:28]Sock 8.Close socket [00:30:28]Sock 8.Thread stoped [00:30:28]accept exits with 9 [00:30:28]New connection [00:30:28]New thread 3066801508 created [00:30:28]Thread 3066658148 joined [00:30:28]Waiting for new connection... [00:30:28] Sock 9.Parse request [00:30:28]Sock 9.Check first char [00:30:28]Sock 9.First char is OK [00:30:28]request: POST /json_proto HTTP/1.0 [00:30:28]Method: POST [00:30:28]URL: /json_proto [00:30:28]Method is POST - this is cgi request [00:30:28]url: /json_proto [00:30:28]query_string will be loaded in cgi processing [00:30:28]execute_cgi json_proto POST (null) [00:30:28]execute_cgi path=json_proto method=POST [00:30:28]POST find Content-Length [00:30:28]Host: 172.17.63.131:8080 [00:30:28]Content-Length: 331 [00:30:28]Content-Type: application/json [00:30:28] [00:30:28]POST finish read [00:30:28]Found Content-Length = 331 [00:30:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:28]execute_script... [00:30:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:30:28]POST & json_proto [00:30:28]process_json_proto [00:30:28]json parsed OK: [00:30:28]protocol is kg_v1.0 [00:30:28]action value=get_value [00:30:28]process_action get_value [00:30:28]cmd_get_value [00:30:28]process_action get_value done [00:30:28]requested_data is exist [00:30:28]produce_requested_data [00:30:28]requested_item fm.sale.total is exist - process it [00:30:28]SAM_PROTO_GetFMData [00:30:28]wFMCommunicate request_size=4 [00:30:28]MH_SAM_APDU [00:30:28]CAPDU: 80 13 03 00 [00:30:28]Write to MH i2c: E2 08 00 4F 18 80 13 03 00 00 00 00 00 E6 [00:30:28]Write i2c OK [00:30:28]MH_I2C_Read... [00:30:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:29]Read from MH i2c: E2 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 FD 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 FD 00 4F 18 00 C1 04 85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 58 [00:30:29]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:30:29]wFMCommunicate OK [00:30:29]wFMCommunicate request_size=4 [00:30:29]MH_SAM_APDU [00:30:29]CAPDU: 80 17 00 00 [00:30:29]Write to MH i2c: E2 08 00 50 18 80 17 00 00 00 00 00 00 E8 [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:29]OFD Sender: No OFD packet to send [00:30:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:29]Read from MH i2c: E2 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 FD 00 [00:30:29]MH_I2C_Read... [00:30:29]Read from MH i2c: E2 FD 00 50 18 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [00:30:29]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:29]wFMCommunicate OK [00:30:29]wFMCommunicate request_size=4 [00:30:29]MH_SAM_APDU [00:30:29]CAPDU: 80 17 00 00 [00:30:29]Write to MH i2c: E2 08 00 51 18 80 17 00 00 00 00 00 00 E9 [00:30:29]Write i2c OK [00:30:29]MH_I2C_Read... [00:30:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:30]Read from MH i2c: E2 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 FD 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 FD 00 51 18 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 89 [00:30:30]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:30]wFMCommunicate OK [00:30:30]wFMCommunicate request_size=4 [00:30:30]MH_SAM_APDU [00:30:30]CAPDU: 80 17 00 00 [00:30:30]Write to MH i2c: E2 08 00 52 18 80 17 00 00 00 00 00 00 EA [00:30:30]Write i2c OK [00:30:30]MH_I2C_Read... [00:30:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:30]Read from MH i2c: E2 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 FD 00 [00:30:30]MH_I2C_Read... [00:30:30]Read from MH i2c: E2 FD 00 52 18 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 6F [00:30:30]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:30:31]wFMCommunicate OK [00:30:31]wFMCommunicate request_size=4 [00:30:31]MH_SAM_APDU [00:30:31]CAPDU: 80 17 00 00 [00:30:31]Write to MH i2c: E2 08 00 53 18 80 17 00 00 00 00 00 00 EB [00:30:31]Write i2c OK [00:30:31]MH_I2C_Read... [00:30:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:30:31]Read from MH i2c: E2 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 DE 00 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 DE 00 53 18 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CA [00:30:31]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:31]wFMCommunicate OK [00:30:31]SAM_PROTO_GetFMData done [00:30:31]requested_item fm.sale_refund.total is exist - process it [00:30:31]requested_item fm.buy.total is exist - process it [00:30:31]requested_item shift.sale.total is exist - process it [00:30:31]SAM_PROTO_GetShiftData [00:30:31]wFMCommunicate request_size=4 [00:30:31]MH_SAM_APDU [00:30:31]CAPDU: 80 13 02 00 [00:30:31]Write to MH i2c: E2 08 00 54 18 80 13 02 00 00 00 00 00 EA [00:30:31]Write i2c OK [00:30:31]MH_I2C_Read... [00:30:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:31]Read from MH i2c: E2 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 FD 00 [00:30:31]MH_I2C_Read... [00:30:31]Read from MH i2c: E2 FD 00 54 18 00 B1 04 AA 04 AD 04 6E 04 04 00 54 01 00 00 69 04 9E 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 D8 0A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 EB [00:30:32]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 54 01 00 00 69 04 9E 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 D8 0A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:32]wFMCommunicate OK [00:30:32]wFMCommunicate request_size=4 [00:30:32]MH_SAM_APDU [00:30:32]CAPDU: 80 17 00 00 [00:30:32]Write to MH i2c: E2 08 00 55 18 80 17 00 00 00 00 00 00 ED [00:30:32]Write i2c OK [00:30:32]MH_I2C_Read... [00:30:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:32]Read from MH i2c: E2 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: E2 FD 00 [00:30:32]MH_I2C_Read... [00:30:32]Read from MH i2c: E2 FD 00 55 18 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 06 [00:30:32]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:30:32]wFMCommunicate OK [00:30:32]wFMCommunicate request_size=4 [00:30:32]MH_SAM_APDU [00:30:32]CAPDU: 80 17 00 00 [00:30:32]Write to MH i2c: E2 08 00 56 18 80 17 00 00 00 00 00 00 EE [00:30:32]Write i2c OK [00:30:32]MH_I2C_Read... [00:30:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:33]Read from MH i2c: E2 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 FD 00 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 FD 00 56 18 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 A7 [00:30:33]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:30:33]wFMCommunicate OK [00:30:33]wFMCommunicate request_size=4 [00:30:33]MH_SAM_APDU [00:30:33]CAPDU: 80 17 00 00 [00:30:33]Write to MH i2c: E2 08 00 57 18 80 17 00 00 00 00 00 00 EF [00:30:33]Write i2c OK [00:30:33]MH_I2C_Read... [00:30:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:33]Read from MH i2c: E2 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 FD 00 [00:30:33]MH_I2C_Read... [00:30:33]Read from MH i2c: E2 FD 00 57 18 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 67 [00:30:33]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:34]wFMCommunicate OK [00:30:34]wFMCommunicate request_size=4 [00:30:34]MH_SAM_APDU [00:30:34]CAPDU: 80 17 00 00 [00:30:34]Write to MH i2c: E2 08 00 58 18 80 17 00 00 00 00 00 00 F0 [00:30:34]Write i2c OK [00:30:34]MH_I2C_Read... [00:30:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:30:34]Read from MH i2c: E2 [00:30:34]MH_I2C_Read... [00:30:34]Read from MH i2c: E2 CE 00 [00:30:34]MH_I2C_Read... [00:30:34]Read from MH i2c: E2 CE 00 58 18 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D5 [00:30:34]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE OFD Sender: No OFD packet to send [00:30:34]03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:34]wFMCommunicate OK [00:30:34]SAM_PROTO_GetShiftData done [00:30:34]requested_item shift.sale.total_cash is exist - process it [00:30:34]requested_item shift.sale_refund.total is exist - process it [00:30:34]requested_item shift.sale_refund.total_cash is exist - process it [00:30:34]requested_item shift.buy.total is exist - process it [00:30:34]requested_item shift.buy.total_cash is exist - process it [00:30:34]produce_requested_data done [00:30:34]produce_requested_data return {"fm.sale.total":159803715.30,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":225210.94,"shift.sale.total_cash":202601.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:30:34]process_action_free get_value [00:30:34]json_value_free [00:30:34]json_value_free done [00:30:34]process_json_proto returns [00:30:34]Send response to host [00:30:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159803715.30,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":225210.94,"shift.sale.total_cash":202601.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:30:34]free response buf [00:30:34]execute_script done [00:30:34]execute_script returns [00:30:34]free content buf [00:30:34]Sock 9.Close socket [00:30:34]Sock 9.Thread stoped [00:30:34]accept exits with 8 [00:30:34]New connection [00:30:34]New thread 3066658148 created [00:30:34]Thread 3066801508 joined [00:30:34]Waiting for new connection... [00:30:34] Sock 8.Parse request [00:30:34]Sock 8.Check first char [00:30:34]Sock 8.First char is OK [00:30:34]request: POST /json_proto HTTP/1.0 [00:30:34]Method: POST [00:30:34]URL: /json_proto [00:30:34]Method is POST - this is cgi request [00:30:34]url: /json_proto [00:30:34]query_string will be loaded in cgi processing [00:30:34]execute_cgi json_proto POST (null) [00:30:34]execute_cgi path=json_proto method=POST [00:30:34]POST find Content-Length [00:30:34]Host: 172.17.63.131:8080 [00:30:34]Content-Length: 331 [00:30:34]Content-Type: application/json [00:30:34] [00:30:34]POST finish read [00:30:34]Found Content-Length = 331 [00:30:34]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:34]execute_script... [00:30:34]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:34]POST & json_proto [00:30:34]process_json_proto [00:30:34]json parsed OK: [00:30:34]protocol is kg_v1.0 [00:30:34]action value=get_value [00:30:34]process_action get_value [00:30:34]cmd_get_value [00:30:34]process_action get_value done [00:30:34]requested_data is exist [00:30:34]produce_requested_data [00:30:34]requested_item fm.sale.total is exist - process it [00:30:34]SAM_PROTO_GetFMData [00:30:34]wFMCommunicate request_size=4 [00:30:34]MH_SAM_APDU [00:30:34]CAPDU: 80 13 03 00 [00:30:34]Write to MH i2c: E2 08 00 59 18 80 13 03 00 00 00 00 00 F0 [00:30:34]Write i2c OK [00:30:34]MH_I2C_Read... [00:30:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:35]Read from MH i2c: E2 [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: E2 FD 00 [00:30:35]MH_I2C_Read... [00:30:35]Read from MH i2c: E2 FD 00 59 18 00 C1 04 85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 62 [00:30:35]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:30:35]wFMCommunicate OK [00:30:35]wFMCommunicate request_size=4 [00:30:35]MH_SAM_APDU [00:30:35]CAPDU: 80 17 00 00 [00:30:35]Write to MH i2c: E2 08 00 5A 18 80 17 00 00 00 00 00 00 F2 [00:30:35]Write i2c OK [00:30:35]MH_I2C_Read... [00:30:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:36]Read from MH i2c: E2 [00:30:36]MH_I2C_Read... [00:30:36]Read from MH i2c: E2 FD 00 [00:30:36]MH_I2C_Read... [00:30:36]Read from MH i2c: E2 FD 00 5A 18 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 03 [00:30:36]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:36]wFMCommunicate OK [00:30:36]wFMCommunicate request_size=4 [00:30:36]MH_SAM_APDU [00:30:36]CAPDU: 80 17 00 00 [00:30:36]Write to MH i2c: E2 08 00 5B 18 80 17 00 00 00 00 00 00 F3 [00:30:36]Write i2c OK [00:30:36]MH_I2C_Read... [00:30:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:36]Read from MH i2c: E2 [00:30:36]MH_I2C_Read... [00:30:36]Read from MH i2c: E2 FD 00 [00:30:36]MH_I2C_Read... [00:30:36]Read from MH i2c: E2 FD 00 5B 18 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 93 [00:30:36]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:36]wFMCommunicate OK [00:30:36]wFMCommunicate request_size=4 [00:30:36]MH_SAM_APDU [00:30:36]CAPDU: 80 17 00 00 [00:30:36]Write to MH i2c: E2 08 00 5C 18 80 17 00 00 00 00 00 00 F4 [00:30:37]Write i2c OK [00:30:37]MH_I2C_Read... [00:30:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:37]Read from MH i2c: E2 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 FD 00 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 FD 00 5C 18 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 79 [00:30:37]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:30:37]wFMCommunicate OK [00:30:37]wFMCommunicate request_size=4 [00:30:37]MH_SAM_APDU [00:30:37]CAPDU: 80 17 00 00 [00:30:37]Write to MH i2c: E2 08 00 5D 18 80 17 00 00 00 00 00 00 F5 [00:30:37]Write i2c OK [00:30:37]MH_I2C_Read... [00:30:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:30:37]Read from MH i2c: E2 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 DE 00 [00:30:37]MH_I2C_Read... [00:30:37]Read from MH i2c: E2 DE 00 5D 18 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D4 [00:30:38]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:38]wFMCommunicate OK [00:30:38]SAM_PROTO_GetFMData done [00:30:38]requested_item fm.sale_refund.total is exist - process it [00:30:38]requested_item fm.buy.total is exist - process it [00:30:38]requested_item shift.sale.total is exist - process it [00:30:38]SAM_PROTO_GetShiftData [00:30:38]wFMCommunicate request_size=4 [00:30:38]MH_SAM_APDU [00:30:38]CAPDU: 80 13 02 00 [00:30:38]Write to MH i2c: E2 08 00 5E 18 80 13 02 00 00 00 00 00 F4 [00:30:38]Write i2c OK [00:30:38]MH_I2C_Read... [00:30:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:30:38]Read from MH i2c: E2 [00:30:38]MH_I2C_Read... [00:30:38]Read from MH i2c: E2 FD 00 [00:30:38]MH_I2C_Read... [00:30:38]Read from MH i2c: E2 FD 00 5E 18 00 B1 04 AA 04 AD 04 6E 04 04 00 54 01 00 00 69 04 9E 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 D8 0A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 F5 [00:30:38]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 54 01 00 00 69 04 9E 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 D8 0A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:39]wFMCommunicate OK [00:30:39]wFMCommunicate request_size=4 [00:30:39]MH_SAM_APDU [00:30:39]CAPDU: 80 17 00 00 [00:30:39]Write to MH i2c: E2 08 00 5F 18 80 17 00 00 00 00 00 00 F7 [00:30:39]Write i2c OK [00:30:39]MH_I2C_Read... [00:30:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:39]Read from MH i2c: E2 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 5F 18 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 10 [00:30:39]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 OFD Sender: No OFD packet to send [00:30:39]03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:30:39]wFMCommunicate OK [00:30:39]wFMCommunicate request_size=4 [00:30:39]MH_SAM_APDU [00:30:39]CAPDU: 80 17 00 00 [00:30:39]Write to MH i2c: E2 08 00 60 18 80 17 00 00 00 00 00 00 F8 [00:30:39]Write i2c OK [00:30:39]MH_I2C_Read... [00:30:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:39]Read from MH i2c: E2 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 [00:30:39]MH_I2C_Read... [00:30:39]Read from MH i2c: E2 FD 00 60 18 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B1 [00:30:40]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:30:40]wFMCommunicate OK [00:30:40]wFMCommunicate request_size=4 [00:30:40]MH_SAM_APDU [00:30:40]CAPDU: 80 17 00 00 [00:30:40]Write to MH i2c: E2 08 00 61 18 80 17 00 00 00 00 00 00 F9 [00:30:40]Write i2c OK [00:30:40]MH_I2C_Read... [00:30:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:40]Read from MH i2c: E2 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 FD 00 [00:30:40]MH_I2C_Read... [00:30:40]Read from MH i2c: E2 FD 00 61 18 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 71 [00:30:40]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:41]wFMCommunicate OK [00:30:41]wFMCommunicate request_size=4 [00:30:41]MH_SAM_APDU [00:30:41]CAPDU: 80 17 00 00 [00:30:41]Write to MH i2c: E2 08 00 62 18 80 17 00 00 00 00 00 00 FA [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:30:41]Read from MH i2c: E2 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 CE 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 CE 00 62 18 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DF [00:30:41]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:41]wFMCommunicate OK [00:30:41]SAM_PROTO_GetShiftData done [00:30:41]requested_item shift.sale.total_cash is exist - process it [00:30:41]requested_item shift.sale_refund.total is exist - process it [00:30:41]requested_item shift.sale_refund.total_cash is exist - process it [00:30:41]requested_item shift.buy.total is exist - process it [00:30:41]requested_item shift.buy.total_cash is exist - process it [00:30:41]produce_requested_data done [00:30:41]produce_requested_data return {"fm.sale.total":159803715.30,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":225210.94,"shift.sale.total_cash":202601.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:30:41]process_action_free get_value [00:30:41]json_value_free [00:30:41]json_value_free done [00:30:41]process_json_proto returns [00:30:41]Send response to host [00:30:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159803715.30,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":225210.94,"shift.sale.total_cash":202601.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:30:41]free response buf [00:30:41]execute_script done [00:30:41]execute_script returns [00:30:41]free content buf [00:30:41]Sock 8.Close socket [00:30:41]Sock 8.Thread stoped [00:30:41]accept exits with 9 [00:30:41]New connection [00:30:41]New thread 3066801508 created [00:30:41]Thread 3066658148 joined [00:30:41]Waiting for new connection... [00:30:41] Sock 9.Parse request [00:30:41]Sock 9.Check first char [00:30:41]Sock 9.First char is OK [00:30:41]request: POST /json_proto HTTP/1.0 [00:30:41]Method: POST [00:30:41]URL: /json_proto [00:30:41]Method is POST - this is cgi request [00:30:41]url: /json_proto [00:30:41]query_string will be loaded in cgi processing [00:30:41]execute_cgi json_proto POST (null) [00:30:41]execute_cgi path=json_proto method=POST [00:30:41]POST find Content-Length [00:30:41]Host: 172.17.63.131:8080 [00:30:41]Content-Length: 260 [00:30:41]Content-Type: application/json [00:30:41] [00:30:41]POST finish read [00:30:41]Found Content-Length = 260 [00:30:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:41]execute_script... [00:30:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0443\u0440\u0431\u0430\u043D\u043E\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:41]POST & json_proto [00:30:41]process_json_proto [00:30:41]json parsed OK: [00:30:41]protocol is kg_v1.0 [00:30:41]action value=close_shift [00:30:41]process_action close_shift [00:30:41]cmd_close_shift [00:30:41]MH_GetDate [00:30:41]Write to MH i2c: F0 00 00 63 18 6A [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: F0 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: F0 09 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: F0 09 00 63 18 00 B3 2C 20 67 22 05 6E 64 D2 [00:30:41]GetLastDocTimeStamp 1730161815 [00:30:41]current date 1730161843 [00:30:41]FM_GetShiftState [00:30:41]SAM_PROTO_GetShiftState [00:30:41]wFMCommunicate request_size=4 [00:30:41]MH_SAM_APDU [00:30:41]CAPDU: 80 13 01 00 [00:30:41]Write to MH i2c: E2 08 00 64 18 80 13 01 00 00 00 00 00 F9 [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:41]Read from MH i2c: E2 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 0E 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 0E 00 64 18 00 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 49 [00:30:41]RAPDU: 09 00 01 E4 DB 1E 67 00 00 00 00 90 00 [00:30:41]wFMCommunicate OK [00:30:41]SAM_PROTO_GetShiftState done [00:30:41]FM_GetShiftState done [00:30:41]KKMCreateCloseShiftDocument [00:30:41]Load OK [00:30:41]Malloc new data [00:30:41]MH_GetDate [00:30:41]Write to MH i2c: F0 00 00 65 18 6C [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: F0 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: F0 09 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: F0 09 00 65 18 00 B3 2C 20 67 22 05 6E 64 D4 [00:30:41]Malloc new data [00:30:41]Malloc new data [00:30:41]Malloc new data [00:30:41]Malloc new data [00:30:41]KKMCreateCloseShiftDocument OK [00:30:41]KKMSetCloseShiftData OK [00:30:41]ProcessDocumentItem done err = 0, tmpTLVsize=71 [00:30:41]tlvbuf is 00F83BF0 [00:30:41]KKMLoadAndSignCloseShiftData [00:30:41]SAM_PROTO_ProcessDocument [00:30:41]wFMCommunicate request_size=9 [00:30:41]MH_SAM_APDU [00:30:41]CAPDU: 80 15 01 00 04 05 00 47 00 [00:30:41]Write to MH i2c: E2 0C 00 66 18 80 15 01 00 04 00 05 00 47 00 00 00 51 [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:41]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:30:41]Read from MH i2c: E2 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 03 00 [00:30:41]MH_I2C_Read... [00:30:41]Read from MH i2c: E2 03 00 66 18 00 90 00 F2 [00:30:41]RAPDU: 90 00 [00:30:41]wFMCommunicate OK [00:30:41]wFMCommunicate request_size=23 [00:30:41]MH_SAM_APDU [00:30:41]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:30:41]Write to MH i2c: E2 1A 00 67 18 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 F4 [00:30:41]Write i2c OK [00:30:41]MH_I2C_Read... [00:30:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:42]Read from MH i2c: E2 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 67 18 00 90 00 F3 [00:30:42]RAPDU: 90 00 [00:30:42]wFMCommunicate OK [00:30:42]wFMCommunicate request_size=30 [00:30:42]MH_SAM_APDU [00:30:42]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 [00:30:42]Write to MH i2c: E2 21 00 68 18 80 15 02 00 19 00 FD 03 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 00 00 CE [00:30:42]Write i2c OK [00:30:42]MH_I2C_Read... [00:30:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:42]Read from MH i2c: E2 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 68 18 00 90 00 F4 [00:30:42]RAPDU: 90 00 [00:30:42]wFMCommunicate OK [00:30:42]wFMCommunicate request_size=13 [00:30:42]MH_SAM_APDU [00:30:42]CAPDU: 80 15 02 00 08 F4 03 04 00 B3 2C 20 67 [00:30:42]Write to MH i2c: E2 10 00 69 18 80 15 02 00 08 00 F4 03 04 00 B3 2C 20 67 00 00 72 [00:30:42]Write i2c OK [00:30:42]MH_I2C_Read... [00:30:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:42]Read from MH i2c: E2 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 69 18 00 90 00 F5 [00:30:42]RAPDU: 90 00 [00:30:42]wFMCommunicate OK [00:30:42]wFMCommunicate request_size=25 [00:30:42]MH_SAM_APDU [00:30:42]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 [00:30:42]Write to MH i2c: E2 1C 00 6A 18 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 00 00 69 [00:30:42]Write i2c OK [00:30:42]MH_I2C_Read... [00:30:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:42]Read from MH i2c: E2 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 03 00 6A 18 00 90 00 F6 [00:30:42]RAPDU: 90 00 [00:30:42]wFMCommunicate OK [00:30:42]wFMCommunicate request_size=4 [00:30:42]MH_SAM_APDU [00:30:42]CAPDU: 80 15 03 00 [00:30:42]Write to MH i2c: E2 08 00 6B 18 80 15 03 00 00 00 00 00 04 [00:30:42]Write i2c OK [00:30:42]MH_I2C_Read... [00:30:42]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:30:42]Read from MH i2c: E2 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 FD 00 [00:30:42]MH_I2C_Read... [00:30:42]Read from MH i2c: E2 FD 00 6B 18 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 F1 02 00 0E 04 04 00 1F 02 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 56 01 00 00 AA 04 AD 04 6E 04 04 00 54 01 00 00 69 04 9E 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 D8 0A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 71 [00:30:43]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 F1 02 00 0E 04 04 00 1F 02 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 56 01 00 00 AA 04 AD 04 6E 04 04 00 54 01 00 00 69 04 9E 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 D8 0A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:30:43]wFMCommunicate OK [00:30:43]SAM_PROTO_ProcessDocument answer len = 1268 [00:30:43]SAM_PROTO_ProcessDocument remain to read = 1020 [00:30:43]wFMCommunicate request_size=4 [00:30:43]MH_SAM_APDU [00:30:43]CAPDU: 80 17 00 00 [00:30:43]Write to MH i2c: E2 08 00 6C 18 80 17 00 00 00 00 00 00 04 [00:30:43]Write i2c OK [00:30:43]MH_I2C_Read... [00:30:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:43]Read from MH i2c: E2 [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: E2 FD 00 [00:30:43]MH_I2C_Read... [00:30:43]Read from MH i2c: E2 FD 00 6C 18 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 58 [00:30:43]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:30:44]wFMCommunicate OK [00:30:44]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:44]SAM_PROTO_ProcessDocument remain to read = 770 [00:30:44]wFMCommunicate request_size=4 [00:30:44]MH_SAM_APDU [00:30:44]CAPDU: 80 17 00 00 [00:30:44]Write to MH i2c: E2 08 00 6D 18 80 17 00 00 00 00 00 00 05 [00:30:44]Write i2c OK [00:30:44]MH_I2C_Read... [00:30:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:44]Read from MH i2c: E2 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 FD 00 [00:30:44]MH_I2C_Read... [00:30:44]Read from MH i2c: E2 FD 00 6D 18 00 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 90 00 67 [00:30:44]RAPDU: 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 90 00 [00:30:44]wFMCommunicate OK [00:30:44]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:44]SAM_PROTO_ProcessDocument remain to read = 520 [00:30:44]wFMCommunicate request_size=4 [00:30:44]MH_SAM_APDU [00:30:44]CAPDU: 80 17 00 00 [00:30:44]Write to MH i2c: E2 08 00 6E OFD Sender: No OFD packet to send [00:30:44]18 80 17 00 00 00 00 00 00 06 [00:30:44]Write i2c OK [00:30:44]MH_I2C_Read... [00:30:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:45]Read from MH i2c: E2 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 FD 00 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 FD 00 6E 18 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 8E [00:30:45]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 [00:30:45]wFMCommunicate OK [00:30:45]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:45]SAM_PROTO_ProcessDocument remain to read = 270 [00:30:45]wFMCommunicate request_size=4 [00:30:45]MH_SAM_APDU [00:30:45]CAPDU: 80 17 00 00 [00:30:45]Write to MH i2c: E2 08 00 6F 18 80 17 00 00 00 00 00 00 07 [00:30:45]Write i2c OK [00:30:45]MH_I2C_Read... [00:30:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:45]Read from MH i2c: E2 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 FD 00 [00:30:45]MH_I2C_Read... [00:30:45]Read from MH i2c: E2 FD 00 6F 18 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 D1 [00:30:45]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 [00:30:46]wFMCommunicate OK [00:30:46]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:46]SAM_PROTO_ProcessDocument remain to read = 20 [00:30:46]wFMCommunicate request_size=4 [00:30:46]MH_SAM_APDU [00:30:46]CAPDU: 80 17 00 00 [00:30:46]Write to MH i2c: E2 08 00 70 18 80 17 00 00 00 00 00 00 08 [00:30:46]Write i2c OK [00:30:46]MH_I2C_Read... [00:30:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:30:46]Read from MH i2c: E2 [00:30:46]MH_I2C_Read... [00:30:46]Read from MH i2c: E2 17 00 [00:30:46]MH_I2C_Read... [00:30:46]Read from MH i2c: E2 17 00 70 18 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 34 C0 23 5B EB EE 90 00 94 [00:30:46]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 34 C0 23 5B EB EE 90 00 [00:30:46]wFMCommunicate OK [00:30:46]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:30:46]SAM_PROTO_ProcessDocument done [00:30:46]1209 (1) - 1.0 - номер версии ФФД [00:30:46]1041 (16) - 0000000000871754 - номер ФМ [00:30:46]1040 (4) - 192793 - номер ФД [00:30:46]1038 (4) - 543 - номер смены [00:30:46]1118 (4) - 340 - количество кассовых чеков за смену [00:30:46]1111 (4) - 342 - общее количество ФД за смену [00:30:46]1194 (1197) - счетчики итогов смены [00:30:46] 1134 (4) - 340 - количество чеков со всеми признаками расчетов [00:30:46] 1129 (158) - счетчики операций «приход» [00:30:46] 1135 (4) - 340 - количество чеков по признаку расчетов [00:30:46] 1201 (4) - 225210.94 - общая итоговая сумма в чеках [00:30:46] 1136 (4) - 202601.00 - итоговая сумма в чеках наличными [00:30:46] 1138 (3) - 22609.94 - итоговая сумма в чеках безналичными [00:30:46] 1024 (123) - суммы налогов [00:30:46] 1006 (9) - суммы НДС [00:30:46] 1010 (1) - 0% - код ставки НДС [00:30:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:46] 1006 (12) - суммы НДС [00:30:46] 1010 (1) - 12% - код ставки НДС [00:30:46] 1011 (3) - 23925.60 - сумма НДС по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 0% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (12) - суммы НСП [00:30:46] 1014 (1) - 1% - код ставки НСП [00:30:46] 1015 (3) - 1993.84 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 2% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 3% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 5% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 0,50% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 1,50% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1130 (141) - счетчики операций «возврат прихода» [00:30:46] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:46] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:46] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:46] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:46] 1024 (117) - суммы налогов [00:30:46] 1006 (9) - суммы НДС [00:30:46] 1010 (1) - 0% - код ставки НДС [00:30:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:46] 1006 (9) - суммы НДС [00:30:46] 1010 (1) - 12% - код ставки НДС [00:30:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 0% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 1% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 2% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 3% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 5% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 0,50% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 1,50% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1131 (141) - счетчики операций «расход» [00:30:46] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:46] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:46] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:46] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:46] 1024 (117) - суммы налогов [00:30:46] 1006 (9) - суммы НДС [00:30:46] 1010 (1) - 0% - код ставки НДС [00:30:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:46] 1006 (9) - суммы НДС [00:30:46] 1010 (1) - 12% - код ставки НДС [00:30:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 0% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 1% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 2% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 3% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 5% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 0,50% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 1,50% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1132 (141) - счетчики операций «возврат расхода» [00:30:46] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:46] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:46] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:46] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:46] 1024 (117) - суммы налогов [00:30:46] 1006 (9) - суммы НДС [00:30:46] 1010 (1) - 0% - код ставки НДС [00:30:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:46] 1006 (9) - суммы НДС [00:30:46] 1010 (1) - 12% - код ставки НДС [00:30:46] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 0% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 1% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 2% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 3% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 5% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 0,50% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1007 (9) - суммы НСП [00:30:46] 1014 (1) - 1,50% - код ставки НСП [00:30:46] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:46] 1133 (588) - - счетчики коррекции - не используются [00:30:46]1077 (6) - 57999831591918 - ФПД [00:30:46]SetTLVBufToDocument [00:30:46]Processing tag 1209 (04B9) [00:30:46]Malloc new data [00:30:46]Processing tag 1041 (0411) [00:30:46]Processing tag 1040 (0410) [00:30:46]Malloc new data [00:30:46]Processing tag 1038 (040E) [00:30:46]Malloc new data [00:30:46]Processing tag 1118 (045E) [00:30:46]Malloc new data [00:30:46]Processing tag 1111 (0457) [00:30:46]Malloc new data [00:30:46]Processing tag 1194 (04AA) [00:30:46]Load OK [00:30:46]SetTLVBufToDocument [00:30:46]Processing tag 1134 (046E) [00:30:46]Malloc new data [00:30:46]Processing tag 1129 (0469) [00:30:46]Load OK [00:30:46]SetTLVBufToDocument [00:30:46]Processing tag 1135 (046F) [00:30:46]Malloc new data [00:30:46]Processing tag 1201 (04B1) [00:30:46]Malloc new data [00:30:46]Processing tag 1136 (0470) [00:30:46]Malloc new data [00:30:46]Processing tag 1138 (0472) [00:30:46]Malloc new data [00:30:46]Processing tag 1024 (0400) [00:30:46]Load OK [00:30:46]SetTLVBufToDocument [00:30:46]Processing tag 1006 (03EE) [00:30:46]Load OK [00:30:46]SetTLVBufToDocument [00:30:46]Processing tag 1010 (03F2) [00:30:46]Malloc new data [00:30:46]Processing tag 1011 (03F3) [00:30:46]Malloc new data [00:30:46]SetTLVBufToDocument err=0 [00:30:46]Processing tag 1006 (03EE) [00:30:46]Load OK [00:30:46]SetTLVBufToDocument [00:30:46]Processing tag 1010 (03F2) [00:30:46]Malloc new data [00:30:46]Processing tag 1011 (03F3) [00:30:46]Malloc new data [00:30:46]SetTLVBufToDocument err=0 [00:30:46]Processing tag 1007 (03EF) [00:30:46]Load OK [00:30:46]SetTLVBufToDocument [00:30:46]Processing tag 1014 (03F6) [00:30:46]Malloc new data [00:30:46]Processing tag 1015 (03F7) [00:30:46]Malloc new data [00:30:46]SetTLVBufToDocument err=0 [00:30:46]Processing tag 1007 (03EF) [00:30:46]Load OK [00:30:46]SetTLVBufToDocument [00:30:46]Processing tag 1014 (03F6) [00:30:46]Malloc new data [00:30:46]Processing tag 1015 (03F7) [00:30:46]Malloc new data [00:30:46]SetTLVBufToDocument err=0 [00:30:46]Processing tag 1007 (03EF) [00:30:46]Load OK [00:30:46]SetTLVBufToDocument [00:30:46]Processing tag 1014 (03F6) [00:30:46]Malloc new data [00:30:46]Processing tag 1015 (03F7) [00:30:46]Malloc new data [00:30:46]SetTLVBufToDocument err=0 [00:30:46]Processing tag 1007 (03EF) [00:30:46]Load OK [00:30:46]SetTLVBufToDocument [00:30:46]Processing tag 1014 (03F6) [00:30:46]Malloc new data [00:30:46]Processing tag 1015 (03F7) [00:30:46]Malloc new data [00:30:46]SetTLVBufToDocument err=0 [00:30:46]Processing tag 1007 (03EF) [00:30:46]Load OK [00:30:46]SetTLVBufToDocument [00:30:46]Processing tag 1014 (03F6) [00:30:46]Malloc new data [00:30:46]Processing tag 1015 (03F7) [00:30:46]Malloc new data [00:30:46]SetTLVBufToDocument err=0 [00:30:46]Processing tag 1007 (03EF) [00:30:46]Load OK [00:30:46]SetTLVBufToDocument [00:30:46]Processing tag 1014 (03F6) [00:30:46]Malloc new data [00:30:46]Processing tag 1015 (03F7) [00:30:46]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]SetTLVBufToDocument err=0 [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1130 (046A) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1135 (046F) [00:30:47]Malloc new data [00:30:47]Processing tag 1201 (04B1) [00:30:47]Malloc new data [00:30:47]Processing tag 1136 (0470) [00:30:47]Malloc new data [00:30:47]Processing tag 1138 (0472) [00:30:47]Malloc new data [00:30:47]Processing tag 1024 (0400) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1006 (03EE) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1010 (03F2) [00:30:47]Malloc new data [00:30:47]Processing tag 1011 (03F3) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1006 (03EE) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1010 (03F2) [00:30:47]Malloc new data [00:30:47]Processing tag 1011 (03F3) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]SetTLVBufToDocument err=0 [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1131 (046B) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1135 (046F) [00:30:47]Malloc new data [00:30:47]Processing tag 1201 (04B1) [00:30:47]Malloc new data [00:30:47]Processing tag 1136 (0470) [00:30:47]Malloc new data [00:30:47]Processing tag 1138 (0472) [00:30:47]Malloc new data [00:30:47]Processing tag 1024 (0400) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1006 (03EE) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1010 (03F2) [00:30:47]Malloc new data [00:30:47]Processing tag 1011 (03F3) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1006 (03EE) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1010 (03F2) [00:30:47]Malloc new data [00:30:47]Processing tag 1011 (03F3) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]SetTLVBufToDocument err=0 [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1132 (046C) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1135 (046F) [00:30:47]Malloc new data [00:30:47]Processing tag 1201 (04B1) [00:30:47]Malloc new data [00:30:47]Processing tag 1136 (0470) [00:30:47]Malloc new data [00:30:47]Processing tag 1138 (0472) [00:30:47]Malloc new data [00:30:47]Processing tag 1024 (0400) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1006 (03EE) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1010 (03F2) [00:30:47]Malloc new data [00:30:47]Processing tag 1011 (03F3) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1006 (03EE) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1010 (03F2) [00:30:47]Malloc new data [00:30:47]Processing tag 1011 (03F3) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1007 (03EF) [00:30:47]Load OK [00:30:47]SetTLVBufToDocument [00:30:47]Processing tag 1014 (03F6) [00:30:47]Malloc new data [00:30:47]Processing tag 1015 (03F7) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]SetTLVBufToDocument err=0 [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1133 (046D) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Processing tag 1077 (0435) [00:30:47]Malloc new data [00:30:47]SetTLVBufToDocument err=0 [00:30:47]Malloc new data [00:30:47]SAM_PROTO_GetFMData [00:30:47]wFMCommunicate request_size=4 [00:30:47]MH_SAM_APDU [00:30:47]CAPDU: 80 13 03 00 [00:30:47]Write to MH i2c: E2 08 00 71 18 80 13 03 00 00 00 00 00 08 [00:30:47]Write i2c OK [00:30:47]MH_I2C_Read... [00:30:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:47]Read from MH i2c: E2 [00:30:47]MH_I2C_Read... [00:30:47]Read from MH i2c: E2 FD 00 [00:30:47]MH_I2C_Read... [00:30:47]Read from MH i2c: E2 FD 00 71 18 00 C1 04 85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 7A [00:30:47]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:30:48]wFMCommunicate OK [00:30:48]wFMCommunicate request_size=4 [00:30:48]MH_SAM_APDU [00:30:48]CAPDU: 80 17 00 00 [00:30:48]Write to MH i2c: E2 08 00 72 18 80 17 00 00 00 00 00 00 0A [00:30:48]Write i2c OK [00:30:48]MH_I2C_Read... [00:30:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:48]Read from MH i2c: E2 [00:30:48]MH_I2C_Read... [00:30:48]Read from MH i2c: E2 FD 00 [00:30:48]MH_I2C_Read... [00:30:48]Read from MH i2c: E2 FD 00 72 18 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [00:30:48]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:48]wFMCommunicate OK [00:30:48]wFMCommunicate request_size=4 [00:30:48]MH_SAM_APDU [00:30:48]CAPDU: 80 17 00 00 [00:30:48]Write to MH i2c: E2 08 00 73 18 80 17 00 00 00 00 00 00 0B [00:30:49]Write i2c OK [00:30:49]MH_I2C_Read... [00:30:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:49]Read from MH i2c: E2 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: E2 FD 00 [00:30:49]MH_I2C_Read... [00:30:49]Read from MH i2c: E2 FD 00 73 18 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AB [00:30:49]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:30:49]wFMCommunicate OK [00:30:49]wFMCommunicate request_size=4 [00:30:49]MH_SAM_APDU [00:30:49]CAPDU: 80 17 00 00 [00:30:49]Write to MH i2c: E2 08 00 74 18 80 17 00 00 00 00 00 00 0C [00:30:49]Write i2c OK [00:30:49]MH_I2C_Read... [00:30:49]OFD Sender: No OFD packet to send [00:30:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:50]Read from MH i2c: E2 [00:30:50]MH_I2C_Read... [00:30:50]Read from MH i2c: E2 FD 00 [00:30:50]MH_I2C_Read... [00:30:50]Read from MH i2c: E2 FD 00 74 18 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 91 [00:30:50]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:30:50]wFMCommunicate OK [00:30:50]wFMCommunicate request_size=4 [00:30:50]MH_SAM_APDU [00:30:50]CAPDU: 80 17 00 00 [00:30:50]Write to MH i2c: E2 08 00 75 18 80 17 00 00 00 00 00 00 0D [00:30:50]Write i2c OK [00:30:50]MH_I2C_Read... [00:30:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:30:50]Read from MH i2c: E2 [00:30:50]MH_I2C_Read... [00:30:50]Read from MH i2c: E2 DE 00 [00:30:50]MH_I2C_Read... [00:30:50]Read from MH i2c: E2 DE 00 75 18 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EC [00:30:51]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:51]wFMCommunicate OK [00:30:51]SAM_PROTO_GetFMData done [00:30:51]Malloc new data [00:30:51]Malloc new data [00:30:51]Malloc new data [00:30:51]Malloc new data [00:30:51]KKMLoadAndSignCloseShiftData err=0 [00:30:51]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Курбанов М. 29.10.2024 00:30 Смена: 543 РНМ: 0000000000091776 ЗНМ: 0300000110 СНО: Общий режим Чеков за смену: 340 ФД за смену: 342 Всего чеков: 340 ИТОГИ ПРИХОД Чеков: 340 Общий итог: 225210.94 Итого наличными: 202601.00 Итого безнал.: 22609.94 НДС 0% : 0.00 НДС 12% : 23925.60 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1993.84 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 202601.00 НС Приход: 159803715.30 НС Возвр.Прихода: 28777.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 192793 ФМ: 0000000000871754 ФПД: 57999831591918 [00:30:51]StoreToDocumentArchive [00:30:51]shift 543 fd 192793 [00:30:51]save to /storage/0543/doc_00192793 [00:30:51]save last doc name /storage/0543/doc_00192793 to /storage/kkm_last_doc_name [00:30:51]save OK [00:30:51]Clear old archive folders... [00:30:51]Remove dir /storage/0522 [00:30:51]opendir ok [00:30:51]file . [00:30:51]file .. [00:30:51]file doc_1730161823 [00:30:51]remove file /storage/0522/doc_1730161823 [00:30:51]remove dir /storage/0522 [00:30:51]NVStorageSaveData kkm_registers [00:30:51]File name is /storage/kkm_registers [00:30:51]Write 24 bytes [00:30:51]NVStorageSaveData done [00:30:51]NVStorageSaveData kkm_registers [00:30:51]File name is /storage/kkm_registers [00:30:51]Write 24 bytes [00:30:51]NVStorageSaveData done [00:30:51]ProcessDocumentItem done err = 0, tmpTLVsize=1382 [00:30:51]tlvbuf is 010AE7C0 [00:30:51]SAM_PROTO_ClearQueue [00:30:51]wFMCommunicate request_size=4 [00:30:51]MH_SAM_APDU [00:30:51]CAPDU: 80 09 00 00 [00:30:51]Write to MH i2c: E2 08 00 76 18 80 09 00 00 00 00 00 00 00 [00:30:51]Write i2c OK [00:30:51]MH_I2C_Read... [00:30:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:51]Read from MH i2c: E2 [00:30:51]MH_I2C_Read... [00:30:51]Read from MH i2c: E2 03 00 [00:30:51]MH_I2C_Read... [00:30:51]Read from MH i2c: E2 03 00 76 18 00 90 00 02 [00:30:51]RAPDU: 90 00 [00:30:51]wFMCommunicate OK [00:30:51]SAM_PROTO_ClearQueue done [00:30:51]KKMCreateOFDPacket [00:30:51]OFDProtocolAddRootSTLVToBuf [00:30:51]FM_MakeSignedData [00:30:51]FM_MakeSignedData [00:30:51]SAM_PROTO_SignData [00:30:51]wFMCommunicate request_size=4 [00:30:51]MH_SAM_APDU [00:30:51]CAPDU: 80 0D 01 02 [00:30:51]Write to MH i2c: E2 08 00 77 18 80 0D 01 02 00 00 00 00 08 [00:30:51]Write i2c OK [00:30:51]MH_I2C_Read... [00:30:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:51]Read from MH i2c: E2 [00:30:51]MH_I2C_Read... [00:30:51]Read from MH i2c: E2 03 00 [00:30:51]MH_I2C_Read... [00:30:51]Read from MH i2c: E2 03 00 77 18 00 90 00 03 [00:30:51]RAPDU: 90 00 [00:30:51]wFMCommunicate OK [00:30:51]wFMCommunicate request_size=255 [00:30:51]MH_SAM_APDU [00:30:51]CAPDU: 80 0D 02 02 FA 05 00 66 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 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F4 03 04 00 B3 2C 20 67 0E 04 04 00 1F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 5E 04 04 00 54 01 00 00 57 04 04 00 56 01 00 00 AA 04 D8 04 6E 04 04 00 54 01 00 00 69 04 A5 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 [00:30:51]Write to MH i2c: E2 02 01 78 18 80 0D 02 02 FA 00 05 00 66 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 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F4 03 04 00 B3 2C 20 67 0E 04 04 00 1F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 5E 04 04 00 54 01 00 00 57 04 04 00 56 01 00 00 AA 04 D8 04 6E 04 04 00 54 01 00 00 69 04 A5 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 00 00 82 [00:30:52]Write i2c OK [00:30:52]MH_I2C_Read... [00:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:52]Read from MH i2c: E2 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 03 00 [00:30:52]MH_I2C_Read... [00:30:52]Read from MH i2c: E2 03 00 78 18 00 90 00 04 [00:30:52]RAPDU: 90 00 [00:30:52]wFMCommunicate OK [00:30:52]wFMCommunicate request_size=255 [00:30:52]MH_SAM_APDU [00:30:52]CAPDU: 80 0D 02 02 FA 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 D8 0A 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 [00:30:52]Write to MH i2c: E2 02 01 79 18 80 0D 02 02 FA 00 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 D8 0A 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 00 5C [00:30:52]Write i2c OK [00:30:52]MH_I2C_Read... [00:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:53]Read from MH i2c: E2 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 03 00 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 03 00 79 18 00 90 00 05 [00:30:53]RAPDU: 90 00 [00:30:53]wFMCommunicate OK [00:30:53]wFMCommunicate request_size=255 [00:30:53]MH_SAM_APDU [00:30:53]CAPDU: 80 0D 02 02 FA 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 [00:30:53]Write to MH i2c: E2 02 01 7A 18 80 0D 02 02 FA 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 00 00 D2 [00:30:53]Write i2c OK [00:30:53]MH_I2C_Read... [00:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:53]Read from MH i2c: E2 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 03 00 [00:30:53]MH_I2C_Read... [00:30:53]Read from MH i2c: E2 03 00 7A 18 00 90 00 06 [00:30:53]RAPDU: 90 00 [00:30:53]wFMCommunicate OK [00:30:53]wFMCommunicate request_size=255 [00:30:53]MH_SAM_APDU [00:30:53]CAPDU: 80 0D 02 02 FA 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:30:54]Write to MH i2c: E2 02 01 7B 18 80 0D 02 02 FA 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 00 D2 [00:30:54]Write i2c OK [00:30:54]MH_I2C_Read... [00:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:54]Read from MH i2c: E2 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 03 00 [00:30:54]MH_I2C_Read... [00:30:54]Read from MH i2c: E2 03 00 7B 18 00 90 00 07 [00:30:54]RAPDU: 90 00 [00:30:54]wFMCommunicate OK [00:30:54]wFMCommunicate request_size=255 [00:30:54]MH_SAM_APDU [00:30:54]CAPDU: 80 0D 02 02 FA 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 OFD Sender: No OFD packet to send [00:30:55]F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 [00:30:55]Write to MH i2c: E2 02 01 7C 18 80 0D 02 02 FA 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 00 00 98 [00:30:55]Write i2c OK [00:30:55]MH_I2C_Read... [00:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:55]Read from MH i2c: E2 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 03 00 [00:30:55]MH_I2C_Read... [00:30:55]Read from MH i2c: E2 03 00 7C 18 00 90 00 08 [00:30:55]RAPDU: 90 00 [00:30:55]wFMCommunicate OK [00:30:55]wFMCommunicate request_size=141 [00:30:55]MH_SAM_APDU [00:30:55]CAPDU: 80 0D 02 02 88 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 19 F1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 34 C0 23 5B EB EE [00:30:55]Write to MH i2c: E2 90 00 7D 18 80 0D 02 02 88 00 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 19 F1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 34 C0 23 5B EB EE 00 00 A8 [00:30:56]Write i2c OK [00:30:56]MH_I2C_Read... [00:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:56]Read from MH i2c: E2 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 03 00 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 03 00 7D 18 00 90 00 09 [00:30:56]RAPDU: 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 0D 03 02 [00:30:56]Write to MH i2c: E2 08 00 7E 18 80 0D 03 02 00 00 00 00 11 [00:30:56]Write i2c OK [00:30:56]MH_I2C_Read... [00:30:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:56]Read from MH i2c: E2 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 0B 00 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 0B 00 7E 18 00 6E E3 FB 27 3C 1E FD 67 90 00 43 [00:30:56]RAPDU: 6E E3 FB 27 3C 1E FD 67 90 00 [00:30:56]wFMCommunicate OK [00:30:56]SAM_PROTO_SignData done [00:30:56]FM_MakeSignedData done [00:30:56]CreateOFDProtocolMessage [00:30:56]wFMCommunicate request_size=4 [00:30:56]MH_SAM_APDU [00:30:56]CAPDU: 80 11 00 00 [00:30:56]Write to MH i2c: E2 08 00 7F 18 80 11 00 00 00 00 00 00 11 [00:30:56]Write i2c OK [00:30:56]MH_I2C_Read... [00:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:56]Read from MH i2c: E2 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 17 00 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: E2 17 00 7F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 64 [00:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:30:56]wFMCommunicate OK [00:30:56]CreateOFDProtocolMessage done [00:30:56]OFDSenderStorePacket 192793 [00:30:56]StoreOFDPacket docnum=192793 [00:30:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 7A 05 00 00 C5 F1 72 05 1F 6F 5A 05 01 00 05 00 66 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 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F4 03 04 00 B3 2C 20 67 0E 04 04 00 1F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 5E 04 04 00 54 01 00 00 57 04 04 00 56 01 00 00 AA 04 D8 04 6E 04 04 00 54 01 00 00 69 04 A5 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 D8 0A 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 19 F1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 34 C0 23 5B EB EE 6E E3 FB 27 3C 1E FD 67 [00:30:56]CheckFolder [00:30:56]dirname=/storage/ofd_packets [00:30:56]CheckFolder done [00:30:56]ProducePacketName [00:30:56]name=ofd_packets/00192793 [00:30:56]NVStorageSaveData ofd_packets/00192793 [00:30:56]File name is /storage/ofd_packets/00192793 [00:30:56]Write 1432 bytes [00:30:56]NVStorageSaveData done [00:30:56]OFDSenderStorePacket done [00:30:56]KKMCreateOFDPacket done [00:30:56]NVStorageSaveData kkm_last_timestamp [00:30:56]File name is /storage/kkm_last_timestamp [00:30:56]Write 4 bytes [00:30:56]NVStorageSaveData done [00:30:56]ExternCall_PrintAddStr [00:30:56]wPrintStart [00:30:56]Write to MH i2c: 01 00 00 80 18 98 [00:30:56]Write i2c OK [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: 01 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: 01 07 00 [00:30:56]MH_I2C_Read... [00:30:56]Read from MH i2c: 01 07 00 80 18 00 00 00 00 00 FF 0F AD [00:30:56]RasterBufferAndPrint [00:30:56]line Отчет о закрытии смены [00:30:56]line ФФД: 1.0 [00:30:56]line ИНН: 02508201610067 [00:30:56]line Кассир: Курбанов М. [00:30:56]line 29.10.2024 00:30 [00:30:56]line Смена: 543 [00:30:56]line РНМ: 0000000000091776 [00:30:56]line ЗНМ: 0300000110 [00:30:56]line СНО: Общий режим [00:30:56]line Чеков за смену: 340 [00:30:56]line ФД за смену: 342 [00:30:56]line Всего чеков: 340 [00:30:56]line ИТОГИ ПРИХОД [00:30:56]line Чеков: 340 [00:30:56]line Общий итог: 225210.94 [00:30:56]line Итого наличными: 202601.00 [00:30:56]line Итого безнал.: 22609.94 [00:30:56]line НДС 0% : 0.00 [00:30:56]line НДС 12% : 23925.60 [00:30:56]line НСП 0% : 0.00 [00:30:56]line НСП 1,50% : 0.00 [00:30:56]line НСП 0,50% : 0.00 [00:30:56]line НСП 5% : 0.00 [00:30:56]line НСП 3% : 0.00 [00:30:56]line НСП 2% : 0.00 [00:30:56]line НСП 1% : 1993.84 [00:30:56]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:30:56]line Чеков: 0 [00:30:56]line Общий итог: 0.00 [00:30:56]OFD Sender: Processing packet 192793 [packets to send 75, broken 74] [00:30:56]line Итого наличными: 0.00 [00:30:56]ProducePacketName [00:30:56]line Итого безнал.: 0.00 [00:30:56]name=ofd_packets/00192793 [00:30:56]line НДС 0% : 0.00 [00:30:56]OFD Sender: To server: pG, [00:30:57]line НДС 12% : 0.00 [00:30:57]CommunicateWithHost lk.salyk.kg:30040 [00:30:57]ConnectInit lk.salyk.kg [00:30:57]line НСП 0% : 0.00 [00:30:57]line НСП 1,50% : 0.00 [00:30:57]line НСП 0,50% : 0.00 [00:30:57]line НСП 5% : 0.00 [00:30:57]line НСП 3% : 0.00 [00:30:57]line НСП 2% : 0.00 [00:30:57]line НСП 1% : 0.00 [00:30:57]line ИТОГИ РАСХОД [00:30:57]line Чеков: 0 [00:30:57]line Общий итог: 0.00 [00:30:57]line Итого наличными: 0.00 [00:30:57]line Итого безнал.: 0.00 [00:30:57]line НДС 0% : 0.00 [00:30:57]line НДС 12% : 0.00 [00:30:57]line НСП 0% : 0.00 [00:30:57]line НСП 1,50% : 0.00 [00:30:57]line НСП 0,50% : 0.00 [00:30:57]line НСП 5% : 0.00 [00:30:57]line НСП 3% : 0.00 [00:30:57]line НСП 2% : 0.00 [00:30:57]line НСП 1% : 0.00 [00:30:57]line ИТОГИ ВОЗВРАТ РАСХОДА [00:30:57]line Чеков: 0 [00:30:57]line Общий итог: 0.00 [00:30:57]line Итого наличными: 0.00 [00:30:57]line Итого безнал.: 0.00 [00:30:57]line НДС 0% : 0.00 [00:30:57]line НДС 12% : 0.00 [00:30:57]line НСП 0% : 0.00 [00:30:57]line НСП 1,50% : 0.00 [00:30:57]line НСП 0,50% : 0.00 [00:30:57]line НСП 5% : 0.00 [00:30:57]line НСП 3% : 0.00 [00:30:57]line НСП 2% : 0.00 [00:30:57]line НСП 1% : 0.00 [00:30:57]line Сумма внесений: 0.00 [00:30:57]line Сумма выплат: 0.00 [00:30:57]line Нал. в кассе: 202601.00 [00:30:57]line НС Приход: 159803715.30 [00:30:57]line НС Возвр.Прихода: 28777.00 [00:30:57]line НС Расход: 0.00 [00:30:57]line НС Возвр.Расхода: 0.00 [00:30:57]line ФД: 192793 [00:30:57]line ФМ: 0000000000871754 [00:30:57]line ФПД: 57999831591918 [00:30:57]written 0, free lines is 4095 [00:30:57]Connected sock=10 [00:30:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 7A 05 00 00 C5 F1 72 05 1F 6F 5A 05 01 00 05 00 66 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 15 00 D0 9A D1 83 D1 80 D0 B1 D0 B0 D0 BD D0 BE D0 B2 20 D0 9C 2E 20 F4 03 04 00 B3 2C 20 67 0E 04 04 00 1F 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 5E 04 04 00 54 01 00 00 57 04 04 00 56 01 00 00 AA 04 D8 04 6E 04 04 00 54 01 00 00 69 04 A5 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 D8 0A 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 Write to MH i2c: 00 01 00 00 70 04 01 00 00 72 04 01 00 00 00 00 04 D0 7E 18 00 E8 EE [00:30:57]03 0A 00 F2 03 01 Write i2c OK [00:30:57]00 MH_I2C_Read... [00:30:57]00 Read from MH i2c: F3 01 03 [00:30:57]01 MH_I2C_Read... [00:30:57]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 Read from MH i2c: 0A 01 00 07 F6 00 03 [00:30:58]01 MH_I2C_Read... [00:30:58]00 Read from MH i2c: 06 01 F7 07 03 00 01 D0 00 18 00 00 EF 00 03 00 0A 00 00 00 F6 84 03 0A 01 7D 00 [00:30:58]05 RasterBufferAndPrint [00:30:58]F7 line [00:30:58]03 line [00:30:58]01 line [00:30:58]00 line [00:30:58]00 line [00:30:58]EF 03 0A 00 written 0, free lines is 3054 [00:30:58]F6 03 01 00 04 F7 03 01 00 00 MH_Cut [00:30:58]EF Write to MH i2c: 03 D1 01 00 D7 18 01 C1 [00:30:58]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 Write i2c OK [00:30:58]00 MH_I2C_Read... [00:30:58]6F Read from MH i2c: 04 D1 04 [00:30:58]00 MH_I2C_Read... [00:30:58]00 00 00 00 B1 04 01 00 Read from MH i2c: 00 D1 70 01 04 00 01 [00:30:58]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 MH_I2C_Read... [00:30:58]00 Read from MH i2c: 00 D1 EF 01 03 00 0A 00 F6 03 01 00 05 F7 03 01 D7 00 18 00 00 EF C0 03 [00:30:58]0A 00 F6 03 01 00 04 F7 03 01 00 Write to MH i2c: 00 01 EF 00 03 00 0A D8 00 18 F6 F0 03 [00:30:58]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 Write i2c OK [00:30:58]00 MH_I2C_Read... [00:30:58]00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** Cut start [00:30:59]00 EF 03 09 00 F6 03 *** Partial cut [00:30:59]01 00 06 F7 03 00 00 10 04 04 00 19 F1 02 00 11 *** CUTSNS_PIN = 1 [00:30:59]04 10 00 30 30 30 30 30 *** CUTSNS_PIN = 0 [00:30:59]30 30 30 *** Brake cut motor [00:30:59]30 30 38 37 31 37 35 34 35 04 06 00 34 C0 23 5B EB EE 6E E3 FB 27 3C 1E FD 67 [00:30:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 34 E8 47 00 7E FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 *** Stop cut motor [00:30:59]Read from MH i2c: *** Cut end [00:30:59]01 [00:30:59]MH_I2C_Read... [00:30:59]F1 02 00 F4 03 04 00 85 D1 1F 67 B6 04 01 00 00 63 38 AD 81 D0 91 1C 86 [00:30:59]CommunicateWithHost err = 0 [00:30:59]CheckOFDResponse [00:30:59]1017 (14) - 77093643461234 [00:30:59]1041 (16) - 0000000000871754 [00:30:59]1040 (4) - 192793 [00:30:59]1012 (4) - 28.10.2024 18:01 [00:30:59]1206 (1) - 0 [00:30:59]OFD Sender: Remove packet 192793 [00:30:59]ProducePacketName [00:30:59]name=ofd_packets/00192793 [00:30:59]NVStorageDeleteData [00:30:59]Read from MH i2c: 01 07 00 [00:30:59]MH_I2C_Read... [00:30:59]Read from MH i2c: 01 07 00 D8 18 00 00 00 00 00 FF 0F 05 [00:30:59]process_action close_shift done [00:30:59]requested_data is exist [00:30:59]produce_requested_data [00:30:59]requested_item fd.num is exist - process it [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 D9 18 80 13 00 00 00 00 00 00 6D [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 D9 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 19 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [00:31:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 19 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:00]wFMCommunicate OK [00:31:00]SAM_PROTO_GetFieldsCounters done [00:31:00]requested_item shift.num is exist - process it [00:31:00]requested_item shift.opened is exist - process it [00:31:00]req_shift_opened [00:31:00]FM_GetShiftState [00:31:00]SAM_PROTO_GetShiftState [00:31:00]wFMCommunicate request_size=4 [00:31:00]MH_SAM_APDU [00:31:00]CAPDU: 80 13 01 00 [00:31:00]Write to MH i2c: E2 08 00 DA 18 80 13 01 00 00 00 00 00 6F [00:31:00]Write i2c OK [00:31:00]MH_I2C_Read... [00:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:00]OFD Sender: No OFD packet to send [00:31:00]Read from MH i2c: E2 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 0E 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 0E 00 DA 18 00 09 00 00 00 00 00 00 00 00 00 00 90 00 7A [00:31:00]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:31:00]wFMCommunicate OK [00:31:00]SAM_PROTO_GetShiftState done [00:31:00]FM_GetShiftState done [00:31:00]req_shift_opened done [00:31:00]requested_item shift.open_date is exist - process it [00:31:00]req_shift_open_date [00:31:00]FM_GetShiftState [00:31:00]SAM_PROTO_GetShiftState [00:31:00]wFMCommunicate request_size=4 [00:31:00]MH_SAM_APDU [00:31:00]CAPDU: 80 13 01 00 [00:31:00]Write to MH i2c: E2 08 00 DB 18 80 13 01 00 00 00 00 00 70 [00:31:00]Write i2c OK [00:31:00]MH_I2C_Read... [00:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:00]Read from MH i2c: E2 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 0E 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 0E 00 DB 18 00 09 00 00 00 00 00 00 00 00 00 00 90 00 7B [00:31:00]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:31:00]wFMCommunicate OK [00:31:00]SAM_PROTO_GetShiftState done [00:31:00]FM_GetShiftState done [00:31:00]req_shift_open_date done [00:31:00]produce_requested_data done [00:31:00]produce_requested_data return {"fd.num":192793,"shift.num":543,"shift.opened":0,"shift.open_date":0} [00:31:00]process_action_free close_shift [00:31:00]json_value_free [00:31:00]json_value_free done [00:31:00]process_json_proto returns [00:31:00]Send response to host [00:31:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":192793,"shift.num":543,"shift.opened":0,"shift.open_date":0}}} [00:31:00]free response buf [00:31:00]execute_script done [00:31:00]execute_script returns [00:31:00]free content buf [00:31:00]Sock 9.Close socket [00:31:00]Sock 9.Thread stoped [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:04]accept exits with 8 [00:33:04]New connection [00:33:04]New thread 3066658148 created [00:33:04]Thread 3066801508 joined [00:33:04]Waiting for new connection... [00:33:04] Sock 8.Parse request [00:33:04]Sock 8.Check first char [00:33:04]Sock 8.First char is OK [00:33:04]request: POST /json_proto HTTP/1.0 [00:33:04]Method: POST [00:33:04]URL: /json_proto [00:33:04]Method is POST - this is cgi request [00:33:04]url: /json_proto [00:33:04]query_string will be loaded in cgi processing [00:33:04]execute_cgi json_proto POST (null) [00:33:04]execute_cgi path=json_proto method=POST [00:33:04]POST find Content-Length [00:33:04]Host: 172.17.63.131:8080 [00:33:04]Content-Length: 215 [00:33:04]Content-Type: application/json [00:33:04] [00:33:04]POST finish read [00:33:04]Found Content-Length = 215 [00:33:04]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:33:04]execute_script... [00:33:04]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:33:04]POST & json_proto [00:33:04]process_json_proto [00:33:04]json parsed OK: [00:33:04]protocol is kg_v1.0 [00:33:04]action value=get_value [00:33:04]process_action get_value [00:33:04]cmd_get_value [00:33:04]process_action get_value done [00:33:04]requested_data is exist [00:33:04]produce_requested_data [00:33:04]requested_item kkm.sn is exist - process it [00:33:04]requested_item kkm.ver is exist - process it [00:33:04]requested_item fm.sn is exist - process it [00:33:04]wFMCommunicate request_size=4 [00:33:04]MH_SAM_APDU [00:33:04]CAPDU: 80 11 00 00 [00:33:04]Write to MH i2c: E2 08 00 DC 18 80 11 00 00 00 00 00 00 6E [00:33:04]Write i2c OK [00:33:04]MH_I2C_Read... [00:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:04]Read from MH i2c: E2 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: E2 17 00 [00:33:04]MH_I2C_Read... [00:33:04]Read from MH i2c: E2 17 00 DC 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C1 [00:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:33:04]wFMCommunicate OK [00:33:04]requested_item fd.num is exist - process it [00:33:04]SAM_PROTO_GetFieldsCounters [00:33:04]wFMCommunicate request_size=4 [00:33:04]MH_SAM_APDU [00:33:04]CAPDU: 80 13 00 00 [00:33:04]Write to MH i2c: E2 08 00 DD 18 80 13 00 00 00 00 00 00 71 [00:33:04]Write i2c OK [00:33:04]MH_I2C_Read... [00:33:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:05]Read from MH i2c: E2 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 62 00 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 62 00 DD 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 19 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [00:33:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 19 F1 02 00 0E 04 04 00 1F 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:05]wFMCommunicate OK [00:33:05]SAM_PROTO_GetFieldsCounters done [00:33:05]requested_item shift.num is exist - process it [00:33:05]requested_item shift.opened is exist - process it [00:33:05]req_shift_opened [00:33:05]FM_GetShiftState [00:33:05]SAM_PROTO_GetShiftState [00:33:05]wFMCommunicate request_size=4 [00:33:05]MH_SAM_APDU [00:33:05]CAPDU: 80 13 01 00 [00:33:05]Write to MH i2c: E2 08 00 DE 18 80 13 01 00 00 00 00 00 73 [00:33:05]Write i2c OK [00:33:05]MH_I2C_Read... [00:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:05]Read from MH i2c: E2 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 0E 00 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 0E 00 DE 18 00 09 00 00 00 00 00 00 00 00 00 00 90 00 7E [00:33:05]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:05]wFMCommunicate OK [00:33:05]SAM_PROTO_GetShiftState done [00:33:05]FM_GetShiftState done [00:33:05]req_shift_opened done [00:33:05]requested_item shift.open_date is exist - process it [00:33:05]req_shift_open_date [00:33:05]FM_GetShiftState [00:33:05]SAM_PROTO_GetShiftState [00:33:05]wFMCommunicate request_size=4 [00:33:05]MH_SAM_APDU [00:33:05]CAPDU: 80 13 01 00 [00:33:05]Write to MH i2c: E2 08 00 DF 18 80 13 01 00 00 00 00 00 74 [00:33:05]Write i2c OK [00:33:05]MH_I2C_Read... [00:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:05]Read from MH i2c: E2 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 0E 00 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 0E 00 DF 18 00 09 00 00 00 00 00 00 00 00 00 00 90 00 7F [00:33:05]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:05]wFMCommunicate OK [00:33:05]SAM_PROTO_GetShiftState done [00:33:05]FM_GetShiftState done [00:33:05]req_shift_open_date done [00:33:05]produce_requested_data done [00:33:05]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192793,"shift.num":543,"shift.opened":0,"shift.open_date":0} [00:33:05]process_action_free get_value [00:33:05]json_value_free [00:33:05]json_value_free done [00:33:05]process_json_proto returns [00:33:05]Send response to host [00:33:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":192793,"shift.num":543,"shift.opened":0,"shift.open_date":0}}} [00:33:05]free response buf [00:33:05]execute_script done [00:33:05]execute_script returns [00:33:05]free content buf [00:33:05]Sock 8.Close socket [00:33:05]Sock 8.Thread stoped [00:33:05]accept exits with 10 [00:33:05]New connection [00:33:05]New thread 3066801508 created [00:33:05]Thread 3066658148 joined [00:33:05]Waiting for new connection... [00:33:05] Sock 10.Parse request [00:33:05]Sock 10.Check first char [00:33:05]Sock 10.First char is OK [00:33:05]request: POST /json_proto HTTP/1.0 [00:33:05]Method: POST [00:33:05]URL: /json_proto [00:33:05]Method is POST - this is cgi request [00:33:05]url: /json_proto [00:33:05]query_string will be loaded in cgi processing [00:33:05]execute_cgi json_proto POST (null) [00:33:05]execute_cgi path=json_proto method=POST [00:33:05]POST find Content-Length [00:33:05]Host: 172.17.63.131:8080 [00:33:05]Content-Length: 331 [00:33:05]Content-Type: application/json [00:33:05] [00:33:05]POST finish read [00:33:05]Found Content-Length = 331 [00:33:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:05]execute_script... [00:33:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:05]POST & json_proto [00:33:05]process_json_proto [00:33:05]json parsed OK: [00:33:05]protocol is kg_v1.0 [00:33:05]action value=get_value [00:33:05]process_action get_value [00:33:05]cmd_get_value [00:33:05]process_action get_value done [00:33:05]requested_data is exist [00:33:05]produce_requested_data [00:33:05]requested_item fm.sale.total is exist - process it [00:33:05]SAM_PROTO_GetFMData [00:33:05]wFMCommunicate request_size=4 [00:33:05]MH_SAM_APDU [00:33:05]CAPDU: 80 13 03 00 [00:33:05]Write to MH i2c: E2 08 00 E0 18 80 13 03 00 00 00 00 00 77 [00:33:05]OFD Sender: No OFD packet to send [00:33:05]Write i2c OK [00:33:05]MH_I2C_Read... [00:33:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:33:05]Read from MH i2c: E2 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 FD 00 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 FD 00 E0 18 00 C1 04 85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 E9 [00:33:05]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:33:05]wFMCommunicate OK [00:33:05]wFMCommunicate request_size=4 [00:33:05]MH_SAM_APDU [00:33:05]CAPDU: 80 17 00 00 [00:33:05]Write to MH i2c: E2 08 00 E1 18 80 17 00 00 00 00 00 00 79 [00:33:05]Write i2c OK [00:33:05]MH_I2C_Read... [00:33:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:06]Read from MH i2c: E2 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 FD 00 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 FD 00 E1 18 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8A [00:33:06]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:06]wFMCommunicate OK [00:33:06]wFMCommunicate request_size=4 [00:33:06]MH_SAM_APDU [00:33:06]CAPDU: 80 17 00 00 [00:33:06]Write to MH i2c: E2 08 00 E2 18 80 17 00 00 00 00 00 00 7A [00:33:06]Write i2c OK [00:33:06]MH_I2C_Read... [00:33:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:06]Read from MH i2c: E2 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 FD 00 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 FD 00 E2 18 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1A [00:33:06]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:06]wFMCommunicate OK [00:33:06]wFMCommunicate request_size=4 [00:33:06]MH_SAM_APDU [00:33:06]CAPDU: 80 17 00 00 [00:33:06]Write to MH i2c: E2 08 00 E3 18 80 17 00 00 00 00 00 00 7B [00:33:06]Write i2c OK [00:33:06]MH_I2C_Read... [00:33:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:06]Read from MH i2c: E2 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 FD 00 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 FD 00 E3 18 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 00 [00:33:06]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:33:06]wFMCommunicate OK [00:33:06]wFMCommunicate request_size=4 [00:33:06]MH_SAM_APDU [00:33:06]CAPDU: 80 17 00 00 [00:33:06]Write to MH i2c: E2 08 00 E4 18 80 17 00 00 00 00 00 00 7C [00:33:06]Write i2c OK [00:33:06]MH_I2C_Read... [00:33:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:33:06]Read from MH i2c: E2 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 DE 00 [00:33:06]MH_I2C_Read... [00:33:06]Read from MH i2c: E2 DE 00 E4 18 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5B [00:33:06]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:33:06]wFMCommunicate OK [00:33:06]SAM_PROTO_GetFMData done [00:33:06]requested_item fm.sale_refund.total is exist - process it [00:33:06]requested_item fm.buy.total is exist - process it [00:33:06]requested_item shift.sale.total is exist - process it [00:33:06]SAM_PROTO_GetShiftData [00:33:06]wFMCommunicate request_size=4 [00:33:06]MH_SAM_APDU [00:33:06]CAPDU: 80 13 02 00 [00:33:06]Write to MH i2c: E2 08 00 E5 18 80 13 02 00 00 00 00 00 7B [00:33:06]Write i2c OK [00:33:06]MH_I2C_Read... [00:33:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:33:07]Read from MH i2c: E2 [00:33:07]MH_I2C_Read... [00:33:07]Read from MH i2c: E2 FD 00 [00:33:07]MH_I2C_Read... [00:33:07]Read from MH i2c: E2 FD 00 E5 18 00 B1 04 AA 04 AD 04 6E 04 04 00 54 01 00 00 69 04 9E 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 D8 0A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 7C [00:33:07]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 54 01 00 00 69 04 9E 00 6F 04 04 00 54 01 00 00 B1 04 04 00 06 A5 57 01 70 04 04 00 04 25 35 01 72 04 03 00 02 80 22 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 F0 81 24 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 D8 0A 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:33:07]wFMCommunicate OK [00:33:07]wFMCommunicate request_size=4 [00:33:07]MH_SAM_APDU [00:33:07]CAPDU: 80 17 00 00 [00:33:07]Write to MH i2c: E2 08 00 E6 18 80 17 00 00 00 00 00 00 7E [00:33:07]Write i2c OK [00:33:07]MH_I2C_Read... [00:33:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:07]Read from MH i2c: E2 [00:33:07]MH_I2C_Read... [00:33:07]Read from MH i2c: E2 FD 00 [00:33:07]MH_I2C_Read... [00:33:07]Read from MH i2c: E2 FD 00 E6 18 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 97 [00:33:07]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:33:07]wFMCommunicate OK [00:33:07]wFMCommunicate request_size=4 [00:33:07]MH_SAM_APDU [00:33:07]CAPDU: 80 17 00 00 [00:33:07]Write to MH i2c: E2 08 00 E7 18 80 17 00 00 00 00 00 00 7F [00:33:07]Write i2c OK [00:33:07]MH_I2C_Read... [00:33:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:07]Read from MH i2c: E2 [00:33:07]MH_I2C_Read... [00:33:07]Read from MH i2c: E2 FD 00 [00:33:07]MH_I2C_Read... [00:33:07]Read from MH i2c: E2 FD 00 E7 18 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 38 [00:33:07]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:33:08]wFMCommunicate OK [00:33:08]wFMCommunicate request_size=4 [00:33:08]MH_SAM_APDU [00:33:08]CAPDU: 80 17 00 00 [00:33:08]Write to MH i2c: E2 08 00 E8 18 80 17 00 00 00 00 00 00 80 [00:33:08]Write i2c OK [00:33:08]MH_I2C_Read... [00:33:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:08]Read from MH i2c: E2 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: E2 FD 00 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: E2 FD 00 E8 18 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 F8 [00:33:08]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:33:08]wFMCommunicate OK [00:33:08]wFMCommunicate request_size=4 [00:33:08]MH_SAM_APDU [00:33:08]CAPDU: 80 17 00 00 [00:33:08]Write to MH i2c: E2 08 00 E9 18 80 17 00 00 00 00 00 00 81 [00:33:08]Write i2c OK [00:33:08]MH_I2C_Read... [00:33:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:33:08]Read from MH i2c: E2 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: E2 CE 00 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: E2 CE 00 E9 18 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 66 [00:33:08]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:33:08]wFMCommunicate OK [00:33:08]SAM_PROTO_GetShiftData done [00:33:08]requested_item shift.sale.total_cash is exist - process it [00:33:08]requested_item shift.sale_refund.total is exist - process it [00:33:08]requested_item shift.sale_refund.total_cash is exist - process it [00:33:08]requested_item shift.buy.total is exist - process it [00:33:08]requested_item shift.buy.total_cash is exist - process it [00:33:08]produce_requested_data done [00:33:08]produce_requested_data return {"fm.sale.total":159803715.30,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":225210.94,"shift.sale.total_cash":202601.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:33:08]process_action_free get_value [00:33:08]json_value_free [00:33:08]json_value_free done [00:33:08]process_json_proto returns [00:33:08]Send response to host [00:33:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159803715.30,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":225210.94,"shift.sale.total_cash":202601.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:33:08]free response buf [00:33:08]execute_script done [00:33:08]execute_script returns [00:33:08]free content buf [00:33:08]Sock 10.Close socket [00:33:08]Sock 10.Thread stoped [00:33:08]accept exits with 8 [00:33:08]New connection [00:33:08]New thread 3066658148 created [00:33:08]Thread 3066801508 joined [00:33:08]Waiting for new connection... [00:33:08] Sock 8.Parse request [00:33:08]Sock 8.Check first char [00:33:08]Sock 8.First char is OK [00:33:08]request: POST /json_proto HTTP/1.0 [00:33:08]Method: POST [00:33:08]URL: /json_proto [00:33:08]Method is POST - this is cgi request [00:33:08]url: /json_proto [00:33:08]query_string will be loaded in cgi processing [00:33:08]execute_cgi json_proto POST (null) [00:33:08]execute_cgi path=json_proto method=POST [00:33:08]POST find Content-Length [00:33:08]Host: 172.17.63.131:8080 [00:33:08]Content-Length: 271 [00:33:08]Content-Type: application/json [00:33:08] [00:33:08]POST finish read [00:33:08]Found Content-Length = 271 [00:33:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0441\u044B\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:08]execute_script... [00:33:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0441\u044B\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:08]POST & json_proto [00:33:08]process_json_proto [00:33:08]json parsed OK: [00:33:08]protocol is kg_v1.0 [00:33:08]action value=open_shift [00:33:08]process_action open_shift [00:33:08]cmd_open_shift [00:33:08]MH_GetDate [00:33:08]Write to MH i2c: F0 00 00 EA 18 F1 [00:33:08]Write i2c OK [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: F0 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: F0 09 00 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: F0 09 00 EA 18 00 46 2D 20 67 22 05 6E 64 ED [00:33:08]GetLastDocTimeStamp 1730161843 [00:33:08]current date 1730161990 [00:33:08]FM_GetShiftState [00:33:08]SAM_PROTO_GetShiftState [00:33:08]wFMCommunicate request_size=4 [00:33:08]MH_SAM_APDU [00:33:08]CAPDU: 80 13 01 00 [00:33:08]Write to MH i2c: E2 08 00 EB 18 80 13 01 00 00 00 00 00 80 [00:33:08]Write i2c OK [00:33:08]MH_I2C_Read... [00:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:08]Read from MH i2c: E2 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: E2 0E 00 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: E2 0E 00 EB 18 00 09 00 00 00 00 00 00 00 00 00 00 90 00 8B [00:33:08]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:08]wFMCommunicate OK [00:33:08]SAM_PROTO_GetShiftState done [00:33:08]FM_GetShiftState done [00:33:08]KKMCreateOpenShiftDocument [00:33:08]Load OK [00:33:08]Malloc new data [00:33:08]MH_GetDate [00:33:08]Write to MH i2c: F0 00 00 EC 18 F3 [00:33:08]Write i2c OK [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: F0 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: F0 09 00 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: F0 09 00 EC 18 00 46 2D 20 67 22 05 6E 64 EF [00:33:08]Malloc new data [00:33:08]KKMCreateOpenShiftDocument OK [00:33:08]KKMSetOpenShiftData OK [00:33:08]ProcessDocumentItem done err = 0, tmpTLVsize=214 [00:33:08]tlvbuf is 00F08CD0 [00:33:08]KKMLoadAndSignOpenShiftData [00:33:08]SAM_PROTO_ProcessDocument [00:33:08]wFMCommunicate request_size=9 [00:33:08]MH_SAM_APDU [00:33:08]CAPDU: 80 15 01 00 04 02 00 D6 00 [00:33:08]Write to MH i2c: E2 0C 00 ED 18 80 15 01 00 04 00 02 00 D6 00 00 00 64 [00:33:08]Write i2c OK [00:33:08]MH_I2C_Read... [00:33:08]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:33:08]Read from MH i2c: E2 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: E2 03 00 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: E2 03 00 ED 18 00 90 00 79 [00:33:08]RAPDU: 90 00 [00:33:08]wFMCommunicate OK [00:33:08]wFMCommunicate request_size=23 [00:33:08]MH_SAM_APDU [00:33:08]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:33:08]Write to MH i2c: E2 1A 00 EE 18 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 7B [00:33:08]Write i2c OK [00:33:08]MH_I2C_Read... [00:33:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:08]Read from MH i2c: E2 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: E2 03 00 [00:33:08]MH_I2C_Read... [00:33:08]Read from MH i2c: E2 03 00 EE 18 00 90 00 7A [00:33:08]RAPDU: 90 00 [00:33:08]wFMCommunicate OK [00:33:08]wFMCommunicate request_size=34 [00:33:08]MH_SAM_APDU [00:33:08]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 [00:33:08]Write to MH i2c: E2 25 00 EF 18 80 15 02 00 1D 00 FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 00 00 78 [00:33:08]Write i2c OK [00:33:08]MH_I2C_Read... [00:33:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:09]Read from MH i2c: E2 [00:33:09]MH_I2C_Read... [00:33:09]Read from MH i2c: E2 03 00 [00:33:09]MH_I2C_Read... [00:33:09]Read from MH i2c: E2 03 00 EF 18 00 90 00 7B [00:33:09]RAPDU: 90 00 [00:33:09]wFMCommunicate OK [00:33:09]wFMCommunicate request_size=98 [00:33:09]MH_SAM_APDU [00:33:09]CAPDU: 80 15 02 00 5D F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 [00:33:09]Write to MH i2c: E2 65 00 F0 18 80 15 02 00 5D 00 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 00 00 1F [00:33:09]Write i2c OK [00:33:09]MH_I2C_Read... [00:33:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:09]Read from MH i2c: E2 [00:33:09]MH_I2C_Read... [00:33:09]Read from MH i2c: E2 03 00 [00:33:09]MH_I2C_Read... [00:33:09]Read from MH i2c: E2 03 00 F0 18 00 90 00 7C [00:33:09]RAPDU: 90 00 [00:33:09]wFMCommunicate OK [00:33:09]wFMCommunicate request_size=51 [00:33:09]MH_SAM_APDU [00:33:09]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 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:33:09]Write to MH i2c: E2 36 00 F1 18 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 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 33 [00:33:09]Write i2c OK [00:33:09]MH_I2C_Read... [00:33:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:09]Read from MH i2c: E2 [00:33:09]MH_I2C_Read... [00:33:09]Read from MH i2c: E2 03 00 [00:33:09]MH_I2C_Read... [00:33:09]Read from MH i2c: E2 03 00 F1 18 00 90 00 7D [00:33:09]RAPDU: 90 00 [00:33:09]wFMCommunicate OK [00:33:09]wFMCommunicate request_size=13 [00:33:09]MH_SAM_APDU [00:33:09]CAPDU: 80 15 02 00 08 F4 03 04 00 46 2D 20 67 [00:33:09]Write to MH i2c: E2 10 00 F2 18 80 15 02 00 08 00 F4 03 04 00 46 2D 20 67 00 00 8F [00:33:09]Write i2c OK [00:33:09]MH_I2C_Read... [00:33:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:09]Read from MH i2c: E2 [00:33:09]MH_I2C_Read... [00:33:09]Read from MH i2c: E2 03 00 [00:33:09]MH_I2C_Read... [00:33:09]Read from MH i2c: E2 03 00 F2 18 00 90 00 7E [00:33:09]RAPDU: 90 00 [00:33:09]wFMCommunicate OK [00:33:09]wFMCommunicate request_size=25 [00:33:09]MH_SAM_APDU [00:33:09]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 [00:33:09]Write to MH i2c: E2 1C 00 F3 18 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 00 00 F2 [00:33:09]Write i2c OK [00:33:09]MH_I2C_Read... [00:33:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:09]Read from MH i2c: E2 [00:33:09]MH_I2C_Read... [00:33:09]Read from MH i2c: E2 03 00 [00:33:09]MH_I2C_Read... [00:33:09]Read from MH i2c: E2 03 00 F3 18 00 90 00 7F [00:33:09]RAPDU: 90 00 [00:33:09]wFMCommunicate OK [00:33:09]wFMCommunicate request_size=4 [00:33:09]MH_SAM_APDU [00:33:09]CAPDU: 80 15 03 00 [00:33:09]Write to MH i2c: E2 08 00 F4 18 80 15 03 00 00 00 00 00 8D [00:33:09]Write i2c OK [00:33:09]MH_I2C_Read... [00:33:09]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:33:09]Read from MH i2c: E2 [00:33:09]MH_I2C_Read... [00:33:09]Read from MH i2c: E2 38 00 [00:33:09]MH_I2C_Read... [00:33:09]Read from MH i2c: E2 38 00 F4 18 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A F1 02 00 0E 04 04 00 20 02 00 00 35 04 06 00 70 3D CE 49 4A 1E 90 00 B4 [00:33:09]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A F1 02 00 0E 04 04 00 20 02 00 00 35 04 06 00 70 3D CE 49 4A 1E 90 00 [00:33:09]wFMCommunicate OK [00:33:09]SAM_PROTO_ProcessDocument answer len = 51 [00:33:09]SAM_PROTO_ProcessDocument done [00:33:09]SetTLVBufToDocument [00:33:09]Processing tag 1209 (04B9) [00:33:09]Malloc new data [00:33:09]Processing tag 1041 (0411) [00:33:09]Processing tag 1040 (0410) [00:33:09]Malloc new data [00:33:09]Processing tag 1038 (040E) [00:33:09]Malloc new data [00:33:09]Processing tag 1077 (0435) [00:33:09]Malloc new data [00:33:09]SetTLVBufToDocument err=0 [00:33:09]KKMLoadAndSignOpenShiftData store KKM data [00:33:09]KKMLoadAndSignOpenShiftData err=0 [00:33:09]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Асылбекова Ч. Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 Место: АЗС № 170 "Партнер Нефть" 29.10.2024 00:33 Смена: 544 РНМ: 0000000000091776 ЗНМ: 0300000110 ФД: 192794 ФМ: 0000000000871754 ФПД: 123410756225566 [00:33:09]StoreToDocumentArchive [00:33:09]shift 544 fd 192794 [00:33:09]Create dir for shift 0544 [00:33:09]save to /storage/0544/doc_00192794 [00:33:09]save last doc name /storage/0544/doc_00192794 to /storage/kkm_last_doc_name [00:33:09]save OK [00:33:09]Clear old archive folders... [00:33:09]Remove dir /storage/0543 [00:33:09]opendir ok [00:33:09]file . [00:33:09]file .. [00:33:09]file doc_00192452 [00:33:09]remove file /storage/0543/doc_00192452 [00:33:09]file doc_00192453 [00:33:09]remove file /storage/0543/doc_00192453 [00:33:09]file doc_00192454 [00:33:09]remove file /storage/0543/doc_00192454 [00:33:09]file doc_00192455 [00:33:09]remove file /storage/0543/doc_00192455 [00:33:09]file doc_00192456 [00:33:09]remove file /storage/0543/doc_00192456 [00:33:09]file doc_00192457 [00:33:09]remove file /storage/0543/doc_00192457 [00:33:09]file doc_00192458 [00:33:09]remove file /storage/0543/doc_00192458 [00:33:09]file doc_00192459 [00:33:09]remove file /storage/0543/doc_00192459 [00:33:09]file doc_00192460 [00:33:09]remove file /storage/0543/doc_00192460 [00:33:09]file doc_00192461 [00:33:09]remove file /storage/0543/doc_00192461 [00:33:09]file doc_00192462 [00:33:09]remove file /storage/0543/doc_00192462 [00:33:09]file doc_00192463 [00:33:09]remove file /storage/0543/doc_00192463 [00:33:09]file doc_00192464 [00:33:09]remove file /storage/0543/doc_00192464 [00:33:09]file doc_00192465 [00:33:09]remove file /storage/0543/doc_00192465 [00:33:09]file doc_00192466 [00:33:09]remove file /storage/0543/doc_00192466 [00:33:09]file doc_00192467 [00:33:09]remove file /storage/0543/doc_00192467 [00:33:09]file doc_00192468 [00:33:09]remove file /storage/0543/doc_00192468 [00:33:09]file doc_00192469 [00:33:09]remove file /storage/0543/doc_00192469 [00:33:09]file doc_00192470 [00:33:09]remove file /storage/0543/doc_00192470 [00:33:09]file doc_00192471 [00:33:09]remove file /storage/0543/doc_00192471 [00:33:09]file doc_00192472 [00:33:09]remove file /storage/0543/doc_00192472 [00:33:09]file doc_00192473 [00:33:09]remove file /storage/0543/doc_00192473 [00:33:09]file doc_00192474 [00:33:09]remove file /storage/0543/doc_00192474 [00:33:09]file doc_00192475 [00:33:09]remove file /storage/0543/doc_00192475 [00:33:09]file doc_00192476 [00:33:09]remove file /storage/0543/doc_00192476 [00:33:09]file doc_00192477 [00:33:09]remove file /storage/0543/doc_00192477 [00:33:09]file doc_00192478 [00:33:09]remove file /storage/0543/doc_00192478 [00:33:09]file doc_00192479 [00:33:09]remove file /storage/0543/doc_00192479 [00:33:09]file doc_00192480 [00:33:09]remove file /storage/0543/doc_00192480 [00:33:09]file doc_00192481 [00:33:09]remove file /storage/0543/doc_00192481 [00:33:09]file doc_00192482 [00:33:09]remove file /storage/0543/doc_00192482 [00:33:09]file doc_00192483 [00:33:09]remove file /storage/0543/doc_00192483 [00:33:09]file doc_00192484 [00:33:09]remove file /storage/0543/doc_00192484 [00:33:09]file doc_00192485 [00:33:09]remove file /storage/0543/doc_00192485 [00:33:09]file doc_00192486 [00:33:09]remove file /storage/0543/doc_00192486 [00:33:09]file doc_00192487 [00:33:09]remove file /storage/0543/doc_00192487 [00:33:09]file doc_00192488 [00:33:09]remove file /storage/0543/doc_00192488 [00:33:09]file doc_00192489 [00:33:09]remove file /storage/0543/doc_00192489 [00:33:09]file doc_00192490 [00:33:09]remove file /storage/0543/doc_00192490 [00:33:09]file doc_00192491 [00:33:09]remove file /storage/0543/doc_00192491 [00:33:09]file doc_00192492 [00:33:09]remove file /storage/0543/doc_00192492 [00:33:09]file doc_00192493 [00:33:09]remove file /storage/0543/doc_00192493 [00:33:09]file doc_00192494 [00:33:09]remove file /storage/0543/doc_00192494 [00:33:09]file doc_00192495 [00:33:09]remove file /storage/0543/doc_00192495 [00:33:09]file doc_00192496 [00:33:09]remove file /storage/0543/doc_00192496 [00:33:09]file doc_00192497 [00:33:09]remove file /storage/0543/doc_00192497 [00:33:09]file doc_00192498 [00:33:09]remove file /storage/0543/doc_00192498 [00:33:09]file doc_00192499 [00:33:09]remove file /storage/0543/doc_00192499 [00:33:09]file doc_00192500 [00:33:10]remove file /storage/0543/doc_00192500 [00:33:10]file doc_00192501 [00:33:10]remove file /storage/0543/doc_00192501 [00:33:10]file doc_00192502 [00:33:10]remove file /storage/0543/doc_00192502 [00:33:10]file doc_00192503 [00:33:10]remove file /storage/0543/doc_00192503 [00:33:10]file doc_00192504 [00:33:10]remove file /storage/0543/doc_00192504 [00:33:10]file doc_00192505 [00:33:10]remove file /storage/0543/doc_00192505 [00:33:10]file doc_00192506 [00:33:10]remove file /storage/0543/doc_00192506 [00:33:10]file doc_00192507 [00:33:10]remove file /storage/0543/doc_00192507 [00:33:10]file doc_00192508 [00:33:10]remove file /storage/0543/doc_00192508 [00:33:10]file doc_00192509 [00:33:10]remove file /storage/0543/doc_00192509 [00:33:10]file doc_00192510 [00:33:10]remove file /storage/0543/doc_00192510 [00:33:10]file doc_00192511 [00:33:10]remove file /storage/0543/doc_00192511 [00:33:10]file doc_00192512 [00:33:10]remove file /storage/0543/doc_00192512 [00:33:10]file doc_00192513 [00:33:10]remove file /storage/0543/doc_00192513 [00:33:10]file doc_00192514 [00:33:10]remove file /storage/0543/doc_00192514 [00:33:10]file doc_00192515 [00:33:10]remove file /storage/0543/doc_00192515 [00:33:10]file doc_00192516 [00:33:10]remove file /storage/0543/doc_00192516 [00:33:10]file doc_00192517 [00:33:10]remove file /storage/0543/doc_00192517 [00:33:10]file doc_00192518 [00:33:10]remove file /storage/0543/doc_00192518 [00:33:10]file doc_00192519 [00:33:10]remove file /storage/0543/doc_00192519 [00:33:10]file doc_00192520 [00:33:10]remove file /storage/0543/doc_00192520 [00:33:10]file doc_00192521 [00:33:10]remove file /storage/0543/doc_00192521 [00:33:10]file doc_00192522 [00:33:10]remove file /storage/0543/doc_00192522 [00:33:10]file doc_00192523 [00:33:10]remove file /storage/0543/doc_00192523 [00:33:10]file doc_00192524 [00:33:10]remove file /storage/0543/doc_00192524 [00:33:10]file doc_00192525 [00:33:10]remove file /storage/0543/doc_00192525 [00:33:10]file doc_00192526 [00:33:10]remove file /storage/0543/doc_00192526 [00:33:10]file doc_00192527 [00:33:10]remove file /storage/0543/doc_00192527 [00:33:10]file doc_00192528 [00:33:10]remove file /storage/0543/doc_00192528 [00:33:10]file doc_00192529 [00:33:10]remove file /storage/0543/doc_00192529 [00:33:10]file doc_00192530 [00:33:10]remove file /storage/0543/doc_00192530 [00:33:10]file doc_00192531 [00:33:10]remove file /storage/0543/doc_00192531 [00:33:10]file doc_00192532 [00:33:10]remove file /storage/0543/doc_00192532 [00:33:10]file doc_00192533 [00:33:10]remove file /storage/0543/doc_00192533 [00:33:10]file doc_00192534 [00:33:10]remove file /storage/0543/doc_00192534 [00:33:10]file doc_00192535 [00:33:10]remove file /storage/0543/doc_00192535 [00:33:10]file doc_00192536 [00:33:10]remove file /storage/0543/doc_00192536 [00:33:10]file doc_00192537 [00:33:10]remove file /storage/0543/doc_00192537 [00:33:10]file doc_00192538 [00:33:10]remove file /storage/0543/doc_00192538 [00:33:10]file doc_00192539 [00:33:10]remove file /storage/0543/doc_00192539 [00:33:10]file doc_00192540 [00:33:10]remove file /storage/0543/doc_00192540 [00:33:10]file doc_00192541 [00:33:10]remove file /storage/0543/doc_00192541 [00:33:10]file doc_00192542 [00:33:10]remove file /storage/0543/doc_00192542 [00:33:10]file doc_00192543 [00:33:10]remove file /storage/0543/doc_00192543 [00:33:10]file doc_00192544 [00:33:10]remove file /storage/0543/doc_00192544 [00:33:10]file doc_00192545 [00:33:10]remove file /storage/0543/doc_00192545 [00:33:10]file doc_00192546 [00:33:10]remove file /storage/0543/doc_00192546 [00:33:10]file doc_00192547 [00:33:10]remove file /storage/0543/doc_00192547 [00:33:10]file doc_00192548 [00:33:10]remove file /storage/0543/doc_00192548 [00:33:10]file doc_00192549 [00:33:10]remove file /storage/0543/doc_00192549 [00:33:10]file doc_00192550 [00:33:10]remove file /storage/0543/doc_00192550 [00:33:10]file doc_00192551 [00:33:10]remove file /storage/0543/doc_00192551 [00:33:10]file doc_00192552 [00:33:10]remove file /storage/0543/doc_00192552 [00:33:10]file doc_00192553 [00:33:10]remove file /storage/0543/doc_00192553 [00:33:10]file doc_00192554 [00:33:10]remove file /storage/0543/doc_00192554 [00:33:10]file doc_00192555 [00:33:10]remove file /storage/0543/doc_00192555 [00:33:10]file doc_00192556 [00:33:10]remove file /storage/0543/doc_00192556 [00:33:10]file doc_00192557 [00:33:10]remove file /storage/0543/doc_00192557 [00:33:10]file doc_00192558 [00:33:10]remove file /storage/0543/doc_00192558 [00:33:10]file doc_00192559 [00:33:10]remove file /storage/0543/doc_00192559 [00:33:10]file doc_00192560 [00:33:10]remove file /storage/0543/doc_00192560 [00:33:10]file doc_00192561 [00:33:10]remove file /storage/0543/doc_00192561 [00:33:10]file doc_00192562 [00:33:10]remove file /storage/0543/doc_00192562 [00:33:10]file doc_00192563 [00:33:10]remove file /storage/0543/doc_00192563 [00:33:10]file doc_00192564 [00:33:10]remove file /storage/0543/doc_00192564 [00:33:10]file doc_00192565 [00:33:10]remove file /storage/0543/doc_00192565 [00:33:10]file doc_00192566 [00:33:10]remove file /storage/0543/doc_00192566 [00:33:10]file doc_00192567 [00:33:10]remove file /storage/0543/doc_00192567 [00:33:10]file doc_00192568 [00:33:10]remove file /storage/0543/doc_00192568 [00:33:10]file doc_00192569 [00:33:10]remove file /storage/0543/doc_00192569 [00:33:10]file doc_00192570 [00:33:10]remove file /storage/0543/doc_00192570 [00:33:10]file doc_00192571 [00:33:10]remove file /storage/0543/doc_00192571 [00:33:10]file doc_00192572 [00:33:10]remove file /storage/0543/doc_00192572 [00:33:10]file doc_00192573 [00:33:10]remove file /storage/0543/doc_00192573 [00:33:10]file doc_00192574 [00:33:10]remove file /storage/0543/doc_00192574 [00:33:10]file doc_00192575 [00:33:10]remove file /storage/0543/doc_00192575 [00:33:10]file doc_00192576 [00:33:10]remove file /storage/0543/doc_00192576 [00:33:10]file doc_00192577 [00:33:10]remove file /storage/0543/doc_00192577 [00:33:10]file doc_00192578 [00:33:10]remove file /storage/0543/doc_00192578 [00:33:10]file doc_00192579 [00:33:10]remove file /storage/0543/doc_00192579 [00:33:10]file doc_00192580 [00:33:10]remove file /storage/0543/doc_00192580 [00:33:10]file doc_00192581 [00:33:10]remove file /storage/0543/doc_00192581 [00:33:10]file doc_00192582 [00:33:10]remove file /storage/0543/doc_00192582 [00:33:10]file doc_00192583 [00:33:10]remove file /storage/0543/doc_00192583 [00:33:10]file doc_00192584 [00:33:10]remove file /storage/0543/doc_00192584 [00:33:10]file doc_00192585 [00:33:10]remove file /storage/0543/doc_00192585 [00:33:10]file doc_00192586 [00:33:10]remove file /storage/0543/doc_00192586 [00:33:10]file doc_00192587 [00:33:10]remove file /storage/0543/doc_00192587 [00:33:10]file doc_00192588 [00:33:10]remove file /storage/0543/doc_00192588 [00:33:10]file doc_00192589 [00:33:10]remove file /storage/0543/doc_00192589 [00:33:10]file doc_00192590 [00:33:10]remove file /storage/0543/doc_00192590 [00:33:10]file doc_00192591 [00:33:10]remove file /storage/0543/doc_00192591 [00:33:10]file doc_00192592 [00:33:10]remove file /storage/0543/doc_00192592 [00:33:10]file doc_00192593 [00:33:10]remove file /storage/0543/doc_00192593 [00:33:10]file doc_00192594 [00:33:10]remove file /storage/0543/doc_00192594 [00:33:10]file doc_00192595 [00:33:10]remove file /storage/0543/doc_00192595 [00:33:10]file doc_00192596 [00:33:10]remove file /storage/0543/doc_00192596 [00:33:10]file doc_00192597 [00:33:10]remove file /storage/0543/doc_00192597 [00:33:10]file doc_00192598 [00:33:10]remove file /storage/0543/doc_00192598 [00:33:10]file doc_00192599 [00:33:10]remove file /storage/0543/doc_00192599 [00:33:10]file doc_00192600 [00:33:10]remove file /storage/0543/doc_00192600 [00:33:10]file doc_00192601 [00:33:10]remove file /storage/0543/doc_00192601 [00:33:10]file doc_00192602 [00:33:10]remove file /storage/0543/doc_00192602 [00:33:10]file doc_00192603 [00:33:10]remove file /storage/0543/doc_00192603 [00:33:10]file doc_00192604 [00:33:10]remove file /storage/0543/doc_00192604 [00:33:10]file doc_00192605 [00:33:10]remove file /storage/0543/doc_00192605 [00:33:10]file doc_00192606 [00:33:10]remove file /storage/0543/doc_00192606 [00:33:10]file doc_00192607 [00:33:10]remove file /storage/0543/doc_00192607 [00:33:10]file doc_00192608 [00:33:10]remove file /storage/0543/doc_00192608 [00:33:10]file doc_00192609 [00:33:10]remove file /storage/0543/doc_00192609 [00:33:10]file doc_00192610 [00:33:10]remove file /storage/0543/doc_00192610 [00:33:10]file doc_00192611 [00:33:10]remove file /storage/0543/doc_00192611 [00:33:10]file doc_00192612 [00:33:10]remove file /storage/0543/doc_00192612 [00:33:10]file doc_00192613 [00:33:10]remove file /storage/0543/doc_00192613 [00:33:10]file doc_00192614 [00:33:10]remove file /storage/0543/doc_00192614 [00:33:10]file doc_00192615 [00:33:10]remove file /storage/0543/doc_00192615 [00:33:10]file doc_00192616 [00:33:10]remove file /storage/0543/doc_00192616 [00:33:10]file doc_00192617 [00:33:10]remove file /storage/0543/doc_00192617 [00:33:10]file doc_00192618 [00:33:10]remove file /storage/0543/doc_00192618 [00:33:10]file doc_00192619 [00:33:10]remove file /storage/0543/doc_00192619 [00:33:10]file doc_00192620 [00:33:10]remove file /storage/0543/doc_00192620 [00:33:10]file doc_00192621 [00:33:10]remove file /storage/0543/doc_00192621 [00:33:10]file doc_00192622 [00:33:10]remove file /storage/0543/doc_00192622 [00:33:10]OFD Sender: No OFD packet to send [00:33:10]file doc_00192623 [00:33:10]remove file /storage/0543/doc_00192623 [00:33:10]file doc_00192624 [00:33:10]remove file /storage/0543/doc_00192624 [00:33:10]file doc_00192625 [00:33:10]remove file /storage/0543/doc_00192625 [00:33:10]file doc_00192626 [00:33:10]remove file /storage/0543/doc_00192626 [00:33:10]file doc_00192627 [00:33:10]remove file /storage/0543/doc_00192627 [00:33:10]file doc_00192628 [00:33:10]remove file /storage/0543/doc_00192628 [00:33:10]file doc_00192629 [00:33:10]remove file /storage/0543/doc_00192629 [00:33:10]file doc_00192630 [00:33:10]remove file /storage/0543/doc_00192630 [00:33:10]file doc_00192631 [00:33:10]remove file /storage/0543/doc_00192631 [00:33:10]file doc_00192632 [00:33:10]remove file /storage/0543/doc_00192632 [00:33:10]file doc_00192633 [00:33:10]remove file /storage/0543/doc_00192633 [00:33:10]file doc_00192634 [00:33:10]remove file /storage/0543/doc_00192634 [00:33:10]file doc_00192635 [00:33:10]remove file /storage/0543/doc_00192635 [00:33:10]file doc_00192636 [00:33:10]remove file /storage/0543/doc_00192636 [00:33:10]file doc_00192637 [00:33:10]remove file /storage/0543/doc_00192637 [00:33:10]file doc_00192638 [00:33:10]remove file /storage/0543/doc_00192638 [00:33:10]file doc_00192639 [00:33:10]remove file /storage/0543/doc_00192639 [00:33:10]file doc_00192640 [00:33:10]remove file /storage/0543/doc_00192640 [00:33:10]file doc_00192641 [00:33:10]remove file /storage/0543/doc_00192641 [00:33:10]file doc_00192642 [00:33:10]remove file /storage/0543/doc_00192642 [00:33:10]file doc_00192643 [00:33:10]remove file /storage/0543/doc_00192643 [00:33:10]file doc_00192644 [00:33:10]remove file /storage/0543/doc_00192644 [00:33:10]file doc_00192645 [00:33:10]remove file /storage/0543/doc_00192645 [00:33:10]file doc_00192646 [00:33:10]remove file /storage/0543/doc_00192646 [00:33:10]file doc_00192647 [00:33:10]remove file /storage/0543/doc_00192647 [00:33:10]file doc_00192648 [00:33:10]remove file /storage/0543/doc_00192648 [00:33:10]file doc_00192649 [00:33:10]remove file /storage/0543/doc_00192649 [00:33:10]file doc_00192650 [00:33:10]remove file /storage/0543/doc_00192650 [00:33:10]file doc_00192651 [00:33:10]remove file /storage/0543/doc_00192651 [00:33:10]file doc_00192652 [00:33:10]remove file /storage/0543/doc_00192652 [00:33:10]file doc_00192653 [00:33:10]remove file /storage/0543/doc_00192653 [00:33:10]file doc_00192654 [00:33:10]remove file /storage/0543/doc_00192654 [00:33:10]file doc_00192655 [00:33:10]remove file /storage/0543/doc_00192655 [00:33:10]file doc_00192656 [00:33:10]remove file /storage/0543/doc_00192656 [00:33:10]file doc_00192657 [00:33:10]remove file /storage/0543/doc_00192657 [00:33:10]file doc_00192658 [00:33:10]remove file /storage/0543/doc_00192658 [00:33:10]file doc_00192659 [00:33:10]remove file /storage/0543/doc_00192659 [00:33:10]file doc_00192660 [00:33:10]remove file /storage/0543/doc_00192660 [00:33:10]file doc_00192661 [00:33:10]remove file /storage/0543/doc_00192661 [00:33:10]file doc_00192662 [00:33:10]remove file /storage/0543/doc_00192662 [00:33:10]file doc_00192663 [00:33:10]remove file /storage/0543/doc_00192663 [00:33:10]file doc_00192664 [00:33:10]remove file /storage/0543/doc_00192664 [00:33:10]file doc_00192665 [00:33:10]remove file /storage/0543/doc_00192665 [00:33:10]file doc_00192666 [00:33:10]remove file /storage/0543/doc_00192666 [00:33:10]file doc_00192667 [00:33:10]remove file /storage/0543/doc_00192667 [00:33:10]file doc_00192668 [00:33:10]remove file /storage/0543/doc_00192668 [00:33:10]file doc_00192669 [00:33:10]remove file /storage/0543/doc_00192669 [00:33:10]file doc_00192670 [00:33:10]remove file /storage/0543/doc_00192670 [00:33:10]file doc_00192671 [00:33:10]remove file /storage/0543/doc_00192671 [00:33:10]file doc_00192672 [00:33:10]remove file /storage/0543/doc_00192672 [00:33:10]file doc_00192673 [00:33:10]remove file /storage/0543/doc_00192673 [00:33:10]file doc_00192674 [00:33:10]remove file /storage/0543/doc_00192674 [00:33:10]file doc_00192675 [00:33:10]remove file /storage/0543/doc_00192675 [00:33:10]file doc_00192676 [00:33:10]remove file /storage/0543/doc_00192676 [00:33:10]file doc_00192677 [00:33:10]remove file /storage/0543/doc_00192677 [00:33:10]file doc_00192678 [00:33:10]remove file /storage/0543/doc_00192678 [00:33:10]file doc_00192679 [00:33:10]remove file /storage/0543/doc_00192679 [00:33:10]file doc_00192680 [00:33:10]remove file /storage/0543/doc_00192680 [00:33:10]file doc_00192681 [00:33:10]remove file /storage/0543/doc_00192681 [00:33:10]file doc_00192682 [00:33:10]remove file /storage/0543/doc_00192682 [00:33:10]file doc_00192683 [00:33:10]remove file /storage/0543/doc_00192683 [00:33:10]file doc_00192684 [00:33:10]remove file /storage/0543/doc_00192684 [00:33:10]file doc_00192685 [00:33:10]remove file /storage/0543/doc_00192685 [00:33:10]file doc_00192686 [00:33:10]remove file /storage/0543/doc_00192686 [00:33:10]file doc_00192687 [00:33:10]remove file /storage/0543/doc_00192687 [00:33:10]file doc_00192688 [00:33:10]remove file /storage/0543/doc_00192688 [00:33:10]file doc_00192689 [00:33:10]remove file /storage/0543/doc_00192689 [00:33:10]file doc_00192690 [00:33:10]remove file /storage/0543/doc_00192690 [00:33:10]file doc_00192691 [00:33:10]remove file /storage/0543/doc_00192691 [00:33:10]file doc_00192692 [00:33:10]remove file /storage/0543/doc_00192692 [00:33:10]file doc_00192693 [00:33:10]remove file /storage/0543/doc_00192693 [00:33:10]file doc_00192694 [00:33:10]remove file /storage/0543/doc_00192694 [00:33:10]file doc_00192695 [00:33:10]remove file /storage/0543/doc_00192695 [00:33:10]file doc_00192696 [00:33:10]remove file /storage/0543/doc_00192696 [00:33:10]file doc_00192697 [00:33:10]remove file /storage/0543/doc_00192697 [00:33:10]file doc_00192698 [00:33:10]remove file /storage/0543/doc_00192698 [00:33:10]file doc_00192699 [00:33:10]remove file /storage/0543/doc_00192699 [00:33:10]file doc_00192700 [00:33:10]remove file /storage/0543/doc_00192700 [00:33:11]file doc_00192701 [00:33:11]remove file /storage/0543/doc_00192701 [00:33:11]file doc_00192702 [00:33:11]remove file /storage/0543/doc_00192702 [00:33:11]file doc_00192703 [00:33:11]remove file /storage/0543/doc_00192703 [00:33:11]file doc_00192704 [00:33:11]remove file /storage/0543/doc_00192704 [00:33:11]file doc_00192705 [00:33:11]remove file /storage/0543/doc_00192705 [00:33:11]file doc_00192706 [00:33:11]remove file /storage/0543/doc_00192706 [00:33:11]file doc_00192707 [00:33:11]remove file /storage/0543/doc_00192707 [00:33:11]file doc_00192708 [00:33:11]remove file /storage/0543/doc_00192708 [00:33:11]file doc_00192709 [00:33:11]remove file /storage/0543/doc_00192709 [00:33:11]file doc_00192710 [00:33:11]remove file /storage/0543/doc_00192710 [00:33:11]file doc_00192711 [00:33:11]remove file /storage/0543/doc_00192711 [00:33:11]file doc_00192712 [00:33:11]remove file /storage/0543/doc_00192712 [00:33:11]file doc_00192713 [00:33:11]remove file /storage/0543/doc_00192713 [00:33:11]file doc_00192714 [00:33:11]remove file /storage/0543/doc_00192714 [00:33:11]file doc_00192715 [00:33:11]remove file /storage/0543/doc_00192715 [00:33:11]file doc_00192716 [00:33:11]remove file /storage/0543/doc_00192716 [00:33:11]file doc_00192717 [00:33:11]remove file /storage/0543/doc_00192717 [00:33:11]file doc_00192718 [00:33:11]remove file /storage/0543/doc_00192718 [00:33:11]file doc_00192719 [00:33:11]remove file /storage/0543/doc_00192719 [00:33:11]file doc_00192720 [00:33:11]remove file /storage/0543/doc_00192720 [00:33:11]file doc_00192721 [00:33:11]remove file /storage/0543/doc_00192721 [00:33:11]file doc_00192722 [00:33:11]remove file /storage/0543/doc_00192722 [00:33:11]file doc_00192723 [00:33:11]remove file /storage/0543/doc_00192723 [00:33:11]file doc_00192724 [00:33:11]remove file /storage/0543/doc_00192724 [00:33:11]file doc_00192725 [00:33:11]remove file /storage/0543/doc_00192725 [00:33:11]file doc_00192726 [00:33:11]remove file /storage/0543/doc_00192726 [00:33:11]file doc_00192727 [00:33:11]remove file /storage/0543/doc_00192727 [00:33:11]file doc_00192728 [00:33:11]remove file /storage/0543/doc_00192728 [00:33:11]file doc_00192729 [00:33:11]remove file /storage/0543/doc_00192729 [00:33:11]file doc_00192730 [00:33:11]remove file /storage/0543/doc_00192730 [00:33:11]file doc_00192731 [00:33:11]remove file /storage/0543/doc_00192731 [00:33:11]file doc_00192732 [00:33:11]remove file /storage/0543/doc_00192732 [00:33:11]file doc_00192733 [00:33:11]remove file /storage/0543/doc_00192733 [00:33:11]file doc_00192734 [00:33:11]remove file /storage/0543/doc_00192734 [00:33:11]file doc_00192735 [00:33:11]remove file /storage/0543/doc_00192735 [00:33:11]file doc_00192736 [00:33:11]remove file /storage/0543/doc_00192736 [00:33:11]file doc_00192737 [00:33:11]remove file /storage/0543/doc_00192737 [00:33:11]file doc_00192738 [00:33:11]remove file /storage/0543/doc_00192738 [00:33:11]file doc_00192739 [00:33:11]remove file /storage/0543/doc_00192739 [00:33:11]file doc_00192740 [00:33:11]remove file /storage/0543/doc_00192740 [00:33:11]file doc_00192741 [00:33:11]remove file /storage/0543/doc_00192741 [00:33:11]file doc_00192742 [00:33:11]remove file /storage/0543/doc_00192742 [00:33:11]file doc_00192743 [00:33:11]remove file /storage/0543/doc_00192743 [00:33:11]file doc_00192744 [00:33:11]remove file /storage/0543/doc_00192744 [00:33:11]file doc_00192745 [00:33:11]remove file /storage/0543/doc_00192745 [00:33:11]file doc_00192746 [00:33:11]remove file /storage/0543/doc_00192746 [00:33:11]file doc_00192747 [00:33:11]remove file /storage/0543/doc_00192747 [00:33:11]file doc_00192748 [00:33:11]remove file /storage/0543/doc_00192748 [00:33:11]file doc_00192749 [00:33:11]remove file /storage/0543/doc_00192749 [00:33:11]file doc_00192750 [00:33:11]remove file /storage/0543/doc_00192750 [00:33:11]file doc_00192751 [00:33:11]remove file /storage/0543/doc_00192751 [00:33:11]file doc_00192752 [00:33:11]remove file /storage/0543/doc_00192752 [00:33:11]file doc_00192753 [00:33:11]remove file /storage/0543/doc_00192753 [00:33:11]file doc_00192754 [00:33:11]remove file /storage/0543/doc_00192754 [00:33:11]file doc_00192755 [00:33:11]remove file /storage/0543/doc_00192755 [00:33:11]file doc_00192756 [00:33:11]remove file /storage/0543/doc_00192756 [00:33:11]file doc_00192757 [00:33:11]remove file /storage/0543/doc_00192757 [00:33:11]file doc_00192758 [00:33:11]remove file /storage/0543/doc_00192758 [00:33:11]file doc_00192759 [00:33:11]remove file /storage/0543/doc_00192759 [00:33:11]file doc_00192760 [00:33:11]remove file /storage/0543/doc_00192760 [00:33:11]file doc_00192761 [00:33:11]remove file /storage/0543/doc_00192761 [00:33:11]file doc_00192762 [00:33:11]remove file /storage/0543/doc_00192762 [00:33:11]file doc_00192763 [00:33:11]remove file /storage/0543/doc_00192763 [00:33:11]file doc_00192764 [00:33:11]remove file /storage/0543/doc_00192764 [00:33:11]file doc_00192765 [00:33:11]remove file /storage/0543/doc_00192765 [00:33:11]file doc_00192766 [00:33:11]remove file /storage/0543/doc_00192766 [00:33:11]file doc_00192767 [00:33:11]remove file /storage/0543/doc_00192767 [00:33:11]file doc_00192768 [00:33:11]remove file /storage/0543/doc_00192768 [00:33:11]file doc_00192769 [00:33:11]remove file /storage/0543/doc_00192769 [00:33:11]file doc_00192770 [00:33:11]remove file /storage/0543/doc_00192770 [00:33:11]file doc_00192771 [00:33:11]remove file /storage/0543/doc_00192771 [00:33:11]file doc_00192772 [00:33:11]remove file /storage/0543/doc_00192772 [00:33:11]file doc_00192773 [00:33:11]remove file /storage/0543/doc_00192773 [00:33:11]file doc_00192774 [00:33:11]remove file /storage/0543/doc_00192774 [00:33:11]file doc_00192775 [00:33:11]remove file /storage/0543/doc_00192775 [00:33:11]file doc_00192776 [00:33:11]remove file /storage/0543/doc_00192776 [00:33:11]file doc_00192777 [00:33:11]remove file /storage/0543/doc_00192777 [00:33:11]file doc_00192778 [00:33:11]remove file /storage/0543/doc_00192778 [00:33:11]file doc_00192779 [00:33:11]remove file /storage/0543/doc_00192779 [00:33:11]file doc_00192780 [00:33:11]remove file /storage/0543/doc_00192780 [00:33:11]file doc_00192781 [00:33:11]remove file /storage/0543/doc_00192781 [00:33:11]file doc_00192782 [00:33:11]remove file /storage/0543/doc_00192782 [00:33:11]file doc_00192783 [00:33:11]remove file /storage/0543/doc_00192783 [00:33:11]file doc_00192784 [00:33:11]remove file /storage/0543/doc_00192784 [00:33:11]file doc_00192785 [00:33:11]remove file /storage/0543/doc_00192785 [00:33:11]file doc_00192786 [00:33:11]remove file /storage/0543/doc_00192786 [00:33:11]file doc_00192787 [00:33:11]remove file /storage/0543/doc_00192787 [00:33:11]file doc_00192788 [00:33:11]remove file /storage/0543/doc_00192788 [00:33:11]file doc_00192789 [00:33:11]remove file /storage/0543/doc_00192789 [00:33:11]file doc_00192790 [00:33:11]remove file /storage/0543/doc_00192790 [00:33:11]file doc_00192791 [00:33:11]remove file /storage/0543/doc_00192791 [00:33:11]file doc_00192792 [00:33:11]remove file /storage/0543/doc_00192792 [00:33:11]file doc_00192793 [00:33:11]remove file /storage/0543/doc_00192793 [00:33:11]remove dir /storage/0543 [00:33:11]ProcessDocumentItem done err = 0, tmpTLVsize=265 [00:33:11]tlvbuf is 00F9A060 [00:33:11]SAM_PROTO_ClearQueue [00:33:11]wFMCommunicate request_size=4 [00:33:11]MH_SAM_APDU [00:33:11]CAPDU: 80 09 00 00 [00:33:11]Write to MH i2c: E2 08 00 F5 18 80 09 00 00 00 00 00 00 7F [00:33:11]Write i2c OK [00:33:11]MH_I2C_Read... [00:33:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:33:11]Read from MH i2c: E2 [00:33:11]MH_I2C_Read... [00:33:11]Read from MH i2c: E2 03 00 [00:33:11]MH_I2C_Read... [00:33:11]Read from MH i2c: E2 03 00 F5 18 00 90 00 81 [00:33:11]RAPDU: 90 00 [00:33:11]wFMCommunicate OK [00:33:11]SAM_PROTO_ClearQueue done [00:33:11]KKMCreateOFDPacket [00:33:11]OFDProtocolAddRootSTLVToBuf [00:33:11]FM_MakeSignedData [00:33:11]FM_MakeSignedData [00:33:11]SAM_PROTO_SignData [00:33:11]wFMCommunicate request_size=4 [00:33:11]MH_SAM_APDU [00:33:11]CAPDU: 80 0D 01 02 [00:33:11]Write to MH i2c: E2 08 00 F6 18 80 0D 01 02 00 00 00 00 87 [00:33:11]Write i2c OK [00:33:11]MH_I2C_Read... [00:33:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:33:11]Read from MH i2c: E2 [00:33:11]MH_I2C_Read... [00:33:11]Read from MH i2c: E2 03 00 [00:33:11]MH_I2C_Read... [00:33:11]Read from MH i2c: E2 03 00 F6 18 00 90 00 82 [00:33:11]RAPDU: 90 00 [00:33:11]wFMCommunicate OK [00:33:11]wFMCommunicate request_size=255 [00:33:11]MH_SAM_APDU [00:33:11]CAPDU: 80 0D 02 02 FA 02 00 09 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 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 46 2D 20 67 0E 04 04 00 20 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1A F1 02 00 11 04 10 00 30 30 30 30 30 30 30 [00:33:11]Write to MH i2c: E2 02 01 F7 18 80 0D 02 02 FA 00 02 00 09 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 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 46 2D 20 67 0E 04 04 00 20 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1A F1 02 00 11 04 10 00 30 30 30 30 30 30 30 00 00 02 [00:33:11]Write i2c OK [00:33:11]MH_I2C_Read... [00:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:11]Read from MH i2c: E2 [00:33:11]MH_I2C_Read... [00:33:11]Read from MH i2c: E2 03 00 [00:33:11]MH_I2C_Read... [00:33:11]Read from MH i2c: E2 03 00 F7 18 00 90 00 83 [00:33:11]RAPDU: 90 00 [00:33:12]wFMCommunicate OK [00:33:12]wFMCommunicate request_size=24 [00:33:12]MH_SAM_APDU [00:33:12]CAPDU: 80 0D 02 02 13 30 30 30 38 37 31 37 35 34 35 04 06 00 70 3D CE 49 4A 1E [00:33:12]Write to MH i2c: E2 1B 00 F8 18 80 0D 02 02 13 00 30 30 30 38 37 31 37 35 34 35 04 06 00 70 3D CE 49 4A 1E 00 00 EB [00:33:12]Write i2c OK [00:33:12]MH_I2C_Read... [00:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:12]Read from MH i2c: E2 [00:33:12]MH_I2C_Read... [00:33:12]Read from MH i2c: E2 03 00 [00:33:12]MH_I2C_Read... [00:33:12]Read from MH i2c: E2 03 00 F8 18 00 90 00 84 [00:33:12]RAPDU: 90 00 [00:33:12]wFMCommunicate OK [00:33:12]wFMCommunicate request_size=4 [00:33:12]MH_SAM_APDU [00:33:12]CAPDU: 80 0D 03 02 [00:33:12]Write to MH i2c: E2 08 00 F9 18 80 0D 03 02 00 00 00 00 8C [00:33:12]Write i2c OK [00:33:12]MH_I2C_Read... [00:33:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:33:12]Read from MH i2c: E2 [00:33:12]MH_I2C_Read... [00:33:12]Read from MH i2c: E2 0B 00 [00:33:12]MH_I2C_Read... [00:33:12]Read from MH i2c: E2 0B 00 F9 18 00 5D ED 92 FA EB 75 72 E4 90 00 19 [00:33:12]RAPDU: 5D ED 92 FA EB 75 72 E4 90 00 [00:33:12]wFMCommunicate OK [00:33:12]SAM_PROTO_SignData done [00:33:12]FM_MakeSignedData done [00:33:12]CreateOFDProtocolMessage [00:33:12]wFMCommunicate request_size=4 [00:33:12]MH_SAM_APDU [00:33:12]CAPDU: 80 11 00 00 [00:33:12]Write to MH i2c: E2 08 00 FA 18 80 11 00 00 00 00 00 00 8C [00:33:12]Write i2c OK [00:33:12]MH_I2C_Read... [00:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:12]Read from MH i2c: E2 [00:33:12]MH_I2C_Read... [00:33:12]Read from MH i2c: E2 17 00 [00:33:12]MH_I2C_Read... [00:33:12]Read from MH i2c: E2 17 00 FA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [00:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:33:12]wFMCommunicate OK [00:33:12]CreateOFDProtocolMessage done [00:33:12]OFDSenderStorePacket 192794 [00:33:12]StoreOFDPacket docnum=192794 [00:33:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 1D 01 00 00 0A 4F 15 01 BE 99 5A 02 01 00 02 00 09 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 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 46 2D 20 67 0E 04 04 00 20 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1A F1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 70 3D CE 49 4A 1E 5D ED 92 FA EB 75 72 E4 [00:33:12]CheckFolder [00:33:12]dirname=/storage/ofd_packets [00:33:12]CheckFolder done [00:33:12]ProducePacketName [00:33:12]name=ofd_packets/00192794 [00:33:12]NVStorageSaveData ofd_packets/00192794 [00:33:12]File name is /storage/ofd_packets/00192794 [00:33:12]Write 315 bytes [00:33:12]NVStorageSaveData done [00:33:12]OFDSenderStorePacket done [00:33:12]KKMCreateOFDPacket done [00:33:12]NVStorageSaveData kkm_last_timestamp [00:33:12]File name is /storage/kkm_last_timestamp [00:33:12]Write 4 bytes [00:33:12]NVStorageSaveData done [00:33:12]ExternCall_PrintAddStr [00:33:12]wPrintStart [00:33:12]Write to MH i2c: 01 00 00 FB 18 13 [00:33:12]Write i2c OK [00:33:12]MH_I2C_Read... [00:33:12]Read from MH i2c: 01 [00:33:12]MH_I2C_Read... [00:33:12]Read from MH i2c: 01 07 00 [00:33:12]MH_I2C_Read... [00:33:12]Read from MH i2c: 01 07 00 FB 18 00 00 00 00 00 FF 0F 28 [00:33:12]RasterBufferAndPrint [00:33:12]line Отчет об открытии смены [00:33:12]line ФФД: 1.0 [00:33:12]line ИНН: 02508201610067 [00:33:12]line Кассир: Асылбекова Ч. [00:33:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [00:33:12]line Место: АЗС № 170 "Партнер Нефть" [00:33:12]line 29.10.2024 00:33 [00:33:12]line Смена: 544 [00:33:12]line РНМ: 0000000000091776 [00:33:12]line ЗНМ: 0300000110 [00:33:12]line ФД: 192794 [00:33:12]line ФМ: 0000000000871754 [00:33:12]line ФПД: 123410756225566 [00:33:12]OFD Sender: Processing packet 192794 [packets to send 75, broken 74] [00:33:12]ProducePacketName [00:33:12]name=ofd_packets/00192794 [00:33:12]OFD Sender: To server: pG, [00:33:12]CommunicateWithHost lk.salyk.kg:30040 [00:33:12]ConnectInit lk.salyk.kg [00:33:12]written 0, free lines is 4095 [00:33:12]Connected sock=10 [00:33:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 1D 01 00 00 0A 4F 15 01 BE 99 5A 02 01 00 02 00 09 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 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 46 2D 20 67 0E 04 04 00 20 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1A F1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 70 3D CE 49 4A 1E 5D ED 92 FA EB 75 72 E4 [00:33:12]Write to MH i2c: 01 00 00 0D 19 26 [00:33:12]Write i2c OK [00:33:12]MH_I2C_Read... [00:33:12]Read from MH i2c: 01 [00:33:12]MH_I2C_Read... [00:33:12]Read from MH i2c: 01 07 00 [00:33:12]MH_I2C_Read... [00:33:12]Read from MH i2c: 01 07 00 0D 19 00 00 00 00 00 5D 0E 98 [00:33:12]RasterBufferAndPrint [00:33:12]line [00:33:12]line [00:33:12]line [00:33:12]line [00:33:12]line [00:33:12]written 0, free lines is 3693 [00:33:12]MH_Cut [00:33:12]Write to MH i2c: D1 01 00 14 19 01 FF [00:33:12]Write i2c OK [00:33:12]MH_I2C_Read... [00:33:12]Read from MH i2c: D1 [00:33:12]MH_I2C_Read... [00:33:12]Read from MH i2c: D1 01 00 [00:33:12]MH_I2C_Read... [00:33:12]Read from MH i2c: D1 01 00 14 19 00 FE [00:33:12]Write to MH i2c: 01 00 00 15 19 2E [00:33:12]Write i2c OK [00:33:12]MH_I2C_Read... [00:33:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A7 D4 47 00 35 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A F1 02 00 F4 03 04 00 0A D2 1F 67 B6 04 01 00 00 99 4F 6D 56 C5 94 5E C0 [00:33:12]CommunicateWithHost err = 0 [00:33:12]CheckOFDResponse [00:33:12]1017 (14) - 77093643461234 [00:33:12]1041 (16) - 0000000000871754 [00:33:12]1040 (4) - 192794 [00:33:12]1012 (4) - 28.10.2024 18:03 [00:33:12]1206 (1) - 0 [00:33:12]OFD Sender: Remove packet 192794 [00:33:12]ProducePacketName [00:33:12]name=ofd_packets/00192794 [00:33:12]NVStorageDeleteData [00:33:12]*** Cut start [00:33:12]*** Partial cut [00:33:12]*** CUTSNS_PIN = 1 [00:33:13]*** CUTSNS_PIN = 0 [00:33:13]OFD Sender: No OFD packet to send [00:33:13]*** Brake cut motor [00:33:13]Read from MH i2c: 01 [00:33:13]MH_I2C_Read... [00:33:13]*** Stop cut motor [00:33:13]*** Cut end [00:33:13]Read from MH i2c: 01 07 00 [00:33:13]MH_I2C_Read... [00:33:13]Read from MH i2c: 01 07 00 15 19 00 00 00 00 00 FF 0F 43 [00:33:13]process_action open_shift done [00:33:13]requested_data is exist [00:33:13]produce_requested_data [00:33:13]requested_item fd.num is exist - process it [00:33:13]SAM_PROTO_GetFieldsCounters [00:33:13]wFMCommunicate request_size=4 [00:33:13]MH_SAM_APDU [00:33:13]CAPDU: 80 13 00 00 [00:33:13]Write to MH i2c: E2 08 00 16 19 80 13 00 00 00 00 00 00 AB [00:33:13]Write i2c OK [00:33:13]MH_I2C_Read... [00:33:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:13]Read from MH i2c: E2 [00:33:13]MH_I2C_Read... [00:33:13]Read from MH i2c: E2 62 00 [00:33:13]MH_I2C_Read... [00:33:13]Read from MH i2c: E2 62 00 16 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1A F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [00:33:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1A F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:13]wFMCommunicate OK [00:33:13]SAM_PROTO_GetFieldsCounters done [00:33:13]requested_item shift.num is exist - process it [00:33:13]requested_item shift.opened is exist - process it [00:33:13]req_shift_opened [00:33:13]FM_GetShiftState [00:33:13]SAM_PROTO_GetShiftState [00:33:13]wFMCommunicate request_size=4 [00:33:13]MH_SAM_APDU [00:33:13]CAPDU: 80 13 01 00 [00:33:13]Write to MH i2c: E2 08 00 17 19 80 13 01 00 00 00 00 00 AD [00:33:13]Write i2c OK [00:33:13]MH_I2C_Read... [00:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:13]Read from MH i2c: E2 [00:33:13]MH_I2C_Read... [00:33:13]Read from MH i2c: E2 0E 00 [00:33:13]MH_I2C_Read... [00:33:13]Read from MH i2c: E2 0E 00 17 19 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 B3 [00:33:13]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [00:33:13]wFMCommunicate OK [00:33:13]SAM_PROTO_GetShiftState done [00:33:13]FM_GetShiftState done [00:33:13]req_shift_opened done [00:33:13]requested_item shift.open_date is exist - process it [00:33:13]req_shift_open_date [00:33:13]req_shift_open_date done [00:33:13]produce_requested_data done [00:33:13]produce_requested_data return {"fd.num":192794,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [00:33:13]process_action_free open_shift [00:33:13]json_value_free [00:33:13]json_value_free done [00:33:13]process_json_proto returns [00:33:13]Send response to host [00:33:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":192794,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [00:33:13]free response buf [00:33:13]execute_script done [00:33:13]execute_script returns [00:33:13]free content buf [00:33:13]Sock 8.Close socket [00:33:13]Sock 8.Thread stoped [00:33:13]accept exits with 9 [00:33:13]New connection [00:33:13]New thread 3066801508 created [00:33:13]Thread 3066658148 joined [00:33:13]Waiting for new connection... [00:33:13] Sock 9.Parse request [00:33:13]Sock 9.Check first char [00:33:13]Sock 9.First char is OK [00:33:13]request: POST /json_proto HTTP/1.0 [00:33:13]Method: POST [00:33:13]URL: /json_proto [00:33:13]Method is POST - this is cgi request [00:33:13]url: /json_proto [00:33:13]query_string will be loaded in cgi processing [00:33:13]execute_cgi json_proto POST (null) [00:33:13]execute_cgi path=json_proto method=POST [00:33:13]POST find Content-Length [00:33:13]Host: 172.17.63.131:8080 [00:33:13]Content-Length: 331 [00:33:13]Content-Type: application/json [00:33:13] [00:33:13]POST finish read [00:33:13]Found Content-Length = 331 [00:33:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:13]execute_script... [00:33:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:13]POST & json_proto [00:33:13]process_json_proto [00:33:13]json parsed OK: [00:33:13]protocol is kg_v1.0 [00:33:13]action value=get_value [00:33:13]process_action get_value [00:33:13]cmd_get_value [00:33:13]process_action get_value done [00:33:13]requested_data is exist [00:33:13]produce_requested_data [00:33:13]requested_item fm.sale.total is exist - process it [00:33:13]SAM_PROTO_GetFMData [00:33:13]wFMCommunicate request_size=4 [00:33:13]MH_SAM_APDU [00:33:13]CAPDU: 80 13 03 00 [00:33:13]Write to MH i2c: E2 08 00 18 19 80 13 03 00 00 00 00 00 B0 [00:33:13]Write i2c OK [00:33:13]MH_I2C_Read... [00:33:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:33:14]Read from MH i2c: E2 [00:33:14]MH_I2C_Read... [00:33:14]Read from MH i2c: E2 FD 00 [00:33:14]MH_I2C_Read... [00:33:14]Read from MH i2c: E2 FD 00 18 19 00 C1 04 85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 22 [00:33:14]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA EC 02 00 69 04 A3 00 6F 04 04 00 D0 EC 02 00 B1 04 05 00 4A 1E 81 B8 03 70 04 05 00 B0 A4 17 8B 03 72 04 04 00 9A 79 69 2D 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 5F 7A 30 65 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 59 88 6E 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:33:14]wFMCommunicate OK [00:33:14]wFMCommunicate request_size=4 [00:33:14]MH_SAM_APDU [00:33:14]CAPDU: 80 17 00 00 [00:33:14]Write to MH i2c: E2 08 00 19 19 80 17 00 00 00 00 00 00 B2 [00:33:14]Write i2c OK [00:33:14]MH_I2C_Read... [00:33:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:14]Read from MH i2c: E2 [00:33:14]MH_I2C_Read... [00:33:14]Read from MH i2c: E2 FD 00 [00:33:14]MH_I2C_Read... [00:33:14]Read from MH i2c: E2 FD 00 19 19 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C3 [00:33:14]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:15]wFMCommunicate OK [00:33:15]wFMCommunicate request_size=4 [00:33:15]MH_SAM_APDU [00:33:15]CAPDU: 80 17 00 00 [00:33:15]Write to MH i2c: E2 08 00 1A 19 80 17 00 00 00 00 00 00 B3 [00:33:15]Write i2c OK [00:33:15]MH_I2C_Read... [00:33:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:15]Read from MH i2c: E2 [00:33:15]MH_I2C_Read... [00:33:15]Read from MH i2c: E2 FD 00 [00:33:15]MH_I2C_Read... [00:33:15]Read from MH i2c: E2 FD 00 1A 19 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 53 [00:33:15]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:33:15]wFMCommunicate OK [00:33:15]wFMCommunicate request_size=4 [00:33:15]MH_SAM_APDU [00:33:15]CAPDU: 80 17 00 00 [00:33:15]Write to MH i2c: E2 08 00 1B 19 80 17 00 00 00 00 00 00 B4 [00:33:15]Write i2c OK [00:33:15]MH_I2C_Read... [00:33:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:15]Read from MH i2c: E2 [00:33:15]MH_I2C_Read... [00:33:15]Read from MH i2c: E2 FD 00 [00:33:15]MH_I2C_Read... [00:33:15]Read from MH i2c: E2 FD 00 1B 19 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 39 [00:33:15]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:33:16]wFMCommunicate OK [00:33:16]wFMCommunicate request_size=4 [00:33:16]MH_SAM_APDU [00:33:16]CAPDU: 80 17 00 00 [00:33:16]Write to MH i2c: E2 08 00 1C 19 80 17 00 00 00 00 00 00 B5 [00:33:16]Write i2c OK [00:33:16]MH_I2C_Read... [00:33:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:33:16]Read from MH i2c: E2 [00:33:16]MH_I2C_Read... [00:33:16]Read from MH i2c: E2 DE 00 [00:33:16]MH_I2C_Read... [00:33:16]Read from MH i2c: E2 DE 00 1C 19 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 94 [00:33:16]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:33:16]wFMCommunicate OK [00:33:16]SAM_PROTO_GetFMData done [00:33:16]requested_item fm.sale_refund.total is exist - process it [00:33:16]requested_item fm.buy.total is exist - process it [00:33:16]requested_item shift.sale.total is exist - process it [00:33:16]SAM_PROTO_GetShiftData [00:33:16]wFMCommunicate request_size=4 [00:33:16]MH_SAM_APDU [00:33:16]CAPDU: 80 13 02 00 [00:33:16]Write to MH i2c: E2 08 00 1D 19 80 13 02 00 00 00 00 00 B4 [00:33:16]Write i2c OK [00:33:16]MH_I2C_Read... [00:33:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:33:16]Read from MH i2c: E2 [00:33:16]MH_I2C_Read... [00:33:16]Read from MH i2c: E2 FD 00 [00:33:16]MH_I2C_Read... [00:33:16]Read from MH i2c: E2 FD 00 1D 19 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 27 [00:33:17]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:33:17]wFMCommunicate OK [00:33:17]wFMCommunicate request_size=4 [00:33:17]MH_SAM_APDU [00:33:17]CAPDU: 80 17 00 00 [00:33:17]Write to MH i2c: E2 08 00 1E 19 80 17 00 00 00 00 00 00 B7 [00:33:17]Write i2c OK [00:33:17]MH_I2C_Read... [00:33:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:17]Read from MH i2c: E2 [00:33:17]MH_I2C_Read... [00:33:17]Read from MH i2c: E2 FD 00 [00:33:17]MH_I2C_Read... [00:33:17]Read from MH i2c: E2 FD 00 1E 19 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 BF [00:33:17]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:33:17]wFMCommunicate OK [00:33:17]wFMCommunicate request_size=4 [00:33:17]MH_SAM_APDU [00:33:17]CAPDU: 80 17 00 00 [00:33:17]Write to MH i2c: E2 08 00 1F 19 80 17 00 00 00 00 00 00 B8 [00:33:17]Write i2c OK [00:33:17]MH_I2C_Read... [00:33:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:17]Read from MH i2c: E2 [00:33:17]MH_I2C_Read... [00:33:17]Read from MH i2c: E2 FD 00 [00:33:17]MH_I2C_Read... [00:33:17]Read from MH i2c: E2 FD 00 1F 19 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 8A [00:33:17]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:33:18]wFMCommunicate OK [00:33:18]wFMCommunicate request_size=4 [00:33:18]MH_SAM_APDU [00:33:18]CAPDU: 80 17 00 00 [00:33:18]Write to MH i2c: E2 08 00 20 19 80 17 00 00 00 00 00 00 B9 [00:33:18]Write i2c OK [00:33:18]MH_I2C_Read... [00:33:18]OFD Sender: No OFD packet to send [00:33:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:18]Read from MH i2c: E2 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 FD 00 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 FD 00 20 19 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 2B [00:33:18]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:33:18]wFMCommunicate OK [00:33:18]wFMCommunicate request_size=4 [00:33:18]MH_SAM_APDU [00:33:18]CAPDU: 80 17 00 00 [00:33:18]Write to MH i2c: E2 08 00 21 19 80 17 00 00 00 00 00 00 BA [00:33:18]Write i2c OK [00:33:18]MH_I2C_Read... [00:33:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:33:18]Read from MH i2c: E2 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 BD 00 [00:33:18]MH_I2C_Read... [00:33:18]Read from MH i2c: E2 BD 00 21 19 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 A0 [00:33:18]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:33:18]wFMCommunicate OK [00:33:18]SAM_PROTO_GetShiftData done [00:33:18]requested_item shift.sale.total_cash is exist - process it [00:33:18]requested_item shift.sale_refund.total is exist - process it [00:33:18]requested_item shift.sale_refund.total_cash is exist - process it [00:33:18]requested_item shift.buy.total is exist - process it [00:33:18]requested_item shift.buy.total_cash is exist - process it [00:33:18]produce_requested_data done [00:33:18]produce_requested_data return {"fm.sale.total":159803715.30,"fm.sale_refund.total":28777.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:33:18]process_action_free get_value [00:33:18]json_value_free [00:33:18]json_value_free done [00:33:18]process_json_proto returns [00:33:18]Send response to host [00:33:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159803715.30,"fm.sale_refund.total":28777.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:33:18]free response buf [00:33:18]execute_script done [00:33:18]execute_script returns [00:33:18]free content buf [00:33:18]Sock 9.Close socket [00:33:18]Sock 9.Thread stoped [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:38]OFD Sender: No OFD packet to send [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:13]OFD Sender: No OFD packet to send [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:28]OFD Sender: No OFD packet to send [00:37:33]OFD Sender: No OFD packet to send [00:37:38]OFD Sender: No OFD packet to send [00:37:43]OFD Sender: No OFD packet to send [00:37:48]OFD Sender: No OFD packet to send [00:37:53]OFD Sender: No OFD packet to send [00:37:58]OFD Sender: No OFD packet to send [00:38:03]OFD Sender: No OFD packet to send [00:38:08]OFD Sender: No OFD packet to send [00:38:13]OFD Sender: No OFD packet to send [00:38:18]OFD Sender: No OFD packet to send [00:38:23]OFD Sender: No OFD packet to send [00:38:28]OFD Sender: No OFD packet to send [00:38:33]OFD Sender: No OFD packet to send [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:48]OFD Sender: No OFD packet to send [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:13]OFD Sender: No OFD packet to send [00:40:18]OFD Sender: No OFD packet to send [00:40:23]OFD Sender: No OFD packet to send [00:40:28]OFD Sender: No OFD packet to send [00:40:33]OFD Sender: No OFD packet to send [00:40:38]OFD Sender: No OFD packet to send [00:40:43]OFD Sender: No OFD packet to send [00:40:48]OFD Sender: No OFD packet to send [00:40:53]OFD Sender: No OFD packet to send [00:40:58]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:24]OFD Sender: No OFD packet to send [00:49:29]OFD Sender: No OFD packet to send [00:49:34]OFD Sender: No OFD packet to send [00:49:39]OFD Sender: No OFD packet to send [00:49:44]OFD Sender: No OFD packet to send [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:29]OFD Sender: No OFD packet to send [00:50:34]OFD Sender: No OFD packet to send [00:50:39]OFD Sender: No OFD packet to send [00:50:44]OFD Sender: No OFD packet to send [00:50:49]OFD Sender: No OFD packet to send [00:50:54]OFD Sender: No OFD packet to send [00:50:59]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09: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:37]accept exits with 8 [01:10:37]New connection [01:10:37]New thread 3066658148 created [01:10:37]Thread 3066801508 joined [01:10:37]Waiting for new connection... [01:10:37] Sock 8.Parse request [01:10:37]Sock 8.Check first char [01:10:37]Sock 8.First char is OK [01:10:37]request: POST /json_proto HTTP/1.0 [01:10:37]Method: POST [01:10:37]URL: /json_proto [01:10:37]Method is POST - this is cgi request [01:10:37]url: /json_proto [01:10:37]query_string will be loaded in cgi processing [01:10:37]execute_cgi json_proto POST (null) [01:10:37]execute_cgi path=json_proto method=POST [01:10:37]POST find Content-Length [01:10:37]Host: 172.17.63.131:8080 [01:10:37]Content-Length: 677 [01:10:37]Content-Type: application/json [01:10:37] [01:10:37]POST finish read [01:10:37]Found Content-Length = 677 [01:10:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:10:37]execute_script... [01:10:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:10:37]POST & json_proto [01:10:37]process_json_proto [01:10:37]json parsed OK: [01:10:37]protocol is kg_v1.0 [01:10:37]action value=close_receipt [01:10:37]process_action close_receipt [01:10:37]cmd_close_receipt [01:10:37]MH_GetDate [01:10:37]Write to MH i2c: F0 00 00 22 19 2A [01:10:37]Write i2c OK [01:10:37]MH_I2C_Read... [01:10:37]Read from MH i2c: F0 [01:10:37]MH_I2C_Read... [01:10:37]Read from MH i2c: F0 09 00 [01:10:37]MH_I2C_Read... [01:10:37]Read from MH i2c: F0 09 00 22 19 00 0F 36 20 67 22 05 6E 64 F8 [01:10:37]GetLastDocTimeStamp 1730161990 [01:10:37]current date 1730164239 [01:10:37]FM_GetShiftState [01:10:37]SAM_PROTO_GetShiftState [01:10:37]wFMCommunicate request_size=4 [01:10:37]MH_SAM_APDU [01:10:37]CAPDU: 80 13 01 00 [01:10:37]Write to MH i2c: E2 08 00 23 19 80 13 01 00 00 00 00 00 B9 [01:10:37]Write i2c OK [01:10:37]MH_I2C_Read... [01:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:10:37]Read from MH i2c: E2 [01:10:37]MH_I2C_Read... [01:10:37]Read from MH i2c: E2 0E 00 [01:10:37]MH_I2C_Read... [01:10:37]Read from MH i2c: E2 0E 00 23 19 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 BF [01:10:37]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [01:10:37]wFMCommunicate OK [01:10:37]SAM_PROTO_GetShiftState done [01:10:37]FM_GetShiftState done [01:10:37]opened in 1730161990 [01:10:37]opened+sec_in_day 1730248390 [01:10:37]quantity*price = 80012 [01:10:37]sum+1 = 80013 [01:10:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 1 29.10.2024 01:10 Смена: 544 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192795 ФПД: 265565777499069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T011039&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192795&fm=265565777499069&tin=02508201610067®Number=0000000000091776&sum=80000 [01:10:38]StoreToDocumentArchive [01:10:38]shift 544 fd 192795 [01:10:38]save to /storage/0544/doc_00192795 [01:10:38]save last doc name /storage/0544/doc_00192795 to /storage/kkm_last_doc_name [01:10:38]save OK [01:10:38]Clear old archive folders... [01:10:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:10:38]tlvbuf is 00FAD000 [01:10:38]SAM_PROTO_ClearQueue [01:10:38]wFMCommunicate request_size=4 [01:10:38]MH_SAM_APDU [01:10:38]CAPDU: 80 09 00 00 [01:10:38]Write to MH i2c: E2 08 00 30 19 80 09 00 00 00 00 00 00 BB [01:10:38]Write i2c OK [01:10:38]MH_I2C_Read... [01:10:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:10:38]Read from MH i2c: E2 [01:10:38]MH_I2C_Read... [01:10:38]Read from MH i2c: E2 03 00 [01:10:38]MH_I2C_Read... [01:10:38]Read from MH i2c: E2 03 00 30 19 00 90 00 BD [01:10:38]RAPDU: 90 00 [01:10:38]wFMCommunicate OK [01:10:38]SAM_PROTO_ClearQueue done [01:10:38]KKMCreateOFDPacket [01:10:38]OFDProtocolAddRootSTLVToBuf [01:10:38]FM_MakeSignedData [01:10:38]FM_MakeSignedData [01:10:38]SAM_PROTO_SignData [01:10:38]wFMCommunicate request_size=4 [01:10:38]MH_SAM_APDU [01:10:38]CAPDU: 80 0D 01 02 [01:10:38]Write to MH i2c: E2 08 00 31 19 80 0D 01 02 00 00 00 00 C3 [01:10:38]Write i2c OK [01:10:38]MH_I2C_Read... [01:10:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:10:38]Read from MH i2c: E2 [01:10:38]MH_I2C_Read... [01:10:38]Read from MH i2c: E2 03 00 [01:10:38]MH_I2C_Read... [01:10:38]Read from MH i2c: E2 03 00 31 19 00 90 00 BE [01:10:38]RAPDU: 90 00 [01:10:38]wFMCommunicate OK [01:10:38]wFMCommunicate request_size=255 [01:10:38]MH_SAM_APDU [01:10: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 0F 36 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B F1 02 00 35 04 06 00 F1 [01:10:38]Write to MH i2c: E2 02 01 32 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 0F 36 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B F1 02 00 35 04 06 00 F1 00 00 31 [01:10:38]Write i2c OK [01:10:38]MH_I2C_Read... [01:10:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:10:39]Read from MH i2c: E2 [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: E2 03 00 [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: E2 03 00 32 19 00 90 00 BF [01:10:39]RAPDU: 90 00 [01:10:39]wFMCommunicate OK [01:10:39]wFMCommunicate request_size=10 [01:10:39]MH_SAM_APDU [01:10:39]CAPDU: 80 0D 02 02 05 87 D9 D5 13 BD [01:10:39]Write to MH i2c: E2 0D 00 33 19 80 0D 02 02 05 00 87 D9 D5 13 BD 00 00 D5 [01:10:39]Write i2c OK [01:10:39]MH_I2C_Read... [01:10:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:10:39]Read from MH i2c: E2 [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: E2 03 00 [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: E2 03 00 33 19 00 90 00 C0 [01:10:39]RAPDU: 90 00 [01:10:39]wFMCommunicate OK [01:10:39]wFMCommunicate request_size=4 [01:10:39]MH_SAM_APDU [01:10:39]CAPDU: 80 0D 03 02 [01:10:39]Write to MH i2c: E2 08 00 34 19 80 0D 03 02 00 00 00 00 C8 [01:10:39]Write i2c OK [01:10:39]MH_I2C_Read... [01:10:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:10:39]Read from MH i2c: E2 [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: E2 0B 00 [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: E2 0B 00 34 19 00 0E 7E 19 FF A5 3D BD 85 90 00 91 [01:10:39]RAPDU: 0E 7E 19 FF A5 3D BD 85 90 00 [01:10:39]wFMCommunicate OK [01:10:39]SAM_PROTO_SignData done [01:10:39]FM_MakeSignedData done [01:10:39]CreateOFDProtocolMessage [01:10:39]wFMCommunicate request_size=4 [01:10:39]MH_SAM_APDU [01:10:39]CAPDU: 80 11 00 00 [01:10:39]Write to MH i2c: E2 08 00 35 19 80 11 00 00 00 00 00 00 C8 [01:10:39]Write i2c OK [01:10:39]MH_I2C_Read... [01:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:10:39]Read from MH i2c: E2 [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: E2 17 00 [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: E2 17 00 35 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1B [01:10:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:10:39]wFMCommunicate OK [01:10:39]CreateOFDProtocolMessage done [01:10:39]OFDSenderStorePacket 192795 [01:10:39]StoreOFDPacket docnum=192795 [01:10:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B0 6A 07 01 53 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 0F 36 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B F1 02 00 35 04 06 00 F1 87 D9 D5 13 BD 0E 7E 19 FF A5 3D BD 85 [01:10:39]CheckFolder [01:10:39]dirname=/storage/ofd_packets [01:10:39]CheckFolder done [01:10:39]ProducePacketName [01:10:39]name=ofd_packets/00192795 [01:10:39]NVStorageSaveData ofd_packets/00192795 [01:10:39]File name is /storage/ofd_packets/00192795 [01:10:39]Write 301 bytes [01:10:39]NVStorageSaveData done [01:10:39]OFDSenderStorePacket done [01:10:39]KKMCreateOFDPacket done [01:10:39]NVStorageSaveData kkm_last_timestamp [01:10:39]File name is /storage/kkm_last_timestamp [01:10:39]Write 4 bytes [01:10:39]NVStorageSaveData done [01:10:39]ExternCall_PrintAddStr [01:10:39]wPrintStart [01:10:39]Write to MH i2c: 01 00 00 36 19 4F [01:10:39]Write i2c OK [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: 01 [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: 01 07 00 [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: 01 07 00 36 19 00 00 00 00 00 FF 0F 64 [01:10:39]RasterBufferAndPrint [01:10:39]line Счет N : (1)32124 [01:10:39]line ИНН: 02508201610067 [01:10:39]line Контрольно-Кассовый Чек [01:10:39]line ПРОДАЖА [01:10:39]line ТРК (МРК, ГНК) : 21 [01:10:39]line Товар: 2710124130 [01:10:39]line Аи-92-К-5 [01:10:39]line 11.960 * 66.90 [01:10:39]line = 800.12 [01:10:39]line НДС 12% НСП 1% [01:10:39]line > о реализуемом товаре [01:10:39]line ОКРУГЛЕНИЕ: -0.12 [01:10:39]line ИТОГО: 800.00 [01:10:39]line Внесено: 800.00 [01:10:39]line СДАЧА: 0.00 [01:10:39]line НСП 1% : 7.08 [01:10:39]line НДС 12% : 84.97 [01:10:39]line Наличными: 800.00 [01:10:39]line Безнал.: 0.00 [01:10:39]line Место: АЗС № 170 "Партнер Нефть" [01:10:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:10:39]line СНО: Общий режим [01:10:39]line Чек 1 29.10.2024 01:10 [01:10:39]line Смена: 544 ФФД: 1.0 [01:10:39]line ЗНМ: 0300000110 [01:10:39]line РНМ: 0000000000091776 [01:10:39]line Версия ККМ: 001 [01:10:39]line ФМ: 0000000000871754 [01:10:39]line ФД: 192795 [01:10:39]line ФПД: 265565777499069 [01:10:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T011039&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192795&fm=265565777499069&tin=02508201610067®Number=0000000000091776&sum=80000 [01:10:39]written 0, free lines is 4095 [01:10:39]OFD Sender: Processing packet 192795 [packets to send 75, broken 74] [01:10:39]ProducePacketName [01:10:39]name=ofd_packets/00192795 [01:10:39]OFD Sender: To server: pG, [01:10:39]CommunicateWithHost lk.salyk.kg:30040 [01:10:39]ConnectInit lk.salyk.kg [01:10:39]Connected sock=10 [01:10:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B0 6A 07 01 53 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 0F 36 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B F1 02 00 35 04 06 00 F1 87 D9 D5 13 BD 0E 7E 19 FF A5 3D BD 85 [01:10:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AE 39 47 00 DB C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B F1 02 00 F4 03 04 00 D1 DA 1F 67 B6 04 01 00 00 0A A5 17 00 7E 47 54 0D [01:10:39]CommunicateWithHost err = 0 [01:10:39]CheckOFDResponse [01:10:39]1017 (14) - 77093643461234 [01:10:39]1041 (16) - 0000000000871754 [01:10:39]1040 (4) - 192795 [01:10:39]1012 (4) - 28.10.2024 18:41 [01:10:39]1206 (1) - 0 [01:10:39]OFD Sender: Remove packet 192795 [01:10:39]ProducePacketName [01:10:39]name=ofd_packets/00192795 [01:10:39]NVStorageDeleteData [01:10:39]Write to MH i2c: 01 00 00 61 19 7A [01:10:39]Write i2c OK [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: 01 [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: 01 07 00 [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: 01 07 00 61 19 00 00 00 00 00 BE 0C 4B [01:10:39]RasterBufferAndPrint [01:10:39]line [01:10:39]line [01:10:39]line [01:10:39]line [01:10:39]line [01:10:39]written 0, free lines is 3268 [01:10:39]MH_Cut [01:10:39]Write to MH i2c: D1 01 00 68 19 01 53 [01:10:39]Write i2c OK [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: D1 [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: D1 01 00 [01:10:39]MH_I2C_Read... [01:10:39]Read from MH i2c: D1 01 00 68 19 00 52 [01:10:39]Write to MH i2c: 01 00 00 69 19 82 [01:10:39]Write i2c OK [01:10:39]MH_I2C_Read... [01:10:40]OFD Sender: No OFD packet to send [01:10:40]*** Cut start [01:10:40]*** Partial cut [01:10:40]*** CUTSNS_PIN = 1 [01:10:40]*** CUTSNS_PIN = 0 [01:10:40]*** Brake cut motor [01:10:41]Read from MH i2c: 01 [01:10:41]MH_I2C_Read... [01:10:41]*** Stop cut motor [01:10:41]*** Cut end [01:10:41]Read from MH i2c: 01 07 00 [01:10:41]MH_I2C_Read... [01:10:41]Read from MH i2c: 01 07 00 69 19 00 00 00 00 00 FF 0F 97 [01:10:41]process_action close_receipt done [01:10:41]requested_data is exist [01:10:41]produce_requested_data [01:10:41]requested_item fm.sn is exist - process it [01:10:41]wFMCommunicate request_size=4 [01:10:41]MH_SAM_APDU [01:10:41]CAPDU: 80 11 00 00 [01:10:41]Write to MH i2c: E2 08 00 6A 19 80 11 00 00 00 00 00 00 FD [01:10:41]Write i2c OK [01:10:41]MH_I2C_Read... [01:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:10:41]Read from MH i2c: E2 [01:10:41]MH_I2C_Read... [01:10:41]Read from MH i2c: E2 17 00 [01:10:41]MH_I2C_Read... [01:10:41]Read from MH i2c: E2 17 00 6A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 50 [01:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:10:41]wFMCommunicate OK [01:10:41]requested_item fd.num is exist - process it [01:10:41]SAM_PROTO_GetFieldsCounters [01:10:41]wFMCommunicate request_size=4 [01:10:41]MH_SAM_APDU [01:10:41]CAPDU: 80 13 00 00 [01:10:41]Write to MH i2c: E2 08 00 6B 19 80 13 00 00 00 00 00 00 00 [01:10:41]Write i2c OK [01:10:41]MH_I2C_Read... [01:10:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:10:41]Read from MH i2c: E2 [01:10:41]MH_I2C_Read... [01:10:41]Read from MH i2c: E2 62 00 [01:10:41]MH_I2C_Read... [01:10:41]Read from MH i2c: E2 62 00 6B 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1B F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [01:10:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1B F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:10:41]wFMCommunicate OK [01:10:41]SAM_PROTO_GetFieldsCounters done [01:10:41]requested_item shift.num is exist - process it [01:10:41]requested_item shift.opened is exist - process it [01:10:41]req_shift_opened [01:10:41]FM_GetShiftState [01:10:41]SAM_PROTO_GetShiftState [01:10:41]wFMCommunicate request_size=4 [01:10:41]MH_SAM_APDU [01:10:41]CAPDU: 80 13 01 00 [01:10:41]Write to MH i2c: E2 08 00 6C 19 80 13 01 00 00 00 00 00 02 [01:10:41]Write i2c OK [01:10:41]MH_I2C_Read... [01:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:10:41]Read from MH i2c: E2 [01:10:41]MH_I2C_Read... [01:10:41]Read from MH i2c: E2 0E 00 [01:10:41]MH_I2C_Read... [01:10:41]Read from MH i2c: E2 0E 00 6C 19 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 08 [01:10:41]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [01:10:41]wFMCommunicate OK [01:10:41]SAM_PROTO_GetShiftState done [01:10:41]FM_GetShiftState done [01:10:41]req_shift_opened done [01:10:41]requested_item shift.open_date is exist - process it [01:10:41]req_shift_open_date [01:10:41]req_shift_open_date done [01:10:41]produce_requested_data done [01:10:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192795,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [01:10:41]process_action_free close_receipt [01:10:41]json_value_free [01:10:41]json_value_free done [01:10:41]process_json_proto returns [01:10:41]Send response to host [01:10:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192795,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [01:10:41]free response buf [01:10:41]execute_script done [01:10:41]execute_script returns [01:10:41]free content buf [01:10:41]Sock 8.Close socket [01:10:41]Sock 8.Thread stoped [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:40]OFD Sender: No OFD packet to send [01:16:45]OFD Sender: No OFD packet to send [01:16:50]OFD Sender: No OFD packet to send [01:16:55]OFD Sender: No OFD packet to send [01:17:00]OFD Sender: No OFD packet to send [01:17:05]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:20]OFD Sender: No OFD packet to send [01:17:25]OFD Sender: No OFD packet to send [01:17:30]OFD Sender: No OFD packet to send [01:17:35]OFD Sender: No OFD packet to send [01:17:40]OFD Sender: No OFD packet to send [01:17:45]OFD Sender: No OFD packet to send [01:17:50]OFD Sender: No OFD packet to send [01:17:55]OFD Sender: No OFD packet to send [01:18:00]OFD Sender: No OFD packet to send [01:18:05]OFD Sender: No OFD packet to send [01:18:10]OFD Sender: No OFD packet to send [01:18:15]OFD Sender: No OFD packet to send [01:18:20]OFD Sender: No OFD packet to send [01:18:25]OFD Sender: No OFD packet to send [01:18:30]OFD Sender: No OFD packet to send [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:25]OFD Sender: No OFD packet to send [01:19:30]OFD Sender: No OFD packet to send [01:19:35]OFD Sender: No OFD packet to send [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:20]OFD Sender: No OFD packet to send [01:20:25]OFD Sender: No OFD packet to send [01:20:30]OFD Sender: No OFD packet to send [01:20:35]OFD Sender: No OFD packet to send [01:20:40]OFD Sender: No OFD packet to send [01:20:45]OFD Sender: No OFD packet to send [01:20:50]OFD Sender: No OFD packet to send [01:20:55]OFD Sender: No OFD packet to send [01:21:00]OFD Sender: No OFD packet to send [01:21:05]OFD Sender: No OFD packet to send [01:21:10]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:47]accept exits with 9 [01:23:47]New connection [01:23:47]New thread 3066801508 created [01:23:47]Thread 3066658148 joined [01:23:47]Waiting for new connection... [01:23:47] Sock 9.Parse request [01:23:47]Sock 9.Check first char [01:23:47]Sock 9.First char is OK [01:23:47]request: POST /json_proto HTTP/1.0 [01:23:47]Method: POST [01:23:47]URL: /json_proto [01:23:47]Method is POST - this is cgi request [01:23:47]url: /json_proto [01:23:47]query_string will be loaded in cgi processing [01:23:47]execute_cgi json_proto POST (null) [01:23:47]execute_cgi path=json_proto method=POST [01:23:47]POST find Content-Length [01:23:47]Host: 172.17.63.131:8080 [01:23:47]Content-Length: 676 [01:23:47]Content-Type: application/json [01:23:47] [01:23:47]POST finish read [01:23:47]Found Content-Length = 676 [01:23:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:23:47]execute_script... [01:23: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)32125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:23:47]POST & json_proto [01:23:47]process_json_proto [01:23:47]json parsed OK: [01:23:47]protocol is kg_v1.0 [01:23:47]action value=close_receipt [01:23:47]process_action close_receipt [01:23:47]cmd_close_receipt [01:23:47]MH_GetDate [01:23:47]Write to MH i2c: F0 00 00 6D 19 75 [01:23:47]Write i2c OK [01:23:47]MH_I2C_Read... [01:23:47]Read from MH i2c: F0 [01:23:47]MH_I2C_Read... [01:23:47]Read from MH i2c: F0 09 00 [01:23:47]MH_I2C_Read... [01:23:47]Read from MH i2c: F0 09 00 6D 19 00 25 39 20 67 22 05 6E 64 5C [01:23:47]GetLastDocTimeStamp 1730164239 [01:23:47]current date 1730165029 [01:23:47]FM_GetShiftState [01:23:47]SAM_PROTO_GetShiftState [01:23:47]wFMCommunicate request_size=4 [01:23:47]MH_SAM_APDU [01:23:47]CAPDU: 80 13 01 00 [01:23:47]Write to MH i2c: E2 08 00 6E 19 80 13 01 00 00 00 00 00 04 [01:23:47]Write i2c OK [01:23:47]MH_I2C_Read... [01:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:47]Read from MH i2c: E2 [01:23:47]MH_I2C_Read... [01:23:47]Read from MH i2c: E2 0E 00 [01:23:47]MH_I2C_Read... [01:23:47]Read from MH i2c: E2 0E 00 6E 19 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 0A [01:23:47]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [01:23:47]wFMCommunicate OK [01:23:47]SAM_PROTO_GetShiftState done [01:23:47]FM_GetShiftState done [01:23:47]opened in 1730161990 [01:23:47]opened+sec_in_day 1730248390 [01:23:47]quantity*price = 50041 [01:23:47]sum+1 = 50042 [01:23:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 2 29.10.2024 01:23 Смена: 544 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192796 ФПД: 185016676702523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T012349&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192796&fm=185016676702523&tin=02508201610067®Number=0000000000091776&sum=50000 [01:23:48]StoreToDocumentArchive [01:23:48]shift 544 fd 192796 [01:23:48]save to /storage/0544/doc_00192796 [01:23:48]save last doc name /storage/0544/doc_00192796 to /storage/kkm_last_doc_name [01:23:48]save OK [01:23:48]Clear old archive folders... [01:23:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:23:48]tlvbuf is B6E9CC00 [01:23:48]SAM_PROTO_ClearQueue [01:23:48]wFMCommunicate request_size=4 [01:23:48]MH_SAM_APDU [01:23:48]CAPDU: 80 09 00 00 [01:23:48]Write to MH i2c: E2 08 00 7B 19 80 09 00 00 00 00 00 00 06 [01:23:48]Write i2c OK [01:23:48]MH_I2C_Read... [01:23:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:23:48]Read from MH i2c: E2 [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: E2 03 00 [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: E2 03 00 7B 19 00 90 00 08 [01:23:48]RAPDU: 90 00 [01:23:48]wFMCommunicate OK [01:23:48]SAM_PROTO_ClearQueue done [01:23:48]KKMCreateOFDPacket [01:23:48]OFDProtocolAddRootSTLVToBuf [01:23:48]FM_MakeSignedData [01:23:48]FM_MakeSignedData [01:23:48]SAM_PROTO_SignData [01:23:48]wFMCommunicate request_size=4 [01:23:48]MH_SAM_APDU [01:23:48]CAPDU: 80 0D 01 02 [01:23:48]Write to MH i2c: E2 08 00 7C 19 80 0D 01 02 00 00 00 00 0E [01:23:48]Write i2c OK [01:23:48]MH_I2C_Read... [01:23:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:23:48]Read from MH i2c: E2 [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: E2 03 00 [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: E2 03 00 7C 19 00 90 00 09 [01:23:48]RAPDU: 90 00 [01:23:48]wFMCommunicate OK [01:23:48]wFMCommunicate request_size=255 [01:23:48]MH_SAM_APDU [01:23:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 25 39 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C F1 02 00 35 04 06 00 A8 [01:23:48]Write to MH i2c: E2 02 01 7D 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 25 39 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C F1 02 00 35 04 06 00 A8 00 00 62 [01:23:48]Write i2c OK [01:23:48]MH_I2C_Read... [01:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:48]Read from MH i2c: E2 [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: E2 03 00 [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: E2 03 00 7D 19 00 90 00 0A [01:23:48]RAPDU: 90 00 [01:23:48]wFMCommunicate OK [01:23:48]wFMCommunicate request_size=10 [01:23:48]MH_SAM_APDU [01:23:48]CAPDU: 80 0D 02 02 05 45 8D 4A D9 3B [01:23:48]Write to MH i2c: E2 0D 00 7E 19 80 0D 02 02 05 00 45 8D 4A D9 3B 00 00 4B [01:23:48]Write i2c OK [01:23:48]MH_I2C_Read... [01:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:48]Read from MH i2c: E2 [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: E2 03 00 [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: E2 03 00 7E 19 00 90 00 0B [01:23:48]RAPDU: 90 00 [01:23:48]wFMCommunicate OK [01:23:48]wFMCommunicate request_size=4 [01:23:48]MH_SAM_APDU [01:23:48]CAPDU: 80 0D 03 02 [01:23:48]Write to MH i2c: E2 08 00 7F 19 80 0D 03 02 00 00 00 00 13 [01:23:48]Write i2c OK [01:23:48]MH_I2C_Read... [01:23:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:23:48]Read from MH i2c: E2 [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: E2 0B 00 [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: E2 0B 00 7F 19 00 4A 26 97 29 D9 64 2F 17 90 00 C7 [01:23:48]RAPDU: 4A 26 97 29 D9 64 2F 17 90 00 [01:23:48]wFMCommunicate OK [01:23:48]SAM_PROTO_SignData done [01:23:48]FM_MakeSignedData done [01:23:48]CreateOFDProtocolMessage [01:23:48]wFMCommunicate request_size=4 [01:23:48]MH_SAM_APDU [01:23:48]CAPDU: 80 11 00 00 [01:23:48]Write to MH i2c: E2 08 00 80 19 80 11 00 00 00 00 00 00 13 [01:23:48]Write i2c OK [01:23:48]MH_I2C_Read... [01:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:48]Read from MH i2c: E2 [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: E2 17 00 [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: E2 17 00 80 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 66 [01:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:23:48]wFMCommunicate OK [01:23:48]CreateOFDProtocolMessage done [01:23:48]OFDSenderStorePacket 192796 [01:23:48]StoreOFDPacket docnum=192796 [01:23:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B0 A0 07 01 0E 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 25 39 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C F1 02 00 35 04 06 00 A8 45 8D 4A D9 3B 4A 26 97 29 D9 64 2F 17 [01:23:48]CheckFolder [01:23:48]dirname=/storage/ofd_packets [01:23:48]CheckFolder done [01:23:48]ProducePacketName [01:23:48]name=ofd_packets/00192796 [01:23:48]NVStorageSaveData ofd_packets/00192796 [01:23:48]File name is /storage/ofd_packets/00192796 [01:23:48]Write 301 bytes [01:23:48]NVStorageSaveData done [01:23:48]OFDSenderStorePacket done [01:23:48]KKMCreateOFDPacket done [01:23:48]NVStorageSaveData kkm_last_timestamp [01:23:48]File name is /storage/kkm_last_timestamp [01:23:48]Write 4 bytes [01:23:48]NVStorageSaveData done [01:23:48]ExternCall_PrintAddStr [01:23:48]wPrintStart [01:23:48]Write to MH i2c: 01 00 00 81 19 9A [01:23:48]Write i2c OK [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: 01 [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: 01 07 00 [01:23:48]MH_I2C_Read... [01:23:48]Read from MH i2c: 01 07 00 81 19 00 00 00 00 00 FF 0F AF [01:23:48]RasterBufferAndPrint [01:23:48]line Счет N : (1)32125 [01:23:48]line ИНН: 02508201610067 [01:23:48]line Контрольно-Кассовый Чек [01:23:48]line ПРОДАЖА [01:23:48]line ТРК (МРК, ГНК) : 12 [01:23:48]line Товар: 2710124130 [01:23:48]line Аи-92-К-5 [01:23:48]line 7.480 * 66.90 [01:23:48]line = 500.41 [01:23:48]line НДС 12% НСП 1% [01:23:48]line > о реализуемом товаре [01:23:48]line ОКРУГЛЕНИЕ: -0.41 [01:23:48]line ИТОГО: 500.00 [01:23:48]line Внесено: 500.00 [01:23:48]line СДАЧА: 0.00 [01:23:48]line НСП 1% : 4.43 [01:23:48]line НДС 12% : 53.14 [01:23:48]line Наличными: 500.00 [01:23:48]line Безнал.: 0.00 [01:23:48]line Место: АЗС № 170 "Партнер Нефть" [01:23:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:23:48]line СНО: Общий режим [01:23:48]line Чек 2 29.10.2024 01:23 [01:23:48]line Смена: 544 ФФД: 1.0 [01:23:48]line ЗНМ: 0300000110 [01:23:48]line РНМ: 0000000000091776 [01:23:48]line Версия ККМ: 001 [01:23:48]line ФМ: 0000000000871754 [01:23:48]line ФД: 192796 [01:23:48]line ФПД: 185016676702523 [01:23:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T012349&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192796&fm=185016676702523&tin=02508201610067®Number=0000000000091776&sum=50000 [01:23:48]OFD Sender: Processing packet 192796 [packets to send 75, broken 74] [01:23:48]ProducePacketName [01:23:48]name=ofd_packets/00192796 [01:23:48]OFD Sender: To server: pG, [01:23:48]CommunicateWithHost lk.salyk.kg:30040 [01:23:49]ConnectInit lk.salyk.kg [01:23:49]written 0, free lines is 4095 [01:23:49]Connected sock=10 [01:23:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B0 A0 07 01 0E 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 25 39 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C F1 02 00 35 04 06 00 A8 45 8D 4A D9 3B 4A 26 97 29 D9 64 2F 17 [01:23:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C6 83 47 00 C7 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 31 37 35 34 10 04 04 00 1C F1 02 00 F4 03 04 00 E7 DD 1F 67 B6 04 01 00 00 E5 26 9E 16 C6 F3 3F A6 [01:23:49]CommunicateWithHost err = 0 [01:23:49]CheckOFDResponse [01:23:49]1017 (14) - 77093643461234 [01:23:49]1041 (16) - 0000000000871754 [01:23:49]1040 (4) - 192796 [01:23:49]1012 (4) - 28.10.2024 18:54 [01:23:49]1206 (1) - 0 [01:23:49]OFD Sender: Remove packet 192796 [01:23:49]ProducePacketName [01:23:49]name=ofd_packets/00192796 [01:23:49]NVStorageDeleteData [01:23:49]Write to MH i2c: 01 00 00 AC 19 C5 [01:23:49]Write i2c OK [01:23:49]MH_I2C_Read... [01:23:49]Read from MH i2c: 01 [01:23:49]MH_I2C_Read... [01:23:49]Read from MH i2c: 01 07 00 [01:23:49]MH_I2C_Read... [01:23:49]Read from MH i2c: 01 07 00 AC 19 00 00 00 00 00 B2 0C 8A [01:23:49]RasterBufferAndPrint [01:23:49]line [01:23:49]line [01:23:49]line [01:23:49]line [01:23:49]line [01:23:49]written 0, free lines is 3254 [01:23:49]MH_Cut [01:23:49]Write to MH i2c: D1 01 00 B3 19 01 9E [01:23:49]Write i2c OK [01:23:49]MH_I2C_Read... [01:23:49]Read from MH i2c: D1 [01:23:49]MH_I2C_Read... [01:23:49]Read from MH i2c: D1 01 00 [01:23:49]MH_I2C_Read... [01:23:49]Read from MH i2c: D1 01 00 B3 19 00 9D [01:23:49]Write to MH i2c: 01 00 00 B4 19 CD [01:23:49]Write i2c OK [01:23:49]MH_I2C_Read... [01:23:50]OFD Sender: No OFD packet to send [01:23:50]*** Cut start [01:23:50]*** Partial cut [01:23:50]*** CUTSNS_PIN = 1 [01:23:50]*** CUTSNS_PIN = 0 [01:23:50]*** Brake cut motor [01:23:51]Read from MH i2c: 01 [01:23:51]MH_I2C_Read... [01:23:51]*** Stop cut motor [01:23:51]*** Cut end [01:23:51]Read from MH i2c: 01 07 00 [01:23:51]MH_I2C_Read... [01:23:51]Read from MH i2c: 01 07 00 B4 19 00 00 00 00 00 FF 0F E2 [01:23:51]process_action close_receipt done [01:23:51]requested_data is exist [01:23:51]produce_requested_data [01:23:51]requested_item fm.sn is exist - process it [01:23:51]wFMCommunicate request_size=4 [01:23:51]MH_SAM_APDU [01:23:51]CAPDU: 80 11 00 00 [01:23:51]Write to MH i2c: E2 08 00 B5 19 80 11 00 00 00 00 00 00 48 [01:23:51]Write i2c OK [01:23:51]MH_I2C_Read... [01:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:51]Read from MH i2c: E2 [01:23:51]MH_I2C_Read... [01:23:51]Read from MH i2c: E2 17 00 [01:23:51]MH_I2C_Read... [01:23:51]Read from MH i2c: E2 17 00 B5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9B [01:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:23:51]wFMCommunicate OK [01:23:51]requested_item fd.num is exist - process it [01:23:51]SAM_PROTO_GetFieldsCounters [01:23:51]wFMCommunicate request_size=4 [01:23:51]MH_SAM_APDU [01:23:51]CAPDU: 80 13 00 00 [01:23:51]Write to MH i2c: E2 08 00 B6 19 80 13 00 00 00 00 00 00 4B [01:23:51]Write i2c OK [01:23:51]MH_I2C_Read... [01:23:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:23:51]Read from MH i2c: E2 [01:23:51]MH_I2C_Read... [01:23:51]Read from MH i2c: E2 62 00 [01:23:51]MH_I2C_Read... [01:23:51]Read from MH i2c: E2 62 00 B6 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1C F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [01:23:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1C F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:23:51]wFMCommunicate OK [01:23:51]SAM_PROTO_GetFieldsCounters done [01:23:51]requested_item shift.num is exist - process it [01:23:51]requested_item shift.opened is exist - process it [01:23:51]req_shift_opened [01:23:51]FM_GetShiftState [01:23:51]SAM_PROTO_GetShiftState [01:23:51]wFMCommunicate request_size=4 [01:23:51]MH_SAM_APDU [01:23:51]CAPDU: 80 13 01 00 [01:23:51]Write to MH i2c: E2 08 00 B7 19 80 13 01 00 00 00 00 00 4D [01:23:51]Write i2c OK [01:23:51]MH_I2C_Read... [01:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:51]Read from MH i2c: E2 [01:23:51]MH_I2C_Read... [01:23:51]Read from MH i2c: E2 0E 00 [01:23:51]MH_I2C_Read... [01:23:51]Read from MH i2c: E2 0E 00 B7 19 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 53 [01:23:51]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [01:23:51]wFMCommunicate OK [01:23:51]SAM_PROTO_GetShiftState done [01:23:51]FM_GetShiftState done [01:23:51]req_shift_opened done [01:23:51]requested_item shift.open_date is exist - process it [01:23:51]req_shift_open_date [01:23:51]req_shift_open_date done [01:23:51]produce_requested_data done [01:23:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192796,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [01:23:51]process_action_free close_receipt [01:23:51]json_value_free [01:23:51]json_value_free done [01:23:51]process_json_proto returns [01:23:51]Send response to host [01:23:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192796,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [01:23:51]free response buf [01:23:51]execute_script done [01:23:51]execute_script returns [01:23:51]free content buf [01:23:51]Sock 9.Close socket [01:23:51]Sock 9.Thread stoped [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:18]accept exits with 8 [01:24:18]New connection [01:24:18]New thread 3066658148 created [01:24:18]Thread 3066801508 joined [01:24:18]Waiting for new connection... [01:24:18] Sock 8.Parse request [01:24:18]Sock 8.Check first char [01:24:18]Sock 8.First char is OK [01:24:18]request: POST /json_proto HTTP/1.0 [01:24:18]Method: POST [01:24:18]URL: /json_proto [01:24:18]Method is POST - this is cgi request [01:24:18]url: /json_proto [01:24:18]query_string will be loaded in cgi processing [01:24:18]execute_cgi json_proto POST (null) [01:24:18]execute_cgi path=json_proto method=POST [01:24:18]POST find Content-Length [01:24:18]Host: 172.17.63.131:8080 [01:24:18]Content-Length: 676 [01:24:18]Content-Type: application/json [01:24:18] [01:24:18]POST finish read [01:24:18]Found Content-Length = 676 [01:24:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:24:18]execute_script... [01: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 : (1)32126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:24:18]POST & json_proto [01:24:18]process_json_proto [01:24:18]json parsed OK: [01:24:18]protocol is kg_v1.0 [01:24:18]action value=close_receipt [01:24:18]process_action close_receipt [01:24:18]cmd_close_receipt [01:24:18]MH_GetDate [01:24:18]Write to MH i2c: F0 00 00 B8 19 C0 [01:24:18]Write i2c OK [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: F0 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: F0 09 00 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: F0 09 00 B8 19 00 44 39 20 67 22 05 6E 64 C6 [01:24:18]GetLastDocTimeStamp 1730165029 [01:24:18]current date 1730165060 [01:24:18]FM_GetShiftState [01:24:18]SAM_PROTO_GetShiftState [01:24:18]wFMCommunicate request_size=4 [01:24:18]MH_SAM_APDU [01:24:18]CAPDU: 80 13 01 00 [01:24:18]Write to MH i2c: E2 08 00 B9 19 80 13 01 00 00 00 00 00 4F [01:24:18]Write i2c OK [01:24:18]MH_I2C_Read... [01:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:18]Read from MH i2c: E2 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 0E 00 [01:24:18]MH_I2C_Read... [01:24:18]Read from MH i2c: E2 0E 00 B9 19 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 55 [01:24:18]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [01:24:18]wFMCommunicate OK [01:24:18]SAM_PROTO_GetShiftState done [01:24:18]FM_GetShiftState done [01:24:18]opened in 1730161990 [01:24:18]opened+sec_in_day 1730248390 [01:24:18]quantity*price = 10035 [01:24:18]sum+1 = 10036 [01:24:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 3 29.10.2024 01:24 Смена: 544 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192797 ФПД: 20320896423110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T012420&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192797&fm=20320896423110&tin=02508201610067®Number=0000000000091776&sum=10000 [01:24:19]StoreToDocumentArchive [01:24:19]shift 544 fd 192797 [01:24:19]save to /storage/0544/doc_00192797 [01:24:19]save last doc name /storage/0544/doc_00192797 to /storage/kkm_last_doc_name [01:24:19]save OK [01:24:19]Clear old archive folders... [01:24:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:24:19]tlvbuf is B6F33610 [01:24:19]SAM_PROTO_ClearQueue [01:24:19]wFMCommunicate request_size=4 [01:24:19]MH_SAM_APDU [01:24:19]CAPDU: 80 09 00 00 [01:24:19]Write to MH i2c: E2 08 00 C6 19 80 09 00 00 00 00 00 00 51 [01:24:19]Write i2c OK [01:24:19]MH_I2C_Read... [01:24:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:24:19]Read from MH i2c: E2 [01:24:19]MH_I2C_Read... [01:24:19]Read from MH i2c: E2 03 00 [01:24:19]MH_I2C_Read... [01:24:19]Read from MH i2c: E2 03 00 C6 19 00 90 00 53 [01:24:19]RAPDU: 90 00 [01:24:19]wFMCommunicate OK [01:24:19]SAM_PROTO_ClearQueue done [01:24:19]KKMCreateOFDPacket [01:24:19]OFDProtocolAddRootSTLVToBuf [01:24:19]FM_MakeSignedData [01:24:19]FM_MakeSignedData [01:24:19]SAM_PROTO_SignData [01:24:19]wFMCommunicate request_size=4 [01:24:19]MH_SAM_APDU [01:24:19]CAPDU: 80 0D 01 02 [01:24:19]Write to MH i2c: E2 08 00 C7 19 80 0D 01 02 00 00 00 00 59 [01:24:19]Write i2c OK [01:24:19]MH_I2C_Read... [01:24:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:24:20]Read from MH i2c: E2 [01:24:20]MH_I2C_Read... [01:24:20]Read from MH i2c: E2 03 00 [01:24:20]MH_I2C_Read... [01:24:20]Read from MH i2c: E2 03 00 C7 19 00 90 00 54 [01:24:20]RAPDU: 90 00 [01:24:20]wFMCommunicate OK [01:24:20]wFMCommunicate request_size=255 [01:24:20]MH_SAM_APDU [01:24: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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 44 39 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D F1 02 00 35 04 06 00 12 [01:24:20]Write to MH i2c: E2 02 01 C8 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 44 39 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D F1 02 00 35 04 06 00 12 00 00 1F [01:24:20]Write i2c OK [01:24:20]MH_I2C_Read... [01:24:20]OFD Sender: No OFD packet to send [01:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:20]Read from MH i2c: E2 [01:24:20]MH_I2C_Read... [01:24:20]Read from MH i2c: E2 03 00 [01:24:20]MH_I2C_Read... [01:24:20]Read from MH i2c: E2 03 00 C8 19 00 90 00 55 [01:24:20]RAPDU: 90 00 [01:24:20]wFMCommunicate OK [01:24:20]wFMCommunicate request_size=10 [01:24:20]MH_SAM_APDU [01:24:20]CAPDU: 80 0D 02 02 05 7B 53 D0 14 C6 [01:24:20]Write to MH i2c: E2 0D 00 C9 19 80 0D 02 02 05 00 7B 53 D0 14 C6 00 00 DE [01:24:20]Write i2c OK [01:24:20]MH_I2C_Read... [01:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:20]Read from MH i2c: E2 [01:24:20]MH_I2C_Read... [01:24:20]Read from MH i2c: E2 03 00 [01:24:20]MH_I2C_Read... [01:24:20]Read from MH i2c: E2 03 00 C9 19 00 90 00 56 [01:24:20]RAPDU: 90 00 [01:24:20]wFMCommunicate OK [01:24:20]wFMCommunicate request_size=4 [01:24:20]MH_SAM_APDU [01:24:20]CAPDU: 80 0D 03 02 [01:24:20]Write to MH i2c: E2 08 00 CA 19 80 0D 03 02 00 00 00 00 5E [01:24:20]Write i2c OK [01:24:20]MH_I2C_Read... [01:24:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:24:20]Read from MH i2c: E2 [01:24:20]MH_I2C_Read... [01:24:20]Read from MH i2c: E2 0B 00 [01:24:20]MH_I2C_Read... [01:24:20]Read from MH i2c: E2 0B 00 CA 19 00 95 AF FF EF 22 A7 F0 4E 90 00 98 [01:24:20]RAPDU: 95 AF FF EF 22 A7 F0 4E 90 00 [01:24:20]wFMCommunicate OK [01:24:20]SAM_PROTO_SignData done [01:24:20]FM_MakeSignedData done [01:24:20]CreateOFDProtocolMessage [01:24:20]wFMCommunicate request_size=4 [01:24:20]MH_SAM_APDU [01:24:20]CAPDU: 80 11 00 00 [01:24:20]Write to MH i2c: E2 08 00 CB 19 80 11 00 00 00 00 00 00 5E [01:24:20]Write i2c OK [01:24:20]MH_I2C_Read... [01:24:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:20]Read from MH i2c: E2 [01:24:20]MH_I2C_Read... [01:24:20]Read from MH i2c: E2 17 00 [01:24:20]MH_I2C_Read... [01:24:20]Read from MH i2c: E2 17 00 CB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B1 [01:24:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:24:20]wFMCommunicate OK [01:24:20]CreateOFDProtocolMessage done [01:24:20]OFDSenderStorePacket 192797 [01:24:20]StoreOFDPacket docnum=192797 [01:24:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F3 DA 07 01 D6 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 44 39 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D F1 02 00 35 04 06 00 12 7B 53 D0 14 C6 95 AF FF EF 22 A7 F0 4E [01:24:20]CheckFolder [01:24:20]dirname=/storage/ofd_packets [01:24:20]CheckFolder done [01:24:20]ProducePacketName [01:24:20]name=ofd_packets/00192797 [01:24:20]NVStorageSaveData ofd_packets/00192797 [01:24:20]File name is /storage/ofd_packets/00192797 [01:24:20]Write 301 bytes [01:24:20]NVStorageSaveData done [01:24:20]OFDSenderStorePacket done [01:24:20]KKMCreateOFDPacket done [01:24:20]NVStorageSaveData kkm_last_timestamp [01:24:20]File name is /storage/kkm_last_timestamp [01:24:20]Write 4 bytes [01:24:20]NVStorageSaveData done [01:24:20]ExternCall_PrintAddStr [01:24:20]wPrintStart [01:24:20]Write to MH i2c: 01 00 00 CC 19 E5 [01:24:20]Write i2c OK [01:24:20]MH_I2C_Read... [01:24:20]Read from MH i2c: 01 [01:24:20]MH_I2C_Read... [01:24:20]Read from MH i2c: 01 07 00 [01:24:20]MH_I2C_Read... [01:24:20]Read from MH i2c: 01 07 00 CC 19 00 00 00 00 00 FF 0F FA [01:24:20]RasterBufferAndPrint [01:24:20]line Счет N : (1)32126 [01:24:20]line ИНН: 02508201610067 [01:24:20]line Контрольно-Кассовый Чек [01:24:20]line ПРОДАЖА [01:24:20]line ТРК (МРК, ГНК) : 12 [01:24:20]line Товар: 2710124130 [01:24:20]line Аи-92-К-5 [01:24:20]line 1.500 * 66.90 [01:24:20]line = 100.35 [01:24:20]line НДС 12% НСП 1% [01:24:20]line > о реализуемом товаре [01:24:20]line ОКРУГЛЕНИЕ: -0.35 [01:24:20]line ИТОГО: 100.00 [01:24:20]line Внесено: 100.00 [01:24:20]line СДАЧА: 0.00 [01:24:20]line НСП 1% : 0.89 [01:24:20]line НДС 12% : 10.66 [01:24:20]line Наличными: 100.00 [01:24:20]line Безнал.: 0.00 [01:24:20]line Место: АЗС № 170 "Партнер Нефть" [01:24:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:24:20]line СНО: Общий режим [01:24:20]line Чек 3 29.10.2024 01:24 [01:24:20]line Смена: 544 ФФД: 1.0 [01:24:20]line ЗНМ: 0300000110 [01:24:20]line РНМ: 0000000000091776 [01:24:20]line Версия ККМ: 001 [01:24:20]line ФМ: 0000000000871754 [01:24:20]line ФД: 192797 [01:24:20]line ФПД: 20320896423110 [01:24:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T012420&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192797&fm=20320896423110&tin=02508201610067®Number=0000000000091776&sum=10000 [01:24:20]OFD Sender: Processing packet 192797 [packets to send 75, broken 74] [01:24:20]ProducePacketName [01:24:20]name=ofd_packets/00192797 [01:24:20]OFD Sender: To server: pG, [01:24:20]CommunicateWithHost lk.salyk.kg:30040 [01:24:20]ConnectInit lk.salyk.kg [01:24:20]written 0, free lines is 4095 [01:24:20]Connected sock=11 [01: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 31 37 35 34 0F 01 00 00 F3 DA 07 01 D6 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 44 39 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D F1 02 00 35 04 06 00 12 7B 53 D0 14 C6 95 AF FF EF 22 A7 F0 4E [01:24:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7D FD 47 00 4A 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D F1 02 00 F4 03 04 00 07 DE 1F 67 B6 04 01 00 00 D0 11 AB 29 2A E5 27 60 [01:24:21]CommunicateWithHost err = 0 [01:24:21]CheckOFDResponse [01:24:21]1017 (14) - 77093643461234 [01:24:21]1041 (16) - 0000000000871754 [01:24:21]1040 (4) - 192797 [01:24:21]1012 (4) - 28.10.2024 18:55 [01:24:21]1206 (1) - 0 [01:24:21]OFD Sender: Remove packet 192797 [01:24:21]ProducePacketName [01:24:21]name=ofd_packets/00192797 [01:24:21]NVStorageDeleteData [01:24:21]Write to MH i2c: 01 00 00 F7 19 10 [01:24:21]Write i2c OK [01:24:21]MH_I2C_Read... [01:24:21]Read from MH i2c: 01 [01:24:21]MH_I2C_Read... [01:24:21]Read from MH i2c: 01 07 00 [01:24:21]MH_I2C_Read... [01:24:21]Read from MH i2c: 01 07 00 F7 19 00 00 00 00 00 A5 0C C8 [01:24:21]RasterBufferAndPrint [01:24:21]line [01:24:21]line [01:24:21]line [01:24:21]line [01:24:21]line [01:24:21]written 0, free lines is 3242 [01:24:21]MH_Cut [01:24:21]Write to MH i2c: D1 01 00 FE 19 01 E9 [01:24:21]Write i2c OK [01:24:21]MH_I2C_Read... [01:24:21]Read from MH i2c: D1 [01:24:21]MH_I2C_Read... [01:24:21]Read from MH i2c: D1 01 00 [01:24:21]MH_I2C_Read... [01:24:21]Read from MH i2c: D1 01 00 FE 19 00 E8 [01:24:21]Write to MH i2c: 01 00 00 FF 19 18 [01:24:21]Write i2c OK [01:24:21]MH_I2C_Read... [01:24:21]OFD Sender: No OFD packet to send [01:24:22]*** Cut start [01:24:22]*** Partial cut [01:24:22]*** CUTSNS_PIN = 1 [01:24:22]*** CUTSNS_PIN = 0 [01:24:22]*** Brake cut motor [01:24:22]Read from MH i2c: 01 [01:24:22]MH_I2C_Read... [01:24:22]*** Stop cut motor [01:24:22]*** Cut end [01:24:22]Read from MH i2c: 01 07 00 [01:24:22]MH_I2C_Read... [01:24:22]Read from MH i2c: 01 07 00 FF 19 00 00 00 00 00 FF 0F 2D [01:24:22]process_action close_receipt done [01:24:22]requested_data is exist [01:24:22]produce_requested_data [01:24:22]requested_item fm.sn is exist - process it [01:24:22]wFMCommunicate request_size=4 [01:24:22]MH_SAM_APDU [01:24:22]CAPDU: 80 11 00 00 [01:24:22]Write to MH i2c: E2 08 00 00 1A 80 11 00 00 00 00 00 00 94 [01:24:22]Write i2c OK [01:24:22]MH_I2C_Read... [01:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:22]Read from MH i2c: E2 [01:24:22]MH_I2C_Read... [01:24:22]Read from MH i2c: E2 17 00 [01:24:22]MH_I2C_Read... [01:24:22]Read from MH i2c: E2 17 00 00 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E7 [01:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:24:22]wFMCommunicate OK [01:24:22]requested_item fd.num is exist - process it [01:24:22]SAM_PROTO_GetFieldsCounters [01:24:22]wFMCommunicate request_size=4 [01:24:22]MH_SAM_APDU [01:24:22]CAPDU: 80 13 00 00 [01:24:22]Write to MH i2c: E2 08 00 01 1A 80 13 00 00 00 00 00 00 97 [01:24:22]Write i2c OK [01:24:22]MH_I2C_Read... [01:24:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:24:22]Read from MH i2c: E2 [01:24:22]MH_I2C_Read... [01:24:22]Read from MH i2c: E2 62 00 [01:24:22]MH_I2C_Read... [01:24:22]Read from MH i2c: E2 62 00 01 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1D F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [01: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1D F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:24:22]wFMCommunicate OK [01:24:22]SAM_PROTO_GetFieldsCounters done [01:24:22]requested_item shift.num is exist - process it [01:24:22]requested_item shift.opened is exist - process it [01:24:22]req_shift_opened [01:24:22]FM_GetShiftState [01:24:22]SAM_PROTO_GetShiftState [01:24:22]wFMCommunicate request_size=4 [01:24:22]MH_SAM_APDU [01:24:22]CAPDU: 80 13 01 00 [01:24:22]Write to MH i2c: E2 08 00 02 1A 80 13 01 00 00 00 00 00 99 [01:24:22]Write i2c OK [01:24:22]MH_I2C_Read... [01:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:22]Read from MH i2c: E2 [01:24:22]MH_I2C_Read... [01:24:22]Read from MH i2c: E2 0E 00 [01:24:22]MH_I2C_Read... [01:24:22]Read from MH i2c: E2 0E 00 02 1A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 9F [01:24:22]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [01:24:22]wFMCommunicate OK [01:24:22]SAM_PROTO_GetShiftState done [01:24:22]FM_GetShiftState done [01:24:22]req_shift_opened done [01:24:22]requested_item shift.open_date is exist - process it [01:24:22]req_shift_open_date [01:24:22]req_shift_open_date done [01:24:22]produce_requested_data done [01:24:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192797,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [01:24:22]process_action_free close_receipt [01:24:22]json_value_free [01:24:22]json_value_free done [01:24:22]process_json_proto returns [01:24:22]Send response to host [01:24:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192797,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [01:24:22]free response buf [01:24:22]execute_script done [01:24:22]execute_script returns [01:24:22]free content buf [01:24:22]Sock 8.Close socket [01:24:22]Sock 8.Thread stoped [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:06]accept exits with 9 [01:47:06]New connection [01:47:06]New thread 3066801508 created [01:47:06]Thread 3066658148 joined [01:47:06]Waiting for new connection... [01:47:06] Sock 9.Parse request [01:47:06]Sock 9.Check first char [01:47:06]Sock 9.First char is OK [01:47:06]request: POST /json_proto HTTP/1.0 [01:47:06]Method: POST [01:47:06]URL: /json_proto [01:47:06]Method is POST - this is cgi request [01:47:06]url: /json_proto [01:47:06]query_string will be loaded in cgi processing [01:47:06]execute_cgi json_proto POST (null) [01:47:06]execute_cgi path=json_proto method=POST [01:47:06]POST find Content-Length [01:47:06]Host: 172.17.63.131:8080 [01:47:06]Content-Length: 676 [01:47:06]Content-Type: application/json [01:47:06] [01:47:06]POST finish read [01:47:06]Found Content-Length = 676 [01:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:47:06]execute_script... [01:47:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)32127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:47:06]POST & json_proto [01:47:06]process_json_proto [01:47:06]json parsed OK: [01:47:06]protocol is kg_v1.0 [01:47:06]action value=close_receipt [01:47:06]process_action close_receipt [01:47:06]cmd_close_receipt [01:47:06]MH_GetDate [01:47:06]Write to MH i2c: F0 00 00 03 1A 0C [01:47:06]Write i2c OK [01:47:06]MH_I2C_Read... [01:47:06]Read from MH i2c: F0 [01:47:06]MH_I2C_Read... [01:47:06]Read from MH i2c: F0 09 00 [01:47:06]MH_I2C_Read... [01:47:06]Read from MH i2c: F0 09 00 03 1A 00 9C 3E 20 67 22 05 6E 64 6F [01:47:06]GetLastDocTimeStamp 1730165060 [01:47:06]current date 1730166428 [01:47:06]FM_GetShiftState [01:47:06]SAM_PROTO_GetShiftState [01:47:06]wFMCommunicate request_size=4 [01:47:06]MH_SAM_APDU [01:47:06]CAPDU: 80 13 01 00 [01:47:06]Write to MH i2c: E2 08 00 04 1A 80 13 01 00 00 00 00 00 9B [01:47:06]Write i2c OK [01:47:06]MH_I2C_Read... [01:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:06]Read from MH i2c: E2 [01:47:06]MH_I2C_Read... [01:47:06]Read from MH i2c: E2 0E 00 [01:47:06]MH_I2C_Read... [01:47:06]Read from MH i2c: E2 0E 00 04 1A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 A1 [01:47:06]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [01:47:06]wFMCommunicate OK [01:47:06]SAM_PROTO_GetShiftState done [01:47:06]FM_GetShiftState done [01:47:06]opened in 1730161990 [01:47:06]opened+sec_in_day 1730248390 [01:47:06]quantity*price = 50041 [01:47:06]sum+1 = 50042 [01:47:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 4 29.10.2024 01:47 Смена: 544 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 192798 ФПД: 186811814453162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T014708&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192798&fm=186811814453162&tin=02508201610067®Number=0000000000091776&sum=50000 [01:47:07]StoreToDocumentArchive [01:47:07]shift 544 fd 192798 [01:47:07]save to /storage/0544/doc_00192798 [01:47:07]save last doc name /storage/0544/doc_00192798 to /storage/kkm_last_doc_name [01:47:07]save OK [01:47:07]Clear old archive folders... [01:47:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:47:07]tlvbuf is 00FF10D0 [01:47:07]SAM_PROTO_ClearQueue [01:47:07]wFMCommunicate request_size=4 [01:47:07]MH_SAM_APDU [01:47:07]CAPDU: 80 09 00 00 [01:47:07]Write to MH i2c: E2 08 00 11 1A 80 09 00 00 00 00 00 00 9D [01:47:07]Write i2c OK [01:47:07]MH_I2C_Read... [01:47:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:47:07]Read from MH i2c: E2 [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: E2 03 00 [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: E2 03 00 11 1A 00 90 00 9F [01:47:07]RAPDU: 90 00 [01:47:07]wFMCommunicate OK [01:47:07]SAM_PROTO_ClearQueue done [01:47:07]KKMCreateOFDPacket [01:47:07]OFDProtocolAddRootSTLVToBuf [01:47:07]FM_MakeSignedData [01:47:07]FM_MakeSignedData [01:47:07]SAM_PROTO_SignData [01:47:07]wFMCommunicate request_size=4 [01:47:07]MH_SAM_APDU [01:47:07]CAPDU: 80 0D 01 02 [01:47:07]Write to MH i2c: E2 08 00 12 1A 80 0D 01 02 00 00 00 00 A5 [01:47:07]Write i2c OK [01:47:07]MH_I2C_Read... [01:47:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:47:07]Read from MH i2c: E2 [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: E2 03 00 [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: E2 03 00 12 1A 00 90 00 A0 [01:47:07]RAPDU: 90 00 [01:47:07]wFMCommunicate OK [01:47:07]wFMCommunicate request_size=255 [01:47:07]MH_SAM_APDU [01:47:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 9C 3E 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E F1 02 00 35 04 06 00 A9 [01:47:07]Write to MH i2c: E2 02 01 13 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 9C 3E 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E F1 02 00 35 04 06 00 A9 00 00 7A [01:47:07]Write i2c OK [01:47:07]MH_I2C_Read... [01:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:47:07]Read from MH i2c: E2 [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: E2 03 00 [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: E2 03 00 13 1A 00 90 00 A1 [01:47:07]RAPDU: 90 00 [01:47:07]wFMCommunicate OK [01:47:07]wFMCommunicate request_size=10 [01:47:07]MH_SAM_APDU [01:47:07]CAPDU: 80 0D 02 02 05 E7 83 D7 1F AA [01:47:07]Write to MH i2c: E2 0D 00 14 1A 80 0D 02 02 05 00 E7 83 D7 1F AA 00 00 BC [01:47:07]Write i2c OK [01:47:07]MH_I2C_Read... [01:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:47:07]Read from MH i2c: E2 [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: E2 03 00 [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: E2 03 00 14 1A 00 90 00 A2 [01:47:07]RAPDU: 90 00 [01:47:07]wFMCommunicate OK [01:47:07]wFMCommunicate request_size=4 [01:47:07]MH_SAM_APDU [01:47:07]CAPDU: 80 0D 03 02 [01:47:07]Write to MH i2c: E2 08 00 15 1A 80 0D 03 02 00 00 00 00 AA [01:47:07]Write i2c OK [01:47:07]MH_I2C_Read... [01:47:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:47:07]Read from MH i2c: E2 [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: E2 0B 00 [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: E2 0B 00 15 1A 00 05 88 5C FD B3 FC 9F D0 90 00 AF [01:47:07]RAPDU: 05 88 5C FD B3 FC 9F D0 90 00 [01:47:07]wFMCommunicate OK [01:47:07]SAM_PROTO_SignData done [01:47:07]FM_MakeSignedData done [01:47:07]CreateOFDProtocolMessage [01:47:07]wFMCommunicate request_size=4 [01:47:07]MH_SAM_APDU [01:47:07]CAPDU: 80 11 00 00 [01:47:07]Write to MH i2c: E2 08 00 16 1A 80 11 00 00 00 00 00 00 AA [01:47:07]Write i2c OK [01:47:07]MH_I2C_Read... [01:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:47:07]Read from MH i2c: E2 [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: E2 17 00 [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: E2 17 00 16 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FD [01:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:47:07]wFMCommunicate OK [01:47:07]CreateOFDProtocolMessage done [01:47:07]OFDSenderStorePacket 192798 [01:47:07]StoreOFDPacket docnum=192798 [01:47:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A9 89 07 01 1C 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 9C 3E 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E F1 02 00 35 04 06 00 A9 E7 83 D7 1F AA 05 88 5C FD B3 FC 9F D0 [01:47:07]CheckFolder [01:47:07]dirname=/storage/ofd_packets [01:47:07]CheckFolder done [01:47:07]ProducePacketName [01:47:07]name=ofd_packets/00192798 [01:47:07]NVStorageSaveData ofd_packets/00192798 [01:47:07]File name is /storage/ofd_packets/00192798 [01:47:07]Write 301 bytes [01:47:07]NVStorageSaveData done [01:47:07]OFDSenderStorePacket done [01:47:07]KKMCreateOFDPacket done [01:47:07]NVStorageSaveData kkm_last_timestamp [01:47:07]File name is /storage/kkm_last_timestamp [01:47:07]Write 4 bytes [01:47:07]NVStorageSaveData done [01:47:07]ExternCall_PrintAddStr [01:47:07]wPrintStart [01:47:07]Write to MH i2c: 01 00 00 17 1A 31 [01:47:07]Write i2c OK [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: 01 [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: 01 07 00 [01:47:07]MH_I2C_Read... [01:47:07]Read from MH i2c: 01 07 00 17 1A 00 00 00 00 00 FF 0F 46 [01:47:07]RasterBufferAndPrint [01:47:07]line Счет N : (1)32127 [01:47:07]line ИНН: 02508201610067 [01:47:07]line Контрольно-Кассовый Чек [01:47:07]line ПРОДАЖА [01:47:07]line ТРК (МРК, ГНК) : 12 [01:47:07]line Товар: 2710124130 [01:47:07]line Аи-92-К-5 [01:47:07]line 7.480 * 66.90 [01:47:07]line = 500.41 [01:47:07]line НДС 12% НСП 1% [01:47:07]line > о реализуемом товаре [01:47:07]line ОКРУГЛЕНИЕ: -0.41 [01:47:07]line ИТОГО: 500.00 [01:47:07]line Внесено: 500.00 [01:47:07]line СДАЧА: 0.00 [01:47:07]line НСП 1% : 4.43 [01:47:07]line НДС 12% : 53.14 [01:47:07]line Наличными: 500.00 [01:47:07]line Безнал.: 0.00 [01:47:07]line Место: АЗС № 170 "Партнер Нефть" [01:47:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:47:07]line СНО: Общий режим [01:47:07]line Чек 4 29.10.2024 01:47 [01:47:07]line Смена: 544 ФФД: 1.0 [01:47:07]line ЗНМ: 0300000110 [01:47:07]line РНМ: 0000000000091776 [01:47:07]line Версия ККМ: 001 [01:47:07]line ФМ: 0000000000871754 [01:47:07]line ФД: 192798 [01:47:07]line ФПД: 186811814453162 [01:47:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T014708&type=1&operation_type=1&fn_number=0000000000871754&fd_number=192798&fm=186811814453162&tin=02508201610067®Number=0000000000091776&sum=50000 [01:47:08]OFD Sender: Processing packet 192798 [packets to send 75, broken 74] [01:47:08]ProducePacketName [01:47:08]name=ofd_packets/00192798 [01:47:08]OFD Sender: To server: pG, [01:47:08]CommunicateWithHost lk.salyk.kg:30040 [01:47:08]ConnectInit lk.salyk.kg [01:47:08]written 0, free lines is 4095 [01:47:08]Connected sock=10 [01:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A9 89 07 01 1C 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 9C 3E 20 67 0E 04 04 00 20 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E F1 02 00 35 04 06 00 A9 E7 83 D7 1F AA 05 88 5C FD B3 FC 9F D0 [01:47:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 48 CD 47 00 94 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E F1 02 00 F4 03 04 00 5E E3 1F 67 B6 04 01 00 00 C1 28 35 FC F8 86 5C 7E [01:47:08]CommunicateWithHost err = 0 [01:47:08]CheckOFDResponse [01:47:08]1017 (14) - 77093643461234 [01:47:08]1041 (16) - 0000000000871754 [01:47:08]1040 (4) - 192798 [01:47:08]1012 (4) - 28.10.2024 19:17 [01:47:08]1206 (1) - 0 [01:47:08]OFD Sender: Remove packet 192798 [01:47:08]ProducePacketName [01:47:08]name=ofd_packets/00192798 [01:47:08]NVStorageDeleteData [01:47:08]Write to MH i2c: 01 00 00 42 1A 5C [01:47:08]Write i2c OK [01:47:08]MH_I2C_Read... [01:47:08]Read from MH i2c: 01 [01:47:08]MH_I2C_Read... [01:47:08]Read from MH i2c: 01 07 00 [01:47:08]MH_I2C_Read... [01:47:08]Read from MH i2c: 01 07 00 42 1A 00 00 00 00 00 B2 0C 21 [01:47:08]RasterBufferAndPrint [01:47:08]line [01:47:08]line [01:47:08]line [01:47:08]line [01:47:08]line [01:47:08]written 0, free lines is 3257 [01:47:08]MH_Cut [01:47:08]Write to MH i2c: D1 01 00 49 1A 01 35 [01:47:08]Write i2c OK [01:47:08]MH_I2C_Read... [01:47:08]Read from MH i2c: D1 [01:47:08]MH_I2C_Read... [01:47:08]Read from MH i2c: D1 01 00 [01:47:08]MH_I2C_Read... [01:47:08]Read from MH i2c: D1 01 00 49 1A 00 34 [01:47:08]Write to MH i2c: 01 00 00 4A 1A 64 [01:47:08]Write i2c OK [01:47:08]MH_I2C_Read... [01:47:09]OFD Sender: No OFD packet to send [01:47:09]*** Cut start [01:47:09]*** Partial cut [01:47:09]*** CUTSNS_PIN = 1 [01:47:09]*** CUTSNS_PIN = 0 [01:47:09]*** Brake cut motor [01:47:10]Read from MH i2c: 01 [01:47:10]MH_I2C_Read... [01:47:10]*** Stop cut motor [01:47:10]*** Cut end [01:47:10]Read from MH i2c: 01 07 00 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: 01 07 00 4A 1A 00 00 00 00 00 FF 0F 79 [01:47:10]process_action close_receipt done [01:47:10]requested_data is exist [01:47:10]produce_requested_data [01:47:10]requested_item fm.sn is exist - process it [01:47:10]wFMCommunicate request_size=4 [01:47:10]MH_SAM_APDU [01:47:10]CAPDU: 80 11 00 00 [01:47:10]Write to MH i2c: E2 08 00 4B 1A 80 11 00 00 00 00 00 00 DF [01:47:10]Write i2c OK [01:47:10]MH_I2C_Read... [01:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:47:10]Read from MH i2c: E2 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: E2 17 00 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: E2 17 00 4B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 32 [01:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:47:10]wFMCommunicate OK [01:47:10]requested_item fd.num is exist - process it [01:47:10]SAM_PROTO_GetFieldsCounters [01:47:10]wFMCommunicate request_size=4 [01:47:10]MH_SAM_APDU [01:47:10]CAPDU: 80 13 00 00 [01:47:10]Write to MH i2c: E2 08 00 4C 1A 80 13 00 00 00 00 00 00 E2 [01:47:10]Write i2c OK [01:47:10]MH_I2C_Read... [01:47:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:47:10]Read from MH i2c: E2 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: E2 62 00 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: E2 62 00 4C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1E F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [01:47:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1E F1 02 00 0E 04 04 00 20 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:47:10]wFMCommunicate OK [01:47:10]SAM_PROTO_GetFieldsCounters done [01:47:10]requested_item shift.num is exist - process it [01:47:10]requested_item shift.opened is exist - process it [01:47:10]req_shift_opened [01:47:10]FM_GetShiftState [01:47:10]SAM_PROTO_GetShiftState [01:47:10]wFMCommunicate request_size=4 [01:47:10]MH_SAM_APDU [01:47:10]CAPDU: 80 13 01 00 [01:47:10]Write to MH i2c: E2 08 00 4D 1A 80 13 01 00 00 00 00 00 E4 [01:47:10]Write i2c OK [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: E2 [01:47:10]MH_I2C_Read... [01:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:47:10]Read from MH i2c: E2 0E 00 [01:47:10]MH_I2C_Read... [01:47:10]Read from MH i2c: E2 0E 00 4D 1A 00 09 00 01 46 2D 20 67 00 00 00 00 90 00 EA [01:47:10]RAPDU: 09 00 01 46 2D 20 67 00 00 00 00 90 00 [01:47:10]wFMCommunicate OK [01:47:10]SAM_PROTO_GetShiftState done [01:47:10]FM_GetShiftState done [01:47:10]req_shift_opened done [01:47:10]requested_item shift.open_date is exist - process it [01:47:10]req_shift_open_date [01:47:10]req_shift_open_date done [01:47:10]produce_requested_data done [01:47:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":192798,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990} [01:47:10]process_action_free close_receipt [01:47:10]json_value_free [01:47:10]json_value_free done [01:47:10]process_json_proto returns [01:47:10]Send response to host [01:47:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":192798,"shift.num":544,"shift.opened":1,"shift.open_date":1730161990}}} [01:47:10]free response buf [01:47:10]execute_script done [01:47:10]execute_script returns [01:47:10]free content buf [01:47:10]Sock 9.Close socket [01:47:10]Sock 9.Thread stoped [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send